diff --git a/klab.engine/src/main/resources/static/ui/css/74fd8965.3a325a86.css b/klab.engine/src/main/resources/static/ui/css/74fd8965.3a325a86.css new file mode 100644 index 0000000000..e283666fa6 --- /dev/null +++ b/klab.engine/src/main/resources/static/ui/css/74fd8965.3a325a86.css @@ -0,0 +1 @@ +[data-v-b602390c]:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.spinner-circle[data-v-b602390c]{fill:#da1f26;-webkit-transform:rotate(6deg);transform:rotate(6deg)}.spinner-circle.moving[data-v-b602390c]{-webkit-animation:spin-data-v-b602390c 2s cubic-bezier(.445,.05,.55,.95) infinite;animation:spin-data-v-b602390c 2s cubic-bezier(.445,.05,.55,.95) infinite;-webkit-animation-delay:.4s;animation-delay:.4s}@-webkit-keyframes spin-data-v-b602390c{0%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}80%{-webkit-transform:rotate(366deg);transform:rotate(366deg)}to{-webkit-transform:rotate(366deg);transform:rotate(366deg)}}@keyframes spin-data-v-b602390c{0%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}80%{-webkit-transform:rotate(366deg);transform:rotate(366deg)}to{-webkit-transform:rotate(366deg);transform:rotate(366deg)}}#modal-connection-status.fullscreen{z-index:10000}#modal-connection-status .modal-borders{border-radius:40px}#modal-connection-status #modal-spinner{margin-right:10px;margin-left:1px}#modal-connection-status .modal-klab-content>span{display:inline-block;line-height:100%;vertical-align:middle;margin-right:15px}#modal-connection-status .modal-content{min-width:200px}.klab-settings-container{background-color:var(--app-background-color)!important}.klab-settings-container .klab-settings-button{position:fixed;bottom:28px;right:26px;opacity:.2}.klab-settings-container .klab-settings-button.klab-df-info-open{right:346px}.klab-settings-container .klab-settings-button .q-btn-fab{height:32px;width:32px}.klab-settings-container .klab-settings-button .q-btn-fab .q-icon{font-size:16px}.klab-settings-container .klab-settings-button .q-btn-fab-mini{height:24px;width:24px}.klab-settings-container .klab-settings-button .q-btn-fab-mini .q-icon{font-size:12px}.klab-settings-container .klab-settings-button.klab-fab-open{opacity:1}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab{height:56px;width:56px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab .q-icon{font-size:28px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab-mini{height:48px;width:48px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab-mini .q-icon{font-size:24px}.klab-settings-container .q-fab-up{bottom:100%;padding-bottom:10%}.ks-container{background-color:var(--app-background-color);padding:15px 20px;border-radius:5px;width:500px}.ks-container .ks-title{font-size:1.3em;color:var(--app-title-color);font-weight:400;margin-bottom:10px}.ks-container .ks-title .ks-title-text{display:inline-block}.ks-container .ks-title .ks-reload-button{display:inline-block;padding-left:10px;opacity:.3}.ks-container .ks-title .ks-reload-button:hover{opacity:1}.ks-container .ks-debug,.ks-container .ks-term{position:absolute;top:8px}.ks-container .ks-debug{right:46px}.ks-container .ks-term{right:16px}.ks-container .kud-owner{border:1px solid var(--app-main-color);border-radius:5px;padding:20px}.ks-container .kud-owner .kud-label{display:inline-block;width:100px;line-height:2.5em;vertical-align:middle;color:var(--app-title-color)}.ks-container .kud-owner .kud-value{display:inline-block;line-height:30px;vertical-align:middle;color:var(--app-text-color)}.ks-container .kud-owner .kud-value.kud-group{padding-right:10px}.ks-container .kal-apps .kal-app{display:-webkit-box;display:-ms-flexbox;display:flex;padding:8px 16px;border:1px solid transparent;border-radius:6px}.ks-container .kal-apps .kal-app:not(.kal-active){cursor:pointer}.ks-container .kal-apps .kal-app.kal-active{border-color:var(--app-darken-main-color)}.ks-container .kal-apps .kal-app:hover{border-color:var(--app-main-color)}.ks-container .kal-apps .kal-app .kal-logo{-ms-flex-item-align:start;align-self:start;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:50px;height:50px;margin:0 16px 0 0}.ks-container .kal-apps .kal-app .kal-logo img{display:block;max-width:50px;max-height:50px;vertical-align:middle}.ks-container .kal-apps .kal-app .kal-info{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.ks-container .kal-apps .kal-app .kal-info .kal-name{color:var(--app-title-color);font-weight:400}.ks-container .kal-apps .kal-app .kal-info .kal-description{color:var(--app-text-color);font-size:80%}.ks-container .kal-apps .kal-app .kal-locale{color:var(--app-text-color);padding:12px 12px 0 0;font-size:80%}.ks-container .kal-apps .kal-app span{display:inline-block;padding-left:2px}.ks-container .kal-apps .kal-app span.flag-icon{font-size:90%}.kud-group-detail,.kud-group-id{text-align:center}.kud-group-detail{font-style:italic}.kud-no-group-icon{background-color:var(--app-title-color);text-align:center;color:var(--app-background-color);padding:2px 0 0;cursor:default;border-radius:15px}.kud-img-logo,.kud-no-group-icon{width:30px;height:30px;line-height:30px}.kud-img-logo{display:inline-block;vertical-align:middle}.klab-setting-tooltip{background-color:var(--app-main-color)}.xterm{position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.kterm-container{z-index:4999}.kterm-container .kterm-header{border-top-right-radius:8px;border-top-left-radius:8px;height:30px;border-top:1px solid hsla(0,0%,100%,.5);border-left:1px solid hsla(0,0%,100%,.5);border-right:1px solid hsla(0,0%,100%,.5);cursor:move;opacity:.9;z-index:5001}.kterm-container .kterm-header .kterm-button{position:absolute}.kterm-container .kterm-header .kterm-close{top:0;right:0}.kterm-container .kterm-header .kterm-minimize{top:0;right:30px}.kterm-container .kterm-header .kterm-drag{top:0;right:60px}.kterm-container .kterm-header .kterm-delete-history{top:0;right:90px}.kterm-container.kterm-minimized{width:90px;position:absolute;bottom:25px;left:25px;top:unset}.kterm-container.kterm-minimized .kterm-header{border-bottom-left-radius:10px;border-bottom-right-radius:10px;border:none}.kterm-container.kterm-focused{z-index:5000}.kterm-container .kterm-terminal{border:1px solid hsla(0,0%,100%,.5)}.kterm-tooltip{background-color:var(--app-main-color)!important}.kaa-container{background-color:hsla(0,0%,99.2%,.8);padding:15px;border-radius:5px}.kaa-container .kaa-content{border:1px solid var(--app-main-color);border-radius:5px;padding:20px;color:var(--app-title-color)}.kaa-container .kaa-button{margin:10px 0 0;width:100%;text-align:right}.kaa-container .kaa-button .q-btn{margin-left:10px}.klab-destructive-actions .klab-button{color:#ff6464!important}#ks-container{overflow-x:hidden;overflow-y:hidden;white-space:nowrap}#ks-container #ks-internal-container{float:left}.ks-tokens{display:inline-block;margin-right:-3px;padding:0 3px}.ks-tokens-accepted{font-weight:600}.ks-tokens.selected{outline:none}.bg-semantic-elements{border-radius:4px;border-style:solid;border-width:2px}.q-tooltip{max-width:512px}.q-popover{max-width:512px!important;border-radius:10px}#ks-autocomplete{scrollbar-color:#e5e5e5 transparent;scrollbar-width:thin}#ks-autocomplete .q-item.text-faded{color:#333}#ks-autocomplete .q-item.ka-separator{padding:8px 16px 5px;min-height:0;font-size:.8em;border-bottom:1px solid #e0e0e0}#ks-autocomplete .q-item.ka-separator.q-select-highlight{background-color:transparent}#ks-autocomplete .q-item:not(.text-faded):active{background:hsla(0,0%,74.1%,.5)}#ks-autocomplete::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}#ks-autocomplete::-webkit-scrollbar{width:6px;background-color:transparent}#ks-autocomplete::-webkit-scrollbar-thumb{border-radius:10px;width:5px;background-color:#e5e5e5}.ks-tokens-fuzzy{width:100%}.ks-tokens-klab{width:256px}#ks-search-input{background-color:transparent}.ks-search-focused{padding:0;border-radius:4px;background-color:#e4fdff}.ks-search-focused,.ks-search-focused.ks-fuzzy{-webkit-transition:background-color .8s;transition:background-color .8s}.ks-search-focused.ks-fuzzy{background-color:#e7ffdb}#ks-autocomplete .q-item-side.q-item-section.q-item-side-left{-ms-flex-item-align:start;align-self:start}#ks-autocomplete .q-item-sublabel{font-size:80%}#ks-autocomplete .text-faded .q-item-section{font-size:1rem}.kl-model-desc-container{width:400px;background-color:#fff;color:#616161;border:1px solid #e0e0e0;padding:10px}.kl-model-desc-container .kl-model-desc-title{float:left;padding:5px 0;font-size:larger;margin-bottom:5px}.kl-model-desc-container .kl-model-desc-state{float:right;display:inline-block;padding:4px;border-radius:4px;color:#fff}.kl-model-desc-container .kl-model-desc-content{padding:10px 0;clear:both;border-top:1px solid #e0e0e0}.st-container.marquee.hover-active:hover .st-text{-webkit-animation:klab-marquee linear infinite alternate;animation:klab-marquee linear infinite alternate}.st-container.marquee.hover-active:hover .st-edges{opacity:inherit}.st-container.marquee.hover-active:not(:hover) .st-text{left:0!important;width:100%;text-overflow:ellipsis}.st-container.marquee:not(.hover-active) .st-text{-webkit-animation:klab-marquee linear infinite alternate;animation:klab-marquee linear infinite alternate}.st-container.marquee:not(.hover-active) .st-edges{opacity:inherit}.st-container.marquee:not(.hover-active):hover .st-text{-webkit-animation-play-state:paused;animation-play-state:paused}.st-container.marquee:not(.hover-active):hover:not(.active) .st-accentuate{color:rgba(0,0,0,.8);cursor:default}.st-container.marquee .st-text{position:relative;display:inline-block;overflow:hidden}.st-placeholder{color:#777;opacity:.6}.st-edges{left:-5px;right:0;top:0;bottom:0;position:absolute;height:100%;opacity:0;-webkit-mask-image:-webkit-gradient(linear,left top,right top,from(#000),to(transparent)),-webkit-gradient(linear,right top,left top,from(#000),to(transparent));-webkit-mask-image:linear-gradient(90deg,#000,transparent),linear-gradient(270deg,#000,transparent);mask-image:-webkit-gradient(linear,left top,right top,from(#000),to(transparent)),-webkit-gradient(linear,right top,left top,from(#000),to(transparent));mask-image:linear-gradient(90deg,#000,transparent),linear-gradient(270deg,#000,transparent);-webkit-mask-size:5% 100%;mask-size:5% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:left center,right center;mask-position:left center,right center;-webkit-transition:background-color .8s,opacity .8s;transition:background-color .8s,opacity .8s}@-webkit-keyframes klab-marquee{0%{left:0}}@keyframes klab-marquee{0%{left:0}}.sr-container{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.sr-container.sr-light{color:#333;text-shadow:0 0 1px #ccc}.sr-container.sr-light .sr-spacescale{background-color:#333;color:#ccc}.sr-container.sr-dark{color:#ccc;text-shadow:0 0 1px #333}.sr-container.sr-dark .sr-spacescale{background-color:#ccc;color:#333}.sr-container .sr-editables{display:inline}.sr-container .sr-editables .klab-item{text-align:center}.sr-container .sr-no-scalereference .sr-scaletype,.sr-container .sr-scalereference .sr-scaletype{width:30px}.sr-container .sr-no-scalereference .sr-scaletype span,.sr-container .sr-scalereference .sr-scaletype span{display:block;height:24px;line-height:24px}.sr-container .sr-no-scalereference .sr-locked,.sr-container .sr-scalereference .sr-locked{width:30px}.sr-container .sr-no-scalereference .sr-locked,.sr-container .sr-no-scalereference .sr-scaletype,.sr-container .sr-scalereference .sr-locked,.sr-container .sr-scalereference .sr-scaletype{text-align:center;font-size:12px}.sr-container .sr-no-scalereference .sr-locked.sr-icon,.sr-container .sr-no-scalereference .sr-scaletype.sr-icon,.sr-container .sr-scalereference .sr-locked.sr-icon,.sr-container .sr-scalereference .sr-scaletype.sr-icon{font-size:20px}.sr-container .sr-no-scalereference .sr-description,.sr-container .sr-scalereference .sr-description{font-size:12px;width:calc(100% - 60px)}.sr-container .sr-no-scalereference .sr-spacescale,.sr-container .sr-scalereference .sr-spacescale{font-size:10px;height:20px;line-height:20px;width:20px;border-radius:10px;text-align:center;padding:0;display:inline-block;margin:0 5px}.sr-container .sr-no-scalereference.sr-full .sr-description,.sr-container .sr-scalereference.sr-full .sr-description{width:calc(100% - 90px)}.sr-container.sr-vertical{margin:5px 0}.sr-container.sr-vertical .klab-item{float:left;width:100%;margin:5px 0}.sr-container.sr-vertical .sr-spacescale{width:20px;margin-left:calc(50% - 10px)}.modal-scroll{overflow:hidden;max-height:600px}.mdi-lock-outline{color:#1ab}.sr-tooltip{text-align:center;padding:4px 0}.sr-tooltip.sr-time-tooltip{color:#ffc300}.mcm-icon-close-popover{position:absolute;right:4px;top:6px}.mcm-menubutton{top:6px;right:5px}.mcm-contextbutton{right:-5px}.mcm-container{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:180px}.mcm-container.mcm-context-label{width:250px}#btn-reset-context{width:15px;height:15px}#mc-eraserforcontext{padding:0 0 0 3px}.mcm-actual-context{color:#999}.q-icon.mcm-contextbutton{position:absolute;top:7px;right:5px}.mcm-context-label .klab-menuitem{width:calc(100% - 20px)}.mcm-copy-icon{padding:0 10px 0 5px;color:#eee}.mcm-copy-icon:hover{cursor:pointer;color:#212121}.klab-version{font-size:10px;width:100%;text-align:right;color:#9e9e9e}#ksb-container{width:100%;-webkit-transition:background-color .8s;transition:background-color .8s;line-height:inherit}#ksb-container.ksb-docked{-webkit-transition:width .5s;transition:width .5s}#ksb-container.ksb-docked #ksb-search-container{position:relative;padding:16px 10px;height:52px;-webkit-transition:background-color .8s;transition:background-color .8s}#ksb-container.ksb-docked #ksb-search-container .ksb-context-text{width:90%;position:relative}#ksb-container.ksb-docked #ksb-search-container .ksb-status-texts{width:90%;position:relative;bottom:2px}#ksb-container.ksb-docked #ksb-search-container .mcm-menubutton{top:11px}#ksb-container:not(.ksb-docked){border-radius:30px;cursor:move}#ksb-container:not(.ksb-docked) #ks-container,#ksb-container:not(.ksb-docked) .ksb-context-text{width:85%;position:absolute;left:45px;margin-top:8px}#ksb-container:not(.ksb-docked) .ksb-status-texts{width:85%;position:absolute;bottom:-4px;left:45px;margin:0 auto}#ksb-container #ksb-spinner{float:left;border:none;width:40px;height:40px}#ksb-container #ksb-undock{text-align:right;height:32px}#ksb-container #ksb-undock #ksb-undock-icon{padding:6px 10px;text-align:center;display:inline-block;cursor:pointer;-webkit-transition:.1s;transition:.1s;color:#999}#ksb-container #ksb-undock #ksb-undock-icon:hover{color:#1ab;-webkit-transform:translate(5px) rotate(33deg);transform:translate(5px) rotate(33deg)}#ksb-container .ksb-context-text,#ksb-container .ksb-status-texts{white-space:nowrap;overflow:hidden}#ksb-container .ksb-status-texts{font-size:11px;color:rgba(0,0,0,.4);height:15px}#ksb-container .mdi-lock-outline{position:absolute;right:35px;top:12px}.kbc-container{position:relative;height:20px;font-size:10px;padding:2px 5px}.kbc-container span{color:#eee}.kbc-container span:not(:last-child){cursor:pointer;color:#1ab}.kbc-container span:not(:last-child):hover{color:#ffc300}.kbc-container span:not(:last-child):after{content:" / ";color:#eee}.vue-splitter{height:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.vue-splitter .splitter-pane{height:inherit;overflow:hidden;padding:0}.vue-splitter .left-pane{white-space:nowrap}.vue-splitter .right-pane{word-wrap:break-word}.splitter-actions{width:2em;height:2em}#splitter-close{position:absolute;right:0}.splitter-controllers{background-color:#000;text-align:center;height:20px}.kt-drag-enter{background-color:#555}.kt-tree-container .klab-no-nodes{padding:5px 0;margin:0;text-align:center;font-style:italic}.kt-tree-container .q-tree>.q-tree-node{padding:0}.kt-tree-container .q-tree-node-collapsible{overflow-x:hidden}.kt-tree-container .q-tree-children{margin-bottom:4px}.kt-tree-container .q-tree-node-selected{background-color:rgba(0,0,0,.15)}.kt-tree-container .q-tree-node{padding:0 0 3px 15px}.kt-tree-container .q-tree-node.q-tree-node-child{min-height:var(--q-tree-no-child-min-height)}.kt-tree-container .q-tree-node-header{margin-top:0}.kt-tree-container .q-tree-node-header:before{width:25px;left:-28px}.kt-tree-container .q-tree-node-header:hover .node-substituible{display:none}.kt-tree-container .q-tree-node-header:hover .kt-download,.kt-tree-container .q-tree-node-header:hover .kt-upload{display:block}.kt-tree-container .q-tree-node-header:hover .kt-download:hover,.kt-tree-container .q-tree-node-header:hover .kt-upload:hover{background-color:#fff;border:none;color:#666}.kt-tree-container .q-tree-node-header.disabled{opacity:1!important}.kt-tree-container .q-chip.node-chip{position:absolute;right:10px;height:20px;min-width:20px;top:4px;text-align:center}.kt-tree-container .q-chip.node-chip .q-chip-main{padding-right:2px}.kt-tree-container .kt-download,.kt-tree-container .kt-upload{position:absolute;top:4px;display:none;z-index:9999;color:#eee;border:2px solid #eee;width:20px;height:20px}.kt-tree-container .kt-download{right:10px}.kt-tree-container .kt-upload{right:34px}.kt-tree-container .node-emphasized{color:#fff;font-weight:700;-webkit-animation:flash 2s linear;animation:flash 2s linear}.kt-tree-container .node-element{text-shadow:none;cursor:pointer}.kt-tree-container .node-selected{-webkit-text-decoration:underline #ffc300 dotted;text-decoration:underline #ffc300 dotted;color:#ffc300}.kt-tree-container .mdi-buddhism{padding-left:1px;margin-right:2px!important}.kt-tree-container .node-updatable{font-style:italic}.kt-tree-container .node-disabled{opacity:.6!important}.kt-tree-container .node-no-tick{margin-right:5px}.kt-tree-container .node-on-top{color:#ffc300}.kt-tree-container .node-icon{display:inline;padding-left:5px}.kt-tree-container .node-icon-time{position:relative;right:-5px}.kt-tree-container .node-icon-time.node-loading-layer{opacity:0}.kt-tree-container .node-icon-time.node-loading-layer.animate-spin{opacity:1}.kt-tree-container .kt-q-tooltip{background-color:#333}.kt-tree-container .q-tree-node-link{cursor:default}.kt-tree-container .q-tree-node-link .q-tree-arrow{cursor:pointer}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent{padding-left:1px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header{padding-left:0}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header:before{width:12px;left:-14px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header>i{margin-right:2px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children{padding-left:20px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header{padding-left:4px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header:before{width:25px;left:-28px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header:after{left:-17px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible{padding-left:1px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible:before{width:25px;left:-28px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible:after{left:-17px}@-webkit-keyframes flash{0%{opacity:1}25%{opacity:.5}50%{opacity:1}75%{opacity:.5}to{opacity:1}}@keyframes flash{0%{opacity:1}25%{opacity:.5}50%{opacity:1}75%{opacity:.5}to{opacity:1}}@-webkit-keyframes loading-gradient{0%{background-position:0 0}50%{background-position:100% 0}to{background-position:0 0}}@keyframes loading-gradient{0%{background-position:0 0}50%{background-position:100% 0}to{background-position:0 0}}.hv-histogram-container.hv-histogram-horizontal{height:160px;width:100%}.hv-histogram-container.hv-histogram-vertical{height:100%}.hv-histogram,.hv-histogram-nodata{height:calc(100% - 30px);position:relative}.hv-histogram-nodata.k-with-colormap,.hv-histogram.k-with-colormap{height:calc(100% - 60px)}.hv-histogram-nodata{color:#fff;text-align:center;background-color:hsla(0,0%,46.7%,.65);padding-top:20%}.hv-histogram-col{float:left;height:100%;position:relative}.hv-histogram-col:hover{background:hsla(0,0%,46.7%,.65)}.hv-histogram-val{background:#000;width:100%;position:absolute;bottom:0;border-right:1px solid hsla(0,0%,46.7%,.85);border-left:1px solid hsla(0,0%,46.7%,.85)}.hv-histogram-val:hover{background:rgba(0,0,0,.7)}.hv-colormap-horizontal{height:30px;position:relative}.hv-colormap-horizontal .hv-colormap-col{float:left;height:100%;min-width:1px}.hv-colormap-vertical{width:30px;min-width:30px;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hv-colormap-vertical .hv-colormap-col{display:block;width:100%;min-height:1px}.hv-colormap-container-vertical{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%}.hv-colormap-container-vertical .hv-colormap-legend{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hv-colormap-container-vertical .hv-categories{overflow:hidden}.hv-colormap-col{background-color:#fff}.hv-details-vertical{float:left}.hv-data-details{color:#fff;text-align:center;font-size:small;padding:2px 0;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:middle;height:30px;line-height:30px;text-overflow:ellipsis}.hv-histogram-max,.hv-histogram-min{width:50px}.hv-categories{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-left:16px}.hv-categories .hv-category{text-overflow:ellipsis;white-space:nowrap;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-size:12px}.hv-data-nodetail,.hv-data-value{width:calc(100% - 100px);border-left:1px solid #696969;border-right:1px solid #696969}.hv-data-value,.hv-tooltip{color:#ffc300;-webkit-transition:none;transition:none;font-style:normal}.hv-tooltip{background-color:#444}#oi-container{height:calc(var(--main-control-max-height) - 164px);max-height:calc(var(--main-control-max-height) - 164px)}#oi-metadata-map-wrapper{height:calc(100% - 40px)}#oi-metadata-map-wrapper.k-with-histogram{height:calc(100% - 200px)}#oi-metadata-map-wrapper #oi-scroll-metadata-container{padding-top:5px}.oi-text{color:#ffc300;text-shadow:0 0 1px #666;padding:0 0 0 5px}.oi-metadata-name{padding-bottom:2px}.oi-metadata-value{color:#fff;margin:0 5px 5px;background-color:#666;-webkit-box-shadow:inset 0 0 0 1px #666;box-shadow:inset 0 0 0 1px #666;padding:2px 0 2px 5px}#oi-scroll-container{height:100%}#oi-scroll-container.with-mapinfo{height:50%}#oi-controls{height:40px;width:100%;border-bottom:1px dotted #333}#oi-controls .oi-control{float:left}#oi-controls #oi-name{width:50%;display:table;overflow:hidden;height:40px}#oi-controls #oi-name span{display:table-cell;vertical-align:middle;padding-top:2px}#oi-controls #oi-visualize{text-align:center;width:40px;line-height:40px}#oi-controls #oi-slider{width:calc(50% - 40px)}#oi-controls #oi-slider .q-slider{padding:0 10px 0 5px;height:40px}#oi-mapinfo-container{height:50%;width:100%;padding:5px;position:relative}#oi-mapinfo-map{height:100%;width:100%}.oi-pixel-indicator{position:absolute;background-color:#fff;mix-blend-mode:difference}#oi-pixel-h{left:50%;top:5px;height:calc(100% - 10px);width:1px}#oi-pixel-v{top:50%;left:5px;height:1px;width:calc(100% - 10px)}.ktp-loading{background:-webkit-gradient(linear,left top,right top,from(#333),to(#999));background:linear-gradient(90deg,#333,#999);background-size:200% 100%;-webkit-animation:loading-gradient 4s linear infinite;animation:loading-gradient 4s linear infinite}.q-tree .text-white{text-shadow:1px 0 0 #aaa}#kt-user-tree{padding-top:15px;padding-bottom:10px}.kt-separator{width:96%;left:4%;height:2px;border-top:1px solid hsla(0,0%,48.6%,.8);border-bottom:1px solid #7c7c7c;margin:0 4%}#klab-tree-pane{-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none}#klab-tree-pane details{padding:6px 0 10px 10px;background-color:#7d7d7d;border-top:1px solid #555}#klab-tree-pane details:not([open]){padding:0;margin-bottom:15px}#klab-tree-pane details:not([open]) #ktp-main-tree-arrow{top:-12px}#klab-tree-pane details[open] #ktp-main-tree-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}#klab-tree-pane details .mdi-dots-horizontal:before{padding-top:2px}#klab-tree-pane details summary{height:0;outline:none;position:relative;cursor:pointer;display:block}#klab-tree-pane details summary::-webkit-details-marker{color:transparent}#klab-tree-pane details #ktp-main-tree-arrow{position:absolute;width:22px;height:22px;right:9px;top:-18px;color:#fff;background-color:#555;border-radius:12px;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}#klab-tree-pane details>div{margin:5px 0 0 -10px}.ktp-no-tree{height:30px}.otv-now{font-size:11px;line-height:24px;vertical-align:middle;text-align:center;color:#fff;width:150px;height:24px}.otv-now.otv-docked{float:left;color:#fff;line-height:34px}.otv-now:not(.otv-docked){position:absolute;bottom:0;left:0;background-color:hsla(0,0%,46.7%,.65);border-top:1px solid #000;border-right:1px solid #000;border-top-right-radius:4px}.otv-now.otv-running{color:#ffc300}.otv-now.otv-novisible{opacity:0}.otv-now .fade-enter-active,.otv-now .fade-leave-active{-webkit-transition:opacity 1s;transition:opacity 1s}.otv-now .fade-enter,.otv-now .fade-leave-to{opacity:0}.ot-wrapper{width:100%}.ot-wrapper.ot-no-timestamp .ot-container.ot-docked{width:calc(100% - 5px)}.ot-wrapper:not(.ot-no-timestamp) .ot-container.ot-docked{width:280px;float:left}.ot-container{position:relative}.ot-container .ot-player{width:20px;height:16px;line-height:16px;float:left}.ot-container .ot-player .q-icon{vertical-align:baseline!important}.ot-container .ot-time{width:calc(100% - 20px);position:relative}.ot-container .ot-time.ot-time-full{left:10px}.ot-container .ot-time .ot-date{min-width:16px;max-width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;vertical-align:middle;background-color:#555;border-radius:8px;position:relative;cursor:default;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-date.ot-with-modifications{cursor:pointer;background-color:#888}.ot-container .ot-time .ot-date.ot-date-fill,.ot-container .ot-time .ot-date.ot-date-loaded{background-color:#1ab}.ot-container .ot-time .ot-date.ot-date-start+.ot-date-text{left:16px}.ot-container .ot-time .ot-date.ot-date-end+.ot-date-text{right:16px}.ot-container .ot-time .ot-date .ot-time-origin{vertical-align:baseline;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-date .ot-time-origin.ot-time-origin-loaded{color:#e4fdff}.ot-container .ot-time .ot-date-text{white-space:nowrap;font-size:8px;position:absolute;top:-4px;color:#888;font-weight:400;letter-spacing:1px;padding:0;-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none}.ot-container .ot-time .ot-timeline-container .ot-timeline{height:6px;width:calc(100% + 4px);background-color:#555;position:relative;top:5px;margin:0 -2px;padding:0 2px;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-timeline-container .ot-timeline.ot-with-modifications{cursor:pointer;background-color:#888}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-modification-container{z-index:10000;width:32px;height:6px;position:absolute;top:7px}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-modification-container .ot-modification{height:100%;width:1px;margin-left:1px;border-left:1px solid #555;border-right:1px solid #aaa}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-actual-time{width:2px;height:6px;background-color:#1ab;position:absolute;margin-right:4px;top:0;z-index:10001}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-loaded-time{height:6px;left:-2px;background-color:#1ab;position:relative;top:0}.ot-container.ot-active-timeline .ot-time .ot-date-start{border-top-right-radius:0;border-bottom-right-radius:0;cursor:pointer}.ot-container.ot-active-timeline .ot-time .ot-date-end{border-top-left-radius:0;border-bottom-left-radius:0;cursor:pointer}.ot-container.ot-active-timeline .ot-time .ot-timeline{height:16px;width:100%;top:0;margin:0}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-timeline-viewer{height:10px;background-color:#666;border-radius:2px;width:calc(100% - 2px);position:absolute;top:3px;z-index:9000}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-loaded-time{height:16px}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-actual-time{height:10px;top:3px}.ot-date-tooltip{width:100px}.ot-date-tooltip .ot-date-tooltip-content{text-align:center}.ot-speed-container{border-radius:6px;margin-left:-6px}.ot-speed-container .ot-speed-selector{padding:5px 0;background-color:rgba(35,35,35,.8);color:#eee}.ot-speed-container .ot-speed-selector .ot-speed{min-height:20px;font-size:small;padding:5px}.ot-speed-container .ot-speed-selector .ot-speed.ot-speed-disabled{color:#1ab;font-weight:800}.ot-speed-container .ot-speed-selector .ot-speed:hover{background-color:#333;color:#ffc300;cursor:pointer}.ot-change-speed-tooltip{text-align:center}#klab-log-pane{max-height:calc(var(--main-control-max-height) - 124px)}#klab-log-pane.lm-component{max-height:100%}#klab-log-pane #log-container{margin:10px 0}#klab-log-pane .q-item.log-item{font-size:10px}#klab-log-pane .q-item.log-no-items{font-size:12px;color:#ccc;text-shadow:1px 0 0 #777}.log-item .q-item-side{min-width:auto}.q-list-dense>.q-item{padding-left:10px}.klp-separator{width:100%;text-align:center;border-top:1px solid #555;border-bottom:1px solid #777;line-height:0;margin:10px 0}.klp-separator>span{padding:0 10px;background-color:#717070}.klp-level-selector{border-bottom:1px dotted #ccc}.klp-level-selector ul{margin:10px 0;padding-left:10px;list-style:none}.klp-level-selector ul li{display:inline-block;padding-right:10px;opacity:.5}.klp-level-selector ul li.klp-selected{opacity:1}.klp-level-selector ul li .klp-chip{padding:2px 8px;cursor:pointer}.klab-mdi-next-scale{color:#ffc300;opacity:.6}.klab-mdi-next-scale:hover{opacity:1}.sb-scales *{cursor:pointer}.sb-next-scale{background-color:rgba(255,195,0,.7)}.sb-tooltip{text-align:center;font-size:.7em;color:#fff;background-color:#616161;padding:2px 0}.kvs-popover-container{background-color:#616161;border-color:#616161}.kvs-popover{background-color:transparent}.kvs-container .klab-button.klab-action .klab-button-notification{right:26px;top:0}.kvs-container .klab-button:not(.disabled) .kvs-button{color:#1ab}.mc-container .q-card>.mc-q-card-title{border-radius:30px;cursor:move;-webkit-transition:background-color .8s;transition:background-color .8s}.mc-container .q-card{width:512px;-webkit-transition:width .5s;transition:width .5s}.mc-container .q-card.with-context{width:482px;background-color:rgba(35,35,35,.8);border-radius:5px}.mc-container .q-card.with-context .mc-q-card-title{overflow:hidden;margin:15px}.mc-container .q-card.mc-large-mode-1{width:640px}.mc-container .q-card.mc-large-mode-2{width:768px}.mc-container .q-card.mc-large-mode-3{width:896px}.mc-container .q-card.mc-large-mode-4{width:1024px}.mc-container .q-card.mc-large-mode-5{width:1152px}.mc-container .q-card.mc-large-mode-6{width:1280px}.mc-container .q-card-title{position:relative}.mc-container .spinner-lonely-div{position:absolute;width:44px;height:44px;border:2px solid;border-radius:40px}.mc-container .q-card-title{line-height:inherit}.mc-container #mc-text-div{text-shadow:0 0 1px #555}.mc-container .q-card-main{overflow:auto;line-height:inherit;background-color:hsla(0,0%,46.7%,.85);padding:0}.mc-container .kmc-bottom-actions.q-card-actions{padding:0 4px 4px 6px}.mc-container .kmc-bottom-actions.q-card-actions .klab-button{font-size:18px;padding:4px}.mc-container .klab-main-actions{position:relative}.mc-container .klab-button-notification{top:4px;right:4px;width:10px;height:10px}.mc-container .context-actions{padding:0;margin:0;position:relative}.mc-container .mc-separator{width:2px;height:60%;position:absolute;top:20%;border-left:1px solid #444;border-right:1px solid #666}.mc-container .mc-separator.mab-separator{right:45px}.mc-container .mc-tab.active{background-color:hsla(0,0%,46.7%,.85)}.mc-container .component-fade-enter-active,.mc-container .component-fade-leave-active{-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.mc-container .component-fade-enter,.mc-container .component-fade-leave-to{opacity:0}.mc-container .mc-docking{position:fixed;left:0;top:0;background-color:rgba(35,35,35,.1);border:1px solid hsla(0,0%,52.9%,.5);-webkit-animation-duration:.2s;animation-duration:.2s}.mc-container .kbc-container{position:absolute;top:63px;left:0;width:100%;text-align:center}.mc-container #kt-out-container{height:100%;overflow:hidden;max-height:calc(var(--main-control-max-height) - 144px)}.mc-container #kt-out-container.kpt-loading{max-height:calc(var(--main-control-max-height) - 114px)}.mc-container #kt-out-container.with-splitter{max-height:calc(var(--main-control-max-height) - 164px)}.mc-container .klab-button{font-size:22px;margin:0;padding:2px 7px 5px;border-top-left-radius:4px;border-top-right-radius:4px}.mc-container .klab-destructive-actions .klab-button{position:absolute;right:6px;padding-right:0}.mc-container .sb-scales{position:absolute;right:42px}.mc-container .sb-scales .klab-button{padding-right:2px}.mc-container .context-actions .sr-locked,.mc-container .context-actions .sr-scaletype{font-size:9px}.mc-container .context-actions .sr-locked.sr-icon,.mc-container .context-actions .sr-scaletype.sr-icon{font-size:14px}.mc-container .context-actions .sr-description{font-size:9px}.mc-container .context-actions .sr-spacescale{font-size:9px;height:16px;width:16px;border-radius:8px;padding:3px 0 0;margin:0 2px}.mc-container .mc-timeline{width:calc(100% - 200px);position:absolute;left:100px;bottom:8px}.mc-container .klab-bottom-right-actions{position:absolute;right:6px}.mc-container .klab-bottom-right-actions .klab-button.klab-action{border-radius:4px;margin:3px 0 0;padding:2px 5px 3px!important}.mc-container .klab-bottom-right-actions .klab-button.klab-action:hover:not(.disabled){background-color:hsla(0,0%,52.9%,.2)}.mc-kv-popover{border-radius:6px;border:none}.mc-kv-popover .mc-kv-container{background-color:#616161;border-radius:2px!important}.md-draw-controls{position:absolute;top:30px;left:calc(50vw - 100px);background-color:hsla(0,0%,100%,.8);border-radius:10px}.md-draw-controls .md-title{color:#fff;background-color:#1ab;width:100%;padding:5px;font-size:16px;text-align:center;border-top-left-radius:10px;border-top-right-radius:10px}.md-draw-controls .md-controls .md-control{font-size:30px;font-weight:700;width:calc(33% - 24px);padding:5px;margin:10px 12px;height:40px;border-radius:10px;cursor:pointer}.md-draw-controls .md-controls .md-ok{color:#19a019}.md-draw-controls .md-controls .md-ok:hover{background-color:#19a019;color:#fff}.md-draw-controls .md-controls .md-cancel{color:#db2828}.md-draw-controls .md-controls .md-cancel:hover{background-color:#db2828;color:#fff}.md-draw-controls .md-controls .md-erase.disabled{cursor:default}.md-draw-controls .md-controls .md-erase:not(.disabled){color:#ffc300}.md-draw-controls .md-controls .md-erase:not(.disabled):hover{background-color:#ffc300;color:#fff}.md-draw-controls .md-selector .q-btn-group{border-bottom-left-radius:10px;border-bottom-right-radius:10px}.md-draw-controls .md-selector button{width:50px}.md-draw-controls .md-selector button:first-child{border-bottom-left-radius:10px}.md-draw-controls .md-selector button:nth-child(4){border-bottom-right-radius:10px}.layer-switcher{position:absolute;top:3.5em;right:.5em;text-align:left}.layer-switcher .panel{border:4px solid #eee;background-color:#fff;display:none;max-height:inherit;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.layer-switcher button{float:right;z-index:1;width:38px;height:38px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-position:2px;background-color:#fff;color:#000;border:none}.layer-switcher button:focus,.layer-switcher button:hover{background-color:#fff}.layer-switcher.shown{overflow-y:hidden}.layer-switcher.shown.ol-control,.layer-switcher.shown.ol-control:hover{background-color:transparent}.layer-switcher.shown .panel{display:block}.layer-switcher.shown button{display:none}.layer-switcher.shown.layer-switcher-activation-mode-click>button{display:block;background-image:unset;right:2px;position:absolute;background-color:#eee;margin:0 1px}.layer-switcher.shown button:focus,.layer-switcher.shown button:hover{background-color:#fafafa}.layer-switcher ul{list-style:none;margin:1.6em .4em;padding-left:0}.layer-switcher ul ul{padding-left:1.2em;margin:.1em 0 0}.layer-switcher li.group+li.group{margin-top:.4em}.layer-switcher li.group>label{font-weight:700}.layer-switcher.layer-switcher-group-select-style-none li.group>label{padding-left:1.2em}.layer-switcher li{position:relative;margin-top:.3em}.layer-switcher li input{position:absolute;left:1.2em;height:1em;width:1em;font-size:1em}.layer-switcher li label{padding-left:2.7em;padding-right:1.2em;display:inline-block;margin-top:1px}.layer-switcher label.disabled{opacity:.4}.layer-switcher input{margin:0}.layer-switcher.touch ::-webkit-scrollbar{width:4px}.layer-switcher.touch ::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);border-radius:10px}.layer-switcher.touch ::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}li.layer-switcher-base-group>label{padding-left:1.2em}.layer-switcher .group button{position:absolute;left:0;display:inline-block;vertical-align:top;float:none;font-size:1em;width:1em;height:1em;margin:0;background-position:center 2px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAW0lEQVR4nGNgGAWMyBwXFxcGBgaGeii3EU0tXHzPnj1wQRYsihqQ+I0ExDEMQAYNONgoAN0AmMkNaDSyQSheY8JiaCMOGzE04zIAmyFYNTMw4A+DRhzsUUBtAADw4BCeIZkGdwAAAABJRU5ErkJggg==");-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.layer-switcher .group.layer-switcher-close button{transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.layer-switcher .group.layer-switcher-fold.layer-switcher-close>ul{overflow:hidden;height:0}.layer-switcher.shown.layer-switcher-activation-mode-click{padding-left:34px}.layer-switcher.shown.layer-switcher-activation-mode-click>button{left:0;border-right:0}.layer-switcher{top:5em}.layer-switcher button{background-position:2px 3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTkuOTk2IiB3aWR0aD0iMjAiPjxnIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0xOS4zMSAzLjgzNUwxMS41My4yODljLS44NDMtLjM4NS0yLjIyMy0uMzg1LTMuMDY2IDBMLjY5IDMuODM1Yy0uOTE3LjQxNi0uOTE3IDEuMDk5IDAgMS41MTVsNy43MDYgMy41MTVjLjg4LjQgMi4zMjguNCAzLjIwOCAwTDE5LjMxIDUuMzVjLjkxNi0uNDE2LjkxNi0xLjA5OSAwLTEuNTE1ek04LjM5NiAxNi4yMDdMMy4yIDEzLjgzN2EuODQ1Ljg0NSAwIDAwLS42OTMgMGwtMS44MTcuODI4Yy0uOTE3LjQxNy0uOTE3IDEuMSAwIDEuNTE2bDcuNzA2IDMuNTE0Yy44OC40MDEgMi4zMjguNDAxIDMuMjA4IDBsNy43MDYtMy41MTRjLjkxNi0uNDE3LjkxNi0xLjA5OSAwLTEuNTE2bC0xLjgxNy0uODI4YS44NDUuODQ1IDAgMDAtLjY5MyAwbC01LjE5NiAyLjM3Yy0uODguNC0yLjMyOC40LTMuMjA4IDB6Ii8+PHBhdGggZD0iTTE5LjMxIDkuMjVsLTEuNjUtLjc1YS44MzMuODMzIDAgMDAtLjY4OCAwbC01LjYyMyAyLjU0N2MtLjc5Ny4yNy0xLjkwNi4yNy0yLjcwMyAwTDMuMDIzIDguNWEuODMzLjgzMyAwIDAwLS42ODggMGwtMS42NS43NWMtLjkxNy40MTctLjkxNyAxLjA5OSAwIDEuNTE1TDguMzkgMTQuMjhjLjg4LjQwMSAyLjMyNy40MDEgMy4yMDcgMGw3LjcwNy0zLjUxNWMuOTIxLS40MTYuOTIxLTEuMDk4LjAwNS0xLjUxNXoiLz48L2c+PC9zdmc+")}.layer-switcher .panel{padding:0 1em 0 0;margin:0;border:1px solid #999;border-radius:4px;background-color:hsla(0,0%,46.7%,.65);color:#fff}.map-selection-marker{font-size:28px;color:#fff;mix-blend-mode:exclusion}.gl-msg-content{border-radius:20px;padding:20px;background-color:hsla(0,0%,100%,.7)}.gl-msg-content .gl-btn-container{text-align:right;padding:.2em}.gl-msg-content .gl-btn-container .q-btn{margin-left:.5em}.gl-msg-content h5{margin:.2em 0 .5em;font-weight:700}.gl-msg-content em{color:#1ab;font-style:normal;font-weight:700}.mv-exploring{cursor:crosshair!important}.ol-popup{position:absolute;background-color:hsla(0,0%,100%,.9);padding:20px 15px;border-radius:10px;bottom:25px;left:-48px;min-height:80px}.ol-popup:after,.ol-popup:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.ol-popup:after{border-top-color:hsla(0,0%,100%,.9);border-width:10px;left:48px;margin-left:-10px}.ol-popup .ol-popup-closer{position:absolute;top:2px;right:8px}.ol-popup .ol-popup-content h3{margin:0 0 .2em;line-height:1.1em;font-size:1.1em;color:#1ab;white-space:nowrap;font-weight:300}.ol-popup .ol-popup-content p{margin:0;color:rgba(50,50,50,.9);white-space:nowrap;font-weight:400}.ol-popup .ol-popup-content .mv-popup-value{font-size:1.6em;padding:10px 0}.ol-popup .ol-popup-content .mv-popup-coord{font-size:.8em;padding-top:5px;color:#7c7c7c}.ol-popup .ol-popup-content .mv-popup-separator{height:1px;border-top:1px solid hsla(0,0%,48.6%,.3);margin:0 auto}.ol-mouse-position{right:50px!important;top:14px;margin:1px;padding:4px 8px;color:#fff;font-size:.9em;text-align:center;background-color:rgba(0,60,136,.5);border:4px solid hsla(0,0%,100%,.7)}#mv-extent-map{width:200px;height:200px;position:absolute;bottom:0;right:0;border:1px solid var(--app-main-color)}#mv-extent-map.mv-extent-map-hide{display:none}.mv-remove-proposed-context{position:absolute;bottom:10px;left:10px;opacity:.3;background-color:#3187ca;color:#fff!important}.mv-remove-proposed-context:hover{opacity:1}canvas{position:absolute;top:0;left:0}.net{height:100%;margin:0}.node{stroke:rgba(18,120,98,.7);stroke-width:3px;-webkit-transition:fill .5s ease;transition:fill .5s ease;fill:#dcfaf3}.node.selected{stroke:#caa455}.node.pinned{stroke:rgba(190,56,93,.6)}.link{stroke:rgba(18,120,98,.3)}.link,.node{stroke-linecap:round}.link:hover,.node:hover{stroke:#be385d;stroke-width:5px}.link.selected{stroke:rgba(202,164,85,.6)}.curve{fill:none}.link-label,.node-label{fill:#127862}.link-label{-webkit-transform:translateY(-.5em);transform:translateY(-.5em);text-anchor:middle}.gv-container{background-color:#e0e0e0;overflow:hidden}.gv-container .q-spinner{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px)}.uv-container{background-color:#e7ffdb;overflow:hidden}.uv-container h4{text-align:center}.uv-container .q-spinner{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px)}[data-v-216658d8]:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.thumb-view[data-v-216658d8]{width:200px;height:200px;margin:5px;border:1px solid #333;-webkit-box-shadow:#5c6bc0;box-shadow:#5c6bc0;bottom:0;z-index:9998;overflow:hidden}.thumb-view:hover>.thumb-viewer-title[data-v-216658d8]{opacity:1}.thumb-viewer-title[data-v-216658d8]{opacity:0;background-color:rgba(17,170,187,.85);color:#e0e0e0;text-shadow:0 1px 5px rgba(0,0,0,.2),0 2px 2px rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12);font-size:.9em;padding:0;-webkit-transition:opacity 1s;transition:opacity 1s;z-index:9999}.thumb-viewer-label[data-v-216658d8]{width:140px;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:middle;text-overflow:ellipsis}.thumb-viewer-label.thumb-closable[data-v-216658d8]{width:100px}.thumb-viewer-button[data-v-216658d8]{margin-top:5px;margin-left:0;margin-right:4px}.thumb-viewer-button>button[data-v-216658d8]{font-size:6px}.thumb-close[data-v-216658d8]{margin-left:5px}.dh-container{background-color:rgba(35,35,35,.8)}.dh-container .dh-spinner{width:28px;margin-left:16px;margin-right:16px}.dh-container .dh-tabs .q-tabs-head{background-color:transparent;padding:0!important}.dh-container .dh-tabs .q-tabs-head .q-tab{padding:10px 16px}.dh-container .dh-tabs .q-tabs-head .q-tab.active{color:#1ab!important}.dh-container .dh-tabs .q-tabs-head .q-tab .q-dot{background-color:#1ab;right:-3px;top:-1px}.dh-container .dh-actions{text-align:right;padding-right:12px}.dh-container .dh-actions .dh-button{padding:8px}.kd-is-app .q-layout-header{-webkit-box-shadow:none;box-shadow:none;border-bottom:1px solid var(--app-darken-background-color)}.kd-is-app .dh-container{background-color:var(--app-darken-background-color)}.kd-is-app .dh-actions .dh-button{color:var(--app-main-color)}.kd-is-app .dh-tabs .q-tabs-head{background-color:transparent;padding:0!important}.kd-is-app .dh-tabs .q-tabs-head .q-tab{padding:13px 16px;text-shadow:none}.kd-is-app .dh-tabs .q-tabs-head .q-tab.active{color:var(--app-main-color)!important}.kd-is-app .dh-tabs .q-tabs-head .q-tab .q-dot{background-color:var(--app-main-color)}.kd-is-app .dh-tabs .q-tabs-bar{color:var(--app-main-color);border-bottom-width:4px}.q-layout-drawer,.q-layout-header{-webkit-box-shadow:none!important;box-shadow:none!important;border-bottom:1px solid var(--app-main-color)}.dt-container{padding:16px 0;font-size:smaller!important}.dt-container .dt-tree-empty{margin:16px;color:#fff}.kd-is-app .klab-left{background-color:var(--app-darken-background-color)}.kd-is-app .klab-left .dt-tree-empty,.kd-is-app .klab-left .q-tree .q-tree-node,.kd-is-app .klab-left .text-white{color:var(--app-main-color)!important}.tabulator{position:relative;background-color:#fff;overflow:hidden;font-size:14px;text-align:left;-webkit-transform:translatez(0);transform:translatez(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableHolder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select{-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.tabulator .tabulator-header{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;border-bottom:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-col{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;border-right:1px solid #ddd;background-color:#fff;text-align:left;vertical-align:bottom;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{position:absolute;border:1px solid #999;background:#e6e6e6;pointer-events:none}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;border:1px solid #999;padding:1px;background:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-menu-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{position:relative;display:-ms-flexbox;display:-webkit-box;display:flex;border-top:1px solid #ddd;overflow:hidden;margin-right:-1px}.tabulator .tabulator-header .tabulator-col:first-child .tabulator-col-resize-handle.prev{display:none}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:2px;width:100%;text-align:center}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover{cursor:pointer;background-color:#e6e6e6}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter{color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter{color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{-ms-writing-mode:tb-rl;-webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;text-orientation:mixed;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;left:0;right:0;top:4px;bottom:auto}.tabulator .tabulator-header .tabulator-frozen{display:inline-block;position:absolute;z-index:10}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:600%;background:#f2f2f2!important;border-top:1px solid #ddd;border-bottom:1px solid #999;overflow:hidden}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-header .tabulator-frozen-rows-holder{min-width:600%}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableHolder{position:relative;width:100%;white-space:nowrap;overflow:auto;-webkit-overflow-scrolling:touch}.tabulator .tabulator-tableHolder:focus{outline:none}.tabulator .tabulator-tableHolder .tabulator-placeholder{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;width:100%}.tabulator .tabulator-tableHolder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%;min-width:100%}.tabulator .tabulator-tableHolder .tabulator-placeholder span{display:inline-block;margin:0 auto;padding:10px;color:#000;font-weight:700;font-size:20px}.tabulator .tabulator-tableHolder .tabulator-table{position:relative;display:inline-block;background-color:#fff;white-space:nowrap;overflow:visible;color:#333}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:#f2f2f2!important}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #ddd}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #ddd}.tabulator .tabulator-col-resize-handle{position:absolute;right:0;top:0;bottom:0;width:5px}.tabulator .tabulator-col-resize-handle.prev{left:0;right:auto}.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}.tabulator .tabulator-footer{padding:5px 10px;border-top:1px solid #999;background-color:#fff;text-align:right;color:#555;font-weight:700;white-space:nowrap;-ms-user-select:none;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-footer .tabulator-calcs-holder{-webkit-box-sizing:border-box;box-sizing:border-box;width:calc(100% + 20px);margin:-5px -10px 5px;text-align:left;background:#f2f2f2!important;border-bottom:1px solid #fff;border-top:1px solid #ddd;overflow:hidden}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{margin-bottom:-5px;border-bottom:none}.tabulator .tabulator-footer .tabulator-paginator{color:#555;font-family:inherit;font-weight:inherit;font-size:inherit}.tabulator .tabulator-footer .tabulator-page-size{display:inline-block;margin:0 5px;padding:2px 5px;border:1px solid #aaa;border-radius:3px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{display:inline-block;margin:0 2px;padding:2px 5px;border:1px solid #aaa;border-radius:3px;background:hsla(0,0%,100%,.2)}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover{cursor:pointer;background:rgba(0,0,0,.2);color:#fff}.tabulator .tabulator-loader{position:absolute;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;top:0;left:0;z-index:100;height:100%;width:100%;background:rgba(0,0,0,.4);text-align:center}.tabulator .tabulator-loader .tabulator-loader-msg{display:inline-block;margin:0 auto;padding:10px 20px;border-radius:10px;background:#fff;font-weight:700;font-size:16px}.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-loading{border:4px solid #333;color:#000}.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-error{border:4px solid #d00;color:#590000}.tabulator-row{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:22px;border-bottom:1px solid #ddd}.tabulator-row,.tabulator-row:nth-child(2n){background-color:#fff}.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}.tabulator-row.tabulator-selected{background-color:#9abcea}.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}.tabulator-row.tabulator-moving{position:absolute;border-top:1px solid #ddd;border-bottom:1px solid #ddd;pointer-events:none!important;z-index:15}.tabulator-row .tabulator-row-resize-handle{position:absolute;right:0;bottom:0;left:0;height:5px}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}.tabulator-row .tabulator-frozen{display:inline-block;position:absolute;background-color:inherit;z-index:10}.tabulator-row .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator-row .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator-row .tabulator-responsive-collapse{-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;padding:4px;border-right:1px solid #ddd;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabulator-row .tabulator-cell:last-of-type{border-right:none}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{border:1px;background:transparent}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:1px;background:transparent;color:#d00}.tabulator-row .tabulator-cell:first-child .tabulator-col-resize-handle.prev{display:none}.tabulator-row .tabulator-cell.tabulator-row-handle{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:2px;background:#666}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-row .tabulator-cell .tabulator-data-tree-control{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-ms-flex-align:center;-webkit-box-align:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;height:15px;width:15px;border-radius:20px;background:#666;color:#fff;font-weight:700;font-size:1.1em}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open,.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{display:inline-block;height:14px;width:14px;border-radius:14px}.tabulator-row.tabulator-group{-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#fafafa;font-weight:700;min-width:100%}.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-row.tabulator-group span{margin-left:10px;color:#666}.tabulator-menu{position:absolute;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;border:1px solid #ddd;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.2);box-shadow:0 0 5px 0 rgba(0,0,0,.2);font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-menu .tabulator-menu-item{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 10px;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:#fff}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;height:7px;width:7px;content:"";border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;vertical-align:top;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #ddd}.tabulator-edit-select-list{position:absolute;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;max-height:200px;background:#fff;border:1px solid #ddd;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-edit-select-list .tabulator-edit-select-list-item{padding:4px;color:#333}.tabulator-edit-select-list .tabulator-edit-select-list-item.active{color:#fff;background:#1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-select-list .tabulator-edit-select-list-item.focused{outline:1px solid #1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-item:hover{cursor:pointer;color:#fff;background:#1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-notice{padding:4px;color:#333;text-align:center}.tabulator-edit-select-list .tabulator-edit-select-list-group{border-bottom:1px solid #ddd;padding:6px 4px 4px;color:#333;font-weight:700}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:1px solid #ddd;border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:0;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:25px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-arrow{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:1px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:0;margin-left:5px;border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-right:0;margin-left:5px}.tabulator.tabulator-rtl .tabulator-col-resize-handle{position:absolute;left:0;right:auto}.tabulator.tabulator-rtl .tabulator-col-resize-handle.prev{right:0;left:auto}.tabulator-print-fullscreen{position:absolute;top:0;bottom:0;left:0;right:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-print-table-group{-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#fafafa;font-weight:700;min-width:100%}.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-print-table .tabulator-print-table-group span{margin-left:10px;color:#666}.tabulator-print-table .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-print-table .tabulator-data-tree-control{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-ms-flex-align:center;-webkit-box-align:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}.tabulator-print-table .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.ft-wrapper{margin-top:8px;width:100%;margin-bottom:40px}.ft-container{position:relative}.ft-container .ft-time{width:100%;position:relative}.ft-container .ft-time .ft-date-container{width:4px;height:14px;line-height:14px;background-color:#1ab;cursor:default}.ft-container .ft-time-origin-container{width:28px;height:14px;line-height:14px;color:#1ab;text-align:center;cursor:pointer}.ft-container .ft-time-origin-container .ft-time-origin{vertical-align:baseline;color:#1ab}.ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:#0277bd}.ft-container .ft-timeline-container .ft-timeline{height:14px;width:100%;top:0;margin:0;position:relative;padding:0;cursor:pointer}.ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{height:1px;background-color:#1ab;width:100%;position:absolute;top:6.5px;z-index:9000}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container{z-index:10000;width:4px;height:14px;position:absolute}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice{height:100%;width:100%;background-color:#1ab}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{font-size:.65em;color:#1ab;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ft-container .ft-timeline-container .ft-timeline .ft-actual-time{height:14px;font-size:22px;color:#1ab;position:absolute;top:-12px;left:-15px;z-index:10001}.kd-is-app .ft-container .ft-time .ft-date-container{background-color:var(--app-main-color)}.kd-is-app .ft-container .ft-time-origin-container,.kd-is-app .ft-container .ft-time-origin-container .ft-time-origin{color:var(--app-main-color)}.kd-is-app .ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:var(--app-link-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline{background-color:var(--app-background-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice,.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{background-color:var(--app-main-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-actual-time,.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{color:var(--app-main-color)}.ft-date-tooltip{width:150px}.ft-date-tooltip .ft-date-tooltip-content{text-align:center}.dv-empty-documentation{position:absolute;width:100%;height:80px;text-aling:center;top:calc((100% - 80px)/2);padding:0;text-align:center;font-size:60px;font-weight:700;color:#1ab}.dv-documentation-wrapper{position:absolute;left:0;width:100%;height:100%;overflow:auto;border:none}.dv-documentation .dv-content{padding:1em 2em}.dv-documentation .dv-content h1,.dv-documentation .dv-content h2,.dv-documentation .dv-content h3,.dv-documentation .dv-content h4,.dv-documentation .dv-content h5,.dv-documentation .dv-content h6{font-weight:700;color:#777;margin:0;padding:.6em 0}.dv-documentation .dv-content [id]{-webkit-transition:.3s ease;transition:.3s ease;border-radius:4px}.dv-documentation .dv-content [id].dv-selected{-webkit-animation:blinker 1.5s;animation:blinker 1.5s}.dv-documentation .dv-table-container .dv-table-title{font-weight:700;color:#777;font-size:larger;padding:16px 0}.dv-documentation .dv-table-container .dv-table-bottom{margin:8px 0 0}.dv-documentation .dv-figure-container{padding:16px;margin:16px 0;border:1px solid #1ab;max-width:960px}.dv-documentation .dv-figure-container .dv-figure-caption-wrapper{padding-bottom:8px}.dv-documentation .dv-figure-container .dv-figure-caption{color:#1ab;font-style:italic}.dv-documentation .dv-figure-container .dv-figure-timestring{color:#1ab;font-size:.8em;text-align:right}.dv-documentation .dv-figure-wrapper .dv-figure-image{text-align:center;overflow:hidden;max-width:640px}.dv-documentation .dv-figure-wrapper .dv-figure-image img{width:100%;max-width:640px}.dv-documentation .dv-figure-wrapper .dv-col-fill,.dv-documentation .dv-figure-wrapper .dv-figure-legend{padding-left:16px;width:320px;max-width:320px}.dv-documentation .dv-figure-wrapper .dv-figure-wait{max-width:640px;min-height:320px;height:auto;border:1px solid #eee;text-align:center}.dv-documentation .dv-figure-wrapper .dv-figure-wait .q-spinner{color:#9e9e9e}.dv-documentation .dv-figure-wrapper .hv-details-nodata,.dv-documentation .dv-figure-wrapper .hv-histogram-nodata{display:none}.dv-documentation .dv-figure-wrapper .hv-categories{margin-left:8px}.dv-documentation .dv-figure-wrapper .hv-categories .hv-category{overflow:hidden;color:#1ab}.dv-documentation .dv-citation{color:var(--app-main-color)}.dv-documentation .dv-citation a{display:inline-block;text-decoration:none;color:var(--app-main-color)}.dv-documentation .dv-citation a:visited{color:var(--app-main-color)}.dv-documentation .dv-citation a:after{content:"";display:block;width:0;border-bottom-width:1px;border-bottom-style:solid;-webkit-transition:width .3s;transition:width .3s}.dv-documentation .dv-citation a:not(.disabled):hover:after{width:100%}.dv-documentation .dv-citation a.disabled{cursor:default!important}.dv-documentation .dv-model-container,.dv-documentation .dv-resource-container{margin:8px 0;padding:8px 16px;color:#1ab;font-weight:400}.dv-documentation .dv-resource-container{border:1px solid #1ab;border-radius:10px!important;margin:16px 0}.dv-documentation .dv-resource-container.dv-selected{border-width:4px!important}.dv-documentation .dv-resource-container .dv-resource-title-container{background-color:var(--app-darklight-background-color);padding:8px;margin:8px 0 16px;border-radius:2px}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-title{font-size:var(--app-title-size);font-weight:300}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-originator{font-size:var(--app-subtitle-size);font-weight:300}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords{padding:8px 8px 0 0}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword,.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-separator,.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-wrapper{display:inline-block;font-size:var(--app-small-size);color:var(--app-link-color)}.dv-documentation .dv-resource-container .dv-resource-description{font-size:smaller}.dv-documentation .dv-resource-map{width:360px}.dv-documentation .dv-resource-map .dv-resource-authors{font-size:var(--app-small-size);padding-bottom:5px}.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author,.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-separator,.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-wrapper{display:inline-block}.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-separator{padding-right:8px}.dv-documentation .dv-resource-map .dv-resource-references{font-size:calc(var(--app-small-size) - 2px)}.dv-documentation .dv-resource-urls{margin:16px 0 0;font-size:var(--app-small-size)}.dv-documentation .klab-inline-link{font-size:var(--app-small-size);vertical-align:super}.dv-documentation .dv-button{padding:8px}.kd-is-app{background-image:none!important}.kd-is-app .kd-container{background-color:var(--app-darken-background-color)}.kd-is-app .dv-documentation-wrapper{border-top-left-radius:8px}.kd-is-app .dv-empty-documentation{color:var(--app-text-color)}.kd-is-app .dv-documentation,.kd-is-app .dv-documentation .dv-content{background-color:var(--app-background-color)}.kd-is-app .dv-documentation .dv-content h1,.kd-is-app .dv-documentation .dv-content h2,.kd-is-app .dv-documentation .dv-content h3,.kd-is-app .dv-documentation .dv-content h4,.kd-is-app .dv-documentation .dv-content h5,.kd-is-app .dv-documentation .dv-content h6{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-table-container .dv-table-title{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-figure-container .dv-figure-caption{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-figure-container .dv-figure-timestring,.kd-is-app .dv-documentation .dv-figure-container .dv-figure-wait .q-spinner{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-figure-container .hv-categories .hv-category,.kd-is-app .dv-documentation .dv-figure-container .hv-data-details,.kd-is-app .dv-documentation .dv-figure-container .hv-data-value,.kd-is-app .dv-documentation .dv-figure-container .hv-tooltip{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-model-container,.kd-is-app .dv-documentation .dv-resource-container{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-resource-container{border-color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-model-container{font-family:monospace}.kd-is-app .dv-documentation .dv-model-container .dv-selected{font-size:larger}.kd-is-app .dv-documentation .dv-model-container .dv-model-space{display:inline-block;width:2em}.kd-is-app .dv-documentation .dv-reference{margin:8px 0;padding:8px 0}.kd-is-app .dv-documentation .dv-reference.dv-selected{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-other-container{display:none}.kd-is-app .dv-documentation .klab-link{color:var(--app-link-color);font-weight:500!important}.kd-is-app .dv-documentation .klab-link:visited{color:var(--app-link-visited-color)}.kd-is-app .dv-documentation .dv-button{color:var(--app-main-color)}@media print{.kd-modal .modal-content .dv-figure-wrapper,.kd-modal .modal-content .dv-resource-container,.kd-modal .modal-content .dv-table-container{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid}.kd-modal .modal-content .dv-figure-container{border:none}.kd-modal .modal-content .dv-figure-container .dv-figure-caption,.kd-modal .modal-content .dv-figure-container .dv-figure-timestring{color:#000}.kd-modal .modal-content .hv-category{color:#000!important}.kd-modal .modal-content .ft-container .ft-time .ft-date-container{background-color:#fff}.kd-modal .modal-content .ft-container .ft-time-origin-container,.kd-modal .modal-content .ft-container .ft-time-origin-container .ft-time-origin,.kd-modal .modal-content .ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:#000}.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline{background-color:#fff}.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{background-color:#000}.kd-modal .modal-content .dv-model-container,.kd-modal .modal-content .dv-resource-container,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-actual-time,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{color:#000}.kd-modal .modal-content .dv-resource-container{border:1px solid #000}.kd-modal .modal-content .dv-resource-container .dv-resource-title-container{background-color:#fff}.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword,.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-separator,.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-wrapper,.kd-modal .modal-content .dv-resource-container .dv-resource-urls .klab-link{color:#000}}@-webkit-keyframes blinker{40%{opacity:1}60%{opacity:.2}80%{opacity:1}}@keyframes blinker{40%{opacity:1}60%{opacity:.2}80%{opacity:1}}.kexplorer-container.kd-is-app{background-color:var(--app-background-color)}.kd-modal .modal-content{border-radius:20px;padding:20px 0;background-color:#fff;overflow:hidden;width:1024px;min-height:80vh}.kd-modal .dv-documentation-wrapper .dv-content{padding-top:0}.kd-modal .dv-print-hide{position:absolute;top:5px;right:20px}@media print{body{min-width:100%}#q-app{display:none}.kd-modal.fullscreen{position:static}.kd-modal .modal-content{min-width:100%;max-width:100%;min-height:100%;max-height:100%;-webkit-box-shadow:none;box-shadow:none;width:100%!important;border-radius:0!important}.dv-documentation-wrapper p,.dv-documentation-wrapper table td{word-break:break-word}.dv-documentation-wrapper{display:block!important;position:relative!important;overflow:visible!important;overflow-y:visible!important;width:100%!important;height:100%!important;margin:0!important;left:0!important;border:none!important}.modal-backdrop{background:transparent!important}}.dip-container{color:#fff;padding-top:30px;width:100%}.dip-container .dip-content{margin-bottom:40px}.dip-container .dip-close{width:100%;text-align:right;position:absolute;left:0;top:0;color:#fff}.dip-container .simplebar-scrollbar:before{background:#888}.dip-container article{padding:0 10px}.dip-container article hr{height:1px;border:none;border-top:1px solid rgba(24,24,24,.5);border-bottom:1px solid #444}.dip-container article h1{color:#1ab;font-size:1.4em;margin:0 0 10px;font-weight:700;word-break:break-all}.dip-container article .dfe-fixed{color:hsla(0,0%,100%,.6);font-size:.7em}.dip-container article .dfe-fixed p{margin:0 0 .6em}.dip-container article .dfe-content{font-size:.8em}.dip-container article .dfe-content table{padding:10px 0}.dip-container article .dfe-content table th{color:#ffc300;text-align:left;border-bottom:1px solid;margin:0}.dip-container article .dfe-content table tr:nth-child(2n){background-color:hsla(0,0%,59.6%,.1)}.dip-container article .dfe-content mark{background-color:transparent;color:#ffc300;font-weight:700}.dip-container article .dfe-content div{margin:.2em 0 .8em;padding:5px;border-radius:5px;background-color:hsla(0,0%,59.6%,.4);word-break:break-all}.dip-container article .dfe-content div p{margin-bottom:.5em}.kd-is-app .dip-container{color:var(--app-text-color)}.kd-is-app .dip-close{color:var(--app-main-color)}.kd-is-app .simplebar-scrollbar:before{background:var(--app-main-color)}.kd-is-app article hr{border-top:none;border-bottom:1px solid var(--app-main-color)}.kd-is-app article h1{color:var(--app-title-color)}.kd-is-app article .dfe-fixed{color:var(--app-lighten-main-color)}.kd-is-app article .dfe-content table th{color:var(--app-title-color)}.kd-is-app article .dfe-content table tr:nth-child(2n){background-color:var(--app-darken-background-color,.1)}.kd-is-app article .dfe-content mark{color:var(--app-title-color)}.kd-is-app article .dfe-content div{background-color:var(--app-darken-background-color,.4)}.kd-is-app article .dfe-content div p{margin-bottom:.5em}.dfv-container{width:100%}.dfv-container.dfv-with-info{width:calc(100% - 320px)}.dfv-container.dfv-with-info #sprotty{right:320px}.dfv-container #sprotty{position:absolute;background-color:#e0e0e0;top:0;left:0;right:0;bottom:0}.dfv-container #sprotty svg{width:100%;height:100%;cursor:default}.dfv-container #sprotty svg:focus{outline-style:none}.dfv-container #sprotty svg .elknode{stroke:#b0bec5;fill:#eceff1;stroke-width:1}.dfv-container #sprotty svg .elkport{stroke:#78909c;stroke-width:1;fill:#78909c}.dfv-container #sprotty svg .elkedge{fill:none;stroke:#546e7a;stroke-width:1}.dfv-container #sprotty svg .elkedge.arrow{fill:#37474f}.dfv-container #sprotty svg .elklabel{stroke-width:0;stroke:#000;fill:#000;font-family:Roboto;font-size:10pt;dominant-baseline:middle}.dfv-container #sprotty svg .elkjunction{stroke:none;fill:#37474f}.dfv-container #sprotty svg .selected>rect{stroke-width:3px}.dfv-container #sprotty svg .elk-actuator,.dfv-container #sprotty svg .elk-instantiator,.dfv-container #sprotty svg .elk-resolver,.dfv-container #sprotty svg .elk-resources,.dfv-container #sprotty svg .elk-table,.dfv-container #sprotty svg .mouseover{stroke-width:2px}.dfv-container #sprotty svg .waiting.elk-resource{fill:#e8f5e9;stroke:#c8e6c9}.dfv-container #sprotty svg .waiting.elk-actuator,.dfv-container #sprotty svg .waiting.elk-resolver{fill:#cfd8dc;stroke:#b0bec5}.dfv-container #sprotty svg .waiting.elk-instantiator,.dfv-container #sprotty svg .waiting.elk-table{fill:#e0e0e0;stroke:#bdbdbd}.dfv-container #sprotty svg .processed.elk-resource{fill:#c8e6c9;stroke:#a5d6a7}.dfv-container #sprotty svg .processed.elk-actuator,.dfv-container #sprotty svg .processed.elk-resolver{fill:#b0bec5;stroke:#78909c}.dfv-container #sprotty svg .processed.elk-instantiator,.dfv-container #sprotty svg .processed.elk-table{fill:#bdbdbd;stroke:#9e9e9e}.dfv-container #sprotty svg .processing.elk-resource{fill:#a5d6a7;stroke:#81c784}.dfv-container #sprotty svg .processing.elk-actuator,.dfv-container #sprotty svg .processing.elk-resolver{fill:#78909c;stroke:#455a64}.dfv-container #sprotty svg .processing.elk-instantiator,.dfv-container #sprotty svg .processing.elk-table{fill:#9e9e9e;stroke:#757575}.dfv-info-container{position:absolute;background-color:rgba(35,35,35,.9);overflow:hidden;height:100%!important;width:320px;left:calc(100% - 320px);right:0;bottom:0;top:0;z-index:1001}.kd-is-app #dfv-container #sprotty{background-color:var(--app-darken-background-color);padding-left:16px}.kd-is-app .dfv-info-container{background-color:rgba(var(--app-rgb-background-color),.9)}.irm-container{padding:20px;width:60vw;overflow:hidden;position:relative}.irm-container h3,.irm-container h4,.irm-container h5,.irm-container p{margin:0;padding:0;color:#1ab}.irm-container h3,.irm-container p{margin-bottom:10px}.irm-container h3,.irm-container h4,.irm-container h5{line-height:1.4em}.irm-container h3{font-size:1.4em}.irm-container h4{font-size:1.2em}.irm-container h5{font-size:1em}.irm-container h4+p,.irm-container h5+p{color:#333;font-size:.8em;font-style:italic}.irm-container h5+p{padding-bottom:10px}.irm-container .q-tabs:not(.irm-tabs-hidden) .q-tabs-head,.irm-container h5+p{border-bottom:1px solid #1ab}.irm-container .q-tab:not(.irm-tabs-hidden){border-top-left-radius:5px;border-top-right-radius:5px;background-color:#1ab}.irm-container .q-tabs-position-top>.q-tabs-head .q-tabs-bar{border-bottom-width:10px;color:hsla(0,0%,100%,.3)}.irm-container .irm-fields-container{max-height:50vh;overflow:hidden;border:1px dotted #1ab;margin:10px 0}.irm-container .irm-fields-container .irm-fields-wrapper{padding:10px;overflow-x:hidden}.irm-container .irm-fields-container label{font-style:italic}.irm-container .irm-group{margin-bottom:30px}.irm-container .irm-buttons{position:absolute;bottom:0;right:0;margin:0 30px 10px 0}.irm-container .irm-buttons .q-btn{margin-left:10px}.scd-inactive-multiplier .q-input-target{color:#979797}#dmc-container.full-height{height:calc(100% - 86px)!important}#dmc-container #kt-out-container{height:100%;position:relative}#dmc-container #dmc-tree{-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none;background-color:hsla(0,0%,46.7%,.65);overflow:hidden}#dmc-container #dmc-tree #klab-tree-pane{height:100%}#dmc-container #dmc-tree #oi-container{height:calc(100% - 24px);max-height:calc(100% - 24px)}#dmc-container #dmc-tree #oi-container #oi-metadata-map-wrapper{height:calc(100% - 24px)}#dmc-container #dmc-tree #oi-container #oi-metadata-map-wrapper.k-with-histogram{height:calc(100% - 200px)}#dmc-container.dmc-dragging{cursor:move!important}#dmc-container .kbc-container{margin:2px;padding:0;height:10px}#dmc-container .q-card-main.dmc-loading{background:-webkit-gradient(linear,left top,right top,from(#333),to(#999));background:linear-gradient(90deg,#333,#999);background-size:200% 100%;-webkit-animation:loading-gradient 4s linear infinite;animation:loading-gradient 4s linear infinite}#dmc-container .q-card-main.dmc-loading .ktp-loading{background:transparent;-webkit-animation:none;animation:none}#dmc-container details{background-color:#777;border-top:1px solid #333}#dmc-container details #ktp-main-tree-arrow{background-color:#333}#dmc-container details[open]{border-bottom:1px solid #333}#dmc-container .dmc-timeline .ot-container{padding:9px 0}#lm-container{width:100%;overflow:hidden}#lm-container #spinner-leftmenu-container{padding-top:10px;padding-bottom:20px}#lm-container #spinner-leftmenu-div{width:44px;height:44px;margin-top:10px;margin-left:auto;margin-right:auto;background-color:#fff;border-radius:40px;border:2px solid}#lm-container #lm-actions,#lm-container #lm-content{float:left;border-right:1px solid hsla(0,0%,52.9%,.2)}#lm-container #lm-actions.klab-lm-panel,#lm-container #lm-content.klab-lm-panel{background-color:rgba(35,35,35,.5)}#lm-container .lm-separator{width:90%;left:5%;height:2px;border-top:1px solid rgba(24,24,24,.5);border-bottom:1px solid #444;margin:0 auto}#lm-container .klab-button{display:block;font-size:30px;width:42px;height:42px;line-height:42px;vertical-align:middle;padding:0 5px;margin:15px auto}#lm-container .klab-main-actions .klab-button:hover{color:#1ab!important}#lm-container .klab-main-actions .klab-button:active{color:#fff}#lm-container .klab-button-notification{width:10px;height:10px;top:5px;right:5px}#lm-container .sb-scales{margin:0}#lm-container .sb-scales .lm-separator{width:60%;border-top-style:dashed;border-bottom-style:dashed}#lm-container #lm-bottom-menu{width:100%;position:fixed;bottom:0;left:0}.ol-box{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;border:2px solid #00f}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width}.ol-overlay-container{will-change:left,right,top,bottom}.ol-unsupported{display:none}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:grab}.ol-control{position:absolute;background-color:hsla(0,0%,100%,.4);border-radius:4px;padding:2px}.ol-control:hover{background-color:hsla(0,0%,100%,.6)}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;-webkit-transition:opacity .25s linear,visibility 0s linear;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;-webkit-transition:opacity .25s linear,visibility 0s linear .25s;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}@media print{.ol-control{display:none}}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-size:1.14em;font-weight:700;text-decoration:none;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;background-color:rgba(0,60,136,.7)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em)}.ol-attribution ul{margin:0;padding:0 .5em;font-size:.7rem;line-height:1.375em;color:#000;text-shadow:0 0 2px #fff}.ol-attribution li{display:inline;list-style:none;line-height:inherit}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button,.ol-attribution ul{display:inline-block}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:hsla(0,0%,100%,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0;height:1.1em;line-height:1em}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:inline-block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:1px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:hsla(0,0%,100%,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.kexplorer-container{background-color:#263238;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHUlEQVQIW2NgY2OzYUACYL6+vn4UsgAynwwBEB8ARuIGpsZxGOoAAAAASUVORK5CYII=)}.klab-spinner{display:inline;vertical-align:middle;background-color:#fff;border-radius:40px;padding:3px;margin:0}.kexplorer-undocking{position:fixed;left:0;top:0;background-color:rgba(35,35,35,.3);border:4px solid hsla(0,0%,52.9%,.6);-webkit-animation-duration:.2s;animation-duration:.2s;cursor:move}.klab-left{position:absolute;background-color:rgba(35,35,35,.8)}.klab-large-mode.no-scroll{overflow:visible!important}.kapp-container .kcv-alert .modal-backdrop{background-color:transparent}.kapp-container .q-input-target{color:var(--app-text-color);background-color:var(--app-background-color);line-height:var(--app-line-height);height:auto}.kapp-container .q-btn{min-height:var(--app-line-height)}.kapp-container .q-no-input-spinner{-moz-appearance:textfield!important}.kapp-container .q-no-input-spinner::-webkit-inner-spin-button,.kapp-container .q-no-input-spinner::-webkit-outer-spin-button{-webkit-appearance:auto}.kapp-container .q-if:after,.kapp-container .q-if:before{border-bottom-style:none}.kapp-container .q-if .q-if-inner{min-height:unset}.kapp-container .q-if-baseline{line-height:var(--app-line-height)}.kapp-container .q-field-bottom,.kapp-container .q-field-icon,.kapp-container .q-field-label,.kapp-container .q-if,.kapp-container .q-if-addon,.kapp-container .q-if-control,.kapp-container .q-if-label,.kapp-container .q-if:before{-webkit-transition:none;transition:none}.kcv-main-container+.kcv-group{padding-bottom:1px}.kcv-main-container>.kcv-group{height:100%!important;border-bottom:1px solid var(--app-main-color)}.kcv-main-container>.kcv-group>.kcv-group-container>.kcv-group-content>.kcv-group>.kcv-group-content{padding-bottom:0!important}.kcv-main-container>.kcv-group .kcv-group-container{height:100%!important}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%!important}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content{padding-bottom:var(--app-smaller-mp);-ms-flex-pack:distribute;justify-content:space-around}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content .kcv-group{padding:calc(var(--app-smaller-mp)/4) 0}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content .kcv-pushbutton{margin:var(--app-large-mp) 0}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group-legend{color:var(--app-title-color);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2em;vertical-align:center;font-weight:300;font-size:1.2em}.kcv-main-container>.kcv-group .kcv-group-bottom{position:fixed;bottom:0;z-index:1000;background-color:var(--app-background-color);border-top:1px solid var(--app-main-color)}.kcv-collapsible .kcv-collapsible-header{background-color:var(--app-background-color);color:var(--app-title-color);border-bottom:1px solid var(--app-darken-background-color)}.kcv-collapsible .kcv-collapsible-header .q-item-label{font-size:var(--app-font-size)}.kcv-collapsible .kcv-collapsible-header .q-item-side{color:var(--app-title-color)}.kcv-collapsible .kcv-collapsible-header .q-item-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.kcv-collapsible .kcv-collapsible-header .q-item-icon.rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.kcv-collapsible .q-item{min-height:unset;padding:var(--app-small-mp)}.kcv-collapsible .q-collapsible-sub-item{padding:0}.kcv-collapsible .q-collapsible-sub-item>.kcv-group{border-top:1px solid var(--app-main-color);border-bottom:1px solid var(--app-main-color)}.kcv-tree-container{padding:var(--app-small-mp) 0;position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.kcv-tree-container .kcv-tree-legend{color:var(--app-title-color);padding:var(--app-small-mp);margin:0 var(--app-small-mp);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kcv-separator{padding:var(--app-large-mp) var(--app-small-mp);position:relative;border-bottom:1px solid var(--app-main-color);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1.2em}.kcv-separator .kcv-separator-icon{margin-right:var(--app-small-mp);font-size:1.2em;width:1.2em}.kcv-separator .kcv-separator-title{font-weight:300;font-size:1.2em;-webkit-box-flex:10;-ms-flex-positive:10;flex-grow:10}.kcv-separator .kcv-separator-right{font-size:1.3em;width:1.2em;-ms-flex-item-align:start;align-self:flex-start;cursor:pointer}.kcv-label{font-weight:400;color:var(--app-main-color);vertical-align:middle;line-height:calc(var(--app-line-height) + 4px);-ms-flex-item-align:center;align-self:center;padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-label.kcv-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kcv-label.kcv-with-icon{min-width:calc(1rem + var(--app-small-mp)*2)}.kcv-label .kcv-label-icon{margin-right:var(--app-small-mp)}.kcv-label.kcv-title{color:var(--app-alt-color);font-weight:700;cursor:default;margin-top:var(--app-smaller-mp)}.kcv-label.kcv-clickable{cursor:pointer}.kcv-text{margin:var(--app-large-mp) var(--app-small-mp);text-align:justify;position:relative;color:var(--app-text-color)}.kcv-text .kcv-internal-text{overflow:hidden}.kcv-text .kcv-internal-text p{padding:0 var(--app-small-mp);margin-bottom:var(--app-large-mp)}.kcv-text .kcv-internal-text strong{color:var(--app-title-color)}.kcv-text .kcv-collapse-button{width:100%;position:absolute;bottom:0;left:0;text-align:center;vertical-align:middle;line-height:20px;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s;cursor:pointer;background-color:rgba(var(--app-rgb-main-color),.1);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.kcv-text:hover .kcv-collapse-button{opacity:1}.kcv-text.kcv-collapse{margin-bottom:1em}.kcv-text.kcv-collapsed{padding-top:0;height:20px!important;overflow:hidden;padding-bottom:14px}.kcv-text.kcv-collapsed .kcv-internal-text{display:none}.kcv-text.kcv-collapsed .kcv-collapse-button{opacity:1;border-radius:4px}.kcv-form-element{margin:0 var(--app-small-mp)}.kcv-form-element:not(.kcv-roundbutton){border-radius:6px}.kcv-text-input{min-height:var(--app-line-height);vertical-align:middle;border:1px solid var(--app-main-color);background-color:var(--app-background-color);padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-text-input.kcv-search{margin-top:var(--app-smaller-mp)}.kcv-combo{padding:2px 10px;background-color:var(--app-background-color);border-radius:6px;border:1px solid var(--app-main-color)}.kcv-combo-option{color:var(--app-main-color);min-height:unset;padding:var(--app-small-mp) var(--app-large-mp)}.kcv-pushbutton{font-size:var(--app-font-size);margin:0 var(--app-small-mp)}.kcv-pushbutton .q-icon{color:var(--button-icon-color)}.kcv-reset-button,.kcv-roundbutton{margin:0 var(--app-smaller-mp)}.kcv-checkbutton{display:block;padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-checkbutton:not(.kcv-check-only){width:100%}.kcv-checkbutton.kcv-check-computing span,.kcv-checkbutton.kcv-check-waiting span{font-style:italic}.kcv-checkbutton.kcv-check-computing .q-icon:before,.kcv-checkbutton.kcv-check-waiting .q-icon:before{font-size:calc(1em + 1px);-webkit-animation:q-spin 2s linear infinite;animation:q-spin 2s linear infinite}.kcv-label-toggle{color:var(--app-darken-background-color);text-shadow:-1px -1px 0 var(--app-main-color)}.kcv-error-tooltip{background-color:var(--app-negative-color)}.kcv-browser{border-radius:8px}@-webkit-keyframes flash-button{50%{background-color:var(--flash-color)}}@keyframes flash-button{50%{background-color:var(--flash-color)}}body .klab-main-app{position:relative}body .kapp-footer-container,body .kapp-header-container,body .kapp-left-inner-container,body .kapp-main-container:not(.is-kexplorer),body .kapp-right-inner-container{color:var(--app-text-color);font-family:var(--app-font-family);font-size:var(--app-font-size);line-height:var(--app-line-height);background-color:var(--app-background-color);padding:0;margin:0}body .kapp-right-inner-container{position:absolute!important}body .kapp-right-inner-container .kapp-right-wrapper{overflow:hidden}body .kapp-left-inner-container{position:absolute!important}body .kapp-left-inner-container .kapp-left-wrapper{overflow:hidden}.kapp-main.q-layout{border:0;padding:0;margin:0}.kapp-main .simplebar-scrollbar:before{background-color:var(--app-main-color)}.kapp-header{background-color:var(--app-background-color);padding:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;height:calc(40px + var(--app-title-size) + var(--app-subtitle-size));min-height:calc(40px + var(--app-title-size) + var(--app-subtitle-size))}.kapp-header .kapp-logo-container{-ms-flex-item-align:center;align-self:center;margin:0 10px}.kapp-header .kapp-logo-container img{max-width:80px;max-height:80px}.kapp-header .kapp-title-container{color:var(--app-title-color);-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:center;align-self:center;padding-left:10px}.kapp-header .kapp-title-container .kapp-title{height:var(--app-title-size);line-height:var(--app-title-size);font-weight:500;font-size:var(--app-title-size);margin-bottom:6px}.kapp-header .kapp-title-container .kapp-version{display:inline-block;font-weight:300;font-size:var(--app-subtitle-size);margin-left:16px;position:relative;bottom:3px;padding:0 4px;opacity:.5;border:1px solid var(--app-main-color)}.kapp-header .kapp-title-container .kapp-subtitle{height:var(--app-subtitle-size);line-height:var(--app-subtitle-size);font-size:var(--app-subtitle-size);font-weight:300}.kapp-header .kapp-header-menu-container{position:absolute;right:0;padding:10px 16px}.kapp-header .kapp-header-menu-container .kapp-header-menu-item{margin:0 0 0 16px;color:var(--app-title-color);cursor:pointer}.kapp-header .kapp-actions-container .klab-main-actions{margin:0 1px 0 0;min-width:178px}.kapp-header .kapp-actions-container .klab-main-actions .klab-button{width:60px;height:45px;font-size:26px;margin:0 -1px 0 0;text-align:center;padding:10px 0;border-top-left-radius:4px!important;border-top-right-radius:4px!important;border:1px solid var(--app-main-color);border-bottom:0;text-shadow:0 1px 2px var(--app-lighten-background-color);color:var(--app-main-color)!important;position:relative;bottom:-1px}.kapp-header .kapp-actions-container .klab-main-actions .klab-button.active{background-color:var(--app-darken-background-color)}.kapp-header .kapp-actions-container .klab-main-actions .klab-button:hover:not(.active){background-color:var(--app-darken-background-color);border-bottom:1px solid var(--app-main-color)}.kapp-header .kapp-actions-container .klab-main-actions .klab-button-notification{width:11px;height:11px;border-radius:10px;top:5px;right:11px;background-color:var(--app-main-color)!important;border:1px solid var(--app-background-color)}.kcv-dir-vertical{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%!important}.klab-close-app{position:absolute;z-index:100000}.klab-close-app.klab-close-app-on-left,.klab-close-app.klab-close-app-on-panel{height:32px;width:32px;opacity:.2}.klab-close-app.klab-close-app-on-left .q-icon,.klab-close-app.klab-close-app-on-panel .q-icon{font-size:16px}.klab-close-app.klab-close-app-on-left:hover,.klab-close-app.klab-close-app-on-panel:hover{height:50px;width:50px;opacity:1}.klab-close-app.klab-close-app-on-left:hover .q-icon,.klab-close-app.klab-close-app-on-panel:hover .q-icon{font-size:22px}.klab-close-app.klab-close-app-on-left:hover{-webkit-transform:translate(-22px);transform:translate(-22px)}.klab-close-app.klab-close-app-on-panel{background-color:var(--app-main-color);color:var(--app-background-color)}.kapp-loading{background-color:var(--app-background-color);padding:16px;text-align:center;min-width:60px;border-radius:20px}.kapp-loading div{margin-top:15px;color:var(--app-main-color)}.km-main-container .km-title{background-color:var(--app-main-color)!important;color:var(--app-background-color)}.km-main-container .km-title .q-toolbar-title{font-size:var(--app-modal-title-size)}.km-main-container .km-title .km-subtitle{font-size:var(--app-modal-subtitle-size)}.km-main-container .km-content{overflow:hidden;border-radius:8px;border:1px solid var(--app-main-color);margin:16px 16px 0;padding:8px;background-color:var(--app-background-color)}.km-main-container .km-content .kcv-main-container>.kcv-group{border:none}.km-main-container .km-buttons{margin:8px 16px}.km-main-container .km-buttons .klab-button{font-size:16px;background-color:var(--app-main-color);color:var(--app-background-color)!important}.ks-stack-container{position:relative;height:calc(100% - 30px);margin:30px 20px 0}.ks-stack-container .ks-layer{position:absolute;top:0;left:0;bottom:90px;right:0;opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out;overflow:hidden}.ks-stack-container .ks-layer.ks-top-layer{z-index:999!important;opacity:1}.ks-stack-container li{padding-bottom:10px}.ks-stack-container .ks-layer-caption{position:absolute;padding:12px;width:auto;height:auto;color:#616161;max-height:100%;overflow:auto}.ks-stack-container .ks-layer-caption .ks-caption-title{font-size:24px;letter-spacing:normal;margin:0;text-align:center}.ks-stack-container .ks-layer-caption .ks-caption-text{font-size:16px}.ks-stack-container .ks-layer-image{position:absolute;overflow:hidden}.ks-stack-container .ks-layer-image img{width:auto;height:auto}.ks-stack-container .ks-middle{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ks-stack-container .ks-middle.ks-center{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ks-stack-container .ks-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.ks-stack-container .ks-center:not(.ks-layer-image){width:100%}.ks-stack-container .ks-top{top:0}.ks-stack-container .ks-bottom{bottom:0}.ks-stack-container .ks-left{left:0}.ks-stack-container .ks-right{right:0}.ks-stack-container .ks-navigation{width:100%;text-align:center;position:absolute;bottom:50px;right:0;z-index:10000;vertical-align:middle;-webkit-transition:opacity .3s;transition:opacity .3s;height:40px;border-bottom:1px solid #eee}.ks-stack-container .ks-navigation.ks-navigation-transparent{opacity:.6}.ks-stack-container .ks-navigation:hover{opacity:1}@media (min-width:1600px){.ks-stack-container .ks-caption-title{font-size:32px!important;margin:0 0 1em!important}.ks-stack-container .ks-caption-text{font-size:18px!important}}.klab-modal-container .klab-modal-inner .kp-no-presentation{font-weight:700;position:relative}.klab-modal-container .klab-modal-inner .kp-no-presentation .kp-refresh-btn{position:relative}.klab-modal-container .klab-modal-inner .kp-no-presentation .klab-small{font-size:smaller}.klab-modal-container .kp-help-titlebar{position:absolute;width:100%;height:25px;padding:8px 0 0 20px;z-index:100000}.klab-modal-container .kp-help-titlebar .kp-link{font-size:11px;color:#616161;cursor:pointer;float:left;padding:0 10px 0 0}.klab-modal-container .kp-help-titlebar .kp-link:hover:not(.kp-link-current){text-decoration:underline;color:#1ab}.klab-modal-container .kp-help-titlebar .kp-link-current{cursor:default;text-decoration:underline}.klab-modal-container .kp-carousel .kp-slide{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.klab-modal-container .kp-carousel .kp-main-content{-webkit-box-flex:1;-ms-flex:auto;flex:auto}.klab-modal-container .kp-carousel .kp-main-content .kp-main-image{text-align:center;background-repeat:no-repeat;background-size:contain;background-position:50%;height:calc(100% - 40px)}.klab-modal-container .kp-main-title,.klab-modal-container .kp-nav-tooltip{position:absolute;bottom:0;vertical-align:middle;font-size:20px;line-height:50px;height:50px;text-align:center;width:80%;margin-left:10%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.klab-modal-container .kp-nav-tooltip{-webkit-transition:opacity .3s;transition:opacity .3s;opacity:0}.klab-modal-container .kp-nav-tooltip.visible{opacity:1}.klab-modal-container .kp-navigation{position:absolute;bottom:0;padding:10px 10px 10px 15px;vertical-align:middle}.klab-modal-container .kp-navigation .kp-navnumber-container{padding-left:3px;position:relative;float:left}.klab-modal-container .kp-navigation .kp-navnumber-container:hover .kp-nav-current,.klab-modal-container .kp-navigation .kp-navnumber-container:hover .kp-nav-number{opacity:1;background-color:rgba(97,97,97,.7)}.klab-modal-container .kp-navigation .kp-nav-number{height:30px;width:30px;line-height:30px;vertical-align:middle;color:#fff;text-align:center;padding:0;cursor:pointer;border-radius:20px;background-color:rgba(97,97,97,.4);opacity:.7;z-index:10000}.klab-modal-container .kp-navigation .kp-nav-number.kp-nav-current,.klab-modal-container .kp-navigation .kp-nav-number:hover{opacity:1;background-color:rgba(97,97,97,.7)}.klab-modal-container .internal-link{cursor:pointer}.klab-modal-container .internal-link:hover{color:#ffc300}.klab-modal-container .kp-icon-close-popover,.klab-modal-container .kp-icon-refresh-size{position:absolute;top:1px;right:2px;width:22px;height:22px;z-index:200000}.klab-modal-container .kp-icon-close-popover .q-focus-helper,.klab-modal-container .kp-icon-refresh-size .q-focus-helper{opacity:0}.klab-modal-container .kp-icon-close-popover:hover .mdi-close-circle-outline:before,.klab-modal-container .kp-icon-refresh-size:hover .mdi-close-circle-outline:before{content:"\F0159"}.klab-modal-container .kp-icon-refresh-size{right:24px}.klab-modal-container .kp-icon-refresh-size:hover{color:#1ab!important}.klab-modal-container .kp-checkbox{position:absolute;right:20px;bottom:10px;font-size:10px}.kn-modal-container .modal-content{max-width:640px!important}.kn-title{font-size:var(--app-title-size);color:var(--app-title-color)}.kn-content{font-size:var(--app-text-size)}.kn-checkbox,.kn-content{color:var(--app-text-color)}.kn-checkbox{position:absolute;left:20px;bottom:16px;font-size:10px}[data-simplebar]{position:relative;z-index:0;overflow:hidden!important;max-height:inherit;-webkit-overflow-scrolling:touch}[data-simplebar=init]{display:-webkit-box;display:-ms-flexbox;display:flex}[data-simplebar] .simplebar-content,[data-simplebar] .simplebar-scroll-content{overflow:hidden}[data-simplebar=init] .simplebar-content,[data-simplebar=init] .simplebar-scroll-content{overflow:scroll}.simplebar-scroll-content{overflow-x:hidden!important;min-width:100%!important;max-height:inherit!important;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.simplebar-content{overflow-y:hidden!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important;min-height:100%!important}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;width:11px;pointer-events:none}.simplebar-scrollbar{position:absolute;right:2px;width:7px;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:0;right:0;opacity:0;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.simplebar-track .simplebar-scrollbar.visible:before{opacity:.5;-webkit-transition:opacity 0 linear;transition:opacity 0 linear}.simplebar-track.vertical{top:0}.simplebar-track.vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.horizontal{left:0;width:auto;height:11px}.simplebar-track.horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.horizontal.simplebar-track .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track{right:auto;left:0}[data-simplebar-direction=rtl] .simplebar-track.horizontal{right:0}:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.klab-wait-app{min-width:50px}.klab-wait-app .klab-wait-app-container{text-align:center;width:100%;font-weight:300;font-size:1.5em;padding:20px}.klab-wait-app .klab-wait-app-container p{margin-bottom:0}.klab-wait-app .klab-wait-app-container strong{color:#1ab}.klab-wait-app .klab-wait-app-container .q-spinner{margin-bottom:16px}.klab-wait-app .klab-wait-app-container .klab-app-error,.klab-wait-app .klab-wait-app-container .klab-app-error strong{color:#ff6464}.klab-wait-app .klab-wait-app-container a.klab-app-refresh{display:block;color:#1ab;padding:8px 0 0;text-decoration:none}.klab-wait-app .klab-wait-app-container a.klab-app-refresh:after{content:"\F0450";display:inline-block;font-family:Material Design Icons;margin:2px 0 0 8px;vertical-align:bottom;-webkit-transition:.6s;transition:.6s}.klab-wait-app .klab-wait-app-container a.klab-app-refresh:hover:after{-webkit-transform:rotate(1turn);transform:rotate(1turn)} \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/css/74fd8965.7c485e34.css b/klab.engine/src/main/resources/static/ui/css/74fd8965.7c485e34.css deleted file mode 100644 index bb9516200c..0000000000 --- a/klab.engine/src/main/resources/static/ui/css/74fd8965.7c485e34.css +++ /dev/null @@ -1 +0,0 @@ -[data-v-b602390c]:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.spinner-circle[data-v-b602390c]{fill:#da1f26;-webkit-transform:rotate(6deg);transform:rotate(6deg)}.spinner-circle.moving[data-v-b602390c]{-webkit-animation:spin-data-v-b602390c 2s cubic-bezier(.445,.05,.55,.95) infinite;animation:spin-data-v-b602390c 2s cubic-bezier(.445,.05,.55,.95) infinite;-webkit-animation-delay:.4s;animation-delay:.4s}@-webkit-keyframes spin-data-v-b602390c{0%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}80%{-webkit-transform:rotate(366deg);transform:rotate(366deg)}to{-webkit-transform:rotate(366deg);transform:rotate(366deg)}}@keyframes spin-data-v-b602390c{0%{-webkit-transform:rotate(6deg);transform:rotate(6deg)}80%{-webkit-transform:rotate(366deg);transform:rotate(366deg)}to{-webkit-transform:rotate(366deg);transform:rotate(366deg)}}#modal-connection-status.fullscreen{z-index:10000}#modal-connection-status .modal-borders{border-radius:40px}#modal-connection-status #modal-spinner{margin-right:10px;margin-left:1px}#modal-connection-status .modal-klab-content>span{display:inline-block;line-height:100%;vertical-align:middle;margin-right:15px}#modal-connection-status .modal-content{min-width:200px}.klab-settings-container{background-color:var(--app-background-color)!important}.klab-settings-container .klab-settings-button{position:fixed;bottom:28px;right:26px;opacity:.2}.klab-settings-container .klab-settings-button:hover{opacity:1}.klab-settings-container .klab-settings-button:hover .q-btn-fab{height:56px;width:56px}.klab-settings-container .klab-settings-button:hover .q-btn-fab .q-icon{font-size:28px}.klab-settings-container .klab-settings-button.klab-df-info-open{right:346px}.klab-settings-container .klab-settings-button .q-btn-fab{height:42px;width:42px}.klab-settings-container .klab-settings-button .q-btn-fab .q-icon{font-size:21px}.klab-settings-container .klab-settings-button .q-btn-fab-mini{height:24px;width:24px}.klab-settings-container .klab-settings-button .q-btn-fab-mini .q-icon{font-size:12px}.klab-settings-container .klab-settings-button.klab-fab-open{opacity:1}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab{height:56px;width:56px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab .q-icon{font-size:28px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab-mini{height:48px;width:48px}.klab-settings-container .klab-settings-button.klab-fab-open .q-btn-fab-mini .q-icon{font-size:24px}.klab-settings-container .q-fab-up{bottom:100%;padding-bottom:10%}.ks-container{background-color:var(--app-background-color);padding:15px 20px;border-radius:5px;width:500px}.ks-container .ks-title{font-size:1.3em;color:var(--app-title-color);font-weight:400;margin-bottom:10px}.ks-container .ks-title .ks-title-text{display:inline-block}.ks-container .ks-title .ks-reload-button{display:inline-block;padding-left:10px;opacity:.3}.ks-container .ks-title .ks-reload-button:hover{opacity:1}.ks-container .ks-debug,.ks-container .ks-term{position:absolute;top:8px}.ks-container .ks-debug{right:46px}.ks-container .ks-term{right:16px}.ks-container .kud-owner{border:1px solid var(--app-main-color);border-radius:5px;padding:20px}.ks-container .kud-owner .kud-label{display:inline-block;width:100px;line-height:2.5em;vertical-align:middle;color:var(--app-title-color)}.ks-container .kud-owner .kud-value{display:inline-block;line-height:30px;vertical-align:middle;color:var(--app-text-color)}.ks-container .kud-owner .kud-value.kud-group{padding-right:10px}.ks-container .kal-apps .kal-app{margin-bottom:16px}.ks-container .kal-apps .kal-app .kal-app-description{display:-webkit-box;display:-ms-flexbox;display:flex;padding:8px 16px;border-radius:6px 16px 6px 16px;border:1px solid transparent;border-color:var(--app-lighten75-main-color)}.ks-container .kal-apps .kal-app .kal-app-description:not(.kal-active){cursor:pointer}.ks-container .kal-apps .kal-app .kal-app-description.kal-active{border-color:var(--app-darken-main-color)}.ks-container .kal-apps .kal-app .kal-app-description:hover{background-color:var(--app-lighten75-main-color)}.ks-container .kal-apps .kal-app .kal-app-description .kal-logo{-ms-flex-item-align:start;align-self:start;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:50px;height:50px;margin:0 16px 0 0}.ks-container .kal-apps .kal-app .kal-app-description .kal-logo img{display:block;max-width:50px;max-height:50px;vertical-align:middle}.ks-container .kal-apps .kal-app .kal-app-description .kal-info{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.ks-container .kal-apps .kal-app .kal-app-description .kal-info .kal-name{color:var(--app-title-color);font-weight:400}.ks-container .kal-apps .kal-app .kal-app-description .kal-info .kal-description{color:var(--app-text-color);font-size:80%}.ks-container .kal-apps .kal-locales span{display:inline-block;padding-left:2px}.ks-container .kal-apps .kal-locales span.flag-icon{font-size:90%}.ks-container .kal-apps .kal-locales .kal-lang-selector{height:32px;font-size:90%;padding:0 4px;border-radius:4px}.ks-container .kal-apps .kal-locales .kal-lang-selector .q-input-target{color:var(--app-main-color)}.kud-group-detail,.kud-group-id{text-align:center}.kud-group-detail{font-style:italic}.kud-no-group-icon{background-color:var(--app-title-color);text-align:center;color:var(--app-background-color);padding:2px 0 0;cursor:default;border-radius:15px}.kud-img-logo,.kud-no-group-icon{width:30px;height:30px;line-height:30px}.kud-img-logo{display:inline-block;vertical-align:middle}.klab-setting-tooltip{background-color:var(--app-main-color)}.kal-locale-options{color:var(--app-main-color);font-size:90%}.kal-locale-options .q-item-side{color:var(--app-main-color);min-width:0}.xterm{position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.kterm-container{z-index:4999}.kterm-container .kterm-header{border-top-right-radius:8px;border-top-left-radius:8px;height:30px;border-top:1px solid hsla(0,0%,100%,.5);border-left:1px solid hsla(0,0%,100%,.5);border-right:1px solid hsla(0,0%,100%,.5);cursor:move;opacity:.9;z-index:5001}.kterm-container .kterm-header .kterm-button{position:absolute}.kterm-container .kterm-header .kterm-close{top:0;right:0}.kterm-container .kterm-header .kterm-minimize{top:0;right:30px}.kterm-container .kterm-header .kterm-drag{top:0;right:60px}.kterm-container .kterm-header .kterm-delete-history{top:0;right:90px}.kterm-container.kterm-minimized{width:90px;position:absolute;bottom:25px;left:25px;top:unset}.kterm-container.kterm-minimized .kterm-header{border-bottom-left-radius:10px;border-bottom-right-radius:10px;border:none}.kterm-container.kterm-focused{z-index:5000}.kterm-container .kterm-terminal{border:1px solid hsla(0,0%,100%,.5)}.kterm-tooltip{background-color:var(--app-main-color)!important}.kaa-container{background-color:hsla(0,0%,99.2%,.8);padding:15px;border-radius:5px}.kaa-container .kaa-content{border:1px solid var(--app-main-color);border-radius:5px;padding:20px;color:var(--app-title-color)}.kaa-container .kaa-button{margin:10px 0 0;width:100%;text-align:right}.kaa-container .kaa-button .q-btn{margin-left:10px}.klab-destructive-actions .klab-button{color:#ff6464!important}#ks-container{overflow-x:hidden;overflow-y:hidden;white-space:nowrap}#ks-container #ks-internal-container{float:left}.ks-tokens{display:inline-block;margin-right:-3px;padding:0 3px}.ks-tokens-accepted{font-weight:600}.ks-tokens.selected{outline:none}.bg-semantic-elements{border-radius:4px;border-style:solid;border-width:2px}.q-tooltip{max-width:512px}.q-popover{max-width:512px!important;border-radius:10px}#ks-autocomplete{scrollbar-color:#e5e5e5 transparent;scrollbar-width:thin}#ks-autocomplete .q-item.text-faded{color:#333}#ks-autocomplete .q-item.ka-separator{padding:8px 16px 5px;min-height:0;font-size:.8em;border-bottom:1px solid #e0e0e0}#ks-autocomplete .q-item.ka-separator.q-select-highlight{background-color:transparent}#ks-autocomplete .q-item:not(.text-faded):active{background:hsla(0,0%,74.1%,.5)}#ks-autocomplete::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}#ks-autocomplete::-webkit-scrollbar{width:6px;background-color:transparent}#ks-autocomplete::-webkit-scrollbar-thumb{border-radius:10px;width:5px;background-color:#e5e5e5}.ks-tokens-fuzzy{width:100%}.ks-tokens-klab{width:256px}#ks-search-input{background-color:transparent}.ks-search-focused{padding:0;border-radius:4px;background-color:#e4fdff}.ks-search-focused,.ks-search-focused.ks-fuzzy{-webkit-transition:background-color .8s;transition:background-color .8s}.ks-search-focused.ks-fuzzy{background-color:#e7ffdb}#ks-autocomplete .q-item-side.q-item-section.q-item-side-left{-ms-flex-item-align:start;align-self:start}#ks-autocomplete .q-item-sublabel{font-size:80%}#ks-autocomplete .text-faded .q-item-section{font-size:1rem}.kl-model-desc-container{width:400px;background-color:#fff;color:#616161;border:1px solid #e0e0e0;padding:10px}.kl-model-desc-container .kl-model-desc-title{float:left;padding:5px 0;font-size:larger;margin-bottom:5px}.kl-model-desc-container .kl-model-desc-state{float:right;display:inline-block;padding:4px;border-radius:4px;color:#fff}.kl-model-desc-container .kl-model-desc-content{padding:10px 0;clear:both;border-top:1px solid #e0e0e0}.st-container.marquee.hover-active:hover .st-text{-webkit-animation:klab-marquee linear infinite alternate;animation:klab-marquee linear infinite alternate}.st-container.marquee.hover-active:hover .st-edges{opacity:inherit}.st-container.marquee.hover-active:not(:hover) .st-text{left:0!important;width:100%;text-overflow:ellipsis}.st-container.marquee:not(.hover-active) .st-text{-webkit-animation:klab-marquee linear infinite alternate;animation:klab-marquee linear infinite alternate}.st-container.marquee:not(.hover-active) .st-edges{opacity:inherit}.st-container.marquee:not(.hover-active):hover .st-text{-webkit-animation-play-state:paused;animation-play-state:paused}.st-container.marquee:not(.hover-active):hover:not(.active) .st-accentuate{color:rgba(0,0,0,.8);cursor:default}.st-container.marquee .st-text{position:relative;display:inline-block;overflow:hidden}.st-placeholder{color:#777;opacity:.6}.st-edges{left:-5px;right:0;top:0;bottom:0;position:absolute;height:100%;opacity:0;-webkit-mask-image:-webkit-gradient(linear,left top,right top,from(#000),to(transparent)),-webkit-gradient(linear,right top,left top,from(#000),to(transparent));-webkit-mask-image:linear-gradient(90deg,#000,transparent),linear-gradient(270deg,#000,transparent);mask-image:-webkit-gradient(linear,left top,right top,from(#000),to(transparent)),-webkit-gradient(linear,right top,left top,from(#000),to(transparent));mask-image:linear-gradient(90deg,#000,transparent),linear-gradient(270deg,#000,transparent);-webkit-mask-size:5% 100%;mask-size:5% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:left center,right center;mask-position:left center,right center;-webkit-transition:background-color .8s,opacity .8s;transition:background-color .8s,opacity .8s}@-webkit-keyframes klab-marquee{0%{left:0}}@keyframes klab-marquee{0%{left:0}}.sr-container{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.sr-container.sr-light{color:#333;text-shadow:0 0 1px #ccc}.sr-container.sr-light .sr-spacescale{background-color:#333;color:#ccc}.sr-container.sr-dark{color:#ccc;text-shadow:0 0 1px #333}.sr-container.sr-dark .sr-spacescale{background-color:#ccc;color:#333}.sr-container .sr-editables{display:inline}.sr-container .sr-editables .klab-item{text-align:center}.sr-container .sr-no-scalereference .sr-scaletype,.sr-container .sr-scalereference .sr-scaletype{width:30px}.sr-container .sr-no-scalereference .sr-scaletype span,.sr-container .sr-scalereference .sr-scaletype span{display:block;height:24px;line-height:24px}.sr-container .sr-no-scalereference .sr-locked,.sr-container .sr-scalereference .sr-locked{width:30px}.sr-container .sr-no-scalereference .sr-locked,.sr-container .sr-no-scalereference .sr-scaletype,.sr-container .sr-scalereference .sr-locked,.sr-container .sr-scalereference .sr-scaletype{text-align:center;font-size:12px}.sr-container .sr-no-scalereference .sr-locked.sr-icon,.sr-container .sr-no-scalereference .sr-scaletype.sr-icon,.sr-container .sr-scalereference .sr-locked.sr-icon,.sr-container .sr-scalereference .sr-scaletype.sr-icon{font-size:20px}.sr-container .sr-no-scalereference .sr-description,.sr-container .sr-scalereference .sr-description{font-size:12px;width:calc(100% - 60px)}.sr-container .sr-no-scalereference .sr-spacescale,.sr-container .sr-scalereference .sr-spacescale{font-size:10px;height:20px;line-height:20px;width:20px;border-radius:10px;text-align:center;padding:0;display:inline-block;margin:0 5px}.sr-container .sr-no-scalereference.sr-full .sr-description,.sr-container .sr-scalereference.sr-full .sr-description{width:calc(100% - 90px)}.sr-container.sr-vertical{margin:5px 0}.sr-container.sr-vertical .klab-item{float:left;width:100%;margin:5px 0}.sr-container.sr-vertical .sr-spacescale{width:20px;margin-left:calc(50% - 10px)}.modal-scroll{overflow:hidden;max-height:600px}.mdi-lock-outline{color:#1ab}.sr-tooltip{text-align:center;padding:4px 0}.sr-tooltip.sr-time-tooltip{color:#ffc300}.mcm-icon-close-popover{position:absolute;right:4px;top:6px}.mcm-menubutton{top:6px;right:5px}.mcm-contextbutton{right:-5px}.mcm-container{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:180px}.mcm-container.mcm-context-label{width:250px}#btn-reset-context{width:15px;height:15px}#mc-eraserforcontext{padding:0 0 0 3px}.mcm-actual-context{color:#999}.q-icon.mcm-contextbutton{position:absolute;top:7px;right:5px}.mcm-context-label .klab-menuitem{width:calc(100% - 20px)}.mcm-copy-icon{padding:0 10px 0 5px;color:#eee}.mcm-copy-icon:hover{cursor:pointer;color:#212121}.klab-version{font-size:10px;width:100%;text-align:right;color:#9e9e9e}#ksb-container{width:100%;-webkit-transition:background-color .8s;transition:background-color .8s;line-height:inherit}#ksb-container.ksb-docked{-webkit-transition:width .5s;transition:width .5s}#ksb-container.ksb-docked #ksb-search-container{position:relative;padding:16px 10px;height:52px;-webkit-transition:background-color .8s;transition:background-color .8s}#ksb-container.ksb-docked #ksb-search-container .ksb-context-text{width:90%;position:relative}#ksb-container.ksb-docked #ksb-search-container .ksb-status-texts{width:90%;position:relative;bottom:2px}#ksb-container.ksb-docked #ksb-search-container .mcm-menubutton{top:11px}#ksb-container:not(.ksb-docked){border-radius:30px;cursor:move}#ksb-container:not(.ksb-docked) #ks-container,#ksb-container:not(.ksb-docked) .ksb-context-text{width:85%;position:absolute;left:45px;margin-top:8px}#ksb-container:not(.ksb-docked) .ksb-status-texts{width:85%;position:absolute;bottom:-4px;left:45px;margin:0 auto}#ksb-container #ksb-spinner{float:left;border:none;width:40px;height:40px}#ksb-container #ksb-undock{text-align:right;height:32px}#ksb-container #ksb-undock #ksb-undock-icon{padding:6px 10px;text-align:center;display:inline-block;cursor:pointer;-webkit-transition:.1s;transition:.1s;color:#999}#ksb-container #ksb-undock #ksb-undock-icon:hover{color:#1ab;-webkit-transform:translate(5px) rotate(33deg);transform:translate(5px) rotate(33deg)}#ksb-container .ksb-context-text,#ksb-container .ksb-status-texts{white-space:nowrap;overflow:hidden}#ksb-container .ksb-status-texts{font-size:11px;color:rgba(0,0,0,.4);height:15px}#ksb-container .mdi-lock-outline{position:absolute;right:35px;top:12px}.kbc-container{position:relative;height:20px;font-size:10px;padding:2px 5px}.kbc-container span{color:#eee}.kbc-container span:not(:last-child){cursor:pointer;color:#1ab}.kbc-container span:not(:last-child):hover{color:#ffc300}.kbc-container span:not(:last-child):after{content:" / ";color:#eee}.vue-splitter{height:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden}.vue-splitter .splitter-pane{height:inherit;overflow:hidden;padding:0}.vue-splitter .left-pane{white-space:nowrap}.vue-splitter .right-pane{word-wrap:break-word}.splitter-actions{width:2em;height:2em}#splitter-close{position:absolute;right:0}.splitter-controllers{background-color:#000;text-align:center;height:20px}.kt-drag-enter{background-color:#555}.kt-tree-container .klab-no-nodes{padding:5px 0;margin:0;text-align:center;font-style:italic}.kt-tree-container .q-tree>.q-tree-node{padding:0}.kt-tree-container .q-tree-node-collapsible{overflow-x:hidden}.kt-tree-container .q-tree-children{margin-bottom:4px}.kt-tree-container .q-tree-node-selected{background-color:rgba(0,0,0,.15)}.kt-tree-container .q-tree-node{padding:0 0 3px 15px}.kt-tree-container .q-tree-node.q-tree-node-child{min-height:var(--q-tree-no-child-min-height)}.kt-tree-container .q-tree-node-header{margin-top:0}.kt-tree-container .q-tree-node-header:before{width:25px;left:-28px}.kt-tree-container .q-tree-node-header:hover .node-substituible{display:none}.kt-tree-container .q-tree-node-header:hover .kt-download,.kt-tree-container .q-tree-node-header:hover .kt-upload{display:block}.kt-tree-container .q-tree-node-header:hover .kt-download:hover,.kt-tree-container .q-tree-node-header:hover .kt-upload:hover{background-color:#fff;border:none;color:#666}.kt-tree-container .q-tree-node-header.disabled{opacity:1!important}.kt-tree-container .q-chip.node-chip{position:absolute;right:10px;height:20px;min-width:20px;top:4px;text-align:center}.kt-tree-container .q-chip.node-chip .q-chip-main{padding-right:2px}.kt-tree-container .kt-download,.kt-tree-container .kt-upload{position:absolute;top:4px;display:none;z-index:9999;color:#eee;border:2px solid #eee;width:20px;height:20px}.kt-tree-container .kt-download{right:10px}.kt-tree-container .kt-upload{right:34px}.kt-tree-container .node-emphasized{color:#fff;font-weight:700;-webkit-animation:flash 2s linear;animation:flash 2s linear}.kt-tree-container .node-element{text-shadow:none;cursor:pointer}.kt-tree-container .node-selected{-webkit-text-decoration:underline #ffc300 dotted;text-decoration:underline #ffc300 dotted;color:#ffc300}.kt-tree-container .mdi-buddhism{padding-left:1px;margin-right:2px!important}.kt-tree-container .node-updatable{font-style:italic}.kt-tree-container .node-disabled{opacity:.6!important}.kt-tree-container .node-no-tick{margin-right:5px}.kt-tree-container .node-on-top{color:#ffc300}.kt-tree-container .node-icon{display:inline;padding-left:5px}.kt-tree-container .node-icon-time{position:relative;right:-5px}.kt-tree-container .node-icon-time.node-loading-layer{opacity:0}.kt-tree-container .node-icon-time.node-loading-layer.animate-spin{opacity:1}.kt-tree-container .kt-q-tooltip{background-color:#333}.kt-tree-container .q-tree-node-link{cursor:default}.kt-tree-container .q-tree-node-link .q-tree-arrow{cursor:pointer}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent{padding-left:1px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header{padding-left:0}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header:before{width:12px;left:-14px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-header>i{margin-right:2px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children{padding-left:20px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header{padding-left:4px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header:before{width:25px;left:-28px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-child .q-tree-node-header:after{left:-17px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible{padding-left:1px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible:before{width:25px;left:-28px}.kt-tree-container .q-tree>.q-tree-node.q-tree-node-parent>.q-tree-node-collapsible .q-tree-node-parent .q-tree-node-collapsible .q-tree-children .q-tree-node-parent .q-tree-node-collapsible:after{left:-17px}@-webkit-keyframes flash{0%{opacity:1}25%{opacity:.5}50%{opacity:1}75%{opacity:.5}to{opacity:1}}@keyframes flash{0%{opacity:1}25%{opacity:.5}50%{opacity:1}75%{opacity:.5}to{opacity:1}}@-webkit-keyframes loading-gradient{0%{background-position:0 0}50%{background-position:100% 0}to{background-position:0 0}}@keyframes loading-gradient{0%{background-position:0 0}50%{background-position:100% 0}to{background-position:0 0}}.hv-histogram-container.hv-histogram-horizontal{height:160px;width:100%}.hv-histogram-container.hv-histogram-vertical{height:100%}.hv-histogram,.hv-histogram-nodata{height:calc(100% - 30px);position:relative}.hv-histogram-nodata.k-with-colormap,.hv-histogram.k-with-colormap{height:calc(100% - 60px)}.hv-histogram-nodata{color:#fff;text-align:center;background-color:hsla(0,0%,46.7%,.65);padding-top:20%}.hv-histogram-col{float:left;height:100%;position:relative}.hv-histogram-col:hover{background:hsla(0,0%,46.7%,.65)}.hv-histogram-val{background:#000;width:100%;position:absolute;bottom:0;border-right:1px solid hsla(0,0%,46.7%,.85);border-left:1px solid hsla(0,0%,46.7%,.85)}.hv-histogram-val:hover{background:rgba(0,0,0,.7)}.hv-colormap-horizontal{height:30px;position:relative}.hv-colormap-horizontal .hv-colormap-col{float:left;height:100%;min-width:1px}.hv-colormap-vertical{width:30px;min-width:30px;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hv-colormap-vertical .hv-colormap-col{display:block;width:100%;min-height:1px}.hv-colormap-container-vertical{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%}.hv-colormap-container-vertical .hv-colormap-legend{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hv-colormap-container-vertical .hv-categories{overflow:hidden}.hv-colormap-col{background-color:#fff}.hv-details-vertical{float:left}.hv-data-details{color:#fff;text-align:center;font-size:small;padding:2px 0;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:middle;height:30px;line-height:30px;text-overflow:ellipsis}.hv-histogram-max,.hv-histogram-min{width:50px}.hv-categories{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-left:16px}.hv-categories .hv-category{text-overflow:ellipsis;white-space:nowrap;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-size:12px}.hv-zero-category{font-style:italic;opacity:.5}.hv-data-nodetail,.hv-data-value{width:calc(100% - 100px);border-left:1px solid #696969;border-right:1px solid #696969}.hv-data-value,.hv-tooltip{color:#ffc300;-webkit-transition:none;transition:none;font-style:normal}.hv-tooltip{background-color:#444}#oi-container{height:calc(var(--main-control-max-height) - 164px);max-height:calc(var(--main-control-max-height) - 164px)}#oi-metadata-map-wrapper{height:calc(100% - 40px)}#oi-metadata-map-wrapper.k-with-histogram{height:calc(100% - 200px)}#oi-metadata-map-wrapper #oi-scroll-metadata-container{padding-top:5px}.oi-text{color:#ffc300;text-shadow:0 0 1px #666;padding:0 0 0 5px}.oi-metadata-name{padding-bottom:2px}.oi-metadata-value{color:#fff;margin:0 5px 5px;background-color:#666;-webkit-box-shadow:inset 0 0 0 1px #666;box-shadow:inset 0 0 0 1px #666;padding:2px 0 2px 5px}#oi-scroll-container{height:100%}#oi-scroll-container.with-mapinfo{height:50%}#oi-controls{height:40px;width:100%;border-bottom:1px dotted #333}#oi-controls .oi-control{float:left}#oi-controls #oi-name{width:50%;display:table;overflow:hidden;height:40px}#oi-controls #oi-name span{display:table-cell;vertical-align:middle;padding-top:2px}#oi-controls #oi-visualize{text-align:center;width:40px;line-height:40px}#oi-controls #oi-slider{width:calc(50% - 40px)}#oi-controls #oi-slider .q-slider{padding:0 10px 0 5px;height:40px}#oi-mapinfo-container{height:50%;width:100%;padding:5px;position:relative}#oi-mapinfo-map{height:100%;width:100%}.oi-pixel-indicator{position:absolute;background-color:#fff;mix-blend-mode:difference}#oi-pixel-h{left:50%;top:5px;height:calc(100% - 10px);width:1px}#oi-pixel-v{top:50%;left:5px;height:1px;width:calc(100% - 10px)}.ktp-loading{background:-webkit-gradient(linear,left top,right top,from(#333),to(#999));background:linear-gradient(90deg,#333,#999);background-size:200% 100%;-webkit-animation:loading-gradient 4s linear infinite;animation:loading-gradient 4s linear infinite}.q-tree .text-white{text-shadow:1px 0 0 #aaa}#kt-user-tree{padding-top:15px;padding-bottom:10px}.kt-separator{width:96%;left:4%;height:2px;border-top:1px solid hsla(0,0%,48.6%,.8);border-bottom:1px solid #7c7c7c;margin:0 4%}#klab-tree-pane{-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none}#klab-tree-pane details{padding:6px 0 10px 10px;background-color:#7d7d7d;border-top:1px solid #555}#klab-tree-pane details:not([open]){padding:0;margin-bottom:15px}#klab-tree-pane details:not([open]) #ktp-main-tree-arrow{top:-12px}#klab-tree-pane details[open] #ktp-main-tree-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}#klab-tree-pane details .mdi-dots-horizontal:before{padding-top:2px}#klab-tree-pane details summary{height:0;outline:none;position:relative;cursor:pointer;display:block}#klab-tree-pane details summary::-webkit-details-marker{color:transparent}#klab-tree-pane details #ktp-main-tree-arrow{position:absolute;width:22px;height:22px;right:9px;top:-18px;color:#fff;background-color:#555;border-radius:12px;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}#klab-tree-pane details>div{margin:5px 0 0 -10px}.ktp-no-tree{height:30px}.otv-now{font-size:11px;line-height:24px;vertical-align:middle;text-align:center;color:#fff;width:150px;height:24px}.otv-now.otv-docked{float:left;color:#fff;line-height:34px}.otv-now:not(.otv-docked){position:absolute;bottom:0;left:0;background-color:hsla(0,0%,46.7%,.65);border-top:1px solid #000;border-right:1px solid #000;border-top-right-radius:4px}.otv-now.otv-running{color:#ffc300}.otv-now.otv-novisible{opacity:0}.otv-now .fade-enter-active,.otv-now .fade-leave-active{-webkit-transition:opacity 1s;transition:opacity 1s}.otv-now .fade-enter,.otv-now .fade-leave-to{opacity:0}.ot-wrapper{width:100%}.ot-wrapper.ot-no-timestamp .ot-container.ot-docked{width:calc(100% - 5px)}.ot-wrapper:not(.ot-no-timestamp) .ot-container.ot-docked{width:280px;float:left}.ot-container{position:relative}.ot-container .ot-player{width:20px;height:16px;line-height:16px;float:left}.ot-container .ot-player .q-icon{vertical-align:baseline!important}.ot-container .ot-time{width:calc(100% - 20px);position:relative}.ot-container .ot-time.ot-time-full{left:10px}.ot-container .ot-time .ot-date{min-width:16px;max-width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;vertical-align:middle;background-color:#555;border-radius:8px;position:relative;cursor:default;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-date.ot-with-modifications{cursor:pointer;background-color:#888}.ot-container .ot-time .ot-date.ot-date-fill,.ot-container .ot-time .ot-date.ot-date-loaded{background-color:#1ab}.ot-container .ot-time .ot-date.ot-date-start+.ot-date-text{left:16px}.ot-container .ot-time .ot-date.ot-date-end+.ot-date-text{right:16px}.ot-container .ot-time .ot-date .ot-time-origin{vertical-align:baseline;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-date .ot-time-origin.ot-time-origin-loaded{color:#e4fdff}.ot-container .ot-time .ot-date-text{white-space:nowrap;font-size:8px;position:absolute;top:-4px;color:#888;font-weight:400;letter-spacing:1px;padding:0;-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none}.ot-container .ot-time .ot-timeline-container .ot-timeline{height:6px;width:calc(100% + 4px);background-color:#555;position:relative;top:5px;margin:0 -2px;padding:0 2px;-webkit-transition:background-color .5s ease;transition:background-color .5s ease}.ot-container .ot-time .ot-timeline-container .ot-timeline.ot-with-modifications{cursor:pointer;background-color:#888}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-modification-container{z-index:10000;width:32px;height:6px;position:absolute;top:7px}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-modification-container .ot-modification{height:100%;width:1px;margin-left:1px;border-left:1px solid #555;border-right:1px solid #aaa}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-actual-time{width:2px;height:6px;background-color:#1ab;position:absolute;margin-right:4px;top:0;z-index:10001}.ot-container .ot-time .ot-timeline-container .ot-timeline .ot-loaded-time{height:6px;left:-2px;background-color:#1ab;position:relative;top:0}.ot-container.ot-active-timeline .ot-time .ot-date-start{border-top-right-radius:0;border-bottom-right-radius:0;cursor:pointer}.ot-container.ot-active-timeline .ot-time .ot-date-end{border-top-left-radius:0;border-bottom-left-radius:0;cursor:pointer}.ot-container.ot-active-timeline .ot-time .ot-timeline{height:16px;width:100%;top:0;margin:0}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-timeline-viewer{height:10px;background-color:#666;border-radius:2px;width:calc(100% - 2px);position:absolute;top:3px;z-index:9000}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-loaded-time{height:16px}.ot-container.ot-active-timeline .ot-time .ot-timeline .ot-actual-time{height:10px;top:3px}.ot-date-tooltip{width:100px}.ot-date-tooltip .ot-date-tooltip-content{text-align:center}.ot-speed-container{border-radius:6px;margin-left:-6px}.ot-speed-container .ot-speed-selector{padding:5px 0;background-color:rgba(35,35,35,.8);color:#eee}.ot-speed-container .ot-speed-selector .ot-speed{min-height:20px;font-size:small;padding:5px}.ot-speed-container .ot-speed-selector .ot-speed.ot-speed-disabled{color:#1ab;font-weight:800}.ot-speed-container .ot-speed-selector .ot-speed:hover{background-color:#333;color:#ffc300;cursor:pointer}.ot-change-speed-tooltip{text-align:center}#klab-log-pane{max-height:calc(var(--main-control-max-height) - 124px)}#klab-log-pane.lm-component{max-height:100%}#klab-log-pane #log-container{margin:10px 0}#klab-log-pane .q-item.log-item{font-size:10px}#klab-log-pane .q-item.log-no-items{font-size:12px;color:#ccc;text-shadow:1px 0 0 #777}.log-item .q-item-side{min-width:auto}.q-list-dense>.q-item{padding-left:10px}.klp-separator{width:100%;text-align:center;border-top:1px solid #555;border-bottom:1px solid #777;line-height:0;margin:10px 0}.klp-separator>span{padding:0 10px;background-color:#717070}.klp-level-selector{border-bottom:1px dotted #ccc}.klp-level-selector ul{margin:10px 0;padding-left:10px;list-style:none}.klp-level-selector ul li{display:inline-block;padding-right:10px;opacity:.5}.klp-level-selector ul li.klp-selected{opacity:1}.klp-level-selector ul li .klp-chip{padding:2px 8px;cursor:pointer}.klab-mdi-next-scale{color:#ffc300;opacity:.6}.klab-mdi-next-scale:hover{opacity:1}.sb-scales *{cursor:pointer}.sb-next-scale{background-color:rgba(255,195,0,.7)}.sb-tooltip{text-align:center;font-size:.7em;color:#fff;background-color:#616161;padding:2px 0}.kvs-popover-container{background-color:#616161;border-color:#616161}.kvs-popover{background-color:transparent}.kvs-container .klab-button.klab-action .klab-button-notification{right:26px;top:0}.kvs-container .klab-button:not(.disabled) .kvs-button{color:#1ab}.mc-container .q-card>.mc-q-card-title{border-radius:30px;cursor:move;-webkit-transition:background-color .8s;transition:background-color .8s}.mc-container .q-card{width:512px;-webkit-transition:width .5s;transition:width .5s}.mc-container .q-card.with-context{width:482px;background-color:rgba(35,35,35,.8);border-radius:5px}.mc-container .q-card.with-context .mc-q-card-title{overflow:hidden;margin:15px}.mc-container .q-card.mc-large-mode-1{width:640px}.mc-container .q-card.mc-large-mode-2{width:768px}.mc-container .q-card.mc-large-mode-3{width:896px}.mc-container .q-card.mc-large-mode-4{width:1024px}.mc-container .q-card.mc-large-mode-5{width:1152px}.mc-container .q-card.mc-large-mode-6{width:1280px}.mc-container .q-card-title{position:relative}.mc-container .spinner-lonely-div{position:absolute;width:44px;height:44px;border:2px solid;border-radius:40px}.mc-container .q-card-title{line-height:inherit}.mc-container #mc-text-div{text-shadow:0 0 1px #555}.mc-container .q-card-main{overflow:auto;line-height:inherit;background-color:hsla(0,0%,46.7%,.85);padding:0}.mc-container .kmc-bottom-actions.q-card-actions{padding:0 4px 4px 6px}.mc-container .kmc-bottom-actions.q-card-actions .klab-button{font-size:18px;padding:4px}.mc-container .klab-main-actions{position:relative}.mc-container .klab-button-notification{top:4px;right:4px;width:10px;height:10px}.mc-container .context-actions{padding:0;margin:0;position:relative}.mc-container .mc-separator{width:2px;height:60%;position:absolute;top:20%;border-left:1px solid #444;border-right:1px solid #666}.mc-container .mc-separator.mab-separator{right:45px}.mc-container .mc-tab.active{background-color:hsla(0,0%,46.7%,.85)}.mc-container .component-fade-enter-active,.mc-container .component-fade-leave-active{-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.mc-container .component-fade-enter,.mc-container .component-fade-leave-to{opacity:0}.mc-container .mc-docking{position:fixed;left:0;top:0;background-color:rgba(35,35,35,.1);border:1px solid hsla(0,0%,52.9%,.5);-webkit-animation-duration:.2s;animation-duration:.2s}.mc-container .kbc-container{position:absolute;top:63px;left:0;width:100%;text-align:center}.mc-container #kt-out-container{height:100%;overflow:hidden;max-height:calc(var(--main-control-max-height) - 144px)}.mc-container #kt-out-container.kpt-loading{max-height:calc(var(--main-control-max-height) - 114px)}.mc-container #kt-out-container.with-splitter{max-height:calc(var(--main-control-max-height) - 164px)}.mc-container .klab-button{font-size:22px;margin:0;padding:2px 7px 5px;border-top-left-radius:4px;border-top-right-radius:4px}.mc-container .klab-destructive-actions .klab-button{position:absolute;right:6px;padding-right:0}.mc-container .sb-scales{position:absolute;right:42px}.mc-container .sb-scales .klab-button{padding-right:2px}.mc-container .context-actions .sr-locked,.mc-container .context-actions .sr-scaletype{font-size:9px}.mc-container .context-actions .sr-locked.sr-icon,.mc-container .context-actions .sr-scaletype.sr-icon{font-size:14px}.mc-container .context-actions .sr-description{font-size:9px}.mc-container .context-actions .sr-spacescale{font-size:9px;height:16px;width:16px;border-radius:8px;padding:3px 0 0;margin:0 2px}.mc-container .mc-timeline{width:calc(100% - 200px);position:absolute;left:100px;bottom:8px}.mc-container .klab-bottom-right-actions{position:absolute;right:6px}.mc-container .klab-bottom-right-actions .klab-button.klab-action{border-radius:4px;margin:3px 0 0;padding:2px 5px 3px!important}.mc-container .klab-bottom-right-actions .klab-button.klab-action:hover:not(.disabled){background-color:hsla(0,0%,52.9%,.2)}.mc-kv-popover{border-radius:6px;border:none}.mc-kv-popover .mc-kv-container{background-color:#616161;border-radius:2px!important}.md-draw-controls{position:absolute;top:30px;left:calc(50vw - 100px);background-color:hsla(0,0%,100%,.8);border-radius:10px}.md-draw-controls .md-title{color:#fff;background-color:#1ab;width:100%;padding:5px;font-size:16px;text-align:center;border-top-left-radius:10px;border-top-right-radius:10px}.md-draw-controls .md-controls .md-control{font-size:30px;font-weight:700;width:calc(33% - 24px);padding:5px;margin:10px 12px;height:40px;border-radius:10px;cursor:pointer}.md-draw-controls .md-controls .md-ok{color:#19a019}.md-draw-controls .md-controls .md-ok:hover{background-color:#19a019;color:#fff}.md-draw-controls .md-controls .md-cancel{color:#db2828}.md-draw-controls .md-controls .md-cancel:hover{background-color:#db2828;color:#fff}.md-draw-controls .md-controls .md-erase.disabled{cursor:default}.md-draw-controls .md-controls .md-erase:not(.disabled){color:#ffc300}.md-draw-controls .md-controls .md-erase:not(.disabled):hover{background-color:#ffc300;color:#fff}.md-draw-controls .md-selector .q-btn-group{border-bottom-left-radius:10px;border-bottom-right-radius:10px}.md-draw-controls .md-selector button{width:50px}.md-draw-controls .md-selector button:first-child{border-bottom-left-radius:10px}.md-draw-controls .md-selector button:nth-child(4){border-bottom-right-radius:10px}.layer-switcher{position:absolute;top:3.5em;right:.5em;text-align:left}.layer-switcher .panel{border:4px solid #eee;background-color:#fff;display:none;max-height:inherit;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:auto}.layer-switcher button{float:right;z-index:1;width:38px;height:38px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-position:2px;background-color:#fff;color:#000;border:none}.layer-switcher button:focus,.layer-switcher button:hover{background-color:#fff}.layer-switcher.shown{overflow-y:hidden}.layer-switcher.shown.ol-control,.layer-switcher.shown.ol-control:hover{background-color:transparent}.layer-switcher.shown .panel{display:block}.layer-switcher.shown button{display:none}.layer-switcher.shown.layer-switcher-activation-mode-click>button{display:block;background-image:unset;right:2px;position:absolute;background-color:#eee;margin:0 1px}.layer-switcher.shown button:focus,.layer-switcher.shown button:hover{background-color:#fafafa}.layer-switcher ul{list-style:none;margin:1.6em .4em;padding-left:0}.layer-switcher ul ul{padding-left:1.2em;margin:.1em 0 0}.layer-switcher li.group+li.group{margin-top:.4em}.layer-switcher li.group>label{font-weight:700}.layer-switcher.layer-switcher-group-select-style-none li.group>label{padding-left:1.2em}.layer-switcher li{position:relative;margin-top:.3em}.layer-switcher li input{position:absolute;left:1.2em;height:1em;width:1em;font-size:1em}.layer-switcher li label{padding-left:2.7em;padding-right:1.2em;display:inline-block;margin-top:1px}.layer-switcher label.disabled{opacity:.4}.layer-switcher input{margin:0}.layer-switcher.touch ::-webkit-scrollbar{width:4px}.layer-switcher.touch ::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);border-radius:10px}.layer-switcher.touch ::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5)}li.layer-switcher-base-group>label{padding-left:1.2em}.layer-switcher .group button{position:absolute;left:0;display:inline-block;vertical-align:top;float:none;font-size:1em;width:1em;height:1em;margin:0;background-position:center 2px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAW0lEQVR4nGNgGAWMyBwXFxcGBgaGeii3EU0tXHzPnj1wQRYsihqQ+I0ExDEMQAYNONgoAN0AmMkNaDSyQSheY8JiaCMOGzE04zIAmyFYNTMw4A+DRhzsUUBtAADw4BCeIZkGdwAAAABJRU5ErkJggg==");-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.layer-switcher .group.layer-switcher-close button{transform:rotate(-90deg);-webkit-transform:rotate(-90deg)}.layer-switcher .group.layer-switcher-fold.layer-switcher-close>ul{overflow:hidden;height:0}.layer-switcher.shown.layer-switcher-activation-mode-click{padding-left:34px}.layer-switcher.shown.layer-switcher-activation-mode-click>button{left:0;border-right:0}.layer-switcher{top:5em}.layer-switcher button{background-position:2px 3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTkuOTk2IiB3aWR0aD0iMjAiPjxnIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0xOS4zMSAzLjgzNUwxMS41My4yODljLS44NDMtLjM4NS0yLjIyMy0uMzg1LTMuMDY2IDBMLjY5IDMuODM1Yy0uOTE3LjQxNi0uOTE3IDEuMDk5IDAgMS41MTVsNy43MDYgMy41MTVjLjg4LjQgMi4zMjguNCAzLjIwOCAwTDE5LjMxIDUuMzVjLjkxNi0uNDE2LjkxNi0xLjA5OSAwLTEuNTE1ek04LjM5NiAxNi4yMDdMMy4yIDEzLjgzN2EuODQ1Ljg0NSAwIDAwLS42OTMgMGwtMS44MTcuODI4Yy0uOTE3LjQxNy0uOTE3IDEuMSAwIDEuNTE2bDcuNzA2IDMuNTE0Yy44OC40MDEgMi4zMjguNDAxIDMuMjA4IDBsNy43MDYtMy41MTRjLjkxNi0uNDE3LjkxNi0xLjA5OSAwLTEuNTE2bC0xLjgxNy0uODI4YS44NDUuODQ1IDAgMDAtLjY5MyAwbC01LjE5NiAyLjM3Yy0uODguNC0yLjMyOC40LTMuMjA4IDB6Ii8+PHBhdGggZD0iTTE5LjMxIDkuMjVsLTEuNjUtLjc1YS44MzMuODMzIDAgMDAtLjY4OCAwbC01LjYyMyAyLjU0N2MtLjc5Ny4yNy0xLjkwNi4yNy0yLjcwMyAwTDMuMDIzIDguNWEuODMzLjgzMyAwIDAwLS42ODggMGwtMS42NS43NWMtLjkxNy40MTctLjkxNyAxLjA5OSAwIDEuNTE1TDguMzkgMTQuMjhjLjg4LjQwMSAyLjMyNy40MDEgMy4yMDcgMGw3LjcwNy0zLjUxNWMuOTIxLS40MTYuOTIxLTEuMDk4LjAwNS0xLjUxNXoiLz48L2c+PC9zdmc+")}.layer-switcher .panel{padding:0 1em 0 0;margin:0;border:1px solid #999;border-radius:4px;background-color:hsla(0,0%,46.7%,.65);color:#fff}.map-selection-marker{font-size:28px;color:#fff;mix-blend-mode:exclusion}.gl-msg-content{border-radius:20px;padding:20px;background-color:hsla(0,0%,100%,.7)}.gl-msg-content .gl-btn-container{text-align:right;padding:.2em}.gl-msg-content .gl-btn-container .q-btn{margin-left:.5em}.gl-msg-content h5{margin:.2em 0 .5em;font-weight:700}.gl-msg-content em{color:#1ab;font-style:normal;font-weight:700}.mv-exploring{cursor:crosshair!important}.ol-popup{position:absolute;background-color:hsla(0,0%,100%,.9);padding:20px 15px;border-radius:10px;bottom:25px;left:-48px;min-height:80px}.ol-popup:after,.ol-popup:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.ol-popup:after{border-top-color:hsla(0,0%,100%,.9);border-width:10px;left:48px;margin-left:-10px}.ol-popup .ol-popup-closer{position:absolute;top:2px;right:8px}.ol-popup .ol-popup-content h3{margin:0 0 .2em;line-height:1.1em;font-size:1.1em;color:#1ab;white-space:nowrap;font-weight:300}.ol-popup .ol-popup-content p{margin:0;color:rgba(50,50,50,.9);white-space:nowrap;font-weight:400}.ol-popup .ol-popup-content .mv-popup-value{font-size:1.6em;padding:10px 0}.ol-popup .ol-popup-content .mv-popup-coord{font-size:.8em;padding-top:5px;color:#7c7c7c}.ol-popup .ol-popup-content .mv-popup-separator{height:1px;border-top:1px solid hsla(0,0%,48.6%,.3);margin:0 auto}.ol-mouse-position{right:50px!important;top:14px;margin:1px;padding:4px 8px;color:#fff;font-size:.9em;text-align:center;background-color:rgba(0,60,136,.5);border:4px solid hsla(0,0%,100%,.7)}#mv-extent-map{width:200px;height:200px;position:absolute;bottom:0;right:0;border:1px solid var(--app-main-color)}#mv-extent-map.mv-extent-map-hide{display:none}.mv-remove-proposed-context{position:absolute;bottom:10px;left:10px;opacity:.3;background-color:#3187ca;color:#fff!important}.mv-remove-proposed-context:hover{opacity:1}canvas{position:absolute;top:0;left:0}.net{height:100%;margin:0}.node{stroke:rgba(18,120,98,.7);stroke-width:3px;-webkit-transition:fill .5s ease;transition:fill .5s ease;fill:#dcfaf3}.node.selected{stroke:#caa455}.node.pinned{stroke:rgba(190,56,93,.6)}.link{stroke:rgba(18,120,98,.3)}.link,.node{stroke-linecap:round}.link:hover,.node:hover{stroke:#be385d;stroke-width:5px}.link.selected{stroke:rgba(202,164,85,.6)}.curve{fill:none}.link-label,.node-label{fill:#127862}.link-label{-webkit-transform:translateY(-.5em);transform:translateY(-.5em);text-anchor:middle}.gv-container{background-color:#e0e0e0;overflow:hidden}.gv-container .q-spinner{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px)}.uv-container{background-color:#e7ffdb;overflow:hidden}.uv-container h4{text-align:center}.uv-container .q-spinner{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px)}[data-v-216658d8]:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.thumb-view[data-v-216658d8]{width:200px;height:200px;margin:5px;border:1px solid #333;-webkit-box-shadow:#5c6bc0;box-shadow:#5c6bc0;bottom:0;z-index:9998;overflow:hidden}.thumb-view:hover>.thumb-viewer-title[data-v-216658d8]{opacity:1}.thumb-viewer-title[data-v-216658d8]{opacity:0;background-color:rgba(17,170,187,.85);color:#e0e0e0;text-shadow:0 1px 5px rgba(0,0,0,.2),0 2px 2px rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12);font-size:.9em;padding:0;-webkit-transition:opacity 1s;transition:opacity 1s;z-index:9999}.thumb-viewer-label[data-v-216658d8]{width:140px;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:middle;text-overflow:ellipsis}.thumb-viewer-label.thumb-closable[data-v-216658d8]{width:100px}.thumb-viewer-button[data-v-216658d8]{margin-top:5px;margin-left:0;margin-right:4px}.thumb-viewer-button>button[data-v-216658d8]{font-size:6px}.thumb-close[data-v-216658d8]{margin-left:5px}.dh-container{background-color:rgba(35,35,35,.8)}.dh-container .dh-spinner{width:28px;margin-left:16px;margin-right:16px}.dh-container .dh-tabs .q-tabs-head{background-color:transparent;padding:0!important}.dh-container .dh-tabs .q-tabs-head .q-tab{padding:10px 16px}.dh-container .dh-tabs .q-tabs-head .q-tab.active{color:#1ab!important}.dh-container .dh-tabs .q-tabs-head .q-tab .q-dot{background-color:#1ab;right:-3px;top:-1px}.dh-container .dh-actions{text-align:right;padding-right:12px}.dh-container .dh-actions .dh-button{padding:8px}.kd-is-app .q-layout-header{-webkit-box-shadow:none;box-shadow:none;border-bottom:1px solid var(--app-darken-background-color)}.kd-is-app .dh-container{background-color:var(--app-darken-background-color)}.kd-is-app .dh-actions .dh-button{color:var(--app-main-color)}.kd-is-app .dh-tabs .q-tabs-head{background-color:transparent;padding:0!important}.kd-is-app .dh-tabs .q-tabs-head .q-tab{padding:13px 16px;text-shadow:none}.kd-is-app .dh-tabs .q-tabs-head .q-tab.active{color:var(--app-main-color)!important}.kd-is-app .dh-tabs .q-tabs-head .q-tab .q-dot{background-color:var(--app-main-color)}.kd-is-app .dh-tabs .q-tabs-bar{color:var(--app-main-color);border-bottom-width:4px}.q-layout-drawer,.q-layout-header{-webkit-box-shadow:none!important;box-shadow:none!important;border-bottom:1px solid var(--app-main-color)}.dt-container{padding:16px 0;font-size:smaller!important}.dt-container .dt-tree-empty{margin:16px;color:#fff}.kd-is-app .klab-left{background-color:var(--app-darken-background-color)}.kd-is-app .klab-left .dt-tree-empty,.kd-is-app .klab-left .q-tree .q-tree-node,.kd-is-app .klab-left .text-white{color:var(--app-main-color)!important}.tabulator{position:relative;background-color:#fff;overflow:hidden;font-size:14px;text-align:left;-webkit-transform:translatez(0);transform:translatez(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableHolder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select{-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.tabulator .tabulator-header{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;border-bottom:1px solid #999;background-color:#fff;color:#555;font-weight:700;white-space:nowrap;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-col{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;border-right:1px solid #ddd;background-color:#fff;text-align:left;vertical-align:bottom;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{position:absolute;border:1px solid #999;background:#e6e6e6;pointer-events:none}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;border:1px solid #999;padding:1px;background:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-menu-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{position:relative;display:-ms-flexbox;display:-webkit-box;display:flex;border-top:1px solid #ddd;overflow:hidden;margin-right:-1px}.tabulator .tabulator-header .tabulator-col:first-child .tabulator-col-resize-handle.prev{display:none}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:2px;width:100%;text-align:center}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover{cursor:pointer;background-color:#e6e6e6}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #bbb}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter{color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid #666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter{color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{-ms-writing-mode:tb-rl;-webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;text-orientation:mixed;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;left:0;right:0;top:4px;bottom:auto}.tabulator .tabulator-header .tabulator-frozen{display:inline-block;position:absolute;z-index:10}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:600%;background:#f2f2f2!important;border-top:1px solid #ddd;border-bottom:1px solid #999;overflow:hidden}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-header .tabulator-frozen-rows-holder{min-width:600%}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableHolder{position:relative;width:100%;white-space:nowrap;overflow:auto;-webkit-overflow-scrolling:touch}.tabulator .tabulator-tableHolder:focus{outline:none}.tabulator .tabulator-tableHolder .tabulator-placeholder{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;width:100%}.tabulator .tabulator-tableHolder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%;min-width:100%}.tabulator .tabulator-tableHolder .tabulator-placeholder span{display:inline-block;margin:0 auto;padding:10px;color:#000;font-weight:700;font-size:20px}.tabulator .tabulator-tableHolder .tabulator-table{position:relative;display:inline-block;background-color:#fff;white-space:nowrap;overflow:visible;color:#333}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:#f2f2f2!important}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #ddd}.tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #ddd}.tabulator .tabulator-col-resize-handle{position:absolute;right:0;top:0;bottom:0;width:5px}.tabulator .tabulator-col-resize-handle.prev{left:0;right:auto}.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}.tabulator .tabulator-footer{padding:5px 10px;border-top:1px solid #999;background-color:#fff;text-align:right;color:#555;font-weight:700;white-space:nowrap;-ms-user-select:none;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator .tabulator-footer .tabulator-calcs-holder{-webkit-box-sizing:border-box;box-sizing:border-box;width:calc(100% + 20px);margin:-5px -10px 5px;text-align:left;background:#f2f2f2!important;border-bottom:1px solid #fff;border-top:1px solid #ddd;overflow:hidden}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{margin-bottom:-5px;border-bottom:none}.tabulator .tabulator-footer .tabulator-paginator{color:#555;font-family:inherit;font-weight:inherit;font-size:inherit}.tabulator .tabulator-footer .tabulator-page-size{display:inline-block;margin:0 5px;padding:2px 5px;border:1px solid #aaa;border-radius:3px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{display:inline-block;margin:0 2px;padding:2px 5px;border:1px solid #aaa;border-radius:3px;background:hsla(0,0%,100%,.2)}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover{cursor:pointer;background:rgba(0,0,0,.2);color:#fff}.tabulator .tabulator-loader{position:absolute;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;top:0;left:0;z-index:100;height:100%;width:100%;background:rgba(0,0,0,.4);text-align:center}.tabulator .tabulator-loader .tabulator-loader-msg{display:inline-block;margin:0 auto;padding:10px 20px;border-radius:10px;background:#fff;font-weight:700;font-size:16px}.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-loading{border:4px solid #333;color:#000}.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-error{border:4px solid #d00;color:#590000}.tabulator-row{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:22px;border-bottom:1px solid #ddd}.tabulator-row,.tabulator-row:nth-child(2n){background-color:#fff}.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}.tabulator-row.tabulator-selected{background-color:#9abcea}.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}.tabulator-row.tabulator-moving{position:absolute;border-top:1px solid #ddd;border-bottom:1px solid #ddd;pointer-events:none!important;z-index:15}.tabulator-row .tabulator-row-resize-handle{position:absolute;right:0;bottom:0;left:0;height:5px}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}.tabulator-row .tabulator-frozen{display:inline-block;position:absolute;background-color:inherit;z-index:10}.tabulator-row .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator-row .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator-row .tabulator-responsive-collapse{-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;padding:4px;border-right:1px solid #ddd;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabulator-row .tabulator-cell:last-of-type{border-right:none}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{border:1px;background:transparent}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:1px;background:transparent;color:#d00}.tabulator-row .tabulator-cell:first-child .tabulator-col-resize-handle.prev{display:none}.tabulator-row .tabulator-cell.tabulator-row-handle{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:2px;background:#666}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-row .tabulator-cell .tabulator-data-tree-control{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-ms-flex-align:center;-webkit-box-align:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;height:15px;width:15px;border-radius:20px;background:#666;color:#fff;font-weight:700;font-size:1.1em}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open,.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{display:inline-block;height:14px;width:14px;border-radius:14px}.tabulator-row.tabulator-group{-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#fafafa;font-weight:700;min-width:100%}.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-row.tabulator-group span{margin-left:10px;color:#666}.tabulator-menu{position:absolute;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;border:1px solid #ddd;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.2);box-shadow:0 0 5px 0 rgba(0,0,0,.2);font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-menu .tabulator-menu-item{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 10px;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:#fff}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;height:7px;width:7px;content:"";border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;vertical-align:top;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #ddd}.tabulator-edit-select-list{position:absolute;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;max-height:200px;background:#fff;border:1px solid #ddd;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:10000}.tabulator-edit-select-list .tabulator-edit-select-list-item{padding:4px;color:#333}.tabulator-edit-select-list .tabulator-edit-select-list-item.active{color:#fff;background:#1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-select-list .tabulator-edit-select-list-item.focused{outline:1px solid #1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-item:hover{cursor:pointer;color:#fff;background:#1d68cd}.tabulator-edit-select-list .tabulator-edit-select-list-notice{padding:4px;color:#333;text-align:center}.tabulator-edit-select-list .tabulator-edit-select-list-group{border-bottom:1px solid #ddd;padding:6px 4px 4px;color:#333;font-weight:700}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:1px solid #ddd;border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:0;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:25px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-arrow{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:1px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:0;margin-left:5px;border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-right:0;margin-left:5px}.tabulator.tabulator-rtl .tabulator-col-resize-handle{position:absolute;left:0;right:auto}.tabulator.tabulator-rtl .tabulator-col-resize-handle.prev{right:0;left:auto}.tabulator-print-fullscreen{position:absolute;top:0;bottom:0;left:0;right:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-print-table-group{-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;padding:5px 5px 5px 10px;background:#fafafa;font-weight:700;min-width:100%}.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:rgba(0,0,0,.1)}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{margin-right:10px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;border-bottom:0}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{display:inline-block;width:0;height:0;margin-right:16px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:0;border-left:6px solid #666;vertical-align:middle}.tabulator-print-table .tabulator-print-table-group span{margin-left:10px;color:#666}.tabulator-print-table .tabulator-data-tree-branch{display:inline-block;vertical-align:middle;height:9px;width:7px;margin-top:-9px;margin-right:5px;border-bottom-left-radius:1px;border-left:2px solid #ddd;border-bottom:2px solid #ddd}.tabulator-print-table .tabulator-data-tree-control{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;-ms-flex-align:center;-webkit-box-align:center;align-items:center;vertical-align:middle;height:11px;width:11px;margin-right:5px;border:1px solid #333;border-radius:2px;background:rgba(0,0,0,.1);overflow:hidden}.tabulator-print-table .tabulator-data-tree-control:hover{cursor:pointer;background:rgba(0,0,0,.2)}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{display:inline-block;position:relative;height:7px;width:1px;background:transparent}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{display:inline-block;position:relative;height:7px;width:1px;background:#333}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{position:absolute;content:"";left:-3px;top:3px;height:1px;width:7px;background:#333}.ft-wrapper{margin-top:8px;width:100%;margin-bottom:40px}.ft-container{position:relative}.ft-container .ft-time{width:100%;position:relative}.ft-container .ft-time .ft-date-container{width:4px;height:14px;line-height:14px;background-color:#1ab;cursor:default}.ft-container .ft-time-origin-container{width:28px;height:14px;line-height:14px;color:#1ab;text-align:center;cursor:pointer}.ft-container .ft-time-origin-container .ft-time-origin{vertical-align:baseline;color:#1ab}.ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:#0277bd}.ft-container .ft-timeline-container .ft-timeline{height:14px;width:100%;top:0;margin:0;position:relative;padding:0;cursor:pointer}.ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{height:1px;background-color:#1ab;width:100%;position:absolute;top:6.5px;z-index:9000}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container{z-index:10000;width:4px;height:14px;position:absolute}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice{height:100%;width:100%;background-color:#1ab}.ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{font-size:.65em;color:#1ab;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ft-container .ft-timeline-container .ft-timeline .ft-actual-time{height:14px;font-size:22px;color:#1ab;position:absolute;top:-12px;left:-15px;z-index:10001}.kd-is-app .ft-container .ft-time .ft-date-container{background-color:var(--app-main-color)}.kd-is-app .ft-container .ft-time-origin-container,.kd-is-app .ft-container .ft-time-origin-container .ft-time-origin{color:var(--app-main-color)}.kd-is-app .ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:var(--app-link-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline{background-color:var(--app-background-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice,.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{background-color:var(--app-main-color)}.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-actual-time,.kd-is-app .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{color:var(--app-main-color)}.ft-date-tooltip{width:150px}.ft-date-tooltip .ft-date-tooltip-content{text-align:center}.dv-empty-documentation{position:absolute;width:100%;height:80px;text-aling:center;top:calc((100% - 80px)/2);padding:0;text-align:center;font-size:60px;font-weight:700;color:#1ab}.dv-documentation-wrapper{position:absolute;left:0;width:100%;height:100%;overflow:auto;border:none}.dv-documentation .dv-content{padding:1em 2em}.dv-documentation .dv-content h1,.dv-documentation .dv-content h2,.dv-documentation .dv-content h3,.dv-documentation .dv-content h4,.dv-documentation .dv-content h5,.dv-documentation .dv-content h6{font-weight:700;color:#777;margin:0;padding:.6em 0}.dv-documentation .dv-content [id]{-webkit-transition:.3s ease;transition:.3s ease;border-radius:4px}.dv-documentation .dv-content [id].dv-selected{-webkit-animation:blinker 1.5s;animation:blinker 1.5s}.dv-documentation .dv-table-container .dv-table-title{font-weight:700;color:#777;font-size:larger;padding:16px 0}.dv-documentation .dv-table-container .dv-table-bottom{margin:8px 0 0}.dv-documentation .dv-figure-container{padding:16px;margin:16px 0;border:1px solid #1ab;max-width:960px}.dv-documentation .dv-figure-container .dv-figure-caption-wrapper{padding-bottom:8px}.dv-documentation .dv-figure-container .dv-figure-caption{color:#1ab;font-style:italic}.dv-documentation .dv-figure-container .dv-figure-timestring{color:#1ab;font-size:.8em;text-align:right}.dv-documentation .dv-figure-wrapper .dv-figure-image{text-align:center;overflow:hidden;max-width:640px}.dv-documentation .dv-figure-wrapper .dv-figure-image img{width:100%;max-width:640px}.dv-documentation .dv-figure-wrapper .dv-col-fill,.dv-documentation .dv-figure-wrapper .dv-figure-legend{padding-left:16px;width:320px;max-width:320px}.dv-documentation .dv-figure-wrapper .dv-figure-wait{max-width:640px;min-height:320px;height:auto;border:1px solid #eee;text-align:center}.dv-documentation .dv-figure-wrapper .dv-figure-wait .q-spinner{color:#9e9e9e}.dv-documentation .dv-figure-wrapper .hv-details-nodata,.dv-documentation .dv-figure-wrapper .hv-histogram-nodata{display:none}.dv-documentation .dv-figure-wrapper .hv-categories{margin-left:8px}.dv-documentation .dv-figure-wrapper .hv-categories .hv-category{overflow:hidden;color:#1ab}.dv-documentation .dv-citation,.dv-documentation .dv-paragraph,.dv-documentation .dv-reference{color:var(--app-main-color)}.dv-documentation .dv-citation a,.dv-documentation .dv-paragraph a,.dv-documentation .dv-reference a{display:inline-block;text-decoration:none;color:var(--app-main-color)}.dv-documentation .dv-citation a:visited,.dv-documentation .dv-paragraph a:visited,.dv-documentation .dv-reference a:visited{color:var(--app-main-color)}.dv-documentation .dv-citation a:after,.dv-documentation .dv-paragraph a:after,.dv-documentation .dv-reference a:after{content:"";display:block;width:0;border-bottom-width:1px;border-bottom-style:solid;-webkit-transition:width .3s;transition:width .3s}.dv-documentation .dv-citation a:not(.disabled):hover:after,.dv-documentation .dv-paragraph a:not(.disabled):hover:after,.dv-documentation .dv-reference a:not(.disabled):hover:after{width:100%}.dv-documentation .dv-citation a.disabled,.dv-documentation .dv-paragraph a.disabled,.dv-documentation .dv-reference a.disabled{cursor:default!important}.dv-documentation .dv-model-container,.dv-documentation .dv-resource-container{margin:8px 0;padding:8px 16px;color:#1ab;font-weight:400}.dv-documentation .dv-resource-container{border:1px solid #1ab;border-radius:10px!important;margin:16px 0}.dv-documentation .dv-resource-container.dv-selected{border-width:4px!important}.dv-documentation .dv-resource-container .dv-resource-title-container{background-color:var(--app-darklight-background-color);padding:8px;margin:8px 0 16px;border-radius:2px}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-title{font-size:var(--app-title-size);font-weight:300}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-originator{font-size:var(--app-subtitle-size);font-weight:300}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords{padding:8px 8px 0 0}.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword,.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-separator,.dv-documentation .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-wrapper{display:inline-block;font-size:var(--app-small-size);color:var(--app-link-color)}.dv-documentation .dv-resource-container .dv-resource-description{font-size:smaller}.dv-documentation .dv-resource-map{width:360px}.dv-documentation .dv-resource-map .dv-resource-authors{font-size:var(--app-small-size);padding-bottom:5px}.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author,.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-separator,.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-wrapper{display:inline-block}.dv-documentation .dv-resource-map .dv-resource-authors .dv-resource-author-separator{padding-right:8px}.dv-documentation .dv-resource-map .dv-resource-references{font-size:calc(var(--app-small-size) - 2px)}.dv-documentation .dv-resource-urls{margin:16px 0 0;font-size:var(--app-small-size)}.dv-documentation .klab-inline-link{font-size:var(--app-small-size);vertical-align:super}.dv-documentation .dv-button{padding:8px}.kd-is-app{background-image:none!important}.kd-is-app .kd-container{background-color:var(--app-darken-background-color)}.kd-is-app .dv-documentation-wrapper{border-top-left-radius:8px}.kd-is-app .dv-empty-documentation{color:var(--app-text-color)}.kd-is-app .dv-documentation,.kd-is-app .dv-documentation .dv-content{background-color:var(--app-background-color)}.kd-is-app .dv-documentation .dv-content h1,.kd-is-app .dv-documentation .dv-content h2,.kd-is-app .dv-documentation .dv-content h3,.kd-is-app .dv-documentation .dv-content h4,.kd-is-app .dv-documentation .dv-content h5,.kd-is-app .dv-documentation .dv-content h6{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-table-container .dv-table-title{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-figure-container .dv-figure-caption{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-figure-container .dv-figure-timestring,.kd-is-app .dv-documentation .dv-figure-container .dv-figure-wait .q-spinner{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-figure-container .hv-categories .hv-category,.kd-is-app .dv-documentation .dv-figure-container .hv-data-details,.kd-is-app .dv-documentation .dv-figure-container .hv-data-value,.kd-is-app .dv-documentation .dv-figure-container .hv-tooltip{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-model-container,.kd-is-app .dv-documentation .dv-resource-container{color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-resource-container{border-color:var(--app-main-color)}.kd-is-app .dv-documentation .dv-model-container{font-family:monospace}.kd-is-app .dv-documentation .dv-model-container .dv-selected{font-size:larger}.kd-is-app .dv-documentation .dv-model-container .dv-model-space{display:inline-block;width:2em}.kd-is-app .dv-documentation .dv-reference{margin:8px 0;padding:8px 0}.kd-is-app .dv-documentation .dv-reference.dv-selected{color:var(--app-text-color)}.kd-is-app .dv-documentation .dv-other-container{display:none}.kd-is-app .dv-documentation .klab-link{color:var(--app-link-color);font-weight:500!important}.kd-is-app .dv-documentation .klab-link:visited{color:var(--app-link-visited-color)}.kd-is-app .dv-documentation .dv-button{color:var(--app-main-color)}@media print{.kd-modal .modal-content .dv-figure-wrapper,.kd-modal .modal-content .dv-resource-container,.kd-modal .modal-content .dv-table-container{-webkit-column-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid}.kd-modal .modal-content .dv-figure-container{border:none}.kd-modal .modal-content .dv-figure-container .dv-figure-caption,.kd-modal .modal-content .dv-figure-container .dv-figure-timestring{color:#000}.kd-modal .modal-content .hv-category{color:#000!important}.kd-modal .modal-content .ft-container .ft-time .ft-date-container{background-color:#fff}.kd-modal .modal-content .ft-container .ft-time-origin-container,.kd-modal .modal-content .ft-container .ft-time-origin-container .ft-time-origin,.kd-modal .modal-content .ft-container .ft-time-origin-container .ft-time-origin.ft-time-origin-active{color:#000}.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline{background-color:#fff}.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-timeline-viewer{background-color:#000}.kd-modal .modal-content .dv-model-container,.kd-modal .modal-content .dv-resource-container,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-actual-time,.kd-modal .modal-content .ft-container .ft-timeline-container .ft-timeline .ft-slice-container .ft-slice-caption{color:#000}.kd-modal .modal-content .dv-resource-container{border:1px solid #000}.kd-modal .modal-content .dv-resource-container .dv-resource-title-container{background-color:#fff}.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword,.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-separator,.kd-modal .modal-content .dv-resource-container .dv-resource-title-container .dv-resource-keywords .dv-resource-keyword-wrapper,.kd-modal .modal-content .dv-resource-container .dv-resource-urls .klab-link{color:#000}}@-webkit-keyframes blinker{40%{opacity:1}60%{opacity:.2}80%{opacity:1}}@keyframes blinker{40%{opacity:1}60%{opacity:.2}80%{opacity:1}}.kexplorer-container.kd-is-app{background-color:var(--app-background-color)}.kd-modal .modal-content{border-radius:20px;padding:20px 0;background-color:#fff;overflow:hidden;width:1024px;min-height:80vh}.kd-modal .dv-documentation-wrapper .dv-content{padding-top:0}.kd-modal .dv-print-hide{position:absolute;top:5px;right:20px}@media print{body{min-width:100%}#q-app{display:none}.kd-modal.fullscreen{position:static}.kd-modal .modal-content{min-width:100%;max-width:100%;min-height:100%;max-height:100%;-webkit-box-shadow:none;box-shadow:none;width:100%!important;border-radius:0!important}.dv-documentation-wrapper p,.dv-documentation-wrapper table td{word-break:break-word}.dv-documentation-wrapper{display:block!important;position:relative!important;overflow:visible!important;overflow-y:visible!important;width:100%!important;height:100%!important;margin:0!important;left:0!important;border:none!important}.modal-backdrop{background:transparent!important}}.dip-container{color:#fff;padding-top:30px;width:100%}.dip-container .dip-content{margin-bottom:40px}.dip-container .dip-close{width:100%;text-align:right;position:absolute;left:0;top:0;color:#fff}.dip-container .simplebar-scrollbar:before{background:#888}.dip-container article{padding:0 10px}.dip-container article hr{height:1px;border:none;border-top:1px solid rgba(24,24,24,.5);border-bottom:1px solid #444}.dip-container article h1{color:#1ab;font-size:1.4em;margin:0 0 10px;font-weight:700;word-break:break-all}.dip-container article .dfe-fixed{color:hsla(0,0%,100%,.6);font-size:.7em}.dip-container article .dfe-fixed p{margin:0 0 .6em}.dip-container article .dfe-content{font-size:.8em}.dip-container article .dfe-content table{padding:10px 0}.dip-container article .dfe-content table th{color:#ffc300;text-align:left;border-bottom:1px solid;margin:0}.dip-container article .dfe-content table tr:nth-child(2n){background-color:hsla(0,0%,59.6%,.1)}.dip-container article .dfe-content mark{background-color:transparent;color:#ffc300;font-weight:700}.dip-container article .dfe-content div{margin:.2em 0 .8em;padding:5px;border-radius:5px;background-color:hsla(0,0%,59.6%,.4);word-break:break-all}.dip-container article .dfe-content div p{margin-bottom:.5em}.kd-is-app .dip-container{color:var(--app-text-color)}.kd-is-app .dip-close{color:var(--app-main-color)}.kd-is-app .simplebar-scrollbar:before{background:var(--app-main-color)}.kd-is-app article hr{border-top:none;border-bottom:1px solid var(--app-main-color)}.kd-is-app article h1{color:var(--app-title-color)}.kd-is-app article .dfe-fixed{color:var(--app-lighten-main-color)}.kd-is-app article .dfe-content table th{color:var(--app-title-color)}.kd-is-app article .dfe-content table tr:nth-child(2n){background-color:var(--app-darken-background-color,.1)}.kd-is-app article .dfe-content mark{color:var(--app-title-color)}.kd-is-app article .dfe-content div{background-color:var(--app-darken-background-color,.4)}.kd-is-app article .dfe-content div p{margin-bottom:.5em}.dfv-container{width:100%}.dfv-container.dfv-with-info{width:calc(100% - 320px)}.dfv-container.dfv-with-info #sprotty{right:320px}.dfv-container .dfv-graph-info{position:absolute;top:0;left:0;width:100%;height:40px;background-color:#e0e0e0;border-bottom:1px solid hsla(0,0%,52.9%,.2)}.dfv-container .dfv-graph-info .dfv-graph-type{padding:10px;font-weight:500;min-width:100px;width:50%;float:left;color:var(--app-title-color)}.dfv-container .dfv-graph-info .dfv-graph-selector{text-align:right;min-width:100px;width:50%;right:0;float:left}.dfv-container .dfv-graph-info .dfv-graph-selected{cursor:default;background-color:var(--app-main-color);color:#fff}.dfv-container #sprotty{position:absolute;background-color:#e0e0e0;top:40px;left:0;right:0;bottom:0}.dfv-container #sprotty svg{width:100%;height:calc(100% - 5px);cursor:default}.dfv-container #sprotty svg:focus{outline-style:none}.dfv-container #sprotty svg .elknode{stroke:#b0bec5;fill:#eceff1;stroke-width:1}.dfv-container #sprotty svg .elkport{stroke:#78909c;stroke-width:1;fill:#78909c}.dfv-container #sprotty svg .elkedge{fill:none;stroke:#546e7a;stroke-width:1}.dfv-container #sprotty svg .elkedge.arrow{fill:#37474f}.dfv-container #sprotty svg .elklabel{stroke-width:0;stroke:#000;fill:#000;font-family:Roboto;font-size:12px;dominant-baseline:middle}.dfv-container #sprotty svg .elkjunction{stroke:none;fill:#37474f}.dfv-container #sprotty svg .selected>rect{stroke-width:3px}.dfv-container #sprotty svg .elk-actuator,.dfv-container #sprotty svg .elk-instantiator,.dfv-container #sprotty svg .elk-resolver,.dfv-container #sprotty svg .elk-resources,.dfv-container #sprotty svg .elk-table,.dfv-container #sprotty svg .mouseover{stroke-width:2px}.dfv-container #sprotty svg .waiting.elk-resource{fill:#e8f5e9;stroke:#c8e6c9}.dfv-container #sprotty svg .waiting.elk-actuator,.dfv-container #sprotty svg .waiting.elk-resolver{fill:#cfd8dc;stroke:#b0bec5}.dfv-container #sprotty svg .waiting.elk-instantiator,.dfv-container #sprotty svg .waiting.elk-table{fill:#e0e0e0;stroke:#bdbdbd}.dfv-container #sprotty svg .waiting.elk-resource_entity{fill:#80cbc4;stroke:blue-$grey-4}.dfv-container #sprotty svg .waiting.elk-semantic_entity{fill:#b2dfdb;stroke:#80cbc4}.dfv-container #sprotty svg .waiting.elk-literal_entity{fill:#80cbc4;stroke:#4db6ac}.dfv-container #sprotty svg .waiting.elk-model_activity{fill:#4db6ac;stroke:#26a69a}.dfv-container #sprotty svg .waiting.elk-task_activity{fill:#e0f2f1;stroke:#b2dfdb}.dfv-container #sprotty svg .waiting.elk-dataflow_plan{fill:#b2dfdb;stroke:#80cbc4}.dfv-container #sprotty svg .waiting.elk-klab_agent{fill:#80cbc4;stroke:#4db6ac}.dfv-container #sprotty svg .waiting.elk-user_agent,.dfv-container #sprotty svg .waiting.elk-view_entity{fill:#4db6ac;stroke:#26a69a}.dfv-container #sprotty svg .processed.elk-resource{fill:#c8e6c9;stroke:#a5d6a7}.dfv-container #sprotty svg .processed.elk-actuator,.dfv-container #sprotty svg .processed.elk-resolver{fill:#b0bec5;stroke:#78909c}.dfv-container #sprotty svg .processed.elk-instantiator,.dfv-container #sprotty svg .processed.elk-table{fill:#bdbdbd;stroke:#9e9e9e}.dfv-container #sprotty svg .processing.elk-resource{fill:#a5d6a7;stroke:#81c784}.dfv-container #sprotty svg .processing.elk-actuator,.dfv-container #sprotty svg .processing.elk-resolver{fill:#78909c;stroke:#455a64}.dfv-container #sprotty svg .processing.elk-instantiator,.dfv-container #sprotty svg .processing.elk-table{fill:#9e9e9e;stroke:#757575}.dfv-info-container{position:absolute;background-color:rgba(35,35,35,.9);overflow:hidden;height:100%!important;width:320px;left:calc(100% - 320px);right:0;bottom:0;top:0;z-index:1001}.kd-is-app #dfv-container #sprotty{background-color:var(--app-darken-background-color);padding-left:16px}.kd-is-app .dfv-info-container{background-color:rgba(var(--app-rgb-background-color),.9)}.irm-container{padding:20px;width:60vw;overflow:hidden;position:relative}.irm-container h3,.irm-container h4,.irm-container h5,.irm-container p{margin:0;padding:0;color:#1ab}.irm-container h3,.irm-container p{margin-bottom:10px}.irm-container h3,.irm-container h4,.irm-container h5{line-height:1.4em}.irm-container h3{font-size:1.4em}.irm-container h4{font-size:1.2em}.irm-container h5{font-size:1em}.irm-container h4+p,.irm-container h5+p{color:#333;font-size:.8em;font-style:italic}.irm-container h5+p{padding-bottom:10px}.irm-container .q-tabs:not(.irm-tabs-hidden) .q-tabs-head,.irm-container h5+p{border-bottom:1px solid #1ab}.irm-container .q-tab:not(.irm-tabs-hidden){border-top-left-radius:5px;border-top-right-radius:5px;background-color:#1ab}.irm-container .q-tabs-position-top>.q-tabs-head .q-tabs-bar{border-bottom-width:10px;color:hsla(0,0%,100%,.3)}.irm-container .irm-fields-container{max-height:50vh;overflow:hidden;border:1px dotted #1ab;margin:10px 0}.irm-container .irm-fields-container .irm-fields-wrapper{padding:10px;overflow-x:hidden}.irm-container .irm-fields-container label{font-style:italic}.irm-container .irm-group{margin-bottom:30px}.irm-container .irm-buttons{position:absolute;bottom:0;right:0;margin:0 30px 10px 0}.irm-container .irm-buttons .q-btn{margin-left:10px}.scd-inactive-multiplier .q-input-target{color:#979797}#dmc-container.full-height{height:calc(100% - 86px)!important}#dmc-container #kt-out-container{height:100%;position:relative}#dmc-container #dmc-tree{-ms-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none;background-color:hsla(0,0%,46.7%,.65);overflow:hidden}#dmc-container #dmc-tree #klab-tree-pane{height:100%}#dmc-container #dmc-tree #oi-container{height:calc(100% - 24px);max-height:calc(100% - 24px)}#dmc-container #dmc-tree #oi-container #oi-metadata-map-wrapper{height:calc(100% - 24px)}#dmc-container #dmc-tree #oi-container #oi-metadata-map-wrapper.k-with-histogram{height:calc(100% - 200px)}#dmc-container.dmc-dragging{cursor:move!important}#dmc-container .kbc-container{margin:2px;padding:0;height:10px}#dmc-container .q-card-main.dmc-loading{background:-webkit-gradient(linear,left top,right top,from(#333),to(#999));background:linear-gradient(90deg,#333,#999);background-size:200% 100%;-webkit-animation:loading-gradient 4s linear infinite;animation:loading-gradient 4s linear infinite}#dmc-container .q-card-main.dmc-loading .ktp-loading{background:transparent;-webkit-animation:none;animation:none}#dmc-container details{background-color:#777;border-top:1px solid #333}#dmc-container details #ktp-main-tree-arrow{background-color:#333}#dmc-container details[open]{border-bottom:1px solid #333}#dmc-container .dmc-timeline .ot-container{padding:9px 0}#lm-container{width:100%;overflow:hidden}#lm-container #spinner-leftmenu-container{padding-top:10px;padding-bottom:20px}#lm-container #spinner-leftmenu-div{width:44px;height:44px;margin-top:10px;margin-left:auto;margin-right:auto;background-color:#fff;border-radius:40px;border:2px solid}#lm-container #lm-actions,#lm-container #lm-content{float:left;border-right:1px solid hsla(0,0%,52.9%,.2)}#lm-container #lm-actions.klab-lm-panel,#lm-container #lm-content.klab-lm-panel{background-color:rgba(35,35,35,.5)}#lm-container .lm-separator{width:90%;left:5%;height:2px;border-top:1px solid rgba(24,24,24,.5);border-bottom:1px solid #444;margin:0 auto}#lm-container .klab-button{display:block;font-size:30px;width:42px;height:42px;line-height:42px;vertical-align:middle;padding:0 5px;margin:15px auto}#lm-container .klab-main-actions .klab-button:hover{color:#1ab!important}#lm-container .klab-main-actions .klab-button:active{color:#fff}#lm-container .klab-button-notification{width:10px;height:10px;top:5px;right:5px}#lm-container .sb-scales{margin:0}#lm-container .sb-scales .lm-separator{width:60%;border-top-style:dashed;border-bottom-style:dashed}#lm-container #lm-bottom-menu{width:100%;position:fixed;bottom:0;left:0}.ol-box{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;border:2px solid #00f}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width}.ol-overlay-container{will-change:left,right,top,bottom}.ol-unsupported{display:none}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:grab}.ol-control{position:absolute;background-color:hsla(0,0%,100%,.4);border-radius:4px;padding:2px}.ol-control:hover{background-color:hsla(0,0%,100%,.6)}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;-webkit-transition:opacity .25s linear,visibility 0s linear;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;-webkit-transition:opacity .25s linear,visibility 0s linear .25s;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}@media print{.ol-control{display:none}}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-size:1.14em;font-weight:700;text-decoration:none;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:focus,.ol-control button:hover{text-decoration:none;background-color:rgba(0,60,136,.7)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em)}.ol-attribution ul{margin:0;padding:0 .5em;font-size:.7rem;line-height:1.375em;color:#000;text-shadow:0 0 2px #fff}.ol-attribution li{display:inline;list-style:none;line-height:inherit}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button,.ol-attribution ul{display:inline-block}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:hsla(0,0%,100%,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0;height:1.1em;line-height:1em}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:inline-block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:1px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:hsla(0,0%,100%,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.kexplorer-container{background-color:#263238;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHUlEQVQIW2NgY2OzYUACYL6+vn4UsgAynwwBEB8ARuIGpsZxGOoAAAAASUVORK5CYII=)}.klab-spinner{display:inline;vertical-align:middle;background-color:#fff;border-radius:40px;padding:3px;margin:0}.kexplorer-undocking{position:fixed;left:0;top:0;background-color:rgba(35,35,35,.3);border:4px solid hsla(0,0%,52.9%,.6);-webkit-animation-duration:.2s;animation-duration:.2s;cursor:move}.klab-left{position:absolute;background-color:rgba(35,35,35,.8)}.klab-large-mode.no-scroll{overflow:visible!important}.kapp-container .kcv-alert .modal-backdrop{background-color:transparent}.kapp-container .q-input-target{color:var(--app-text-color);background-color:var(--app-background-color);line-height:var(--app-line-height);height:auto}.kapp-container .q-btn{min-height:var(--app-line-height)}.kapp-container .q-no-input-spinner{-moz-appearance:textfield!important}.kapp-container .q-no-input-spinner::-webkit-inner-spin-button,.kapp-container .q-no-input-spinner::-webkit-outer-spin-button{-webkit-appearance:auto}.kapp-container .q-if:after,.kapp-container .q-if:before{border-bottom-style:none}.kapp-container .q-if .q-if-inner{min-height:unset}.kapp-container .q-if-baseline{line-height:var(--app-line-height)}.kapp-container .q-field-bottom,.kapp-container .q-field-icon,.kapp-container .q-field-label,.kapp-container .q-if,.kapp-container .q-if-addon,.kapp-container .q-if-control,.kapp-container .q-if-label,.kapp-container .q-if:before{-webkit-transition:none;transition:none}.kcv-main-container+.kcv-group{padding-bottom:1px}.kcv-main-container>.kcv-group{height:100%!important;border-bottom:1px solid var(--app-main-color)}.kcv-main-container>.kcv-group>.kcv-group-container>.kcv-group-content>.kcv-group>.kcv-group-content{padding-bottom:0!important}.kcv-main-container>.kcv-group .kcv-group-container{height:100%!important}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%!important}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content{padding-bottom:var(--app-smaller-mp);-ms-flex-pack:distribute;justify-content:space-around}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content .kcv-group{padding:calc(var(--app-smaller-mp)/4) 0}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group:not(.kcv-wrapper)>.kcv-group-content .kcv-pushbutton{margin:var(--app-large-mp) 0}.kcv-main-container>.kcv-group .kcv-group-container .kcv-group-content .kcv-group-legend{color:var(--app-title-color);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2em;vertical-align:center;font-weight:300;font-size:1.2em}.kcv-main-container>.kcv-group .kcv-group-bottom{position:fixed;bottom:0;z-index:1000;background-color:var(--app-background-color);border-top:1px solid var(--app-main-color)}.kcv-collapsible .kcv-collapsible-header{background-color:var(--app-background-color);color:var(--app-title-color);border-bottom:1px solid var(--app-darken-background-color)}.kcv-collapsible .kcv-collapsible-header .q-item-side-left{min-width:0}.kcv-collapsible .kcv-collapsible-header .q-item-side-left .q-icon{font-size:1.2em;width:1.2em}.kcv-collapsible .kcv-collapsible-header .q-item-label{font-size:var(--app-font-size)}.kcv-collapsible .kcv-collapsible-header .q-item-side{color:var(--app-title-color)}.kcv-collapsible .kcv-collapsible-header .q-item-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.kcv-collapsible .kcv-collapsible-header .q-item-icon.rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.kcv-collapsible .q-item{min-height:unset;padding:var(--app-small-mp)}.kcv-collapsible .q-collapsible-sub-item{padding:0}.kcv-collapsible .q-collapsible-sub-item>.kcv-group{border-top:1px solid var(--app-main-color);border-bottom:1px solid var(--app-main-color)}.kcv-tree-container{padding:var(--app-small-mp) 0;position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.kcv-tree-container .kcv-tree-legend{color:var(--app-title-color);padding:var(--app-small-mp);margin:0 var(--app-small-mp);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kcv-hr-separator{width:100%;color:var(--app-main-color);height:1px}.kcv-separator{padding:var(--app-large-mp) var(--app-small-mp);position:relative;border-bottom:1px solid var(--app-main-color);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1.2em}.kcv-separator .kcv-separator-icon{margin-right:var(--app-small-mp);font-size:1.2em;width:1.2em}.kcv-separator .kcv-separator-title{font-weight:300;font-size:1.2em;-webkit-box-flex:10;-ms-flex-positive:10;flex-grow:10}.kcv-separator .kcv-separator-right{font-size:1.3em;width:1.2em;-ms-flex-item-align:start;align-self:flex-start;cursor:pointer}.kcv-label{font-weight:400;color:var(--app-main-color);vertical-align:middle;line-height:calc(var(--app-line-height) + 4px);-ms-flex-item-align:center;align-self:center;padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-label.kcv-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kcv-label.kcv-with-icon{min-width:calc(1rem + var(--app-small-mp)*2)}.kcv-label .kcv-label-icon{margin-right:var(--app-small-mp)}.kcv-label.kcv-title{color:var(--app-alt-color);font-weight:700;cursor:default;margin-top:var(--app-smaller-mp)}.kcv-label.kcv-clickable{cursor:pointer}.kcv-text{margin:var(--app-large-mp) var(--app-small-mp);text-align:justify;position:relative;color:var(--app-text-color)}.kcv-text .kcv-internal-text{overflow:hidden}.kcv-text .kcv-internal-text p{padding:0 var(--app-small-mp);margin-bottom:var(--app-large-mp)}.kcv-text .kcv-internal-text strong{color:var(--app-title-color)}.kcv-text .kcv-collapse-button{width:100%;position:absolute;bottom:0;left:0;text-align:center;vertical-align:middle;line-height:20px;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s;cursor:pointer;background-color:rgba(var(--app-rgb-main-color),.1);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.kcv-text:hover .kcv-collapse-button{opacity:1}.kcv-text.kcv-collapse{margin-bottom:1em}.kcv-text.kcv-collapsed{padding-top:0;height:20px!important;overflow:hidden;padding-bottom:14px}.kcv-text.kcv-collapsed .kcv-internal-text{display:none}.kcv-text.kcv-collapsed .kcv-collapse-button{opacity:1;border-radius:4px}.kcv-form-element{margin:0 var(--app-small-mp)}.kcv-form-element:not(.kcv-roundbutton){border-radius:6px}.kcv-text-input{min-height:var(--app-line-height);vertical-align:middle;border:1px solid var(--app-main-color);background-color:var(--app-background-color);padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-text-input.kcv-search{margin-top:var(--app-smaller-mp)}.kcv-combo{padding:2px 10px;background-color:var(--app-background-color);border-radius:6px;border:1px solid var(--app-main-color)}.kcv-combo-option{color:var(--app-main-color);min-height:unset;padding:var(--app-small-mp) var(--app-large-mp)}.kcv-pushbutton{font-size:var(--app-font-size);margin:0 var(--app-small-mp)}.kcv-pushbutton .q-icon{color:var(--button-icon-color)}.kcv-reset-button,.kcv-roundbutton{margin:0 var(--app-smaller-mp)}.kcv-checkbutton{display:block;padding:var(--app-smaller-mp) var(--app-small-mp)}.kcv-checkbutton:not(.kcv-check-only){width:100%}.kcv-checkbutton.kcv-check-computing span,.kcv-checkbutton.kcv-check-waiting span{font-style:italic}.kcv-checkbutton.kcv-check-computing .q-icon:before,.kcv-checkbutton.kcv-check-waiting .q-icon:before{font-size:calc(1em + 1px);-webkit-animation:q-spin 2s linear infinite;animation:q-spin 2s linear infinite}.kcv-label-toggle{color:var(--app-darken-background-color);text-shadow:-1px -1px 0 var(--app-main-color)}.kcv-error-tooltip{background-color:var(--app-negative-color)}.kcv-browser{border-radius:8px}.kcv-style-dark .kcv-reset-button{color:#fa7575!important}@-webkit-keyframes flash-button{50%{background-color:var(--flash-color)}}@keyframes flash-button{50%{background-color:var(--flash-color)}}body .klab-main-app{position:relative}body .km-modal-window{background-color:var(--app-background-color)}body .km-modal-window iframe{background-color:#fff}body .kapp-footer-container,body .kapp-header-container,body .kapp-left-inner-container,body .kapp-main-container:not(.is-kexplorer),body .kapp-right-inner-container{color:var(--app-text-color);font-family:var(--app-font-family);font-size:var(--app-font-size);line-height:var(--app-line-height);background-color:var(--app-background-color);padding:0;margin:0}body .kapp-right-inner-container{position:absolute!important}body .kapp-right-inner-container .kapp-right-wrapper{overflow:hidden}body .kapp-left-inner-container{position:absolute!important}body .kapp-left-inner-container .kapp-left-wrapper{overflow:hidden}.kapp-main.q-layout{border:0;padding:0;margin:0}.kapp-main .simplebar-scrollbar:before{background-color:var(--app-main-color)}.kapp-header{background-color:var(--app-background-color);padding:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;height:calc(40px + var(--app-title-size) + var(--app-subtitle-size));min-height:calc(40px + var(--app-title-size) + var(--app-subtitle-size))}.kapp-header .kapp-logo-container{-ms-flex-item-align:center;align-self:center;margin:0 10px}.kapp-header .kapp-logo-container img{max-width:80px;max-height:80px}.kapp-header .kapp-title-container{color:var(--app-title-color);-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:center;align-self:center;padding-left:10px}.kapp-header .kapp-title-container .kapp-title{height:var(--app-title-size);line-height:var(--app-title-size);font-weight:500;font-size:var(--app-title-size);margin-bottom:6px}.kapp-header .kapp-title-container .kapp-version{display:inline-block;font-weight:300;font-size:var(--app-subtitle-size);margin-left:16px;position:relative;bottom:3px;padding:0 4px;opacity:.5;border:1px solid var(--app-main-color)}.kapp-header .kapp-title-container .kapp-subtitle{height:var(--app-subtitle-size);line-height:var(--app-subtitle-size);font-size:var(--app-subtitle-size);font-weight:300}.kapp-header .kapp-header-menu-container{position:absolute;right:0;padding:10px 16px}.kapp-header .kapp-header-menu-container .kapp-header-menu-item{margin:0 0 0 16px;color:var(--app-title-color);cursor:pointer}.kapp-header .kapp-actions-container .klab-main-actions{margin:0 1px 0 0;min-width:178px}.kapp-header .kapp-actions-container .klab-main-actions .klab-button{width:60px;height:45px;font-size:26px;margin:0 -1px 0 0;text-align:center;padding:10px 0;border-top-left-radius:4px!important;border-top-right-radius:4px!important;border:1px solid var(--app-main-color);border-bottom:0;text-shadow:0 1px 2px var(--app-lighten-background-color);color:var(--app-main-color)!important;position:relative;bottom:-1px}.kapp-header .kapp-actions-container .klab-main-actions .klab-button.active{background-color:var(--app-darken-background-color)}.kapp-header .kapp-actions-container .klab-main-actions .klab-button:hover:not(.active){background-color:var(--app-darken-background-color);border-bottom:1px solid var(--app-main-color)}.kapp-header .kapp-actions-container .klab-main-actions .klab-button-notification{width:11px;height:11px;border-radius:10px;top:5px;right:11px;background-color:var(--app-main-color)!important;border:1px solid var(--app-background-color)}.kcv-dir-vertical{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%!important}.klab-close-app{position:absolute;z-index:100000}.klab-close-app.klab-close-app-on-left,.klab-close-app.klab-close-app-on-panel{height:32px;width:32px;opacity:.2}.klab-close-app.klab-close-app-on-left .q-icon,.klab-close-app.klab-close-app-on-panel .q-icon{font-size:16px}.klab-close-app.klab-close-app-on-left:hover,.klab-close-app.klab-close-app-on-panel:hover{height:50px;width:50px;opacity:1}.klab-close-app.klab-close-app-on-left:hover .q-icon,.klab-close-app.klab-close-app-on-panel:hover .q-icon{font-size:22px}.klab-close-app.klab-close-app-on-left:hover{-webkit-transform:translate(-22px);transform:translate(-22px)}.klab-close-app.klab-close-app-on-panel{background-color:var(--app-main-color);color:var(--app-background-color)}.klab-link .klab-external-link{color:var(--app-text-color);font-weight:700;display:inline;margin:0 0 0 3px}.kapp-loading{background-color:var(--app-background-color);padding:16px;text-align:center;min-width:60px;border-radius:20px}.kapp-loading div{margin-top:15px;color:var(--app-main-color)}.km-main-container .km-title{background-color:var(--app-background-color)!important;color:var(--app-main-color)!important}.km-main-container .km-title .q-toolbar-title{font-size:var(--app-modal-title-size)}.km-main-container .km-title .km-subtitle{font-size:var(--app-modal-subtitle-size)}.km-main-container .km-content{overflow:hidden;border-radius:8px;border:1px solid var(--app-main-color);margin:16px 16px 0;padding:8px;background-color:var(--app-background-color)}.km-main-container .km-content .kcv-main-container>.kcv-group{border:none}.km-main-container .km-buttons{margin:8px 16px}.km-main-container .km-buttons .klab-button{font-size:16px;background-color:var(--app-main-color);color:var(--app-background-color)!important}.ks-stack-container{position:relative;height:calc(100% - 30px);margin:30px 20px 0}.ks-stack-container .ks-layer{position:absolute;top:0;left:0;bottom:90px;right:0;opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out;overflow:hidden}.ks-stack-container .ks-layer.ks-top-layer{z-index:999!important;opacity:1}.ks-stack-container li{padding-bottom:10px}.ks-stack-container .ks-layer-caption{position:absolute;padding:12px;width:auto;height:auto;color:#616161;max-height:100%;overflow:auto}.ks-stack-container .ks-layer-caption .ks-caption-title{font-size:24px;letter-spacing:normal;margin:0;text-align:center}.ks-stack-container .ks-layer-caption .ks-caption-text{font-size:16px}.ks-stack-container .ks-layer-image{position:absolute;overflow:hidden}.ks-stack-container .ks-layer-image img{width:auto;height:auto}.ks-stack-container .ks-middle{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ks-stack-container .ks-middle.ks-center{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ks-stack-container .ks-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.ks-stack-container .ks-center:not(.ks-layer-image){width:100%}.ks-stack-container .ks-top{top:0}.ks-stack-container .ks-bottom{bottom:0}.ks-stack-container .ks-left{left:0}.ks-stack-container .ks-right{right:0}.ks-stack-container .ks-navigation{width:100%;text-align:center;position:absolute;bottom:50px;right:0;z-index:10000;vertical-align:middle;-webkit-transition:opacity .3s;transition:opacity .3s;height:40px;border-bottom:1px solid #eee}.ks-stack-container .ks-navigation.ks-navigation-transparent{opacity:.6}.ks-stack-container .ks-navigation:hover{opacity:1}@media (min-width:1600px){.ks-stack-container .ks-caption-title{font-size:32px!important;margin:0 0 1em!important}.ks-stack-container .ks-caption-text{font-size:18px!important}}.klab-modal-container .klab-modal-inner .kp-no-presentation{font-weight:700;position:relative}.klab-modal-container .klab-modal-inner .kp-no-presentation .kp-refresh-btn{position:relative}.klab-modal-container .klab-modal-inner .kp-no-presentation .klab-small{font-size:smaller}.klab-modal-container .kp-help-titlebar{position:absolute;width:100%;height:25px;padding:8px 0 0 20px;z-index:100000}.klab-modal-container .kp-help-titlebar .kp-link{font-size:11px;color:#616161;cursor:pointer;float:left;padding:0 10px 0 0}.klab-modal-container .kp-help-titlebar .kp-link:hover:not(.kp-link-current){text-decoration:underline;color:#1ab}.klab-modal-container .kp-help-titlebar .kp-link-current{cursor:default;text-decoration:underline}.klab-modal-container .kp-carousel .kp-slide{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.klab-modal-container .kp-carousel .kp-main-content{-webkit-box-flex:1;-ms-flex:auto;flex:auto}.klab-modal-container .kp-carousel .kp-main-content .kp-main-image{text-align:center;background-repeat:no-repeat;background-size:contain;background-position:50%;height:calc(100% - 40px)}.klab-modal-container .kp-main-title,.klab-modal-container .kp-nav-tooltip{position:absolute;bottom:0;vertical-align:middle;font-size:20px;line-height:50px;height:50px;text-align:center;width:80%;margin-left:10%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.klab-modal-container .kp-nav-tooltip{-webkit-transition:opacity .3s;transition:opacity .3s;opacity:0}.klab-modal-container .kp-nav-tooltip.visible{opacity:1}.klab-modal-container .kp-navigation{position:absolute;bottom:0;padding:10px 10px 10px 15px;vertical-align:middle}.klab-modal-container .kp-navigation .kp-navnumber-container{padding-left:3px;position:relative;float:left}.klab-modal-container .kp-navigation .kp-navnumber-container:hover .kp-nav-current,.klab-modal-container .kp-navigation .kp-navnumber-container:hover .kp-nav-number{opacity:1;background-color:rgba(97,97,97,.7)}.klab-modal-container .kp-navigation .kp-nav-number{height:30px;width:30px;line-height:30px;vertical-align:middle;color:#fff;text-align:center;padding:0;cursor:pointer;border-radius:20px;background-color:rgba(97,97,97,.4);opacity:.7;z-index:10000}.klab-modal-container .kp-navigation .kp-nav-number.kp-nav-current,.klab-modal-container .kp-navigation .kp-nav-number:hover{opacity:1;background-color:rgba(97,97,97,.7)}.klab-modal-container .internal-link{cursor:pointer}.klab-modal-container .internal-link:hover{color:#ffc300}.klab-modal-container .kp-icon-close-popover,.klab-modal-container .kp-icon-refresh-size{position:absolute;top:1px;right:2px;width:22px;height:22px;z-index:200000}.klab-modal-container .kp-icon-close-popover .q-focus-helper,.klab-modal-container .kp-icon-refresh-size .q-focus-helper{opacity:0}.klab-modal-container .kp-icon-close-popover:hover .mdi-close-circle-outline:before,.klab-modal-container .kp-icon-refresh-size:hover .mdi-close-circle-outline:before{content:"\F0159"}.klab-modal-container .kp-icon-refresh-size{right:24px}.klab-modal-container .kp-icon-refresh-size:hover{color:#1ab!important}.klab-modal-container .kp-checkbox{position:absolute;right:20px;bottom:10px;font-size:10px}.kn-modal-container .modal-content{max-width:640px!important}.kn-title{font-size:var(--app-title-size);color:var(--app-title-color)}.kn-content{font-size:var(--app-text-size)}.kn-checkbox,.kn-content{color:var(--app-text-color)}.kn-checkbox{position:absolute;left:20px;bottom:16px;font-size:10px}[data-simplebar]{position:relative;z-index:0;overflow:hidden!important;max-height:inherit;-webkit-overflow-scrolling:touch}[data-simplebar=init]{display:-webkit-box;display:-ms-flexbox;display:flex}[data-simplebar] .simplebar-content,[data-simplebar] .simplebar-scroll-content{overflow:hidden}[data-simplebar=init] .simplebar-content,[data-simplebar=init] .simplebar-scroll-content{overflow:scroll}.simplebar-scroll-content{overflow-x:hidden!important;min-width:100%!important;max-height:inherit!important;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.simplebar-content{overflow-y:hidden!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important;min-height:100%!important}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;width:11px;pointer-events:none}.simplebar-scrollbar{position:absolute;right:2px;width:7px;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:0;right:0;opacity:0;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.simplebar-track .simplebar-scrollbar.visible:before{opacity:.5;-webkit-transition:opacity 0 linear;transition:opacity 0 linear}.simplebar-track.vertical{top:0}.simplebar-track.vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.horizontal{left:0;width:auto;height:11px}.simplebar-track.horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.horizontal.simplebar-track .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track{right:auto;left:0}[data-simplebar-direction=rtl] .simplebar-track.horizontal{right:0}:root{--main-control-max-height:90vh;--q-tree-no-child-min-height:32px;--app-main-color:#005c81;--app-highlight-main-color:#0077a7;--app-rgb-main-color:0,92,129;--app-background-color:#fafafa;--app-darken-background-color:#ededed;--app-darklight-background-color:#ededed;--app-lighten-background-color:#fafafa;--app-highlight-background-color:#fbfbfb;--app-rgb-background-color:250,250,250;--app-text-color:#005c81;--app-control-text-color:#005c81;--app-link-color:#73937e;--app-link-visited-color:#73937e;--app-highlight-text-color:#0077a7;--app-title-color:#005c81;--app-alt-color:#00a4a1;--app-alt-background:#dedede;--app-rgb-text-color:0,92,129;--app-waiting-color:#f2c037;--app-positive-color:#19a019;--app-negative-color:#db2828;--app-font-family:"Roboto","-apple-system","Helvetica Neue",Helvetica,Arial,sans-serif;--app-font-size:1em;--app-title-size:26px;--app-subtitle-size:16px;--app-small-size:0.9em;--app-modal-title-size:22px;--app-modal-subtitle-size:12px;--app-line-height:1em;--app-small-mp:8px;--app-smaller-mp:calc(var(--app-small-mp)/2);--app-large-mp:16px;--body-min-width:640px;--body-min-height:480px}.klab-wait-app{min-width:50px}.klab-wait-app .klab-wait-app-container{text-align:center;width:100%;font-weight:300;font-size:1.5em;padding:20px}.klab-wait-app .klab-wait-app-container p{margin-bottom:0}.klab-wait-app .klab-wait-app-container strong{color:#1ab}.klab-wait-app .klab-wait-app-container .q-spinner{margin-bottom:16px}.klab-wait-app .klab-wait-app-container .klab-app-error,.klab-wait-app .klab-wait-app-container .klab-app-error strong{color:#ff6464}.klab-wait-app .klab-wait-app-container a.klab-app-refresh{display:block;color:#1ab;padding:8px 0 0;text-decoration:none}.klab-wait-app .klab-wait-app-container a.klab-app-refresh:after{content:"\F0450";display:inline-block;font-family:Material Design Icons;margin:2px 0 0 8px;vertical-align:bottom;-webkit-transition:.6s;transition:.6s}.klab-wait-app .klab-wait-app-container a.klab-app-refresh:hover:after{-webkit-transform:rotate(1turn);transform:rotate(1turn)} \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/index.html b/klab.engine/src/main/resources/static/ui/index.html index 1252fa4e95..5492b8d1ed 100644 --- a/klab.engine/src/main/resources/static/ui/index.html +++ b/klab.engine/src/main/resources/static/ui/index.html @@ -1,3 +1,3 @@ -k.Explorer
\ No newline at end of file + }
\ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/74fd8965.2c37b5ae.js b/klab.engine/src/main/resources/static/ui/js/74fd8965.2c37b5ae.js deleted file mode 100644 index 3d4b3d5797..0000000000 --- a/klab.engine/src/main/resources/static/ui/js/74fd8965.2c37b5ae.js +++ /dev/null @@ -1,27 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["74fd8965"],{"019a":function(e,t,n){},"0300":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null===e||void 0===e)throw new Error(i.NULL_ARGUMENT);if(null===t||void 0===t)throw new Error(i.NULL_ARGUMENT);var n=this._map.get(e);void 0!==n?(n.push(t),this._map.set(e,n)):this._map.set(e,[t])},e.prototype.get=function(e){if(null===e||void 0===e)throw new Error(i.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(i.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null===e||void 0===e)throw new Error(i.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(i.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach(function(n,i){var o=n.filter(function(t){return!e(t)});o.length>0?t._map.set(i,o):t._map.delete(i)})},e.prototype.hasKey=function(e){if(null===e||void 0===e)throw new Error(i.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach(function(e,n){e.forEach(function(e){return t.add(n,e.clone())})}),t},e.prototype.traverse=function(e){this._map.forEach(function(t,n){e(n,t)})},e}();t.Lookup=o},"0312":function(e,t){var n=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=n},"0483":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("b485"),s=new i.ContainerModule(function(e){e(o.TYPES.MouseListener).to(r.OpenMouseListener)});t.default=s},"04c2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("4741"),s=new i.ContainerModule(function(e){e(o.TYPES.IButtonHandler).toConstructor(r.ExpandButtonHandler)});t.default=s},"0505":function(e,t,n){},"064a":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("393a"),c=n("e1c6"),l=n("6923"),u=n("3864"),d=n("dd02"),h=n("7b39"),p=n("302f"),f=n("3623"),m=function(e){function t(t){var n=e.call(this)||this;return n.registerDefaults(),t.forEach(function(e){return n.register(e.type,e.factory())}),n}return i(t,e),t.prototype.registerDefaults=function(){this.register(p.EMPTY_ROOT.type,new b)},t.prototype.missing=function(e){return new y},t=o([c.injectable(),s(0,c.multiInject(l.TYPES.ViewRegistration)),s(0,c.optional()),r("design:paramtypes",[Array])],t),t}(u.InstanceRegistry);function g(e,t,n,i,o){f.registerModelElement(e,t,n,o),v(e,t,i)}function v(e,t,n){if("function"===typeof n){if(!h.isInjectable(n))throw new Error("Views should be @injectable: "+n.name);e.isBound(n)||e.bind(n).toSelf()}e.bind(l.TYPES.ViewRegistration).toDynamicValue(function(e){return{type:t,factory:function(){return e.container.get(n)}}})}t.ViewRegistry=m,t.configureModelElement=g,t.configureView=v;var b=function(){function e(){}return e.prototype.render=function(e,t){return a.svg("svg",{"class-sprotty-empty":!0})},e=o([c.injectable()],e),e}();t.EmptyView=b;var y=function(){function e(){}return e.prototype.render=function(e,t){var n=e.position||d.ORIGIN_POINT;return a.svg("text",{"class-sprotty-missing":!0,x:n.x,y:n.y},"?",e.id,"?")},e=o([c.injectable()],e),e}();t.MissingView=y},"0960":function(e,t,n){e.exports=n("b19a")},"0a28":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t"+e+""}),n},t.prototype.renderIcon=function(e,t){e.innerHTML+=''},t.prototype.filterActions=function(e,t){return f.toArray(t.filter(function(t){var n=t.label.toLowerCase(),i=e.split(" ");return i.every(function(e){return-1!==n.indexOf(e.toLowerCase())})}))},t.prototype.customizeSuggestionContainer=function(e,t,n){this.containerElement&&this.containerElement.appendChild(e)},t.prototype.hide=function(){e.prototype.hide.call(this),this.autoCompleteResult&&this.autoCompleteResult.destroy()},t.prototype.executeAction=function(e){var t=this;this.actionDispatcherProvider().then(function(t){return t.dispatchAll(w(e))}).catch(function(e){return t.logger.error(t,"No action dispatcher available to execute command palette action",e)})},t.ID="command-palette",t.isInvokePaletteKey=function(e){return m.matchesKeystroke(e,"Space","ctrl")},o([a.inject(l.TYPES.IActionDispatcherProvider),r("design:type",Function)],t.prototype,"actionDispatcherProvider",void 0),o([a.inject(l.TYPES.ICommandPaletteActionProviderRegistry),r("design:type",b.CommandPaletteActionProviderRegistry)],t.prototype,"actionProviderRegistry",void 0),o([a.inject(l.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"viewerOptions",void 0),o([a.inject(l.TYPES.DOMHelper),r("design:type",h.DOMHelper)],t.prototype,"domHelper",void 0),o([a.inject(y.MousePositionTracker),r("design:type",y.MousePositionTracker)],t.prototype,"mousePositionTracker",void 0),t=n=o([a.injectable()],t),t}(u.AbstractUIExtension);function w(e){return c.isLabeledAction(e)?e.actions:c.isAction(e)?[e]:[]}function C(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}t.CommandPalette=M;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){if(m.matchesKeystroke(t,"Escape"))return[new d.SetUIExtensionVisibilityAction(M.ID,!1,[])];if(M.isInvokePaletteKey(t)){var n=f.toArray(e.index.all().filter(function(e){return v.isSelectable(e)&&e.selected}).map(function(e){return e.id}));return[new d.SetUIExtensionVisibilityAction(M.ID,!0,n)]}return[]},t}(p.KeyListener);t.CommandPaletteKeyListener=S},"0bd8":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=function(){function e(){}return e.prototype.decorate=function(e,t){return e},e.prototype.postUpdate=function(){var e=document.getElementById(this.options.popupDiv);if(null!==e&&"undefined"!==typeof window){var t=e.getBoundingClientRect();window.innerHeight=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=function(){function e(){}return e.prototype.getPrefix=function(){var e=void 0!==this.viewerOptions&&void 0!==this.viewerOptions.baseDiv?this.viewerOptions.baseDiv+"_":"";return e},e.prototype.createUniqueDOMElementId=function(e){return this.getPrefix()+e.id},e.prototype.findSModelIdByDOMElement=function(e){return e.id.replace(this.getPrefix(),"")},i([r.inject(s.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"viewerOptions",void 0),e=i([r.injectable()],e),e}();t.DOMHelper=a},"0e44":function(e,t,n){"use strict";var i=n("7615"),o=n.n(i);o.a},"0efb":function(e,t,n){var i,o,r;//! moment-timezone.js -//! version : 0.5.34 -//! Copyright (c) JS Foundation and other contributors -//! license : MIT -//! github.com/moment/moment-timezone -//! moment-timezone.js -//! version : 0.5.34 -//! Copyright (c) JS Foundation and other contributors -//! license : MIT -//! github.com/moment/moment-timezone -(function(s,a){"use strict";e.exports?e.exports=a(n("c1df")):(o=[n("c1df")],i=a,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r))})(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n="0.5.34",i={},o={},r={},s={},a={};e&&"string"===typeof e.version||j("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var c=e.version.split("."),l=+c[0],u=+c[1];function d(e){return e>96?e-87:e>64?e-29:e-48}function h(e){var t,n=0,i=e.split("."),o=i[0],r=i[1]||"",s=1,a=0,c=1;for(45===e.charCodeAt(0)&&(n=1,c=-1),n;n3){var t=s[L(e)];if(t)return t;j("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,i,o,r=w(),a=r.length,c=A(r),l=[];for(i=0;i0?l[0].zone.name:void 0}function O(e){return t&&!e||(t=E()),t}function L(e){return(e||"").toLowerCase().replace(/\//g,"_")}function T(e){var t,n,o,r;for("string"===typeof e&&(e=[e]),t=0;t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),v.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,i=this.untils;for(t=0;ti&&W.moveInvalidForward&&(t=i),r0&&(this._z=null),e.apply(this,arguments)}}e.tz=W,e.defaultZone=null,e.updateOffset=function(t,n){var i,o=e.defaultZone;if(void 0===t._z&&(o&&q(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(o.parse(t),"minutes")),t._z=o),t._z)if(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset){var r=t._z;t.utcOffset(-i,n),t._z=r}else t.zone(i,n)},F.tz=function(t,n){if(t){if("string"!==typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=x(t),this._z?e.updateOffset(this,n):j("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},F.zoneName=H(F.zoneName),F.zoneAbbr=H(F.zoneAbbr),F.utc=X(F.utc),F.local=X(F.local),F.utcOffset=U(F.utcOffset),e.tz.setDefault=function(t){return(l<2||2===l&&u<9)&&j("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?x(t):null,e};var V=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(V)?(V.push("_z"),V.push("_a")):V&&(V._z=null),e})},"0f4c":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("c146"),r=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.elementResizes=n,r.reverse=o,r}return i(t,e),t.prototype.tween=function(e){var t=this;return this.elementResizes.forEach(function(n){var i=n.element,o=t.reverse?{width:(1-e)*n.toDimension.width+e*n.fromDimension.width,height:(1-e)*n.toDimension.height+e*n.fromDimension.height}:{width:(1-e)*n.fromDimension.width+e*n.toDimension.width,height:(1-e)*n.fromDimension.height+e*n.toDimension.height};i.bounds={x:i.bounds.x,y:i.bounds.y,width:o.width,height:o.height}}),this.model},t}(o.Animation);t.ResizeAnimation=r},"0faf":function(e,t,n){"use strict";var i=n("5870"),o=n.n(i);o.a},"0fb6":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=n("9175"),c=n("302f"),l=n("538c"),u=n("3f0a"),d=n("c20e"),h=n("510b"),p=function(){function e(){this.postponedActions=[],this.requests=new Map}return e.prototype.initialize=function(){var e=this;return this.initialized||(this.initialized=this.actionHandlerRegistryProvider().then(function(t){e.actionHandlerRegistry=t,e.handleAction(new u.SetModelAction(c.EMPTY_ROOT))})),this.initialized},e.prototype.dispatch=function(e){var t=this;return this.initialize().then(function(){return void 0!==t.blockUntil?t.handleBlocked(e,t.blockUntil):t.diagramLocker.isAllowed(e)?t.handleAction(e):void 0})},e.prototype.dispatchAll=function(e){var t=this;return Promise.all(e.map(function(e){return t.dispatch(e)}))},e.prototype.request=function(e){if(!e.requestId)return Promise.reject(new Error("Request without requestId"));var t=new a.Deferred;return this.requests.set(e.requestId,t),this.dispatch(e),t.promise},e.prototype.handleAction=function(e){if(e.kind===d.UndoAction.KIND)return this.commandStack.undo().then(function(){});if(e.kind===d.RedoAction.KIND)return this.commandStack.redo().then(function(){});if(h.isResponseAction(e)){var t=this.requests.get(e.responseId);if(void 0!==t){if(this.requests.delete(e.responseId),e.kind===h.RejectAction.KIND){var n=e;t.reject(new Error(n.message)),this.logger.warn(this,"Request with id "+e.responseId+" failed.",n.message,n.detail)}else t.resolve(e);return Promise.resolve()}this.logger.log(this,"No matching request for response",e)}var i=this.actionHandlerRegistry.get(e.kind);if(0===i.length){this.logger.warn(this,"Missing handler for action",e);var o=new Error("Missing handler for action '"+e.kind+"'");if(h.isRequestAction(e)){t=this.requests.get(e.requestId);void 0!==t&&(this.requests.delete(e.requestId),t.reject(o))}return Promise.reject(o)}this.logger.log(this,"Handle",e);for(var r=[],s=0,a=i;s=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,a)}c((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return c([e,t])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("3a92"),l=n("e45b"),u=function(){function e(e){void 0===e&&(e=[]),this.keyListeners=e}return e.prototype.register=function(e){this.keyListeners.push(e)},e.prototype.deregister=function(e){var t=this.keyListeners.indexOf(e);t>=0&&this.keyListeners.splice(t,1)},e.prototype.handleEvent=function(e,t,n){var i=this.keyListeners.map(function(i){return i[e].apply(i,[t,n])}).reduce(function(e,t){return e.concat(t)});i.length>0&&(n.preventDefault(),this.actionDispatcher.dispatchAll(i))},e.prototype.keyDown=function(e,t){this.handleEvent("keyDown",e,t)},e.prototype.keyUp=function(e,t){this.handleEvent("keyUp",e,t)},e.prototype.focus=function(){},e.prototype.decorate=function(e,t){return t instanceof c.SModelRoot&&(l.on(e,"focus",this.focus.bind(this),t),l.on(e,"keydown",this.keyDown.bind(this),t),l.on(e,"keyup",this.keyUp.bind(this),t)),e},e.prototype.postUpdate=function(){},i([s.inject(a.TYPES.IActionDispatcher),o("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=i([s.injectable(),r(0,s.multiInject(a.TYPES.KeyListener)),r(0,s.optional()),o("design:paramtypes",[Array])],e),e}();t.KeyTool=u;var d=function(){function e(){}return e.prototype.keyDown=function(e,t){return[]},e.prototype.keyUp=function(e,t){return[]},e=i([s.injectable()],e),e}();t.KeyListener=d},1468:function(e,t){var n=1e3,i=60*n,o=60*i,r=24*o,s=365.25*r;function a(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var a=parseFloat(t[1]),c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function c(e){return e>=r?Math.round(e/r)+"d":e>=o?Math.round(e/o)+"h":e>=i?Math.round(e/i)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}function l(e){return u(e,r,"day")||u(e,o,"hour")||u(e,i,"minute")||u(e,n,"second")||e+" ms"}function u(e,t,n){if(!(e0)return a(e);if("number"===n&&!1===isNaN(e))return t.long?l(e):c(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"155f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingScopeEnum=i;var o={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.BindingTypeEnum=o;var r={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};t.TargetTypeEnum=r},1590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t){this.toolIds=t,this.kind=e.KIND}return e.KIND="enable-tools",e}();t.EnableToolsAction=i;var o=function(){function e(){this.kind=e.KIND}return e.KIND="enable-default-tools",e}();t.EnableDefaultToolsAction=o},"15f6":function(e,t,n){},"160b":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("302f"),l=n("3a92"),u=n("538c"),d=n("9757"),h=function(){function e(){this.undoStack=[],this.redoStack=[],this.offStack=[]}return e.prototype.initialize=function(){this.currentPromise=Promise.resolve({main:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1},hidden:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1},popup:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1}})},Object.defineProperty(e.prototype,"currentModel",{get:function(){return this.currentPromise.then(function(e){return e.main.model})},enumerable:!0,configurable:!0}),e.prototype.executeAll=function(e){var t=this;return e.forEach(function(e){t.logger.log(t,"Executing",e),t.handleCommand(e,e.execute,t.mergeOrPush)}),this.thenUpdate()},e.prototype.execute=function(e){return this.logger.log(this,"Executing",e),this.handleCommand(e,e.execute,this.mergeOrPush),this.thenUpdate()},e.prototype.undo=function(){var e=this;this.undoOffStackSystemCommands(),this.undoPreceedingSystemCommands();var t=this.undoStack[this.undoStack.length-1];return void 0===t||this.isBlockUndo(t)||(this.undoStack.pop(),this.logger.log(this,"Undoing",t),this.handleCommand(t,t.undo,function(t,n){e.redoStack.push(t)})),this.thenUpdate()},e.prototype.redo=function(){var e=this;this.undoOffStackSystemCommands();var t=this.redoStack.pop();return void 0!==t&&(this.logger.log(this,"Redoing",t),this.handleCommand(t,t.redo,function(t,n){e.pushToUndoStack(t)})),this.redoFollowingSystemCommands(),this.thenUpdate()},e.prototype.handleCommand=function(e,t,n){var i=this;this.currentPromise=this.currentPromise.then(function(o){return new Promise(function(r){var s;s=e instanceof d.HiddenCommand?"hidden":e instanceof d.PopupCommand?"popup":"main";var a,c=i.createContext(o.main.model);try{a=t.call(e,c)}catch(e){i.logger.error(i,"Failed to execute command:",e),a=o[s].model}var u=p(o);a instanceof Promise?a.then(function(t){"main"===s&&n.call(i,e,c),u[s]={model:t,modelChanged:!0},r(u)}):a instanceof l.SModelRoot?("main"===s&&n.call(i,e,c),u[s]={model:a,modelChanged:!0},r(u)):("main"===s&&n.call(i,e,c),u[s]={model:a.model,modelChanged:o[s].modelChanged||a.modelChanged,cause:a.cause},r(u))})})},e.prototype.pushToUndoStack=function(e){this.undoStack.push(e),this.options.undoHistoryLimit>=0&&this.undoStack.length>this.options.undoHistoryLimit&&this.undoStack.splice(0,this.undoStack.length-this.options.undoHistoryLimit)},e.prototype.thenUpdate=function(){var e=this;return this.currentPromise=this.currentPromise.then(function(t){var n=p(t);return t.hidden.modelChanged&&(e.updateHidden(t.hidden.model,t.hidden.cause),n.hidden.modelChanged=!1,n.hidden.cause=void 0),t.main.modelChanged&&(e.update(t.main.model,t.main.cause),n.main.modelChanged=!1,n.main.cause=void 0),t.popup.modelChanged&&(e.updatePopup(t.popup.model,t.popup.cause),n.popup.modelChanged=!1,n.popup.cause=void 0),n}),this.currentModel},e.prototype.update=function(e,t){void 0===this.modelViewer&&(this.modelViewer=this.viewerProvider.modelViewer),this.modelViewer.update(e,t)},e.prototype.updateHidden=function(e,t){void 0===this.hiddenModelViewer&&(this.hiddenModelViewer=this.viewerProvider.hiddenModelViewer),this.hiddenModelViewer.update(e,t)},e.prototype.updatePopup=function(e,t){void 0===this.popupModelViewer&&(this.popupModelViewer=this.viewerProvider.popupModelViewer),this.popupModelViewer.update(e,t)},e.prototype.mergeOrPush=function(e,t){var n=this;if(this.isBlockUndo(e))return this.undoStack=[],this.redoStack=[],this.offStack=[],void this.pushToUndoStack(e);if(this.isPushToOffStack(e)&&this.redoStack.length>0){if(this.offStack.length>0){var i=this.offStack[this.offStack.length-1];if(i instanceof d.MergeableCommand&&i.merge(e,t))return}this.offStack.push(e)}else if(this.isPushToUndoStack(e)){if(this.offStack.forEach(function(e){return n.undoStack.push(e)}),this.offStack=[],this.redoStack=[],this.undoStack.length>0){i=this.undoStack[this.undoStack.length-1];if(i instanceof d.MergeableCommand&&i.merge(e,t))return}this.pushToUndoStack(e)}},e.prototype.undoOffStackSystemCommands=function(){var e=this.offStack.pop();while(void 0!==e)this.logger.log(this,"Undoing off-stack",e),this.handleCommand(e,e.undo,function(){}),e=this.offStack.pop()},e.prototype.undoPreceedingSystemCommands=function(){var e=this,t=this.undoStack[this.undoStack.length-1];while(void 0!==t&&this.isPushToOffStack(t))this.undoStack.pop(),this.logger.log(this,"Undoing",t),this.handleCommand(t,t.undo,function(t,n){e.redoStack.push(t)}),t=this.undoStack[this.undoStack.length-1]},e.prototype.redoFollowingSystemCommands=function(){var e=this,t=this.redoStack[this.redoStack.length-1];while(void 0!==t&&this.isPushToOffStack(t))this.redoStack.pop(),this.logger.log(this,"Redoing ",t),this.handleCommand(t,t.redo,function(t,n){e.pushToUndoStack(t)}),t=this.redoStack[this.redoStack.length-1]},e.prototype.createContext=function(e){return{root:e,modelChanged:this,modelFactory:this.modelFactory,duration:this.options.defaultDuration,logger:this.logger,syncer:this.syncer}},e.prototype.isPushToOffStack=function(e){return e instanceof d.SystemCommand},e.prototype.isPushToUndoStack=function(e){return!(e instanceof d.HiddenCommand)},e.prototype.isBlockUndo=function(e){return e instanceof d.ResetCommand},o([s.inject(a.TYPES.IModelFactory),r("design:type",Object)],e.prototype,"modelFactory",void 0),o([s.inject(a.TYPES.IViewerProvider),r("design:type",Object)],e.prototype,"viewerProvider",void 0),o([s.inject(a.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),o([s.inject(a.TYPES.AnimationFrameSyncer),r("design:type",u.AnimationFrameSyncer)],e.prototype,"syncer",void 0),o([s.inject(a.TYPES.CommandStackOptions),r("design:type",Object)],e.prototype,"options",void 0),o([s.postConstruct(),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"initialize",null),e=o([s.injectable()],e),e}();function p(e){return{main:i({},e.main),hidden:i({},e.hidden),popup:i({},e.popup)}}t.CommandStack=h},"168d":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("3864"),c=n("d8f5"),l=n("e1c6"),u=n("6923"),d=function(e){function t(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.kind,e)}),n}return i(t,e),Object.defineProperty(t.prototype,"defaultKind",{get:function(){return c.PolylineEdgeRouter.KIND},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t||this.defaultKind)},t=o([l.injectable(),s(0,l.multiInject(u.TYPES.IEdgeRouter)),r("design:paramtypes",[Array])],t),t}(a.InstanceRegistry);t.EdgeRouterRegistry=d},1817:function(e,t,n){"use strict";var i=n("c23f"),o=n.n(i);o.a},1848:function(e,t,n){"use strict";var i=n("98ab"),o=n.n(i);o.a},1963:function(e,t,n){},1978:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("9757"),c=n("3a92"),l=n("6923"),u=n("e1c6");function d(e){return e instanceof c.SChildElement&&e.hasFeature(t.deletableFeature)}t.deletableFeature=Symbol("deletableFeature"),t.isDeletable=d;var h=function(){function e(t){this.elementIds=t,this.kind=e.KIND}return e.KIND="delete",e}();t.DeleteElementAction=h;var p=function(){function e(){}return e}();t.ResolvedDelete=p;var f=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.resolvedDeletes=[],n}return i(t,e),t.prototype.execute=function(e){for(var t=e.root.index,n=0,i=this.action.elementIds;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("393a"),r=n("9964"),s=n("3623"),a=n("e1c6"),c=function(){function e(){}return e.prototype.render=function(e,t){var n=s.findParentByFeature(e,r.isExpandable),i=void 0!==n&&n.expanded?"M 1,5 L 8,12 L 15,5 Z":"M 1,8 L 8,15 L 8,1 Z";return o.svg("g",{"class-sprotty-button":"{true}","class-enabled":"{button.enabled}"},o.svg("rect",{x:0,y:0,width:16,height:16,opacity:0}),o.svg("path",{d:i}))},e=i([a.injectable()],e),e}();t.ExpandButtonView=c},"19f2":function(e,t,n){"use strict";var i=n("8ac3"),o=n.n(i);o.a},"19fc":function(e,t,n){"use strict";(function(e){n("7f7f"),n("6762"),n("2fdb"),n("6b54"),n("a481");var i=n("448a"),o=n.n(i),r=(n("f559"),n("7514"),n("3156")),s=n.n(r),a=(n("ac6a"),n("cadf"),n("f400"),n("e325")),c=n("1ad9"),l=n.n(c),u=(n("c862"),n("e00b")),d=n("2f62"),h=n("7cca"),p=n("b12a"),f=n("be3b"),m=n("7173");t["a"]={name:"DocumentationViewer",props:{forPrinting:{type:Boolean,default:!1}},components:{FigureTimeline:m["a"],HistogramViewer:u["a"]},data:function(){return{content:[],tables:[],images:[],loadingImages:[],figures:[],rawDocumentation:[],DOCUMENTATION_TYPES:h["l"],links:new Map,tableCounter:0,referenceCounter:0,viewport:null,needUpdates:!1,visible:!1,waitHeight:320}},computed:s()({},Object(d["c"])("data",["documentationTrees","documentationContent"]),Object(d["c"])("view",["documentationView","documentationSelected","documentationCache","tableFontSize"]),{tree:function(){var e=this;return this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree}}),methods:s()({},Object(d["b"])("view",["setDocumentation"]),{getId:function(e){return this.forPrinting?"".concat(e,"-fp"):e},getFormatter:function(e,t){var n=t.numberFormat;switch(n||(n="%f"),e){case h["I"].TEXT:case h["I"].VALUE:case h["I"].BOOLEAN:return"plaintext";case h["I"].NUMBER:return function(e){return e.getValue()&&""!==e.getValue()?l()(n,e.getValue()):""};default:return"plaintext"}},formatColumns:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.numberFormat,o=function e(n,o){var r="".concat(o||"").concat(n.id);return s()({title:n.title,field:r,headerVertical:n.headerVertical,frozen:n.frozen},n.sorter&&{sorter:n.sorter},n.hozAlign&&{hozAlign:n.hozAlign},n.formatter&&{formatter:n.formatter},!n.formatter&&n.type&&{formatter:t.getFormatter(n.type,{numberFormat:n.numberFormat||i})},n.columns&&n.columns.length>0&&{columns:n.columns.map(function(t){return e(t,r)})})};return e.map(function(e){return s()({},o(e))})},selectElement:function(e){var t;t=e.startsWith(".")?document.querySelector(e):document.getElementById(this.getId(e)),t&&(t.scrollIntoView({behavior:"smooth"}),t.classList.add("dv-selected"))},getModelCode:function(e){return e?e.replaceAll("\n","
").replaceAll(" ",''):""},fontSizeChangeListener:function(e){"table"===e&&(this.tables.length>0&&this.tables.forEach(function(e){e.instance&&e.instance.redraw(!0)}),this.forPrinting&&(this.visible=!0,this.build()))},getLinkedText:function(e){var t=this;if(e){var n=[];return o()(e.matchAll(/LINK\/(?[^/]*)\/(?[^/]*)\//g)).forEach(function(e){var i,o=t.documentationContent.get(e[2]);o&&(o.type===h["l"].REFERENCE?i="[".concat(o.id,"]"):o.type===h["l"].TABLE&&(i="<".concat(o.id).concat(++t.tableCounter,">")),o.index=++t.referenceCounter,n.push({what:e[0],with:'').concat(o.index,"")}),t.links.set(e[2],o))}),n.length>0&&n.forEach(function(t){e=e.replace(t.what,t.with)}),e}return e},getImage:function(t,n){var i=this,o=document.getElementById("resimg-".concat(this.getId(t)));if(o)if(this.documentationCache.has(t)){var r=this.documentationCache.get(t);null!==r?o.src=this.documentationCache.get(t):o.style.display="none"}else f["a"].get("".concat("").concat("/modeler").concat(n),{responseType:"arraybuffer"}).then(function(n){var r=n.data;r&&r.byteLength>0?(o.src="data:image/png;base64,".concat(e.from(r,"binary").toString("base64")),i.documentationCache.set(t,o.src)):(o.style.display="none",i.documentationCache.set(t,null))})},getFigure:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=document.getElementById("figimg-".concat(this.documentationView,"-").concat(this.getId(e)));if(o){var r=this.documentationContent.get(e),a="".concat(t.observationId,"/").concat(n);if(r.figure.timeString=i,""!==o.src&&(this.waitHeight=o.clientHeight),this.documentationCache.has(a))o.src=this.documentationCache.get(a).src,r.figure.colormap=this.documentationCache.get(a).colormap;else if(!this.loadingImages.includes(e)){this.loadingImages.push(e),o.src="";var c=this;f["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:s()({format:h["q"].TYPE_RASTER,viewport:c.viewport},-1!==n&&{locator:"T1(1){time=".concat(n,"}")}),responseType:"blob"}).then(function(i){var l=c.loadingImages.indexOf(e);if(-1!==l&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),i){var u=new FileReader,d={src:null,colormap:null};u.readAsDataURL(i.data),u.onload=function(){o.src=u.result,d.src=u.result},f["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:s()({format:h["q"].TYPE_COLORMAP},-1!==n&&{locator:"T1(1){time=".concat(n,"}")})}).then(function(e){e&&e.data&&(r.figure.colormap=Object(p["i"])(e.data),d.colormap=r.figure.colormap),c.documentationCache.set(a,d)}).catch(function(e){console.error(e),c.documentationCache.set(a,d)})}}).catch(function(t){var n=c.loadingImages.indexOf(e);-1!==n&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),console.error(t)})}}},tableCopy:function(e){var t=this.tables.find(function(t){return t.id===e});t?t.instance.copyToClipboard("all"):console.warn("table not found")},tableDownload:function(e){var t=this.tables.find(function(t){return t.id===e});t?t.instance.download("xlsx","".concat(t.name,".xlsx")):console.warn("table not found")},updateThings:function(){var e=this;if(this.visible&&this.needUpdates){console.debug("Update things");var t=this;this.$nextTick(function(){e.tables.forEach(function(e){var n=document.querySelector("#".concat(t.getId(e.id),"-table"));n&&(e.instance=new a["a"]("#".concat(t.getId(e.id),"-table"),e.tabulator))}),e.images.forEach(function(t){e.getImage(t.id,t.url)}),e.figures.forEach(function(t){e.getFigure(t.id,t.instance,t.time,t.timeString)}),e.needUpdates=!1})}},clearCache:function(){this.documentationCache.clear(),this.needUpdates=!0},changeTime:function(e,t){var n=this.figures.find(function(e){return e.id===t});n&&(n.time=e.time,this.getFigure(n.id,n.instance,n.time,e.timeString))},build:function(){var e=this;this.rawDocumentation.splice(0,this.rawDocumentation.length),this.content.splice(0,this.content.length),this.tables.splice(0,this.tables.length),this.images.splice(0,this.images.length),this.figures.splice(0,this.figures.length),this.tree.forEach(function(t){Object(p["g"])(t,"children").forEach(function(t){e.rawDocumentation.push(t)})});var t=document.querySelectorAll(".dv-figure-".concat(this.forPrinting?"print":"display"));t.forEach(function(e){e.setAttribute("src","")}),this.needUpdates=!0;var n=this;this.rawDocumentation.forEach(function(e){var t=n.documentationContent.get(e.id);switch(t.bodyText&&(t.bodyText=n.getLinkedText(t.bodyText)),n.content.push(t),e.type){case h["l"].PARAGRAPH:break;case h["l"].RESOURCE:n.images.push({id:e.id,url:t.resource.spaceDescriptionUrl});break;case h["l"].SECTION:break;case h["l"].TABLE:n.tables.push({id:t.id,name:t.bodyText.replaceAll(" ","_").toLowerCase(),tabulator:{clipboard:"copy",printAsHtml:!0,data:t.table.rows,columns:n.formatColumns(t.table.columns,s()({},t.table.numberFormat&&{numberFormat:t.table.numberFormat})),clipboardCopied:function(){n.$q.notify({message:n.$t("messages.tableCopied"),type:"info",icon:"mdi-information",timeout:1e3})}}});break;case h["l"].FIGURE:n.$set(t.figure,"colormap",null),n.$set(t.figure,"timeString",""),n.figures.push({id:t.id,instance:t.figure,time:-1,timeString:""});break;default:break}}),this.updateThings()}}),watch:{tree:function(){this.build()},documentationSelected:function(e){Array.prototype.forEach.call(document.getElementsByClassName("dv-selected"),function(e){e.classList.remove("dv-selected")}),null!==e&&this.selectElement(e)}},mounted:function(){this.viewport=Math.min(document.body.clientWidth,640),this.$eventBus.$on(h["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener),this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.$eventBus.$on(h["h"].REFRESH_DOCUMENTATION,this.clearCache))},activated:function(){this.visible=!0,this.updateThings()},deactivated:function(){this.visible=!1},updated:function(){var e=this;this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.links.size>0&&(this.links.forEach(function(t,n){document.querySelectorAll(".link-".concat(n)).forEach(function(n){n.onclick=function(){e.setDocumentation({id:t.id,view:h["m"][t.type]})}})}),this.links.clear(),this.tableCounter=0,this.referenceCounter=0))},beforeDestroy:function(){this.forPrinting||this.$eventBus.$off(h["h"].REFRESH_DOCUMENTATION,this.clearCache),this.$eventBus.$off(h["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener)}}}).call(this,n("b639").Buffer)},"1ad9":function(e,t,n){var i=n("3022"),o=function(e,t,n,i){var o,r,s=[],a=0;while(o=t.exec(e)){if(r=e.slice(a,t.lastIndex-o[0].length),r.length&&s.push(r),n){var c=n.apply(i,o.slice(1).concat(s.length));"undefined"!=typeof c&&("%"===c.specifier?s.push("%"):s.push(c))}a=t.lastIndex}return r=e.slice(a),r.length&&s.push(r),s},r=function(e){this._mapped=!1,this._format=e,this._tokens=o(e,this._re,this._parseDelim,this)};r.prototype._re=/\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([\%bscdeEfFgGioOuxX])/g,r.prototype._parseDelim=function(e,t,n,i,o,r,s){return e&&(this._mapped=!0),{mapping:e,intmapping:t,flags:n,_minWidth:i,period:o,_precision:r,specifier:s}},r.prototype._specifiers={b:{base:2,isInt:!0},o:{base:8,isInt:!0},x:{base:16,isInt:!0},X:{extend:["x"],toUpper:!0},d:{base:10,isInt:!0},i:{extend:["d"]},u:{extend:["d"],isUnsigned:!0},c:{setArg:function(e){if(!isNaN(e.arg)){var t=parseInt(e.arg);if(t<0||t>127)throw new Error("invalid character code passed to %c in printf");e.arg=isNaN(t)?""+t:String.fromCharCode(t)}}},s:{setMaxWidth:function(e){e.maxWidth="."==e.period?e.precision:-1}},e:{isDouble:!0,doubleNotation:"e"},E:{extend:["e"],toUpper:!0},f:{isDouble:!0,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:!0,doubleNotation:"g"},G:{extend:["g"],toUpper:!0},O:{isObject:!0}},r.prototype.format=function(e){if(this._mapped&&"object"!=typeof e)throw new Error("format requires a mapping");for(var t,n="",i=0,o=0;o=arguments.length)throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");t.arg=arguments[i++]}if(!t.compiled){t.compiled=!0,t.sign="",t.zeroPad=!1,t.rightJustify=!1,t.alternative=!1;for(var l={},u=t.flags.length;u--;){var d=t.flags.charAt(u);switch(l[d]=!0,d){case" ":t.sign=" ";break;case"+":t.sign="+";break;case"0":t.zeroPad=!l["-"];break;case"-":t.rightJustify=!0,t.zeroPad=!1;break;case"#":t.alternative=!0;break;default:throw Error("bad formatting flag '"+t.flags.charAt(u)+"'")}}t.minWidth=t._minWidth?parseInt(t._minWidth):0,t.maxWidth=-1,t.toUpper=!1,t.isUnsigned=!1,t.isInt=!1,t.isDouble=!1,t.isObject=!1,t.precision=1,"."==t.period&&(t._precision?t.precision=parseInt(t._precision):t.precision=0);var h=this._specifiers[t.specifier];if("undefined"==typeof h)throw new Error("unexpected specifier '"+t.specifier+"'");if(h.extend){var p=this._specifiers[h.extend];for(var f in p)h[f]=p[f];delete h.extend}for(var m in h)t[m]=h[m]}if("function"==typeof t.setArg&&t.setArg(t),"function"==typeof t.setMaxWidth&&t.setMaxWidth(t),"*"==t._minWidth){if(this._mapped)throw new Error("* width not supported in mapped formats");if(t.minWidth=parseInt(arguments[i++]),isNaN(t.minWidth))throw new Error("the argument for * width at position "+i+" is not a number in "+this._format);t.minWidth<0&&(t.rightJustify=!0,t.minWidth=-t.minWidth)}if("*"==t._precision&&"."==t.period){if(this._mapped)throw new Error("* precision not supported in mapped formats");if(t.precision=parseInt(arguments[i++]),isNaN(t.precision))throw Error("the argument for * precision at position "+i+" is not a number in "+this._format);t.precision<0&&(t.precision=1,t.period="")}t.isInt?("."==t.period&&(t.zeroPad=!1),this.formatInt(t)):t.isDouble?("."!=t.period&&(t.precision=6),this.formatDouble(t)):t.isObject&&this.formatObject(t),this.fitField(t),n+=""+t.arg}return n},r.prototype._zeros10="0000000000",r.prototype._spaces10=" ",r.prototype.formatInt=function(e){var t=parseInt(e.arg);if(!isFinite(t)){if("number"!=typeof e.arg)throw new Error("format argument '"+e.arg+"' not an integer; parseInt returned "+t);t=0}t<0&&(e.isUnsigned||10!=e.base)&&(t=4294967295+t+1),t<0?(e.arg=(-t).toString(e.base),this.zeroPad(e),e.arg="-"+e.arg):(e.arg=t.toString(e.base),t||e.precision?this.zeroPad(e):e.arg="",e.sign&&(e.arg=e.sign+e.arg)),16==e.base&&(e.alternative&&(e.arg="0x"+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()),8==e.base&&e.alternative&&"0"!=e.arg.charAt(0)&&(e.arg="0"+e.arg)},r.prototype.formatDouble=function(e){var t=parseFloat(e.arg);if(!isFinite(t)){if("number"!=typeof e.arg)throw new Error("format argument '"+e.arg+"' not a float; parseFloat returned "+t);t=0}switch(e.doubleNotation){case"e":e.arg=t.toExponential(e.precision);break;case"f":e.arg=t.toFixed(e.precision);break;case"g":Math.abs(t)<1e-4?e.arg=t.toExponential(e.precision>0?e.precision-1:e.precision):e.arg=t.toPrecision(e.precision),e.alternative||(e.arg=e.arg.replace(/(\..*[^0])0*e/,"$1e"),e.arg=e.arg.replace(/\.0*e/,"e").replace(/\.0$/,""));break;default:throw new Error("unexpected double notation '"+e.doubleNotation+"'")}e.arg=e.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1"),e.alternative&&(e.arg=e.arg.replace(/^(\d+)$/,"$1."),e.arg=e.arg.replace(/^(\d+)e/,"$1.e")),t>=0&&e.sign&&(e.arg=e.sign+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()},r.prototype.formatObject=function(e){var t="."===e.period?e.precision:null;e.arg=i.inspect(e.arg,{showHidden:!e.alternative,depth:t,colors:e.sign,compact:!0})},r.prototype.zeroPad=function(e,t){t=2==arguments.length?t:e.precision;var n=!1;"string"!=typeof e.arg&&(e.arg=""+e.arg),"-"===e.arg.substr(0,1)&&(n=!0,e.arg=e.arg.substr(1));var i=t-10;while(e.arg.length=0&&e.arg.length>e.maxWidth&&(e.arg=e.arg.substring(0,e.maxWidth)),e.zeroPad?this.zeroPad(e,e.minWidth):this.spacePad(e)},r.prototype.spacePad=function(e,t){t=2==arguments.length?t:e.minWidth,"string"!=typeof e.arg&&(e.arg=""+e.arg);var n=t-10;while(e.arg.length1?arguments[1]:void 0,g=void 0!==m,v=0,b=u(h);if(g&&(m=i(m,f>2?arguments[2]:void 0,2)),void 0==b||p==Array&&a(b))for(t=c(h.length),n=new p(t);t>v;v++)l(n,v,g?m(h[v],v):h[v]);else for(d=b.call(h),n=new p;!(o=d.next()).done;v++)l(n,v,g?s(d,m,[o.value,v],!0):o.value);return n.length=v,n}})},"1cc1":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("1978"),l=n("4c18"),u=function(){function e(e){void 0===e&&(e=[]),this.menuProviders=e}return e.prototype.getItems=function(e,t){var n=this.menuProviders.map(function(n){return n.getItems(e,t)});return Promise.all(n).then(this.flattenAndRestructure)},e.prototype.flattenAndRestructure=function(e){for(var t=e.reduce(function(e,t){return void 0!==t?e.concat(t):e},[]),n=t.filter(function(e){return e.parentId}),i=function(e){if(e.parentId){for(var n=e.parentId.split("."),i=void 0,o=t,r=function(e){i=o.find(function(t){return e===t.id}),i&&i.children&&(o=i.children)},s=0,a=n;s0}}])},e=i([s.injectable()],e),e}();t.DeleteContextMenuItemProvider=d},"1cd9":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("4c18"),u=n("510b"),d=n("3a92"),h=n("1417"),p=n("b669"),f=n("7faf"),m=n("5d19"),g=n("5eb6"),v=n("e4f0"),b=n("6923"),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){return p.matchesKeystroke(t,"KeyE","ctrlCmd","shift")?[new _]:[]},t=o([a.injectable()],t),t}(h.KeyListener);t.ExportSvgKeyListener=y;var _=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(u.generateRequestId())},e.KIND="requestExportSvg",e}();t.RequestExportSvgAction=_;var M=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){if(f.isExportable(e.root)){var t=e.modelFactory.createRoot(e.root);if(f.isExportable(t))return g.isViewport(t)&&(t.zoom=1,t.scroll={x:0,y:0}),t.index.all().forEach(function(e){l.isSelectable(e)&&e.selected&&(e.selected=!1),v.isHoverable(e)&&e.hoverFeedback&&(e.hoverFeedback=!1)}),{model:t,modelChanged:!0,cause:this.action}}return{model:e.root,modelChanged:!1}},t.KIND=_.KIND,t=o([s(0,a.inject(b.TYPES.Action)),r("design:paramtypes",[_])],t),t}(c.HiddenCommand);t.ExportSvgCommand=M;var w=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof d.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){this.root&&void 0!==e&&e.kind===_.KIND&&this.svgExporter.export(this.root,e)},o([a.inject(b.TYPES.SvgExporter),r("design:type",m.SvgExporter)],e.prototype,"svgExporter",void 0),e=o([a.injectable()],e),e}();t.ExportSvgPostprocessor=w},"1d39":function(e,t,n){"use strict";var i=n("1963"),o=n.n(i);o.a},"1e19":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("ed4f"),s=n("c444"),a=n("cf98"),c=n("fe37"),l=n("842c"),u=new i.ContainerModule(function(e,t,n){l.configureCommand({bind:e,isBound:n},r.CenterCommand),l.configureCommand({bind:e,isBound:n},r.FitToScreenCommand),l.configureCommand({bind:e,isBound:n},s.SetViewportCommand),l.configureCommand({bind:e,isBound:n},s.GetViewportCommand),e(o.TYPES.KeyListener).to(r.CenterKeyboardListener),e(o.TYPES.MouseListener).to(a.ScrollMouseListener),e(o.TYPES.MouseListener).to(c.ZoomMouseListener)});t.default=u},"1e31":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("9d6c"),s=new i.ContainerModule(function(e){e(r.EdgeLayoutPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(r.EdgeLayoutPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(r.EdgeLayoutPostprocessor)});t.default=s},"1e94":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.of=function(t,n){var i=new e;return i.bindings=t,i.middleware=n,i},e}();t.ContainerSnapshot=i},"1f0f":function(e,t,n){},"1f66":function(e,t,n){},"1f89":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.openFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.openFeature=Symbol("openFeature"),t.isOpenable=i},"1fac":function(e,t,n){"use strict";var i=n("e5a7"),o=n.n(i);o.a},2:function(e,t){},"218d":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("393a"),s=n("47b7"),a=n("8e97"),c=n("dd02"),l=n("e1c6"),u=function(){function e(){}return e.prototype.render=function(e,t){var n="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return r.svg("svg",null,r.svg("g",{transform:n},t.renderChildren(e)))},e=o([l.injectable()],e),e}();t.SvgViewportView=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var n=this.getRadius(e);return r.svg("g",null,r.svg("circle",{"class-sprotty-node":e instanceof s.SNode,"class-sprotty-port":e instanceof s.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,r:n,cx:n,cy:n}),t.renderChildren(e))}},t.prototype.getRadius=function(e){var t=Math.min(e.size.width,e.size.height);return t>0?t/2:0},t=o([l.injectable()],t),t}(a.ShapeView);t.CircularNodeView=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t))return r.svg("g",null,r.svg("rect",{"class-sprotty-node":e instanceof s.SNode,"class-sprotty-port":e instanceof s.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:Math.max(e.size.width,0),height:Math.max(e.size.height,0)}),t.renderChildren(e))},t=o([l.injectable()],t),t}(a.ShapeView);t.RectangularNodeView=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var n=new c.Diamond({height:Math.max(e.size.height,0),width:Math.max(e.size.width,0),x:0,y:0}),i=f(n.topPoint)+" "+f(n.rightPoint)+" "+f(n.bottomPoint)+" "+f(n.leftPoint);return r.svg("g",null,r.svg("polygon",{"class-sprotty-node":e instanceof s.SNode,"class-sprotty-port":e instanceof s.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,points:i}),t.renderChildren(e))}},t=o([l.injectable()],t),t}(a.ShapeView);function f(e){return e.x+","+e.y}t.DiamondNodeView=p;var m=function(){function e(){}return e.prototype.render=function(e,t){return r.svg("g",null)},e=o([l.injectable()],e),e}();t.EmptyGroupView=m},2196:function(e,t,n){},"21a6":function(e,t,n){(function(n){var i,o,r;(function(n,s){o=[],i=s,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r)})(0,function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){a(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var a=s.URL||s.webkitURL,c=document.createElement("a");t=t||e.name||"download",c.download=t,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?r(c):o(c.href)?i(e,t,n):r(c,c.target="_blank")):(c.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){r(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,s){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),n);else if(o(e))i(e,n,s);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){r(a)})}}:function(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return i(e,t,n);var r="application/octet-stream"===e.type,a=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&a)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var u=s.URL||s.webkitURL,d=u.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});s.saveAs=a.saveAs=a,e.exports=a})}).call(this,n("c8ba"))},"232d":function(e,t,n){},"23a0":function(e,t,n){"use strict";var i=n("79d7"),o=n.n(i);o.a},2590:function(e,t,n){"use strict";var i=n("1288"),o=n.n(i);o.a},"26ad":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("3f0a"),c=n("6923"),l=n("5d19"),u=n("3a92"),d=function(){function e(){}return e.prototype.initialize=function(e){e.register(a.RequestModelAction.KIND,this),e.register(l.ExportSvgAction.KIND,this)},o([s.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),o([s.inject(c.TYPES.ViewerOptions),r("design:type",Object)],e.prototype,"viewerOptions",void 0),e=o([s.injectable()],e),e}();t.ModelSource=d;var h=function(){function e(){}return e.prototype.apply=function(e,t){var n=new u.SModelIndex;n.add(e);for(var i=0,o=t.bounds;i=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("393a"),a=n("dd7b"),c=n("6af2"),l=n("ff70"),u=n("9016"),d=n("6907"),h=n("f923"),p=n("e1c6"),f=n("6923"),m=n("fba3"),g=n("33b2"),v=n("e45b"),b=n("8d53"),y=n("302f"),_=function(){function e(e,t,n){this.viewRegistry=e,this.targetKind=t,this.postprocessors=n}return e.prototype.decorate=function(e,t){return b.isThunk(e)?e:this.postprocessors.reduce(function(e,n){return n.decorate(e,t)},e)},e.prototype.renderElement=function(e,t){var n=this.viewRegistry.get(e.type),i=n.render(e,this,t);return i?this.decorate(i,e):void 0},e.prototype.renderChildren=function(e,t){var n=this;return e.children.map(function(e){return n.renderElement(e,t)}).filter(function(e){return void 0!==e})},e.prototype.postUpdate=function(e){this.postprocessors.forEach(function(t){return t.postUpdate(e)})},e}();t.ModelRenderer=_;var M=function(){function e(){this.patcher=a.init(this.createModules())}return e.prototype.createModules=function(){return[c.propsModule,l.attributesModule,h.classModule,u.styleModule,d.eventListenersModule]},e=i([p.injectable(),o("design:paramtypes",[])],e),e}();t.PatcherProvider=M;var w=function(){function e(e,t,n){var i=this;this.onWindowResize=function(e){var t=document.getElementById(i.options.baseDiv);if(null!==t){var n=i.getBoundsInPage(t);i.actiondispatcher.dispatch(new g.InitializeCanvasBoundsAction(n))}},this.renderer=e("main",n),this.patcher=t.patcher}return e.prototype.update=function(e,t){var n=this;this.logger.log(this,"rendering",e);var i=s.html("div",{id:this.options.baseDiv},this.renderer.renderElement(e));if(void 0!==this.lastVDOM){var o=this.hasFocus();v.copyClassesFromVNode(this.lastVDOM,i),this.lastVDOM=this.patcher.call(this,this.lastVDOM,i),this.restoreFocus(o)}else if("undefined"!==typeof document){var r=document.getElementById(this.options.baseDiv);null!==r?("undefined"!==typeof window&&window.addEventListener("resize",function(){n.onWindowResize(i)}),v.copyClassesFromElement(r,i),v.setClass(i,this.options.baseClass,!0),this.lastVDOM=this.patcher.call(this,r,i)):this.logger.error(this,"element not in DOM:",this.options.baseDiv)}this.renderer.postUpdate(t)},e.prototype.hasFocus=function(){if("undefined"!==typeof document&&document.activeElement&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var e=this.lastVDOM.children[0];if("object"===typeof e){var t=e.elm;return document.activeElement===t}}return!1},e.prototype.restoreFocus=function(e){if(e&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var t=this.lastVDOM.children[0];if("object"===typeof t){var n=t.elm;n&&"function"===typeof n.focus&&n.focus()}}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),n=m.getWindowScroll();return{x:t.left+n.x,y:t.top+n.y,width:t.width,height:t.height}},i([p.inject(f.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"options",void 0),i([p.inject(f.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),i([p.inject(f.TYPES.IActionDispatcher),o("design:type",Object)],e.prototype,"actiondispatcher",void 0),e=i([p.injectable(),r(0,p.inject(f.TYPES.ModelRendererFactory)),r(1,p.inject(f.TYPES.PatcherProvider)),r(2,p.multiInject(f.TYPES.IVNodePostprocessor)),r(2,p.optional()),o("design:paramtypes",[Function,M,Array])],e),e}();t.ModelViewer=w;var C=function(){function e(e,t,n){this.hiddenRenderer=e("hidden",n),this.patcher=t.patcher}return e.prototype.update=function(e,t){var n;if(this.logger.log(this,"rendering hidden"),e.type===y.EMPTY_ROOT.type)n=s.html("div",{id:this.options.hiddenDiv});else{var i=this.hiddenRenderer.renderElement(e);i&&v.setAttr(i,"opacity",0),n=s.html("div",{id:this.options.hiddenDiv},i)}if(void 0!==this.lastHiddenVDOM)v.copyClassesFromVNode(this.lastHiddenVDOM,n),this.lastHiddenVDOM=this.patcher.call(this,this.lastHiddenVDOM,n);else{var o=document.getElementById(this.options.hiddenDiv);null===o?(o=document.createElement("div"),document.body.appendChild(o)):v.copyClassesFromElement(o,n),v.setClass(n,this.options.baseClass,!0),v.setClass(n,this.options.hiddenClass,!0),this.lastHiddenVDOM=this.patcher.call(this,o,n)}this.hiddenRenderer.postUpdate(t)},i([p.inject(f.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"options",void 0),i([p.inject(f.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),e=i([p.injectable(),r(0,p.inject(f.TYPES.ModelRendererFactory)),r(1,p.inject(f.TYPES.PatcherProvider)),r(2,p.multiInject(f.TYPES.HiddenVNodePostprocessor)),r(2,p.optional()),o("design:paramtypes",[Function,M,Array])],e),e}();t.HiddenModelViewer=C;var S=function(){function e(e,t,n){this.modelRendererFactory=e,this.popupRenderer=this.modelRendererFactory("popup",n),this.patcher=t.patcher}return e.prototype.update=function(e,t){this.logger.log(this,"rendering popup",e);var n,i=e.type===y.EMPTY_ROOT.type;if(i)n=s.html("div",{id:this.options.popupDiv});else{var o=e.canvasBounds,r={top:o.y+"px",left:o.x+"px"};n=s.html("div",{id:this.options.popupDiv,style:r},this.popupRenderer.renderElement(e))}if(void 0!==this.lastPopupVDOM)v.copyClassesFromVNode(this.lastPopupVDOM,n),v.setClass(n,this.options.popupClosedClass,i),this.lastPopupVDOM=this.patcher.call(this,this.lastPopupVDOM,n);else if("undefined"!==typeof document){var a=document.getElementById(this.options.popupDiv);null===a?(a=document.createElement("div"),document.body.appendChild(a)):v.copyClassesFromElement(a,n),v.setClass(n,this.options.popupClass,!0),v.setClass(n,this.options.popupClosedClass,i),this.lastPopupVDOM=this.patcher.call(this,a,n)}this.popupRenderer.postUpdate(t)},i([p.inject(f.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"options",void 0),i([p.inject(f.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),e=i([p.injectable(),r(0,p.inject(f.TYPES.ModelRendererFactory)),r(1,p.inject(f.TYPES.PatcherProvider)),r(2,p.multiInject(f.TYPES.PopupVNodePostprocessor)),r(2,p.optional()),o("design:paramtypes",[Function,M,Array])],e),e}();t.PopupModelViewer=S},"2b54":function(e,t,n){"use strict";var i=n("e7ed"),o=n.n(i);o.a},"2c63":function(e,t,n){e.exports=n("dc14")},"2cac":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e34e"),o=n("cf81"),r=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=r},"2cee":function(e,t,n){"use strict";n("6762"),n("2fdb");t["a"]={data:function(){return{ellipsed:[]}},methods:{tooltipIt:function(e,t){e.target.offsetWidth=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("9757"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.execute=function(e){var t=this.retrieveResult(e);return this.actionDispatcher.dispatch(t),{model:e.root,modelChanged:!1}},t.prototype.undo=function(e){return{model:e.root,modelChanged:!1}},t.prototype.redo=function(e){return{model:e.root,modelChanged:!1}},o([s.inject(a.TYPES.IActionDispatcher),r("design:type",Object)],t.prototype,"actionDispatcher",void 0),t=o([s.injectable()],t),t}(c.SystemCommand);t.ModelRequestCommand=l},3:function(e,t){},3022:function(e,t,n){(function(e){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},i=0;i=r)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}}),c=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),b(n)?i.showHidden=n:n&&t._extend(i,n),S(i.showHidden)&&(i.showHidden=!1),S(i.depth)&&(i.depth=2),S(i.colors)&&(i.colors=!1),S(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),d(i,e,i.depth)}function c(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function l(e,t){return e}function u(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function d(e,n,i){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(i,e);return w(o)||(o=d(e,o,i)),o}var r=h(e,n);if(r)return r;var s=Object.keys(n),a=u(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),L(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(n);if(0===s.length){if(T(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(A(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(L(n))return p(n)}var l,b="",y=!1,_=["{","}"];if(v(n)&&(y=!0,_=["[","]"]),T(n)){var M=n.name?": "+n.name:"";b=" [Function"+M+"]"}return A(n)&&(b=" "+RegExp.prototype.toString.call(n)),O(n)&&(b=" "+Date.prototype.toUTCString.call(n)),L(n)&&(b=" "+p(n)),0!==s.length||y&&0!=n.length?i<0?A(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=y?f(e,n,i,a,s):s.map(function(t){return m(e,n,i,a,t,y)}),e.seen.pop(),g(l,b,_)):_[0]+b+_[1]}function h(e,t){if(S(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return M(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,i,o){for(var r=[],s=0,a=t.length;s-1&&(a=r?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),S(s)){if(r&&o.match(/^\d+$/))return a;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function g(e,t,n){var i=e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function b(e){return"boolean"===typeof e}function y(e){return null===e}function _(e){return null==e}function M(e){return"number"===typeof e}function w(e){return"string"===typeof e}function C(e){return"symbol"===typeof e}function S(e){return void 0===e}function A(e){return E(e)&&"[object RegExp]"===R(e)}function E(e){return"object"===typeof e&&null!==e}function O(e){return E(e)&&"[object Date]"===R(e)}function L(e){return E(e)&&("[object Error]"===R(e)||e instanceof Error)}function T(e){return"function"===typeof e}function x(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function R(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(S(r)&&(r=Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.22.0",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API:"/modeler/api/v2",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"}).NODE_DEBUG||""),n=n.toUpperCase(),!s[n])if(new RegExp("\\b"+n+"\\b","i").test(r)){var i=e.pid;s[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,i,e)}}else s[n]=function(){};return s[n]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=v,t.isBoolean=b,t.isNull=y,t.isNullOrUndefined=_,t.isNumber=M,t.isString=w,t.isSymbol=C,t.isUndefined=S,t.isRegExp=A,t.isObject=E,t.isDate=O,t.isError=L,t.isFunction=T,t.isPrimitive=x,t.isBuffer=n("d60a");var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),z[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=n("28a0"),t._extend=function(e,t){if(!t||!E(t))return e;var n=Object.keys(t),i=n.length;while(i--)e[n[i]]=t[n[i]];return e};var I="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function B(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3864"),u=n("3a92"),d=function(){function e(){}return e.prototype.createElement=function(e,t){var n;if(this.registry.hasKey(e.type)){var i=this.registry.get(e.type,void 0);if(!(i instanceof u.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");n=i}else n=new u.SChildElement;return this.initializeChild(n,e,t)},e.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof u.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=n}else t=new u.SModelRoot;return this.initializeRoot(t,e)},e.prototype.createSchema=function(e){var t=this,n={};for(var i in e)if(!this.isReserved(e,i)){var o=e[i];"function"!==typeof o&&(n[i]=o)}return e instanceof u.SParentElement&&(n["children"]=e.children.map(function(e){return t.createSchema(e)})),n},e.prototype.initializeElement=function(e,t){for(var n in t)if(!this.isReserved(e,n)){var i=t[n];"function"!==typeof i&&(e[n]=i)}return e},e.prototype.isReserved=function(e,t){if(["children","parent","index"].indexOf(t)>=0)return!0;var n=e;do{var i=Object.getOwnPropertyDescriptor(n,t);if(void 0!==i)return void 0!==i.get;n=Object.getPrototypeOf(n)}while(n);return!1},e.prototype.initializeParent=function(e,t){var n=this;return this.initializeElement(e,t),u.isParent(t)&&(e.children=t.children.map(function(t){return n.createElement(t,e)})),e},e.prototype.initializeChild=function(e,t,n){return this.initializeParent(e,t),void 0!==n&&(e.parent=n),e},e.prototype.initializeRoot=function(e,t){return this.initializeParent(e,t),e.index.add(e),e},o([a.inject(c.TYPES.SModelRegistry),r("design:type",h)],e.prototype,"registry",void 0),e=o([a.injectable()],e),e}();t.SModelFactory=d,t.EMPTY_ROOT=Object.freeze({type:"NONE",id:"EMPTY"});var h=function(e){function t(t){var n=e.call(this)||this;return t.forEach(function(e){var t=n.getDefaultFeatures(e.constr);if(!t&&e.features&&e.features.enable&&(t=[]),t){var i=p(t,e.features);n.register(e.type,function(){var t=new e.constr;return t.features=i,t})}else n.register(e.type,function(){return new e.constr})}),n}return i(t,e),t.prototype.getDefaultFeatures=function(e){var t=e;do{var n=t.DEFAULT_FEATURES;if(n)return n;t=Object.getPrototypeOf(t)}while(t)},t=o([a.injectable(),s(0,a.multiInject(c.TYPES.SModelElementRegistration)),s(0,a.optional()),r("design:paramtypes",[Array])],t),t}(l.FactoryRegistry);function p(e,t){var n=new Set(e);if(t&&t.enable)for(var i=0,o=t.enable;i= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("3864"),l=n("dd02"),u=n("66f9"),d=n("da84"),h=n("4b75"),p=n("ac2a"),f=function(e){function t(){var t=e.call(this)||this;return t.register(d.VBoxLayouter.KIND,new d.VBoxLayouter),t.register(h.HBoxLayouter.KIND,new h.HBoxLayouter),t.register(p.StackLayouter.KIND,new p.StackLayouter),t}return i(t,e),t}(c.InstanceRegistry);t.LayoutRegistry=f;var m=function(){function e(){}return e.prototype.layout=function(e){new g(e,this.layoutRegistry,this.logger).layout()},o([s.inject(a.TYPES.LayoutRegistry),r("design:type",f)],e.prototype,"layoutRegistry",void 0),o([s.inject(a.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),e=o([s.injectable()],e),e}();t.Layouter=m;var g=function(){function e(e,t,n){var i=this;this.element2boundsData=e,this.layoutRegistry=t,this.log=n,this.toBeLayouted=[],e.forEach(function(e,t){u.isLayoutContainer(t)&&i.toBeLayouted.push(t)})}return e.prototype.getBoundsData=function(e){var t=this.element2boundsData.get(e),n=e.bounds;return u.isLayoutContainer(e)&&this.toBeLayouted.indexOf(e)>=0&&(n=this.doLayout(e)),t||(t={bounds:n,boundsChanged:!1,alignmentChanged:!1},this.element2boundsData.set(e,t)),t},e.prototype.layout=function(){while(this.toBeLayouted.length>0){var e=this.toBeLayouted[0];this.doLayout(e)}},e.prototype.doLayout=function(e){var t=this.toBeLayouted.indexOf(e);t>=0&&this.toBeLayouted.splice(t,1);var n=this.layoutRegistry.get(e.layout);n&&n.layout(e,this);var i=this.element2boundsData.get(e);return void 0!==i&&void 0!==i.bounds?i.bounds:(this.log.error(e,"Layout failed"),l.EMPTY_BOUNDS)},e}();t.StatefulLayouter=g},"33b2":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("dd02"),u=n("3a92"),d=n("9757"),h=n("fba3"),p=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof u.SModelRoot&&!l.isValidDimension(t.canvasBounds)&&(this.rootAndVnode=[t,e]),e},e.prototype.postUpdate=function(){if(void 0!==this.rootAndVnode){var e=this.rootAndVnode[1].elm,t=this.rootAndVnode[0].canvasBounds;if(void 0!==e){var n=this.getBoundsInPage(e);l.almostEquals(n.x,t.x)&&l.almostEquals(n.y,t.y)&&l.almostEquals(n.width,t.width)&&l.almostEquals(n.height,t.width)||this.actionDispatcher.dispatch(new f(n))}this.rootAndVnode=void 0}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),n=h.getWindowScroll();return{x:t.left+n.x,y:t.top+n.y,width:t.width,height:t.height}},o([a.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=o([a.injectable()],e),e}();t.CanvasBoundsInitializer=p;var f=function(){function e(t){this.newCanvasBounds=t,this.kind=e.KIND}return e.KIND="initializeCanvasBounds",e}();t.InitializeCanvasBoundsAction=f;var m=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.newCanvasBounds=this.action.newCanvasBounds,e.root.canvasBounds=this.newCanvasBounds,e.root},t.prototype.undo=function(e){return e.root},t.prototype.redo=function(e){return e.root},t.KIND=f.KIND,t=o([a.injectable(),s(0,a.inject(c.TYPES.Action)),r("design:paramtypes",[f])],t),t}(d.SystemCommand);t.InitializeCanvasBoundsCommand=m},"34eb":function(e,t,n){(function(i){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function r(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var i="color: "+this.color;e.splice(1,0,i,"color: inherit");var o=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(r=o))}),e.splice(r,0,i)}}function s(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function c(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof i&&"env"in i&&(e=Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.22.0",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API:"/modeler/api/v2",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"}).DEBUG),e}function l(){try{return window.localStorage}catch(e){}}t=e.exports=n("96fe"),t.log=s,t.formatArgs=r,t.save=a,t.load=c,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:l(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(c())}).call(this,n("4362"))},3585:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3a92"),r=n("dd02"),s=n("66f9"),a=n("1978"),c=n("4c18"),l=n("e4f0"),u=n("a0af"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.routingPoints=[],t}return i(t,e),Object.defineProperty(t.prototype,"source",{get:function(){return this.index.getById(this.sourceId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this.index.getById(this.targetId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.routingPoints.reduce(function(e,t){return r.combine(e,{x:t.x,y:t.y,width:0,height:0})},r.EMPTY_BOUNDS)},enumerable:!0,configurable:!0}),t}(o.SChildElement);function h(e){return e.hasFeature(t.connectableFeature)&&e.canConnect}function p(e,t){void 0===t&&(t=e.routingPoints);var n=f(t),i=e;while(i instanceof o.SChildElement){var r=i.parent;n=r.localToParent(n),i=r}return n}function f(e){for(var t={x:NaN,y:NaN,width:0,height:0},n=0,i=e;nt.x+t.width&&(t.width=o.x-t.x),o.yt.y+t.height&&(t.height=o.y-t.y))}return t}t.SRoutableElement=d,t.connectableFeature=Symbol("connectableFeature"),t.isConnectable=h,t.getAbsoluteRouteBounds=p,t.getRouteBounds=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.strokeWidth=0,t}return i(t,e),Object.defineProperty(t.prototype,"incomingEdges",{get:function(){return this.index.getIncomingEdges(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outgoingEdges",{get:function(){return this.index.getOutgoingEdges(this)},enumerable:!0,configurable:!0}),t.prototype.canConnect=function(e,t){return!0},t}(s.SShapeElement);t.SConnectableElement=m;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.editMode=!1,t.hoverFeedback=!1,t.selected=!1,t}return i(t,e),t.prototype.hasFeature=function(e){return-1!==t.DEFAULT_FEATURES.indexOf(e)},t.DEFAULT_FEATURES=[c.selectFeature,u.moveFeature,l.hoverFeedbackFeature],t}(o.SChildElement);t.SRoutingHandle=g;var v=function(e){function t(){var t=e.call(this)||this;return t.type="dangling-anchor",t.size={width:0,height:0},t}return i(t,e),t.DEFAULT_FEATURES=[a.deletableFeature],t}(m);t.SDanglingAnchor=v,t.edgeInProgressID="edge-in-progress",t.edgeInProgressTargetHandleID=t.edgeInProgressID+"-target-anchor"},"359b":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("393a"),r=n("e45b"),s=n("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){for(var n=o.html("div",null,t.renderChildren(e)),i=0,s=e.classes;i=0?e.type.substring(0,t):e.type}function a(e){if(!e.type)return"";var t=e.type.indexOf(":");return t>=0?e.type.substring(t+1):e.type}function c(e,t){if(e.id===t)return e;if(void 0!==e.children)for(var n=0,i=e.children;n=0;r--)e=i[r].parentToLocal(e)}return e}function h(e,t,n){var i=d(e,t,n),o=d({x:e.x+e.width,y:e.y+e.height},t,n);return{x:i.x,y:i.y,width:o.x-i.x,height:o.y-i.y}}t.registerModelElement=r,t.getBasicType=s,t.getSubType=a,t.findElement=c,t.findParent=l,t.findParentByFeature=u,t.translatePoint=d,t.translateBounds=h},3672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("842c"),s=n("be02"),a=n("064a"),c=n("3585"),l=n("218d"),u=n("1978"),d=n("cd26"),h=n("1254"),p=n("a5f4"),f=n("61d8");t.edgeEditModule=new i.ContainerModule(function(e,t,n){var i={bind:e,isBound:n};r.configureCommand(i,p.SwitchEditModeCommand),r.configureCommand(i,f.ReconnectCommand),r.configureCommand(i,u.DeleteElementCommand),a.configureModelElement(i,"dangling-anchor",c.SDanglingAnchor,l.EmptyGroupView)}),t.labelEditModule=new i.ContainerModule(function(e,t,n){e(o.TYPES.MouseListener).to(d.EditLabelMouseListener),e(o.TYPES.KeyListener).to(d.EditLabelKeyListener),r.configureCommand({bind:e,isBound:n},d.ApplyLabelEditCommand)}),t.labelEditUiModule=new i.ContainerModule(function(e,t,n){var i={bind:e,isBound:n};s.configureActionHandler(i,d.EditLabelAction.KIND,h.EditLabelActionHandler),e(h.EditLabelUI).toSelf().inSingletonScope(),e(o.TYPES.IUIExtension).toService(h.EditLabelUI)})},"36e4":function(e,t,n){},"37a9":function(e,t,n){"use strict";var i=n("ddfc"),o=n.n(i);o.a},3864:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e,t){var n=this.elements.get(e);return n?new n(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=i([o.injectable()],e),e}();t.ProviderRegistry=r;var s=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e,t){var n=this.elements.get(e);return n?n(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=i([o.injectable()],e),e}();t.FactoryRegistry=s;var a=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e){var t=this.elements.get(e);return t||this.missing(e)},e.prototype.missing=function(e){throw new Error("Unknown registry key: "+e)},e=i([o.injectable()],e),e}();t.InstanceRegistry=a;var c=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");var n=this.elements.get(e);void 0!==n?n.push(t):this.elements.set(e,[t])},e.prototype.deregisterAll=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.get=function(e){var t=this.elements.get(e);return void 0!==t?t:[]},e=i([o.injectable()],e),e}();t.MultiInstanceRegistry=c},"38e8":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("66f9"),r=n("7d36"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t}return i(t,e),t.DEFAULT_FEATURES=[o.boundsFeature,o.layoutableChildFeature,r.fadeFeature],t}(o.SShapeElement);t.SButton=s},"393a":function(e,t,n){"use strict";var i="http://www.w3.org/2000/svg",o=["hook","on","style","class","props","attrs","dataset"],r=Array.prototype.slice;function s(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||null===e||void 0===e}function a(e,t,n,i){for(var o={ns:t},r=0,s=i.length;r0?u(c.slice(0,l),c.slice(l+1),e[c]):o[c]||u(n,c,e[c])}return o;function u(e,t,n){var i=o[e]||(o[e]={});i[t]=n}}function c(e,t,n,i,o,r){if(o.selector&&(i+=o.selector),o.classNames){var c=o.classNames;i=i+"."+(Array.isArray(c)?c.join("."):c.replace(/\s+/g,"."))}return{sel:i,data:a(o,e,t,n),children:r.map(function(e){return s(e)?{text:e}:e}),key:o.key}}function l(e,t,n,i,o,r){var s;if("function"===typeof i)s=i(o,r);else if(i&&"function"===typeof i.view)s=i.view(o,r);else{if(!i||"function"!==typeof i.render)throw"JSX tag must be either a string, a function or an object with 'view' or 'render' methods";s=i.render(o,r)}return s.key=o.key,s}function u(e,t,n){for(var i=t,o=e.length;i3||!Array.isArray(a))&&(a=r.call(arguments,2)),h(e,t||"props",n||o,i,s,a)}}e.exports={html:p(void 0),svg:p(i,"attrs"),JSX:p}},"3a7c":function(e,t,n){(function(e){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function i(e){return"boolean"===typeof e}function o(e){return null===e}function r(e){return null==e}function s(e){return"number"===typeof e}function a(e){return"string"===typeof e}function c(e){return"symbol"===typeof e}function l(e){return void 0===e}function u(e){return"[object RegExp]"===g(e)}function d(e){return"object"===typeof e&&null!==e}function h(e){return"[object Date]"===g(e)}function p(e){return"[object Error]"===g(e)||e instanceof Error}function f(e){return"function"===typeof e}function m(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function g(e){return Object.prototype.toString.call(e)}t.isArray=n,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=r,t.isNumber=s,t.isString=a,t.isSymbol=c,t.isUndefined=l,t.isRegExp=u,t.isObject=d,t.isDate=h,t.isError=p,t.isFunction=f,t.isPrimitive=m,t.isBuffer=e.isBuffer}).call(this,n("b639").Buffer)},"3a92":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("dd02"),r=n("e629"),s=function(){function e(){}return Object.defineProperty(e.prototype,"root",{get:function(){var e=this;while(e){if(e instanceof u)return e;e=e instanceof l?e.parent:void 0}throw new Error("Element has no root")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.root.index},enumerable:!0,configurable:!0}),e.prototype.hasFeature=function(e){return void 0!==this.features&&this.features.has(e)},e}();function a(e){var t=e.children;return void 0!==t&&t.constructor===Array}t.SModelElement=s,t.isParent=a;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.children=[],t}return i(t,e),t.prototype.add=function(e,t){var n=this.children;if(void 0===t)n.push(e);else{if(t<0||t>this.children.length)throw new Error("Child index "+t+" out of bounds (0.."+n.length+")");n.splice(t,0,e)}e.parent=this,this.index.add(e)},t.prototype.remove=function(e){var t=this.children,n=t.indexOf(e);if(n<0)throw new Error("No such child "+e.id);t.splice(n,1),delete e.parent,this.index.remove(e)},t.prototype.removeAll=function(e){var t=this,n=this.children;if(void 0!==e){for(var i=n.length-1;i>=0;i--)if(e(n[i])){var o=n.splice(i,1)[0];delete o.parent,this.index.remove(o)}}else n.forEach(function(e){delete e.parent,t.index.remove(e)}),n.splice(0,n.length)},t.prototype.move=function(e,t){var n=this.children,i=n.indexOf(e);if(-1===i)throw new Error("No such child "+e.id);if(t<0||t>n.length-1)throw new Error("Child index "+t+" out of bounds (0.."+n.length+")");n.splice(i,1),n.splice(t,0,e)},t.prototype.localToParent=function(e){return o.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t.prototype.parentToLocal=function(e){return o.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t}(s);t.SParentElement=c;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(c);t.SChildElement=l;var u=function(e){function t(t){void 0===t&&(t=new p);var n=e.call(this)||this;return n.canvasBounds=o.EMPTY_BOUNDS,Object.defineProperty(n,"index",{value:t,writable:!1}),n}return i(t,e),t}(c);t.SModelRoot=u;var d="0123456789abcdefghijklmnopqrstuvwxyz";function h(e){void 0===e&&(e=8);for(var t="",n=0;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3a92"),u=n("9757"),d=n("3585"),h=function(){function e(t){this.elementIDs=t,this.kind=e.KIND}return e.KIND="bringToFront",e}();t.BringToFrontAction=h;var p=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.selected=[],n}return i(t,e),t.prototype.execute=function(e){var t=this,n=e.root;return this.action.elementIDs.forEach(function(e){var i=n.index.getById(e);i instanceof d.SRoutableElement&&(i.source&&t.addToSelection(i.source),i.target&&t.addToSelection(i.target)),i instanceof l.SChildElement&&t.addToSelection(i),t.includeConnectedEdges(i)}),this.redo(e)},t.prototype.includeConnectedEdges=function(e){var t=this;if(e instanceof d.SConnectableElement&&(e.incomingEdges.forEach(function(e){return t.addToSelection(e)}),e.outgoingEdges.forEach(function(e){return t.addToSelection(e)})),e instanceof l.SParentElement)for(var n=0,i=e.children;n=0;t--){var n=this.selected[t],i=n.element;i.parent.move(i,n.index)}return e.root},t.prototype.redo=function(e){for(var t=0;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("510b"),l=n("3a92"),u=n("6923"),d=n("0d7a"),h=n("e45b"),p=function(){function e(e){void 0===e&&(e=[]),this.mouseListeners=e}return e.prototype.register=function(e){this.mouseListeners.push(e)},e.prototype.deregister=function(e){var t=this.mouseListeners.indexOf(e);t>=0&&this.mouseListeners.splice(t,1)},e.prototype.getTargetElement=function(e,t){var n=t.target,i=e.index;while(n){if(n.id){var o=i.getById(this.domHelper.findSModelIdByDOMElement(n));if(void 0!==o)return o}n=n.parentNode}},e.prototype.handleEvent=function(e,t,n){var i=this;this.focusOnMouseEvent(e,t);var o=this.getTargetElement(t,n);if(o){var r=this.mouseListeners.map(function(t){return t[e].apply(t,[o,n])}).reduce(function(e,t){return e.concat(t)});if(r.length>0){n.preventDefault();for(var s=0,a=r;s=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},a=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,a)}c((i=i.apply(e,t||[])).next())})},c=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return c([e,t])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("510b"),l=n("9757"),u=n("6923"),d=n("33b2"),h=function(){function e(t,n){void 0===n&&(n=""),this.options=t,this.requestId=n,this.kind=e.KIND}return e.create=function(t){return new e(t,c.generateRequestId())},e.KIND="requestModel",e}();t.RequestModelAction=h;var p=function(){function e(t,n){void 0===n&&(n=""),this.newRoot=t,this.responseId=n,this.kind=e.KIND}return e.KIND="setModel",e}();t.SetModelAction=p;var f=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.oldRoot=e.modelFactory.createRoot(e.root),this.newRoot=e.modelFactory.createRoot(this.action.newRoot),this.newRoot},t.prototype.undo=function(e){return this.oldRoot},t.prototype.redo=function(e){return this.newRoot},Object.defineProperty(t.prototype,"blockUntil",{get:function(){return function(e){return e.kind===d.InitializeCanvasBoundsCommand.KIND}},enumerable:!0,configurable:!0}),t.KIND=p.KIND,t=o([a.injectable(),s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[p])],t),t}(l.ResetCommand);t.SetModelCommand=f},4047:function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},"429b":function(e,t,n){e.exports=n("faa1").EventEmitter},"42be":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("6923"),u=n("26ad"),d=function(){function e(){this.kind=h.KIND}return e}();t.CommitModelAction=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.newModel=e.modelFactory.createSchema(e.root),this.doCommit(this.newModel,e.root,!0)},t.prototype.doCommit=function(e,t,n){var i=this,o=this.modelSource.commitModel(e);return o instanceof Promise?o.then(function(e){return n&&(i.originalModel=e),t}):(n&&(this.originalModel=o),t)},t.prototype.undo=function(e){return this.doCommit(this.originalModel,e.root,!1)},t.prototype.redo=function(e){return this.doCommit(this.newModel,e.root,!1)},t.KIND="commitModel",o([a.inject(l.TYPES.ModelSource),r("design:type",u.ModelSource)],t.prototype,"modelSource",void 0),t=o([a.injectable(),s(0,a.inject(l.TYPES.Action)),r("design:paramtypes",[d])],t),t}(c.SystemCommand);t.CommitModelCommand=h},"42d6":function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("510b")),i(n("0fb6")),i(n("be02")),i(n("c661")),i(n("538c")),i(n("c146")),i(n("987d")),i(n("9757")),i(n("842c")),i(n("5e9c")),i(n("160b")),i(n("33b2")),i(n("3f0a")),i(n("302f")),i(n("3623")),i(n("3a92")),i(n("ddee")),i(n("1590")),i(n("6176")),i(n("4c95c")),i(n("1417")),i(n("3b4c")),i(n("8d53")),i(n("064a")),i(n("8794")),i(n("65d1")),i(n("29fa")),i(n("a190")),i(n("e45b")),i(n("6923"));var o=n("8122");t.defaultModule=o.default,i(n("42f7")),i(n("61bf")),i(n("320b")),i(n("66f9")),i(n("da84")),i(n("4b75")),i(n("ac2a")),i(n("8e97")),i(n("70d9")),i(n("38e8")),i(n("a406")),i(n("0a28")),i(n("80b5")),i(n("1cc1")),i(n("3c83")),i(n("1e31")),i(n("9d6c")),i(n("779b")),i(n("ac57")),i(n("ea38")),i(n("3672")),i(n("1978")),i(n("cd26")),i(n("1254")),i(n("a5f4")),i(n("cc26")),i(n("61d8")),i(n("4741")),i(n("9964")),i(n("19b5")),i(n("1cd9")),i(n("7faf")),i(n("5d19")),i(n("e7fa")),i(n("7d36")),i(n("f4cb")),i(n("e4f0")),i(n("7f73")),i(n("755f")),i(n("e576")),i(n("a0af")),i(n("559d")),i(n("af44")),i(n("e1cb")),i(n("b485")),i(n("1f89")),i(n("869e")),i(n("b7b8")),i(n("9a1f")),i(n("46cc")),i(n("3585")),i(n("ab71")),i(n("d8f5")),i(n("168d")),i(n("8d9d")),i(n("4c18")),i(n("bcbd")),i(n("c20e")),i(n("d084")),i(n("cf61")),i(n("ed4f")),i(n("5eb6")),i(n("cf98")),i(n("3b62")),i(n("c444")),i(n("fe37")),i(n("3ada"));var r=n("5530");t.graphModule=r.default;var s=n("72dd");t.boundsModule=s.default;var a=n("54f8");t.buttonModule=a.default;var c=n("d14a");t.commandPaletteModule=c.default;var l=n("5884");t.contextMenuModule=l.default;var u=n("7bae3");t.decorationModule=u.default;var d=n("1e31");t.edgeLayoutModule=d.default;var h=n("04c2");t.expandModule=h.default;var p=n("9f8d");t.exportModule=p.default;var f=n("9811");t.fadeModule=f.default;var m=n("c95e");t.hoverModule=m.default;var g=n("520d");t.moveModule=g.default;var v=n("0483");t.openModule=v.default;var b=n("b7ca");t.routingModule=b.default;var y=n("c4e6");t.selectModule=y.default;var _=n("3b74");t.undoRedoModule=_.default;var M=n("cc3e");t.updateModule=M.default;var w=n("1e19");t.viewportModule=w.default;var C=n("6f35");t.zorderModule=C.default,i(n("dfc0")),i(n("47b7")),i(n("6bb9")),i(n("44c1")),i(n("9ad4")),i(n("359b")),i(n("87fa")),i(n("218d")),i(n("42be")),i(n("945d")),i(n("cb6e")),i(n("85ed")),i(n("26ad")),i(n("484b"));var S=n("8e65");t.modelSourceModule=S.default,i(n("fba3")),i(n("0be1")),i(n("dd02")),i(n("7b39")),i(n("9e2e")),i(n("3864"))},"42f7":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n("e1c6"),l=n("510b"),u=n("9757"),d=n("6923"),h=n("66f9"),p=function(){function e(t){this.bounds=t,this.kind=e.KIND}return e.KIND="setBounds",e}();t.SetBoundsAction=p;var f=function(){function e(t,n){void 0===n&&(n=""),this.newRoot=t,this.requestId=n,this.kind=e.KIND}return e.create=function(t){return new e(t,l.generateRequestId())},e.KIND="requestBounds",e}();t.RequestBoundsAction=f;var m=function(){function e(t,n,i,o){void 0===o&&(o=""),this.bounds=t,this.revision=n,this.alignments=i,this.responseId=o,this.kind=e.KIND}return e.KIND="computedBounds",e}();t.ComputedBoundsAction=m;var g=function(){function e(){this.kind=e.KIND}return e.KIND="layout",e}();t.LayoutAction=g;var v=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.bounds=[],n}return i(t,e),t.prototype.execute=function(e){var t=this;return this.action.bounds.forEach(function(n){var i=e.root.index.getById(n.elementId);i&&h.isBoundsAware(i)&&t.bounds.push({element:i,oldBounds:i.bounds,newPosition:n.newPosition,newSize:n.newSize})}),this.redo(e)},t.prototype.undo=function(e){return this.bounds.forEach(function(e){return e.element.bounds=e.oldBounds}),e.root},t.prototype.redo=function(e){return this.bounds.forEach(function(e){e.newPosition?e.element.bounds=o(o({},e.newPosition),e.newSize):e.element.bounds=o({x:e.element.bounds.x,y:e.element.bounds.y},e.newSize)}),e.root},t.KIND=p.KIND,t=r([c.injectable(),a(0,c.inject(d.TYPES.Action)),s("design:paramtypes",[p])],t),t}(u.SystemCommand);t.SetBoundsCommand=v;var b=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return{model:e.modelFactory.createRoot(this.action.newRoot),modelChanged:!0,cause:this.action}},Object.defineProperty(t.prototype,"blockUntil",{get:function(){return function(e){return e.kind===m.KIND}},enumerable:!0,configurable:!0}),t.KIND=f.KIND,t=r([c.injectable(),a(0,c.inject(d.TYPES.Action)),s("design:paramtypes",[f])],t),t}(u.HiddenCommand);t.RequestBoundsCommand=b},"44c1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8122"),o=n("8e65"),r=n("72dd"),s=n("54f8"),a=n("d14a"),c=n("5884"),l=n("7bae3"),u=n("1e31"),d=n("3672"),h=n("04c2"),p=n("9f8d"),f=n("9811"),m=n("c95e"),g=n("520d"),v=n("0483"),b=n("b7ca"),y=n("c4e6"),_=n("3b74"),M=n("cc3e"),w=n("1e19"),C=n("6f35");function S(e,t){var n=[i.default,o.default,r.default,s.default,a.default,c.default,l.default,d.edgeEditModule,u.default,h.default,p.default,f.default,m.default,d.labelEditModule,d.labelEditUiModule,g.default,v.default,b.default,y.default,_.default,M.default,w.default,C.default];if(t&&t.exclude)for(var S=0,A=t.exclude;S=0&&n.splice(O,1)}e.load.apply(e,n)}t.loadDefaultModules=S},"451f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c5f4"),o=n("1979"),r=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||r(n,t))};t.traverseAncerstors=r;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new o.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(i.NAMED_TAG);t.namedConstraint=a;var c=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"===typeof e){var i=n.serviceIdentifier;return i===e}var o=t.bindings[0].implementationType;return e===o}return!1}};t.typeConstraint=c},4681:function(e,t,n){"use strict";var i=n("966d");function o(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i.nextTick(s,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(i.nextTick(s,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}e.exports={destroy:o,undestroy:r}},"46cc":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0){var i=e.routingPoints.slice();if(this.cleanupRoutingPoints(e,i,!1,!0),i.length>0)return i.map(function(e,t){return o({kind:"linear",pointIndex:t},e)})}var r=this.getOptions(e),s=this.calculateDefaultCorners(e,t,n,r);return s.map(function(e){return o({kind:"linear"},e)})},t.prototype.createRoutingHandles=function(e){var t=this.route(e);if(this.commitRoute(e,t),t.length>0){this.addHandle(e,"source","routing-point",-2);for(var n=0;n0&&Math.abs(n-e[t-1].x)=0&&t0&&Math.abs(n-e[t-1].y)=0&&t=0;--c){if(!s.includes(r.bounds,t[c]))break;t.splice(c,1),n&&this.removeHandle(e,c)}if(t.length>=2){var l=this.getOptions(e);for(c=t.length-2;c>=0;--c)s.manhattanDistance(t[c],t[c+1])t?--e.pointIndex:e.pointIndex===t&&n.push(e))}),n.forEach(function(t){return e.remove(t)})},t.prototype.addAdditionalCorner=function(e,t,n,i,o){if(0!==t.length){var r,l="source"===n.kind?t[0]:t[t.length-1],u="source"===n.kind?0:t.length,d=u-("source"===n.kind?1:0);if(t.length>1)r=0===u?s.almostEquals(t[0].x,t[1].x):s.almostEquals(t[t.length-1].x,t[t.length-2].x);else{var h=i.getNearestSide(l);r=h===a.Side.TOP||h===a.Side.BOTTOM}if(r){if(l.yn.get(a.Side.BOTTOM).y){var p={x:n.get(a.Side.TOP).x,y:l.y};t.splice(u,0,p),o&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=d&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",d))}}else if(l.xn.get(a.Side.RIGHT).x){p={x:l.x,y:n.get(a.Side.LEFT).y};t.splice(u,0,p),o&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=d&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",d))}}},t.prototype.manhattanify=function(e,t){for(var n=1;n0)return r;var s=this.getBestConnectionAnchors(t,n,i,o),c=s.source,l=s.target,u=[],d=n.get(c),h=i.get(l);switch(c){case a.Side.RIGHT:switch(l){case a.Side.BOTTOM:u.push({x:h.x,y:d.y});break;case a.Side.TOP:u.push({x:h.x,y:d.y});break;case a.Side.RIGHT:u.push({x:Math.max(d.x,h.x)+1.5*o.standardDistance,y:d.y}),u.push({x:Math.max(d.x,h.x)+1.5*o.standardDistance,y:h.y});break;case a.Side.LEFT:h.y!==d.y&&(u.push({x:(d.x+h.x)/2,y:d.y}),u.push({x:(d.x+h.x)/2,y:h.y}));break}break;case a.Side.LEFT:switch(l){case a.Side.BOTTOM:u.push({x:h.x,y:d.y});break;case a.Side.TOP:u.push({x:h.x,y:d.y});break;default:h=i.get(a.Side.RIGHT),h.y!==d.y&&(u.push({x:(d.x+h.x)/2,y:d.y}),u.push({x:(d.x+h.x)/2,y:h.y}));break}break;case a.Side.TOP:switch(l){case a.Side.RIGHT:h.x-d.x>0?(u.push({x:d.x,y:d.y-o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:d.y-o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;case a.Side.LEFT:h.x-d.x<0?(u.push({x:d.x,y:d.y-o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:d.y-o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;case a.Side.TOP:u.push({x:d.x,y:Math.min(d.y,h.y)-1.5*o.standardDistance}),u.push({x:h.x,y:Math.min(d.y,h.y)-1.5*o.standardDistance});break;case a.Side.BOTTOM:h.x!==d.x&&(u.push({x:d.x,y:(d.y+h.y)/2}),u.push({x:h.x,y:(d.y+h.y)/2}));break}break;case a.Side.BOTTOM:switch(l){case a.Side.RIGHT:h.x-d.x>0?(u.push({x:d.x,y:d.y+o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:d.y+o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;case a.Side.LEFT:h.x-d.x<0?(u.push({x:d.x,y:d.y+o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:d.y+o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;default:h=i.get(a.Side.TOP),h.x!==d.x&&(u.push({x:d.x,y:(d.y+h.y)/2}),u.push({x:h.x,y:(d.y+h.y)/2}));break}break}return u},t.prototype.getBestConnectionAnchors=function(e,t,n,i){var o=t.get(a.Side.RIGHT),r=n.get(a.Side.LEFT);if(r.x-o.x>i.standardDistance)return{source:a.Side.RIGHT,target:a.Side.LEFT};if(o=t.get(a.Side.LEFT),r=n.get(a.Side.RIGHT),o.x-r.x>i.standardDistance)return{source:a.Side.LEFT,target:a.Side.RIGHT};if(o=t.get(a.Side.TOP),r=n.get(a.Side.BOTTOM),o.y-r.y>i.standardDistance)return{source:a.Side.TOP,target:a.Side.BOTTOM};if(o=t.get(a.Side.BOTTOM),r=n.get(a.Side.TOP),r.y-o.y>i.standardDistance)return{source:a.Side.BOTTOM,target:a.Side.TOP};if(o=t.get(a.Side.RIGHT),r=n.get(a.Side.TOP),r.x-o.x>.5*i.standardDistance&&r.y-o.y>i.standardDistance)return{source:a.Side.RIGHT,target:a.Side.TOP};if(r=n.get(a.Side.BOTTOM),r.x-o.x>.5*i.standardDistance&&o.y-r.y>i.standardDistance)return{source:a.Side.RIGHT,target:a.Side.BOTTOM};if(o=t.get(a.Side.LEFT),r=n.get(a.Side.BOTTOM),o.x-r.x>.5*i.standardDistance&&o.y-r.y>i.standardDistance)return{source:a.Side.LEFT,target:a.Side.BOTTOM};if(r=n.get(a.Side.TOP),o.x-r.x>.5*i.standardDistance&&r.y-o.y>i.standardDistance)return{source:a.Side.LEFT,target:a.Side.TOP};if(o=t.get(a.Side.TOP),r=n.get(a.Side.RIGHT),o.y-r.y>.5*i.standardDistance&&o.x-r.x>i.standardDistance)return{source:a.Side.TOP,target:a.Side.RIGHT};if(r=n.get(a.Side.LEFT),o.y-r.y>.5*i.standardDistance&&r.x-o.x>i.standardDistance)return{source:a.Side.TOP,target:a.Side.LEFT};if(o=t.get(a.Side.BOTTOM),r=n.get(a.Side.RIGHT),r.y-o.y>.5*i.standardDistance&&o.x-r.x>i.standardDistance)return{source:a.Side.BOTTOM,target:a.Side.RIGHT};if(r=n.get(a.Side.LEFT),r.y-o.y>.5*i.standardDistance&&r.x-o.x>i.standardDistance)return{source:a.Side.BOTTOM,target:a.Side.LEFT};if(o=t.get(a.Side.TOP),r=n.get(a.Side.TOP),!s.includes(n.bounds,o)&&!s.includes(t.bounds,r))if(o.y-r.y<0){if(Math.abs(o.x-r.x)>(t.bounds.width+i.standardDistance)/2)return{source:a.Side.TOP,target:a.Side.TOP}}else if(Math.abs(o.x-r.x)>n.bounds.width/2)return{source:a.Side.TOP,target:a.Side.TOP};if(o=t.get(a.Side.RIGHT),r=n.get(a.Side.RIGHT),!s.includes(n.bounds,o)&&!s.includes(t.bounds,r))if(o.x-r.x>0){if(Math.abs(o.y-r.y)>(t.bounds.height+i.standardDistance)/2)return{source:a.Side.RIGHT,target:a.Side.RIGHT}}else if(Math.abs(o.y-r.y)>n.bounds.height/2)return{source:a.Side.RIGHT,target:a.Side.RIGHT};return o=t.get(a.Side.TOP),r=n.get(a.Side.RIGHT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?(r=n.get(a.Side.LEFT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?(o=t.get(a.Side.BOTTOM),r=n.get(a.Side.RIGHT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?(r=n.get(a.Side.LEFT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?{source:a.Side.RIGHT,target:a.Side.BOTTOM}:{source:a.Side.BOTTOM,target:a.Side.LEFT}):{source:a.Side.BOTTOM,target:a.Side.RIGHT}):{source:a.Side.TOP,target:a.Side.LEFT}):{source:a.Side.TOP,target:a.Side.RIGHT}},t.KIND="manhattan",t}(a.LinearEdgeRouter);t.ManhattanEdgeRouter=l},4741:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("3623"),r=n("9964"),s=n("e1c6"),a=function(){function e(t,n){this.expandIds=t,this.collapseIds=n,this.kind=e.KIND}return e.KIND="collapseExpand",e}();t.CollapseExpandAction=a;var c=function(){function e(t){void 0===t&&(t=!0),this.expand=t,this.kind=e.KIND}return e.KIND="collapseExpandAll",e}();t.CollapseExpandAllAction=c;var l=function(){function e(){}return e.prototype.buttonPressed=function(e){var t=o.findParentByFeature(e,r.isExpandable);return void 0!==t?[new a(t.expanded?[]:[t.id],t.expanded?[t.id]:[])]:[]},e.TYPE="button:expand",e=i([s.injectable()],e),e}();t.ExpandButtonHandler=l},"47b7":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3a92"),r=n("66f9"),s=n("779b"),a=n("1978"),c=n("cc26"),l=n("7d36"),u=n("e4f0"),d=n("a0af"),h=n("3585"),p=n("4c18"),f=n("3b62"),m=n("dd02"),g=n("e629"),v=function(e){function t(t){return void 0===t&&(t=new C),e.call(this,t)||this}return i(t,e),t}(f.ViewportRootElement);t.SGraph=v;var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return i(t,e),t.prototype.canConnect=function(e,t){return void 0===this.children.find(function(e){return e instanceof y})},t.DEFAULT_FEATURES=[h.connectableFeature,a.deletableFeature,p.selectFeature,r.boundsFeature,d.moveFeature,r.layoutContainerFeature,l.fadeFeature,u.hoverFeedbackFeature,u.popupFeature],t}(h.SConnectableElement);t.SNode=b;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[h.connectableFeature,p.selectFeature,r.boundsFeature,l.fadeFeature,u.hoverFeedbackFeature],t}(h.SConnectableElement);t.SPort=y;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[c.editFeature,a.deletableFeature,p.selectFeature,l.fadeFeature,u.hoverFeedbackFeature],t}(h.SRoutableElement);t.SEdge=_;var M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.alignment=m.ORIGIN_POINT,t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.alignFeature,r.layoutableChildFeature,s.edgeLayoutFeature,l.fadeFeature],t}(r.SShapeElement);t.SLabel=M;var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.layoutContainerFeature,r.layoutableChildFeature,l.fadeFeature],t}(r.SShapeElement);t.SCompartment=w;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.outgoing=new Map,t.incoming=new Map,t}return i(t,e),t.prototype.add=function(t){if(e.prototype.add.call(this,t),t instanceof _){if(t.sourceId){var n=this.outgoing.get(t.sourceId);void 0===n?this.outgoing.set(t.sourceId,[t]):n.push(t)}if(t.targetId){var i=this.incoming.get(t.targetId);void 0===i?this.incoming.set(t.targetId,[t]):i.push(t)}}},t.prototype.remove=function(t){if(e.prototype.remove.call(this,t),t instanceof _){var n=this.outgoing.get(t.sourceId);if(void 0!==n){var i=n.indexOf(t);i>=0&&(1===n.length?this.outgoing.delete(t.sourceId):n.splice(i,1))}var o=this.incoming.get(t.targetId);if(void 0!==o){i=o.indexOf(t);i>=0&&(1===o.length?this.incoming.delete(t.targetId):o.splice(i,1))}}},t.prototype.getAttachedElements=function(e){var t=this;return new g.FluentIterableImpl(function(){return{outgoing:t.outgoing.get(e.id),incoming:t.incoming.get(e.id),nextOutgoingIndex:0,nextIncomingIndex:0}},function(e){var t=e.nextOutgoingIndex;if(void 0!==e.outgoing&&t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("945d"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.listen=function(e){var t=this;e.addEventListener("message",function(e){t.messageReceived(e.data)}),e.addEventListener("error",function(e){t.logger.error(t,"error event received",e)}),this.webSocket=e},t.prototype.disconnect=function(){this.webSocket&&(this.webSocket.close(),this.webSocket=void 0)},t.prototype.sendMessage=function(e){if(!this.webSocket)throw new Error("WebSocket is not connected");this.webSocket.send(JSON.stringify(e))},t=o([r.injectable()],t),t}(s.DiagramServer);t.WebSocketDiagramServer=a},"48f9":function(e,t,n){},"4a4f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4"),r=n("1979");function s(){return function(e,t,n){var s=new r.Metadata(o.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(o.POST_CONSTRUCT,e.constructor))throw new Error(i.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(o.POST_CONSTRUCT,s,e.constructor)}}t.postConstruct=s},"4b0d":function(e,t,n){"use strict";var i=n("2196"),o=n.n(i);o.a},"4b75":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=function(){function e(){this.tasks=[],this.endTasks=[],this.triggered=!1}return e.prototype.isAvailable=function(){return"function"===typeof requestAnimationFrame},e.prototype.onNextFrame=function(e){this.tasks.push(e),this.trigger()},e.prototype.onEndOfNextFrame=function(e){this.endTasks.push(e),this.trigger()},e.prototype.trigger=function(){var e=this;this.triggered||(this.triggered=!0,this.isAvailable()?requestAnimationFrame(function(t){return e.run(t)}):setTimeout(function(t){return e.run(t)}))},e.prototype.run=function(e){var t=this.tasks,n=this.endTasks;this.triggered=!1,this.tasks=[],this.endTasks=[],t.forEach(function(t){return t.call(void 0,e)}),n.forEach(function(t){return t.call(void 0,e)})},e=i([o.injectable()],e),e}();t.AnimationFrameSyncer=r},"54f8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("70d9"),r=new i.ContainerModule(function(e){e(o.ButtonHandlerRegistry).toSelf().inSingletonScope()});t.default=r},5530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("dfc0"),s=new i.ContainerModule(function(e,t,n,i){i(o.TYPES.IModelFactory).to(r.SGraphFactory).inSingletonScope()});t.default=s},"559d":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n("e1c6"),l=n("c146"),u=n("9757"),d=n("3a92"),h=n("3623"),p=n("6923"),f=n("3b4c"),m=n("e45b"),g=n("47b7"),v=n("42be"),b=n("dd02"),y=n("66f9"),_=n("ea38"),M=n("1978"),w=n("a5f4"),C=n("61d8"),S=n("3585"),A=n("168d"),E=n("779b"),O=n("4c18"),L=n("bcbd"),T=n("5eb6"),x=n("a0af"),R=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.moves=e,this.animate=t,this.finished=n,this.kind=k.KIND}return e}();t.MoveAction=R;var k=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.resolvedMoves=new Map,n.edgeMementi=[],n}var n;return i(t,e),n=t,t.prototype.execute=function(e){var t=this,n=e.root.index,i=new Map,o=new Map;return this.action.moves.forEach(function(e){var r=n.getById(e.elementId);if(r instanceof S.SRoutingHandle&&t.edgeRouterRegistry){var s=r.parent;if(s instanceof S.SRoutableElement){var a=t.resolveHandleMove(r,s,e);if(a){var c=i.get(s);c||(c=[],i.set(s,c)),c.push(a)}}}else if(r&&x.isLocateable(r)){var l=t.resolveElementMove(r,e);l&&(t.resolvedMoves.set(l.element.id,l),t.edgeRouterRegistry&&n.getAttachedElements(r).forEach(function(e){if(e instanceof S.SRoutableElement){var t=o.get(e),n=b.subtract(l.toPosition,l.fromPosition),i=t?b.linear(t,n,.5):n;o.set(e,i)}}))}}),this.doMove(i,o),this.action.animate?(this.undoMove(),new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!1),new P(e.root,this.edgeMementi,e,!1)]).start()):e.root},t.prototype.resolveHandleMove=function(e,t,n){var i=n.fromPosition;if(!i){var o=this.edgeRouterRegistry.get(t.routerKind);i=o.getHandlePosition(t,o.route(t),e)}if(i)return{handle:e,fromPosition:i,toPosition:n.toPosition}},t.prototype.resolveElementMove=function(e,t){var n=t.fromPosition||{x:e.position.x,y:e.position.y};return{element:e,fromPosition:n,toPosition:t.toPosition}},t.prototype.doMove=function(e,t){var n=this;this.resolvedMoves.forEach(function(e){e.element.position=e.toPosition}),e.forEach(function(e,t){var i=n.edgeRouterRegistry.get(t.routerKind),o=i.takeSnapshot(t);i.applyHandleMoves(t,e);var r=i.takeSnapshot(t);n.edgeMementi.push({edge:t,before:o,after:r})}),t.forEach(function(t,i){if(!e.get(i)){var o=n.edgeRouterRegistry.get(i.routerKind),r=o.takeSnapshot(i);if(i.source&&i.target&&n.resolvedMoves.get(i.source.id)&&n.resolvedMoves.get(i.target.id))i.routingPoints=i.routingPoints.map(function(e){return b.add(e,t)});else{var s=O.isSelectable(i)&&i.selected;o.cleanupRoutingPoints(i,i.routingPoints,s,n.action.finished)}var a=o.takeSnapshot(i);n.edgeMementi.push({edge:i,before:r,after:a})}})},t.prototype.undoMove=function(){var e=this;this.resolvedMoves.forEach(function(e){e.element.position=e.fromPosition}),this.edgeMementi.forEach(function(t){var n=e.edgeRouterRegistry.get(t.edge.routerKind);n.applySnapshot(t.edge,t.before)})},t.prototype.undo=function(e){return new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!0),new P(e.root,this.edgeMementi,e,!0)]).start()},t.prototype.redo=function(e){return new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!1),new P(e.root,this.edgeMementi,e,!1)]).start()},t.prototype.merge=function(e,t){var i=this;if(!this.action.animate&&e instanceof n)return e.resolvedMoves.forEach(function(e,t){var n=i.resolvedMoves.get(t);n?n.toPosition=e.toPosition:i.resolvedMoves.set(t,e)}),e.edgeMementi.forEach(function(e){var t=i.edgeMementi.find(function(t){return t.edge.id===e.edge.id});t?t.after=e.after:i.edgeMementi.push(e)}),!0;if(e instanceof C.ReconnectCommand){var o=e.memento;if(o){var r=this.edgeMementi.find(function(e){return e.edge.id===o.edge.id});r?r.after=o.after:this.edgeMementi.push(o)}return!0}return!1},t.KIND="move",r([c.inject(A.EdgeRouterRegistry),c.optional(),s("design:type",A.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=n=r([c.injectable(),a(0,c.inject(p.TYPES.Action)),s("design:paramtypes",[R])],t),t}(u.MergeableCommand);t.MoveCommand=k;var z=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.elementMoves=n,r.reverse=o,r}return i(t,e),t.prototype.tween=function(e){var t=this;return this.elementMoves.forEach(function(n){t.reverse?n.element.position={x:(1-e)*n.toPosition.x+e*n.fromPosition.x,y:(1-e)*n.toPosition.y+e*n.fromPosition.y}:n.element.position={x:(1-e)*n.fromPosition.x+e*n.toPosition.x,y:(1-e)*n.fromPosition.y+e*n.toPosition.y}}),this.model},t}(l.Animation);t.MoveAnimation=z;var P=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.reverse=o,r.expanded=[],n.forEach(function(e){var t=r.reverse?e.after:e.before,n=r.reverse?e.before:e.after,i=t.routedPoints,o=n.routedPoints,s=Math.max(i.length,o.length);r.expanded.push({startExpandedRoute:r.growToSize(i,s),endExpandedRoute:r.growToSize(o,s),memento:e})}),r}return i(t,e),t.prototype.midPoint=function(e){var t=e.edge,n=e.edge.source,i=e.edge.target;return b.linear(h.translatePoint(b.center(n.bounds),n.parent,t.parent),h.translatePoint(b.center(i.bounds),i.parent,t.parent),.5)},t.prototype.start=function(){return this.expanded.forEach(function(e){e.memento.edge.removeAll(function(e){return e instanceof S.SRoutingHandle})}),e.prototype.start.call(this)},t.prototype.tween=function(e){var t=this;return 1===e?this.expanded.forEach(function(e){var n=e.memento;t.reverse?n.before.router.applySnapshot(n.edge,n.before):n.after.router.applySnapshot(n.edge,n.after)}):this.expanded.forEach(function(t){for(var n=[],i=1;i(s+l)*o)++l;s+=l;for(var u=0;u0?new R(o,!1,n):void 0}},t.prototype.snap=function(e,t,n){return n&&this.snapper?this.snapper.snap(e,t):e},t.prototype.getHandlePosition=function(e){if(this.edgeRouterRegistry){var t=e.parent;if(!(t instanceof S.SRoutableElement))return;var n=this.edgeRouterRegistry.get(t.routerKind),i=n.route(t);return n.getHandlePosition(t,i,e)}},t.prototype.mouseEnter=function(e,t){return e instanceof d.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){var n=this,i=[],o=!1;if(this.startDragPosition){var r=this.getElementMoves(e,t,!0);r&&i.push(r),e.root.index.all().forEach(function(t){if(t instanceof S.SRoutingHandle){var r=t.parent;if(r instanceof S.SRoutableElement&&t.danglingAnchor){var s=n.getHandlePosition(t);if(s){var a=h.translatePoint(s,t.parent,t.root),c=y.findChildrenAtPosition(e.root,a).find(function(e){return S.isConnectable(e)&&e.canConnect(r,t.kind)});c&&n.hasDragged&&(i.push(new C.ReconnectAction(t.parent.id,"source"===t.kind?c.id:r.sourceId,"target"===t.kind?c.id:r.targetId)),o=!0)}}t.editMode&&i.push(new w.SwitchEditModeAction([],[t.id]))}})}if(!o){var s=e.root.index.getById(S.edgeInProgressID);if(s instanceof d.SChildElement){var a=[];a.push(S.edgeInProgressID),s.children.forEach(function(e){e instanceof S.SRoutingHandle&&e.danglingAnchor&&a.push(e.danglingAnchor.id)}),i.push(new M.DeleteElementAction(a))}}return this.hasDragged&&i.push(new v.CommitModelAction),this.hasDragged=!1,this.startDragPosition=void 0,this.elementId2startPos.clear(),i},t.prototype.decorate=function(e,t){return e},r([c.inject(A.EdgeRouterRegistry),c.optional(),s("design:type",A.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),r([c.inject(p.TYPES.ISnapper),c.optional(),s("design:type",Object)],t.prototype,"snapper",void 0),t}(f.MouseListener);t.MoveMouseListener=N;var I=function(){function e(){}return e.prototype.decorate=function(e,t){if(E.isEdgeLayoutable(t)&&t.parent instanceof g.SEdge)return e;var n="";if(x.isLocateable(t)&&t instanceof d.SChildElement&&void 0!==t.parent){var i=t.position;0===i.x&&0===i.y||(n="translate("+i.x+", "+i.y+")")}if(y.isAlignable(t)){var o=t.alignment;0===o.x&&0===o.y||(n.length>0&&(n+=" "),n+="translate("+o.x+", "+o.y+")")}return n.length>0&&m.setAttr(e,"transform",n),e},e.prototype.postUpdate=function(){},e=r([c.injectable()],e),e}();t.LocationPostprocessor=I},5823:function(e,t,n){"use strict";var i=n("e8de"),o=n.n(i);o.a},5870:function(e,t,n){},5884:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("1cc1"),r=n("3c83"),s=n("6923"),a=new i.ContainerModule(function(e){e(s.TYPES.IContextMenuServiceProvider).toProvider(function(e){return function(){return new Promise(function(t,n){e.container.isBound(s.TYPES.IContextMenuService)?t(e.container.get(s.TYPES.IContextMenuService)):n()})}}),e(s.TYPES.MouseListener).to(r.ContextMenuMouseListener),e(s.TYPES.IContextMenuProviderRegistry).to(o.ContextMenuProviderRegistry)});t.default=a},"5b35":function(e,t,n){"use strict";var i=n("b878"),o=n.n(i);o.a},"5bc0":function(e,t,n){},"5bcd":function(e,t,n){},"5d08":function(e,t,n){"use strict";var i=n("d675"),o=n.n(i);o.a},"5d19":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("66f9"),s=n("0fb6"),a=n("6923"),c=n("dd02"),l=n("e1c6"),u=function(){function e(t,n){void 0===n&&(n=""),this.svg=t,this.responseId=n,this.kind=e.KIND}return e.KIND="exportSvg",e}();t.ExportSvgAction=u;var d=function(){function e(){}return e.prototype.export=function(e,t){if("undefined"!==typeof document){var n=document.getElementById(this.options.hiddenDiv);if(null!==n&&n.firstElementChild&&"svg"===n.firstElementChild.tagName){var i=n.firstElementChild,o=this.createSvg(i,e);this.actionDispatcher.dispatch(new u(o,t?t.requestId:""))}}},e.prototype.createSvg=function(e,t){var n=new XMLSerializer,i=n.serializeToString(e),o=document.createElement("iframe");if(document.body.appendChild(o),!o.contentWindow)throw new Error("IFrame has no contentWindow");var r=o.contentWindow.document;r.open(),r.write(i),r.close();var s=r.getElementById(e.id);s.removeAttribute("opacity"),this.copyStyles(e,s,["width","height","opacity"]),s.setAttribute("version","1.1");var a=this.getBounds(t);s.setAttribute("viewBox",a.x+" "+a.y+" "+a.width+" "+a.height);var c=n.serializeToString(s);return document.body.removeChild(o),c},e.prototype.copyStyles=function(e,t,n){for(var i=getComputedStyle(e),o=getComputedStyle(t),r="",s=0;s=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},"5e1a":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n("a8f0").Buffer,r=n(3);function s(e,t,n){e.copy(t,n)}e.exports=function(){function e(){i(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;var t=o.allocUnsafe(e>>>0),n=this.head,i=0;while(n)s(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},"5e9c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("6923");function o(e,t){var n=e.get(i.TYPES.CommandStackOptions);for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return n}t.overrideCommandStackOptions=o},"5eb6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("3a92");function o(e){return e instanceof i.SModelRoot&&e.hasFeature(t.viewportFeature)&&"zoom"in e&&"scroll"in e}t.viewportFeature=Symbol("viewportFeature"),t.isViewport=o},6176:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("dd02"),a=n("3a92"),c=n("6923"),l=n("42f7"),u=n("320b"),d=n("66f9"),h=function(){function e(){}return e}();t.BoundsData=h;var p=function(){function e(){this.element2boundsData=new Map}return e.prototype.decorate=function(e,t){return(d.isSizeable(t)||d.isLayoutContainer(t))&&this.element2boundsData.set(t,{vnode:e,bounds:t.bounds,boundsChanged:!1,alignmentChanged:!1}),t instanceof a.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){if(void 0!==e&&e.kind===l.RequestBoundsAction.KIND){var t=e;this.getBoundsFromDOM(),this.layouter.layout(this.element2boundsData);var n=[],i=[];this.element2boundsData.forEach(function(e,t){if(e.boundsChanged&&void 0!==e.bounds){var o={elementId:t.id,newSize:{width:e.bounds.width,height:e.bounds.height}};t instanceof a.SChildElement&&d.isLayoutContainer(t.parent)&&(o.newPosition={x:e.bounds.x,y:e.bounds.y}),n.push(o)}e.alignmentChanged&&void 0!==e.alignment&&i.push({elementId:t.id,newAlignment:e.alignment})});var o=void 0!==this.root?this.root.revision:void 0;this.actionDispatcher.dispatch(new l.ComputedBoundsAction(n,o,i,t.requestId)),this.element2boundsData.clear()}},e.prototype.getBoundsFromDOM=function(){var e=this;this.element2boundsData.forEach(function(t,n){if(t.bounds&&d.isSizeable(n)){var i=t.vnode;if(i&&i.elm){var o=e.getBounds(i.elm,n);!d.isAlignable(n)||s.almostEquals(o.x,0)&&s.almostEquals(o.y,0)||(t.alignment={x:-o.x,y:-o.y},t.alignmentChanged=!0);var r={x:n.bounds.x,y:n.bounds.y,width:o.width,height:o.height};s.almostEquals(r.x,n.bounds.x)&&s.almostEquals(r.y,n.bounds.y)&&s.almostEquals(r.width,n.bounds.width)&&s.almostEquals(r.height,n.bounds.height)||(t.bounds=r,t.boundsChanged=!0)}}})},e.prototype.getBounds=function(e,t){if("function"!==typeof e.getBBox)return this.logger.error(this,"Not an SVG element:",e),s.EMPTY_BOUNDS;var n=e.getBBox();return{x:n.x,y:n.y,width:n.width,height:n.height}},i([r.inject(c.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),i([r.inject(c.TYPES.IActionDispatcher),o("design:type",Object)],e.prototype,"actionDispatcher",void 0),i([r.inject(c.TYPES.Layouter),o("design:type",u.Layouter)],e.prototype,"layouter",void 0),e=i([r.injectable()],e),e}();t.HiddenBoundsUpdater=p},"61d8":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("6923"),u=n("3585"),d=n("168d"),h=function(){function e(t,n,i){this.routableId=t,this.newSourceId=n,this.newTargetId=i,this.kind=e.KIND}return e.KIND="reconnect",e}();t.ReconnectAction=h;var p=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.doExecute(e),e.root},t.prototype.doExecute=function(e){var t=e.root.index,n=t.getById(this.action.routableId);if(n instanceof u.SRoutableElement){var i=this.edgeRouterRegistry.get(n.routerKind),o=i.takeSnapshot(n);i.applyReconnect(n,this.action.newSourceId,this.action.newTargetId);var r=i.takeSnapshot(n);this.memento={edge:n,before:o,after:r}}},t.prototype.undo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.before)}return e.root},t.prototype.redo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.after)}return e.root},t.KIND=h.KIND,o([a.inject(d.EdgeRouterRegistry),r("design:type",d.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o([a.injectable(),s(0,a.inject(l.TYPES.Action)),r("design:paramtypes",[h])],t),t}(c.Command);t.ReconnectCommand=p},6208:function(e,t,n){"use strict";var i=n("6cea"),o=n.n(i);o.a},"624f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4"),r=n("1979"),s=n("66d7"),a=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();function c(e){return function(t,n,a){if(void 0===e)throw new Error(i.UNDEFINED_INJECT_ANNOTATION(t.name));var c=new r.Metadata(o.INJECT_TAG,e);"number"===typeof a?s.tagParameter(t,n,a,c):s.tagProperty(t,n,c)}}t.LazyServiceIdentifer=a,t.inject=c},6283:function(e,t,n){"use strict";var i=n("5bcd"),o=n.n(i);o.a},6420:function(e,t,n){"use strict";var i=n("1f0f"),o=n.n(i);o.a},6592:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTextVNode=s,t.transformName=a,t.unescapeEntities=u;var i=n("81aa"),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return(0,o.default)(void 0,void 0,void 0,u(e,t))}function a(e){e=e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var t=e.charAt(0).toLowerCase();return""+t+e.substring(1)}var c=new RegExp("&[a-z0-9#]+;","gi"),l=null;function u(e,t){return l||(l=t.createElement("div")),e.replace(c,function(e){return l.innerHTML=e,l.textContent})}},"65d1":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("393a"),c=n("3623"),l=n("e45b"),u=n("8e97"),d=n("779b"),h=n("3585"),p=n("168d"),f=n("8d9d"),m=function(){function e(){}return e.prototype.render=function(e,t){var n="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return a.svg("svg",{"class-sprotty-graph":!0},a.svg("g",{transform:n},t.renderChildren(e)))},e=o([s.injectable()],e),e}();t.SGraphView=m;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){var n=this.edgeRouterRegistry.get(e.routerKind),i=n.route(e);if(0===i.length)return this.renderDanglingEdge("Cannot compute route",e,t);if(!this.isVisible(e,i,t)){if(0===e.children.length)return;return a.svg("g",null,t.renderChildren(e,{route:i}))}return a.svg("g",{"class-sprotty-edge":!0,"class-mouseover":e.hoverFeedback},this.renderLine(e,i,t),this.renderAdditionals(e,i,t),t.renderChildren(e,{route:i}))},t.prototype.renderLine=function(e,t,n){for(var i=t[0],o="M "+i.x+","+i.y,r=1;r0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,i=l.some(function(e){return!!~n.indexOf(e)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,i=Object.keys(t);n0},e}(),L="undefined"!==typeof WeakMap?new WeakMap:new n,T=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),i=new O(t,n,this);L.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){T.prototype[e]=function(){var t;return(t=L.get(this))[e].apply(t,arguments)}});var x=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:T}();t["a"]=x}).call(this,n("c8ba"))},"6f35":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("842c"),r=n("3ada"),s=new i.ContainerModule(function(e,t,n){o.configureCommand({bind:e,isBound:n},r.BringToFrontCommand)});t.default=s},"70d9":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("3864"),c=n("e1c6"),l=n("6923"),u=function(e){function t(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.TYPE,new e)}),n}return i(t,e),t=o([c.injectable(),s(0,c.multiInject(l.TYPES.IButtonHandler)),s(0,c.optional()),r("design:paramtypes",[Array])],t),t}(a.InstanceRegistry);t.ButtonHandlerRegistry=u},7122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("155f"),r=n("c5f4");function s(e,t,n){var i=t.filter(function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ClassProperty}),r=i.map(n);return i.forEach(function(t,n){var i="";i=t.target.name.value();var o=r[n];e[i]=o}),e}function a(e,t){return new(e.bind.apply(e,[void 0].concat(t)))}function c(e,t){if(Reflect.hasMetadata(r.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(r.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(i.POST_CONSTRUCT_ERROR(e.name,t.message))}}}function l(e,t,n){var i=null;if(t.length>0){var r=t.filter(function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ConstructorArgument}),l=r.map(n);i=a(e,l),i=s(i,t,n)}else i=new e;return c(e,i),i}t.resolveInstance=l},"715d":function(e,t,n){"use strict";var i=n("1f66"),o=n.n(i);o.a},7173:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ft-wrapper",class:{"ft-no-timestamp":0===e.slices.length||-1===e.timestamp}},[n("div",{staticClass:"ft-container"},[n("div",{staticClass:"ft-time row"},[n("div",{staticClass:"ft-time-origin-container",on:{click:function(t){e.onClick(t,function(){e.changeTimestamp(-1)})}}},[n("q-icon",{staticClass:"ft-time-origin",class:{"ft-time-origin-active":-1===e.timestamp},attrs:{name:"mdi-clock-start"}}),0!==e.slices.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.slices.length>0?e.slices[0][1]:e.$t("label.timeOrigin"))}}):e._e()],1),n("div",{ref:"ft-timeline-"+e.observationId,staticClass:"ft-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[n("div",{ref:"ft-timeline",staticClass:"ft-timeline",class:{"ft-with-slices":0!==e.slices.length},on:{mousemove:e.moveOnTimeline,click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.slices.length>0,expression:"slices.length > 0"}],staticClass:"ft-timeline-viewer"}),e.slices.length<=1?n("div",{staticClass:"ft-slice-container",style:{left:e.calculatePosition(e.start)+"px"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.start)))])]):e._e(),e._l(e.slices,function(t,i){return-1!==t[0]?n("div",{key:i,staticClass:"ft-slice-container",style:{left:e.calculatePosition(t[0])+"px"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(t[0])))])]):e._e()}),n("div",{staticClass:"ft-slice-container",style:{left:"calc("+e.calculatePosition(e.end)+"px - 2px)"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.end)))])]),-1!==e.timestamp?n("div",{staticClass:"ft-actual-time",style:{left:"calc("+e.calculatePosition(e.timestamp)+"px - 11px + "+(e.timestamp===e.end?"0":"1")+"px)"}},[n("q-icon",{attrs:{name:"mdi-menu-down-outline"}})],1):e._e(),0!==e.slices.length?n("q-tooltip",{staticClass:"ft-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)])])]),n("q-resize-observable",{on:{resize:e.updateWidth}})],1)},o=[];i._withStripped=!0;n("ac6a");var r=n("278c"),s=n.n(r),a=(n("28a5"),n("c5f6"),n("c1df")),c=n.n(a),l=n("b8c1"),u={name:"FigureTimeline",mixins:[l["a"]],props:{observationId:{type:String,required:!0},start:{type:Number,required:!0},end:{type:Number,required:!0},rawSlices:{type:Array,default:function(){return[]}},startingTime:{type:Number,default:-1}},computed:{slices:function(){return this.rawSlices.map(function(e){var t=e.split(",");return[+t[0],t[1]]})}},data:function(){return{timestamp:this.startingTime,timelineDate:null,timelineWidth:0,timelineLeft:0}},methods:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===e?"":(t||(e=c()(e).format("L")),'
'.concat(e,"
"))},updateWidth:function(){var e=this.$refs["ft-timeline-".concat(this.observationId)];e?(this.timelineWidth=e.clientWidth,this.timelineLeft=e.getBoundingClientRect().left):(this.timelineWidth=0,this.timelineLeft=0)},calculatePosition:function(e){if(0===this.timelineWidth)return 0;if(-1===e)return 0;var t=Math.floor((e-this.start)*this.timelineWidth/(this.end-this.start));return t},moveOnTimeline:function(e){var t=this.getSlice(this.getDateFromPosition(e)),n=s()(t,2);this.timelineDate=n[1]},getDateFromPosition:function(e){if(0===this.timelineWidth)return 0;var t=e.clientX-this.timelineLeft,n=Math.floor(this.start+t*(this.end-this.start)/this.timelineWidth);return n>this.end?n=this.end:nthis.end)return[this.end,this.formatDate(this.end)];var t=[this.start,this.formatDate(this.start)];return this.slices.length>0&&this.slices.forEach(function(n){n[0]<=e&&(t=n)}),t},changeTimestamp:function(e){if(0!==this.slices.length){e>this.end?this.timestamp=this.end:this.timestamp=e;var t=this.getSlice(e),n=s()(t,2);this.timelineDate=n[1],this.$emit("timestampchange",{time:t[0],timeString:-1===e?t[1]:c()(e).format("L")})}},getLabel:function(e){return c()(e).format("L")}},mounted:function(){this.updateWidth()}},d=u,h=(n("0faf"),n("2877")),p=Object(h["a"])(d,i,o,!1,null,null,null);p.options.__file="FigureTimeline.vue";t["a"]=p.exports},"719e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4");function r(){return function(e){if(Reflect.hasOwnMetadata(o.PARAM_TYPES,e))throw new Error(i.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(o.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(o.PARAM_TYPES,t,e),e}}t.injectable=r},"71d9":function(e,t,n){},"72dd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("42f7"),s=n("61bf"),a=n("320b"),c=n("842c"),l=new i.ContainerModule(function(e,t,n){c.configureCommand({bind:e,isBound:n},r.SetBoundsCommand),c.configureCommand({bind:e,isBound:n},r.RequestBoundsCommand),e(s.HiddenBoundsUpdater).toSelf().inSingletonScope(),e(o.TYPES.HiddenVNodePostprocessor).toService(s.HiddenBoundsUpdater),e(o.TYPES.Layouter).to(a.Layouter).inSingletonScope(),e(o.TYPES.LayoutRegistry).to(a.LayoutRegistry).inSingletonScope()});t.default=l},7364:function(e,t,n){},7521:function(e,t,n){"use strict";var i=n("48f9"),o=n.n(i);o.a},"755f":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("393a"),r=n("e45b"),s=n("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){var n=16/1792,i="scale("+n+", "+n+")",s=this.getMaxSeverity(e),a=o.svg("g",{"class-sprotty-issue":!0},o.svg("g",{transform:i},o.svg("path",{d:this.getPath(s)})));return r.setClass(a,"sprotty-"+s,!0),a},e.prototype.getMaxSeverity=function(e){for(var t="info",n=0,i=e.issues.map(function(e){return e.severity});n1?n("div",{staticClass:"kal-locales row reverse"},[n("q-select",{staticClass:"kal-lang-selector",attrs:{options:t.localeOptions,color:"app-main-color","hide-underline":""},model:{value:t.selectedLocale,callback:function(n){e.$set(t,"selectedLocale",n)},expression:"app.selectedLocale"}})],1):e._e()])})],2)])],1)],1)],1)])},O=[];E._withStripped=!0;n("a481"),n("7514"),n("20d6"),n("ac6a"),n("cadf"),n("456d"),n("7f7f");var L=n("be3b"),T=n("d247"),x={ab:{name:"Abkhaz",nativeName:"аҧсуа"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"አማርኛ"},ar:{name:"Arabic",nativeName:"العربية"},an:{name:"Aragonese",nativeName:"Aragonés"},hy:{name:"Armenian",nativeName:"Հայերեն"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},eu:{name:"Basque",nativeName:"euskara"},be:{name:"Belarusian",nativeName:"Беларуская"},bn:{name:"Bengali",nativeName:"বাংলা"},bh:{name:"Bihari",nativeName:"भोजपुरी"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"български език"},my:{name:"Burmese",nativeName:"ဗမာစာ"},ca:{name:"Catalan; Valencian",nativeName:"Català"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiCheŵa"},zh:{name:"Chinese",nativeName:"中文 (Zhōngwén)"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"česky"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"ދިވެހި"},nl:{name:"Dutch",nativeName:"Nederlands"},en:{name:"English",nativeName:"English",flag:"gb"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti"},ee:{name:"Ewe",nativeName:"Eʋegbe"},fo:{name:"Faroese",nativeName:"føroyskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi"},fr:{name:"French",nativeName:"français"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"ქართული"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek",nativeName:"Ελληνικά"},gn:{name:"Guaraní",nativeName:"Avañeẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},ht:{name:"Haitian; Haitian Creole",nativeName:"Kreyòl ayisyen"},ha:{name:"Hausa",nativeName:"Hausa"},he:{name:"Hebrew (modern)",nativeName:"עברית"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語 (にほんご/にっぽんご)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},kk:{name:"Kazakh",nativeName:"Қазақ тілі"},km:{name:"Khmer",nativeName:"ភាសាខ្មែរ"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz",nativeName:"кыргыз тили"},kv:{name:"Komi",nativeName:"коми кыв"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"한국어 (韓國語)"},ku:{name:"Kurdish",nativeName:"Kurdî"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latviešu valoda"},gv:{name:"Manx",nativeName:"Gaelg"},mk:{name:"Macedonian",nativeName:"македонски јазик"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"Māori",nativeName:"te reo Māori"},mr:{name:"Marathi (Marāṭhī)",nativeName:"मराठी"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mn:{name:"Mongolian",nativeName:"монгол"},na:{name:"Nauru",nativeName:"Ekakairũ Naoero"},nv:{name:"Navajo",nativeName:"Diné bizaad"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},fa:{name:"Persian",nativeName:"فارسی"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian",nativeName:"română"},ru:{name:"Russian",nativeName:"русский"},sa:{name:"Sanskrit (Saṁskṛta)",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},sr:{name:"Serbian",nativeName:"српски језик"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"Gàidhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovene",nativeName:"slovenščina"},so:{name:"Somali",nativeName:"Soomaaliga"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"español"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},bo:{name:"Tibetan Standard",nativeName:"བོད་ཡིག"},tk:{name:"Turkmen",nativeName:"Türkmen"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татарча"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur",nativeName:"Uyƣurqə"},uk:{name:"Ukrainian",nativeName:"українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"zbek"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"}},R={name:"KlabSettings",data:function(){return{models:{userDetails:!1,appsList:!1},popupsOver:{userDetails:!1,appsList:!1},fabVisible:!1,closeTimeout:null,modalTimeout:null,appsList:[],localeOptions:[],test:"es",TERMINAL_TYPES:c["K"],ISO_LOCALE:x}},computed:s()({},Object(a["c"])("data",["sessionReference","isLocal"]),Object(a["c"])("view",["isApp","klabApp","hasShowSettings","layout","dataflowInfoOpen","mainViewerName"]),{hasDataflowInfo:function(){return this.dataflowInfoOpen&&this.mainViewerName===c["M"].DATAFLOW_VIEWER.name},modalsAreFocused:function(){var e=this;return Object.keys(this.popupsOver).some(function(t){return e.popupsOver[t]})||this.selectOpen},owner:function(){return this.sessionReference&&this.sessionReference.owner?this.sessionReference.owner:{unknown:this.$t("label.unknownUser")}},isDeveloper:function(){return this.owner&&this.owner.groups&&-1!==this.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})}}),methods:s()({},Object(a["b"])("data",["loadSessionReference","addTerminal"]),Object(a["b"])("view",["setLayout","setShowSettings"]),{getLocalizedString:function(e,t){if(e.selectedLocale){var n=e.localizations.find(function(t){return t.isoCode===e.selectedLocale});if(n)return"label"===t?n.localizedLabel:n.localizedDescription;if("description"===t)return this.$t("label.noLayoutDescription");if(e.name)return e.name;this.$t("label.noLayoutLabel")}return""},loadApplications:function(){var e=this;if(this.appsList.splice(0),this.sessionReference&&this.sessionReference.publicApps){var t=this.sessionReference.publicApps.filter(function(e){return"WEB"===e.platform||"ANY"===e.platform});t.forEach(function(t){t.logo?(t.logoSrc="".concat("").concat(T["c"].REST_GET_PROJECT_RESOURCE,"/").concat(t.projectId,"/").concat(t.logo.replace("/",":")),e.appsList.push(t)):(t.logoSrc=c["b"].DEFAULT_LOGO,e.appsList.push(t)),e.$set(t,"selectedLocale",t.localizations[0].isoCode),t.localeOptions=t.localizations.map(function(e){return{label:e.languageDescription,value:e.isoCode,icon:"mdi-earth",className:"kal-locale-options"}})})}},runApp:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.selectedLocale,i="".concat(e.name,".").concat(n);this.layout&&this.layout.name===i||(e.selectedLocale=n,this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:i},this.$store.state.data.session).body),this.$nextTick(function(){t.models.appsList=!1,t.fabVisible=!1}))},exitApp:function(){this.layout&&this.setLayout(null)},logout:function(){var e=this,t="".concat("").concat("/modeler").concat(this.isApp?"?app=".concat(this.klabApp):"");null!==this.token?L["a"].post("".concat("").concat(T["c"].REST_API_LOGOUT),{}).then(function(n){var i=n.status;205===i?window.location=t:(e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),console.error("Strange status: ".concat(i)))}).catch(function(t){e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),t.response&&403===t.response.status&&console.error("Probably bad token"),console.error("Error logging out: ".concat(t))}):window.location=t},mouseActionEnter:function(e){var t=this;clearTimeout(this.modalTimeout),this.modalTimeout=null,this.$nextTick(function(){t.models[e]=!0,Object.keys(t.models).forEach(function(n){n!==e&&(t.models[n]=!1)})})},mouseFabClick:function(e){var t=this;this.fabVisible?(e.stopPropagation(),e.preventDefault(),setTimeout(function(){window.addEventListener("click",t.closeAll)},300)):(this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.modalsAreFocused||this.closeAll(e,500))},closeAll:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.closeTimeout=setTimeout(function(){Object.keys(e.models).forEach(function(t){e.models[t]=!1}),e.$refs["klab-settings"].hide(),window.removeEventListener("click",e.closeAll)},t)},openTerminal:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.closeAll(),setTimeout(function(){e.addTerminal(s()({},t&&{type:t}))},200)}}),watch:{sessionReference:function(){this.loadApplications()}},created:function(){this.loadApplications()}},k=R,z=(n("e2d7"),Object(y["a"])(k,E,O,!1,null,null,null));z.options.__file="KlabSettings.vue";var P=z.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.draggableConfig,expression:"draggableConfig"}],staticClass:"kterm-container",class:{"kterm-minimized":!e.terminal.active,"kterm-focused":e.hasFocus},attrs:{id:"kterm-container-"+e.terminal.id}},[n("div",{staticClass:"kterm-header",style:{"background-color":e.background},attrs:{id:"kterm-handle-"+e.terminal.id},on:{mousedown:function(t){e.instance.focus()}}},[n("q-btn",{staticClass:"kterm-button kterm-delete-history",attrs:{icon:"mdi-delete-clock-outline",disable:0===e.terminalCommands.length,flat:"",color:"white",dense:""},on:{click:e.deleteHistory}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalDeleteHistory")))])],1),n("q-btn",{staticClass:"kterm-button kterm-drag",attrs:{icon:"mdi-resize",flat:"",color:"white",dense:""},on:{click:function(t){e.selectSize=!0}}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalResizeWindow")))])],1),e.terminal.active?n("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-minimize",flat:"",color:"white",dense:""},on:{click:e.minimize}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMinimize")))])],1):n("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-maximize",flat:"",color:"white",dense:""},on:{click:e.maximize}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMaxmize")))])],1),n("q-btn",{staticClass:"kterm-button kterm-close",attrs:{icon:"mdi-close-circle",flat:"",color:"white",dense:""},on:{click:e.closeTerminal}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalClose")))])],1)],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.terminal.active,expression:"terminal.active"}],staticClass:"kterm-terminal",attrs:{id:"kterm-"+e.terminal.id}}),n("q-dialog",{attrs:{color:"mc-main"},on:{ok:e.onOk},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(n){e.sizeSelected(t.ok,!1)}}}),n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appSetDefault")},on:{click:function(n){e.sizeSelected(t.ok,!0)}}})]}}]),model:{value:e.selectSize,callback:function(t){e.selectSize=t},expression:"selectSize"}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("label.titleSelectTerminalSize")))]),n("div",{attrs:{slot:"body"},slot:"body"},[n("q-option-group",{attrs:{type:"radio",color:"mc-main",options:e.TERMINAL_SIZE_OPTIONS.map(function(e){return{label:e.label,value:e.value}})},model:{value:e.selectedSize,callback:function(t){e.selectedSize=t},expression:"selectedSize"}})],1)])],1)},I=[];N._withStripped=!0;var D,B=n("448a"),q=n.n(B),j=(n("96cf"),n("c973")),W=n.n(j),F=n("fcf3");n("f751");function H(e){return e&&(e.$el||e)}function X(e,t,n,i,o){void 0===o&&(o={});var r={left:n,top:i},s=e.height,a=e.width,c=i,l=i+s,u=n,d=n+a,h=o.top||0,p=o.bottom||0,f=o.left||0,m=o.right||0,g=t.top+h,v=t.bottom-p,b=t.left+f,y=t.right-m;return cv&&(r.top=v-s),uy&&(r.left=y-a),r}(function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"})(D||(D={}));var U={bind:function(e,t,n,i){U.update(e,t,n,i)},update:function(e,t,n,i){if(!t.value||!t.value.stopDragging){var o=t.value&&t.value.handle&&H(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(p(),g()),o.getAttribute("draggable")||(e.removeEventListener("touchstart",e.listener),e.removeEventListener("mousedown",e.listener),o.addEventListener("mousedown",c),o.addEventListener("touchstart",c,{passive:!1}),o.setAttribute("draggable","true"),e.listener=c,p(),g())}function r(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function s(){if(!f()){var t=v();t.currentDragPosition&&(e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}}function a(e){return e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY,e}function c(e){if(window.TouchEvent&&e instanceof TouchEvent){if(e.targetTouches.length1||(t.value.fingers=2),m({initialPosition:a,startDragPosition:a,currentDragPosition:a,initialPos:d(e)}),s()}function f(){return t&&t.value&&t.value.noMove}function m(e){var t=v(),n=Object.assign({},t,e);o.setAttribute("draggable-state",JSON.stringify(n))}function g(e,n){var i=v(),o={x:0,y:0};i.currentDragPosition&&i.startDragPosition&&(o.x=i.currentDragPosition.left-i.startDragPosition.left,o.y=i.currentDragPosition.top-i.startDragPosition.top);var r=i.currentDragPosition&&Object.assign({},i.currentDragPosition);n===D.End?t.value&&t.value.onDragEnd&&i&&t.value.onDragEnd(o,r,e):n===D.Start?t.value&&t.value.onDragStart&&i&&t.value.onDragStart(o,r,e):t.value&&t.value.onPositionChange&&i&&t.value.onPositionChange(o,r,e)}function v(){return JSON.parse(o.getAttribute("draggable-state"))||{}}}},V=n("741d"),G=n("abcf"),K=(n("abb2"),G["b"].height),$={name:"KlabTerminal",props:{terminal:{type:Object,required:!0},size:{type:String,validator:function(e){return-1!==c["J"].findIndex(function(t){return t.value===e})}},bgcolor:{type:String,default:""}},directives:{Draggable:U},data:function(){var e=this;return{instance:void 0,zIndex:1e3,draggableConfig:{handle:void 0,onDragEnd:function(){e.instance.focus()}},draggableElement:void 0,commandCounter:0,command:[],hasFocus:!1,selectedSize:null,selectSize:!1,commandsIndex:-1,TERMINAL_SIZE_OPTIONS:c["J"]}},computed:s()({background:function(){return""!==this.bgcolor?this.bgcolor:this.terminal.type===c["K"].DEBUGGER?"#002f74":"#2e0047"}},Object(a["c"])("data",["terminalCommands"])),methods:s()({},Object(a["b"])("data",["removeTerminal","addTerminalCommand","clearTerminalCommands"]),{minimize:function(){this.terminal.active=!1,this.changeDraggablePosition({top:window.innerHeight-55,left:25})},maximize:function(){var e=this;this.changeDraggablePosition(this.draggableConfig.initialPosition),this.terminal.active=!0,this.$nextTick(function(){e.instance.focus()})},closeTerminal:function(){this.sendStompMessage(l["a"].CONSOLE_CLOSED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body),this.instance=null,this.removeTerminal(this.terminal.id)},changeDraggablePosition:function(e){this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var t=JSON.parse(this.draggableConfig.handle.getAttribute("draggable-state"));t.startDragPosition=e,t.currentDragPosition=e,this.draggableConfig.handle.setAttribute("draggable-state",JSON.stringify(t))},commandResponseListener:function(e){e&&e.payload&&e.consoleId===this.terminal.id&&(this.instance.write("\b \b\b \b".concat(e.payload.replaceAll("\n","\r\n"))),this.instance.prompt())},onFocusListener:function(e){this.hasFocus=this.terminal.id===e},sizeSelected:function(){var e=W()(regeneratorRuntime.mark(function e(t,n){var i,o=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:i=c["J"].find(function(e){return e.value===o.selectedSize}),this.instance.resize(i.cols,i.rows),n&&V["a"].set(c["P"].COOKIE_TERMINAL_SIZE,this.selectedSize,{expires:30,path:"/",secure:!0});case 5:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),onOk:function(){},deleteHistory:function(){this.clearTerminalCommands()}}),created:function(){this.sendStompMessage(l["a"].CONSOLE_CREATED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body)},mounted:function(){var e,t=this;e=this.size?this.size:V["a"].has(c["P"].COOKIE_TERMINAL_SIZE)?V["a"].get(c["P"].COOKIE_TERMINAL_SIZE):c["J"][0].value;var n=c["J"].find(function(t){return t.value===e});this.selectedSize=n.value,this.instance=new F["Terminal"]({cols:n.cols,rows:n.rows,cursorBlink:!0,bellStyle:"both",theme:{background:this.background}}),this.instance.prompt=function(){t.instance.write("\r\n$ ")},this.instance.open(document.getElementById("kterm-".concat(this.terminal.id))),this.instance.writeln("".concat(this.$t("messages.terminalHello",{type:this.terminal.type})," / ").concat(this.terminal.id)),this.instance.prompt(),this.instance.onData(function(e){var n=function(){for(var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=0;i0){var o=t.command.join("");t.sendStompMessage(l["a"].COMMAND_REQUEST({consoleId:t.terminal.id,consoleType:t.terminal.type,commandId:"".concat(t.terminal.id,"-").concat(++t.commandCounter),payload:o},t.$store.state.data.session).body),t.addTerminalCommand(o)}t.command.splice(0,t.command.length),t.commandsIndex=-1,t.instance.prompt();break;case"":i>2&&t.instance.write("\b \b"),t.command.length>0&&t.command.pop();break;case"":t.terminalCommands.length>0&&t.commandsIndex0&&t.commandsIndex>0?n(t.terminalCommands[--t.commandsIndex]):(n(),t.commandsIndex=-1);break;case"":break;case"":break;default:t.command.push(e),t.instance.write(e)}}),this.instance.textarea.addEventListener("focus",function(){t.$eventBus.$emit(c["h"].TERMINAL_FOCUSED,t.terminal.id)}),this.draggableConfig.handle=document.getElementById("kterm-handle-".concat(this.terminal.id)),this.draggableElement=document.getElementById("kterm-container-".concat(this.terminal.id)),this.draggableConfig.initialPosition={top:window.innerHeight-K(this.draggableElement)-25,left:25},this.instance.focus(),this.$eventBus.$on(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$on(c["h"].COMMAND_RESPONSE,this.commandResponseListener)},beforeDestroy:function(){null!==this.instance&&this.closeTerminal(),this.$eventBus.$off(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$off(c["h"].COMMAND_RESPONSE,this.commandResponseListener)}},Y=$,J=(n("23a0"),Object(y["a"])(Y,N,I,!1,null,null,null));J.options.__file="KlabTerminal.vue";var Q=J.exports,Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.activeDialog?n("q-modal",{attrs:{"content-classes":"kaa-container"},model:{value:e.hasActiveDialogs,callback:function(t){e.hasActiveDialogs=t},expression:"hasActiveDialogs"}},[n("div",{staticClass:"kaa-content",domProps:{innerHTML:e._s(e.activeDialog.content)}}),n("div",{staticClass:"kaa-button"},[n("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appOK")},on:{click:function(t){e.dialogAction(e.activeDialog,!0)}}}),e.activeDialog.type===e.APPS_COMPONENTS.CONFIRM?n("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appCancel")},on:{click:function(t){e.dialogAction(e.activeDialog,!1)}}}):e._e()],1)]):e._e()},ee=[];Z._withStripped=!0;var te={name:"AppDialogViewer",data:function(){return{activeDialog:null,APPS_COMPONENTS:c["a"]}},computed:s()({},Object(a["c"])("view",["layout","activeDialogs"]),{hasActiveDialogs:{get:function(){return this.activeDialogs.length>0},set:function(){}}}),methods:{setActiveDialog:function(){var e=this;this.activeDialogs.length>0?this.activeDialog=this.activeDialogs[this.activeDialogs.length-1]:this.$nextTick(function(){e.activeDialog=null})},dialogAction:function(e,t){this.activeDialog.dismiss=!0,e.type===c["a"].CONFIRM&&this.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}},watch:{activeDialogs:function(){this.setActiveDialog()}},mounted:function(){this.setActiveDialog()}},ne=te,ie=(n("715d"),Object(y["a"])(ne,Z,ee,!1,null,null,null));ie.options.__file="AppDialogsViewer.vue";var oe=ie.exports,re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kapp-layout-container",class:{"kapp-main":e.isRootLayout},style:e.modalDimensions,attrs:{view:"hhh lpr fFf",id:"kapp-"+e.idSuffix}},[!e.isModal&&e.hasHeader?n("q-layout-header",{staticClass:"kapp-header-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{id:"kapp-"+e.idSuffix+"-header"}},[e.layout.header?n("klab-app-viewer",{staticClass:"kapp-header",attrs:{component:e.layout.header,direction:"horizontal"}}):n("div",{staticClass:"kapp-header row"},[n("div",{staticClass:"kapp-logo-container"},[n("img",{ref:"kapp-logo",staticClass:"kapp-logo",attrs:{id:"kapp-"+e.idSuffix+"-logo",src:e.logoImage}})]),n("div",{staticClass:"kapp-title-container"},[e.layout.label?n("div",{staticClass:"kapp-title"},[e._v(e._s(e.layout.label)),e.layout.versionString?n("span",{staticClass:"kapp-version"},[e._v(e._s(e.layout.versionString))]):e._e()]):e._e(),e.layout.description?n("div",{staticClass:"kapp-subtitle"},[e._v(e._s(e.layout.description))]):e._e()]),e.layout.menu&&e.layout.menu.length>0?n("div",{staticClass:"kapp-header-menu-container"},e._l(e.layout.menu,function(t){return n("div",{key:t.id,staticClass:"kapp-header-menu-item klab-link",on:{click:function(n){e.clickOnMenu(t.id,t.url)}}},[e._v(e._s(t.text)),t.url?n("span",{staticClass:"klab-external-link"},[e._v("🡥")]):e._e()])})):e._e(),n("div",{staticClass:"kapp-actions-container row items-end justify-end"},[n("main-actions-buttons",{staticClass:"col items-end",attrs:{"is-header":!0}})],1)])],1):e._e(),e.showLeftPanel?n("q-layout-drawer",{staticClass:"kapp-left-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"left","content-class":"kapp-left-inner-container",width:e.leftPanelWidth},model:{value:e.showLeftPanel,callback:function(t){e.showLeftPanel=t},expression:"showLeftPanel"}},[e.leftPanel?[n("klab-app-viewer",{staticClass:"kapp-left-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-left-0",component:e.layout.leftPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),e.showRightPanel?n("q-layout-drawer",{staticClass:"kapp-right-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"right","content-class":"kapp-right-inner-container",width:e.rightPanelWidth},model:{value:e.showRightPanel,callback:function(t){e.showRightPanel=t},expression:"showRightPanel"}},[e.rightPanel?[n("klab-app-viewer",{staticClass:"kapp-right-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-right-0",component:e.layout.rightPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),n("q-page-container",[e.layout&&0!==e.layout.panels.length?[n("klab-app-viewer",{staticClass:"kapp-main-container kapp-container print-hide",attrs:{id:"kapp-"+e.idSuffix+"-main-0",mainPanelStyle:e.mainPanelStyle,component:e.layout.panels[0]}})]:n("k-explorer",{staticClass:"kapp-main-container is-kexplorer",attrs:{id:"kapp-"+e.idSuffix+"-main",mainPanelStyle:e.mainPanelStyle}})],2),n("q-resize-observable",{on:{resize:function(t){e.updateLayout()}}}),n("q-modal",{staticClass:"kapp-modal",attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["absolute-center","kapp-loading"]},model:{value:e.blockApp,callback:function(t){e.blockApp=t},expression:"blockApp"}},[n("q-spinner",{attrs:{color:"app-main-color",size:"3em"}})],1)],1)},se=[];re._withStripped=!0;n("6762"),n("2fdb"),n("4917"),n("5df3"),n("1c4c");var ae=n("50fb"),ce=n.n(ae),le=n("84a2"),ue=n.n(le),de=n("6dd8"),he=n("0312"),pe=n.n(he);function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"y";if(this.isEnabled[i]||this.options.forceVisible){"x"===i?(e=this.scrollbarX,t=this.contentSizeX,n=this.trackXSize):(e=this.scrollbarY,t=this.contentSizeY,n=this.trackYSize);var o=n/t;this.handleSize[i]=Math.max(~~(o*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(this.handleSize[i]=Math.min(this.handleSize[i],this.options.scrollbarMaxSize)),"x"===i?e.style.width="".concat(this.handleSize[i],"px"):e.style.height="".concat(this.handleSize[i],"px")}}},{key:"positionScrollbar",value:function(){var e,t,n,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";"x"===o?(e=this.scrollbarX,t=this.contentEl[this.scrollOffsetAttr[o]],n=this.contentSizeX,i=this.trackXSize):(e=this.scrollbarY,t=this.scrollContentEl[this.scrollOffsetAttr[o]],n=this.contentSizeY,i=this.trackYSize);var r=t/(n-i),s=~~((i-this.handleSize[o])*r);(this.isEnabled[o]||this.options.forceVisible)&&(e.style.transform="x"===o?"translate3d(".concat(s,"px, 0, 0)"):"translate3d(0, ".concat(s,"px, 0)"))}},{key:"toggleTrackVisibility",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t="y"===e?this.trackY:this.trackX,n="y"===e?this.scrollbarY:this.scrollbarX;this.isEnabled[e]||this.options.forceVisible?t.style.visibility="visible":t.style.visibility="hidden",this.options.forceVisible&&(this.isEnabled[e]?n.style.visibility="visible":n.style.visibility="hidden")}},{key:"hideNativeScrollbar",value:function(){this.scrollbarWidth=ce()(),this.scrollContentEl.style[this.isRtl?"paddingLeft":"paddingRight"]="".concat(this.scrollbarWidth||this.offsetSize,"px"),this.scrollContentEl.style.marginBottom="-".concat(2*this.scrollbarWidth||this.offsetSize,"px"),this.contentEl.style.paddingBottom="".concat(this.scrollbarWidth||this.offsetSize,"px"),0!==this.scrollbarWidth&&(this.contentEl.style[this.isRtl?"marginLeft":"marginRight"]="-".concat(this.scrollbarWidth,"px"))}},{key:"showScrollbar",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.isVisible[t]||(e="x"===t?this.scrollbarX:this.scrollbarY,this.isEnabled[t]&&(e.classList.add("visible"),this.isVisible[t]=!0),this.options.autoHide&&(window.clearInterval(this.flashTimeout),this.flashTimeout=window.setInterval(this.hideScrollbars,this.options.timeout)))}},{key:"onDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";e.preventDefault();var n="y"===t?this.scrollbarY:this.scrollbarX,i="y"===t?e.pageY:e.pageX;this.dragOffset[t]=i-n.getBoundingClientRect()[this.offsetAttr[t]],this.currentAxis=t,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";return"y"===e?this.scrollContentEl:this.contentEl}},{key:"getContentElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),this.scrollContentEl.removeEventListener("scroll",this.onScrollY),this.contentEl.removeEventListener("scroll",this.onScrollX),this.mutationObserver.disconnect(),this.resizeObserver.disconnect()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(e){return null!==e&&(e===this.el||this.isChildNode(e.parentNode))}},{key:"isWithinBounds",value:function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height}}],[{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!==typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(t){t.forEach(function(t){Array.from(t.addedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!t.SimpleBar&&new e(t,e.getElOptions(t)):Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){!t.SimpleBar&&new e(t,e.getElOptions(t))}))}),Array.from(t.removedNodes).forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?e.SimpleBar&&e.SimpleBar.unMount():Array.from(e.querySelectorAll("[data-simplebar]")).forEach(function(e){e.SimpleBar&&e.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(e){var t=Array.from(e.attributes).reduce(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var i=n[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":e[i]=!0;break;case"false":e[i]=!1;break;case void 0:e[i]=!0;break;default:e[i]=t.value}}return e},{});return t}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar||new e(t,e.getElOptions(t))})}},{key:"defaultOptions",get:function(){return{autoHide:!0,forceVisible:!1,classNames:{content:"simplebar-content",scrollContent:"simplebar-scroll-content",scrollbar:"simplebar-scrollbar",track:"simplebar-track"},scrollbarMinSize:25,scrollbarMaxSize:0,direction:"ltr",timeout:1e3}}}]),e}();pe.a&&ve.initHtmlApi();var be=ve,ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kexplorer-main-container print-hide",style:{width:e.mainPanelStyle.width+"px",height:e.mainPanelStyle.height+"px"},attrs:{view:"hHh lpr fFf",container:""}},[n("q-layout-drawer",{attrs:{side:"left",overlay:!1,breakpoint:0,width:e.leftMenuState===e.LEFTMENU_CONSTANTS.LEFTMENU_MAXIMIZED?e.LEFTMENU_CONSTANTS.LEFTMENU_MAXSIZE:e.LEFTMENU_CONSTANTS.LEFTMENU_MINSIZE,"content-class":["klab-left","no-scroll",e.largeMode?"klab-large-mode":""]},model:{value:e.leftMenuVisible,callback:function(t){e.leftMenuVisible=t},expression:"leftMenuVisible"}},[n("klab-left-menu")],1),n("q-page-container",[n("q-page",{staticClass:"column"},[n("div",{staticClass:"col row full-height kexplorer-container",class:{"kd-is-app":null!==e.layout}},[n("keep-alive",[n(e.mainViewer.name,{tag:"component",attrs:{"container-style":{width:e.mainPanelStyle.width-e.leftMenuWidth,height:e.mainPanelStyle.height}}})],1),n("q-resize-observable",{on:{resize:e.setChildrenToAskFor}})],1),n("div",{staticClass:"col-1 row"},[e.logVisible?n("klab-log"):e._e()],1),n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[e.mainViewer.mainControl?n("klab-main-control",{directives:[{name:"show",rawName:"v-show",value:e.isTreeVisible,expression:"isTreeVisible"}]}):e._e()],1),n("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForUndocking&&!e.mainViewer.mainControl?n("div",{staticClass:"kexplorer-undocking full-height full-width"}):e._e()]),e.isMainControlDocked?e._e():n("observation-time"),n("input-request-modal"),n("scale-change-dialog")],1)],1)],1)},_e=[];ye._withStripped=!0;var Me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isDrawMode,expression:"!isDrawMode"}],ref:"main-control-container",staticClass:"mc-container print-hide small"},[n("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isHidden,expression:"isHidden"}],staticClass:"spinner-lonely-div klab-spinner-div",style:{left:e.defaultLeft+"px",top:e.defaultTop+"px","border-color":e.hasTasks()?e.spinnerColor.color:"rgba(0,0,0,0)"}},[n("klab-spinner",{staticClass:"spinner-lonely",attrs:{"store-controlled":!0,size:40,ball:22,wrapperId:"spinner-lonely-div"},nativeOn:{dblclick:function(t){return e.show(t)},touchstart:function(t){e.handleTouch(t,null,e.show)}}})],1)]),n("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[n("q-card",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"},{name:"show",rawName:"v-show",value:!e.isHidden,expression:"!isHidden"}],staticClass:"mc-q-card no-box-shadow absolute lot-of-flow",class:[e.hasContext?"with-context":"bg-transparent without-context","mc-large-mode-"+e.largeMode],style:e.qCardStyle,attrs:{draggable:"false",flat:!0},nativeOn:{contextmenu:function(e){e.preventDefault()}}},[n("q-card-title",{ref:"mc-draggable",staticClass:"mc-q-card-title q-pa-xs",class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":".2")},attrs:{ondragstart:"return false;"},nativeOn:{mousedown:function(t){e.moved=!1},mousemove:function(t){e.moved=!0},mouseup:function(t){return e.focusSearch(t)}}},[n("klab-search-bar",{ref:"klab-search-bar"}),n("klab-breadcrumbs",{attrs:{slot:"subtitle"},slot:"subtitle"})],1),n("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden&&!e.hasHeader&&null===e.layout,expression:"hasContext && !isHidden && !hasHeader && layout === null"}],staticClass:"context-actions no-margin"},[n("div",{staticClass:"mc-tabs"},[n("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-log-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-log-pane"}}},[n("q-icon",{attrs:{name:"mdi-console"}},[n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.showLogPane")))])],1)],1),n("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-tree-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-tree-pane"}}},[n("q-icon",{attrs:{name:"mdi-folder-image"}},[n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.treePane")))])],1)],1)]),n("main-actions-buttons",{attrs:{orientation:"horizontal","separator-class":"mc-separator"}}),n("scale-buttons",{attrs:{docked:!1}}),n("div",{staticClass:"mc-separator",staticStyle:{right:"35px"}}),n("stop-actions-buttons")],1),n("q-card-main",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"no-margin relative-position",attrs:{draggable:"false"}},[n("keep-alive",[n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[n(e.selectedTab,{tag:"component"})],1)],1)],1),n("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"kmc-bottom-actions"},[n("div",{staticClass:"klab-button klab-action"},[n("q-icon",{attrs:{name:"mdi-terrain"}}),n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.scenarios")))])],1),n("div",{staticClass:"klab-button klab-action"},[n("q-icon",{attrs:{name:"mdi-human-male-female"}}),n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.observers")))])],1),e.contextHasTime?n("observations-timeline",{staticClass:"mc-timeline"}):e._e()],1)],1)],1),n("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForDocking?n("div",{staticClass:"mc-docking full-height",style:{width:e.leftMenuMaximized}}):e._e()])],1)},we=[];Me._withStripped=!0;var Ce=n("1fe0"),Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-actions",class:e.orientation},[n("div",{staticClass:"klab-main-actions"},["horizontal"!==e.orientation||e.isHeader?n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATA_VIEWER.name}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATA_VIEWER.name&&e.click(e.isMainControlDocked?e.VIEWERS.DOCKED_DATA_VIEWER:e.VIEWERS.DATA_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-folder-image"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.dataViewer")))])],1)],1):e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DOCUMENTATION_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&(!e.hasContext||!e.hasObservations)}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&e.hasContext&&e.hasObservations&&e.click(e.VIEWERS.DOCUMENTATION_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-text-box-multiple-outline"}},[e.reloadViews.length>0?n("span",{staticClass:"klab-button-notification"}):e._e(),n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.hasObservations?e.$t("tooltips.documentationViewer"):e.$t("tooltips.noDocumentation")))])],1)],1),n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATAFLOW_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&!e.hasContext}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.click(e.VIEWERS.DATAFLOW_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-sitemap"}},[e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.flowchartsUpdatable?n("span",{staticClass:"klab-button-notification"}):e._e(),n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.flowchartsUpdatable?e.$t("tooltips.dataflowViewer"):e.$t("tooltips.noDataflow")))])],1)],1)])])},Ae=[];Se._withStripped=!0;var Ee={name:"MainActionsButtons",props:{orientation:{type:String,default:"horizontal"},separatorClass:{type:String,default:""},isHeader:{type:Boolean,default:!1}},data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasObservations","flowchartsUpdatable","hasContext"]),Object(a["c"])("view",["spinnerColor","mainViewerName","statusTextsString","statusTextsLength","isMainControlDocked","reloadViews"])),methods:s()({},Object(a["b"])("view",["setMainViewer"]),{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},click:function(e){var t=this;this.setMainViewer(e),this.$nextTick(function(){t.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout"})})}}),created:function(){this.VIEWERS=c["M"]}},Oe=Ee,Le=(n("6208"),Object(y["a"])(Oe,Se,Ae,!1,null,null,null));Le.options.__file="MainActionsButtons.vue";var Te=Le.exports,xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-destructive-actions"},[e.hasContext&&!e.hasTasks(e.contextId)?n("div",{staticClass:"klab-button klab-reset-context",on:{click:e.resetContext}},[n("q-icon",{attrs:{name:"mdi-close-circle-outline"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.resetContext")))])],1)],1):e._e(),e.hasContext&&e.hasTasks(e.contextId)?n("div",{staticClass:"klab-button klab-interrupt-task",on:{click:e.interruptTask}},[n("q-icon",{attrs:{name:"mdi-stop-circle-outline"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.interruptTask",{taskDescription:e.lastActiveTaskText})))])],1)],1):e._e()])},Re=[];xe._withStripped=!0;var ke={computed:s()({},Object(a["c"])("data",["hasContext","contextId","session"])),methods:s()({},Object(a["b"])("data",["loadContext","setWaitinForReset"]),Object(a["b"])("view",["setSpinner"]),{loadOrReloadContext:function(e,t){null!==e&&this.setSpinner(s()({},c["H"].SPINNER_LOADING,{owner:e})),this.hasContext?(this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body),null!==e?this.setWaitinForReset(e):"function"===typeof t&&this.callbackIfNothing()):this.loadContext(e)}})},ze={name:"StopActionsButtons",mixins:[ke],data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasContext","contextId","previousContext"]),Object(a["c"])("stomp",["hasTasks","lastActiveTask"]),{lastActiveTaskText:function(){var e=null===this.lastActiveTask(this.contextId)?"":this.lastActiveTask(this.contextId).description;return e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)?e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation")):e}}),methods:{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},resetContext:function(){this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body)},interruptTask:function(){var e=this.lastActiveTask(this.contextId);null!==e&&e.alive&&this.sendStompMessage(l["a"].TASK_INTERRUPTED({taskId:e.id},this.$store.state.data.session).body)}}},Pe=ze,Ne=(n("c31b"),Object(y["a"])(Pe,xe,Re,!1,null,null,null));Ne.options.__file="StopActionsButtons.vue";var Ie=Ne.exports,De=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.hasContext?"with-context":"without-context",e.isDocked?"ksb-docked":""],style:{width:e.isDocked&&e.searchIsFocused&&e.largeMode?e.getLargeModeWidth():"100%"},attrs:{id:"ksb-container"}},[e.isDocked?e._e():n("div",{staticClass:"klab-spinner-div",attrs:{id:"ksb-spinner"}},[n("klab-spinner",{style:{"box-shadow":e.searchIsFocused?"0px 0px 3px "+e.getBGColor(".4"):"none"},attrs:{"store-controlled":!0,color:e.spinnerColor.hex,size:40,ball:22,wrapperId:"ksb-spinner",id:"spinner-searchbar"},nativeOn:{dblclick:function(t){return e.emitSpinnerDoubleclick(t)},touchstart:function(t){t.stopPropagation(),e.handleTouch(t,e.showSuggestions,e.emitSpinnerDoubleclick)}}})],1),n("div",{class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.isDocked?e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":e.isDocked?"1.0":".2"):"rgba(0,0,0,0)"},attrs:{id:"ksb-search-container"}},[e.searchIsActive?n("klab-search",{ref:"klab-search",staticClass:"klab-search",on:{"busy-search":e.busySearch}}):n("div",{staticClass:"ksb-context-text text-white"},[n("scrolling-text",{ref:"st-context-text",attrs:{"with-edge":!0,"hover-active":!0,"initial-text":null===e.mainContextLabel?e.$t("label.noContextPlaceholder"):e.mainContextLabel,"placeholder-style":!e.hasContext}})],1),n("div",{ref:"ksb-status-texts",staticClass:"ksb-status-texts"},[n("scrolling-text",{ref:"st-status-text",attrs:{"with-edge":!0,edgeOpacity:e.hasContext?1:e.searchIsFocused?.8:.2,hoverActive:!1,initialText:e.statusTextsString,accentuate:!0}})],1),e.isScaleLocked["space"]&&!e.hasContext?n("q-icon",{attrs:{name:"mdi-lock-outline"}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[10,5],delay:500}},[e._v(e._s(e.$t("label.scaleLocked",{type:e.$t("label.spaceScale")})))])],1):e._e(),n("main-control-menu")],1)])},Be=[];De._withStripped=!0;var qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"ks-container",attrs:{id:"ks-container"}},[n("div",{staticStyle:{position:"relative"},attrs:{id:"ks-internal-container"}},[e._l(e.acceptedTokens,function(t,i){return n("div",{key:t.index,ref:"token-"+t.index,refInFor:!0,class:["ks-tokens-accepted","ks-tokens","bg-semantic-elements",t.selected?"selected":"","text-"+t.leftColor],style:{"border-color":t.selected?t.rgb:"transparent"},attrs:{tabindex:i},on:{focus:function(n){e.onTokenFocus(t,n)},blur:function(n){e.onTokenFocus(t,n)},keydown:e.onKeyPressedOnToken,touchstart:function(t){e.handleTouch(t,null,e.deleteLastToken)}}},[e._v(e._s(t.value)+"\n "),n("q-tooltip",{attrs:{delay:500,offset:[0,15],self:"top left",anchor:"bottom left"}},[t.sublabel.length>0?n("span",[e._v(e._s(t.sublabel))]):n("span",[e._v(e._s(e.$t("label.noTokenDescription")))])])],1)}),n("div",{staticClass:"ks-tokens",class:[e.fuzzyMode?"ks-tokens-fuzzy":"ks-tokens-klab"]},[n("q-input",{ref:"ks-search-input",class:[e.fuzzyMode?"ks-fuzzy":"",e.searchIsFocused?"ks-search-focused":""],attrs:{autofocus:!0,placeholder:e.fuzzyMode?e.$t("label.fuzzySearchPlaceholder"):e.$t("label.searchPlaceholder"),size:"20",id:"ks-search-input",tabindex:e.acceptedTokens.length,"hide-underline":!0},on:{focus:function(t){e.onInputFocus(!0)},blur:function(t){e.onInputFocus(!1)},keydown:e.onKeyPressedOnSearchInput,keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,"Escape"))return null;e.searchEnd({})}},nativeOn:{contextmenu:function(e){e.preventDefault()},touchstart:function(t){e.handleTouch(t,null,e.searchInKLab)}},model:{value:e.actualToken,callback:function(t){e.actualToken=t},expression:"actualToken"}},[n("klab-autocomplete",{ref:"ks-autocomplete",class:[e.notChrome()?"not-chrome":""],attrs:{debounce:400,"min-characters":e.minimumCharForAutocomplete,"max-results":50,id:"ks-autocomplete"},on:{search:e.autocompleteSearch,selected:e.selected,show:e.onAutocompleteShow,hide:e.onAutocompleteHide}})],1)],1)],2)])},je=[];qe._withStripped=!0;n("386d");var We=n("278c"),Fe=n.n(We),He=n("2b0e"),Xe=n("b0b2"),Ue=n("b12a"),Ve=n("7ea0"),Ge=n("b5b8"),Ke=n("1180"),$e=n("68c2"),Ye=n("506f"),Je=n("b8d9"),Qe=n("52b5"),Ze=n("03d8"),et={name:"QItemSide",props:{right:Boolean,icon:String,letter:{type:String,validator:function(e){return 1===e.length}},inverted:Boolean,avatar:String,image:String,stamp:String,color:String,textColor:String,tooltip:{type:Object,default:null}},computed:{type:function(){var e=this;return["icon","image","avatar","letter","stamp"].find(function(t){return e[t]})},classes:function(){var e=["q-item-side-".concat(this.right?"right":"left")];return!this.color||this.icon||this.letter||e.push("text-".concat(this.color)),e},typeClasses:function(){var e=["q-item-".concat(this.type)];return this.color&&(this.inverted&&(this.icon||this.letter)?e.push("bg-".concat(this.color)):this.textColor||e.push("text-".concat(this.color))),this.textColor&&e.push("text-".concat(this.textColor)),this.inverted&&(this.icon||this.letter)&&(e.push("q-item-inverted"),e.push("flex"),e.push("flex-center")),e},imagePath:function(){return this.image||this.avatar}},render:function(e){var t;return this.type&&(this.icon?(t=e(Qe["a"],{class:this.inverted?null:this.typeClasses,props:{name:this.icon,tooltip:this.tooltip}}),this.inverted&&(t=e("div",{class:this.typeClasses},[t]))):t=this.imagePath?e("img",{class:this.typeClasses,attrs:{src:this.imagePath}}):e("div",{class:this.typeClasses},[this.stamp||this.letter])),e("div",{staticClass:"q-item-side q-item-section",class:this.classes},[null!==this.tooltip?e(Ze["a"],{ref:"tooltip",class:"kl-model-desc-container",props:{offset:[25,0],anchor:"top right",self:"top left"}},[e("div",{class:["kl-model-desc","kl-model-desc-title"]},this.tooltip.title),e("div",{class:["kl-model-desc","kl-model-desc-state","bg-state-".concat(this.tooltip.state)]},this.tooltip.state),e("div",{class:["kl-model-desc","kl-model-desc-content"]},this.tooltip.content)]):null,t,this.$slots.default])}};function tt(e,t,n,i,o,r){var s={props:{right:r.right}};if(i&&o)e.push(t(n,s,i));else{var a=!1;for(var c in r)if(r.hasOwnProperty(c)&&(a=r[c],void 0!==a&&!0!==a)){e.push(t(n,{props:r}));break}i&&e.push(t(n,s,i))}}var nt={name:"QItemWrapper",props:{cfg:{type:Object,default:function(){return{}}},slotReplace:Boolean},render:function(e){var t=this.cfg,n=this.slotReplace,i=[];return tt(i,e,et,this.$slots.left,n,{icon:t.icon,color:t.leftColor,avatar:t.avatar,letter:t.letter,image:t.image,inverted:t.leftInverted,textColor:t.leftTextColor,tooltip:t.leftTooltip}),tt(i,e,Je["a"],this.$slots.main,n,{label:t.label,sublabel:t.sublabel,labelLines:t.labelLines,sublabelLines:t.sublabelLines,inset:t.inset}),tt(i,e,et,this.$slots.right,n,{right:!0,icon:t.rightIcon,color:t.rightColor,avatar:t.rightAvatar,letter:t.rightLetter,image:t.rightImage,stamp:t.stamp,inverted:t.rightInverted,textColor:t.rightTextColor,tooltip:t.rightTooltip}),i.push(this.$slots.default),e(Ye["a"],{attrs:this.$attrs,on:this.$listeners,props:t},i)}},it=G["b"].width,ot={name:"KlabQAutocomplete",extends:Ve["a"],methods:{trigger:function(e){var t=this;if(this.__input&&this.__input.isEditable()&&this.__input.hasFocus()&&this.isWorking()){var n=[null,void 0].includes(this.__input.val)?"":String(this.__input.val),i=n.length,o=Object($e["a"])(),r=this.$refs.popover;if(this.searchId=o,i0)return this.searchId="",this.__clearSearch(),void this.hide();if(this.width=it(this.inputEl)+"px",this.staticData)return this.searchId="",this.results=this.filter(n,this.staticData),this.results.length?void this.__showResults():void r.hide();this.$emit("search",n,function(e){if(t.isWorking()&&t.searchId===o){if(t.__clearSearch(),Array.isArray(e)&&e.length>0)return t.results=e,void t.__showResults();t.hide()}})}}},render:function(e){var t=this,n=this.__input.isDark();return e(Ge["a"],{ref:"popover",class:n?"bg-dark":null,props:{fit:!0,keepOnScreen:!0,anchorClick:!1,maxHeight:this.maxHeight,noFocus:!0,noRefocus:!0},on:{show:function(){t.__input.selectionOpen=!0,t.$emit("show")},hide:function(){t.__input.selectionOpen=!1,t.$emit("hide")}},nativeOn:{mousedown:function(e){e.preventDefault()}}},[e(Ke["a"],{props:{dark:n,noBorder:!0,separator:this.separator},style:this.computedWidth},this.computedResults.map(function(n,i){return e(nt,{key:n.id||i,class:{"q-select-highlight":t.keyboardIndex===i,"cursor-pointer":!n.disable,"text-faded":n.disable,"ka-separator":n.separator},props:{cfg:n},nativeOn:{mousedown:function(e){!n.disable&&(t.keyboardIndex=i),e.preventDefault()},click:function(){!n.disable&&t.setValue(n)}}})}))])}},rt={data:function(){return{doubleTouchTimeout:null}},methods:{handleTouch:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:300;window.TouchEvent&&e instanceof TouchEvent&&(1===e.targetTouches.length?null===this.doubleTouchTimeout?this.doubleTouchTimeout=setTimeout(function(){t.doubleTouchTimeout=null,null!==n&&n(e)},r):(clearTimeout(this.doubleTouchTimeout),this.doubleTouchTimeout=null,null!==i&&i()):null!==o&&o(e))}}},st="=(<)>",at={name:"KlabSearch",components:{KlabAutocomplete:ot},mixins:[rt],props:{maxResults:{type:Number,default:-1}},data:function(){return{searchContextId:null,searchRequestId:0,doneFunc:null,result:null,acceptedTokens:[],actualToken:"",actualSearchString:"",noSearch:!1,searchDiv:null,searchDivInitialSize:void 0,searchDivInternal:void 0,searchInput:null,autocompleteEl:null,scrolled:0,suggestionShowed:!1,searchTimeout:null,searchHistoryIndex:-1,autocompleteSB:null,freeText:!1,parenthesisDepth:0,last:!1,minimumCharForAutocomplete:2}},computed:s()({},Object(a["c"])("data",["searchResult","contextId","isCrossingIDL"]),Object(a["c"])("view",["spinner","searchIsFocused","searchLostChar","searchInApp","searchHistory","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{inputSearchColor:{get:function(){return this.searchInput?this.searchInput.$refs.input.style.color:"black"},set:function(e){this.searchInput.$refs.input&&(this.searchInput.$refs.input.style.color=e)}}}),methods:s()({},Object(a["b"])("data",["setContextCustomLabel"]),Object(a["b"])("view",["searchStop","setSpinner","searchFocus","resetSearchLostChar","storePreviousSearch","setFuzzyMode","setLargeMode"]),{notChrome:function(){return-1===navigator.userAgent.indexOf("Chrome")},onTokenFocus:function(e,t){e.selected="focus"===t.type},onInputFocus:function(e){this.searchFocus({focused:e}),this.actualToken=this.actualSearchString},onAutocompleteShow:function(){this.suggestionShowed=!0},onAutocompleteHide:function(){this.suggestionShowed=!1,this.actualToken!==this.actualSearchString&&(this.noSearch=!0,this.resetSearchInput())},onKeyPressedOnToken:function(e){var t=this;if(37===e.keyCode||39===e.keyCode){e.preventDefault();var n=this.acceptedTokens.findIndex(function(e){return e.selected}),i=null,o=!1;if(37===e.keyCode&&n>0?i="token-".concat(this.acceptedTokens[n-1].index):39===e.keyCode&&n=s&&(n=s)}else{var a=o?r.$el:r,c=(o?a.offsetLeft:r.offsetLeft)+i+a.offsetWidth,l=t.searchDiv.offsetWidth+t.searchDiv.scrollLeft;l<=c&&(n=t.searchDiv.scrollLeft+(c-l)-i)}null!==n&&He["a"].nextTick(function(){t.searchDiv.scrollLeft=n})})}}},onKeyPressedOnSearchInput:function(e){var t=this;if(this.noSearch=!1,this.last)return e.preventDefault(),void this.$q.notify({message:this.$t("messages.lastTermAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});switch(e.keyCode){case 8:if(""===this.actualToken&&0!==this.acceptedTokens.length){var n=this.acceptedTokens.pop();this.searchHistoryIndex=-1,e.preventDefault(),this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:n.matchIndex,matchId:n.id,added:!1},this.$store.state.data.session).body),this.freeText=this.acceptedTokens.length>0&&this.acceptedTokens[this.acceptedTokens.length-1].nextTokenClass!==c["v"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){t.checkLargeMode(!1)})}else""!==this.actualSearchString?(e.preventDefault(),this.actualSearchString=this.actualSearchString.slice(0,-1),""===this.actualSearchString&&this.setFuzzyMode(!1)):""===this.actualSearchString&&""!==this.actualToken&&(this.actualToken="",e.preventDefault());break;case 9:this.suggestionShowed&&-1!==this.autocompleteEl.keyboardIndex?(this.autocompleteEl.setValue(this.autocompleteEl.results[this.autocompleteEl.keyboardIndex]),this.searchHistoryIndex=-1):this.freeText&&this.acceptText(),e.preventDefault();break;case 13:this.freeText||this.fuzzyMode?this.acceptText():this.searchInKLab(e);break;case 27:this.suggestionShowed?this.autocompleteEl.hide():this.searchEnd({noStore:!0}),e.preventDefault();break;case 32:if(e.preventDefault(),this.fuzzyMode)this.searchHistoryIndex=-1,this.actualSearchString+=e.key;else if(this.freeText)this.acceptFreeText();else if(this.suggestionShowed){var i=-1===this.autocompleteEl.keyboardIndex?0:this.autocompleteEl.keyboardIndex,o=this.autocompleteEl.results[i];o.separator||(this.autocompleteEl.setValue(o),this.searchHistoryIndex=-1)}else this.askForSuggestion()||this.$q.notify({message:this.$t("messages.noSpaceAllowedInSearch"),type:"warning",icon:"mdi-alert",timeout:1500});break;case 37:if(!this.suggestionShowed&&0===this.searchInput.$refs.input.selectionStart&&this.acceptedTokens.length>0){var r=this.acceptedTokens[this.acceptedTokens.length-1];He["a"].nextTick(function(){t.$refs["token-".concat(r.index)][0].focus()}),e.preventDefault()}break;case 38:this.suggestionShowed||this.searchHistoryEvent(1,e);break;case 40:this.suggestionShowed||this.searchHistoryEvent(-1,e);break;default:this.isAcceptedKey(e.key)?")"===e.key&&0===this.parenthesisDepth?e.preventDefault():(e.preventDefault(),0===this.acceptedTokens.length&&0===this.searchInput.$refs.input.selectionStart&&Object(Xe["h"])(e.key)&&this.setFuzzyMode(!0),this.searchHistoryIndex=-1,this.actualSearchString+=e.key,-1!==st.indexOf(e.key)&&this.askForSuggestion(e.key.trim())):39!==e.keyCode&&e.preventDefault();break}},acceptText:function(){var e=this,t=this.actualToken.trim();""===t?this.$q.notify({message:this.$t("messages.emptyFreeTextSearch"),type:"warning",icon:"mdi-alert",timeout:1e3}):this.search(this.actualToken,function(t){t&&t.length>0?e.selected(t[0],!1):e.$q.notify({message:e.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3})})},selected:function(e,t){var n=this;if(t)this.inputSearchColor=e.rgb;else{if(this.acceptedTokens.push(e),this.actualSearchString="",this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!0},this.$store.state.data.session).body),this.fuzzyMode)return void this.$nextTick(function(){n.searchEnd({})});this.freeText=e.nextTokenClass!==c["v"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){n.checkLargeMode(!0)})}},checkLargeMode:function(){var e=this;this.$nextTick(function(){var t;if(e.isDocked)t=e.searchDivInitialSize-e.searchDivInternal.clientWidth,t<0&&0===e.largeMode?e.setLargeMode(1):t>=0&&e.largeMode>0&&e.setLargeMode(0);else if(t=e.searchDiv.clientWidth-e.searchDivInternal.clientWidth,t>=0){var n=Math.floor(t/c["g"].SEARCHBAR_INCREMENT);n>0&&e.largeMode>0&&(n>e.largeMode?e.setLargeMode(0):e.setLargeMode(e.largeMode-n))}else{var i=Math.ceil(Math.abs(t)/c["g"].SEARCHBAR_INCREMENT);e.setLargeMode(e.largeMode+i)}})},autocompleteSearch:function(e,t){this.freeText?t([]):this.search(e,t)},search:function(e,t){var n=this;if(this.noSearch)return this.noSearch=!1,void t([]);this.searchRequestId+=1,this.sendStompMessage(l["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:this.maxResults,cancelSearch:!1,defaultResults:""===e,searchMode:this.fuzzyMode?c["E"].FREETEXT:c["E"].SEMANTIC,queryString:this.actualSearchString},this.$store.state.data.session).body),this.setSpinner(s()({},c["H"].SPINNER_LOADING,{owner:this.$options.name})),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.setSpinner(s()({},c["H"].SPINNER_ERROR,{owner:n.$options.name,errorMessage:n.$t("errors.searchTimeout"),time:n.fuzzyMode?5:2,then:s()({},c["H"].SPINNER_STOPPED)})),n.doneFunc([])},"4000")},searchInKLab:function(){if(!this.suggestionShowed&&!this.fuzzyMode)if(this.parenthesisDepth>0)this.$q.notify({message:this.$t("messages.parenthesisAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});else if(this.isCrossingIDL)this.$q.dialog({title:this.$t("label.IDLAlertTitle"),message:this.$t("messages.IDLAlertText"),color:"mc-red"}).catch(function(){});else{if(this.acceptedTokens.length>0){if(this.engineEventsCount>0)return this.$emit("busy-search"),void this.$q.notify({message:this.$t("messages.resourcesValidating"),type:"warning",icon:"mdi-alert",timeout:2e3});var e=this.acceptedTokens.map(function(e){return e.id}).join(" ");this.sendStompMessage(l["a"].OBSERVATION_REQUEST({urn:e,contextId:this.contextId,searchContextId:null},this.$store.state.data.session).body);var t=this.acceptedTokens.map(function(e){return e.label}).join(" ");this.setContextCustomLabel(this.$t("messages.waitingObservationInit",{observation:t})),this.$q.notify({message:this.$t("label.askForObservation",{urn:t}),type:"info",icon:"mdi-information",timeout:2e3})}else console.info("Nothing to search for");this.searchEnd({})}},searchEnd:function(e){var t=e.noStore,n=void 0!==t&&t,i=e.noDelete,o=void 0!==i&&i;if(!this.suggestionShowed){if(this.acceptedTokens.length>0){if(o)return;n||this.storePreviousSearch({acceptedTokens:this.acceptedTokens.slice(0),searchContextId:this.searchContextId,searchRequestId:this.searchRequestId})}this.searchContextId=null,this.searchRequestId=0,this.doneFunc=null,this.result=null,this.acceptedTokens=[],this.searchHistoryIndex=-1,this.actualSearchString="",this.scrolled=0,this.noSearch=!1,this.freeText=!1,this.setFuzzyMode(!1),this.setLargeMode(0),this.parenthesisDepth=0,this.last=!1,this.searchStop()}},resetSearchInput:function(){var e=this;this.$nextTick(function(){e.actualToken=e.actualSearchString,e.inputSearchColor="black"})},searchHistoryEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(""===this.actualToken&&this.searchHistory.length>0&&(0===this.acceptedTokens.length||this.searchHistoryIndex>=0)&&this.searchHistory.length>0&&(e>0||this.searchHistoryIndex>0)&&this.searchHistoryIndex+e0&&void 0!==arguments[0]?arguments[0]:"";return(""!==t||0===this.acceptedTokens.length)&&0===this.searchInput.$refs.input.selectionStart&&(this.search(t,function(n){e.autocompleteEl.__clearSearch(),Array.isArray(n)&&n.length>0?(e.autocompleteEl.results=n,He["a"].nextTick(function(){e.autocompleteEl.__showResults(),""!==t&&(e.autocompleteEl.keyboardIndex=0)})):e.autocompleteEl.hide()}),!0)},deleteLastToken:function(){if(0!==this.acceptedTokens.length){var e=this.acceptedTokens.pop();this.searchHistoryIndex=-1,this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!1},this.$store.state.data.session).body)}},charReceived:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"ArrowUp"===e?this.searchHistoryEvent(1):"ArrowDown"===e?this.searchHistoryEvent(-1):" "===e?this.askForSuggestion():(Object(Xe["h"])(e)&&this.setFuzzyMode(!0),this.actualSearchString=t?this.actualSearchString+e:e,-1!==st.indexOf(e)&&this.askForSuggestion(e))}}),watch:{actualSearchString:function(){this.resetSearchInput()},searchResult:function(e){var t=this;if(!this.searchInApp){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var n=e.requestId,i=e.contextId;if(null===this.searchContextId)this.searchContextId=i;else if(i!==this.searchContextId)return void console.warn("Something strange was happened: differents search context ids:\n\n actual: ".concat(this.searchContextId," / received: ").concat(i));if(this.searchRequestId===n){var o;null!==this.result&&this.result.requestId===n&&(o=e.matches).push.apply(o,q()(this.result.matches)),this.result=e;var r=this.result,a=r.matches,l=r.error,u=r.errorMessage,d=r.parenthesisDepth,h=r.last;if(this.parenthesisDepth=d,this.last=h,l)this.setSpinner(s()({},c["H"].SPINNER_ERROR,{owner:this.$options.name,errorMessage:u}));else{var p=[];a.forEach(function(e){var n=c["v"][e.matchType];if("undefined"!==typeof n){var i=n;if(null!==e.mainSemanticType){var o=c["F"][e.mainSemanticType];"undefined"!==typeof o&&(i=o)}if("SEPARATOR"===e.matchType)p.push({value:e.name,label:e.name,labelLines:1,rgb:i.rgb,selected:!1,disable:!0,separator:!0});else{var r=e.state?e.state:null,a=null!==r?Object(Ue["m"])(e.state):null;p.push(s()({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:i.symbol,leftInverted:!0,leftColor:i.color,rgb:i.rgb,id:e.id,index:t.acceptedTokens.length+1,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1,nextTokenClass:e.nextTokenClass},null!==a&&{rightIcon:a.icon,rightTextColor:"state-".concat(a.tooltip),rightTooltip:{state:a.tooltip,title:e.name,content:e.extendedDescription||e.description}}))}}else console.warn("Unknown type: ".concat(e.matchType))}),this.fuzzyMode||0!==p.length||this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),this.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:this.$options.name})),He["a"].nextTick(function(){t.doneFunc(p),t.autocompleteEl.keyboardIndex=0})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(n,"\n"))}},acceptedTokens:function(){var e=this;He["a"].nextTick(function(){var t=e.searchDiv.scrollWidth;e.scrolled!==t&&(e.searchDiv.scrollLeft=t,e.scrolled=t)})},searchIsFocused:function(e){e?(this.searchInput.focus(),this.acceptedTokens.forEach(function(e){e.selected=!1})):this.searchInput.blur()},searchLostChar:function(e){null!==e&&""!==e&&(this.charReceived(e,!0),this.resetSearchLostChar())}},beforeMount:function(){this.setFuzzyMode(!1)},mounted:function(){var e=this;this.searchDiv=this.$refs["ks-container"],this.searchDivInternal=document.getElementById("ks-internal-container"),this.searchInput=this.$refs["ks-search-input"],this.autocompleteEl=this.$refs["ks-autocomplete"],null!==this.searchLostChar&&""!==this.searchLostChar?this.charReceived(this.searchLostChar,!1):this.actualSearchString="",this.inputSearchColor="black",this.setLargeMode(0),this.$nextTick(function(){e.searchDivInitialSize=e.searchDiv.clientWidth})},updated:function(){var e=document.querySelectorAll("#ks-autocomplete .q-item-side-right");e.forEach(function(e){e.setAttribute("title","lalala")})},beforeDestroy:function(){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null)}},ct=at,lt=(n("aff7"),Object(y["a"])(ct,qe,je,!1,null,null,null));lt.options.__file="KlabSearch.vue";var ut=lt.exports,dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"st-container",class:{marquee:e.needMarquee<0,"hover-active":e.hoverActive}},[n("div",{ref:"st-text",staticClass:"st-text",class:{"st-accentuate":e.accentuate,"st-placeholder":e.placeholderStyle},style:{left:(e.needMarquee<0?e.needMarquee:0)+"px","animation-duration":e.animationDuration+"s"}},[e._v("\n "+e._s(e.text)+"\n ")]),e.withEdge?n("div",{staticClass:"st-edges",style:{"background-color":e.getBGColor(e.spinnerColor,e.edgeOpacity)}}):e._e()])},ht=[];dt._withStripped=!0;var pt={name:"ScrollingText",props:{hoverActive:{type:Boolean,default:!1},initialText:{type:String,default:""},duration:{type:Number,default:10},accentuate:{type:Boolean,default:!1},edgeOpacity:{type:Number,default:1},withEdge:{type:Boolean,default:!0},placeholderStyle:{type:Boolean,default:!1}},data:function(){return{needMarquee:0,animationDuration:this.duration,text:this.initialText,edgeBgGradient:""}},computed:s()({},Object(a["c"])("view",["spinnerColor"])),methods:{isNeededMarquee:function(){var e=this.$refs["st-text"];return"undefined"===typeof e?0:e.offsetWidth-e.scrollWidth},changeText:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.needMarquee=0,e!==this.text&&(this.text=null===e?"":e,this.$nextTick(function(){null!==n&&(t.animationDuration=n),t.needMarquee=t.isNeededMarquee(t.ref)}))},getBGColor:function(e,t){return"rgba(".concat(e.rgb.r,",").concat(e.rgb.g,",").concat(e.rgb.b,", ").concat(t,")")},getEdgeGradient:function(){return"linear-gradient(to right,\n ".concat(this.getBGColor(this.spinnerColor,1)," 0,\n ").concat(this.getBGColor(this.spinnerColor,0)," 5%,\n ").concat(this.getBGColor(this.spinnerColor,0)," 95%,\n ").concat(this.getBGColor(this.spinnerColor,1)," 100%)")}},watch:{spinnerColor:function(){this.edgeBgGradient=this.getEdgeGradient()}},mounted:function(){var e=this;this.$nextTick(function(){e.needMarquee=e.isNeededMarquee(e.ref)}),this.edgeBgGradient=this.getEdgeGradient()}},ft=pt,mt=(n("2590"),Object(y["a"])(ft,dt,ht,!1,null,null,null));mt.options.__file="ScrollingText.vue";var gt=mt.exports,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-btn",{staticClass:"mcm-menubutton absolute-top-right",attrs:{icon:e.interactiveMode?"mdi-play":"mdi-chevron-right",color:e.interactiveMode?"mc-main-light":"black",size:"sm",round:"",flat:""}},[e.isVisible?n("q-popover",{ref:"mcm-main-popover",attrs:{anchor:"top right",self:"top left",persistent:!1,"max-height":"95vh"}},[n("q-btn",{staticClass:"mcm-icon-close-popover",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closeMenuPopups}}),n("q-list",{attrs:{dense:""}},[n("q-list-header",{staticStyle:{padding:"0 16px 0 16px","min-height":"0"}},[e._v("\n "+e._s(e.$t("label.mcMenuContext"))+"\n "),e.hasContext?n("q-icon",{staticClass:"mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(t){e.copyContextES(t,e.contextEncodedShape)}}},[n("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1):e._e()],1),n("q-item-separator"),e.hasContext?n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",on:{click:function(t){e.closeAndCall(null)}}},[n("div",{staticClass:"klab-item mdi mdi-star-four-points-outline klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.newContext")))])])])]):e._e(),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",class:{"klab-not-available":0===e.contextsHistory.length},on:{click:e.toggleContextsHistory}},[n("div",{staticClass:"klab-item mdi mdi-history klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.previousContexts")))]),n("div",[n("q-icon",{staticClass:"mcm-contextbutton",attrs:{name:"mdi-chevron-right",color:"black",size:"sm"}}),n("q-popover",{ref:"mcm-contexts-popover",attrs:{anchor:"top right",self:"top left",offset:[18,28]}},[n("q-list",{attrs:{dense:""}},e._l(e.contextsHistory,function(t){return n("q-item",{key:t.id},[n("q-item-main",[n("div",{staticClass:"mcm-container mcm-context-label"},[n("div",{staticClass:"klab-menuitem",class:[t.id===e.contextId?"klab-no-clickable":"klab-clickable"],on:{click:function(n){e.closeAndCall(t.id)}}},[n("div",{staticClass:"klab-item klab-large-text",class:{"mcm-actual-context":t.id===e.contextId},style:{"font-style":e.contextTaskIsAlive(t.id)?"italic":"normal"},on:{mouseover:function(n){e.tooltipIt(n,t.id)}}},[e._v("\n "+e._s(e.formatContextTime(t))+": "+e._s(t.label)+"\n "),n("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.needTooltip(t.id),expression:"needTooltip(context.id)"}],attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(t.label)+"\n ")])],1)]),n("q-icon",{staticClass:"absolute-right mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(n){e.copyContextES(n,t.spatialProjection+" "+t.encodedShape)}}},[n("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1)],1)])],1)}))],1)],1)])])]),e.hasContext?e._e():[n("q-item",[n("q-item-main",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",class:[e.isDrawMode?"klab-select":""],on:{click:function(t){e.startDraw()}}},[n("div",{staticClass:"klab-item mdi mdi-vector-polygon klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.drawCustomContext")))])])])])],1),n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuScale")))]),n("q-item-separator"),n("q-item",[n("q-item-main",[n("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"space",editable:!0,full:!0}})],1)],1),n("q-item",[n("q-item-main",[n("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"time",editable:!0,full:!0}})],1)],1)],n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuOption")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.interactiveMode")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.interactiveModeModel,callback:function(t){e.interactiveModeModel=t},expression:"interactiveModeModel"}})],1)],1)]),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.viewCoordinates")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.coordinates,callback:function(t){e.coordinates=t},expression:"coordinates"}})],1)],1)]),e.hasContext?e._e():[n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuSettings")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.optionSaveLocation")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveLocationVar,callback:function(t){e.saveLocationVar=t},expression:"saveLocationVar"}})],1)],1)]),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.saveDockedStatus")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveDockedStatusVar,callback:function(t){e.saveDockedStatusVar=t},expression:"saveDockedStatusVar"}})],1)],1)])],n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuHelp")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",on:{click:e.askTutorial}},[n("div",{staticClass:"klab-item klab-font klab-im-logo klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.showHelp")))])])])]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"klab-version"},[e._v("Version: "+e._s(e.$store.state.data.packageVersion)+"/ Build "+e._s(e.$store.state.data.packageBuild))])])],2)],1):e._e()],1)},bt=[];vt._withStripped=!0;var yt=n("c1df"),_t=n.n(yt),Mt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sr-container",class:[e.light?"sr-light":"sr-dark","vertical"===e.orientation?"sr-vertical":""],style:{width:e.width},on:{click:function(t){e.scaleEditing=e.editable}}},[e.hasScale?n("div",{staticClass:"sr-scalereference klab-menuitem",class:{"sr-full":e.full,"klab-clickable":e.editable}},[e.full?n("div",{staticClass:"sr-locked klab-item mdi sr-icon",class:[e.isScaleLocked[e.scaleType]?"mdi-lock-outline":"mdi-lock-open-outline"],on:{click:function(t){t.preventDefault(),e.lockScale(t)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.isScaleLocked[e.scaleType]?e.$t("label.clickToUnlock"):e.$t("label.clickToLock")))])],1):e._e(),n("div",{staticClass:"sr-editables",style:{cursor:e.editable?"pointer":"default"}},[n("div",{staticClass:"sr-scaletype klab-item",class:["mdi "+e.type+" sr-icon"]}),n("div",{staticClass:"sr-description klab-item"},[e._v(e._s(e.description))]),n("div",{staticClass:"sr-spacescale klab-item"},[e._v(e._s(e.scale))]),e.editable?n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e.scaleType===e.SCALE_TYPE.ST_TIME&&""!==e.timeLimits?n("div",{staticClass:"sr-tooltip sr-time-tooltip",domProps:{innerHTML:e._s(e.timeLimits)}}):e._e(),n("div",{staticClass:"sr-tooltip"},[e._v(e._s(e.$t("label.clickToEditScale")))])]):e._e()],1)]):n("div",{staticClass:"sr-no-scalereference"},[n("p",[e._v(e._s(e.$t("label.noScaleReference")))])])])},wt=[];Mt._withStripped=!0;var Ct={name:"ScaleReference",props:{scaleType:{type:String,validator:function(e){return-1!==[c["B"].ST_SPACE,c["B"].ST_TIME].indexOf(e)},default:c["B"].ST_SPACE},useNext:{type:Boolean,default:!1},width:{type:String,default:"150px"},light:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},full:{type:Boolean,default:!1},orientation:{type:String,default:"horizontal"}},data:function(){return{SCALE_TYPE:c["B"]}},computed:s()({},Object(a["c"])("data",["scaleReference","isScaleLocked","nextScale"]),{scaleObj:function(){return this.useNext?this.nextScale:this.scaleReference},resolution:function(){return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceResolutionConverted:this.scaleObj.timeUnit},unit:function(){return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceUnit:this.scaleObj.timeUnit},type:function(){return this.scaleType===c["B"].ST_SPACE?"mdi-grid":"mdi-clock-outline"},description:function(){return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceResolutionDescription:null===this.scaleObj.timeUnit?"YEAR":this.scaleObj.timeUnit},scale:function(){var e=this;return this.scaleType===c["B"].ST_SPACE?this.scaleObj.spaceScale:this.unit?c["C"].find(function(t){return t.value===e.unit}).index:this.scaleObj.timeScale},hasScale:function(){return this.useNext?null!==this.nextScale:null!==this.scaleReference},timeLimits:function(){return 0===this.scaleObj.start&&0===this.scaleObj.end?"":"".concat(_t()(this.scaleObj.start).format("L HH:mm:ss"),"
").concat(_t()(this.scaleObj.end).format("L HH:mm:ss"))},scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleType})}}}),methods:s()({},Object(a["b"])("data",["setScaleLocked"]),{lockScale:function(e){e.stopPropagation();var t=!this.isScaleLocked[this.scaleType];this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:this.scaleType===c["B"].ST_SPACE?c["G"].LOCK_SPACE:c["G"].LOCK_TIME,value:t},this.$store.state.data.session).body),this.setScaleLocked({scaleType:this.scaleType,scaleLocked:t}),t||this.$eventBus.$emit(c["h"].SEND_REGION_OF_INTEREST)}})},St=Ct,At=(n("cf611"),Object(y["a"])(St,Mt,wt,!1,null,null,null));At.options.__file="ScaleReference.vue";var Et=At.exports,Ot=n("2cee"),Lt=n("1442"),Tt={name:"MainControlMenu",mixins:[Ot["a"],ke],components:{ScaleReference:Et},data:function(){return{}},computed:s()({},Object(a["c"])("data",["contextsHistory","hasContext","contextId","contextReloaded","contextEncodedShape","interactiveMode","session"]),Object(a["d"])("stomp",["subscriptions"]),Object(a["c"])("stomp",["lastActiveTask","contextTaskIsAlive"]),Object(a["c"])("view",["searchIsActive","isDrawMode","isScaleEditing","isMainControlDocked","viewCoordinates"]),Object(a["d"])("view",["saveLocation","saveDockedStatus"]),{saveLocationVar:{get:function(){return this.saveLocation},set:function(e){this.changeSaveLocation(e)}},saveDockedStatusVar:{get:function(){return this.saveDockedStatus},set:function(e){this.changeSaveDockedStatus(e)}},interactiveModeModel:{get:function(){return this.interactiveMode},set:function(e){this.setInteractiveMode(e)}},coordinates:{get:function(){return this.viewCoordinates},set:function(e){this.setViewCoordinates(e)}},isVisible:function(){return!this.isDrawMode&&!this.isScaleEditing}}),methods:s()({},Object(a["b"])("data",["setInteractiveMode"]),Object(a["b"])("view",["setDrawMode","setViewCoordinates"]),{startDraw:function(){this.setDrawMode(!this.isDrawMode)},toggleContextsHistory:function(){this.contextsHistory.length>0&&this.$refs["mcm-contexts-popover"].toggle()},closeAndCall:function(){var e=W()(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.contextId!==t){e.next=2;break}return e.abrupt("return");case 2:this.closeMenuPopups(),this.clearTooltip(),this.loadOrReloadContext(t,this.closeMenuPopups());case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),formatContextTime:function(e){var t=e.lastUpdate;if(0===t&&(t=e.creationTime),t&&null!==t){var n=_t()(t),i=0===_t()().diff(n,"days");return i?n.format("HH:mm:ss"):n.format("YYYY/mm/dd HH:mm:ss")}return""},changeSaveLocation:function(e){this.$store.commit("view/SET_SAVE_LOCATION",e,{root:!0}),V["a"].set(c["P"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),e||(V["a"].set(c["P"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),V["a"].set(c["P"].COOKIE_MAPDEFAULT,{center:Lt["b"].center,zoom:Lt["b"].zoom},{expires:30,path:"/",secure:!0}))},changeSaveDockedStatus:function(e){this.$store.commit("view/SET_SAVE_DOCKED_STATUS",e,{root:!0}),e?V["a"].set(c["P"].COOKIE_DOCKED_STATUS,this.isMainControlDocked,{expires:30,path:"/",secure:!0}):V["a"].remove(c["P"].COOKIE_DOCKED_STATUS)},copyContextES:function(e,t){e.stopPropagation(),Object(Xe["b"])(t),this.$q.notify({message:Object(Xe["a"])(this.$t("messages.customCopyToClipboard",{what:this.$t("label.context")})),type:"info",icon:"mdi-information",timeout:500})},closeMenuPopups:function(){this.$refs["mcm-main-popover"]&&this.$refs["mcm-main-popover"].hide(),this.$refs["mcm-contexts-popover"]&&this.$refs["mcm-contexts-popover"].hide()},sendInteractiveModeState:function(e){this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].INTERACTIVE_MODE,value:e},this.session).body)},viewerClickListener:function(){this.isDrawMode||this.closeMenuPopups()},askTutorial:function(){this.$eventBus.$emit(c["h"].NEED_HELP),this.closeMenuPopups()}}),watch:{hasContext:function(){this.closeMenuPopups()},searchIsActive:function(e){e&&this.closeMenuPopups()},interactiveModeModel:function(e){this.sendInteractiveModeState(e)}},mounted:function(){this.$eventBus.$on(c["h"].VIEWER_CLICK,this.viewerClickListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLICK,this.viewerClickListener)}},xt=Tt,Rt=(n("6774"),Object(y["a"])(xt,vt,bt,!1,null,null,null));Rt.options.__file="MainControlMenu.vue";var kt=Rt.exports,zt={name:"KlabSearchBar",components:{KlabSpinner:M,KlabSearch:ut,ScrollingText:gt,MainControlMenu:kt},mixins:[rt],data:function(){return{searchAsked:!1,busyInformed:!1,searchAskedInterval:null}},computed:s()({},Object(a["c"])("data",["hasContext","contextLabel","contextCustomLabel","isScaleLocked"]),Object(a["c"])("view",["spinnerColor","searchIsActive","searchIsFocused","hasMainControl","statusTextsString","statusTextsLength","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{isDocked:function(){return!this.hasMainControl},mainContextLabel:function(){return this.contextLabel?this.contextLabel:this.contextCustomLabel}}),methods:s()({},Object(a["b"])("view",["setMainViewer","searchStart","searchFocus","searchStop","setSpinner"]),{getLargeModeWidth:function(){return"".concat((window.innerWidth||document.body.clientWidth)-c["u"].LEFTMENU_MINSIZE,"px")},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},showSuggestions:function(e){1===e.targetTouches.length&&(e.preventDefault(),this.searchIsActive?this.searchIsFocused?this.$refs["klab-search"].searchEnd({noDelete:!1}):this.searchFocus({char:" ",focused:!0}):this.searchStart(" "))},emitSpinnerDoubleclick:function(){this.$eventBus.$emit(c["h"].SPINNER_DOUBLE_CLICK)},askForSuggestionsListener:function(e){this.showSuggestions(e)},busySearch:function(){this.searchAsked=!0,this.updateBusy()},updateBusy:function(){var e=this;null!==this.searchAskedInterval&&(clearTimeout(this.searchAskedInterval),this.searchAskedInterval=null),this.searchAsked&&(0===this.engineEventsCount?this.searchAskedInterval=setTimeout(function(){e.searchAsked=!1,e.busyInformed=!1,e.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:"BusySearch"}))},600):this.busyInformed||(this.setSpinner(s()({},c["H"].SPINNER_LOADING,{owner:"BusySearch"})),this.busyInformed=!0))}}),watch:{statusTextsString:function(e){e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)&&(e=e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation"))),this.$refs["st-status-text"].changeText(e,5*this.statusTextsLength)},mainContextLabel:function(e){this.$refs["st-context-text"]&&this.$refs["st-context-text"].changeText(e)},hasContext:function(e){e&&this.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:"KlabSearch"}))},engineEventsCount:function(){this.updateBusy()}},mounted:function(){this.$eventBus.$on(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener),this.updateBusy()},beforeDestroy:function(){this.$eventBus.$off(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener)}},Pt=zt,Nt=(n("19f2"),Object(y["a"])(Pt,De,Be,!1,null,null,null));Nt.options.__file="KlabSearchBar.vue";var It=Nt.exports,Dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.contextsCount>1?n("div",{staticClass:"kbc-container"},e._l(e.contextsLabels,function(t,i){return n("span",{key:t.id,on:{click:function(n){e.load(t.contextId,i)}}},[e._v(e._s(t.label))])})):e._e()},Bt=[];Dt._withStripped=!0;var qt={name:"KlabBreadcrumbs",mixins:[ke],computed:s()({},Object(a["c"])("data",["contextsLabels","contextsCount","contextById"])),methods:s()({},Object(a["b"])("data",["loadContext"]),{load:function(e,t){if(t!==this.contextsCount-1){var n,i=this.$store.state.data.observations.find(function(t){return t.id===e});n=i||this.contextById(e),this.sendStompMessage(l["a"].CONTEXTUALIZATION_REQUEST(s()({contextId:n.id},n.contextId&&{parentContext:n.contextId}),this.$store.state.data.session).body),this.loadContext(e)}}})},jt=qt,Wt=(n("6c8f"),Object(y["a"])(jt,Dt,Bt,!1,null,null,null));Wt.options.__file="KlabBreadcrumbs.vue";var Ft=Wt.exports,Ht=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"klab-tree-pane"}},[n("klab-splitter",{attrs:{margin:0,hidden:e.hasObservationInfo?"":"right"},on:{"close-info":e.onCloseInfo}},[n("div",{staticClass:"full-height",attrs:{slot:"left-pane",id:"ktp-left"},slot:"left-pane"},[e.hasTree?n("div",{ref:"kt-out-container",class:{"ktp-loading":e.taskOfContextIsAlive,"with-splitter":e.hasObservationInfo},attrs:{id:"kt-out-container"}},[n("q-resize-observable",{on:{resize:e.outContainerResized}}),[n("klab-tree",{ref:"kt-user-tree",style:{"max-height":!!e.userTreeMaxHeight&&e.userTreeMaxHeight+"px"},attrs:{id:"kt-user-tree",tree:e.userTree,"is-user":!0},on:{resized:e.recalculateTreeHeight}})],n("details",{directives:[{name:"show",rawName:"v-show",value:e.mainTreeHasNodes(),expression:"mainTreeHasNodes()"}],attrs:{id:"kt-tree-details",open:e.taskOfContextIsAlive||e.mainTreeHasNodes(!0)||e.detailsOpen}},[n("summary",[n("q-icon",{attrs:{name:"mdi-dots-horizontal",id:"ktp-main-tree-arrow"}},[n("q-tooltip",{attrs:{offset:[0,0],self:"top left",anchor:"bottom right"}},[e._v(e._s(e.detailsOpen?e.$t("tooltips.displayMainTree"):e.$t("tooltips.hideMainTree")))])],1)],1),n("klab-tree",{ref:"kt-tree",style:{"max-height":!!e.treeHeight&&e.treeHeight+"px"},attrs:{id:"kt-tree",tree:e.tree,"is-user":!1},on:{resized:e.recalculateTreeHeight}})],1)],2):e.hasContext?n("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noObservation"))+"\n ")]):n("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noContext"))+"\n ")])]),n("div",{staticClass:"full-height",attrs:{slot:"right-pane",id:"ktp-right"},slot:"right-pane"},[e.hasObservationInfo?n("observation-info",{on:{shownode:function(t){e.informTree(t)}}}):e._e()],1)])],1)},Xt=[];Ht._withStripped=!0;n("5df2");var Ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"splitter-container full-height"},[!e.hidden&&e.controllers?n("div",{staticClass:"splitter-controllers"},[e.onlyOpenClose?e._e():[n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-left",icon:"mdi-arrow-left"},nativeOn:{click:function(t){e.percent=0}}}),n("q-btn",{staticClass:"no-padding splitter-actions rotate-90",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-middle",icon:"mdi-format-align-middle"},nativeOn:{click:function(t){e.percent=50}}}),n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-right",icon:"mdi-arrow-right"},nativeOn:{click:function(t){e.percent=100}}})],n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-close",icon:"mdi-close"},nativeOn:{click:function(t){e.$emit("close-info")}}})],2):e._e(),n("div",e._g({staticClass:"vue-splitter",style:{cursor:e.cursor,flexDirection:e.flexDirection}},e.onlyOpenClose?{}:{mouseup:e.onUp,mousemove:e.onMouseMove,touchmove:e.onMove,touchend:e.onUp}),[n("div",{staticClass:"left-pane splitter-pane",style:e.leftPaneStyle},[e._t("left-pane")],2),e.hidden?e._e():[e.onlyOpenClose?e._e():n("div",e._g({staticClass:"splitter",class:{active:e.active},style:e.splitterStyle},e.onlyOpenClose?{}:{mousedown:e.onDown,touchstart:e.onDown})),n("div",{staticClass:"right-pane splitter-pane",style:e.rightPaneStyle},[e._t("right-pane")],2)]],2)])},Vt=[];Ut._withStripped=!0;var Gt={props:{margin:{type:Number,default:10},horizontal:{type:Boolean,default:!1},hidden:{type:String,default:""},splitterColor:{type:String,default:"rgba(0, 0, 0, 0.2)"},controlsColor:{type:String,default:"rgba(192, 192, 192)"},splitterSize:{type:Number,default:3},controllers:{type:Boolean,default:!0},onlyOpenClose:{type:Boolean,default:!0}},data:function(){return{active:!1,percent:"left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50,hasMoved:!1}},computed:{flexDirection:function(){return this.horizontal?"column":"row"},splitterStyle:function(){return this.horizontal?{height:"".concat(this.splitterSize,"px"),cursor:"ns-resize","background-color":this.splitterColor}:{width:"".concat(this.splitterSize,"px"),cursor:"ew-resize","background-color":this.splitterColor}},leftPaneStyle:function(){return this.horizontal?{height:"".concat(this.percent,"%")}:{width:"".concat(this.percent,"%")}},rightPaneStyle:function(){return this.horizontal?{height:"".concat(100-this.percent,"%")}:{width:"".concat(100-this.percent,"%")}},cursor:function(){return this.active?this.horizontal?"ns-resize":"ew-resize":""}},methods:{onDown:function(){this.active=!0,this.hasMoved=!1},onUp:function(){this.active=!1},onMove:function(e){var t=0,n=e.currentTarget,i=0;if(this.active){if(this.horizontal){while(n)t+=n.offsetTop,n=n.offsetParent;i=Math.floor((e.pageY-t)/e.currentTarget.offsetHeight*1e4)/100}else{while(n)t+=n.offsetLeft,n=n.offsetParent;i=Math.floor((e.pageX-t)/e.currentTarget.offsetWidth*1e4)/100}i>this.margin&&i<100-this.margin&&(this.percent=i),this.$emit("splitterresize"),this.hasMoved=!0}},onMouseMove:function(e){0!==e.buttons&&0!==e.which||(this.active=!1),this.onMove(e)}},watch:{hidden:function(){this.percent="left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50}}},Kt=Gt,$t=(n("1848"),Object(y["a"])(Kt,Ut,Vt,!1,null,null,null));$t.options.__file="KlabSplitter.vue";var Yt=$t.exports,Jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kt-container relative-position klab-menu-component",class:{"kt-drag-enter":e.dragEnter>0&&!e.dragStart},on:{dragenter:e.onDragEnter,dragover:e.onDragOver,dragleave:e.onDragLeave,drop:e.onDrop}},[n("div",{staticClass:"kt-tree-container simplebar-vertical-only",on:{contextmenu:e.rightClickHandler}},[n("klab-q-tree",{ref:"klab-tree",attrs:{nodes:e.tree,"node-key":"id",ticked:e.ticked,selected:e.selected,expanded:e.expanded,"tick-strategy":"strict","text-color":"white","control-color":"white",color:"white",dark:!0,noNodesLabel:e.$t("label.noNodes"),"double-click-function":e.doubleClick,filter:e.isUser?"user":"tree",filterMethod:e.filterUser,noFilteredResultLabel:e.isUser?e.taskOfContextIsAlive?e.$t("messages.treeNoResultUserWaiting"):e.$t("messages.treeNoResultUser"):e.$t("messages.treeNoResultNoUser")},on:{"update:ticked":function(t){e.ticked=t},"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},click:function(t){e.$refs["observations-context"].close()}},scopedSlots:e._u([{key:"header-default",fn:function(t){return n("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[n("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":"",e.hasObservationInfo&&e.observationInfo.id===t.node.id?"node-selected":"",null!==e.cleanTopLayerId&&e.cleanTopLayerId===t.node.id?"node-on-top":"",e.checkObservationsOnTop(t.node.id)?"node-on-top":"",e.isUser?"node-user-element":"node-tree-element",t.node.needUpdate?"node-updatable":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(n){e.onDragStart(n,t.node.id)},dragend:e.onDragEnd}},[t.node.observationType===e.OBSERVATION_CONSTANTS.TYPE_PROCESS?n("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-buddhism",size:"17px"}}):t.node.noTick?n("q-icon",{attrs:{name:"mdi-checkbox-blank-circle"}}):e._e(),e._v("\n "+e._s(t.node.label)+"\n "),t.node.dynamic?n("q-icon",{staticClass:"node-icon-time",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-clock-outline",color:"mc-green"}}):n("q-icon",{staticClass:"node-icon-time node-loading-layer",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-loading"}}),n("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.clearObservable(t.node.observable)))])],1),t.node.childrenCount>0||t.node.children.length>0?[n("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])]:e._e(),t.node.empty||t.node.noTick?e._e():n("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up",disable:""}},[n("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.$t("tooltips.uploadData")))])],1),t.node.empty||t.node.noTick?e._e():n("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(n){e.askForOutputFormat(n,t.node.id,t.node.exportFormats)}}}),"undefined"!==typeof t.node.idx?[n("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e()],2)}},{key:"header-folder",fn:function(t){return n("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[n("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(n){e.onDragStart(n,t.node.id)},dragend:e.onDragEnd}},[e._v(e._s(t.node.label))]),n("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up"}}),n("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(n){e.askForOutputFormat(n,t.node.id,t.node.exportFormats,!0)}}}),"undefined"!==typeof t.node.idx?[n("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e(),n("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])],2)}},{key:"header-stub",fn:function(t){return n("div",{staticClass:"node-stub"},[n("span",{staticClass:"node-element node-stub"},[n("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-checkbox-blank-circle"}}),e._v(e._s(e.$t("messages.loadingChildren"))+"\n ")],1)])}}])},[e._v("\n >\n ")])],1),n("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),n("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Qt=[];Jt._withStripped=!0;n("f559"),n("6b54"),n("b54a");var Zt=n("e4f9"),en=n("bffd"),tn=n("b70a"),nn=n("525b"),on={name:"KlabQTree",extends:Zt["a"],props:{doubleClickTimeout:{type:Number,default:300},doubleClickFunction:{type:Function,default:null},noFilteredResultLabel:{type:String,default:null},checkClick:{type:Boolean,default:!0}},data:function(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[],timeouts:[]}},methods:{__blur:function(){document.activeElement&&document.activeElement.blur()},__getNode:function(e,t){var n=this,i=t[this.nodeKey],o=this.meta[i],r=t.header&&this.$scopedSlots["header-".concat(t.header)]||this.$scopedSlots["default-header"],s=o.isParent?this.__getChildren(e,t.children):[],a=s.length>0||o.lazy&&"loaded"!==o.lazy,c=t.body&&this.$scopedSlots["body-".concat(t.body)]||this.$scopedSlots["default-body"],l=r||c?this.__getSlotScope(t,o,i):null;return c&&(c=e("div",{staticClass:"q-tree-node-body relative-position"},[e("div",{class:this.contentClass},[c(l)])])),e("div",{key:i,staticClass:"q-tree-node",class:{"q-tree-node-parent":a,"q-tree-node-child":!a}},[e("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":o.link,"q-tree-node-selected":o.selected,disabled:o.disabled},on:{click:function(e){n.checkClick?e&&e.srcElement&&-1!==e.srcElement.className.indexOf("node-element")&&n.__onClick(t,o):n.__onClick(t,o)}}},["loading"===o.lazy?e(tn["a"],{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):a?e(Qe["a"],{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":o.expanded},props:{name:this.computedIcon},nativeOn:{click:function(e){n.__onExpandClick(t,o,e)}}}):null,e("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[o.hasTicking&&!o.noTick?e(nn["a"],{staticClass:"q-mr-xs",props:{value:o.indeterminate?null:o.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!o.tickable},on:{input:function(e){n.__onTickedClick(t,o,e)}}}):null,r?r(l):[this.__getNodeMedia(e,t),e("span",t[this.labelKey])]])]),a?e(en["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:o.expanded}],staticClass:"q-tree-node-collapsible",class:"text-".concat(this.color)},[c,e("div",{staticClass:"q-tree-children",class:{disabled:o.disabled}},s)])]):c])},__onClick:function(e,t){var n=this;null===this.doubleClickFunction?this.__onClickDefault(e,t):"undefined"===typeof this.timeouts["id".concat(e.id)]||null===this.timeouts["id".concat(e.id)]?this.timeouts["id".concat(e.id)]=setTimeout(function(){n.timeouts["id".concat(e.id)]=null,n.__onClickDefault(e,t)},this.doubleClickTimeout):(clearTimeout(this.timeouts["id".concat(e.id)]),this.timeouts["id".concat(e.id)]=null,this.doubleClickFunction(e,t))},__onClickDefault:function(e,t){this.__blur(),this.hasSelection?t.selectable&&this.$emit("update:selected",t.key!==this.selected?t.key:null):this.__onExpandClick(e,t),"function"===typeof e.handler&&e.handler(e)}},render:function(e){var t=this.__getChildren(e,this.nodes),n=this.classes.indexOf("klab-no-nodes");return 0===t.length&&-1===n?this.classes.push("klab-no-nodes"):0!==t.length&&-1!==n&&this.classes.splice(n,1),e("div",{staticClass:"q-tree",class:this.classes},0===t.length?this.filter?this.noFilteredResultLabel:this.noNodesLabel||this.$t("messages.treeNoNodes"):t)}},rn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-context-menu",{directives:[{name:"show",rawName:"v-show",value:e.enableContextMenu,expression:"enableContextMenu"}],ref:"observations-context",on:{hide:e.hide}},[n("q-list",{staticStyle:{"min-width":"150px"},attrs:{dense:"","no-border":""}},[e._l(e.itemActions,function(t,i){return t.enabled?[t.separator&&0!==i?n("q-item-separator",{key:t.actionId}):e._e(),!t.separator&&t.enabled?n("q-item",{key:t.actionId,attrs:{link:""},nativeOn:{click:function(n){e.askForAction(t.actionId)}}},[n("q-item-main",{attrs:{label:t.actionLabel}})],1):e._e(),t.separator||t.enabled?e._e():n("q-item",{key:t.actionId,attrs:{disabled:""}},[n("q-item-main",{attrs:{label:t.actionLabel}})],1)]:e._e()})],2)],1)},sn=[];rn._withStripped=!0;var an={name:"ObservationContextMenu",props:{observationId:{type:String,default:null}},data:function(){return{enableContextMenu:!1,itemActions:[],itemObservation:null}},methods:s()({},Object(a["b"])("data",["setContext","loadContext","setContextMenuObservationId"]),{initContextMenu:function(){var e=this,t=this.$store.state.data.observations.find(function(t){return t.id===e.observationId});t?(this.resetContextMenu(!1),t&&t.actions&&t.actions.length>1?(this.itemActions=t.actions.slice(),this.itemObservation=t):this.resetContextMenu(),t.observationType!==c["y"].TYPE_STATE&&t.observationType!==c["y"].TYPE_GROUP&&(this.itemActions.push(c["z"].SEPARATOR_ITEM),this.itemActions.push(c["z"].RECONTEXTUALIZATION_ITEM),this.itemObservation=t),this.itemActions&&this.itemActions.length>0?this.enableContextMenu=this.itemActions&&this.itemActions.length>0:this.enableContextMenu=!1):this.resetContextMenu()},resetContextMenu:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.itemActions=[],this.itemObservation=null,e&&(this.enableContextMenu=!1)},hide:function(e){this.resetContextMenu(),this.$emit("hide",e)},askForAction:function(e){if(null!==this.itemObservation)switch(console.debug("Will ask for ".concat(e," of observation ").concat(this.itemObservation.id)),e){case"Recontextualization":this.sendStompMessage(l["a"].CONTEXTUALIZATION_REQUEST({contextId:this.itemObservation.id,parentContext:this.itemObservation.contextId},this.$store.state.data.session).body),this.loadContext(this.itemObservation.id);break;case"AddToCache":console.log("Ask for Add to cache, no action for now");break;default:break}this.enableContextMenu=!1}}),watch:{observationId:function(){null!==this.observationId?this.initContextMenu():this.resetContextMenu()}},mounted:function(){null!==this.observationId&&this.initContextMenu()}},cn=an,ln=(n("ad0b"),Object(y["a"])(cn,rn,sn,!1,null,null,null));ln.options.__file="ObservationContextMenu.vue";var un=ln.exports,dn=null,hn={name:"klabTree",components:{KlabQTree:on,ObservationContextMenu:un},props:{isUser:{type:Boolean,required:!0},tree:{type:Array,required:!0}},data:function(){return{ticked:[],selected:null,expanded:[],itemObservationId:null,askingForChildren:!1,scrollElement:null,showPopover:null,dragStart:!1,dragEnter:0,watchedObservation:[],contextMenuObservationId:null,OBSERVATION_CONSTANTS:c["y"]}},computed:s()({},Object(a["c"])("data",["treeNode","lasts","contextReloaded","contextId","observations","timeEventsOfObservation","timestamp","observationsIdOnTop"]),Object(a["c"])("stomp",["tasks","taskOfContextIsAlive"]),Object(a["c"])("view",["observationInfo","hasObservationInfo","topLayerId"]),Object(a["d"])("view",["treeSelected","treeTicked","treeExpanded","showNotified"]),{cleanTopLayerId:function(){return this.topLayerId?this.topLayerId.substr(0,this.topLayerId.indexOf("T")):null}}),methods:s()({checkObservationsOnTop:function(e){return this.observationsIdOnTop.length>0&&this.observationsIdOnTop.includes(e)},copyToClipboard:Xe["b"]},Object(a["b"])("data",["setVisibility","selectNode","askForChildren","addChildrenToTree","setContext","changeTreeOfNode","setTimestamp"]),Object(a["b"])("view",["setSpinner","setMainDataViewer"]),{filterUser:function(e,t){return e.userNode?"user"===t:"tree"===t},rightClickHandler:function(e){e.preventDefault();var t=null;if(e.target.className.includes("node-element"))t=e.target;else{var n=e.target.getElementsByClassName("node-element");if(1===n.length){var i=Fe()(n,1);t=i[0]}}this.contextMenuObservationId=null!==t?t.id.substring(5):null},clearObservable:function(e){return 0===e.indexOf("(")&&e.lastIndexOf(")")===e.length-1?e.substring(1,e.length-1):e},askForOutputFormat:function(e,t,n){var i=this;null!==n&&n.length>0?(e.stopPropagation(),this.$q.dialog({title:this.$t("label.titleOutputFormat"),message:this.$t("label.askForOuputFormat"),options:{type:"radio",model:n[0].value,items:n},cancel:!0,preventClose:!1,color:"info"}).then(function(e){i.askDownload(t,e,n)}).catch(function(){})):this.$q.notify({message:"No available formats",type:"warning",icon:"mdi-alert",timeout:200})},askDownload:function(e,t,n,i){if("undefined"===typeof i){var o="";if(-1!==this.timestamp){var r=new Date(this.timestamp);o="_".concat(r.getFullYear()).concat(r.getMonth()<9?"0":"").concat(r.getMonth()+1).concat(r.getDate()<10?"0":"").concat(r.getDate(),"_").concat(r.getHours()<10?"0":"").concat(r.getHours()).concat(r.getMinutes()<10?"0":"").concat(r.getMinutes()).concat(r.getSeconds()<10?"0":"").concat(r.getSeconds())}i="".concat(e).concat(o)}var s=n.find(function(e){return e.value===t});Object(Ue["b"])(e,"RAW",i,s,this.timestamp)},changeNodeState:function(e){var t=e.nodeId,n=e.state;"undefined"!==typeof this.$refs["klab-tree"]&&this.$refs["klab-tree"].setTicked([t],n)},doubleClick:function(){var e=W()(regeneratorRuntime.mark(function e(t,n){var i,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!t.isContainer){e.next=4;break}null!==t.viewerIdx&&this.setMainDataViewer({viewerIdx:t.viewerIdx,visible:t.visible}),e.next=14;break;case 4:if(t.observationType!==c["y"].TYPE_STATE){e.next=8;break}this.fitMap(t,n),e.next=14;break;case 8:if(i=this.observations.find(function(e){return e.id===t.id}),!i||null===i){e.next=14;break}return e.next=12,Object(Ue["j"])(i);case 12:o=e.sent,this.fitMap(t,n,o);case 14:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),fitMap:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$eventBus.$emit(c["h"].NEED_FIT_MAP,{geometry:n}),e&&t&&t.ticked&&this.setVisibility({node:e,visible:!0})},updateFolderListener:function(e){if(e&&e.folderId){var t=Object(Ue["f"])(this.tree,e.folderId);t&&null!==t&&(e.visible?this.$refs["klab-tree"].setTicked(t.children.map(function(e){return e.id}),!0):this.$refs["klab-tree"].setTicked(this.ticked.filter(function(e){return-1===t.children.findIndex(function(t){return t.id===e})}),!1))}},selectElementListener:function(e){var t=this,n=e.id,i=e.selected;this.$nextTick(function(){var e=Object(Ue["f"])(t.tree,n);e&&(t.setVisibility({node:e,visible:i}),i?t.ticked.push(n):t.ticked.splice(t.ticked.findIndex(function(e){return e===n}),1))})},treeSizeChangeListener:function(){var e=this;this.isUser||(null!=dn&&(clearTimeout(this.scrollToTimeout),dn=null),this.$nextTick(function(){dn=setTimeout(function(){e.scrollElement.scrollTop=e.scrollElement.scrollHeight},1e3)}))},calculateRightPosition:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.reduce(function(e,t){return e+t.toString().length},0),i=""!==t?" + ".concat(t):"";return"calc(".concat(n,"ch").concat(i,")")},onDragStart:function(e,t){e.dataTransfer.setData("id",t),this.dragStart=!0},onDragEnd:function(){this.dragStart=!1},onDragEnter:function(e){e.preventDefault(),this.dragStart||(this.dragEnter+=1)},onDragLeave:function(e){e.preventDefault(),this.dragStart||(this.dragEnter-=1)},onDragOver:function(e){e.preventDefault()},onDrop:function(e){if(e.preventDefault(),this.dragEnter>0){var t=e.dataTransfer.getData("id");t&&""!==t?this.changeTreeOfNode({id:t,isUserTree:this.isUser}):console.warn("Strange dropped node ".concat(e.dataTransfer.getData("id")))}else console.debug("Self dropped");this.dragStart=!1,this.dragEnter=0}}),watch:{tree:function(){this.treeSizeChangeListener()},treeSelected:function(e){e!==this.selected&&(this.selected=e)},expanded:function(e,t){if(this.$store.state.view.treeExpanded=e,t.length!==e.length){if(t.length>e.length){var n=t.filter(function(t){return e.indexOf(t)<0})[0],i=Object(Ue["f"])(this.tree,n);return this.sendStompMessage(l["a"].WATCH_REQUEST({active:!1,observationId:n,rootContextId:i.rootContextId},this.$store.state.data.session).body),this.watchedObservation.splice(this.watchedObservation.findIndex(function(e){return e.observationId===n}),1),void console.info("Stop watching observation ".concat(n," with rootContextId ").concat(i.rootContextId))}var o=e[e.length-1],r=Object(Ue["f"])(this.tree,o);r&&(this.sendStompMessage(l["a"].WATCH_REQUEST({active:!0,observationId:o,rootContextId:r.rootContextId},this.$store.state.data.session).body),this.watchedObservation.push({observationId:o,rootContextId:r.rootContextId}),console.info("Start watching observation ".concat(o," with rootContextId ").concat(r.rootContextId)),r.children.length>0&&r.children[0].id.startsWith("STUB")&&(r.children.splice(0,1),r.children.length0?(this.addChildrenToTree({parent:r}),this.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:r.id,visible:"undefined"!==typeof r.ticked&&r.ticked})):0===r.children.length&&this.askForChildren({parentId:r.id,offset:0,count:this.childrenToAskFor,total:r.childrenCount,visible:"undefined"!==typeof r.ticked&&(!!r.isContainer&&r.ticked)})))}},selected:function(e){null!==e?0===e.indexOf("ff_")?this.selected=null:this.selectNode(e):this.selectNode(null)},ticked:function(e,t){var n=this;if(this.$store.state.view.treeTicked=e,t.length!==e.length)if(t.length>e.length){var i=t.filter(function(t){return e.indexOf(t)<0})[0];if(i.startsWith("STUB"))return;var o=Object(Ue["f"])(this.tree,i);o&&(this.setVisibility({node:o,visible:!1}),o.isContainer&&(this.ticked=this.ticked.filter(function(e){return-1===o.children.findIndex(function(t){return t.id===e})})))}else{var r=e[e.length-1];if(r.startsWith("STUB"))return;var s=Object(Ue["f"])(this.tree,r);if(null!==s)if(s.isContainer){var a=function(){var e;n.setVisibility({node:s,visible:!0}),(e=n.ticked).push.apply(e,q()(s.children.filter(function(e){return e.parentArtifactId===s.id}).map(function(e){return e.id})))};this.askingForChildren||(s.childrenLoaded We are asking for tree now, this call is not need so exit");if(0===e.lasts.length)return t.preventDefault(),void console.debug("KlabTree -> There aren't incompleted folders, exit");var n=e.scrollElement.getBoundingClientRect(),i=n.bottom;e.lasts.forEach(function(t){var n=document.getElementById("node-".concat(t.observationId));if(null!==n){var o=n.getBoundingClientRect();if(0!==o.bottom&&o.bottom Asked for them"),e.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:t.folderId,visible:"undefined"!==typeof r.ticked&&r.ticked})})}}})}),this.$eventBus.$on(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$on(c["h"].SELECT_ELEMENT,this.selectElementListener),this.selected=this.treeSelected,this.ticked=this.treeTicked,this.expanded=this.treeExpanded},beforeDestroy:function(){var e=this;this.$eventBus.$off(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$off(c["h"].SELECT_ELEMENT,this.selectElementListener),this.watchedObservation.length>0&&this.watchedObservation.forEach(function(t){e.sendStompMessage(l["a"].WATCH_REQUEST({active:!1,observationId:t.observationId,rootContextId:t.rootContextId},e.$store.state.data.session).body),console.info("Stop watching observation ".concat(t.observationId," with rootContextId ").concat(t.rootContextId))})}},pn=hn,fn=(n("5b35"),Object(y["a"])(pn,Jt,Qt,!1,null,null,null));fn.options.__file="KlabTree.vue";var mn=fn.exports,gn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative-position klab-menu-component",attrs:{id:"oi-container"}},[n("div",{attrs:{id:"oi-controls"}},[n("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-visualize"}},[n("q-checkbox",{attrs:{"keep-color":!0,color:"mc-yellow",readonly:1===e.observationInfo.valueCount||e.observationInfo.empty,disabled:1===e.observationInfo.valueCount||e.observationInfo.empty},nativeOn:{click:function(t){return e.showNode(t)}},model:{value:e.layerShow,callback:function(t){e.layerShow=t},expression:"layerShow"}})],1),n("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-name"}},[n("span",[e._v(e._s(e.observationInfo.label))])]),e.hasSlider?n("div",{staticClass:"oi-control",attrs:{id:"oi-slider"}},[n("q-slider",{attrs:{min:0,max:1,step:.1,decimals:1,color:"mc-yellow",label:!1},model:{value:e.observationInfo.layerOpacity,callback:function(t){e.$set(e.observationInfo,"layerOpacity",t)},expression:"observationInfo.layerOpacity"}})],1):e._e()]),n("div",{class:e.getContainerClasses(),attrs:{id:"oi-metadata-map-wrapper"}},[n("div",{class:[this.exploreMode?"with-mapinfo":""],attrs:{id:"oi-scroll-container"}},[n("div",{attrs:{id:"oi-scroll-metadata-container"}},e._l(e.observationInfo.metadata,function(t,i){return n("div",{key:i,attrs:{id:"oi-metadata"}},[n("div",{staticClass:"oi-metadata-name oi-text"},[e._v(e._s(i))]),n("div",{staticClass:"oi-metadata-value",on:{dblclick:function(n){e.copyToClipboard(t)}}},[e._v(e._s(t))])])}))]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.hasMapInfo,expression:"hasMapInfo"}],attrs:{id:"oi-mapinfo-container"},on:{mouseenter:function(t){e.setInfoShowed({index:0,categories:[],values:[e.mapSelection.value]})},mouseleave:function(t){e.setInfoShowed(null)}}},[n("div",{attrs:{id:"oi-mapinfo-map"}}),n("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-h"}}),n("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-v"}})])]),n("histogram-viewer",{attrs:{dataSummary:e.observationInfo.dataSummary,colormap:e.observationInfo.colormap}})],1)},vn=[];gn._withStripped=!0;var bn=n("e00b"),yn=n("5eee"),_n=n("a2c7"),Mn={name:"ObservationInfo",components:{HistogramViewer:bn["a"]},mixins:[Ot["a"]],data:function(){return{scrollBar:void 0,layerShow:!1,infoShowed:{index:-1,categories:[],values:[]},infoMap:null}},computed:s()({},Object(a["c"])("view",["observationInfo","mapSelection","exploreMode","viewer"]),{hasSlider:function(){return this.observationInfo.visible&&null!==this.observationInfo.viewerIdx&&this.viewer(this.observationInfo.viewerIdx).type.component===c["N"].VIEW_MAP.component},hasMapInfo:function(){return this.exploreMode&&null!==this.mapSelection.pixelSelected&&this.mapSelection.layerSelected.get("id").startsWith("cl_".concat(this.observationInfo.id))}}),methods:{copyToClipboard:function(e){Object(Xe["b"])(e),this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})},getContainerClasses:function(){var e=[];return null!==this.observationInfo.dataSummary&&e.push("k-with-histogram"),e},showNode:function(){this.$emit(c["h"].SHOW_NODE,{nodeId:this.observationInfo.id,state:this.layerShow})},viewerClosedListener:function(e){var t=e.idx;t===this.observationInfo.viewerIdx&&(this.layerShow=!1)},setInfoShowed:function(e){this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,e)}},watch:{mapSelection:function(){var e=this;if(null!==this.mapSelection.layerSelected){var t=this.infoMap.getLayers().getArray();null!==this.mapSelection.pixelSelected?(t.length>1&&this.infoMap.removeLayer(t[1]),this.infoMap.addLayer(this.mapSelection.layerSelected),this.infoMap.getView().setCenter(this.mapSelection.pixelSelected),this.infoMap.getView().setZoom(14),this.$nextTick(function(){e.infoMap.updateSize()}),this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,{index:0,categories:[],values:[this.mapSelection.value]})):t.length>1&&this.infoMap.removeLayer(t[1])}}},mounted:function(){this.scrollBar=new be(document.getElementById("oi-scroll-container")),this.infoMap=new yn["a"]({view:new _n["a"]({center:[0,0],zoom:12}),target:"oi-mapinfo-map",layers:[Lt["c"].EMPTY_LAYER],controls:[],interactions:[]}),this.layerShow=this.observationInfo.visible,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},wn=Mn,Cn=(n("db0a"),Object(y["a"])(wn,gn,vn,!1,null,null,null));Cn.options.__file="ObservationInfo.vue";var Sn=Cn.exports,An=G["b"].height,En={name:"klabTreeContainer",components:{KlabSplitter:Yt,KlabTree:mn,ObservationInfo:Sn},data:function(){return{outContainerHeight:void 0,userTreeMaxHeight:void 0,userTreeHeight:void 0,treeHeight:void 0,detailsOpen:!1}},computed:s()({},Object(a["c"])("data",["tree","userTree","treeNode","hasTree","mainTreeHasNodes","hasContext"]),Object(a["c"])("stomp",["taskOfContextIsAlive"]),Object(a["c"])("view",["hasObservationInfo","isDocked"])),methods:s()({},Object(a["b"])("view",["setObservationInfo"]),{onCloseInfo:function(){this.setObservationInfo(null),this.$eventBus.$emit(c["h"].OBSERVATION_INFO_CLOSED)},informTree:function(e){var t=e.nodeId,n=e.state,i=this.treeNode(t);i&&(this.$refs["kt-tree"]&&this.$refs["kt-tree"].changeNodeState({nodeId:t,state:n}),i.userNode&&this.$refs["kt-user-tree"]&&this.$refs["kt-user-tree"].changeNodeState({nodeId:t,state:n}))},showNodeListener:function(e){this.informTree(e)},outContainerResized:function(){this.isDocked?this.outContainerHeight=An(document.getElementById("dmc-tree"))+24:this.$refs["kt-out-container"]&&(this.outContainerHeight=Number.parseFloat(window.getComputedStyle(this.$refs["kt-out-container"],null).getPropertyValue("max-height"))),this.recalculateTreeHeight()},recalculateTreeHeight:function(){var e=this;this.$nextTick(function(){e.userTreeMaxHeight=e.mainTreeHasNodes()?e.outContainerHeight/2:e.outContainerHeight;var t=document.getElementById("kt-user-tree");t&&e.outContainerHeight&&(e.userTreeHeight=An(t),e.treeHeight=e.outContainerHeight-e.userTreeHeight)})},initTree:function(){var e=this;this.hasTree&&this.$nextTick(function(){e.outContainerResized(),document.getElementById("kt-tree-details").addEventListener("toggle",function(t){e.detailsOpen=t.srcElement.open,e.recalculateTreeHeight()})})}}),watch:{userTree:function(){this.recalculateTreeHeight()},tree:function(){this.recalculateTreeHeight()},hasTree:function(){this.initTree()},taskOfContextIsAlive:function(){this.detailsOpen=this.taskOfContextIsAlive}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_NODE,this.showNodeListener),window.addEventListener("resize",this.outContainerResized),this.initTree()},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NODE,this.showNodeListener),window.removeEventListener("resize",this.outContainerResized)}},On=En,Ln=(n("a663"),Object(y["a"])(On,Ht,Xt,!1,null,null,null));Ln.options.__file="KlabTreePane.vue";var Tn=Ln.exports,xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ot-wrapper",class:{"ot-no-timestamp":0===e.timeEvents.length||-1===e.timestamp}},[n("div",{staticClass:"ot-container",class:{"ot-active-timeline":e.isVisible,"ot-docked":e.isMainControlDocked}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-player"},[n("q-icon",{class:{"cursor-pointer":e.timestamp0},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.onClick(t,function(){e.changeTimestamp(e.scaleReference.start)})},dblclick:function(t){e.onDblClick(t,function(){e.changeTimestamp(-1)})}}},[-1===e.timestamp?n("q-icon",{staticClass:"ot-time-origin",class:{"ot-time-origin-loaded":e.timeEvents.length},attrs:{name:"mdi-circle-medium",color:"mc-main"}}):e._e(),0!==e.timeEvents.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.start))}}):e._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.startDate))])]),n("div",{ref:"ot-timeline-container",staticClass:"ot-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[n("div",{ref:"ot-timeline",staticClass:"ot-timeline",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible},on:{mousemove:e.moveOnTimeline,mouseenter:function(t){e.timelineActivated=!0},mouseleave:function(t){e.timelineActivated=!1},click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-timeline-viewer"}),e._l(e.visibleEvents,function(t){return n("div",{key:t.id+"-"+t.timestamp,staticClass:"ot-modification-container",style:{left:"calc("+e.calculatePosition(t.timestamp)+"px - 1px)"}},[n("div",{staticClass:"ot-modification"})])}),n("div",{staticClass:"ot-loaded-time",style:{width:e.engineTimestamp>0?"calc("+e.calculatePosition(e.engineTimestamp)+"px + 4px)":0}}),-1!==e.timestamp?n("div",{staticClass:"ot-actual-time",style:{left:"calc("+e.calculatePosition(e.visibleTimestamp)+"px + "+(e.timestamp===e.scaleReference.end?"0":"1")+"px)"}}):e._e(),0!==e.timeEvents.length?n("q-tooltip",{staticClass:"ot-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)]),n("div",{staticClass:"ot-date-container"},[n("div",{staticClass:"ot-date ot-date-end col",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible,"ot-date-loaded":e.engineTimestamp===e.scaleReference.end},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.changeTimestamp(e.scaleReference.end)}}},[0!==e.timeEvents.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.end))}}):e._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.endDate))])])])]),e.isMainControlDocked?n("observation-time"):e._e()],1)},Rn=[];xn._withStripped=!0;var kn=n("b8c1"),zn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.timeEvents.length>0?n("transition",{attrs:{name:"fade"}},[n("div",{staticClass:"otv-now",class:{"otv-novisible":-1===e.timestamp,"otv-docked":e.isMainControlDocked,"otv-running":e.isTimeRunning},domProps:{innerHTML:e._s(e.formattedTimestamp)}})]):e._e()},Pn=[];zn._withStripped=!0;var Nn={name:"ObservationTime",data:function(){return{formattedTimestamp:void 0}},computed:s()({},Object(a["c"])("data",["timestamp","timeEvents"]),Object(a["c"])("view",["isMainControlDocked","isTimeRunning"])),methods:{formatTimestamp:function(){if(-1===this.timestamp)this.formattedTimestamp=this.$t("label.noTimeSet");else{var e=_t()(this.timestamp);this.formattedTimestamp="".concat(e.format("L")," ").concat(e.format("HH:mm:ss:SSS"))}}},watch:{timestamp:function(){this.formatTimestamp()}},created:function(){this.formatTimestamp()}},In=Nn,Dn=(n("8622"),Object(y["a"])(In,zn,Pn,!1,null,null,null));Dn.options.__file="ObservationTime.vue";var Bn=Dn.exports,qn={name:"ObservationsTimeline",components:{ObservationTime:Bn},mixins:[kn["a"]],data:function(){var e=this;return{timelineActivated:!1,moveOnTimelineFunction:Object(Ce["a"])(function(t){e.timelineActivated&&(e.timelineDate=e.formatDate(e.getDateFromPosition(t)))},300),timelineDate:null,timelineContainer:void 0,timelineLeft:void 0,visibleTimestamp:-1,playTimer:null,interval:void 0,speedMultiplier:1,selectSpeed:!1,pressTimer:null,longPress:!1}},computed:s()({},Object(a["c"])("data",["scaleReference","schedulingResolution","timeEvents","timestamp","modificationsTask","hasContext","visibleEvents","engineTimestamp"]),Object(a["c"])("stomp",["tasks"]),Object(a["c"])("view",["isMainControlDocked"]),{startDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.start,!0):""},endDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.end,!0):""},isVisible:function(){return this.visibleEvents.length>0}}),methods:s()({},Object(a["b"])("data",["setTimestamp","setModificationsTask"]),Object(a["b"])("view",["setTimeRunning"]),{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===e)return"";var i=_t()(e);return t?i.format("DD MMM YYYY"):'
'.concat(i.format("L")).concat(n?" - ":"
").concat(i.format("HH:mm:ss:SSS"),"
")},calculatePosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=Math.floor((e-this.scaleReference.start)*this.timelineContainer.clientWidth/(this.scaleReference.end-this.scaleReference.start));return t},moveOnTimeline:function(e){this.moveOnTimelineFunction(e)},getDateFromPosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=this.timelineContainer.clientWidth,n=e.clientX-this.timelineContainer.getBoundingClientRect().left,i=this.scaleReference.start+n*(this.scaleReference.end-this.scaleReference.start)/t;return i>this.scaleReference.end?i=this.scaleReference.end:ithis.scaleReference.end?(this.visibleTimestamp=this.scaleReference.end,this.setTimestamp(this.scaleReference.end)):(this.visibleTimestamp=e,this.setTimestamp(e)))},stop:function(){clearInterval(this.playTimer),this.playTimer=null},run:function(){var e=this;if(null!==this.playTimer)this.stop();else{this.interval||this.calculateInterval(),-1===this.timestamp&&this.changeTimestamp(this.scaleReference.start);var t={start:this.timestamp,stop:this.timestamp+this.interval.buffer};this.playTimer=setInterval(function(){e.changeTimestamp(Math.floor(e.timestamp+e.interval.step)),e.$nextTick(function(){e.timestamp>=e.scaleReference.end?e.stop():e.timestamp>t.stop-e.interval.step&&e.timestamp<=e.scaleReference.end&&(t={start:e.timestamp,stop:e.timestamp+e.interval.buffer},e.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t))})},this.interval.interval),this.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t)}},calculateInterval:function(){if(this.scaleReference&&this.schedulingResolution){var e=1,t=this.calculatePosition(this.scaleReference.start+this.schedulingResolution);t>1&&(e=t);var n=(this.schedulingResolution||c["L"].DEFAULT_STEP)/e,i=(this.scaleReference.end-this.scaleReference.start)/n,o=Math.max(document.body.clientHeight,document.body.clientWidth),r=(this.scaleReference.end-this.scaleReference.start)/4,s=o/e;s*ic["L"].MAX_PLAY_TIME&&(s=c["L"].MAX_PLAY_TIME/i),s/=this.speedMultiplier,this.interval={step:n,steps:i,interval:s,buffer:r,multiplier:this.speedMultiplier},console.info("Step: ".concat(this.interval.step,"; Steps: ").concat(this.interval.steps,"; Interval: ").concat(this.interval.interval,"; Buffer: ").concat(this.interval.buffer))}},startPress:function(){var e=this;this.longPress=!1,this.pressTimer?(clearInterval(this.pressTimer),this.pressTimer=null):this.pressTimer=setTimeout(function(){e.selectSpeed=!0,e.longPress=!0},600)},stopPress:function(){clearInterval(this.pressTimer),this.pressTimer=null,!this.longPress&&this.timestamp0&&this.modificationsTask){var n=e.find(function(e){return e.id===t.modificationsTask.id});n&&!n.alive&&this.setModificationsTask(null)}},visibleEvents:function(){0===this.visibleEvents.length&&null!==this.playTimer&&this.stop()},timestamp:function(e,t){!this.isMainControlDocked||-1!==e&&-1!==t||(this.timelineContainer=void 0)},playTimer:function(){this.setTimeRunning(null!==this.playTimer)}},mounted:function(){this.timelineDate=this.startTime,this.visibleTimestamp=this.timestamp,_t.a.locale(window.navigator.userLanguage||window.navigator.language),this.$eventBus.$on(c["h"].NEW_SCHEDULING,this.calculateInterval)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEW_SCHEDULING,this.calculateInterval)},destroyed:function(){this.stop()}},jn=qn,Wn=(n("31da"),Object(y["a"])(jn,xn,Rn,!1,null,null,null));Wn.options.__file="ObservationsTimeline.vue";var Fn,Hn=Wn.exports,Xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-menu-component kp-container",attrs:{id:"klab-log-pane"}},[n("div",{staticClass:"klp-level-selector"},[n("ul",e._l(e.LOG_ICONS,function(t,i,o){return n("li",{key:o,class:{"klp-selected":e.hasLevel(i)}},[n("q-btn",{staticClass:"klp-chip",attrs:{dense:"",size:"sm",icon:t.icon,color:t.color},on:{click:function(t){e.toggleLevel(i)}}},[n("q-tooltip",{attrs:{delay:600,offset:[0,5]}},[e._v(e._s(e.$t(t.i18nlabel)))])],1)],1)}))]),n("q-list",{staticClass:"no-padding no-border",attrs:{dense:"",dark:"",id:"log-container"}},[0!==e.logs.length?e._l(e.logs,function(t,i){return n("q-item",{key:i,staticClass:"log-item q-pa-xs"},[e.isSeparator(t)?[n("q-item-main",{staticClass:"klp-separator"},[n("span",[e._v(e._s(e.$t("label.contextReset")))])])]:[n("q-item-side",[n("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:e.logColorAndIcon(t).icon,color:e.logColorAndIcon(t).color}})],1),n("q-item-main",[n("q-item-tile",[e._v(e._s(e.logText(t)))])],1)]],2)}):[n("q-item",{staticClass:"log-item log-no-items q-pa-xs"},[n("q-item-side",[n("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:0===e.levels.length?"mdi-alert-outline":"mdi-information-outline"}})],1),n("q-item-main",[n("q-item-tile",[e._v(e._s(0===e.levels.length?e.$t("messages.noLevelSelected"):e.$t("messages.noLogItems")))])],1)],1)]],2)],1)},Un=[];Xn._withStripped=!0;var Vn=(Fn={},p()(Fn,T["a"].TYPE_ERROR,{i18nlabel:"label.levelError",icon:"mdi-close-circle",color:"negative"}),p()(Fn,T["a"].TYPE_WARNING,{i18nlabel:"label.levelWarning",icon:"mdi-alert",color:"warning"}),p()(Fn,T["a"].TYPE_INFO,{i18nlabel:"label.levelInfo",icon:"mdi-information",color:"info"}),p()(Fn,T["a"].TYPE_DEBUG,{i18nlabel:"label.levelDebug",icon:"mdi-console-line",color:"grey-6"}),p()(Fn,T["a"].TYPE_ENGINEEVENT,{i18nlabel:"label.levelEngineEvent",icon:"mdi-cog-outline",color:"secondary"}),Fn),Gn={name:"KLabLogPane",data:function(){return{scrollBar:null,log:null,LOG_ICONS:Vn}},computed:s()({},Object(a["c"])("view",["klabLogReversedAndFiltered","levels"]),{logs:function(){return 0===this.levels.length?[]:this.klabLogReversedAndFiltered(5===this.levels.length?[]:this.levels)}}),methods:s()({},Object(a["b"])("view",["setLevels","toggleLevel"]),{logText:function(e){if(e&&e.payload){if(e.type===T["a"].TYPE_ENGINEEVENT){var t=e.time;return e.payload.timestamp&&(t=_t()(e.payload.timestamp)),"".concat(t.format("HH:mm:ss"),": ").concat(this.$t("engineEventLabels.evt".concat(e.payload.type))," ").concat(e.payload.started?"started":"stopped")}return"".concat(e.time?e.time.format("HH:mm:ss"):this.$t("messages.noTime"),": ").concat(e.payload)}return this.$t("label.klabNoMessage")},logColorAndIcon:function(e){var t=Vn[e.type];return t?Vn[e.type]:(console.warn("Log type: ".concat(e.type),e),Vn.Error)},isSeparator:function(e){return e&&e.payload&&e.payload.separator},hasLevel:function(e){return-1!==this.levels.indexOf(e)}}),mounted:function(){this.scrollBar=new be(document.getElementById("klab-log-pane"))}},Kn=Gn,$n=(n("f58f"),Object(y["a"])(Kn,Xn,Un,!1,null,null,null));$n.options.__file="KlabLogPane.vue";var Yn=$n.exports,Jn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sb-scales"},[e.hasNextScale()?n("div",{staticClass:"klab-button klab-action klab-mdi-next-scale"},[n("q-icon",{attrs:{name:"mdi-refresh",color:"mc-yellow"},nativeOn:{click:function(t){return e.rescaleContext(t)}}},[n("q-tooltip",{attrs:{delay:600,anchor:e.anchorType,self:e.selfType,offset:e.offsets}},[e._v(e._s(e.$t("tooltips.refreshScale")))])],1)],1):e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.showSpaceScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("space",!0)},mouseleave:function(t){e.toggleScalePopup("space",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_SPACE}}}},[n("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_SPACE)},attrs:{name:"mdi-earth"}},[n("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showSpaceScalePopup,callback:function(t){e.showSpaceScalePopup=t},expression:"showSpaceScalePopup"}},[n("div",{staticClass:"mc-scalereference",attrs:{id:"mc-spacereference"}},[n("scale-reference",{attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_SPACE)?n("scale-reference",{staticClass:"sb-next-scale",attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space","use-next":!0,light:!0,editable:!1}}):e._e(),n("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_SPACE})))])],1)])],1)],1),n("div",{staticClass:"klab-button klab-action",class:[{active:e.showTimeScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("time",!0)},mouseleave:function(t){e.toggleScalePopup("time",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_TIME}}}},[n("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_TIME)},attrs:{name:"mdi-clock"}},[n("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showTimeScalePopup,callback:function(t){e.showTimeScalePopup=t},expression:"showTimeScalePopup"}},[n("div",{staticClass:"mc-scalereference",attrs:{id:"mc-timereference"}},[n("scale-reference",{attrs:{width:e.timeWidth?e.timeWidth:e.scaleWidth,"scale-type":"time",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_TIME)?n("scale-reference",{staticClass:"sb-next-scale",attrs:{width:"timeWidth ? timeWidth : scaleWidth","scale-type":"time",light:!0,editable:!1,"use-next":!0}}):e._e(),n("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_TIME})))])],1)])],1)],1)])},Qn=[];Jn._withStripped=!0;var Zn={name:"ScaleButtons",components:{ScaleReference:Et},props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:8},scaleWidth:{type:String,default:"140px"},timeWidth:{type:String,default:void 0},spaceWidth:{type:String,default:void 0}},data:function(){return{showSpaceScalePopup:!1,showTimeScalePopup:!1,anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],SCALE_TYPE:c["B"]}},computed:s()({},Object(a["c"])("data",["nextScale","hasNextScale","scaleReference","contextId"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){var t=e.active,n=e.type;this.$store.dispatch("view/setScaleEditing",{active:t,type:n})}}}),methods:{toggleScalePopup:function(e,t){"space"===e?(this.showSpaceScalePopup=t,this.showTimeScalePopup=!1):"time"===e&&(this.showSpaceScalePopup=!1,this.showTimeScalePopup=t)},rescaleContext:function(){this.hasNextScale()&&this.sendStompMessage(l["a"].SCALE_REFERENCE(s()({scaleReference:this.scaleReference,contextId:this.contextId},this.hasNextScale(c["B"].ST_SPACE)&&{spaceResolution:this.nextScale.spaceResolutionConverted,spaceUnit:this.nextScale.spaceUnit},this.hasNextScale(c["B"].ST_TIME)&&{timeResolutionMultiplier:this.nextScale.timeResolutionMultiplier,timeUnit:this.nextScale.timeUnit,start:this.nextScale.start,end:this.nextScale.end}),this.$store.state.data.session).body)},noTimeScaleChange:function(){this.$q.notify({message:this.$t("messages.availableInFuture"),type:"info",icon:"mdi-information",timeout:1e3})}}},ei=Zn,ti=(n("1817"),Object(y["a"])(ei,Jn,Qn,!1,null,null,null));ti.options.__file="ScaleButtons.vue";var ni=ti.exports,ii=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kvs-container"},[n("div",{staticClass:"klab-button klab-action",class:{disabled:0===e.knowledgeViews.length}},[n("div",{staticClass:"kvs-button mdi mdi-text-box-multiple float-left"}),e.docked?e._e():n("q-icon",{staticClass:"float-left klab-item",staticStyle:{padding:"3px 0 0 8px"},attrs:{name:"mdi-chevron-down"}},[e.hasNew?n("span",{staticClass:"klab-button-notification"}):e._e()]),n("q-tooltip",{attrs:{offset:[8,0],self:e.selfTooltipType,anchor:e.anchorTooltipType,delay:600}},[e._v(e._s(0===e.knowledgeViews.length?e.$t("tooltips.noKnowledgeViews"):e.$t("tooltips.knowledgeViews")))])],1),n("q-popover",{staticClass:"kvs-popover",attrs:{disable:0===e.knowledgeViews.length,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.kvListOpen,callback:function(t){e.kvListOpen=t},expression:"kvListOpen"}},[n("div",{staticClass:"kvs-popover-container"},[n("q-list",{staticClass:"kvs-list",attrs:{link:"","no-border":"",dense:"",dark:""}},e._l(e.knowledgeViews,function(t){return n("q-item",{key:t.viewId,nativeOn:{click:function(n){e.selectKnowledgeView(t.viewId)}}},[n("q-item-side",{attrs:{icon:e.KNOWLEDGE_VIEWS.find(function(e){return e.viewClass===t.viewClass}).icon}}),n("q-item-main",[n("div",[e._v(e._s(t.label))])]),n("q-tooltip",{ref:"kv-tooltip-"+t.viewId,refInFor:!0,attrs:{offset:[8,0],self:"center left",anchor:"center right"}},[e._v(e._s(t.title))])],1)}))],1)])],1)},oi=[];ii._withStripped=!0;var ri={name:"KnoledgeViewsSelector",props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:0}},data:function(){return{anchorTooltipType:this.docked?"bottom left":"center right",selfTooltipType:this.docked?"top left":"center left",offsetTooltip:this.docked?[0,this.offset]:[this.offset,0],anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],kvListOpen:!1,hasNew:!1,KNOWLEDGE_VIEWS:c["t"]}},computed:s()({},Object(a["c"])("data",["knowledgeViews"]),{knowledgeViewsLength:function(){return this.knowledgeViews.length}}),methods:s()({},Object(a["b"])("data",["showKnowledgeView"]),{selectKnowledgeView:function(e){var t=this;this.showKnowledgeView(e),this.$nextTick(function(){t.kvListOpen=!1;var n=t.$refs["kv-tooltip-".concat(e)];n&&n.length>0&&n[0].hide()})}}),watch:{knowledgeViewsLength:function(e,t){e>t&&(this.hasNew=!0)},kvListOpen:function(){this.kvListOpen&&this.hasNew&&(this.hasNew=!1)}}},si=ri,ai=(n("0e44"),Object(y["a"])(si,ii,oi,!1,null,null,null));ai.options.__file="KnowledgeViewsSelector.vue";var ci=ai.exports,li=G["b"].width,ui=G["b"].height,di={top:25,left:15},hi={name:"klabMainControl",components:{KlabSpinner:M,KlabSearchBar:It,KlabBreadcrumbs:Ft,KlabTreePane:Tn,KlabLogPane:Yn,ScrollingText:gt,ScaleButtons:ni,MainActionsButtons:Te,StopActionsButtons:Ie,ObservationsTimeline:Hn,KnowledgeViewsSelector:ci},directives:{Draggable:U},mixins:[rt],data:function(){var e=this;return{isHidden:!1,dragMCConfig:{handle:void 0,resetInitialPos:!1,onPositionChange:Object(Ce["a"])(function(t,n,i){e.onDebouncedPositionChanged(i)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkWhereWasDragged,fingers:2},correctedPosition:{top:0,left:0},defaultLeft:di.left,defaultTop:di.top,centeredLeft:di.left,dragging:!1,wasMoved:!1,askForDocking:!1,leftMenuMaximized:"".concat(c["u"].LEFTMENU_MAXSIZE,"px"),boundingElement:void 0,selectedTab:"klab-tree-pane",draggableElement:void 0,draggableElementWidth:0,kvListOpen:!1,KNOWLEDGE_VIEWS:c["t"]}},computed:s()({},Object(a["c"])("data",["hasContext","contextHasTime","knowledgeViews"]),Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["spinnerColor","searchIsFocused","searchIsActive","isDrawMode","fuzzyMode","largeMode","windowSide","layout","hasHeader"]),{qCardStyle:function(){return{top:"".concat(this.defaultTop+this.correctedPosition.top,"px"),left:"".concat(this.centeredLeft+this.correctedPosition.left,"px"),"margin-top":"-".concat(this.correctedPosition.top,"px"),"margin-left":"-".concat(this.correctedPosition.left,"px")}}}),methods:s()({},Object(a["b"])("view",["setMainViewer","setLargeMode","searchStart","searchFocus","setWindowSide","setObservationInfo"]),{callStartType:function(e){this.searchIsFocused?e.evt.stopPropagation():this.$refs["klab-search-bar"].startType(e)},onDebouncedPositionChanged:function(e){this.askForDocking=!!(this.hasContext&&this.dragging&&null===this.layout&&e&&e.x<=30+this.correctedPosition.left)},hide:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!0},show:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!1},getRightLeft:function(){var e=li(this.boundingElement);return e-this.draggableElement.offsetWidth-di.left+this.correctedPosition.left},getCenteredLeft:function(){var e;if("undefined"===typeof this.draggableElement||this.hasContext)e=this.defaultLeft;else{var t=this.draggableElementWidth,n=li(this.boundingElement);e=(n-t)/2}return e+this.correctedPosition.left},changeDraggablePosition:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(e.top+=this.correctedPosition.top,e.left+=this.correctedPosition.left),this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var n=JSON.parse(this.dragMCConfig.handle.getAttribute("draggable-state"));n.startDragPosition=e,n.currentDragPosition=e;var i=document.querySelector(".mc-q-card-title");i?i.setAttribute("draggable-state",JSON.stringify(n)):this.dragMCConfig.handle.setAttribute("draggable-state",JSON.stringify(n))},checkWhereWasDragged:function(){if(this.dragging=!1,this.askForDocking)return this.askForDocking=!1,this.setMainViewer(c["M"].DOCKED_DATA_VIEWER),void this.setObservationInfo(null);this.draggableElement.offsetTop<0&&this.changeDraggablePosition({top:0,left:Math.max(this.draggableElement.offsetLeft,0)}),this.draggableElement.offsetLeft+this.draggableElement.offsetWidth<=0&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:0}),this.draggableElement.offsetLeft>=li(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:Math.max(li(this.boundingElement)-this.draggableElement.offsetWidth,0)}),this.draggableElement.offsetTop>=ui(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(ui(this.boundingElement)-this.draggableElement.offsetHeight,0),left:Math.max(this.draggableElement.offsetLeft,0)})},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},mapSizeChangedListener:function(e){var t=this;if(e&&"changelayout"===e.type)return e.align&&this.setWindowSide(e.align),this.updateCorrectedPosition(),void this.$nextTick(function(){t.changeDraggablePosition({left:t.hasContext?"left"===t.windowSide?t.defaultLeft:t.getRightLeft():t.getCenteredLeft(),top:t.defaultTop},!1)});this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop},this.checkWhereWasDragged()},spinnerDoubleClickListener:function(){this.hide()},updateCorrectedPosition:function(){var e=document.querySelector(".kapp-header-container"),t=document.querySelector(".kapp-left-container aside"),n=e?ui(e):0,i=t?li(t):0;this.correctedPosition={top:n,left:i},this.defaultTop=di.top+n,this.defaultLeft=di.left+i,this.centeredLeft=this.getCenteredLeft()},updateDraggable:function(){this.updateCorrectedPosition(),this.draggableElement=document.querySelector(".kexplorer-main-container .mc-q-card"),this.draggableElementWidth=li(this.draggableElement),this.dragMCConfig.handle=document.querySelector(".kexplorer-main-container .mc-q-card-title"),this.boundingElement=document.querySelector(".kexplorer-container"),this.centeredLeft=this.getCenteredLeft(),this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop}},focusSearch:function(e){this.moved||e&&e.target.classList&&(e.target.classList.contains("mcm-button")||e.target.classList.contains("q-icon")||e.target.classList.contains("q-btn")||e.target.classList.contains("q-btn-inner"))||(this.searchIsActive?this.searchIsFocused||this.searchFocus({focused:!0}):this.searchStart(""))}}),watch:{hasContext:function(){var e=this;this.setLargeMode(0),this.$nextTick(function(){e.changeDraggablePosition({top:e.defaultTop,left:e.hasContext?"left"===e.windowSide?e.defaultLeft:e.getRightLeft():e.getCenteredLeft()},!1)})},largeMode:function(){var e=this;this.hasContext||this.$nextTick(function(){var t=c["g"].SEARCHBAR_INCREMENT*e.largeMode/2;if(t>=0){var n=parseFloat(e.draggableElement.style.left),i=n-e.getCenteredLeft();i%(c["g"].SEARCHBAR_INCREMENT/2)===0&&e.changeDraggablePosition({top:parseFloat(e.draggableElement.style.top),left:e.getCenteredLeft()-t},!1)}})}},created:function(){this.defaultTop=di.top,this.defaultLeft=di.left,this.VIEWERS=c["M"]},mounted:function(){this.updateDraggable(),this.$eventBus.$on(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$on(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$off(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)}},pi=hi,fi=(n("96fa"),Object(y["a"])(pi,Me,we,!1,null,null,null));fi.options.__file="KlabMainControl.vue";var mi=fi.exports,gi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"no-padding relative-position full-width"},e._l(e.dataViewers,function(t){return n("div",{key:t.idx,class:["no-padding",t.main?"absolute-top full-height full-width":"absolute thumb-view"],style:e.viewerStyle(t),attrs:{id:"dv-viewer-"+t.idx}},[t.main?e._e():n("div",{staticClass:"thumb-viewer-title absolute-top"},[n("div",{staticClass:"relative-position"},[n("div",{staticClass:"thumb-viewer-label float-left q-ma-sm",class:[t.type.hideable?"thumb-closable":""]},[e._v("\n "+e._s(e.capitalize(t.label))+"\n ")]),n("div",{staticClass:"float-right q-ma-xs thumb-viewer-button"},[n("q-btn",{staticClass:"shadow-1",attrs:{round:"",color:"mc-main",size:"xs",icon:"mdi-chevron-up"},on:{click:function(n){e.setMain(t.idx)}}}),t.type.hideable?n("q-btn",{staticClass:"shadow-1 thumb-close",attrs:{round:"",color:"black",size:"xs",icon:"mdi-close"},on:{click:function(n){e.closeViewer(t)}}}):e._e()],1)])]),n(t.type.component,{tag:"component",attrs:{idx:t.idx}})],1)}))},vi=[];gi._withStripped=!0;var bi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"upload-files",rawName:"v-upload-files",value:e.uploadConfig,expression:"uploadConfig"}],staticClass:"fit no-padding map-viewer"},[n("div",{ref:"map"+e.idx,staticClass:"fit",class:{"mv-exploring":e.exploreMode||null!==e.topLayer},attrs:{id:"map"+e.idx}}),n("q-icon",{staticClass:"map-selection-marker",attrs:{name:e.mapSelection.locked?"mdi-image-filter-center-focus":"mdi-crop-free",id:"msm-"+e.idx}}),n("q-resize-observable",{on:{resize:e.handleResize}}),e.isDrawMode?n("map-drawer",{attrs:{map:e.map},on:{drawend:e.sendSpatialLocation}}):e._e(),n("q-modal",{attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["gl-msg-content"]},model:{value:e.waitingGeolocation,callback:function(t){e.waitingGeolocation=t},expression:"waitingGeolocation"}},[n("div",{staticClass:"bg-opaque-white"},[n("div",{staticClass:"q-pa-xs"},[n("h5",[e._v(e._s(e.$t("messages.geolocationWaitingTitle")))]),n("p",{domProps:{innerHTML:e._s(e.$t("messages.geolocationWaitingText"))}}),n("p",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],staticClass:"gl-incidence"},[e._v(e._s(e.geolocationIncidence))]),n("div",{staticClass:"gl-btn-container"},[n("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],attrs:{label:e.$t("label.appRetry"),color:"primary"},on:{click:e.retryGeolocation}}),n("q-btn",{attrs:{label:e.$t("label.appCancel"),color:"mc-main"},on:{click:function(t){e.stopGeolocation(!0)}}})],1)])])]),n("q-modal",{attrs:{"no-route-dismiss":!0,"no-esc-dismiss":!0,"no-backdrop-dismiss":!0},model:{value:e.progressBarVisible,callback:function(t){e.progressBarVisible=t},expression:"progressBarVisible"}},[n("q-progress",{attrs:{percentage:e.uploadProgress,color:"mc-main",stripe:!0,animate:!0,height:"1em"}})],1),n("div",{ref:"mv-popup",staticClass:"ol-popup",attrs:{id:"mv-popup"}},[n("q-btn",{staticClass:"ol-popup-closer",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closePopup}}),n("div",{staticClass:"ol-popup-content",attrs:{id:"mv-popup-content"},domProps:{innerHTML:e._s(e.popupContent)}})],1),n("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),n("div",{staticClass:"mv-extent-map",class:{"mv-extent-map-hide":!e.hasExtentMap},attrs:{id:"mv-extent-map"}}),e.hasContext||null===e.proposedContext?e._e():n("q-btn",{staticClass:"mv-remove-proposed-context",style:null!==e.proposedContextCenter?e.proposedContextCenter:{},attrs:{icon:"mdi-close",size:"lg",round:""},nativeOn:{click:function(t){e.sendSpatialLocation(null)}}})],1)},yi=[];bi._withStripped=!0;var _i="".concat("").concat(T["c"].REST_UPLOAD),Mi="1024MB",wi=Mi.substr(Mi.length-2),Ci="KB"===wi?1:"MB"===wi?2:"GB"===wi?3:"PB"===wi?4:0,Si=parseInt(Mi.substring(0,Mi.length-2),10)*Math.pow(1024,Ci);function Ai(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}var Ei=He["a"].directive("upload",{inserted:function(e,t){if(Ai()){var n=t.value&&t.value.onUploadProgress&&"function"===typeof t.value.onUploadProgress?t.value.onUploadProgress:function(){},i=t.value&&t.value.onUploadEnd&&"function"===typeof t.value.onUploadEnd?t.value.onUploadEnd:function(){console.debug("Upload complete")},o=t.value&&t.value.onUploadError&&"function"===typeof t.value.onUploadError?t.value.onUploadError:function(e){console.error(JSON.stringify(e,null,4))};["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){e.addEventListener(t,function(e){e.preventDefault(),e.stopPropagation()},!1)}),e.addEventListener("drop",function(e){var r=e.dataTransfer.files;if(null!==r&&0!==r.length){for(var s=new FormData,a=[],c=0;cSi?o("File is too large, max sixe is ".concat(Mi)):(s.append("files[]",r[c]),a.push(r[c].name));"undefined"!==typeof t.value.refId&&null!==t.value.refId&&s.append("refId",t.value.refId||null),L["a"].post(_i,s,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){n(parseInt(Math.round(100*e.loaded/e.total),10))}}).then(function(){i(null!==r&&a.length>0?a.join(", "):null)}).catch(function(e){o(e,null!==r&&a.length>0?a.join(", "):null)})}})}}}),Oi=n("256f"),Li=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragDCConfig,expression:"dragDCConfig"}],staticClass:"md-draw-controls"},[n("div",{staticClass:"md-title"},[e._v("Draw mode")]),n("div",{staticClass:"md-controls"},[n("q-icon",{staticClass:"md-control md-ok",attrs:{name:"mdi-check-circle-outline"},nativeOn:{click:function(t){e.drawOk()}}}),n("q-icon",{staticClass:"md-control md-erase",class:[e.hasCustomContextFeatures?"":"disabled"],attrs:{name:"mdi-delete-variant"},nativeOn:{click:function(t){e.hasCustomContextFeatures&&e.drawErase()}}}),n("q-icon",{staticClass:"md-control md-cancel",attrs:{name:"mdi-close-circle-outline"},nativeOn:{click:function(t){e.drawCancel()}}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.selectors,expression:"selectors"}],staticClass:"md-selector"},[n("q-btn-toggle",{attrs:{"toggle-color":"mc-main",size:"md",options:[{tabindex:1,icon:"mdi-vector-point",value:"Point",disable:!0},{tabindex:2,icon:"mdi-vector-line",value:"LineString",disable:!0},{tabindex:3,icon:"mdi-vector-polygon",value:"Polygon"},{tabindex:4,icon:"mdi-vector-circle-variant",value:"Circle"}]},model:{value:e.drawType,callback:function(t){e.drawType=t},expression:"drawType"}})],1)])},Ti=[];Li._withStripped=!0;var xi=n("a27f"),Ri=n("3e6b"),ki=n("5831"),zi=n("6c77"),Pi=n("83a6"),Ni=n("8682"),Ii=n("ce2c"),Di=n("ac29"),Bi=n("c807"),qi=n("4cdf"),ji=n("f822"),Wi=n("5bc3"),Fi={name:"MapDrawer",props:{map:{type:Object,required:!0},selectors:{type:Boolean,required:!1,default:!0},fillColor:{type:String,required:!1,default:"rgba(17, 170, 187, 0.3)"},strokeColor:{type:String,required:!1,default:"rgb(17, 170, 187)"},strokeWidth:{type:Number,required:!1,default:2},pointRadius:{type:Number,required:!1,default:5}},data:function(){return{drawerLayer:void 0,drawer:void 0,drawerModify:void 0,dragDCConfig:{resetInitialPos:!0},drawType:"Polygon"}},computed:{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0}},methods:s()({},Object(a["b"])("view",["setDrawMode"]),{drawOk:function(){var e=this.drawerLayer.getSource().getFeatures().filter(function(e){return null!==e.getGeometry()}),t=e.length,n=[];if(0!==t){for(var i=null,o=0;o0&&e.pop(),this.drawerLayer.getSource().clear(!0),this.drawerLayer.getSource().addFeatures(e)},drawCancel:function(){this.$emit("drawcancel"),this.drawerLayer.getSource().clear(),this.setDrawMode(!1)},setDrawer:function(){var e=this;this.drawer=new Di["a"]({source:this.drawerLayer.getSource(),type:this.drawType}),this.drawer.on("drawend",function(t){var n=Object(Xe["j"])(t.feature.getGeometry());Object(Xe["i"])(n)||(e.$q.notify({message:e.$t("messages.invalidGeometry"),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),t.feature.setGeometry(null))}),this.map.addInteraction(this.drawer)}}),watch:{drawType:function(){this.map.removeInteraction(this.drawer),this.setDrawer()}},directives:{Draggable:xi["Draggable"]},mounted:function(){var e=new ki["a"];this.drawerModify=new Bi["a"]({source:e}),this.drawerLayer=new Ri["a"]({id:"DrawerLayer",source:e,visible:!0,style:new zi["c"]({fill:new Pi["a"]({color:this.fillColor}),stroke:new Ni["a"]({color:this.strokeColor,width:this.strokeWidth}),image:new Ii["a"]({radius:this.pointRadius,fill:new Pi["a"]({color:this.strokeColor})})})}),this.dragDCConfig.boundingElement=document.getElementById(this.map.get("target")),this.map.addLayer(this.drawerLayer),this.map.addInteraction(this.drawerModify),this.setDrawer()},beforeDestroy:function(){this.map.removeInteraction(this.drawer),this.map.removeInteraction(this.drawerModify),this.drawerLayer.getSource().clear(!0)}},Hi=Fi,Xi=(n("37a9"),Object(y["a"])(Hi,Li,Ti,!1,null,null,null));Xi.options.__file="MapDrawer.vue";var Ui=Xi.exports,Vi=n("e300"),Gi=n("9c78"),Ki=n("c810"),$i=n("592d"),Yi=n("e269"),Ji={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},Qi=n("cd7e"),Zi=n("0999"),eo=n("1e8d"),to=n("0af5"),no={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},io=function(e){function t(t){e.call(this),this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+Qi["d"],this.element.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.autoPanAnimation=t.autoPanAnimation||{},this.autoPanMargin=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},this.mapPostrenderListenerKey=null,Object(eo["a"])(this,Object(Yi["b"])(no.ELEMENT),this.handleElementChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.MAP),this.handleMapChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.OFFSET),this.handleOffsetChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.POSITION),this.handlePositionChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.POSITIONING),this.handlePositioningChanged,this),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(void 0!==t.positioning?t.positioning:Ji.TOP_LEFT),void 0!==t.position&&this.setPosition(t.position)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getElement=function(){return this.get(no.ELEMENT)},t.prototype.getId=function(){return this.id},t.prototype.getMap=function(){return this.get(no.MAP)},t.prototype.getOffset=function(){return this.get(no.OFFSET)},t.prototype.getPosition=function(){return this.get(no.POSITION)},t.prototype.getPositioning=function(){return this.get(no.POSITIONING)},t.prototype.handleElementChanged=function(){Object(Zi["d"])(this.element);var e=this.getElement();e&&this.element.appendChild(e)},t.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(Zi["e"])(this.element),Object(eo["e"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var e=this.getMap();if(e){this.mapPostrenderListenerKey=Object(eo["a"])(e,$i["a"].POSTRENDER,this.render,this),this.updatePixelPosition();var t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element)}},t.prototype.render=function(){this.updatePixelPosition()},t.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},t.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(no.POSITION)&&this.autoPan&&this.panIntoView()},t.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},t.prototype.setElement=function(e){this.set(no.ELEMENT,e)},t.prototype.setMap=function(e){this.set(no.MAP,e)},t.prototype.setOffset=function(e){this.set(no.OFFSET,e)},t.prototype.setPosition=function(e){this.set(no.POSITION,e)},t.prototype.panIntoView=function(){var e=this.getMap();if(e&&e.getTargetElement()){var t=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),i=this.getRect(n,[Object(Zi["c"])(n),Object(Zi["b"])(n)]),o=this.autoPanMargin;if(!Object(to["g"])(t,i)){var r=i[0]-t[0],s=t[2]-i[2],a=i[1]-t[1],c=t[3]-i[3],l=[0,0];if(r<0?l[0]=r-o:s<0&&(l[0]=Math.abs(s)+o),a<0?l[1]=a-o:c<0&&(l[1]=Math.abs(c)+o),0!==l[0]||0!==l[1]){var u=e.getView().getCenter(),d=e.getPixelFromCoordinate(u),h=[d[0]+l[0],d[1]+l[1]];e.getView().animate({center:e.getCoordinateFromPixel(h),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},t.prototype.getRect=function(e,t){var n=e.getBoundingClientRect(),i=n.left+window.pageXOffset,o=n.top+window.pageYOffset;return[i,o,i+t[0],o+t[1]]},t.prototype.setPositioning=function(e){this.set(no.POSITIONING,e)},t.prototype.setVisible=function(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)},t.prototype.updatePixelPosition=function(){var e=this.getMap(),t=this.getPosition();if(e&&e.isRendered()&&t){var n=e.getPixelFromCoordinate(t),i=e.getSize();this.updateRenderedPosition(n,i)}else this.setVisible(!1)},t.prototype.updateRenderedPosition=function(e,t){var n=this.element.style,i=this.getOffset(),o=this.getPositioning();this.setVisible(!0);var r=i[0],s=i[1];if(o==Ji.BOTTOM_RIGHT||o==Ji.CENTER_RIGHT||o==Ji.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=n.left="");var a=Math.round(t[0]-e[0]-r)+"px";this.rendered.right_!=a&&(this.rendered.right_=n.right=a)}else{""!==this.rendered.right_&&(this.rendered.right_=n.right=""),o!=Ji.BOTTOM_CENTER&&o!=Ji.CENTER_CENTER&&o!=Ji.TOP_CENTER||(r-=this.element.offsetWidth/2);var c=Math.round(e[0]+r)+"px";this.rendered.left_!=c&&(this.rendered.left_=n.left=c)}if(o==Ji.BOTTOM_LEFT||o==Ji.BOTTOM_CENTER||o==Ji.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=n.top="");var l=Math.round(t[1]-e[1]-s)+"px";this.rendered.bottom_!=l&&(this.rendered.bottom_=n.bottom=l)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=n.bottom=""),o!=Ji.CENTER_LEFT&&o!=Ji.CENTER_CENTER&&o!=Ji.CENTER_RIGHT||(s-=this.element.offsetHeight/2);var u=Math.round(e[1]+s)+"px";this.rendered.top_!=u&&(this.rendered.top_=n.top=u)}},t.prototype.getOptions=function(){return this.options},t}(Yi["a"]),oo=io,ro=n("b2da"),so=n.n(ro),ao=n("64d9"),co=n("f403"),lo=n("01d4"),uo=n("3900"),ho="projection",po="coordinateFormat",fo=function(e){function t(t){var n=t||{},i=document.createElement("div");i.className=void 0!==n.className?n.className:"ol-mouse-position",e.call(this,{element:i,render:n.render||mo,target:n.target}),Object(eo["a"])(this,Object(Yi["b"])(ho),this.handleProjectionChanged_,this),n.coordinateFormat&&this.setCoordinateFormat(n.coordinateFormat),n.projection&&this.setProjection(n.projection),this.undefinedHTML_=void 0!==n.undefinedHTML?n.undefinedHTML:" ",this.renderOnMouseOut_=!!this.undefinedHTML_,this.renderedHTML_=i.innerHTML,this.mapProjection_=null,this.transform_=null,this.lastMouseMovePixel_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleProjectionChanged_=function(){this.transform_=null},t.prototype.getCoordinateFormat=function(){return this.get(po)},t.prototype.getProjection=function(){return this.get(ho)},t.prototype.handleMouseMove=function(e){var t=this.getMap();this.lastMouseMovePixel_=t.getEventPixel(e),this.updateHTML_(this.lastMouseMovePixel_)},t.prototype.handleMouseOut=function(e){this.updateHTML_(null),this.lastMouseMovePixel_=null},t.prototype.setMap=function(t){if(e.prototype.setMap.call(this,t),t){var n=t.getViewport();this.listenerKeys.push(Object(eo["a"])(n,lo["a"].MOUSEMOVE,this.handleMouseMove,this),Object(eo["a"])(n,lo["a"].TOUCHSTART,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(eo["a"])(n,lo["a"].MOUSEOUT,this.handleMouseOut,this),Object(eo["a"])(n,lo["a"].TOUCHEND,this.handleMouseOut,this))}},t.prototype.setCoordinateFormat=function(e){this.set(po,e)},t.prototype.setProjection=function(e){this.set(ho,Object(Oi["g"])(e))},t.prototype.updateHTML_=function(e){var t=this.undefinedHTML_;if(e&&this.mapProjection_){if(!this.transform_){var n=this.getProjection();this.transform_=n?Object(Oi["j"])(this.mapProjection_,n):Oi["k"]}var i=this.getMap(),o=i.getCoordinateFromPixel(e);if(o){this.transform_(o,o);var r=this.getCoordinateFormat();t=r?r(o):o.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)},t}(uo["default"]);function mo(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}var go=fo,vo=n("a568"),bo=(n("c58e"),{name:"MapViewer",components:{MapDrawer:Ui,ObservationContextMenu:un},props:{idx:{type:Number,required:!0}},directives:{UploadFiles:Ei},data:function(){var e=this;return{center:this.$mapDefaults.center,zoom:this.$mapDefaults.zoom,map:null,extentMap:null,hasExtentMap:!1,view:null,movedWithContext:!1,noNewRegion:!1,layers:new Vi["a"],zIndexCounter:0,baseLayers:null,layerSwitcher:null,visibleBaseLayer:null,mapSelectionMarker:void 0,wktInstance:new ao["a"],geolocationId:null,geolocationIncidence:null,popupContent:"",popupOverlay:void 0,contextLayer:null,proposedContextLayer:null,proposedContextCenter:null,uploadConfig:{refId:null,onUploadProgress:function(t){e.uploadProgress=t},onUploadEnd:function(t){e.$q.notify({message:e.$t("messages.uploadComplete",{fileName:t}),type:"info",icon:"mdi-information",timeout:1e3}),e.uploadProgress=null},onUploadError:function(t,n){e.$q.notify({message:"".concat(e.$t("errors.uploadError",{fileName:n}),"\n").concat(t.response.data.message),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),e.uploadProgress=null}},uploadProgress:null,storedZoom:null,clicksOnMap:0,bufferingLayers:!1,lastModificationLoaded:null,previousTopLayer:null,lockedObservations:[],contextMenuObservationId:null,coordinatesControl:void 0}},computed:s()({observations:function(){return this.$store.getters["data/observationsOfViewer"](this.idx)},lockedObservationsIds:function(){return this.lockedObservations.map(function(e){return e.id})}},Object(a["c"])("data",["proposedContext","hasContext","contextId","contextLabel","session","timestamp","scaleReference","timeEvents","timeEventsOfObservation"]),Object(a["c"])("view",["contextGeometry","observationInfo","exploreMode","mapSelection","isDrawMode","topLayer","mainViewer","viewCoordinates"]),Object(a["d"])("view",["saveLocation"]),{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0},progressBarVisible:function(){return null!==this.uploadProgress},waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}}}),methods:s()({},Object(a["b"])("data",["setCrossingIDL","putObservationOnTop"]),Object(a["b"])("view",["addToKexplorerLog","setSpinner","setMapSelection","setDrawMode","setTopLayer","setShowSettings"]),{handleResize:function(){null!==this.map&&(this.map.updateSize(),this.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED))},onMoveEnd:function(){this.hasContext?this.movedWithContext=!0:this.isDrawMode||this.noNewRegion?this.noNewRegion=!1:this.sendRegionOfInterest()},sendRegionOfInterest:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.waitingGeolocation){var e=null,t=Object(Oi["l"])(this.view.getCenter(),Lt["d"].PROJ_EPSG_3857,Lt["d"].PROJ_EPSG_4326);Math.abs(t[0])>180&&(t[0]%=180,this.view.animate({center:Object(Oi["l"])(t,Lt["d"].PROJ_EPSG_4326,Lt["d"].PROJ_EPSG_3857),duration:500}));try{var n=Object(Oi["m"])(this.map.getView().calculateExtent(this.map.getSize()),"EPSG:3857","EPSG:4326");if(n[0]<-180||n[1]<-90||n[2]>180||n[3]>90)return void this.setCrossingIDL(!0);this.setCrossingIDL(!1),e=l["a"].REGION_OF_INTEREST(n,this.session)}catch(e){console.error(e),this.addToKexplorerLog({type:c["w"].TYPE_ERROR,payload:{message:e.message,attach:e}})}e&&e.body&&(this.sendStompMessage(e.body),this.saveLocation&&V["a"].set(c["P"].COOKIE_MAPDEFAULT,{center:this.view.getCenter(),zoom:this.view.getZoom()},{expires:30,path:"/",secure:!0}))}},findExistingLayerById:function(e){if(this.layers&&null!==this.layers){var t=this.layers.getArray();return t.filter(function(t){return null===t.get("id")?null===e:t.get("id").startsWith(e)})}return[]},findModificationTimestamp:function(e,t){if(-1!==t){var n=null===e?this.timeEvents:this.timeEventsOfObservation(e);return n.length>0?n.reduce(function(e,n){var i=t-n.timestamp;return i<=0?e:-1===e||i0)){e.next=7;break}if(c="".concat(n.id,"T").concat(o),l=a.find(function(e){return e.get("id")===c}),!l){e.next=7;break}return e.abrupt("return",{founds:a,layer:l});case 7:return e.prev=7,console.debug("Creating layer: ".concat(n.label," with timestamp ").concat(o)),e.next=11,Object(Ue["k"])(n,{projection:this.proj,timestamp:o,realTimestamp:s?o:this.timestamp});case 11:return u=e.sent,a&&a.length>0?u.setZIndex(n.zIndex):(this.zIndexCounter+=2,n.zIndex=this.zIndexCounter+n.zIndexOffset,u.setZIndex(n.zIndex)),this.layers.push(u),a.push(u),e.abrupt("return",{founds:a,layer:u});case 18:return e.prev=18,e.t0=e["catch"](7),console.error(e.t0.message),this.$q.notify({message:e.t0.message,type:"negative",icon:"mdi-alert-circle",timeout:3e3}),e.abrupt("return",null);case 23:case"end":return e.stop()}},e,this,[[7,18]])}));return function(t){return e.apply(this,arguments)}}(),bufferLayerImages:function(e){var t=this;e.stop>=this.scaleReference.end&&(e.stop=this.scaleReference.end-1),console.debug("Ask preload from ".concat(e.start," to ").concat(e.stop));var n=this.timeEvents.filter(function(t){return t.timestamp>e.start&&t.timestamp<=e.stop}),i=n.length;if(i>0){var o=function e(o){var r=t.observations.find(function(e){return e.id===n[o].id});r&&t.findLayerById({observation:r,timestamp:n[o].timestamp,isBuffer:!0}).then(function(t){var n=t.layer,r=n.getSource().image_;r&&0===r.state?(r.load(),n.getSource().on("imageloadend",function(t){t.image;++o125&&(this.hasExtentMap=!0,this.$nextTick(function(){e.extentMap.addLayer(e.proposedContextLayer),e.extentMap.getView().fit(e.proposedContext,{padding:[10,10,10,10],constrainResolution:!1})}))}},drawContext:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t&&(this.layers.clear(),this.lockedObservations=[],this.previousTopLayer=null,null!==this.contextLayer?(this.map.removeLayer(this.contextLayer),this.contextLayer=null):this.baseLayers.removeMask()),null===this.contextGeometry)return console.debug("No context, send region of interest"),void this.sendRegionOfInterest();this.contextGeometry instanceof Array?(this.contextLayer=new Ri["a"]({id:this.contextId,source:new ki["a"]({features:[new qi["a"]({geometry:new co["a"](this.contextGeometry),name:this.contextLabel,id:this.contextId})]}),style:Object(Xe["d"])(Lt["e"].POINT_CONTEXT_SVG_PARAM,this.contextLabel)}),this.map.addLayer(this.contextLayer),this.view.setCenter(this.contextGeometry)):(this.baseLayers.setMask(this.contextGeometry),this.view.fit(this.contextGeometry,{padding:[10,10,10,10],constrainResolution:!1}))},drawObservations:function(){var e=W()(regeneratorRuntime.mark(function e(){var t,n,i=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.observations&&this.observations.length>0&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.visible}),t=this.observations.find(function(e){return e.top&&Object(Ue["n"])(e)}),t&&(this.previousTopLayer&&this.previousTopLayer.visible?t.id!==this.previousTopLayer.id&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.id!==t.id}),this.lockedObservations.push(this.previousTopLayer),this.previousTopLayer=t):this.previousTopLayer=t),n="undefined"!==typeof this.observations.find(function(e){return e.visible&&e.loading}),this.observations.forEach(function(e){if(!e.isContainer){var t=i.findModificationTimestamp(e.id,i.timestamp);i.findLayerById({observation:e,timestamp:t}).then(function(o){if(null!==o){var r=o.founds,s=o.layer;s.setOpacity(e.layerOpacity),s.setVisible(e.visible);var a=e.zIndex;if(e.top?a=e.zIndexOffset+Lt["d"].ZINDEX_TOP:i.lockedObservationsIds.length>0&&i.lockedObservationsIds.includes(e.id)&&(a=Math.max(s.get("zIndex")-10,1)),n||(s.setZIndex(a),e.visible&&e.top&&Object(Ue["n"])(e)&&(null===i.topLayer||i.topLayer.id!=="".concat(e.id,"T").concat(t))?i.setTopLayer({id:"".concat(e.id,"T").concat(t),desc:e.label}):e.visible&&e.top||null===i.topLayer||i.topLayer.id!=="".concat(e.id,"T").concat(t)||i.setTopLayer(null)),r.length>0)if(e.visible){if(-1===t||-1!==e.tsImages.indexOf("T".concat(t))){var c=[];r.forEach(function(n,i){n.get("id")==="".concat(e.id,"T").concat(t)?n.setVisible(!0):n.getVisible()&&c.push(i)}),c.length>0&&c.forEach(function(e){i.$nextTick(function(){r[e].setVisible(!1)})})}}else r.forEach(function(e){e.setVisible(!1)});else console.debug("No multiple layer for observation ".concat(e.id,", refreshing")),s.setVisible(e.visible)}})}}),null===this.topLayer&&this.closePopup());case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),sendSpatialLocation:function(e){if(e){var t=this.wktInstance.writeFeaturesText(e,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});this.sendStompMessage(l["a"].SPATIAL_LOCATION({wktShape:t},this.session).body),this.setCrossingIDL(!1)}else this.sendStompMessage(l["a"].SPATIAL_LOCATION({wktShape:""},this.session).body)},doGeolocation:function(){var e=this;null!==this.geolocationId&&navigator.geolocation.clearWatch(this.geolocationId),this.geolocationId=navigator.geolocation.watchPosition(function(t){e.center=Object(Oi["l"])([t.coords.longitude,t.coords.latitude],Lt["d"].PROJ_EPSG_4326,Lt["d"].PROJ_EPSG_3857),e.stopGeolocation()},function(t){switch(t.code){case t.PERMISSION_DENIED:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.POSITION_UNAVAILABLE:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.TIMEOUT:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;default:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break}},{enableHighAccuracy:!0,maximumAge:3e4,timeout:6e4})},retryGeolocation:function(){this.geolocationIncidence=null,this.doGeolocation()},stopGeolocation:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];navigator.geolocation.clearWatch(this.geolocationId),this.$nextTick(function(){e.waitingGeolocation=!1,t&&e.sendRegionOfInterest()})},closePopup:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&this.mapSelection.locked||(this.setMapSelection(c["g"].EMPTY_MAP_SELECTION),this.popupOverlay.setPosition(void 0))},setMapInfoPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,n=void 0===t?null:t,i=e.locked,o=void 0!==i&&i,r=e.layer,a=void 0===r?null:r;if(this.exploreMode||null!==this.topLayer){var l,u;if(null!==n?(l=n.coordinate,o&&(n.preventDefault(),n.stopPropagation())):(o=this.mapSelection.locked,l=this.mapSelection.pixelSelected),null===a){u=this.exploreMode?"".concat(this.observationInfo.id,"T").concat(this.findModificationTimestamp(this.observationInfo.id,this.timestamp)):this.topLayer.id;var d=this.findExistingLayerById(u),h=Fe()(d,1);a=h[0]}else u=a.get("id");var p=new Ki["a"]({id:"cl_".concat(u),source:a.getSource()});this.setMapSelection(s()({pixelSelected:l,timestamp:this.timestamp,layerSelected:p},!this.exploreMode&&{observationId:this.getObservationIdFromLayerId(u)},{locked:o}))}else this.$eventBus.$emit(c["h"].VIEWER_CLICK,n)},needFitMapListener:function(e){var t=this,n=e.mainIdx,i=void 0===n?null:n,o=e.geometry,r=void 0===o?null:o,s=e.withPadding,a=void 0===s||s;null===r&&this.mainViewer.name===c["M"].DATA_VIEWER.name&&this.contextGeometry&&null!==this.contextGeometry&&(r=this.contextGeometry),null!==r?(null!==i&&this.idx===i||(this.storedZoom=this.view.getZoom()),setTimeout(function(){r instanceof Array&&2===r.length?t.view.setCenter(r):t.view.fit(r,{padding:a?[10,10,10,10]:[0,0,0,0],constrainResolution:!1,callback:function(){t.movedWithContext=!1}})},200)):null!==this.storedZoom&&(this.view.setZoom(this.storedZoom),this.storedZoom=null)},observationInfoClosedListener:function(){this.mapSelection.locked||this.closePopup()},sendRegionOfInterestListener:function(){this.sendRegionOfInterest()},findTopLayerFromClick:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[],i=[];return this.map.forEachLayerAtPixel(e.pixel,function(e){i[e.getType()]&&i[e.getType()]>e.get("zIndex")||(i[e.getType()]=e.get("zIndex"),n.push({layer:e,type:e.getType()}))},{layerFilter:function(e){return"TILE"!==e.getType()&&(!t||"VECTOR"!==e.getType())}}),n},getObservationIdFromLayerId:function(e){return e&&""!==e?e.substr(0,e.indexOf("T")):e},copyCoordinates:function(e){var t=this.coordinatesControl.element.innerText,n=document.createElement("textarea");n.value=t,n.style.top="0",n.style.left="0",n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy");this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})}catch(e){console.error("Oops, unable to copy",e)}document.body.removeChild(n)},setCoordinatesControl:function(){var e=document.querySelector(".ol-mouse-position");this.viewCoordinates?this.map.addControl(this.coordinatesControl):e&&this.map.removeControl(this.coordinatesControl),V["a"].set(c["P"].COOKIE_VIEW_COORDINATES,this.viewCoordinates,{expires:365,path:"/",secure:!0})}}),watch:{contextGeometry:function(e,t){this.drawContext(e,t),null!==e||this.movedWithContext||this.needFitMapListener({geometry:t,withPadding:!1}),this.movedWithContext=!1},observations:{handler:function(){var e=this;this.$nextTick(function(){return e.drawObservations()})},deep:!0},timestamp:function(e){var t=this.findModificationTimestamp(null,e);t!==this.lastModificationLoaded&&(this.lastModificationLoaded=t,this.drawObservations())},center:function(){this.view.setCenter(this.center)},mapSelection:function(e){if("undefined"!==typeof e&&null!==e&&null!==e.pixelSelected){if(this.mapSelectionMarker.setPosition(e.pixelSelected),null!==this.topLayer){var t=Object(Oi["l"])(e.pixelSelected,"EPSG:3857","EPSG:4326");this.popupContent="

".concat(this.topLayer.desc,'

\n
\n

').concat(e.value,'

\n
\n

').concat(t[1].toFixed(6),", ").concat(t[0].toFixed(6),"

"),this.popupOverlay.setPosition(e.pixelSelected)}}else this.closePopup(),this.mapSelectionMarker.setPosition(void 0)},hasContext:function(e){this.uploadConfig.refId=this.contextId,e?this.setDrawMode(!1):(this.sendRegionOfInterest(),this.popupOverlay.setPosition(void 0))},proposedContext:function(e){var t=this;this.drawProposedContext(),this.$nextTick(function(){t.setSpinner(s()({},c["H"].SPINNER_STOPPED,{owner:"KlabSearch"}))})},topLayer:function(e){null!==e&&this.mapSelection.locked?this.setMapInfoPoint():this.closePopup()},hasExtentMap:function(){var e=this;this.hasExtentMap&&this.$nextTick(function(){e.extentMap.updateSize()}),this.setShowSettings(!this.hasExtentMap)},viewCoordinates:function(){this.setCoordinatesControl()}},created:function(){this.waitingGeolocation="geolocation"in navigator&&!V["a"].has(c["P"].COOKIE_MAPDEFAULT)},mounted:function(){var e=this;this.baseLayers=Lt["a"],this.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t);var n=t;n.on("propertychange",function(t){e.visibleBaseLayer=n,"propertychange"===t.type&&"visible"===t.key&&t.target.get(t.key)&&V["a"].set(c["P"].COOKIE_BASELAYER,n.get("name"),{expires:30,path:"/",secure:!0})})});var t=Lt["c"].MAPBOX_GOT;t.setVisible(!0);var n=new Gi["default"]({title:"BaseLayers",layers:this.baseLayers.layers});this.map=new yn["a"]({view:new _n["a"]({center:this.center,zoom:this.zoom}),layers:n,target:"map".concat(this.idx),loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0}),this.map.on("moveend",this.onMoveEnd),this.map.on("click",function(i){if(e.viewCoordinates&&i.originalEvent.ctrlKey&&!i.originalEvent.altKey)e.copyCoordinates(i);else{if(e.isDrawMode)return i.preventDefault(),void i.stopPropagation();if(i.originalEvent.ctrlKey&&i.originalEvent.altKey&&i.originalEvent.shiftKey){var o=n.getLayersArray().slice(-1)[0];o&&"mapbox_got"===o.get("name")?(n.getLayers().pop(),e.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t)})):(n.getLayers().push(t),e.$q.notify({message:e.$t("messages.youHaveGOT"),type:"info",icon:"mdi-information",timeout:1500}))}e.clicksOnMap+=1,setTimeout(W()(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:1===e.clicksOnMap&&(n=e.findTopLayerFromClick(i,!1),n.length>0&&n.forEach(function(t){var o=t.layer.get("id");"VECTOR"===t.type?(e.putObservationOnTop(e.getObservationIdFromLayerId(o)),1===n.length&&e.closePopup()):e.topLayer&&o===e.topLayer.id?e.setMapInfoPoint({event:i}):(e.putObservationOnTop(e.getObservationIdFromLayerId(o)),e.setMapInfoPoint({event:i,layer:t.layer}))}),e.clicksOnMap=0);case 1:case"end":return t.stop()}},t)})),300)}}),this.map.on("dblclick",function(t){if(e.isDrawMode)return t.preventDefault(),void t.stopPropagation();var n=e.findTopLayerFromClick(t);if(1===n.length){var i=n[0].layer.get("id");e.topLayer&&i===e.topLayer.id?e.setMapInfoPoint({event:t,locked:!0}):(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),e.setMapInfoPoint({event:t,locked:!0,layer:n[0].layer})),e.clicksOnMap=0}else console.warn("Multiple layer but must be one")}),this.map.on("contextmenu",function(t){var n=e.findTopLayerFromClick(t,!1);n.length>0&&(e.contextMenuObservationId=e.getObservationIdFromLayerId(n[0].layer.get("id")),t.preventDefault())}),this.view=this.map.getView(),this.proj=this.view.getProjection(),this.map.addLayer(new Gi["default"]({layers:this.layers})),this.layerSwitcher=new so.a,this.map.addControl(this.layerSwitcher),this.mapSelectionMarker=new oo({element:document.getElementById("msm-".concat(this.idx)),positioning:"center-center"}),this.map.addOverlay(this.mapSelectionMarker),this.popupOverlay=new oo({element:document.getElementById("mv-popup"),autoPan:!0,autoPanAnimation:{duration:250}}),this.map.addOverlay(this.popupOverlay),this.extentMap=new yn["a"]({view:new _n["a"]({center:[0,0],zoom:12}),target:"mv-extent-map",layers:[Lt["c"].OSM_LAYER],controls:[]}),this.coordinatesControl=new go({coordinateFormat:Object(vo["c"])(6),projection:Lt["d"].PROJ_EPSG_4326,undefinedHTML:"..."}),this.setCoordinatesControl(),this.drawContext(),this.drawObservations(),this.drawProposedContext(),this.waitingGeolocation&&this.doGeolocation(),this.setShowSettings(!this.hasExtentMap),this.$eventBus.$on(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$on(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$on(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$on(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$off(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$off(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$off(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)}}),yo=bo,_o=(n("c612"),Object(y["a"])(yo,bi,yi,!1,null,null,null));_o.options.__file="MapViewer.vue";var Mo=_o.exports,wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fit gv-container",on:{wheel:e.changeForce}},[0===e.nodes.length?n("q-spinner",{attrs:{color:"mc-main",size:40}}):e._e(),n("q-resize-observable",{on:{resize:e.resize}}),n("d3-network",{ref:"gv-graph-"+e.idx,attrs:{"net-nodes":e.nodes,"net-links":e.links,options:e.options}})],1)},Co=[];wo._withStripped=!0;var So=n("a5b7"),Ao=n.n(So),Eo={name:"GraphViewer",components:{D3Network:Ao.a},props:{idx:{type:Number,required:!0}},data:function(){var e=Object.assign({},c["Q"]);return e},computed:{observation:function(){var e=this.$store.getters["data/observationsOfViewer"](this.idx);return e.length>0?e[0]:null}},methods:{loadGraph:function(){var e=this,t="".concat("").concat(T["c"].REST_SESSION_VIEW,"data/").concat(this.observation.id);Object(Ue["h"])("gr_".concat(this.observation.id),t,{params:{format:"NETWORK",outputFormat:"json"}},function(t,n){if(t&&"undefined"!==typeof t.data){var i=t.data,o=i.nodes,r=i.edges;e.nodes=o.map(function(e){return{id:e.id,name:e.label,nodeSym:"~assets/klab-spinner.svg"}}),e.links=r.map(function(e){return{id:e.id,name:e.label,sid:e.source,tid:e.target}}),e.resize()}n()})},resize:function(){var e={w:this.$el.clientWidth,h:this.$el.clientHeight};this.updateOptions("size",e)},changeForce:function(e){if(e.preventDefault(),e&&e.deltaY){var t=this.options.force;if(e.deltaY<0&&t<5e3)t+=50;else{if(!(e.deltaY>0&&t>50))return;t-=50}this.updateOptions("force",t)}},updateOptions:function(e,t){this.options=s()({},this.options,p()({},e,t))},reset:function(){this.selected={},this.linksSelected={},this.nodes=[],this.links=[],this.$set(this.$data,"options",c["Q"].options)},viewerClosedListener:function(e){var t=e.idx;t===this.idx&&this.$eventBus.$emit(c["h"].SHOW_NODE,{nodeId:this.observation.id,state:!1})}},watch:{observation:function(e){null!==e&&0===this.nodes.length?this.loadGraph():null===e&&this.reset()}},mounted:function(){this.options.size.w=this.$el.clientWidth,this.options.size.h=this.$el.clientHeight,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},Oo=Eo,Lo=(n("6420"),n("9198"),Object(y["a"])(Oo,wo,Co,!1,null,null,null));Lo.options.__file="GraphViewer.vue";var To=Lo.exports,xo=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},Ro=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fit uv-container"},[n("h4",[e._v("Under construction")])])}];xo._withStripped=!0;var ko={name:"UnknownViewer",props:{idx:{type:Number,required:!0}}},zo=ko,Po=(n("1fac"),Object(y["a"])(zo,xo,Ro,!1,null,null,null));Po.options.__file="UnknownViewer.vue";var No=Po.exports,Io=[],Do={components:{MapViewer:Mo,GraphViewer:To,UnknownViewer:No},computed:s()({},Object(a["c"])("view",["dataViewers","mainDataViewerIdx","dataViewers"])),methods:s()({},Object(a["b"])("view",["setMainDataViewer"]),{setMain:function(e){this.setMainDataViewer({viewerIdx:e}),this.$eventBus.$emit(c["h"].VIEWER_SELECTED,{idx:e})},closeViewer:function(e){this.setMainDataViewer({viewerIdx:e.idx,viewerType:e.type,visible:!1}),this.$eventBus.$emit(c["h"].VIEWER_CLOSED,{idx:e.idx})},viewerStyle:function(e){return e.main?"":e.type.hideable&&!e.visible?"display: none":(Io.push(e),0===Io.length?"left: 0":"left: ".concat(200*(Io.length-1)+10*(Io.length-1),"px"))},capitalize:function(e){return Object(Xe["a"])(e)}}),watch:{mainDataViewerIdx:function(){Io=[]},dataViewers:{handler:function(e){var t=this,n=e.length>0?e.find(function(e){return e.main}):null;this.$nextTick(function(){t.$eventBus.$emit(c["h"].NEED_FIT_MAP,s()({},null!==n&&"undefined"!==typeof n&&{idx:n.idx}))})},deep:!0}},beforeUpdate:function(){Io=[]},mounted:function(){Io=[]}},Bo=Do,qo=(n("f164"),Object(y["a"])(Bo,gi,vi,!1,null,"216658d8",null));qo.options.__file="DataViewer.vue";var jo=qo.exports,Wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kd-main-container print-hide",style:{width:e.containerStyle.width+"px",height:e.containerStyle.height+"px"},attrs:{view:"hHh Lpr fFf",container:""}},[n("q-layout-header",[n("documentation-header")],1),n("q-layout-drawer",{attrs:{side:"left",breakpoint:0,"content-class":["klab-left","no-scroll"],width:e.LEFTMENU_CONSTANTS.LEFTMENU_DOCUMENTATION_SIZE,overlay:!1},model:{value:e.leftMenu,callback:function(t){e.leftMenu=t},expression:"leftMenu"}},[n("documentation-tree")],1),n("q-page-container",[n("q-page",{staticClass:"column"},[n("div",{staticClass:"col row full-height kd-container"},[n("documentation-viewer")],1)])],1),n("q-modal",{staticClass:"kd-modal",attrs:{"no-backdrop-dismiss":"","no-esc-dismiss":""},on:{show:e.launchPrint},model:{value:e.print,callback:function(t){e.print=t},expression:"print"}},[n("documentation-viewer",{attrs:{"for-printing":!0}}),n("q-btn",{staticClass:"dv-print-hide print-hide",attrs:{icon:"mdi-close",round:"",flat:"",size:"sm",color:"mc-main"},on:{click:function(t){e.print=!1}}})],1)],1)},Fo=[];Wo._withStripped=!0;var Ho=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dh-container full-width row items-center"},[n("div",{staticClass:"dh-tabs col justify-start"},[n("q-tabs",{attrs:{color:"mc-main","underline-color":"mc-main"},model:{value:e.selectedTab,callback:function(t){e.selectedTab=t},expression:"selectedTab"}},[n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.REPORT,icon:"mdi-text-box-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.REPORT)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.TABLES,icon:"mdi-table",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.TABLES)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.FIGURES,icon:"mdi-image",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.FIGURES)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.RESOURCES,icon:"mdi-database-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.RESOURCES)},slot:"title"})],1)],1),n("div",{staticClass:"dh-actions justify-end"},[n("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-refresh",flat:"",color:"mc-main"},on:{click:e.forceReload}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appReload")))])],1),n("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-printer",flat:"",color:"mc-main"},on:{click:e.print}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appPrint")))])],1),e.selectedTab===e.DOCUMENTATION_VIEWS.TABLES?[n("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize-1<8,flat:"",icon:"mdi-format-font-size-decrease",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(-1)}}}),n("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize+1>50,flat:"",icon:"mdi-format-font-size-increase",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(1)}}})]:e._e()],2),e.hasSpinner?n("div",{staticClass:"dh-spinner col-1 justify-end"},[n("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[n("div",{staticClass:"klab-spinner-div item-center",attrs:{id:"kd-spinner"}},[n("klab-spinner",{attrs:{id:"spinner-documentation","store-controlled":!0,size:30,ball:22,wrapperId:"kd-spinner"}})],1)])],1):e._e()])},Xo=[];Ho._withStripped=!0;var Uo={name:"DocumentationHeader",components:{KlabSpinner:M},data:function(){return{DOCUMENTATION_VIEWS:c["n"]}},computed:s()({},Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["leftMenuState","hasHeader","reloadViews","tableFontSize"]),{hasSpinner:function(){return!(this.leftMenuState!==c["u"].LEFTMENU_HIDDEN&&!this.hasHeader)},selectedTab:{get:function(){return this.$store.getters["view/documentationView"]},set:function(e){this.$store.dispatch("view/setDocumentationView",e,{root:!0}),this.setDocumentationSelected(null)}}}),methods:s()({},Object(a["b"])("view",["setTableFontSize","setDocumentationSelected"]),{tableFontSizeChange:function(e){this.setTableFontSize(this.tableFontSize+e),this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table")},forceReload:function(){this.$eventBus.$emit(c["h"].REFRESH_DOCUMENTATION,{force:!0})},print:function(){this.$eventBus.$emit(c["h"].PRINT_DOCUMENTATION)}})},Vo=Uo,Go=(n("d18c"),Object(y["a"])(Vo,Ho,Xo,!1,null,null,null));Go.options.__file="DocumentationHeader.vue";var Ko=Go.exports,$o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dt-container relative-position klab-menu-component"},[n("div",{staticClass:"dt-doc-container simplebar-vertical-only"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.tree.length,expression:"tree.length === 0"}],staticClass:"dt-tree-empty"},[e._v(e._s(e.$t("label.noDocumentation")))]),n("klab-q-tree",{attrs:{nodes:e.tree,"node-key":"id","check-click":!1,selected:e.selected,expanded:e.expanded,ticked:e.ticked,"text-color":"white","control-color":"white",color:"white",dark:!0,"no-nodes-label":e.$t("label.noNodes"),"no-results-label":e.$t("label.noNodes"),filter:e.documentationView,"filter-method":e.filter},on:{"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},"update:ticked":function(t){e.ticked=t}}})],1),n("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Yo=[];$o._withStripped=!0;var Jo={name:"DocumentationTree",components:{KlabQTree:on},data:function(){return{expanded:[],selected:null,ticked:[],DOCUMENTATION_VIEWS:c["n"]}},computed:s()({},Object(a["c"])("data",["documentationTrees"]),Object(a["c"])("view",["documentationView","documentationSelected"]),{tree:function(){var e=this,t=this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree||[];return t}}),methods:s()({},Object(a["b"])("view",["setDocumentationSelected"]),{filter:function(e,t){return t!==c["n"].REPORT||e.type!==c["l"].PARAGRAPH&&e.type!==c["l"].CITATION}}),watch:{selected:function(e){this.setDocumentationSelected(e)},documentationSelected:function(){this.selected=this.documentationSelected}},mounted:function(){this.selected=this.documentationSelected}},Qo=Jo,Zo=(n("5823"),Object(y["a"])(Qo,$o,Yo,!1,null,null,null));Zo.options.__file="DocumentationTree.vue";var er=Zo.exports,tr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-documentation"},[n("div",{staticClass:"dv-documentation-wrapper"},[0===e.content.length?[n("div",{staticClass:"dv-empty-documentation"},[e._v(e._s(e.$t("messages.noDocumentation")))])]:[n("div",{staticClass:"dv-content"},e._l(e.content,function(t){return n("div",{key:t.id,staticClass:"dv-item"},[t.type===e.DOCUMENTATION_TYPES.SECTION?[n("h1",{attrs:{id:e.getId(t.id)}},[e._v(e._s(t.idx)+" "+e._s(t.title))]),t.subtitle?n("h4",[e._v(e._s(t.subtitle))]):e._e()]:t.type===e.DOCUMENTATION_TYPES.PARAGRAPH?n("div",{staticClass:"dv-paragraph",domProps:{innerHTML:e._s(t.bodyText)}}):t.type===e.DOCUMENTATION_TYPES.REFERENCE?n("div",{staticClass:"dv-reference",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(t.bodyText)},on:{click:function(n){e.selectElement(".link-"+t.id)}}}):t.type===e.DOCUMENTATION_TYPES.CITATION?n("span",{staticClass:"dv-citation"},[n("a",{attrs:{href:"#",title:t.bodyText}},[e._v(e._s(t.bodyText))])]):t.type===e.DOCUMENTATION_TYPES.TABLE?n("div",{staticClass:"dv-table-container"},[n("div",{staticClass:"dv-table-title",attrs:{id:e.getId(t.id)}},[e._v(e._s(e.$t("label.reportTable")+" "+t.idx+". "+t.title))]),n("div",{staticClass:"dv-table",style:{"font-size":e.tableFontSize+"px"},attrs:{id:e.getId(t.id)+"-table"}}),n("div",{staticClass:"dv-table-bottom text-right print-hide"},[n("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-content-copy"},on:{click:function(n){e.tableCopy(t.id)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableCopy")))])],1),n("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-download"},on:{click:function(n){e.tableDownload(t.id)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableDownloadAsXSLX")))])],1)],1)]):t.type===e.DOCUMENTATION_TYPES.FIGURE?n("div",{staticClass:"dv-figure-container",attrs:{id:e.getId(t.id)}},[n("div",{staticClass:"dv-figure-wrapper col"},[n("div",{staticClass:"content-center row"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{staticClass:"dv-figure-caption-wrapper row items-end"},[n("div",{staticClass:"dv-figure-caption col"},[e._v(e._s(e.$t("label.reportFigure")+" "+t.idx+(""!==t.figure.caption?". "+t.figure.caption:"")))]),t.figure.timeString&&""!==t.figure.timeString?n("div",{staticClass:"dv-figure-timestring col"},[e._v(e._s(t.figure.timeString))]):e._e()])]),n("div",{staticClass:"dv-col-fill col"})]),n("div",{staticClass:"row content-center"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.loadingImages.includes(t.id),expression:"loadingImages.includes(doc.id)"}],staticClass:"dv-figure-wait row items-center",style:{height:e.waitHeight+"px"}},[n("q-spinner",{staticClass:"col",attrs:{size:"3em"}})],1),n("div",{staticClass:"dv-figure-image col",class:"dv-figure-"+e.documentationView.toLowerCase()},[n("img",{staticClass:"dv-figure-img",class:[e.forPrinting?"dv-figure-print":"dv-figure-display"],attrs:{src:"",id:"figimg-"+e.documentationView+"-"+e.getId(t.id),alt:t.figure.caption}})])]),n("div",{staticClass:"dv-figure-legend col"},[n("histogram-viewer",{staticClass:"dv-figure-colormap",attrs:{dataSummary:t.figure.dataSummary,colormap:t.figure.colormap,id:e.getId(t.observationId),direction:"vertical",tooltips:!1,legend:!0}})],1)]),n("div",{staticClass:"row content-center"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{staticClass:"dv-figure-time col"},[n("figure-timeline",{attrs:{start:t.figure.startTime,end:t.figure.endTime,"raw-slices":t.figure.timeSlices,observationId:t.figure.observationId},on:{timestampchange:function(n){e.changeTime(n,t.id)}}})],1)]),n("div",{staticClass:"dv-col-fill col"})])])]):t.type===e.DOCUMENTATION_TYPES.MODEL?n("div",{staticClass:"dv-model-container"},[n("div",{staticClass:"dv-model-code",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(e.getModelCode(t.bodyText))}})]):t.type===e.DOCUMENTATION_TYPES.RESOURCE?n("div",{staticClass:"dv-resource-container",attrs:{id:e.getId(t.id)}},[n("div",{staticClass:"dv-resource-title-container"},[n("div",{staticClass:"dv-resource-title"},[e._v(e._s(t.title))]),n("div",{staticClass:"dv-resource-originator"},[e._v(e._s(t.resource.originatorDescription))]),t.resource.keywords.length>0?n("div",{staticClass:"dv-resource-keywords text-right"},e._l(t.resource.keywords,function(i,o){return n("div",{key:o,staticClass:"dv-resource-keyword"},[n("span",{staticClass:"dv-resource-keyword"},[e._v(e._s(i))]),o0?n("div",{staticClass:"dv-resource-authors"},e._l(t.resource.authors,function(i,o){return n("div",{key:o,staticClass:"dv-resource-author-wrapper"},[n("span",{staticClass:"dv-resource-author"},[e._v(e._s(i))]),o0&&void 0!==arguments[0]?arguments[0]:{},t=e.view,n=void 0===t?null:t,i=e.force,o=void 0!==i&&i;null===n&&(n=this.documentationView),(-1!==this.reloadViews.indexOf(n)||o)&&this.loadDocumentation(n)},printDocumentation:function(){this.print=!0},closePrint:function(){this.print=!1},launchPrint:function(){this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table"),setTimeout(function(){window.print()},600)}}),watch:{documentationView:function(){var e=this;this.$nextTick(function(){e.load()})},reloadViews:function(){var e=this;this.$nextTick(function(){e.load()})}},activated:function(){this.load()},mounted:function(){this.$eventBus.$on(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$on(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.addEventListener("afterprint",this.closePrint)},beforeDestroy:function(){this.$eventBus.$off(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$off(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.removeEventListener("afterprint",this.closePrint)}},cr=ar,lr=(n("7bbc"),Object(y["a"])(cr,Wo,Fo,!1,null,null,null));lr.options.__file="KlabDocumentation.vue";var ur=lr.exports,dr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dfv-wrapper",class:"dfv-"+e.flowchartSelected},[n("div",{staticClass:"fit no-padding with-background dfv-container",class:{"dfv-with-info":e.dataflowInfoOpen}},[n("div",{staticClass:"dfv-graph-info"},[n("div",{staticClass:"dfv-graph-type"},[n("span",[e._v(e._s(e.flowchart(e.flowchartSelected)?e.flowchart(e.flowchartSelected).label:"Nothing"))])]),n("div",{staticClass:"dfv-graph-selector"},[n("q-btn",{staticClass:"dfv-button",class:e.flowchartSelected===e.CONSTANTS.GRAPH_DATAFLOW?"dfv-graph-selected":"",attrs:{disable:!(e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).flowchart||e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).updatable),icon:"mdi-sitemap",flat:"",color:"app-main-color"},on:{click:function(t){e.flowchartSelected!==e.CONSTANTS.GRAPH_DATAFLOW&&e.setFlowchartSelected(e.CONSTANTS.GRAPH_DATAFLOW)}}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:500}},[e._v(e._s(e.flowchart(e.CONSTANTS.GRAPH_DATAFLOW).label))])],1),n("q-btn",{class:e.flowchartSelected===e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED?"dfv-graph-selected":"",attrs:{disable:!(e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).flowchart||e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).updatable),icon:"mdi-graph-outline",flat:"",color:"app-main-color"},on:{click:function(t){e.flowchartSelected!==e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED&&e.setFlowchartSelected(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED)}}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:500}},[e._v(e._s(e.flowchart(e.CONSTANTS.GRAPH_PROVENANCE_SIMPLIFIED).label))])],1)],1)]),n("div",[n("div",{attrs:{id:"sprotty"}}),n("q-resize-observable",{attrs:{debounce:300},on:{resize:e.resize}})],1)]),e.dataflowInfoOpen?n("div",{staticClass:"dfv-info-container"},[n("dataflow-info",{attrs:{width:"infoWidth"}})],1):e._e()])},hr=[];dr._withStripped=!0;n("98db");var pr=n("970b"),fr=n.n(pr),mr=n("5bc30"),gr=n.n(mr),vr=n("8449"),br=n("42d6"),yr=n("e1c6"),_r=0,Mr=200,wr=!1,Cr=function(){function e(){fr()(this,e)}return gr()(e,[{key:"handle",value:function(e){switch(e.kind){case br["SelectCommand"].KIND:wr=!1,_r=setTimeout(function(){wr||vr["b"].$emit(c["h"].GRAPH_NODE_SELECTED,e),wr=!1},Mr);break;case br["SetViewportCommand"].KIND:clearTimeout(_r),wr=!0;break;default:console.warn("Unknow action: ".concat(e.kind));break}}},{key:"initialize",value:function(e){e.register(br["SelectCommand"].KIND,this),e.register(br["SetViewportCommand"].KIND,this)}}]),e}();function Sr(e){return void 0!==e.source&&void 0!==e.target}function Ar(e){return void 0!==e.sources&&void 0!==e.targets}yr.decorate(yr.injectable(),Cr);var Er=function(){function e(){this.nodeIds=new Set,this.edgeIds=new Set,this.portIds=new Set,this.labelIds=new Set,this.sectionIds=new Set,this.isRestored=!1}return e.prototype.transform=function(e){var t,n,i=this,o={type:"graph",id:e.id||"root",children:[]};if(e.restored&&(this.isRestored=!0),e.children){var r=e.children.map(function(e){return i.transformElkNode(e)});(t=o.children).push.apply(t,r)}if(e.edges){var s=e.edges.map(function(e){return i.transformElkEdge(e)});(n=o.children).push.apply(n,s)}return o},e.prototype.transformElkNode=function(e){var t,n,i,o,r=this;this.checkAndRememberId(e,this.nodeIds);var s={type:"node",id:e.id,nodeType:e.id.split(".")[0],position:this.pos(e),size:this.size(e),status:this.isRestored?"processed":"waiting",children:[]};if(e.children){var a=e.children.map(function(e){return r.transformElkNode(e)});(t=s.children).push.apply(t,a)}if(e.ports){var c=e.ports.map(function(e){return r.transformElkPort(e)});(n=s.children).push.apply(n,c)}if(e.labels){var l=e.labels.map(function(e){return r.transformElkLabel(e)});(i=s.children).push.apply(i,l)}if(e.edges){var u=e.edges.map(function(e){return r.transformElkEdge(e)});(o=s.children).push.apply(o,u)}return s},e.prototype.transformElkPort=function(e){this.checkAndRememberId(e,this.portIds);var t={type:"port",id:e.id,position:this.pos(e),size:this.size(e),children:[]};return t},e.prototype.transformElkLabel=function(e){return this.checkAndRememberId(e,this.labelIds),{type:"label",id:e.id,text:e.text,position:this.pos(e),size:this.size(e)}},e.prototype.transformElkEdge=function(e){var t,n,i=this;this.checkAndRememberId(e,this.edgeIds);var o={type:"edge",id:e.id,sourceId:"",targetId:"",routingPoints:[],children:[]};if(Sr(e)?(o.sourceId=e.source,o.targetId=e.target,e.sourcePoint&&o.routingPoints.push(e.sourcePoint),e.bendPoints&&(t=o.routingPoints).push.apply(t,e.bendPoints),e.targetPoint&&o.routingPoints.push(e.targetPoint)):Ar(e)&&(o.sourceId=e.sources[0],o.targetId=e.targets[0],e.sections&&e.sections.forEach(function(e){var t;i.checkAndRememberId(e,i.sectionIds),o.routingPoints.push(e.startPoint),e.bendPoints&&(t=o.routingPoints).push.apply(t,e.bendPoints),o.routingPoints.push(e.endPoint)})),e.junctionPoints&&e.junctionPoints.forEach(function(t,n){var i={type:"junction",id:e.id+"_j"+n,position:t};o.children.push(i)}),e.labels){var r=e.labels.map(function(e){return i.transformElkLabel(e)});(n=o.children).push.apply(n,r)}return o},e.prototype.pos=function(e){return{x:e.x||0,y:e.y||0}},e.prototype.size=function(e){return{width:e.width||0,height:e.height||0}},e.prototype.checkAndRememberId=function(e,t){if(void 0===e.id||null===e.id)throw Error("An element is missing an id: "+e);if(t.has(e.id))throw Error("Duplicate id: "+e.id+".");t.add(e.id)},e}(),Or=n("e1c6"),Lr=n("393a"),Tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xr=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Rr={createElement:Lr["svg"]},kr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.render=function(e,t){var n="elknode "+(e.hoverFeedback?"mouseover ":"")+(e.selected?"selected ":"")+e.status+" elk-"+e.nodeType;return Rr.createElement("g",null,Rr.createElement("rect",{classNames:n,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(br["RectangularNodeView"]),zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.render=function(e,t){return Rr.createElement("g",null,Rr.createElement("rect",{"class-elkport":!0,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(br["RectangularNodeView"]),Pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.renderLine=function(e,t,n){for(var i=t[0],o="M "+i.x+","+i.y,r=1;r=o||t.mouseModel&&t.mouseModel>=o,exselected:t.mouseModel&&t.model>=o&&t.mouseModel0&&void 0!==arguments[0]?arguments[0]:null;this.sendStompMessage(l["a"].DATAFLOW_NODE_RATING({nodeId:this.dataflowInfo.elementId,contextId:this.contextId,rating:this.dataflowInfo.rating,comment:e},this.session).body)},commentOk:function(){this.changeDataflowRating(this.commentContent),this.$q.notify({message:this.$t("messages.thankComment"),type:"info",icon:"mdi-information",timeout:1e3})},closePanel:function(){this.setDataflowInfoOpen(!1)}}),watch:{commentOpen:function(e){this.setModalMode(e)}}},Qr=Jr,Zr=(n("75c1"),Object(y["a"])(Qr,Ur,Vr,!1,null,null,null));Zr.options.__file="DataflowInfoPane.vue";var es=Zr.exports,ts={name:"DataflowViewer",components:{DataflowInfo:es},data:function(){return{modelSource:null,actionDispatcher:null,interval:null,processing:!1,visible:!1,needsUpdate:!0,CONSTANTS:c["g"]}},computed:s()({},Object(a["c"])("data",["flowchart","flowcharts","dataflowInfo","dataflowStatuses","contextId","session","context"]),Object(a["c"])("view",["leftMenuState","flowchartSelected","dataflowInfoOpen"])),methods:s()({},Object(a["b"])("data",["loadFlowchart"]),Object(a["b"])("view",["setFlowchartSelected","setDataflowInfoOpen"]),{doGraph:function(){var e=this,t=this.flowchart(this.flowchartSelected);if(t){if(this.processing)return void setTimeout(this.doGraph(),100);t.updatable?this.loadFlowchart(this.flowchartSelected).then(function(){var n=JSON.parse(JSON.stringify(t.flowchart));e.processing=!0,t.graph=(new Er).transform(n),e.setModel(t),e.centerGraph(),e.processing=!1}).catch(function(e){console.error(e)}):null===t.graph||t.visible||(this.setModel(t),this.centerGraph())}},setModel:function(e){this.modelSource.setModel(e.graph),this.flowcharts.forEach(function(e){e.visible=!1}),e.visible=!0},centerGraph:function(){this.flowchartSelected===c["g"].GRAPH_DATAFLOW?this.actionDispatcher.dispatch(new br["FitToScreenAction"]([],40)):this.actionDispatcher.dispatch(new br["CenterAction"]([],40))},updateStatuses:function(){if(this.visible){if(0!==this.dataflowStatuses.length){for(var e=this.dataflowStatuses.length,t=0;t=0;n-=1)this.sendStompMessage(l["a"].DATAFLOW_NODE_DETAILS({nodeId:e.selectedElementsIDs[n],contextId:this.context.id},this.session).body)}},closePanel:function(){this.setDataflowInfoOpen(!1)},resize:function(){var e=this;this.$nextTick(function(){var t=document.getElementById("sprotty");if(null!==t){var n=t.getBoundingClientRect();e.actionDispatcher.dispatch(new br["InitializeCanvasBoundsAction"]({x:n.left,y:n.top,width:n.width,height:n.height})),e.centerGraph()}})}}),watch:{flowchartSelected:function(){this.visible&&this.doGraph()},flowcharts:{handler:function(){this.visible&&this.doGraph()},deep:!0},dataflowStatuses:{handler:function(){this.flowchartSelected===c["g"].GRAPH_DATAFLOW&&null!==this.flowchart(this.flowchartSelected)&&this.updateStatuses()},deep:!0},dataflowInfo:function(e,t){null===e?this.setDataflowInfoOpen(!1):null===t?this.setDataflowInfoOpen(!0):e.elementId===t.elementId&&this.dataflowInfoOpen?this.setDataflowInfoOpen(!1):this.setDataflowInfoOpen(!0)},dataflowInfoOpen:function(){this.resize()}},mounted:function(){var e=Xr({needsClientLayout:!1,needsServerLayout:!0},"info");e.bind(br["TYPES"].IActionHandlerInitializer).to(Cr),this.modelSource=e.get(br["TYPES"].ModelSource),this.actionDispatcher=e.get(br["TYPES"].IActionDispatcher),this.$eventBus.$on(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)},activated:function(){this.visible=!0,this.doGraph(),this.flowchartSelected===c["g"].GRAPH_DATAFLOW&&this.needsUpdate&&(this.updateStatuses(),this.needsUpdate=!1)},deactivated:function(){this.visible=!1},beforeDestroy:function(){this.$eventBus.$off(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)}},ns=ts,is=(n("7890"),Object(y["a"])(ns,dr,hr,!1,null,null,null));is.options.__file="DataflowViewer.vue";var os=is.exports,rs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-modal",{ref:"irm-modal-container",attrs:{"no-esc-dismiss":!0,"no-backdrop-dismiss":!0,"content-classes":["irm-container"]},on:{hide:e.cleanInputRequest},model:{value:e.opened,callback:function(t){e.opened=t},expression:"opened"}},[n("q-tabs",{class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{swipeable:"",animated:"",color:"white"},model:{value:e.selectedRequest,callback:function(t){e.selectedRequest=t},expression:"selectedRequest"}},[e._l(e.inputRequests,function(t){return n("q-tab",{key:t.messageId,class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{slot:"title",name:"request-"+t.messageId},slot:"title"})}),e._l(e.inputRequests,function(t){return n("q-tab-pane",{key:t.messageId,attrs:{name:"request-"+t.messageId}},[n("div",{staticClass:"irm-group"},[n("div",{staticClass:"irm-global-description"},[n("h4",[e._v(e._s(null!==t.sectionTitle?t.sectionTitle:e.$t("label.noInputSectionTitle")))]),n("p",[e._v(e._s(t.description))])]),n("div",{staticClass:"irm-fields-container",attrs:{"data-simplebar":""}},[n("div",{staticClass:"irm-fields-wrapper"},e._l(t.fields,function(i){return n("div",{key:e.getFieldId(i,t.messageId),staticClass:"irm-field"},[e.checkSectionTitle(i.sectionTitle)?n("div",{staticClass:"irm-section-description"},[n("h5",[e._v(e._s(i.sectionTitle))]),n("p",[e._v(e._s(i.sectionDescription))])]):e._e(),n("q-field",{attrs:{label:null!==i.label?i.label:i.id,helper:i.description}},[n(e.capitalizeFirstLetter(i.type)+"InputRequest",{tag:"component",attrs:{name:e.getFieldId(i,t.messageId),initialValue:i.initialValue,values:i.values,range:i.range,numericPrecision:i.numericPrecision,regexp:i.regexp},on:{change:function(n){e.updateForm(e.getFieldId(i,t.messageId),n)}}})],1)],1)}))]),n("div",{staticClass:"irm-buttons"},[n("q-btn",{attrs:{color:"primary",label:e.$t("label.cancelInputRequest")},on:{click:function(n){e.cancelRequest(t)}}}),n("q-btn",{attrs:{color:"mc-main",disable:e.formDataIsEmpty,label:e.$t("label.resetInputRequest")},on:{click:function(n){e.send(t.messageId,!0)}}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.submitInputRequest")},on:{click:function(n){e.send(t.messageId,!1)}}})],1)])])})],2)],1)},ss=[];rs._withStripped=!0;var as=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-input",{attrs:{color:"mc-main",type:"text",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},cs=[];as._withStripped=!0;var ls={name:"TextField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{value:""}},computed:{hasError:function(){return this.value,!1}},methods:{emitInput:function(e){this.$emit("change",e)}}},us=ls,ds=(n("9d14"),Object(y["a"])(us,as,cs,!1,null,null,null));ds.options.__file="TextField.vue";var hs=ds.exports,ps=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-input",{attrs:{color:"mc-main",type:"number",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},fs=[];ps._withStripped=!0;var ms={name:"NumberField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0},numericPrecision:{type:Number,default:5},range:{type:String}},data:function(){return{value:""}},computed:{hasError:function(){return this.range,!1}},methods:{emitInput:function(e){var t=this;this.fitValue(),this.$nextTick(function(){t.$emit("change",e)})},fitValue:function(){0!==this.numericPrecision&&(this.value=this.value.toFixed(this.numericPrecision))}}},gs=ms,vs=(n("d6e2"),Object(y["a"])(gs,ps,fs,!1,null,null,null));vs.options.__file="NumberField.vue";var bs=vs.exports,ys=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-checkbox",{attrs:{color:"mc-main",name:e.name},on:{input:e.emitInput},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})},_s=[];ys._withStripped=!0;var Ms={name:"BooleanField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{checked:"true"===this.initialValue}},methods:{emitInput:function(e){var t=this;this.$nextTick(function(){t.$emit("change",e)})}}},ws=Ms,Cs=(n("bb33"),Object(y["a"])(ws,ys,_s,!1,null,null,null));Cs.options.__file="BooleanField.vue";var Ss=Cs.exports,As={name:"InputRequestModal",components:{TextInputRequest:hs,NumberInputRequest:bs,BooleanInputRequest:Ss},sectionTitle:void 0,data:function(){return{formData:{},simpleBars:[],selectedRequest:null}},computed:s()({},Object(a["c"])("data",["session"]),Object(a["c"])("view",["hasInputRequests","inputRequests"]),{opened:{set:function(){},get:function(){return this.hasInputRequests}},formDataIsEmpty:function(){return 0===Object.keys(this.formData).length}}),methods:s()({},Object(a["b"])("view",["removeInputRequest"]),{send:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.inputRequests.find(function(t){return t.messageId===e});if("undefined"!==typeof i){var o=i.fields.reduce(function(e,o){if(n)e[t.getFieldId(o)]=o.initialValue;else{var r=t.formData[t.getFieldId(o,i.messageId)];e[t.getFieldId(o)]="undefined"===typeof r||null===r||""===r?o.initialValue:r.toString()}return e},{});this.sendStompMessage(l["a"].USER_INPUT_RESPONSE({messageId:i.messageId,requestId:i.requestId,values:o},this.session).body),this.removeInputRequest(i.messageId)}},cancelRequest:function(e){this.sendStompMessage(l["a"].USER_INPUT_RESPONSE({messageId:e.messageId,requestId:e.requestId,cancelRun:!0,values:{}},this.session).body),this.removeInputRequest(e.messageId)},updateForm:function(e,t){null===t?this.$delete(this.formData,e):this.$set(this.formData,e,t)},capitalizeFirstLetter:function(e){return Object(Xe["a"])(e)},getFieldId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===t?"".concat(e.functionId,"/").concat(e.id):"".concat(t,"-").concat(e.functionId,"/").concat(e.id)},checkSectionTitle:function(e){return this.$options.sectionTitle!==e&&(this.$options.sectionTitle=e,!0)},cleanInputRequest:function(){this.formData={},this.removeInputRequest(null)}}),watch:{inputRequests:function(){this.inputRequests.length>0&&(this.selectedRequest="request-".concat(this.inputRequests[0].messageId))}}},Es=As,Os=(n("2b54"),Object(y["a"])(Es,rs,ss,!1,null,null,null));Os.options.__file="InputRequestModal.vue";var Ls=Os.exports,Ts=function(){var e=this,t=e.$createElement,n=e._self._c||t;return null!==e.scaleReference?n("q-dialog",{attrs:{title:e.$t("label.titleChangeScale",{type:e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?e.$t("label.labelSpatial"):e.$t("label.labelTemporal")}),color:"info",cancel:!0,ok:!1},on:{show:e.initValues},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(n){e.choose(t.ok)}}})]}}]),model:{value:e.scaleEditing,callback:function(t){e.scaleEditing=t},expression:"scaleEditing"}},[n("div",{attrs:{slot:"body"},slot:"body"},[e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?[n("q-input",{attrs:{type:"number",min:"0",color:"info",autofocus:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"stack-label":e.resolutionError?e.$t("messages.changeScaleResolutionError"):e.$t("label.resolutionLabel")},model:{value:e.resolution,callback:function(t){e.resolution=t},expression:"resolution"}})]:e._e(),n("q-select",{attrs:{"float-label":e.$t("label.unitLabel"),color:"info",options:e.typedUnits(e.scaleEditingType)},on:{input:function(t){e.scaleEditingType===e.SCALE_TYPE.ST_TIME&&e.setStartDate()}},model:{value:e.unit,callback:function(t){e.unit=t},expression:"unit"}}),e.scaleEditingType===e.SCALE_TYPE.ST_TIME?[n("div",{staticClass:"row"},[e.unit===e.SCALE_VALUES.DECADE?n("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitDecade"),type:"number",min:"0",max:"90",step:10,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.decade,callback:function(t){e.$set(e.unitInputs,"decade",t)},expression:"unitInputs.decade"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE?n("q-input",{class:["col",e.unit===e.SCALE_VALUES.CENTURY?"col-8":"col-4"],attrs:{"float-label":e.$t("label.unitCentury"),type:"number",min:"1",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.century,callback:function(t){e.$set(e.unitInputs,"century",t)},expression:"unitInputs.century"}}):e._e(),e.unit===e.SCALE_VALUES.MONTH?n("q-select",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitMonth"),type:"number",min:"0",color:"mc-main",options:e.monthOptions,autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.month,callback:function(t){e.$set(e.unitInputs,"month",t)},expression:"unitInputs.month"}}):e._e(),e.unit===e.SCALE_VALUES.WEEK?n("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitWeek"),type:"number",min:"1",max:"53",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate(t)}},model:{value:e.unitInputs.week,callback:function(t){e.$set(e.unitInputs,"week",t)},expression:"unitInputs.week"}}):e._e(),e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?n("q-input",{class:{col:e.unit===e.SCALE_VALUES.YEAR,"col-8":e.unit===e.SCALE_VALUES.YEAR,"col-4":e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK},attrs:{"float-label":e.$t("label.unitYear"),type:"number",min:"0",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.year,callback:function(t){e.$set(e.unitInputs,"year",t)},expression:"unitInputs.year"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?n("q-input",{staticClass:"col col-4",class:{"scd-inactive-multiplier":e.timeEndModified},attrs:{"float-label":e.$t("label.timeResolutionMultiplier"),type:"number",min:"1",step:1,color:"mc-main"},model:{value:e.timeResolutionMultiplier,callback:function(t){e.timeResolutionMultiplier=t},expression:"timeResolutionMultiplier"}},[e.timeEndModified?n("q-tooltip",{attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("messages.timeEndModified")))]):e._e()],1):e._e()],1),n("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeStart"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"","default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{focus:function(t){e.manualInputChange=!0},blur:function(t){e.manualInputChange=!1},input:function(t){e.manualInputChange&&e.initUnitInputs()&&e.calculateEnd()}},model:{value:e.timeStart,callback:function(t){e.timeStart=t},expression:"timeStart"}}),n("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeEnd"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{input:e.checkEnd},model:{value:e.timeEnd,callback:function(t){e.timeEnd=t},expression:"timeEnd"}})]:e._e()],2)]):e._e()},xs=[];Ts._withStripped=!0;var Rs=n("7f45"),ks=n.n(Rs),zs={name:"ScaleChangeDialog",data:function(){return{resolution:null,timeResolutionMultiplier:1,timeStart:null,timeEnd:null,timeEndMod:!1,unit:null,units:c["C"],resolutionError:!1,SCALE_TYPE:c["B"],SCALE_VALUES:c["D"],unitInputs:{century:null,year:null,month:null,week:null},monthOptions:[],timeEndModified:!1,manualInputChange:!1}},computed:s()({},Object(a["c"])("data",["scaleReference","nextScale","hasContext"]),Object(a["c"])("view",["scaleEditingType"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleEditingType})}},typedUnits:function(){var e=this;return function(t){return e.units.filter(function(e){return e.type===t&&e.selectable}).map(function(t){return s()({},t,{label:e.$t("label.".concat(t.i18nlabel))})})}}}),methods:s()({},Object(a["b"])("data",["updateScaleReference","setNextScale"]),{choose:function(e){if(this.scaleEditingType===c["B"].ST_SPACE&&(""===this.resolution||this.resolution<=0))this.resolutionError=!0;else if(this.scaleEditingType!==c["B"].ST_TIME||this.checkEnd){if(e(),this.resolutionError=!1,this.scaleEditingType===c["B"].ST_SPACE&&(null===this.nextScale&&this.resolution===this.scaleReference.spaceResolutionConverted&&this.unit===this.scaleReference.spaceUnit||null!==this.nextScale&&this.resolution===this.nextScale.spaceResolutionConverted&&this.unit===this.nextScale.spaceUnit)||this.scaleEditingType===c["B"].ST_TIME&&(null===this.nextScale&&this.timeResolutionMultiplier===this.scaleReference.timeResolutionMultiplier&&this.unit===this.scaleReference.timeUnit&&this.timeStart===this.scaleReference.start&&this.timeEnd===this.scaleReference.end||null!==this.nextScale&&this.timeResolutionMultiplier===this.nextScale.timeResolutionMultiplier&&this.unit===this.nextScale.timeUnit&&this.timeStart===this.nextScale.start&&this.timeEnd===this.nextScale.end))return;var t=new Date(this.timeStart.getTime()),n=new Date(this.timeEnd.getTime());[c["D"].MILLENNIUM,c["D"].CENTURY,c["D"].DECADE,c["D"].YEAR,c["D"].MONTH,c["D"].WEEK,c["D"].DAY].includes(this.unit)&&(t.setUTCHours(0,0,0,0),n.setUTCHours(0,0,0,0)),this.hasContext||this.sendStompMessage(l["a"].SCALE_REFERENCE(s()({scaleReference:this.scaleReference},this.scaleEditingType===c["B"].ST_SPACE&&{spaceResolution:this.resolution,spaceUnit:this.unit},this.scaleEditingType===c["B"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,timeUnit:this.unit,start:t.getTime(),end:n.getTime()}),this.$store.state.data.session).body),this.updateScaleReference(s()({type:this.scaleEditingType,unit:this.unit},this.scaleEditingType===c["B"].ST_SPACE&&{spaceResolution:this.resolution,spaceResolutionConverted:this.resolution},this.scaleEditingType===c["B"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,start:t.getTime(),end:n.getTime()},{next:this.hasContext})),this.$q.notify({message:this.$t(this.hasContext?"messages.updateNextScale":"messages.updateScale",{type:this.scaleEditingType.charAt(0).toUpperCase()+this.scaleEditingType.slice(1)}),type:"info",icon:"mdi-information",timeout:2e3})}else this.resolutionError=!0},setStartDate:function(e){var t=new Date;switch(this.unit){case c["D"].CENTURY:t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1));break;case c["D"].DECADE:this.unitInputs.decade=this.unitInputs.decade-this.unitInputs.decade%10,t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1)+this.unitInputs.decade);break;case c["D"].YEAR:t.setUTCFullYear(this.unitInputs.year,0,1);break;case c["D"].MONTH:t.setUTCDate(1),t.setUTCMonth(this.unitInputs.month),t.setUTCFullYear(this.unitInputs.year);break;case c["D"].WEEK:if(e>53)return void(this.unitInputs.week=ks()(this.timeStart).week());t.setUTCMonth(0),t.setUTCDate(1+7*(this.unitInputs.week-1)),t.setUTCFullYear(this.unitInputs.year);break;default:return}this.timeStart=t,this.initUnitInputs(),this.calculateEnd()},calculateEnd:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=c["C"].find(function(t){return t.value===e.unit});this.timeEnd=ks()(this.timeStart).add(this.timeResolutionMultiplier*n.momentMultiplier-(1!==n.momentMultiplier?1:0),n.momentShorthand).toDate(),this.$nextTick(function(){e.timeEndModified=t})},checkEnd:function(){this.timeEnd<=this.timeStart?this.$q.notify({message:this.$t("messages.timeEndBeforeTimeStart"),type:"info",icon:"mdi-information",timeout:2e3}):this.calculateEnd(!0)},getFormat:function(){switch(this.unit){case c["D"].MILLENNIUM:case c["D"].CENTURY:case c["D"].DECADE:case c["D"].YEAR:case c["D"].MONTH:case c["D"].WEEK:case c["D"].DAY:return"DD/MM/YYYY";case c["D"].HOUR:return"DD/MM/YYYY HH:mm";case c["D"].MINUTE:case c["D"].SECOND:return"DD/MM/YYYY HH:mm:ss";case c["D"].MILLISECOND:return"DD/MM/YYYY HH:mm:ss:SSS";default:return"DD/MM/YYYY HH:mm:ss"}},formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dddd, MMMM Do YYYY, h:mm:ss a";return e&&null!==e?ks()(e).format(t):""},initValues:function(){var e=null!==this.nextScale?this.nextScale:null!==this.scaleReference?this.scaleReference:null;null!==e&&(this.resolution=e.spaceResolutionConverted,this.unit=this.scaleEditingType===c["B"].ST_SPACE?e.spaceUnit:null!==e.timeUnit?e.timeUnit:c["D"].YEAR,this.timeResolutionMultiplier=0!==e.timeResolutionMultiplier?e.timeResolutionMultiplier:1,this.timeStart=0!==e.start?new Date(e.start):new Date,this.calculateEnd()),this.initUnitInputs()},initUnitInputs:function(){var e=this.timeStart?ks()(this.timeStart):ks()();this.unitInputs.century=Math.floor(e.year()/100)+1,this.unitInputs.decade=10*Math.floor(e.year()/10)-100*Math.floor(e.year()/100),this.unitInputs.year=e.year(),this.unitInputs.month=e.month(),this.unitInputs.week=e.week()}}),watch:{timeResolutionMultiplier:function(e,t){e<1?this.timeResolutionMultiplier=t:this.calculateEnd()}},created:function(){for(var e=0;e<12;e++)this.monthOptions.push({label:this.$t("label.months.m".concat(e)),value:e})}},Ps=zs,Ns=(n("c998"),Object(y["a"])(Ps,Ts,xs,!1,null,null,null));Ns.options.__file="ScaleChangeDialog.vue";var Is=Ns.exports,Ds=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-height",attrs:{id:"lm-container"}},[n("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-actions"}},[n("div",{attrs:{id:"spinner-leftmenu-container"}},[n("div",{style:{"border-color":e.hasTasks()?e.spinnerColor.color:"white"},attrs:{id:"spinner-leftmenu-div"}},[n("klab-spinner",{attrs:{id:"spinner-leftmenu","store-controlled":!0,size:40,ball:22,wrapperId:"spinner-leftmenu-div"},nativeOn:{touchstart:function(t){e.handleTouch(t,e.askForSuggestion)}}})],1)]),e.hasContext?[n("div",{staticClass:"lm-separator"}),n("main-actions-buttons",{attrs:{orientation:"vertical","separator-class":"lm-separator"}}),n("div",{staticClass:"lm-separator"})]:e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.logShowed}],on:{click:e.logAction}},[n("q-icon",{attrs:{name:"mdi-console"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:"top left",anchor:"bottom left"}},[e._v(e._s(e.logShowed?e.$t("tooltips.hideLogPane"):e.$t("tooltips.showLogPane")))])],1)],1),n("div",{staticClass:"lm-separator"}),n("div",{style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-bottom-menu"}},[n("div",{staticClass:"lm-separator"}),n("scale-buttons",{attrs:{docked:!0}}),n("div",{staticClass:"lm-separator"}),n("div",{staticClass:"lm-bottom-buttons"},[n("stop-actions-buttons")],1)],1)],2),e.maximized?n("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MAXSIZE-e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-content"}},[n("div",{staticClass:"full-height",attrs:{id:"lm-content-container"}},[n("keep-alive",[n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[n(e.leftMenuContent,{tag:"component",staticClass:"lm-component"})],1)],1)],1)]):e._e()])},Bs=[];Ds._withStripped=!0;var qs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-height",class:{"dmc-dragging":e.dragging,"dmc-large-mode":e.searchIsFocused&&e.largeMode>0},attrs:{id:"dmc-container"}},[n("klab-breadcrumbs"),n("klab-search-bar",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"}],ref:"klab-search-bar-docked"}),e.isTreeVisible?n("div",{staticClass:"q-card-main full-height",class:{"dmc-dragging":e.dragging,"dmc-loading":e.taskOfContextIsAlive},attrs:{id:"dmc-tree"}},[n("klab-tree-pane")],1):e._e(),e.contextHasTime?n("observations-timeline",{staticClass:"dmc-timeline"}):e._e()],1)},js=[];qs._withStripped=!0;var Ws=G["b"].width,Fs={name:"KlabDockedMainControl",components:{KlabSearchBar:It,KlabBreadcrumbs:Ft,ObservationsTimeline:Hn,KlabTreePane:Tn},directives:{Draggable:U},data:function(){var e=this;return{dragMCConfig:{onPositionChange:Object(Ce["a"])(function(t,n){e.onDebouncedPositionChanged(n)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkUndock,fingers:2,noMove:!0},askForUndocking:!1,draggableElementWidth:0,dragging:!1}},computed:s()({},Object(a["c"])("data",["contextHasTime"]),Object(a["c"])("view",["largeMode","isTreeVisible"]),Object(a["c"])("stomp",["taskOfContextIsAlive"])),methods:s()({},Object(a["b"])("view",["searchIsFocused","setMainViewer"]),{onDebouncedPositionChanged:function(e){this.dragging&&(e&&e.left>this.undockLimit?this.askForUndocking=!0:this.askForUndocking=!1,this.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,this.askForUndocking))},checkUndock:function(){var e=this;this.$nextTick(function(){e.askForUndocking&&(e.askForUndocking=!1,e.setMainViewer(c["M"].DATA_VIEWER)),e.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,!1),e.dragging=!1})}}),mounted:function(){this.undockLimit=Ws(document.getElementById("dmc-container"))/3}},Hs=Fs,Xs=(n("c7c3"),Object(y["a"])(Hs,qs,js,!1,null,null,null));Xs.options.__file="KlabDockedMainControl.vue";var Us=Xs.exports,Vs={name:"KlabLeftMenu",components:{KlabSpinner:M,MainActionsButtons:Te,StopActionsButtons:Ie,DockedMainControl:Us,DocumentationTree:er,KlabLogPane:Yn,ScaleButtons:ni,KnowledgeViewsSelector:ci},mixins:[rt],data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasContext"]),Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["spinnerColor","mainViewer","leftMenuContent","leftMenuState"]),{logShowed:function(){return this.leftMenuContent===c["u"].LOG_COMPONENT},maximized:function(){return this.leftMenuState===c["u"].LEFTMENU_MAXIMIZED&&this.leftMenuContent}}),methods:s()({},Object(a["b"])("view",["setLeftMenuState","setLeftMenuContent"]),{logAction:function(){this.logShowed?(this.setLeftMenuContent(this.mainViewer.leftMenuContent),this.setLeftMenuState(this.mainViewer.leftMenuState)):(this.setLeftMenuContent(c["u"].LOG_COMPONENT),this.setLeftMenuState(c["u"].LEFTMENU_MAXIMIZED))},askForSuggestion:function(e){this.$eventBus.$emit(c["h"].ASK_FOR_SUGGESTIONS,e)}}),created:function(){this.LEFTMENU_VISIBILITY=c["u"]}},Gs=Vs,Ks=(n("6283"),Object(y["a"])(Gs,Ds,Bs,!1,null,null,null));Ks.options.__file="KlabLeftMenu.vue";var $s=Ks.exports,Ys=(n("5bc0"),{name:"KExplorer",components:{KlabMainControl:mi,DataViewer:jo,KlabDocumentation:ur,DataflowViewer:os,InputRequestModal:Ls,ScaleChangeDialog:Is,ObservationTime:Bn,KlabLeftMenu:$s},props:{mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{askForUndocking:!1,LEFTMENU_CONSTANTS:c["u"]}},computed:s()({},Object(a["c"])("data",["session","hasActiveTerminal"]),Object(a["c"])("stomp",["connectionDown"]),Object(a["c"])("view",["searchIsActive","searchIsFocused","searchInApp","mainViewerName","mainViewer","isTreeVisible","isInModalMode","spinnerErrorMessage","isMainControlDocked","admitSearch","isHelpShown","mainViewer","leftMenuState","largeMode","hasHeader","layout"]),{waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}},logVisible:function(){return this.$logVisibility===c["P"].PARAMS_LOG_VISIBLE},leftMenuVisible:{get:function(){return this.leftMenuState!==c["u"].LEFTMENU_HIDDEN&&!this.hasHeader},set:function(e){this.setLeftMenuState(e)}},leftMenuWidth:function(){return(this.leftMenuState===c["u"].LEFTMENU_MAXIMIZED?c["u"].LEFTMENU_MAXSIZE:this.leftMenuState===c["u"].LEFTMENU_MINIMIZED?c["u"].LEFTMENU_MINSIZE:0)-(this.hasHeader?c["u"].LEFTMENU_MINSIZE:0)}}),methods:s()({},Object(a["b"])("view",["searchStart","searchStop","searchFocus","setMainViewer","setLeftMenuState"]),{setChildrenToAskFor:function(){var e=Math.floor(window.innerHeight*parseInt(getComputedStyle(document.documentElement).getPropertyValue("--main-control-max-height"),10)/100),t=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--q-tree-no-child-min-height"),10),n=Math.floor(e/t);console.info("Set max children to ".concat(n)),this.$store.state.data.childrenToAskFor=n},askForUndockListener:function(e){this.askForUndocking=e},keydownListener:function(e){if(!(this.connectionDown||this.isInModalMode||!this.admitSearch||this.isHelpShown||this.searchInApp||this.hasActiveTerminal))return 27===e.keyCode&&this.searchIsActive?(this.searchStop(),void e.preventDefault()):void((38===e.keyCode||40===e.keyCode||32===e.keyCode||this.isAcceptedKey(e.key))&&(this.searchIsActive?this.searchIsFocused||(this.searchFocus({char:e.key,focused:!0}),e.preventDefault()):(this.searchStart(e.key),e.preventDefault())))},showDocumentation:function(){this.setMainViewer(c["M"].DOCUMENTATION_VIEWER)}}),watch:{spinnerErrorMessage:function(e,t){null!==e&&e!==t&&(console.error(this.spinnerErrorMessage),this.$q.notify({message:this.spinnerErrorMessage,type:"negative",icon:"mdi-alert-circle",timeout:1e3}))},leftMenuVisible:function(){var e=this;this.$nextTick(function(){e.$eventBus.$emit(c["h"].NEED_FIT_MAP,{})})}},created:function(){"undefined"===typeof this.mainViewer&&this.setMainViewer(c["M"].DATA_VIEWER)},mounted:function(){window.addEventListener("keydown",this.keydownListener),this.setChildrenToAskFor(),this.$eventBus.$on(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$on(c["h"].SHOW_DOCUMENTATION,this.showDocumentation),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].INTERACTIVE_MODE,value:!1},this.session).body),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].LOCK_SPACE,value:!1},this.session).body),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["G"].LOCK_TIME,value:!1},this.session).body)},beforeDestroy:function(){window.removeEventListener("keydown",this.keydownListener),this.$eventBus.$off(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$off(c["h"].SHOW_DOCUMENTATION,this.showDocumentation)}}),Js=Ys,Qs=(n("f913"),Object(y["a"])(Js,ye,_e,!1,null,null,null));Qs.options.__file="KExplorer.vue";var Zs=Qs.exports,ea=n("0388"),ta=n("7d43"),na=n("9541"),ia=n("768b"),oa=n("fb40"),ra=n("bd60"),sa="q:collapsible:close",aa={name:"QCollapsible",mixins:[oa["a"],ra["a"],{props:ra["b"]}],modelToggle:{history:!1},props:{disable:Boolean,popup:Boolean,indent:Boolean,group:String,iconToggle:Boolean,collapseIcon:String,opened:Boolean,duration:Number,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},computed:{classes:function(){return{"q-collapsible-opened":this.showing,"q-collapsible-closed":!this.showing,"q-collapsible-popup-opened":this.popup&&this.showing,"q-collapsible-popup-closed":this.popup&&!this.showing,"q-collapsible-cursor-pointer":!this.separateToggle,"q-item-dark":this.dark,"q-item-separator":this.separator,"q-item-inset-separator":this.insetSeparator,disabled:this.disable}},separateToggle:function(){return this.iconToggle||void 0!==this.to}},watch:{showing:function(e){e&&this.group&&this.$root.$emit(sa,this)}},methods:{__toggleItem:function(){this.separateToggle||this.toggle()},__toggleIcon:function(e){this.separateToggle&&(e&&Object(Gr["g"])(e),this.toggle())},__eventHandler:function(e){this.group&&this!==e&&e.group===this.group&&this.hide()},__getToggleSide:function(e,t){return[e(na["a"],{slot:t?"right":void 0,staticClass:"cursor-pointer transition-generic relative-position q-collapsible-toggle-icon",class:{"rotate-180":this.showing,invisible:this.disable},nativeOn:{click:this.__toggleIcon},props:{icon:this.collapseIcon||this.$q.icon.collapsible.icon}})]},__getItemProps:function(e){return{props:e?{cfg:this.$props}:this.$props,style:this.headerStyle,class:this.headerClass,nativeOn:{click:this.__toggleItem}}}},created:function(){this.$root.$on(sa,this.__eventHandler),(this.opened||this.value)&&this.show()},beforeDestroy:function(){this.$root.$off(sa,this.__eventHandler)},render:function(e){return e(this.tag,{staticClass:"q-collapsible q-item-division relative-position",class:this.classes},[e("div",{staticClass:"q-collapsible-inner"},[this.$slots.header?e(Ye["a"],this.__getItemProps(),[this.$slots.header,e(ta["a"],{props:{right:!0},staticClass:"relative-position"},this.__getToggleSide(e))]):e(ia["a"],this.__getItemProps(!0),this.__getToggleSide(e,!0)),e(en["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:this.showing}]},[e("div",{staticClass:"q-collapsible-sub-item relative-position",class:{indent:this.indent}},this.$slots.default)])])])])}},ca=n("dd1f"),la=n("5d8b"),ua=n("5931"),da=n("482e"),ha={LAYOUT:function(e){return He["a"].component("KAppLayout",{render:function(t){return t(La,{props:{layout:e}})}})},ALERT:function(e){return He["a"].component("KAppAlert",{render:function(t){return t(ea["a"],{props:{value:!0,title:e.title,message:e.content},class:{"kcv-alert":!0}})}})},MAIN:function(e){return He["a"].component("KAppMain",{render:function(t){return t("div",s()({class:["kcv-main-container","kcv-dir-".concat(e.direction),"kcv-style-".concat(this.$store.getters["view/appStyle"])],attrs:{id:"".concat(e.applicationId,"-").concat(e.id),ref:"main-container"},style:s()({},e.style,e.mainPanelStyle)},e.name&&{ref:e.name}),this.$slots.default)}})},PANEL:function(e){return He["a"].component("KAppPanel",{render:function(t){return t("div",s()({class:["kcv-panel-container","kcv-dir-".concat(e.direction)],attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.name&&{ref:e.name}),this.$slots.default)}})},GROUP:function(e){return He["a"].component("KAppGroup",{data:function(){return{}},render:function(t){return t("div",{staticClass:"kcv-group",class:{"text-app-alt-color":e.attributes.altfg,"bg-app-alt-background":e.attributes.altbg,"kcv-wrapper":1===e.components.length,"kcv-group-bottom":e.attributes.bottom},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:e.attributes.hfill?{width:"100%"}:{}},e.attributes.shelf||e.attributes.parentId?[t("div",s()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)]:[t("div",{staticClass:"kcv-group-container",class:{"kcv-group-no-label":!e.name}},[e.name?t("div",{class:"kcv-group-legend"},e.name):null,t("div",s()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)])])}})},SHELF:function(e){return e.attributes.opened?"true"===e.attributes.opened&&(e.attributes.opened=!0):e.attributes.opened=!1,He["a"].component("KAppShelf",{data:function(){return{opened:e.attributes.opened}},render:function(t){var n=this;return t(aa,{class:"kcv-collapsible",props:s()({opened:n.opened,headerClass:"kcv-collapsible-header",collapseIcon:"mdi-dots-vertical",separator:!1},!e.attributes.parentAttributes.multiple&&{group:e.attributes.parentId},{label:e.name},e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)}),on:{hide:function(){e.attributes.opened=!1},show:function(){e.attributes.opened=!0}}},this.$slots.default)}})},SEPARATOR:function(e){return He["a"].component("KAppSeparator",{render:function(t){var n=this;return e.attributes.empty?t("hr",{class:"kcv-hr-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)}}):t("div",{class:"kcv-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},[e.attributes.iconname?t(Qe["a"],{class:"kcv-separator-icon",props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.title?t("div",{class:"kcv-separator-title"},e.title):null,e.attributes.iconbutton?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-".concat(e.attributes.iconbutton),color:"app-main-color"},nativeOn:{click:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!0})}}}):null,e.attributes.info?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-information-outline",color:"app-main-color"},nativeOn:{mouseover:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!0})},mouseleave:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!1})}}}):null])}})},TREE:function(e){var t=[];if(e.tree){var n=e.tree;e.tree.status||(e.tree.status={ticked:[],expanded:[],selected:{}});var i=function i(o){var r=n.values[o],s=Object(Ue["f"])(t,"".concat(e.id,"-").concat(r.id,"-").concat(o));if(!s){s={id:"".concat(e.id,"-").concat(r.id,"-").concat(o),label:r.label,type:r.type,observable:r.id,children:[]};var a=n.links.find(function(e){return e.first===o}).second;if(a===n.rootId)t.push(s);else{var c=i(a);c.children.push(s)}}return s};n.links.forEach(function(e){i(e.first)})}return He["a"].component("KAppTree",{data:function(){return{ticked:e.tree.status.ticked,expanded:e.tree.status.expanded,selected:e.tree.status.selected}},render:function(n){var i=this;return n("div",{class:"kcv-tree-container",style:Object(c["k"])(e)},[e.name?n("div",{class:"kcv-tree-legend"},e.name):null,n(Zt["a"],{class:"kcv-tree",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{nodes:t,nodeKey:"id",tickStrategy:e.attributes.check?"leaf":"none",ticked:i.ticked,selected:i.selected,expanded:i.expanded,color:"app-main-color",controlColor:"app-main-color",textColor:"app-main-color",dense:!0},on:{"update:ticked":function(t){i.ticked=t,e.tree.status.ticked=t,i.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),listValue:t})},"update:selected":function(t){i.selected=t,e.tree.status.selected=t},"update:expanded":function(t){i.expanded=t,e.tree.status.expanded=t}}})])}})},LABEL:function(e){return e.attributes.width||(e.attributes.width=c["b"].LABEL_MIN_WIDTH),He["a"].component("KAppText",{data:function(){return{editable:!1,doneFunc:null,result:null,value:null,searchRequestId:0,searchContextId:null,searchTimeout:null,selected:null}},computed:{searchResult:function(){return this.$store.getters["data/searchResult"]},isSearch:function(){return"search"===e.attributes.tag&&this.editable}},methods:{search:function(e,t){var n=this;this.searchRequestId+=1,this.sendStompMessage(l["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:-1,cancelSearch:!1,defaultResults:""===e,searchMode:c["E"].FREETEXT,queryString:e},this.$store.state.data.session).body),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.$q.notify({message:n.$t("errors.searchTimeout"),type:"warning",icon:"mdi-alert",timeout:2e3}),n.doneFunc&&n.doneFunc([])},"4000")},autocompleteSelected:function(e){e&&(this.selected=e)},sendSelected:function(){this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:this.selected.matchIndex,matchId:this.selected.id,added:!0},this.$store.state.data.session).body)},init:function(){this.doneFunc=null,this.result=null,this.value=null,this.searchRequestId=0,this.searchContextId=null,this.searchTimeout=null,this.selected=null}},watch:{searchResult:function(e){var t=this;if(this.isSearch){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var n=e.requestId,i=e.contextId;if(null===this.searchContextId)this.searchContextId=i;else if(i!==this.searchContextId)return;if(this.searchRequestId===n){var o;null!==this.result&&this.result.requestId===n&&(o=e.matches).push.apply(o,q()(this.result.matches)),this.result=e;var r=this.result,s=r.matches,a=r.error,l=r.errorMessage;if(a)this.$q.notify({message:l,type:"error",icon:"mdi-alert",timeout:2e3});else{var u=[];s.forEach(function(e){var t=c["v"][e.matchType];if("undefined"!==typeof t){var n=t;if(null!==e.mainSemanticType){var i=c["F"][e.mainSemanticType];"undefined"!==typeof i&&(n=i)}u.push({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:n.symbol,leftInverted:!0,leftColor:n.color,rgb:n.rgb,id:e.id,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1})}else console.warn("Unknown type: ".concat(e.matchType))}),0===u.length&&this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),He["a"].nextTick(function(){t.doneFunc(u)})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(n,"\n"))}}},render:function(t){var n=this,i=this;return this.isSearch?t(la["a"],{class:["kcv-text-input","kcv-form-element","kcv-search"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:i.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:i.type,autofocus:!0},on:{keydown:function(e){27===e.keyCode&&(n.editable=!1,n.doneFunc&&(n.doneFunc(),n.doneFunc=null),n.$store.dispatch("view/searchInApp",!1),e.stopPropagation(),i.init()),13===e.keyCode&&n.selected&&(n.$store.dispatch("view/searchInApp",!1),n.editable=!1,i.sendSelected(),i.init())},input:function(e){i.value=e},blur:function(){n.$store.dispatch("view/searchInApp",!1),n.editable=!1},focus:function(){n.$store.dispatch("view/searchInApp",!0)}}},[t(Ve["a"],{props:{debounce:400,"min-characters":4},on:{search:function(e,t){i.search(e,t)},selected:function(e,t){i.autocompleteSelected(e,t)}}},"Cacca")]):t("div",s()({staticClass:"kcv-label",class:{"kcv-title":e.attributes.tag&&("title"===e.attributes.tag||"search"===e.attributes.tag),"kcv-clickable":"true"!==e.attributes.disabled&&"search"===e.attributes.tag,"kcv-ellipsis":e.attributes.ellipsis,"kcv-with-icon":e.attributes.iconname},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},"true"!==e.attributes.disabled&&"search"===e.attributes.tag&&{on:{click:function(){n.editable=!0,n.$store.dispatch("view/searchInApp",!0)}}}),[e.attributes.iconname?t(Qe["a"],{class:["kcv-label-icon",e.attributes.toggle?"kcv-label-toggle":""],props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.content,e.attributes.tooltip?t(Ze["a"],{props:{anchor:"bottom left",self:"top left",offset:[-10,0]}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},TEXT_INPUT:function(e){return He["a"].component("KAppTextInput",{data:function(){return{component:e,value:e.content,type:"number"}},render:function(t){var n=this;return t(la["a"],{class:["kcv-text-input","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:n.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:n.type,disable:"true"===e.attributes.disabled},on:{keydown:function(e){e.stopPropagation()},input:function(t){n.value=t,e.content=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),stringValue:t})}}})}})},COMBO:function(e){return He["a"].component("KAppCombo",{data:function(){return{component:e,value:e.attributes.selected?e.choices.find(function(t){return t.first===e.attributes.selected}).first:e.choices[0].first}},render:function(t){var n=this;return t(ua["a"],{class:["kcv-combo","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:n.value,options:e.choices.map(function(e){return{label:e.first,value:e.second,className:"kcv-combo-option"}}),color:"app-text-color",popupCover:!1,dense:!0,disable:"true"===e.attributes.disabled,dark:"dark"===this.$store.getters["view/appStyle"]},on:{change:function(t){n.value=t,e.attributes.selected=n.value,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),stringValue:t})}}})}})},PUSH_BUTTON:function(e){return He["a"].component("KAppPushButton",{data:function(){return{state:null}},watch:{state:function(){var t=this;e.attributes.timeout&&setTimeout(function(){delete e.attributes.error,delete e.attributes.waiting,delete e.attributes.done,t.state=null},e.attributes.timeout)}},render:function(t){var n=this,i=e.attributes.iconname&&!e.name;this.state=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null;var o=e.attributes.waiting?"app-background-color":e.attributes.computing?"app-alt-color":e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-background-color";return t("div",{},[t(da["a"],{class:[i?"kcv-roundbutton":"kcv-pushbutton","kcv-form-element","breset"===e.attributes.tag?"kcv-reset-button":""],style:s()({},Object(c["k"])(e),e.attributes.timeout&&{"--button-icon-color":"app-background-color","--flash-color":e.attributes.error?"var(--app-negative-color)":e.attributes.done?"var(--app-positive-color)":"var(--app-main-color)",animation:"flash-button ".concat(e.attributes.timeout,"ms")}||{"--button-icon-color":"var(--".concat(o,")")}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:s()({},e.name&&{label:e.name,"text-color":"app-control-text-color"},{color:e.attributes.color?e.attributes.color:"app-main-color"},i&&{round:!0,dense:!0,flat:!0},{noCaps:!0,disable:"true"===e.attributes.disabled},"error"===this.state&&{icon:"mdi-alert-circle"}||"done"===this.state&&{icon:"mdi-check-circle"}||e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)},"waiting"===this.state&&{loading:!0}),on:{click:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]})})}}}),e.attributes.tooltip?t(Ze["a"],{props:{anchor:"bottom left",self:"top left",offset:[-10,0],delay:600}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},CHECK_BUTTON:function(e){return He["a"].component("KAppCheckButton",{data:function(){return{value:!!e.attributes.checked,component:e}},render:function(t){var n=this,i=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null,o=e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-main-color";return t("div",{class:["kcv-checkbutton","kcv-form-element","text-".concat(o),"kcv-check-".concat(i),""===e.name?"kcv-check-only":"kcv-check-with-label"],style:Object(c["k"])(e)},[t(nn["a"],{props:s()({value:n.value,color:o,keepColor:!0,label:e.name,disable:"true"===e.attributes.disabled},e.attributes.waiting&&{"checked-icon":"mdi-loading","unchecked-icon":"mdi-loading",readonly:!0},e.attributes.computing&&{"checked-icon":"mdi-cog-outline","unchecked-icon":"mdi-cog-outline",readonly:!0}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){n.value=t,e.attributes.checked=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}}}),e.attributes.error&&"true"!==e.attributes.error?t(Ze["a"],{class:"kcv-error-tooltip",props:{anchor:"bottom left",self:"top left",offset:[-10,0]}},e.attributes.error):null])}})},RADIO_BUTTON:function(e){return He["a"].component("KAppRadioButton",{data:function(){return{value:null,component:e}},render:function(t){var n=this;return t("div",{class:["kcv-checkbutton","kcv-form-element"],style:Object(c["k"])(e)},[t(ca["a"],{props:{val:!1,value:!1,color:"app-main-color",label:e.name},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){n.value=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}}})])}})},TEXT:function(e){return He["a"].component("KAppText",{data:function(){return{collapsed:!1}},render:function(t){var n=this;return t("div",{staticClass:"kcv-text",class:{"kcv-collapse":e.attributes.collapse,"kcv-collapsed":n.collapsed},attrs:{"data-simplebar":"data-simplebar"},style:Object(c["k"])(e)},[t("div",{staticClass:"kcv-internal-text",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},domProps:{innerHTML:e.content}}),e.attributes.collapse?t("div",{staticClass:"kcv-collapse-button",on:{click:function(){n.collapsed=!n.collapsed}}},[t(Qe["a"],{staticClass:"kcv-collapse-icon",props:{name:n.collapsed?"mdi-arrow-down":"mdi-arrow-up",color:"app-main-color",size:"sm"}})]):null])}})},BROWSER:function(e){return He["a"].component("KBrowswer",{mounted:function(){},render:function(t){var n=e.content.startsWith("http")?e.content:"".concat("").concat("/modeler").concat(e.content);return t("iframe",{class:"kcv-browser",attrs:{id:"".concat(e.applicationId,"-").concat(e.id),width:e.attributes.width||"100%",height:e.attributes.height||"100%",frameBorder:"0",src:n},style:s()({},Object(c["k"])(e),{position:"absolute",top:0,bottom:0,left:0,right:0})})}})},UNKNOWN:function(e){return He["a"].component("KAppUnknown",{render:function(t){return t("div",{class:"kcv-unknown",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.type)}})}};function pa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return[];if(e.type===c["a"].VIEW)return t(ha.LAYOUT);var i,o=null;switch(e.attributes.parentAttributes&&e.attributes.parentAttributes.shelf&&(o=ha.SHELF(e)),e.type){case null:var r=n.mainPanelStyle,a=void 0===r?{}:r,l=n.direction,u=void 0===l?"vertical":l;i=ha.MAIN(s()({},e,{mainPanelStyle:a,direction:u}));break;case c["a"].PANEL:i=ha.PANEL(e);break;case c["a"].SEPARATOR:i=ha.SEPARATOR(e);break;case c["a"].LABEL:i=ha.LABEL(e);break;case c["a"].TEXT_INPUT:i=ha.TEXT_INPUT(e);break;case c["a"].PUSH_BUTTON:i=ha.PUSH_BUTTON(e);break;case c["a"].CHECK_BUTTON:i=ha.CHECK_BUTTON(e);break;case c["a"].RADIO_BUTTON:i=ha.RADIO_BUTTON(e);break;case c["a"].TREE:i=ha.TREE(e);break;case c["a"].GROUP:i=ha.GROUP(e),e.components&&e.components.length>0&&e.components.forEach(function(t){t.attributes.parentId=e.id,t.attributes.parentAttributes=e.attributes});break;case c["a"].TEXT:i=ha.TEXT(e);break;case c["a"].COMBO:i=ha.COMBO(e);break;case c["a"].BROWSER:i=ha.BROWSER(e);break;default:i=ha.UNKNOWN(e)}var d=[];return e.components&&e.components.length>0&&e.components.forEach(function(e){d.push(pa(e,t))}),o?t(o,{},[t(i,{},d)]):t(i,{},d)}var fa,ma,ga=G["b"].height,va={name:"KlabAppViewer",props:{component:{type:Object,required:!0},props:{type:Object,default:null},direction:{type:String,validator:function(e){return["horizontal","vertical"].includes(e)},default:"vertical"},mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{mainContainerHeight:void 0}},computed:{},methods:{calculateMinHeight:function(){this.$nextTick(function(){for(var e=document.querySelectorAll(".kcv-group-bottom"),t=0,n=0;n0},set:function(){}},showRightPanel:{get:function(){return this.layout&&this.layout.rightPanels.length>0},set:function(){}},leftPanelWidth:function(){return this.layout&&this.layout.leftPanels&&this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):512},rightPanelWidth:function(){return this.layout&&this.layout.rightPanels&&this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):512},mainPanelStyle:function(){return{width:this.header.width-this.leftPanel.width-this.rightPanel.width,height:this.leftPanel.height}},idSuffix:function(){return null!==this.layout?this.layout.applicationId:"default"},modalDimensions:function(){return this.isModal?{width:this.modalWidth,height:this.modalHeight,"min-height":this.modalHeight}:{}}}),methods:{setLogoImage:function(){this.layout&&this.layout.logo?this.logoImage="".concat("").concat(T["c"].REST_GET_PROJECT_RESOURCE,"/").concat(this.layout.projectId,"/").concat(this.layout.logo.replace("/",":")):this.logoImage=c["b"].DEFAULT_LOGO},setStyle:function(){var e=this,t=null;if(null===this.layout)t=c["j"].default;else{if(t=s()({},this.layout.style&&c["j"][this.layout.style]?c["j"][this.layout.style]:c["j"].default),this.layout.styleSpecs)try{var n=JSON.parse(this.layout.styleSpecs);t=s()({},t,n)}catch(e){console.error("Error parsing style specs",e)}var i=(this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):0)+(this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):0);0!==i&&document.documentElement.style.setProperty("--body-min-width","calc(640px + ".concat(i,"px)"))}null!==t&&Object.keys(t).forEach(function(n){var i=t[n];if("density"===n)switch(n="line-height",t.density){case"default":i=1;break;case"confortable":i=1.5;break;case"compact":i=.5;break;default:i=1}if(document.documentElement.style.setProperty("--app-".concat(n),i),n.includes("color"))try{var o=Object(Xe["e"])(i);if(o&&o.rgb){var r=e.layout&&"dark"===e.layout.style?-1:1;document.documentElement.style.setProperty("--app-rgb-".concat(n),"".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b)),document.documentElement.style.setProperty("--app-highlight-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-15*r)),document.documentElement.style.setProperty("--app-darklight-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-5*r)),document.documentElement.style.setProperty("--app-darken-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-20*r)),document.documentElement.style.setProperty("--app-lighten-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),20*r)),document.documentElement.style.setProperty("--app-lighten90-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),90*r)),document.documentElement.style.setProperty("--app-lighten75-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),75*r))}}catch(e){console.warn("Error trying to parse a color from the layout style: ".concat(n,": ").concat(i))}}),this.$nextTick(function(){var e=document.querySelector(".kapp-left-inner-container");e&&new be(e);var t=document.querySelector(".kapp-right-inner-container");t&&new be(t)})},updateLayout:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setLogoImage();var n=document.querySelector(".kapp-main.kapp-header-container");this.header.height=n?Ca(n):0,this.header.width=window.innerWidth,this.leftPanel.height=window.innerHeight-this.header.height;var i=document.querySelector(".kapp-main.kapp-left-container aside");this.leftPanel.width=i?wa(i):0,this.rightPanel.height=window.innerHeight-this.header.height;var o=document.querySelector(".kapp-main.kapp-right-container aside");this.rightPanel.width=o?wa(o):0,this.$nextTick(function(){e.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout",align:e.layout&&e.layout.leftPanels.length>0?"right":"left"})}),this.setStyle(),t&&this.$eventBus.$emit(c["h"].SHOW_NOTIFICATIONS,{apps:null!==this.layout?[this.layout.name]:[],groups:this.sessionReference&&this.sessionReference.owner&&this.sessionReference.owner.groups?this.sessionReference.owner.groups.map(function(e){return e.id}):[]})},downloadListener:function(e){var t=e.url,n=e.parameters;this.$axios.get("".concat("").concat("/modeler").concat(t),{params:{format:"RAW"},responseType:"blob"}).then(function(e){var t=document.createElement("a");t.href=URL.createObjectURL(e.data),t.setAttribute("download",n.filename||"output_".concat((new Date).getTime())),document.body.appendChild(t),t.click(),t.remove(),setTimeout(function(){return URL.revokeObjectURL(t.href)},5e3)}).catch(function(e){console.error(e)})},clickOnMenu:function(e,t){if(t&&window.open(t),this.layout){var n=this.layout,i=n.applicationId,o=n.identity;this.sendStompMessage(l["a"].MENU_ACTION({identity:o,applicationId:i,menuId:e},this.$store.state.data.session).body)}},resetContextListener:function(){var e=this;null!==this.resetTimeout&&(clearTimeout(this.resetTimeout),this.resetTimeout=null),this.blockApp=!0,this.resetTimeout=setTimeout(function(){e.blockApp=!1,e.resetTimeout=null},1e3)},viewActionListener:function(){null!==this.resetTimeout&&this.resetContextListener()},updateListeners:function(){null!==this.layout?this.isRootLayout&&(this.$eventBus.$on(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$on(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$on(c["h"].COMPONENT_ACTION,this.componentClickedListener)):(this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$off(c["h"].COMPONENT_ACTION,this.componentClickedListener))},componentClickedListener:function(e){delete e.component.attributes.parentAttributes,delete e.component.attributes.parentId,this.sendStompMessage(l["a"].VIEW_ACTION(s()({},Sa,e),this.$store.state.data.session).body)}},watch:{layout:function(e,t){var n=this,i=null!==e&&(null===t||e.applicationId!==t.applicationId);if((null===e||!this.isApp&&i)&&(this.$nextTick(function(){n.updateLayout(!0)}),null!==t&&null!==t.name)){this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:t.name,stop:!0},this.$store.state.data.session).body);var o=localStorage.getItem(c["P"].LOCAL_STORAGE_APP_ID);o&&o===t.name&&localStorage.removeItem(c["P"].LOCAL_STORAGE_APP_ID)}null===t&&this.updateListeners()}},created:function(){},mounted:function(){this.updateLayout(!0),this.updateListeners(),this.$eventBus.$on(c["h"].DOWNLOAD_URL,this.downloadListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].DOWNLOAD_URL,this.downloadListener),this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener)}},Ea=Aa,Oa=(n("4b0d"),Object(y["a"])(Ea,re,se,!1,null,null,null));Oa.options.__file="KlabLayout.vue";var La=Oa.exports,Ta=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-modal",{attrs:{"content-classes":"km-main-container","no-esc-dismiss":"","no-backdrop-dismiss":""},model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[n("q-modal-layout",{staticClass:"km-modal-window"},[e.modal.label?n("q-toolbar",{staticClass:"km-title",attrs:{slot:"header"},slot:"header"},[n("q-toolbar-title",[e._v(e._s(e.modal.label))]),e.modal.subtitle?n("span",{staticClass:"km-subtitle",attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.modal.subtitle))]):e._e()],1):e._e(),n("klab-layout",{staticClass:"km-content",attrs:{layout:e.modal,isModal:!0,"modal-width":e.width,"modal-height":e.height}}),n("div",{staticClass:"km-buttons justify-end row"},[n("q-btn",{staticClass:"klab-button",attrs:{label:e.$t("label.appClose")},on:{click:e.close}})],1)],1)],1)},xa=[];Ta._withStripped=!0;var Ra={name:"KlabModalWindow",props:{modal:{type:Object,required:!0}},components:{KlabLayout:La},data:function(){return{instance:void 0}},computed:{open:{get:function(){return null!==this.modal},set:function(e){e||this.close()}},width:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.width,"px")||!1)},height:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.height,"px")||!1)}},methods:s()({},Object(a["b"])("view",["setModalWindow"]),{close:function(){this.setModalWindow(null)}})},ka=Ra,za=(n("a4c5"),Object(y["a"])(ka,Ta,xa,!1,null,null,null));za.options.__file="KlabModalWindow.vue";var Pa=za.exports,Na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelp,expression:"showHelp"}],staticClass:"modal fullscreen",attrs:{id:"modal-show-help"}},[n("div",{staticClass:"modal-backdrop absolute-full"}),n("div",{ref:"kp-help-container",staticClass:"klab-modal-container",style:{width:e.modalSize.width+"px",height:e.modalSize.height+"px",transform:"translate(-50%, -50%) scale("+e.scale+", "+e.scale+") !important"}},[n("div",{ref:"kp-help-inner",staticClass:"klab-modal-inner"},[n("div",{staticClass:"klab-modal-content full-height"},[n("div",{staticClass:"kp-help-titlebar"},e._l(e.presentations,function(t,i){return n("div",{key:"kp-pres-"+i,staticClass:"kp-link",class:{"kp-link-current":i===e.activeSectionIndex},attrs:{id:"kp-pres-"+i},on:{click:function(t){i!==e.activeSectionIndex&&e.loadPresentation(i)}}},[n("span",[e._v(e._s(t.linkTitle))])])})),e.presentationBlocked?e._e():n("q-carousel",{ref:"kp-carousel",staticClass:"kp-carousel full-height",attrs:{color:"white","no-swipe":""},on:{"slide-trigger":e.initStack}},e._l(e.activePresentation,function(t,i){return n("q-carousel-slide",{key:"kp-slide-"+i,staticClass:"kp-slide full-height"},[n("div",{staticClass:"kp-main-content"},[t.stack.layers&&t.stack.layers.length>0?n("klab-stack",{ref:"kp-stack",refInFor:!0,attrs:{presentation:e.presentations[e.activeSectionIndex],"owner-index":i,maxOwnerIndex:e.activePresentation.length,stack:t.stack,"on-top":e.currentSlide===i},on:{stackend:e.stackEnd}}):n("div",[e._v("No slides")]),t.title?n("div",{staticClass:"kp-main-title",domProps:{innerHTML:e._s(t.title)}}):e._e()],1)])}))],1),n("div",{staticClass:"kp-nav-tooltip",class:{visible:""!==e.tooltipTitle},domProps:{innerHTML:e._s(e.tooltipTitle)}}),n("div",{staticClass:"kp-navigation"},[n("div",{staticClass:"kp-nav-container"},e._l(e.activePresentation,function(t,i){return n("div",{key:"kp-nav-"+i,staticClass:"kp-navnumber-container",on:{click:function(t){e.goTo(i,0)},mouseover:function(n){e.showTitle(t.title)},mouseleave:function(t){e.showTitle("")}}},[n("div",{staticClass:"kp-nav-number",class:{"kp-nav-current":e.currentSlide===i}},[e._v(e._s(i+1))])])}))]),n("div",{staticClass:"kp-btn-container"},[n("q-checkbox",{staticClass:"kp-checkbox",attrs:{"keep-color":!0,color:"grey-8",label:e.$t("label.rememberDecision"),"left-label":!0},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}})],1),n("q-btn",{directives:[{name:"show",rawName:"v-show",value:1!==e.scale,expression:"scale !== 1"}],staticClass:"kp-icon-refresh-size",attrs:{icon:"mdi-refresh",color:"mc-main",size:"md",title:e.$t("label.refreshSize"),round:"",flat:""},on:{click:e.refreshSize}}),n("q-btn",{staticClass:"kp-icon-close-popover",attrs:{icon:"mdi-close-circle-outline",color:"grey-8",size:"md",title:e.$t("label.appClose"),round:"",flat:""},on:{click:e.hideHelp}})],1),e.waitForPresentation||e.presentationBlocked?n("div",{staticClass:"kp-help-inner",class:{"modal-backdrop":!e.presentationBlocked&&e.waitForPresentation}},[e.presentationBlocked?n("div",{staticClass:" kp-no-presentation"},[n("div",{staticClass:"fixed-center text-center"},[n("div",{staticClass:"kp-np-content",domProps:{innerHTML:e._s(e.$t("messages.presentationBlocked"))}}),n("q-btn",{attrs:{flat:"","no-caps":"",icon:"mdi-refresh",label:e.$t("label.appRetry")},on:{click:e.initPresentation}})],1)]):e.waitForPresentation?n("q-spinner",{staticClass:"fixed-center",attrs:{color:"mc-yellow",size:40}}):e._e()],1):e._e()])])},Ia=[];Na._withStripped=!0;n("55dd"),n("28a5");var Da=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.layers.length>0?n("div",{ref:"ks-stack-container",staticClass:"ks-stack-container"},[e._l(e.layers,function(t,i){return n("div",{key:"ks-layer-"+i,ref:"ks-layer",refInFor:!0,staticClass:"ks-layer",class:{"ks-top-layer":e.selectedLayer===i,"ks-hide-layer":e.selectedLayer!==i},style:{"z-index":e.selectedLayer===i?9999:e.layers.length-i},attrs:{id:"ks-layer-"+e.ownerIndex+"-"+i}},[t.image?n("div",{staticClass:"ks-layer-image",class:e.elementClasses(t.image),style:e.elementStyle(t.image)},[n("img",{style:{width:t.image.width||"auto",height:t.image.height||"auto","max-width":e.imgMaxSize.width,"max-height":e.imgMaxSize.height},attrs:{src:e.getImage(t),alt:t.image.alt||t.title||t.text,title:t.image.alt||t.title||t.text,id:"ks-image-"+e.ownerIndex+"-"+i}})]):e._e(),t.title||t.text?n("div",{staticClass:"ks-layer-caption",class:e.elementClasses(t.textDiv),style:e.elementStyle(t.textDiv)},[t.title?n("div",{staticClass:"ks-caption-title",domProps:{innerHTML:e._s(e.rewriteImageUrl(t.title))}}):e._e(),t.text?n("div",{staticClass:"ks-caption-text",style:{"text-align":t.textAlign||"left"},domProps:{innerHTML:e._s(e.rewriteImageUrl(t.text))}}):e._e()]):e._e()])}),n("div",{staticClass:"ks-navigation",class:{"ks-navigation-transparent":null!==e.animation}},[n("q-btn",{attrs:{id:"ks-prev",disable:!e.hasPrevious,"text-color":"grey-8",icon:"mdi-chevron-left",round:"",flat:"",dense:"",title:e.$t("label.appPrevious")},on:{click:e.previous}}),n("q-btn",{attrs:{id:"ks-play-stop",disable:!e.hasNext,"text-color":"grey-8",icon:null===e.animation?"mdi-play":"mdi-pause",round:"",flat:"",dense:"",title:null===e.animation?e.$t("label.appPlay"):e.$t("label.appPause")},on:{click:function(t){null===e.animation?e.playStack():e.stopStack()}}}),n("q-btn",{attrs:{id:"ks-replay",disable:!e.isGif,"text-color":"grey-8",icon:"mdi-reload",round:"",flat:"",dense:"",title:e.$t("label.appReplay")},on:{click:function(t){e.refreshLayer(e.layers[e.selectedLayer])}}}),n("q-btn",{attrs:{id:"ks-next",disable:!e.hasNext,"text-color":"grey-8",icon:"mdi-chevron-right",round:"",flat:"",dense:"",title:e.$t("label.appNext")},on:{click:e.next}})],1)],2):e._e()},Ba=[];Da._withStripped=!0;n("aef6");var qa={name:"KlabStack",props:{presentation:{type:Object,required:!0},ownerIndex:{type:Number,required:!0},maxOwnerIndex:{type:Number,required:!0},stack:{type:Object,required:!0},onTop:{type:Boolean,default:!1}},data:function(){return{selectedLayer:0,animation:null,layers:this.stack.layers,animated:"undefined"!==typeof this.stack.animated&&this.stack.animated,autostart:"undefined"!==typeof this.stack.autostart?this.stack.autostart:0===this.ownerIndex,duration:this.stack.duration||5e3,infinite:"undefined"!==typeof this.stack.infinite&&this.stack.infinite,initialSize:{},scale:1,imgMaxSize:{width:"auto",height:"auto"}}},computed:{hasPrevious:function(){return this.selectedLayer>0||this.ownerIndex>0||this.infinite},hasNext:function(){return this.selectedLayer0?this.goTo(this.selectedLayer-1):this.infinite?this.goTo(this.layers.length-1):this.$emit("stackend",{index:this.ownerIndex,direction:-1})},reloadGif:function(e){var t=document.getElementById("ks-image-".concat(this.ownerIndex,"-").concat(this.selectedLayer));t&&(t.src=this.getImage(e))},setAnimation:function(e){if(this.hasNext){var t=this;null!==this.animation&&(clearTimeout(this.animation),this.animation=null),this.animation=setTimeout(function(){t.next()},e)}},getImage:function(e){return e.image?"".concat(this.baseUrl,"/").concat(e.image.url,"?t=").concat(Math.random()):""},rewriteImageUrl:function(e){return e&&e.length>0&&-1!==e.indexOf("0?t0&&this.goTo(t-1,"last")},refreshSize:function(){this.initialSize=void 0,this.onResize()},onResize:function(){var e=this;setTimeout(function(){if("undefined"===typeof e.initialSize){var t=window.innerWidth,n=window.innerHeight;e.initialSize={width:t,height:n}}if(e.scale=Math.min(window.innerWidth/e.initialSize.width,window.innerHeight/e.initialSize.height),1===e.scale){var i=window.innerWidth*c["r"].DEFAULT_WIDTH_PERCENTAGE/100,o=i/c["r"].DEFAULT_PROPORTIONS.width*c["r"].DEFAULT_PROPORTIONS.height,r=window.innerHeight*c["r"].DEFAULT_HEIGHT_PERCENTAGE/100,s=r/c["r"].DEFAULT_PROPORTIONS.height*c["r"].DEFAULT_PROPORTIONS.width;i0){var r=0;o.forEach(function(n,i){r+=1,Xa()("".concat(e.helpBaseUrl,"/index.php?sec=").concat(n.id),{param:"callback"},function(o,s){o?console.error(o.message):t.presentations.push({id:n.id,baseFolder:n.baseFolder,linkTitle:n.name,linkDescription:n.description,slides:s,index:i}),r-=1,0===r&&(e.presentationsLoading=!1,e.presentations.sort(function(e,t){return e.index-t.index}))})})}}})}catch(e){console.error("Error loading presentation: ".concat(e.message)),this.presentationsLoading=!1,this.presentationBlocked=e}}}),watch:{showHelp:function(e){this.$store.state.view.helpShown=e,e&&!this.presentationsLoading&&this.loadPresentation(0)},presentationsLoading:function(e){!e&&this.showHelp&&this.loadPresentation(0)},remember:function(e){e?V["a"].set(c["P"].COOKIE_HELP_ON_START,!1,{expires:30,path:"/",secure:!0}):V["a"].remove(c["P"].COOKIE_HELP_ON_START)}},created:function(){this.initPresentation()},mounted:function(){this.needHelp=this.isLocal&&!V["a"].has(c["P"].COOKIE_HELP_ON_START),this.remember=!this.needHelp,this.$eventBus.$on(c["h"].NEED_HELP,this.helpNeededEvent),window.addEventListener("resize",this.onResize)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_HELP,this.helpNeededEvent),window.removeEventListener("resize",this.onResize)}},Va=Ua,Ga=(n("edad"),Object(y["a"])(Va,Na,Ia,!1,null,null,null));Ga.options.__file="KlabPresentation.vue";var Ka=Ga.exports,$a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-dialog",{staticClass:"kn-modal-container",attrs:{"prevent-close":""},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-checkbox",{staticClass:"kn-checkbox",attrs:{"keep-color":!0,color:"app-main-color",label:e.$t("label.rememberDecision")},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}}),n("q-btn",{attrs:{color:"app-main-color",label:e.$t("label.appAccept")},on:{click:e.onOk}})]}}]),model:{value:e.showNotifications,callback:function(t){e.showNotifications=t},expression:"showNotifications"}},[n("div",{staticClass:"kn-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.actualNotification.title)},slot:"title"}),n("div",{staticClass:"kn-content",attrs:{slot:"message"},domProps:{innerHTML:e._s(e.actualNotification.content)},slot:"message"})])},Ya=[];$a._withStripped=!0;var Ja={name:"KlabNotifications",data:function(){return{notifications:[],actualNotificationIndex:-1,remember:!1,cooked:[]}},computed:s()({},Object(a["c"])("stomp",["connectionUp"]),Object(a["c"])("view",["isInModalMode"]),{showNotifications:{get:function(){return-1!==this.actualNotificationIndex&&!this.actualNotificationIndex.read},set:function(){}},actualNotification:function(){return-1===this.actualNotificationIndex?{id:-1,title:"",content:""}:this.notifications[this.actualNotificationIndex]}}),methods:s()({},Object(a["b"])("view",["setModalMode"]),{onOk:function(){var e=this,t=this.notifications[this.actualNotificationIndex];t.read=!0,this.remember&&(this.cooked.findIndex(function(e){return e===t.id})&&this.cooked.push(t.id),V["a"].set(c["P"].COOKIE_NOTIFICATIONS,this.cooked,{expires:365,path:"/",secure:!0}),this.remember=!1),this.$nextTick(function(){do{e.actualNotificationIndex+=1}while(e.actualNotificationIndex0&&void 0!==arguments[0]?arguments[0]:{};this.notificationsLoading=!0,V["a"].has(c["P"].COOKIE_NOTIFICATIONS)&&(this.cooked=V["a"].get(c["P"].COOKIE_NOTIFICATIONS)),this.notifications.splice(0,this.notifications.length);try{var n="";if(t){var i=t.groups,o=t.apps;n=q()(i.map(function(e){return"groups[]=".concat(e)})).concat(q()(o.map(function(e){return"apps[]=".concat(e)}))).join("&")}var r=this;Xa()("".concat(c["d"].NOTIFICATIONS_URL).concat(""!==n?"?".concat(n):""),{param:"callback",timeout:5e3},function(t,n){t?console.error("Error loading notifications: ".concat(t.message)):n.length>0?n.forEach(function(e,t){var n=-1!==r.cooked.findIndex(function(t){return t==="".concat(e.id)});r.notifications.push(s()({},e,{read:n})),-1!==r.actualNotificationIndex||n||(r.actualNotificationIndex=t)}):console.debug("No notification"),e.presentationsLoading=!1})}catch(e){console.error("Error loading notifications: ".concat(e.message)),this.presentationsLoading=!1}}}),mounted:function(){this.$eventBus.$on(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)}},Qa=Ja,Za=(n("e0d9"),Object(y["a"])(Qa,$a,Ya,!1,null,null,null));Za.options.__file="KlabNotifications.vue";var ec=Za.exports,tc=(n("8195"),{name:"LayoutDefault",components:{KlabLayout:La,KlabModalWindow:Pa,ConnectionStatus:A,KlabSettings:P,KlabTerminal:Q,AppDialogs:oe,KlabPresentation:Ka,KlabNotifications:ec},data:function(){return{errorLoading:!1,waitApp:!1}},computed:s()({},Object(a["c"])("data",["hasContext","terminals","isDeveloper"]),Object(a["c"])("stomp",["connectionDown"]),Object(a["c"])("view",["layout","isApp","klabApp","modalWindow"]),{wait:{get:function(){return this.waitApp||this.errorLoading},set:function(){}}}),methods:{reload:function(){document.location.reload()}},created:function(){},mounted:function(){var e=this;this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body);var t=localStorage.getItem(c["P"].LOCAL_STORAGE_APP_ID);t&&(this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:t,stop:!0},this.$store.state.data.session).body),localStorage.removeItem(c["P"].LOCAL_STORAGE_APP_ID)),this.isApp&&this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:this.$store.state.view.klabApp},this.$store.state.data.session).body),this.isApp&&null===this.layout&&(this.waitApp=!0,setTimeout(function(){e.isApp&&null===e.layout&&(e.errorLoading=!0)},15e3)),window.addEventListener("beforeunload",function(t){e.hasContext&&!e.isDeveloper&&(t.preventDefault(),t.returnValue=e.$t("messages.confirmExitPage"))})},watch:{layout:function(e){this.waitApp&&e&&(this.waitApp=!1),this.errorLoading&&e&&(this.errorLoading=!1)}}}),nc=tc,ic=(n("7521"),Object(y["a"])(nc,i,o,!1,null,null,null));ic.options.__file="default.vue";t["default"]=ic.exports},"7bae":function(e,t,n){},"7bae3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("064a"),o=n("e1c6"),r=n("7f73"),s=n("755f"),a=n("6923"),c=n("e576"),l=new o.ContainerModule(function(e,t,n){i.configureModelElement({bind:e,isBound:n},"marker",r.SIssueMarker,s.IssueMarkerView),e(c.DecorationPlacer).toSelf().inSingletonScope(),e(a.TYPES.IVNodePostprocessor).toService(c.DecorationPlacer)});t.default=l},"7bbc":function(e,t,n){"use strict";var i=n("fcf8"),o=n.n(i);o.a},"7d36":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.fadeFeature)&&void 0!==e["opacity"]}Object.defineProperty(t,"__esModule",{value:!0}),t.fadeFeature=Symbol("fadeFeature"),t.isFadeable=i},"7d72":function(e,t,n){"use strict";var i=n("8707").Buffer,o=i.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=r(e);if("string"!==typeof t&&(i.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function l(e,t,n){var i=t.length-1;if(i=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function f(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n0,d=u?l.length:n.length,f=h(i,t,s,c,d),m=p(e,n),g=f.concat(m);return g}function d(e,t,n,s,a){var l=a[e.toString()]||[],u=m(l),d=!0!==u.unmanaged,h=s[e],p=u.inject||u.multiInject;if(h=p||h,h instanceof i.LazyServiceIdentifer&&(h=h.unwrap()),d){var f=h===Object,g=h===Function,v=void 0===h,b=f||g||v;if(!t&&b){var y=o.MISSING_INJECT_ANNOTATION+" argument "+e+" in class "+n+".";throw new Error(y)}var _=new c.Target(r.TargetTypeEnum.ConstructorArgument,u.targetName,h);return _.metadata=l,_}return null}function h(e,t,n,i,o){for(var r=[],s=0;s0?l:f(e,n)}return 0}function m(e){var t={};return e.forEach(function(e){t[e.key.toString()]=e.value}),{inject:t[s.INJECT_TAG],multiInject:t[s.MULTI_INJECT_TAG],targetName:t[s.NAME_TAG],unmanaged:t[s.UNMANAGED_TAG]}}t.getDependencies=l,t.getBaseClassDependencyCount=f},"7f45":function(e,t,n){var i=e.exports=n("0efb");i.tz.load(n("6cd2"))},"7f73":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("e4f0"),r=n("66f9");function s(e){return e.hasFeature(t.decorationFeature)}t.decorationFeature=Symbol("decorationFeature"),t.isDecoration=s;var a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.DEFAULT_FEATURES=[t.decorationFeature,r.boundsFeature,o.hoverFeedbackFeature,o.popupFeature],n}(r.SShapeElement);t.SDecoration=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(a);t.SIssueMarker=c;var l=function(){function e(){}return e}();t.SIssue=l},"7faf":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.exportFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.exportFeature=Symbol("exportFeature"),t.isExportable=i},"80b5":function(e,t,n){"use strict";function i(e){return e instanceof HTMLElement?{x:e.offsetLeft,y:e.offsetTop}:e}Object.defineProperty(t,"__esModule",{value:!0}),t.toAnchor=i},8122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("33b2"),s=n("9e2e"),a=n("0fb6"),c=n("be02"),l=n("160b"),u=n("302f"),d=n("538c"),h=n("29fa"),p=n("65d1"),f=n("3b4c"),m=n("1417"),g=n("a190"),v=n("064a"),b=n("8794"),y=n("0d7a"),_=n("b093"),M=n("842c"),w=n("cd10"),C=n("ddee"),S=n("1590"),A=n("3f0a"),E=n("6176"),O=n("c661"),L=new i.ContainerModule(function(e,t,n){e(o.TYPES.ILogger).to(s.NullLogger).inSingletonScope(),e(o.TYPES.LogLevel).toConstantValue(s.LogLevel.warn),e(o.TYPES.SModelRegistry).to(u.SModelRegistry).inSingletonScope(),e(c.ActionHandlerRegistry).toSelf().inSingletonScope(),e(o.TYPES.ActionHandlerRegistryProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(c.ActionHandlerRegistry))})}}),e(o.TYPES.ViewRegistry).to(v.ViewRegistry).inSingletonScope(),e(o.TYPES.IModelFactory).to(u.SModelFactory).inSingletonScope(),e(o.TYPES.IActionDispatcher).to(a.ActionDispatcher).inSingletonScope(),e(o.TYPES.IActionDispatcherProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(o.TYPES.IActionDispatcher))})}}),e(o.TYPES.IDiagramLocker).to(O.DefaultDiagramLocker).inSingletonScope(),e(o.TYPES.IActionHandlerInitializer).to(M.CommandActionHandlerInitializer),e(o.TYPES.ICommandStack).to(l.CommandStack).inSingletonScope(),e(o.TYPES.ICommandStackProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(o.TYPES.ICommandStack))})}}),e(o.TYPES.CommandStackOptions).toConstantValue({defaultDuration:250,undoHistoryLimit:50}),e(h.ModelViewer).toSelf().inSingletonScope(),e(h.HiddenModelViewer).toSelf().inSingletonScope(),e(h.PopupModelViewer).toSelf().inSingletonScope(),e(o.TYPES.ModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(o.TYPES.IViewer).toService(h.ModelViewer),t.bind(b.ViewerCache).toSelf(),t.get(b.ViewerCache)}).inSingletonScope(),e(o.TYPES.PopupModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(o.TYPES.IViewer).toService(h.PopupModelViewer),t.bind(b.ViewerCache).toSelf(),t.get(b.ViewerCache)}).inSingletonScope(),e(o.TYPES.HiddenModelViewer).toService(h.HiddenModelViewer),e(o.TYPES.IViewerProvider).toDynamicValue(function(e){return{get modelViewer(){return e.container.get(o.TYPES.ModelViewer)},get hiddenModelViewer(){return e.container.get(o.TYPES.HiddenModelViewer)},get popupModelViewer(){return e.container.get(o.TYPES.PopupModelViewer)}}}),e(o.TYPES.ViewerOptions).toConstantValue(p.defaultViewerOptions()),e(o.TYPES.PatcherProvider).to(h.PatcherProvider).inSingletonScope(),e(o.TYPES.DOMHelper).to(y.DOMHelper).inSingletonScope(),e(o.TYPES.ModelRendererFactory).toFactory(function(e){return function(t,n){var i=e.container.get(o.TYPES.ViewRegistry);return new h.ModelRenderer(i,t,n)}}),e(_.IdPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(_.IdPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(_.IdPostprocessor),e(w.CssClassPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(w.CssClassPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(w.CssClassPostprocessor),e(f.MouseTool).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(f.MouseTool),e(m.KeyTool).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(m.KeyTool),e(g.FocusFixPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(g.FocusFixPostprocessor),e(o.TYPES.PopupVNodePostprocessor).toService(_.IdPostprocessor),e(f.PopupMouseTool).toSelf().inSingletonScope(),e(o.TYPES.PopupVNodePostprocessor).toService(f.PopupMouseTool),e(o.TYPES.AnimationFrameSyncer).to(d.AnimationFrameSyncer).inSingletonScope();var i={bind:e,isBound:n};M.configureCommand(i,r.InitializeCanvasBoundsCommand),e(r.CanvasBoundsInitializer).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(r.CanvasBoundsInitializer),M.configureCommand(i,A.SetModelCommand),e(o.TYPES.IToolManager).to(C.ToolManager).inSingletonScope(),e(o.TYPES.KeyListener).to(C.DefaultToolsEnablingKeyListener),e(C.ToolManagerActionHandler).toSelf().inSingletonScope(),c.configureActionHandler(i,S.EnableDefaultToolsAction.KIND,C.ToolManagerActionHandler),c.configureActionHandler(i,S.EnableToolsAction.KIND,C.ToolManagerActionHandler),e(o.TYPES.UIExtensionRegistry).to(E.UIExtensionRegistry).inSingletonScope(),M.configureCommand(i,E.SetUIExtensionVisibilityCommand),e(f.MousePositionTracker).toSelf().inSingletonScope(),e(o.TYPES.MouseListener).toService(f.MousePositionTracker)});t.default=L},8195:function(e,t,n){},"81aa":function(e,t,n){"use strict";function i(e,t,n,i,o){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:i,elm:o,key:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.vnode=i,t.default=i},8336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("155f"),r=n("0fd9"),s=n("2cac"),a=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=o.BindingTypeEnum.Instance,this._binding.implementationType=e,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!==typeof this._binding.serviceIdentifier)throw new Error(""+i.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=o.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=o.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=o.BindingTypeEnum.Constructor,this._binding.implementationType=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!==typeof e)throw new Error(i.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=o.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=function(t){var n=function(){return t.container.get(e)};return n},new s.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=o.BindingTypeEnum.Provider,this._binding.provider=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},e}();t.BindingToSyntax=a},"842c":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("7b39"),c=n("6923"),l=function(){function e(e){this.commandRegistration=e}return e.prototype.handle=function(e){return this.commandRegistration.factory(e)},e}();t.CommandActionHandler=l;var u=function(){function e(e){this.registrations=e}return e.prototype.initialize=function(e){this.registrations.forEach(function(t){return e.register(t.kind,new l(t))})},e=i([s.injectable(),r(0,s.multiInject(c.TYPES.CommandRegistration)),r(0,s.optional()),o("design:paramtypes",[Array])],e),e}();function d(e,t){if(!a.isInjectable(t))throw new Error("Commands should be @injectable: "+t.name);e.isBound(t)||e.bind(t).toSelf(),e.bind(c.TYPES.CommandRegistration).toDynamicValue(function(e){return{kind:t.KIND,factory:function(n){var i=new s.Container;return i.parent=e.container,i.bind(c.TYPES.Action).toConstantValue(n),i.get(t)}}})}t.CommandActionHandlerInitializer=u,t.configureCommand=d},"84a2":function(e,t,n){(function(t){var n="Expected a function",i=NaN,o="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),p=Object.prototype,f=p.toString,m=Math.max,g=Math.min,v=function(){return h.Date.now()};function b(e,t,i){var o,r,s,a,c,l,u=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function f(t){var n=o,i=r;return o=r=void 0,u=t,a=e.apply(i,n),a}function b(e){return u=e,c=setTimeout(w,t),d?f(e):a}function y(e){var n=e-l,i=e-u,o=t-n;return h?g(o,s-i):o}function M(e){var n=e-l,i=e-u;return void 0===l||n>=t||n<0||h&&i>=s}function w(){var e=v();if(M(e))return S(e);c=setTimeout(w,y(e))}function S(e){return c=void 0,p&&o?f(e):(o=r=void 0,a)}function A(){void 0!==c&&clearTimeout(c),u=0,o=l=r=c=void 0}function E(){return void 0===c?a:S(v())}function O(){var e=v(),n=M(e);if(o=arguments,r=this,l=e,n){if(void 0===c)return b(l);if(h)return c=setTimeout(w,t),f(l)}return void 0===c&&(c=setTimeout(w,t)),a}return t=C(t)||0,_(i)&&(d=!!i.leading,h="maxWait"in i,s=h?m(C(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),O.cancel=A,O.flush=E,O}function y(e,t,i){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError(n);return _(i)&&(o="leading"in i?!!i.leading:o,r="trailing"in i?!!i.trailing:r),b(e,t,{leading:o,maxWait:t,trailing:r})}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function M(e){return!!e&&"object"==typeof e}function w(e){return"symbol"==typeof e||M(e)&&f.call(e)==o}function C(e){if("number"==typeof e)return e;if(w(e))return i;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=a.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?i:+e}e.exports=y}).call(this,n("c8ba"))},"84b1":function(e,t,n){(function(t,n){e.exports=n()})(0,function(){"use strict";function e(e){var t,n,i=document,o=i.createElement("div"),r=o.style,s=navigator.userAgent,a=-1!==s.indexOf("Firefox")&&-1!==s.indexOf("Mobile"),c=e.debounceWaitMs||0,l=e.preventSubmit||!1,u=a?"input":"keyup",d=[],h="",p=2,f=e.showOnFocus,m=0;if(void 0!==e.minLength&&(p=e.minLength),!e.input)throw new Error("input undefined");var g=e.input;function v(){var e=o.parentNode;e&&e.removeChild(o)}function b(){n&&window.clearTimeout(n)}function y(){o.parentNode||i.body.appendChild(o)}function _(){return!!o.parentNode}function M(){m++,d=[],h="",t=void 0,v()}function w(){if(_()){r.height="auto",r.width=g.offsetWidth+"px";var t=g.getBoundingClientRect(),n=t.top+g.offsetHeight,i=window.innerHeight-n;i<0&&(i=0),r.top=n+"px",r.bottom="",r.left=t.left+"px",r.maxHeight=i+"px",e.customize&&e.customize(g,t,o,i)}}function C(){while(o.firstChild)o.removeChild(o.firstChild);var n=function(e,t){var n=i.createElement("div");return n.textContent=e.label||"",n};e.render&&(n=e.render);var r=function(e,t){var n=i.createElement("div");return n.textContent=e,n};e.renderGroup&&(r=e.renderGroup);var s=i.createDocumentFragment(),a="#9?$";if(d.forEach(function(i){if(i.group&&i.group!==a){a=i.group;var o=r(i.group,h);o&&(o.className+=" group",s.appendChild(o))}var c=n(i,h);c&&(c.addEventListener("click",function(t){e.onSelect(i,g),M(),t.preventDefault(),t.stopPropagation()}),i===t&&(c.className+=" selected"),s.appendChild(c))}),o.appendChild(s),d.length<1){if(!e.emptyMsg)return void M();var c=i.createElement("div");c.className="empty",c.textContent=e.emptyMsg,o.appendChild(c)}y(),w(),L()}function S(){_()&&C()}function A(){S()}function E(e){e.target!==o?S():e.preventDefault()}function O(e){for(var t=e.which||e.keyCode||0,n=[38,13,27,39,37,16,17,18,20,91,9],i=0,o=n;i0){var t=e[0],n=t.previousElementSibling;if(n&&-1!==n.className.indexOf("group")&&!n.previousElementSibling&&(t=n),t.offsetTopr&&(o.scrollTop+=i-r)}}}function T(){if(d.length<1)t=void 0;else if(t===d[0])t=d[d.length-1];else for(var e=d.length-1;e>0;e--)if(t===d[e]||1===e){t=d[e-1];break}}function x(){if(d.length<1&&(t=void 0),t&&t!==d[d.length-1]){for(var e=0;e=p||1===i?(b(),n=window.setTimeout(function(){e.fetch(r,function(e){m===o&&e&&(d=e,h=r,t=d.length>0?d[0]:void 0,C())},0)},0===i?c:0)):M()}function P(){setTimeout(function(){i.activeElement!==g&&M()},200)}function N(){g.removeEventListener("focus",k),g.removeEventListener("keydown",R),g.removeEventListener(u,O),g.removeEventListener("blur",P),window.removeEventListener("resize",A),i.removeEventListener("scroll",E,!0),b(),M(),m++}return o.className="autocomplete "+(e.className||""),r.position="fixed",o.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),g.addEventListener("keydown",R),g.addEventListener(u,O),g.addEventListener("blur",P),g.addEventListener("focus",k),window.addEventListener("resize",A),i.addEventListener("scroll",E,!0),{destroy:N}}return e})},"84fd":function(e,t,n){},"85ed":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=a.LogLevel.error&&this.forward(e,t,a.LogLevel.error,n)},e.prototype.warn=function(e,t){for(var n=[],i=2;i=a.LogLevel.warn&&this.forward(e,t,a.LogLevel.warn,n)},e.prototype.info=function(e,t){for(var n=[],i=2;i=a.LogLevel.info&&this.forward(e,t,a.LogLevel.info,n)},e.prototype.log=function(e,t){for(var n=[],i=2;i=a.LogLevel.log)try{var o="object"===typeof e?e.constructor.name:String(e);console.log.apply(e,r([o+": "+t],n))}catch(e){}},e.prototype.forward=function(e,t,n,i){var o=new Date,r=new l(a.LogLevel[n],o.toLocaleTimeString(),"object"===typeof e?e.constructor.name:String(e),t,i.map(function(e){return JSON.stringify(e)}));this.modelSourceProvider().then(function(n){try{n.handle(r)}catch(n){try{console.log.apply(e,[t,r,n])}catch(e){}}})},i([s.inject(c.TYPES.ModelSourceProvider),o("design:type",Function)],e.prototype,"modelSourceProvider",void 0),i([s.inject(c.TYPES.LogLevel),o("design:type",Number)],e.prototype,"logLevel",void 0),e=i([s.injectable()],e),e}();t.ForwardingLogger=u},"861d":function(e,t,n){var i=/(?:|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,o=n("c4ec"),r=Object.create?Object.create(null):{};function s(e,t,n,i,o){var r=t.indexOf("<",i),s=t.slice(i,-1===r?void 0:r);/^\s*$/.test(s)&&(s=" "),(!o&&r>-1&&n+e.length>=0||" "!==s)&&e.push({type:"text",content:s})}e.exports=function(e,t){t||(t={}),t.components||(t.components=r);var n,a=[],c=-1,l=[],u={},d=!1;return e.replace(i,function(i,r){if(d){if(i!=="")return;d=!1}var h,p="/"!==i.charAt(1),f=0===i.indexOf("\x3c!--"),m=r+i.length,g=e.charAt(m);p&&!f&&(c++,n=o(i),"tag"===n.type&&t.components[n.name]&&(n.type="component",d=!0),n.voidElement||d||!g||"<"===g||s(n.children,e,c,m,t.ignoreWhitespace),u[n.tagName]=n,0===c&&a.push(n),h=l[c-1],h&&h.children.push(n),l[c]=n),(f||!p||n.voidElement)&&(f||c--,!d&&"<"!==g&&g&&(h=-1===c?a:l[c].children,s(h,e,c,m,t.ignoreWhitespace)))}),!a.length&&e.length&&s(a,e,0,0,t.ignoreWhitespace),a}},8622:function(e,t,n){"use strict";var i=n("bc63"),o=n.n(i);o.a},"869e":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3864");t.DIAMOND_ANCHOR_KIND="diamond",t.ELLIPTIC_ANCHOR_KIND="elliptic",t.RECTANGULAR_ANCHOR_KIND="rectangular";var u=function(e){function n(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.kind,e)}),n}return i(n,e),Object.defineProperty(n.prototype,"defaultAnchorKind",{get:function(){return t.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),n.prototype.get=function(t,n){return e.prototype.get.call(this,t+":"+(n||this.defaultAnchorKind))},n=o([a.injectable(),s(0,a.multiInject(c.TYPES.IAnchorComputer)),r("design:paramtypes",[Array])],n),n}(l.InstanceRegistry);t.AnchorComputerRegistry=u},8707:function(e,t,n){var i=n("b639"),o=i.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=s),s.prototype=Object.create(o.prototype),r(o,s),s.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},8794:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=n("538c"),c=function(){function e(){}return e.prototype.update=function(e,t){if(void 0!==t)this.delegate.update(e,t),this.cachedModel=void 0;else{var n=void 0===this.cachedModel;this.cachedModel=e,n&&this.scheduleUpdate()}},e.prototype.scheduleUpdate=function(){var e=this;this.syncer.onEndOfNextFrame(function(){e.cachedModel&&(e.delegate.update(e.cachedModel),e.cachedModel=void 0)})},i([r.inject(s.TYPES.IViewer),o("design:type",Object)],e.prototype,"delegate",void 0),i([r.inject(s.TYPES.AnimationFrameSyncer),o("design:type",a.AnimationFrameSyncer)],e.prototype,"syncer",void 0),e=i([r.injectable()],e),e}();t.ViewerCache=c},"87b3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("7685"),o=n("30e3"),r=n("155f"),s=n("c5f4"),a=n("a8af"),c=n("ba33"),l=n("a32f"),u=n("1979"),d=n("c8c0"),h=n("7dba"),p=n("c622"),f=n("757d");function m(e){return e._bindingDictionary}function g(e,t,n,i,o,r){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new u.Metadata(a,n),l=new f.Target(t,i,n,c);if(void 0!==o){var d=new u.Metadata(o,r);l.metadata.push(d)}return l}function v(e,t,n,o,r){var s=_(n.container,r.serviceIdentifier),a=[];return s.length===i.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"===typeof r.serviceIdentifier&&e.getConstructorMetadata(r.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(r.serviceIdentifier).toSelf(),s=_(n.container,r.serviceIdentifier)),a=t?s:s.filter(function(e){var t=new p.Request(e.serviceIdentifier,n,o,e,r);return e.constraint(t)}),b(r.serviceIdentifier,a,r,n.container),a}function b(e,t,n,r){switch(t.length){case i.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=o.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(r,s,_),new Error(a);case i.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case i.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;s=c.getServiceIdentifierAsString(e),a=o.AMBIGUOUS_MATCH+" "+s;throw a+=c.listRegisteredBindingsForServiceIdentifier(r,s,_),new Error(a)}}function y(e,t,n,i,s,a){var c,l;if(null===s){c=v(e,t,i,null,a),l=new p.Request(n,i,null,c,a);var u=new d.Plan(i,l);i.addPlan(u)}else c=v(e,t,i,s,a),l=s.addChildRequest(a.serviceIdentifier,c,a);c.forEach(function(t){var n=null;if(a.isArray())n=l.addChildRequest(t.serviceIdentifier,t,a);else{if(t.cache)return;n=l}if(t.type===r.BindingTypeEnum.Instance&&null!==t.implementationType){var s=h.getDependencies(e,t.implementationType);if(!i.container.options.skipBaseClassChecks){var c=h.getBaseClassDependencyCount(e,t.implementationType);if(s.length=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("dd7b"),r=n("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){var n=this;return o.h(this.selector(e),{key:e.id,hook:{init:this.init.bind(this),prepatch:this.prepatch.bind(this)},fn:function(){return n.renderAndDecorate(e,t)},args:this.watchedArgs(e),thunk:!0})},e.prototype.renderAndDecorate=function(e,t){var n=this.doRender(e,t);return t.decorate(n,e),n},e.prototype.copyToThunk=function(e,t){t.elm=e.elm,e.data.fn=t.data.fn,e.data.args=t.data.args,t.data=e.data,t.children=e.children,t.text=e.text,t.elm=e.elm},e.prototype.init=function(e){var t=e.data,n=t.fn.apply(void 0,t.args);this.copyToThunk(n,e)},e.prototype.prepatch=function(e,t){var n=e.data,i=t.data;this.equals(n.args,i.args)?this.copyToThunk(e,t):this.copyToThunk(i.fn.apply(void 0,i.args),t)},e.prototype.equals=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("3585"),s=function(){function e(){}return e.prototype.isVisible=function(e,t,n){if("hidden"===n.targetKind)return!0;if(0===t.length)return!0;var i=r.getAbsoluteRouteBounds(e,t),o=e.root.canvasBounds;return i.x<=o.width&&i.x+i.width>=0&&i.y<=o.height&&i.y+i.height>=0},e=i([o.injectable()],e),e}();t.RoutableView=s},"8e08":function(e,t,n){},"8e65":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("842c"),r=n("6923"),s=n("42be"),a=n("26ad"),c=new i.ContainerModule(function(e,t,n){e(r.TYPES.ModelSourceProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(r.TYPES.ModelSource))})}}),o.configureCommand({bind:e,isBound:n},s.CommitModelCommand),e(r.TYPES.IActionHandlerInitializer).toService(r.TYPES.ModelSource),e(a.ComputedBoundsApplicator).toSelf().inSingletonScope()});t.default=c},"8e97":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("dd02"),s=n("66f9"),a=function(){function e(){}return e.prototype.isVisible=function(e,t){if("hidden"===t.targetKind)return!0;if(!r.isValidDimension(e.bounds))return!0;var n=s.getAbsoluteBounds(e),i=e.root.canvasBounds;return n.x<=i.width&&n.x+n.width>=0&&n.y<=i.height&&n.y+n.height>=0},e=i([o.injectable()],e),e}();t.ShapeView=a},"8ef3":function(e,t,n){},9016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,o=function(e){i(function(){i(e)})},r=!1;function s(e,t,n){o(function(){e[t]=n})}function a(e,t){var n,i,o=t.elm,r=e.data.style,a=t.data.style;if((r||a)&&r!==a){r=r||{},a=a||{};var c="delayed"in r;for(i in r)a[i]||("-"===i[0]&&"-"===i[1]?o.style.removeProperty(i):o.style[i]="");for(i in a)if(n=a[i],"delayed"===i&&a.delayed)for(var l in a.delayed)n=a.delayed[l],c&&n===r.delayed[l]||s(o.style,l,n);else"remove"!==i&&n!==r[i]&&("-"===i[0]&&"-"===i[1]?o.style.setProperty(i,n):o.style[i]=n)}}function c(e){var t,n,i=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)i.style[n]=t[n]}function l(e,t){var n=e.data.style;if(n&&n.remove){r||(getComputedStyle(document.body).transform,r=!0);var i,o,s=e.elm,a=0,c=n.remove,l=0,u=[];for(i in c)u.push(i),s.style[i]=c[i];o=getComputedStyle(s);for(var d=o["transition-property"].split(", ");a=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=n("21a6"),c=n("e1c6"),l=n("3f0a"),u=n("6923"),d=n("42f7"),h=n("4741"),p=n("5d19"),f=n("f4cb"),m=n("b485"),g=n("cf61"),v=n("26ad");function b(e){return void 0!==e&&e.hasOwnProperty("action")}t.isActionMessage=b;var y=function(){function e(){this.kind=e.KIND}return e.KIND="serverStatus",e}();t.ServerStatusAction=y;var _="__receivedFromServer",M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentRoot={type:"NONE",id:"ROOT"},t}return i(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),t.register(d.ComputedBoundsAction.KIND,this),t.register(d.RequestBoundsCommand.KIND,this),t.register(f.RequestPopupModelAction.KIND,this),t.register(h.CollapseExpandAction.KIND,this),t.register(h.CollapseExpandAllAction.KIND,this),t.register(m.OpenAction.KIND,this),t.register(y.KIND,this),this.clientId||(this.clientId=this.viewerOptions.baseDiv)},t.prototype.handle=function(e){var t=this.handleLocally(e);t&&this.forwardToServer(e)},t.prototype.forwardToServer=function(e){var t={clientId:this.clientId,action:e};this.logger.log(this,"sending",t),this.sendMessage(t)},t.prototype.messageReceived=function(e){var t=this,n="string"===typeof e?JSON.parse(e):e;b(n)&&n.action?n.clientId&&n.clientId!==this.clientId||(n.action[_]=!0,this.logger.log(this,"receiving",n),this.actionDispatcher.dispatch(n.action).then(function(){t.storeNewModel(n.action)})):this.logger.error(this,"received data is not an action message",n)},t.prototype.handleLocally=function(e){switch(this.storeNewModel(e),e.kind){case d.ComputedBoundsAction.KIND:return this.handleComputedBounds(e);case l.RequestModelAction.KIND:return this.handleRequestModel(e);case d.RequestBoundsCommand.KIND:return!1;case p.ExportSvgAction.KIND:return this.handleExportSvgAction(e);case y.KIND:return this.handleServerStateAction(e)}return!e[_]},t.prototype.storeNewModel=function(e){if(e.kind===l.SetModelCommand.KIND||e.kind===g.UpdateModelCommand.KIND||e.kind===d.RequestBoundsCommand.KIND){var t=e.newRoot;t&&(this.currentRoot=t,e.kind!==l.SetModelCommand.KIND&&e.kind!==g.UpdateModelCommand.KIND||(this.lastSubmittedModelType=t.type))}},t.prototype.handleRequestModel=function(e){var t=o({needsClientLayout:this.viewerOptions.needsClientLayout,needsServerLayout:this.viewerOptions.needsServerLayout},e.options),n=o(o({},e),{options:t});return this.forwardToServer(n),!1},t.prototype.handleComputedBounds=function(e){if(this.viewerOptions.needsServerLayout)return!0;var t=this.currentRoot;return this.computedBoundsApplicator.apply(t,e),t.type===this.lastSubmittedModelType?this.actionDispatcher.dispatch(new g.UpdateModelAction(t)):this.actionDispatcher.dispatch(new l.SetModelAction(t)),this.lastSubmittedModelType=t.type,!1},t.prototype.handleExportSvgAction=function(e){var t=new Blob([e.svg],{type:"text/plain;charset=utf-8"});return a.saveAs(t,"diagram.svg"),!1},t.prototype.handleServerStateAction=function(e){return!1},t.prototype.commitModel=function(e){var t=this.currentRoot;return this.currentRoot=e,t},r([c.inject(u.TYPES.ILogger),s("design:type",Object)],t.prototype,"logger",void 0),r([c.inject(v.ComputedBoundsApplicator),s("design:type",v.ComputedBoundsApplicator)],t.prototype,"computedBoundsApplicator",void 0),t=r([c.injectable()],t),t}(v.ModelSource);t.DiagramServer=M},"966d":function(e,t,n){"use strict";(function(t){function n(e,n,i,o){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var r,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,i)});case 4:return t.nextTick(function(){e.call(null,n,i,o)});default:r=new Array(a-1),s=0;while(s=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=function(){function e(){}return e=o([r.injectable()],e),e}();t.Command=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.merge=function(e,t){return!1},t=o([r.injectable()],t),t}(s);t.MergeableCommand=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.undo=function(e){return e.logger.error(this,"Cannot undo a hidden command"),e.root},t.prototype.redo=function(e){return e.logger.error(this,"Cannot redo a hidden command"),e.root},t=o([r.injectable()],t),t}(s);t.HiddenCommand=c;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.PopupCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.SystemCommand=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.ResetCommand=d},9811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("e7fa"),s=new i.ContainerModule(function(e){e(o.TYPES.IVNodePostprocessor).to(r.ElementFader).inSingletonScope()});t.default=s},"987d":function(e,t,n){"use strict";function i(e){return e<.5?e*e*2:1-(1-e)*(1-e)*2}Object.defineProperty(t,"__esModule",{value:!0}),t.easeInOut=i},"98ab":function(e,t,n){},"98db":function(e,t,n){(function(e,t){ -/*! ***************************************************************************** -Copyright (C) Microsoft. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -var n;(function(n){(function(e){var i="object"===typeof t?t:"object"===typeof self?self:"object"===typeof this?this:Function("return this;")(),o=r(n);function r(e,t){return function(n,i){"function"!==typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:i}),t&&t(n,i)}}"undefined"===typeof i.Reflect?i.Reflect=n:o=r(i.Reflect,o),e(o)})(function(t){var n=Object.prototype.hasOwnProperty,i="function"===typeof Symbol,o=i&&"undefined"!==typeof Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",r=i&&"undefined"!==typeof Symbol.iterator?Symbol.iterator:"@@iterator",s="function"===typeof Object.create,a={__proto__:[]}instanceof Array,c=!s&&!a,l={create:s?function(){return re(Object.create(null))}:a?function(){return re({__proto__:null})}:function(){return re({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d="object"===typeof e&&Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.22.0",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API:"/modeler/api/v2",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"})&&"true"===Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.22.0",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API:"/modeler/api/v2",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"})["REFLECT_METADATA_USE_MAP_POLYFILL"],h=d||"function"!==typeof Map||"function"!==typeof Map.prototype.entries?ne():Map,p=d||"function"!==typeof Set||"function"!==typeof Set.prototype.entries?ie():Set,f=d||"function"!==typeof WeakMap?oe():WeakMap,m=new f;function g(e,t,n,i){if(D(n)){if(!V(e))throw new TypeError;if(!K(t))throw new TypeError;return E(e,t)}if(!V(e))throw new TypeError;if(!j(t))throw new TypeError;if(!j(i)&&!D(i)&&!B(i))throw new TypeError;return B(i)&&(i=void 0),n=U(n),O(e,t,n,i)}function v(e,t){function n(n,i){if(!j(n))throw new TypeError;if(!D(i)&&!$(i))throw new TypeError;z(e,t,n,i)}return n}function b(e,t,n,i){if(!j(n))throw new TypeError;return D(i)||(i=U(i)),z(e,t,n,i)}function y(e,t,n){if(!j(t))throw new TypeError;return D(n)||(n=U(n)),T(e,t,n)}function _(e,t,n){if(!j(t))throw new TypeError;return D(n)||(n=U(n)),x(e,t,n)}function M(e,t,n){if(!j(t))throw new TypeError;return D(n)||(n=U(n)),R(e,t,n)}function w(e,t,n){if(!j(t))throw new TypeError;return D(n)||(n=U(n)),k(e,t,n)}function C(e,t){if(!j(e))throw new TypeError;return D(t)||(t=U(t)),P(e,t)}function S(e,t){if(!j(e))throw new TypeError;return D(t)||(t=U(t)),N(e,t)}function A(e,t,n){if(!j(t))throw new TypeError;D(n)||(n=U(n));var i=L(t,n,!1);if(D(i))return!1;if(!i.delete(e))return!1;if(i.size>0)return!0;var o=m.get(t);return o.delete(n),o.size>0||(m.delete(t),!0)}function E(e,t){for(var n=e.length-1;n>=0;--n){var i=e[n],o=i(t);if(!D(o)&&!B(o)){if(!K(o))throw new TypeError;t=o}}return t}function O(e,t,n,i){for(var o=e.length-1;o>=0;--o){var r=e[o],s=r(t,n,i);if(!D(s)&&!B(s)){if(!j(s))throw new TypeError;i=s}}return i}function L(e,t,n){var i=m.get(e);if(D(i)){if(!n)return;i=new h,m.set(e,i)}var o=i.get(t);if(D(o)){if(!n)return;o=new h,i.set(t,o)}return o}function T(e,t,n){var i=x(e,t,n);if(i)return!0;var o=te(t);return!B(o)&&T(e,o,n)}function x(e,t,n){var i=L(t,n,!1);return!D(i)&&H(i.has(e))}function R(e,t,n){var i=x(e,t,n);if(i)return k(e,t,n);var o=te(t);return B(o)?void 0:R(e,o,n)}function k(e,t,n){var i=L(t,n,!1);if(!D(i))return i.get(e)}function z(e,t,n,i){var o=L(n,i,!0);o.set(e,t)}function P(e,t){var n=N(e,t),i=te(e);if(null===i)return n;var o=P(i,t);if(o.length<=0)return n;if(n.length<=0)return o;for(var r=new p,s=[],a=0,c=n;a=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var i=this._keys.length,o=n+1;o=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("dd02"),r=n("869e"),s=n("46cc"),a=n("e1c6"),c=function(){function e(){}var t;return t=e,Object.defineProperty(e.prototype,"kind",{get:function(){return t.KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,n){var i=e.bounds;if(i.width<=0||i.height<=0)return i;var r={x:i.x-n,y:i.y-n,width:i.width+2*n,height:i.height+2*n};return t.x>=r.x&&r.x+r.width>=t.x?t.y=r.y&&r.y+r.height>=t.y?t.x=r.x&&t.x<=r.x+r.width?r.x+.5*r.width>=t.x?(c=new o.PointToPointLine(t,{x:t.x,y:s.y}),a=t.y=r.y&&t.y<=r.y+r.height&&(r.y+.5*r.height>=t.y?(c=new o.PointToPointLine(t,{x:s.x,y:t.y}),a=t.x=r.x&&r.x+r.width>=t.x){c+=a.x;var u=.5*r.height*Math.sqrt(1-a.x*a.x/(.25*r.width*r.width));a.y<0?l-=u:l+=u}else if(t.y>=r.y&&r.y+r.height>=t.y){l+=a.y;var d=.5*r.width*Math.sqrt(1-a.y*a.y/(.25*r.height*r.height));a.x<0?c-=d:c+=d}return{x:c,y:l}},e.KIND=s.ManhattanEdgeRouter.KIND+":"+r.ELLIPTIC_ANCHOR_KIND,e=t=i([a.injectable()],e),e}();t.ManhattanEllipticAnchor=u},"9ad4":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("393a"),a=n("ee16"),c=n("e45b"),l=n("8e97"),u=n("87fa"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(!(e instanceof u.ShapedPreRenderedElement)||this.isVisible(e,t)){var n=a.default(e.code);return this.correctNamespace(n),n}},t.prototype.correctNamespace=function(e){"svg"!==e.sel&&"g"!==e.sel||c.setNamespace(e,"http://www.w3.org/2000/svg")},t=o([r.injectable()],t),t}(l.ShapeView);t.PreRenderedView=d;var h=function(){function e(){}return e.prototype.render=function(e,t){var n=a.default(e.code),i=s.svg("g",null,s.svg("foreignObject",{requiredFeatures:"http://www.w3.org/TR/SVG11/feature#Extensibility",height:e.bounds.height,width:e.bounds.width,x:0,y:0},n),t.renderChildren(e));return c.setAttr(i,"class",e.type),c.setNamespace(n,e.namespace),i},e=o([r.injectable()],e),e}();t.ForeignObjectView=h},"9bc6":function(e,t,n){"use strict";var i=n("232d"),o=n.n(i);o.a},"9d14":function(e,t,n){"use strict";var i=n("a5de"),o=n.n(i);o.a},"9d6c":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("3a92"),c=n("e45b"),l=n("47b7"),u=n("dd02"),d=n("66f9"),h=n("779b"),p=n("168d"),f=function(){function e(){}return e.prototype.decorate=function(e,t){if(h.isEdgeLayoutable(t)&&t.parent instanceof l.SEdge&&t.bounds!==u.EMPTY_BOUNDS){var n=this.getEdgePlacement(t),i=t.parent,o=Math.min(1,Math.max(0,n.position)),r=this.edgeRouterRegistry.get(i.routerKind),s=r.pointAt(i,o),a=r.derivativeAt(i,o),d="";if(s&&a){d+="translate("+s.x+", "+s.y+")";var p=u.toDegrees(Math.atan2(a.y,a.x));if(n.rotate){var f=p;Math.abs(p)>90&&(p<0?f+=180:p>0&&(f-=180)),d+=" rotate("+f+")";var m=this.getRotatedAlignment(t,n,f!==p);d+=" translate("+m.x+", "+m.y+")"}else{m=this.getAlignment(t,n,p);d+=" translate("+m.x+", "+m.y+")"}c.setAttr(e,"transform",d)}}return e},e.prototype.getRotatedAlignment=function(e,t,n){var i=d.isAlignable(e)?e.alignment.x:0,o=d.isAlignable(e)?e.alignment.y:0,r=e.bounds;if("on"===t.side)return{x:i-.5*r.height,y:o-.5*r.height};if(n)switch(t.position<.3333333?i-=r.width+t.offset:t.position<.6666666?i-=.5*r.width:i+=t.offset,t.side){case"left":case"bottom":o-=t.offset+r.height;break;case"right":case"top":o+=t.offset}else switch(t.position<.3333333?i+=t.offset:t.position<.6666666?i-=.5*r.width:i-=r.width+t.offset,t.side){case"right":case"bottom":o+=-t.offset-r.height;break;case"left":case"top":o+=t.offset}return{x:i,y:o}},e.prototype.getEdgePlacement=function(e){var t=e,n=[];while(void 0!==t){var o=t.edgePlacement;if(void 0!==o&&n.push(o),!(t instanceof a.SChildElement))break;t=t.parent}return n.reverse().reduce(function(e,t){return i(i({},e),t)},h.DEFAULT_EDGE_PLACEMENT)},e.prototype.getAlignment=function(e,t,n){var i=e.bounds,o=d.isAlignable(e)?e.alignment.x-i.width:0,r=d.isAlignable(e)?e.alignment.y-i.height:0;if("on"===t.side)return{x:o+.5*i.height,y:r+.5*i.height};var s=this.getQuadrant(n),a={x:t.offset,y:r+.5*i.height},c={x:t.offset,y:r+i.height+t.offset},l={x:-i.width-t.offset,y:r+i.height+t.offset},h={x:-i.width-t.offset,y:r+.5*i.height},p={x:-i.width-t.offset,y:r-t.offset},f={x:t.offset,y:r-t.offset};switch(t.side){case"left":switch(s.orientation){case"west":return u.linear(c,l,s.position);case"north":return u.linear(l,p,s.position);case"east":return u.linear(p,f,s.position);case"south":return u.linear(f,c,s.position)}break;case"right":switch(s.orientation){case"west":return u.linear(p,f,s.position);case"north":return u.linear(f,c,s.position);case"east":return u.linear(c,l,s.position);case"south":return u.linear(l,p,s.position)}break;case"top":switch(s.orientation){case"west":return u.linear(p,f,s.position);case"north":return this.linearFlip(f,a,h,p,s.position);case"east":return u.linear(p,f,s.position);case"south":return this.linearFlip(f,a,h,p,s.position)}break;case"bottom":switch(s.orientation){case"west":return u.linear(c,l,s.position);case"north":return this.linearFlip(l,h,a,c,s.position);case"east":return u.linear(c,l,s.position);case"south":return this.linearFlip(l,h,a,c,s.position)}break}return{x:0,y:0}},e.prototype.getQuadrant=function(e){return Math.abs(e)>135?{orientation:"west",position:(e>0?e-135:e+225)/90}:e<-45?{orientation:"north",position:(e+135)/90}:e<45?{orientation:"east",position:(e+45)/90}:{orientation:"south",position:(e-45)/90}},e.prototype.linearFlip=function(e,t,n,i,o){return o<.5?u.linear(e,t,2*o):u.linear(n,i,2*o-1)},e.prototype.postUpdate=function(){},o([s.inject(p.EdgeRouterRegistry),r("design:type",p.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),e=o([s.injectable()],e),e}();t.EdgeLayoutPostprocessor=f},"9e2e":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=s.error)try{console.error.apply(e,this.consoleArguments(e,t,n))}catch(e){}},e.prototype.warn=function(e,t){for(var n=[],i=2;i=s.warn)try{console.warn.apply(e,this.consoleArguments(e,t,n))}catch(e){}},e.prototype.info=function(e,t){for(var n=[],i=2;i=s.info)try{console.info.apply(e,this.consoleArguments(e,t,n))}catch(e){}},e.prototype.log=function(e,t){for(var n=[],i=2;i=s.log)try{console.log.apply(e,this.consoleArguments(e,t,n))}catch(e){}},e.prototype.consoleArguments=function(e,t,n){var i;i="object"===typeof e?e.constructor.name:e;var o=new Date;return r([o.toLocaleTimeString()+" "+this.viewOptions.baseDiv+" "+i+": "+t],n)},i([a.inject(c.TYPES.LogLevel),o("design:type",Number)],e.prototype,"logLevel",void 0),i([a.inject(c.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"viewOptions",void 0),e=i([a.injectable()],e),e}();t.ConsoleLogger=u},"9f62":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c5f4"),o=n("1979"),r=n("66d7");function s(){return function(e,t,n){var s=new o.Metadata(i.UNMANAGED_TAG,!0);r.tagParameter(e,t,n,s)}}t.unmanaged=s},"9f8d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("1cd9"),s=n("5d19"),a=n("842c"),c=new i.ContainerModule(function(e,t,n){e(o.TYPES.KeyListener).to(r.ExportSvgKeyListener).inSingletonScope(),e(o.TYPES.HiddenVNodePostprocessor).to(r.ExportSvgPostprocessor).inSingletonScope(),a.configureCommand({bind:e,isBound:n},r.ExportSvgCommand),e(o.TYPES.SvgExporter).to(s.SvgExporter).inSingletonScope()});t.default=c},a0af:function(e,t,n){"use strict";function i(e){return void 0!==e["position"]}function o(e){return e.hasFeature(t.moveFeature)&&i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.moveFeature=Symbol("moveFeature"),t.isLocateable=i,t.isMoveable=o},a16f:function(e,t,n){},a190:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("e45b"),s=function(){function e(){}return e.prototype.decorate=function(e,t){return e.sel&&e.sel.startsWith("svg")&&r.setAttr(e,"tabindex",0),e},e.prototype.postUpdate=function(){},e=i([o.injectable()],e),e}();t.FocusFixPostprocessor=s},a1a5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c5f4"),o=n("1979"),r=n("66d7");function s(e){return function(t,n,s){var a=new o.Metadata(i.NAME_TAG,e);r.tagParameter(t,n,s,a)}}t.targetName=s},a27f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("bcc9");t.Draggable=i.Draggable},a2e1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("dd02"),o=n("3a92"),r=n("66f9"),s=function(){function e(){}return e.prototype.layout=function(e,t){var n=t.getBoundsData(e),i=this.getLayoutOptions(e),o=this.getChildrenSize(e,i,t),r=i.paddingFactor*(i.resizeContainer?o.width:Math.max(0,this.getFixedContainerBounds(e,i,t).width)-i.paddingLeft-i.paddingRight),s=i.paddingFactor*(i.resizeContainer?o.height:Math.max(0,this.getFixedContainerBounds(e,i,t).height)-i.paddingTop-i.paddingBottom);if(r>0&&s>0){var a=this.layoutChildren(e,t,i,r,s);n.bounds=this.getFinalContainerBounds(e,a,i,r,s),n.boundsChanged=!0}},e.prototype.getFinalContainerBounds=function(e,t,n,i,o){return{x:e.bounds.x,y:e.bounds.y,width:Math.max(n.minWidth,i+n.paddingLeft+n.paddingRight),height:Math.max(n.minHeight,o+n.paddingTop+n.paddingBottom)}},e.prototype.getFixedContainerBounds=function(e,t,n){var s=e;while(1){if(r.isBoundsAware(s)){var a=s.bounds;if(r.isLayoutContainer(s)&&t.resizeContainer&&n.log.error(s,"Resizable container found while detecting fixed bounds"),i.isValidDimension(a))return a}if(!(s instanceof o.SChildElement))return n.log.error(s,"Cannot detect fixed bounds"),i.EMPTY_BOUNDS;s=s.parent}},e.prototype.layoutChildren=function(e,t,n,o,s){var a=this,c={x:n.paddingLeft+.5*(o-o/n.paddingFactor),y:n.paddingTop+.5*(s-s/n.paddingFactor)};return e.children.forEach(function(e){if(r.isLayoutableChild(e)){var l=t.getBoundsData(e),u=l.bounds,d=a.getChildLayoutOptions(e,n);void 0!==u&&i.isValidDimension(u)&&(c=a.layoutChild(e,l,u,d,n,c,o,s))}}),c},e.prototype.getDx=function(e,t,n){switch(e){case"left":return 0;case"center":return.5*(n-t.width);case"right":return n-t.width}},e.prototype.getDy=function(e,t,n){switch(e){case"top":return 0;case"center":return.5*(n-t.height);case"bottom":return n-t.height}},e.prototype.getChildLayoutOptions=function(e,t){var n=e.layoutOptions;return void 0===n?t:this.spread(t,n)},e.prototype.getLayoutOptions=function(e){var t=this,n=e,i=[];while(void 0!==n){var r=n.layoutOptions;if(void 0!==r&&i.push(r),!(n instanceof o.SChildElement))break;n=n.parent}return i.reverse().reduce(function(e,n){return t.spread(e,n)},this.getDefaultLayoutOptions())},e}();t.AbstractLayout=s},a32f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("77d3"),o=function(){function e(e){this.id=i.id(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=o},a406:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("510b"),c=n("6923"),l=n("e629"),u=n("e1cb"),d=n("bcbd"),h=n("ed4f"),p=function(){function e(e){void 0===e&&(e=[]),this.actionProviders=e}return e.prototype.getActions=function(e,t,n,i){var o=this.actionProviders.map(function(o){return o.getActions(e,t,n,i)});return Promise.all(o).then(function(e){return e.reduce(function(e,t){return void 0!==t?e.concat(t):e})})},e=i([s.injectable(),r(0,s.multiInject(c.TYPES.ICommandPaletteActionProvider)),r(0,s.optional()),o("design:paramtypes",[Array])],e),e}();t.CommandPaletteActionProviderRegistry=p;var f=function(){function e(e){this.logger=e}return e.prototype.getActions=function(e,t,n,i){return void 0!==i&&i%2===0?Promise.resolve(this.createSelectActions(e)):Promise.resolve([new a.LabeledAction("Select all",[new d.SelectAllAction])])},e.prototype.createSelectActions=function(e){var t=l.toArray(e.index.all().filter(function(e){return u.isNameable(e)}));return t.map(function(e){return new a.LabeledAction("Reveal "+u.name(e),[new d.SelectAction([e.id]),new h.CenterAction([e.id])],"fa-eye")})},e=i([s.injectable(),r(0,s.inject(c.TYPES.ILogger)),o("design:paramtypes",[Object])],e),e}();t.RevealNamedElementActionProvider=f},a4c5:function(e,t,n){"use strict";var i=n("7364"),o=n.n(i);o.a},a5b7:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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="fb15")}({"014b":function(e,t,n){"use strict";var i=n("e53d"),o=n("07e3"),r=n("8e60"),s=n("63b6"),a=n("9138"),c=n("ebfd").KEY,l=n("294c"),u=n("dbdb"),d=n("45f2"),h=n("62a0"),p=n("5168"),f=n("ccb9"),m=n("6718"),g=n("47ee"),v=n("9003"),b=n("e4ae"),y=n("f772"),_=n("36c3"),M=n("1bc3"),w=n("aebd"),C=n("a159"),S=n("0395"),A=n("bf0b"),E=n("d9f6"),O=n("c3a1"),L=A.f,T=E.f,x=S.f,R=i.Symbol,k=i.JSON,z=k&&k.stringify,P="prototype",N=p("_hidden"),I=p("toPrimitive"),D={}.propertyIsEnumerable,B=u("symbol-registry"),q=u("symbols"),j=u("op-symbols"),W=Object[P],F="function"==typeof R,H=i.QObject,X=!H||!H[P]||!H[P].findChild,U=r&&l(function(){return 7!=C(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=L(W,t);i&&delete W[t],T(e,t,n),i&&e!==W&&T(W,t,i)}:T,V=function(e){var t=q[e]=C(R[P]);return t._k=e,t},G=F&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},K=function(e,t,n){return e===W&&K(j,t,n),b(e),t=M(t,!0),b(n),o(q,t)?(n.enumerable?(o(e,N)&&e[N][t]&&(e[N][t]=!1),n=C(n,{enumerable:w(0,!1)})):(o(e,N)||T(e,N,w(1,{})),e[N][t]=!0),U(e,t,n)):T(e,t,n)},$=function(e,t){b(e);var n,i=g(t=_(t)),o=0,r=i.length;while(r>o)K(e,n=i[o++],t[n]);return e},Y=function(e,t){return void 0===t?C(e):$(C(e),t)},J=function(e){var t=D.call(this,e=M(e,!0));return!(this===W&&o(q,e)&&!o(j,e))&&(!(t||!o(this,e)||!o(q,e)||o(this,N)&&this[N][e])||t)},Q=function(e,t){if(e=_(e),t=M(t,!0),e!==W||!o(q,t)||o(j,t)){var n=L(e,t);return!n||!o(q,t)||o(e,N)&&e[N][t]||(n.enumerable=!0),n}},Z=function(e){var t,n=x(_(e)),i=[],r=0;while(n.length>r)o(q,t=n[r++])||t==N||t==c||i.push(t);return i},ee=function(e){var t,n=e===W,i=x(n?j:_(e)),r=[],s=0;while(i.length>s)!o(q,t=i[s++])||n&&!o(W,t)||r.push(q[t]);return r};F||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(j,n),o(this,N)&&o(this[N],e)&&(this[N][e]=!1),U(this,e,w(1,n))};return r&&X&&U(W,e,{configurable:!0,set:t}),V(e)},a(R[P],"toString",function(){return this._k}),A.f=Q,E.f=K,n("6abf").f=S.f=Z,n("355d").f=J,n("9aa9").f=ee,r&&!n("b8e3")&&a(W,"propertyIsEnumerable",J,!0),f.f=function(e){return V(p(e))}),s(s.G+s.W+s.F*!F,{Symbol:R});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var ie=O(p.store),oe=0;ie.length>oe;)m(ie[oe++]);s(s.S+s.F*!F,"Symbol",{for:function(e){return o(B,e+="")?B[e]:B[e]=R(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),s(s.S+s.F*!F,"Object",{create:Y,defineProperty:K,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),k&&s(s.S+s.F*(!F||l(function(){var e=R();return"[null]"!=z([e])||"{}"!=z({a:e})||"{}"!=z(Object(e))})),"JSON",{stringify:function(e){var t,n,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(n=t=i[1],(y(t)||void 0!==e)&&!G(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),i[1]=t,z.apply(k,i)}}),R[P][I]||n("35e8")(R[P],I,R[P].valueOf),d(R,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"01f9":function(e,t,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,b,y,_){c(n,t,v);var M,w,C,S=function(e){if(!h&&e in L)return L[e];switch(e){case f:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",E=b==m,O=!1,L=e.prototype,T=L[d]||L[p]||b&&L[b],x=T||S(b),R=b?E?S("entries"):x:void 0,k="Array"==t&&L.entries||T;if(k&&(C=u(k.call(new e)),C!==Object.prototype&&C.next&&(l(C,A,!0),i||"function"==typeof C[d]||s(C,d,g))),E&&T&&T.name!==m&&(O=!0,x=function(){return T.call(this)}),i&&!_||!h&&!O&&L[d]||s(L,d,x),a[t]=x,a[A]=g,b)if(M={values:E?x:S(m),keys:y?x:S(f),entries:R},_)for(w in M)w in L||r(L,w,M[w]);else o(o.P+o.F*(h||O),t,M);return M}},"0395":function(e,t,n){var i=n("36c3"),o=n("6abf").f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return o(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?a(e):o(i(e))}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"09fa":function(e,t,n){var i=n("4588"),o=n("9def");e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},"0a49":function(e,t,n){var i=n("9b43"),o=n("626a"),r=n("4bf8"),s=n("9def"),a=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,d=6==e,h=5==e||d,p=t||a;return function(t,a,f){for(var m,g,v=r(t),b=o(v),y=i(a,f,3),_=s(b.length),M=0,w=n?p(t,_):c?p(t,0):void 0;_>M;M++)if((h||M in b)&&(m=b[M],g=y(m,M,v),e))if(n)w[M]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return M;case 2:w.push(m)}else if(u)return!1;return d?-1:l||u?u:w}}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},"0f88":function(e,t,n){var i,o=n("7726"),r=n("32e9"),s=n("ca5a"),a=s("typed_array"),c=s("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,d=0,h=9,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(dl)r.call(s,n=a[l++])&&u.push(e?[n,s[n]]:s[n]);return u}}},1495:function(e,t,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);var n,s=r(t),a=s.length,c=0;while(a>c)i.f(e,n=s[c++],t[n]);return e}},1654:function(e,t,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var i=n("63b6");i(i.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var i=n("f772");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var i=n("f772"),o=n("e53d").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"20fd":function(e,t,n){"use strict";var i=n("d9f6"),o=n("aebd");e.exports=function(e,t,n){t in e?i.f(e,t,o(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";var i=n("32e9"),o=n("2aba"),r=n("79e5"),s=n("be13"),a=n("2b4c");e.exports=function(e,t,n){var c=a(e),l=n(s,c,""[e]),u=l[0],d=l[1];r(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,u),i(RegExp.prototype,c,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},"230e":function(e,t,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},"241e":function(e,t,n){var i=n("25eb");e.exports=function(e){return Object(i(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"27ee":function(e,t,n){var i=n("23c6"),o=n("2b4c")("iterator"),r=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},"28a5":function(e,t,n){n("214f")("split",2,function(e,t,i){"use strict";var o=n("aae3"),r=i,s=[].push,a="split",c="length",l="lastIndex";if("c"=="abbc"[a](/(b)*/)[1]||4!="test"[a](/(?:)/,-1)[c]||2!="ab"[a](/(?:ab)*/)[c]||4!="."[a](/(.?)(.?)/)[c]||"."[a](/()()/)[c]>1||""[a](/.?/)[c]){var u=void 0===/()??/.exec("")[1];i=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!o(e))return r.call(n,e,t);var i,a,d,h,p,f=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=void 0===t?4294967295:t>>>0,b=new RegExp(e.source,m+"g");u||(i=new RegExp("^"+b.source+"$(?!\\s)",m));while(a=b.exec(n)){if(d=a.index+a[0][c],d>g&&(f.push(n.slice(g,a.index)),!u&&a[c]>1&&a[0].replace(i,function(){for(p=1;p1&&a.index=v))break;b[l]===a.index&&b[l]++}return g===n[c]?!h&&b.test("")||f.push(""):f.push(n.slice(g)),f[c]>v?f.slice(0,v):f}}else"0"[a](void 0,0)[c]&&(i=function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)});return[function(n,o){var r=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,r,o):i.call(String(r),n,o)},i]})},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a="toString",c=Function[a],l=(""+c).split(a);n("8378").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(r(n,s)||o(n,s,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[s]||c.call(this)})},"2aeb":function(e,t,n){var i=n("cb7c"),o=n("1495"),r=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},c="prototype",l=function(){var e,t=n("230e")("iframe"),i=r.length,o="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),l=e.F;while(i--)delete l[c][r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=i(e),n=new a,a[c]=null,n[s]=e):n=l(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r,a=e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))};a.store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"30f1":function(e,t,n){"use strict";var i=n("b8e3"),o=n("63b6"),r=n("9138"),s=n("35e8"),a=n("481b"),c=n("8f60"),l=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,b,y,_){c(n,t,v);var M,w,C,S=function(e){if(!h&&e in L)return L[e];switch(e){case f:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",E=b==m,O=!1,L=e.prototype,T=L[d]||L[p]||b&&L[b],x=T||S(b),R=b?E?S("entries"):x:void 0,k="Array"==t&&L.entries||T;if(k&&(C=u(k.call(new e)),C!==Object.prototype&&C.next&&(l(C,A,!0),i||"function"==typeof C[d]||s(C,d,g))),E&&T&&T.name!==m&&(O=!0,x=function(){return T.call(this)}),i&&!_||!h&&!O&&L[d]||s(L,d,x),a[t]=x,a[A]=g,b)if(M={values:E?x:S(m),keys:y?x:S(f),entries:R},_)for(w in M)w in L||r(L,w,M[w]);else o(o.P+o.F*(h||O),t,M);return M}},"32e9":function(e,t,n){var i=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var i=n("e53d").document;e.exports=i&&i.documentElement},"335c":function(e,t,n){var i=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},"33a4":function(e,t,n){var i=n("84f2"),o=n("2b4c")("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[o]===e)}},"33cb":function(e,t,n){},"34ef":function(e,t,n){n("ec30")("Uint8",1,function(e){return function(t,n,i){return e(this,t,n,i)}})},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var i=n("d9f6"),o=n("aebd");e.exports=n("8e60")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"36bd":function(e,t,n){"use strict";var i=n("4bf8"),o=n("77f1"),r=n("9def");e.exports=function(e){var t=i(this),n=r(t.length),s=arguments.length,a=o(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);while(l>a)t[a++]=e;return t}},"36c3":function(e,t,n){var i=n("335c"),o=n("25eb");e.exports=function(e){return i(o(e))}},3702:function(e,t,n){var i=n("481b"),o=n("5168")("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[o]===e)}},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"386b":function(e,t,n){var i=n("5ca1"),o=n("79e5"),r=n("be13"),s=/"/g,a=function(e,t,n,i){var o=String(r(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(i).replace(s,""")+'"'),a+">"+o+""};e.exports=function(e,t){var n={};n[e]=t(a),i(i.P+i.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},"38fd":function(e,t,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"3a38":function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},"3d11":function(e,t,n){"use strict";var i=n("33cb"),o=n.n(i);o.a},"40c3":function(e,t,n){var i=n("6b4c"),o=n("5168")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},"45f2":function(e,t,n){var i=n("d9f6").f,o=n("07e3"),r=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"47ee":function(e,t,n){var i=n("c3a1"),o=n("9aa9"),r=n("355d");e.exports=function(e){var t=i(e),n=o.f;if(n){var s,a=n(e),c=r.f,l=0;while(a.length>l)c.call(e,s=a[l++])&&t.push(s)}return t}},"481b":function(e,t){e.exports={}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},"4ee1":function(e,t,n){var i=n("5168")("iterator"),o=!1;try{var r=[7][i]();r["return"]=function(){o=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:n=!0}},r[i]=function(){return s},e(r)}catch(e){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5168:function(e,t,n){var i=n("dbdb")("wks"),o=n("62a0"),r=n("e53d").Symbol,s="function"==typeof r,a=e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))};a.store=i},5176:function(e,t,n){e.exports=n("51b6")},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53e2":function(e,t,n){var i=n("07e3"),o=n("241e"),r=n("5559")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"549b":function(e,t,n){"use strict";var i=n("d864"),o=n("63b6"),r=n("241e"),s=n("b0dc"),a=n("3702"),c=n("b447"),l=n("20fd"),u=n("7cd6");o(o.S+o.F*!n("4ee1")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,d,h=r(e),p="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m,v=0,b=u(h);if(g&&(m=i(m,f>2?arguments[2]:void 0,2)),void 0==b||p==Array&&a(b))for(t=c(h.length),n=new p(t);t>v;v++)l(n,v,g?m(h[v],v):h[v]);else for(d=b.call(h),n=new p;!(o=d.next()).done;v++)l(n,v,g?s(d,m,[o.value,v],!0):o.value);return n.length=v,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var i=n("dbdb")("keys"),o=n("62a0");e.exports=function(e){return i[e]||(i[e]=o(e))}},"584a":function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"59a0":function(e,t,n){"use strict";var i=n("9257"),o=n.n(i);o.a},"5b4e":function(e,t,n){var i=n("36c3"),o=n("b447"),r=n("0fc9");e.exports=function(e){return function(t,n,s){var a,c=i(t),l=o(c.length),u=r(s,l);if(e&&n!=n){while(l>u)if(a=c[u++],a!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},"5ca1":function(e,t,n){var i=n("7726"),o=n("8378"),r=n("32e9"),s=n("2aba"),a=n("9b43"),c="prototype",l=function(e,t,n){var u,d,h,p,f=e&l.F,m=e&l.G,g=e&l.S,v=e&l.P,b=e&l.B,y=m?i:g?i[t]||(i[t]={}):(i[t]||{})[c],_=m?o:o[t]||(o[t]={}),M=_[c]||(_[c]={});for(u in m&&(n=t),n)d=!f&&y&&void 0!==y[u],h=(d?y:n)[u],p=b&&d?a(h,i):v&&"function"==typeof h?a(Function.call,h):h,y&&s(y,u,h,e&l.U),_[u]!=h&&r(_,u,p),v&&M[u]!=h&&(M[u]=h)};i.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5cc5":function(e,t,n){var i=n("2b4c")("iterator"),o=!1;try{var r=[7][i]();r["return"]=function(){o=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:n=!0}},r[i]=function(){return s},e(r)}catch(e){}return n}},"5d58":function(e,t,n){e.exports=n("d8d6")},"5d6b":function(e,t,n){var i=n("e53d").parseInt,o=n("a1ce").trim,r=n("e692"),s=/^[-+]?0[xX]/;e.exports=8!==i(r+"08")||22!==i(r+"0x16")?function(e,t){var n=o(String(e),3);return i(n,t>>>0||(s.test(n)?16:10))}:i},"5d73":function(e,t,n){e.exports=n("469f")},"613b":function(e,t,n){var i=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return i[e]||(i[e]=o(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},"63b6":function(e,t,n){var i=n("e53d"),o=n("584a"),r=n("d864"),s=n("35e8"),a=n("07e3"),c="prototype",l=function(e,t,n){var u,d,h,p=e&l.F,f=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,b=e&l.W,y=f?o:o[t]||(o[t]={}),_=y[c],M=f?i:m?i[t]:(i[t]||{})[c];for(u in f&&(n=t),n)d=!p&&M&&void 0!==M[u],d&&a(y,u)||(h=d?M[u]:n[u],y[u]=f&&"function"!=typeof M[u]?n[u]:v&&d?r(h,i):b&&M[u]==h?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[c]=e[c],t}(h):g&&"function"==typeof h?r(Function.call,h):h,g&&((y.virtual||(y.virtual={}))[u]=h,e&l.R&&_&&!_[u]&&s(_,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},6718:function(e,t,n){var i=n("e53d"),o=n("584a"),r=n("b8e3"),s=n("ccb9"),a=n("d9f6").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=r?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},"67bb":function(e,t,n){e.exports=n("f921")},6821:function(e,t,n){var i=n("626a"),o=n("be13");e.exports=function(e){return i(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,n){var i=n("e6f3"),o=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6b54":function(e,t,n){"use strict";n("3846");var i=n("cb7c"),o=n("0bfb"),r=n("9e1e"),s="toString",a=/./[s],c=function(e){n("2aba")(RegExp.prototype,s,e,!0)};n("79e5")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?o.call(e):void 0)}):a.name!=s&&c(function(){return a.call(this)})},"6c1c":function(e,t,n){n("c367");for(var i=n("e53d"),o=n("35e8"),r=n("481b"),s=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c=l?e?"":void 0:(r=a.charCodeAt(c),r<55296||r>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):r:e?a.slice(c,c+2):s-56320+(r-55296<<10)+65536)}}},7445:function(e,t,n){var i=n("63b6"),o=n("5d6b");i(i.G+i.F*(parseInt!=o),{parseInt:o})},"765d":function(e,t,n){n("6718")("observable")},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var i=n("4588"),o=Math.max,r=Math.min;e.exports=function(e,t){return e=i(e),e<0?o(e+t,0):r(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7a56":function(e,t,n){"use strict";var i=n("7726"),o=n("86cc"),r=n("9e1e"),s=n("2b4c")("species");e.exports=function(e){var t=i[e];r&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},"7cd6":function(e,t,n){var i=n("40c3"),o=n("5168")("iterator"),r=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},"7d6d":function(e,t,n){var i=n("63b6"),o=n("13c8")(!1);i(i.S,"Object",{values:function(e){return o(e)}})},"7d7b":function(e,t,n){var i=n("e4ae"),o=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},"7e90":function(e,t,n){var i=n("d9f6"),o=n("e4ae"),r=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){o(e);var n,s=r(t),a=s.length,c=0;while(a>c)i.f(e,n=s[c++],t[n]);return e}},"7f20":function(e,t,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var i=n("86cc").f,o=Function.prototype,r=/^\s*function ([^ (]*)/,s="name";s in o||n("9e1e")&&i(o,s,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},8378:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8e60":function(e,t,n){e.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(e,t,n){"use strict";var i=n("a159"),o=n("aebd"),r=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},9003:function(e,t,n){var i=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==i(e)}},9093:function(e,t,n){var i=n("ce10"),o=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},9138:function(e,t,n){e.exports=n("35e8")},9257:function(e,t,n){},9306:function(e,t,n){"use strict";var i=n("c3a1"),o=n("9aa9"),r=n("355d"),s=n("241e"),a=n("335c"),c=Object.assign;e.exports=!c||n("294c")(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i})?function(e,t){var n=s(e),c=arguments.length,l=1,u=o.f,d=r.f;while(c>l){var h,p=a(arguments[l++]),f=u?i(p).concat(u(p)):i(p),m=f.length,g=0;while(m>g)d.call(p,h=f[g++])&&(n[h]=p[h])}return n}:c},"95d5":function(e,t,n){var i=n("40c3"),o=n("5168")("iterator"),r=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||r.hasOwnProperty(i(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[i]&&n("32e9")(o,i,{}),e.exports=function(e){o[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},"9e1c":function(e,t,n){n("7d6d"),e.exports=n("584a").Object.values},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(e,t,n){var i=n("e4ae"),o=n("7e90"),r=n("1691"),s=n("5559")("IE_PROTO"),a=function(){},c="prototype",l=function(){var e,t=n("1ec9")("iframe"),i=r.length,o="<",s=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),l=e.F;while(i--)delete l[c][r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=i(e),n=new a,a[c]=null,n[s]=e):n=l(),void 0===t?n:o(n,t)}},a1ce:function(e,t,n){var i=n("63b6"),o=n("25eb"),r=n("294c"),s=n("e692"),a="["+s+"]",c="​…",l=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),d=function(e,t,n){var o={},a=r(function(){return!!s[e]()||c[e]()!=c}),l=o[e]=a?t(h):s[e];n&&(o[n]=l),i(i.P+i.F*a,"String",o)},h=d.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=d},a3c3:function(e,t,n){var i=n("63b6");i(i.S+i.F,"Object",{assign:n("9306")})},a481:function(e,t,n){n("214f")("replace",2,function(e,t,n){return[function(i,o){"use strict";var r=e(this),s=void 0==i?void 0:i[t];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},n]})},a745:function(e,t,n){e.exports=n("f410")},aae3:function(e,t,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),s=n("7726"),a=n("32e9"),c=n("84f2"),l=n("2b4c"),u=l("iterator"),d=l("toStringTag"),h=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=o(p),m=0;m0?o(i(e),9007199254740991):0}},b54a:function(e,t,n){"use strict";n("386b")("link",function(e){return function(t){return e(this,"a","href",t)}})},b8e3:function(e,t){e.exports=!0},b9e9:function(e,t,n){n("7445"),e.exports=n("584a").parseInt},ba92:function(e,t,n){"use strict";var i=n("4bf8"),o=n("77f1"),r=n("9def");e.exports=[].copyWithin||function(e,t){var n=i(this),s=r(n.length),a=o(e,s),c=o(t,s),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?s:o(l,s))-c,s-a),d=1;c0)c in n?n[a]=n[c]:delete n[a],a+=d,c+=d;return n}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},bf0b:function(e,t,n){var i=n("355d"),o=n("aebd"),r=n("36c3"),s=n("1bc3"),a=n("07e3"),c=n("794b"),l=Object.getOwnPropertyDescriptor;t.f=n("8e60")?l:function(e,t){if(e=r(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(a(e,t))return o(!i.f.call(e,t),e[t])}},c207:function(e,t){},c366:function(e,t,n){var i=n("6821"),o=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,s){var a,c=i(t),l=o(c.length),u=r(s,l);if(e&&n!=n){while(l>u)if(a=c[u++],a!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var i=n("8436"),o=n("50ed"),r=n("481b"),s=n("36c3");e.exports=n("30f1")(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},c3a1:function(e,t,n){var i=n("e6f3"),o=n("1691");e.exports=Object.keys||function(e){return i(e,o)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},cd1c:function(e,t,n){var i=n("e853");e.exports=function(e,t){return new(i(e))(t)}},ce10:function(e,t,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)n!=s&&i(a,n)&&l.push(n);while(t.length>c)i(a,n=t[c++])&&(~r(l,n)||l.push(n));return l}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d864:function(e,t,n){var i=n("79aa");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,n){n("1654"),n("6c1c"),e.exports=n("ccb9").f("iterator")},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var i=n("e4ae"),o=n("794b"),r=n("1bc3"),s=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},db0c:function(e,t,n){e.exports=n("9e1c")},dbdb:function(e,t,n){var i=n("584a"),o=n("e53d"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("b8e3")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},dcbc:function(e,t,n){var i=n("2aba");e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(e,t,n){var i=n("f772");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e692:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},e6f3:function(e,t,n){var i=n("07e3"),o=n("36c3"),r=n("5b4e")(!1),s=n("5559")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)n!=s&&i(a,n)&&l.push(n);while(t.length>c)i(a,n=t[c++])&&(~r(l,n)||l.push(n));return l}},e814:function(e,t,n){e.exports=n("b9e9")},e853:function(e,t,n){var i=n("d3f4"),o=n("1169"),r=n("2b4c")("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&(t=t[r],null===t&&(t=void 0))),void 0===t?Array:t}},ebd6:function(e,t,n){var i=n("cb7c"),o=n("d8e8"),r=n("2b4c")("species");e.exports=function(e,t){var n,s=i(e).constructor;return void 0===s||void 0==(n=i(s)[r])?t:o(n)}},ebfd:function(e,t,n){var i=n("62a0")("meta"),o=n("f772"),r=n("07e3"),s=n("d9f6").f,a=0,c=Object.isExtensible||function(){return!0},l=!n("294c")(function(){return c(Object.preventExtensions({}))}),u=function(e){s(e,i,{value:{i:"O"+ ++a,w:{}}})},d=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,i)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[i].i},h=function(e,t){if(!r(e,i)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[i].w},p=function(e){return l&&f.NEED&&c(e)&&!r(e,i)&&u(e),e},f=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:p}},ec30:function(e,t,n){"use strict";if(n("9e1e")){var i=n("2d00"),o=n("7726"),r=n("79e5"),s=n("5ca1"),a=n("0f88"),c=n("ed0b"),l=n("9b43"),u=n("f605"),d=n("4630"),h=n("32e9"),p=n("dcbc"),f=n("4588"),m=n("9def"),g=n("09fa"),v=n("77f1"),b=n("6a99"),y=n("69a8"),_=n("23c6"),M=n("d3f4"),w=n("4bf8"),C=n("33a4"),S=n("2aeb"),A=n("38fd"),E=n("9093").f,O=n("27ee"),L=n("ca5a"),T=n("2b4c"),x=n("0a49"),R=n("c366"),k=n("ebd6"),z=n("cadf"),P=n("84f2"),N=n("5cc5"),I=n("7a56"),D=n("36bd"),B=n("ba92"),q=n("86cc"),j=n("11e9"),W=q.f,F=j.f,H=o.RangeError,X=o.TypeError,U=o.Uint8Array,V="ArrayBuffer",G="Shared"+V,K="BYTES_PER_ELEMENT",$="prototype",Y=Array[$],J=c.ArrayBuffer,Q=c.DataView,Z=x(0),ee=x(2),te=x(3),ne=x(4),ie=x(5),oe=x(6),re=R(!0),se=R(!1),ae=z.values,ce=z.keys,le=z.entries,ue=Y.lastIndexOf,de=Y.reduce,he=Y.reduceRight,pe=Y.join,fe=Y.sort,me=Y.slice,ge=Y.toString,ve=Y.toLocaleString,be=T("iterator"),ye=T("toStringTag"),_e=L("typed_constructor"),Me=L("def_constructor"),we=a.CONSTR,Ce=a.TYPED,Se=a.VIEW,Ae="Wrong length!",Ee=x(1,function(e,t){return Re(k(e,e[Me]),t)}),Oe=r(function(){return 1===new U(new Uint16Array([1]).buffer)[0]}),Le=!!U&&!!U[$].set&&r(function(){new U(1).set({})}),Te=function(e,t){var n=f(e);if(n<0||n%t)throw H("Wrong offset!");return n},xe=function(e){if(M(e)&&Ce in e)return e;throw X(e+" is not a typed array!")},Re=function(e,t){if(!(M(e)&&_e in e))throw X("It is not a typed array constructor!");return new e(t)},ke=function(e,t){return ze(k(e,e[Me]),t)},ze=function(e,t){var n=0,i=t.length,o=Re(e,i);while(i>n)o[n]=t[n++];return o},Pe=function(e,t,n){W(e,t,{get:function(){return this._d[n]}})},Ne=function(e){var t,n,i,o,r,s,a=w(e),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,h=O(a);if(void 0!=h&&!C(h)){for(s=h.call(a),i=[],t=0;!(r=s.next()).done;t++)i.push(r.value);a=i}for(d&&c>2&&(u=l(u,arguments[2],2)),t=0,n=m(a.length),o=Re(this,n);n>t;t++)o[t]=d?u(a[t],t):a[t];return o},Ie=function(){var e=0,t=arguments.length,n=Re(this,t);while(t>e)n[e]=arguments[e++];return n},De=!!U&&r(function(){ve.call(new U(1))}),Be=function(){return ve.apply(De?me.call(xe(this)):xe(this),arguments)},qe={copyWithin:function(e,t){return B.call(xe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(xe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return D.apply(xe(this),arguments)},filter:function(e){return ke(this,ee(xe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ie(xe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return oe(xe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Z(xe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return se(xe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return re(xe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return pe.apply(xe(this),arguments)},lastIndexOf:function(e){return ue.apply(xe(this),arguments)},map:function(e){return Ee(xe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return de.apply(xe(this),arguments)},reduceRight:function(e){return he.apply(xe(this),arguments)},reverse:function(){var e,t=this,n=xe(t).length,i=Math.floor(n/2),o=0;while(o1?arguments[1]:void 0)},sort:function(e){return fe.call(xe(this),e)},subarray:function(e,t){var n=xe(this),i=n.length,o=v(e,i);return new(k(n,n[Me]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===t?i:v(t,i))-o))}},je=function(e,t){return ke(this,me.call(xe(this),e,t))},We=function(e){xe(this);var t=Te(arguments[1],1),n=this.length,i=w(e),o=m(i.length),r=0;if(o+t>n)throw H(Ae);while(r255?255:255&i),o.v[p](n*t+o.o,i,Oe)},T=function(e,t){W(e,t,{get:function(){return O(this,t)},set:function(e){return L(this,t,e)},enumerable:!0})};y?(f=n(function(e,n,i,o){u(e,f,l,"_d");var r,s,a,c,d=0,p=0;if(M(n)){if(!(n instanceof J||(c=_(n))==V||c==G))return Ce in n?ze(f,n):Ne.call(f,n);r=n,p=Te(i,t);var v=n.byteLength;if(void 0===o){if(v%t)throw H(Ae);if(s=v-p,s<0)throw H(Ae)}else if(s=m(o)*t,s+p>v)throw H(Ae);a=s/t}else a=g(n),s=a*t,r=new J(s);h(e,"_d",{b:r,o:p,l:s,e:a,v:new Q(r)});while(d>1,u=23===t?x(2,-24)-x(2,-77):0,d=0,h=e<0||0===e&&1/e<0?1:0;for(e=T(e),e!=e||e===O?(o=e!=e?1:0,i=c):(i=R(k(e)/z),e*(r=x(2,-i))<1&&(i--,r*=2),e+=i+l>=1?u/r:u*x(2,1-l),e*r>=2&&(i++,r/=2),i+l>=c?(o=0,i=c):i+l>=1?(o=(e*r-1)*x(2,t),i+=l):(o=e*x(2,l-1)*x(2,t),i=0));t>=8;s[d++]=255&o,o/=256,t-=8);for(i=i<0;s[d++]=255&i,i/=256,a-=8);return s[--d]|=128*h,s}function W(e,t,n){var i,o=8*n-t-1,r=(1<>1,a=o-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;a>0;u=256*u+e[c],c--,a-=8);for(i=u&(1<<-a)-1,u>>=-a,a+=t;a>0;i=256*i+e[c],c--,a-=8);if(0===u)u=1-s;else{if(u===r)return i?NaN:l?-O:O;i+=x(2,t),u-=s}return(l?-1:1)*i*x(2,u-t)}function F(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function H(e){return[255&e]}function X(e){return[255&e,e>>8&255]}function U(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function V(e){return j(e,52,8)}function G(e){return j(e,23,4)}function K(e,t,n){m(e[_],t,{get:function(){return this[n]}})}function $(e,t,n,i){var o=+n,r=p(o);if(r+t>e[B])throw E(w);var s=e[D]._b,a=r+e[q],c=s.slice(a,a+t);return i?c:c.reverse()}function Y(e,t,n,i,o,r){var s=+n,a=p(s);if(a+t>e[B])throw E(w);for(var c=e[D]._b,l=a+e[q],u=i(+o),d=0;dee;)(J=Z[ee++])in C||a(C,J,L[J]);r||(Q.constructor=C)}var te=new S(new C(2)),ne=S[_].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||c(S[_],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else C=function(e){u(this,C,b);var t=p(e);this._b=g.call(new Array(t),0),this[B]=t},S=function(e,t,n){u(this,S,y),u(e,C,y);var i=e[B],o=d(t);if(o<0||o>i)throw E("Wrong offset!");if(n=void 0===n?i-o:h(n),o+n>i)throw E(M);this[D]=e,this[q]=o,this[B]=n},o&&(K(C,N,"_l"),K(S,P,"_b"),K(S,N,"_l"),K(S,I,"_o")),c(S[_],{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return F($(this,4,e,arguments[1]))},getUint32:function(e){return F($(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return W($(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return W($(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){Y(this,1,e,H,t)},setUint8:function(e,t){Y(this,1,e,H,t)},setInt16:function(e,t){Y(this,2,e,X,t,arguments[2])},setUint16:function(e,t){Y(this,2,e,X,t,arguments[2])},setInt32:function(e,t){Y(this,4,e,U,t,arguments[2])},setUint32:function(e,t){Y(this,4,e,U,t,arguments[2])},setFloat32:function(e,t){Y(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){Y(this,8,e,V,t,arguments[2])}});v(C,b),v(S,y),a(S[_],s.VIEW,!0),t[b]=C,t[y]=S},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f605:function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";n.r(t);var i,o={};(n.r(o),n.d(o,"forceCenter",function(){return v}),n.d(o,"forceCollide",function(){return X}),n.d(o,"forceLink",function(){return ee}),n.d(o,"forceManyBody",function(){return ze}),n.d(o,"forceRadial",function(){return Pe}),n.d(o,"forceSimulation",function(){return ke}),n.d(o,"forceX",function(){return Ne}),n.d(o,"forceY",function(){return Ie}),"undefined"!==typeof window)&&((i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("7f7f");var r=n("a745"),s=n.n(r);function a(e){if(s()(e)){for(var t=0,n=new Array(e.length);t=(r=(m+v)/2))?m=r:v=r,(u=n>=(s=(g+b)/2))?g=s:b=s,o=p,!(p=p[d=u<<1|l]))return o[d]=f,e;if(a=+e._x.call(null,p.data),c=+e._y.call(null,p.data),t===a&&n===c)return f.next=p,o?o[d]=f:e._root=f,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(l=t>=(r=(m+v)/2))?m=r:v=r,(u=n>=(s=(g+b)/2))?g=s:b=s}while((d=u<<1|l)===(h=(c>=s)<<1|a>=r));return o[h]=p,o[d]=f,e}function w(e){var t,n,i,o,r=e.length,s=new Array(r),a=new Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;nu&&(u=i),od&&(d=o));for(ue||e>o||i>t||t>r))return this;var s,a,c=o-n,l=this._root;switch(a=(t<(i+r)/2)<<1|e<(n+o)/2){case 0:do{s=new Array(4),s[a]=l,l=s}while(c*=2,o=n+c,r=i+c,e>o||t>r);break;case 1:do{s=new Array(4),s[a]=l,l=s}while(c*=2,n=o-c,r=i+c,n>e||t>r);break;case 2:do{s=new Array(4),s[a]=l,l=s}while(c*=2,o=n+c,i=r-c,e>o||i>t);break;case 3:do{s=new Array(4),s[a]=l,l=s}while(c*=2,n=o-c,i=r-c,n>e||i>t);break}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=i,this._x1=o,this._y1=r,this},S=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},A=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},E=function(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o},O=function(e,t,n){var i,o,r,s,a,c,l,u=this._x0,d=this._y0,h=this._x1,p=this._y1,f=[],m=this._root;m&&f.push(new E(m,u,d,h,p)),null==n?n=1/0:(u=e-n,d=t-n,h=e+n,p=t+n,n*=n);while(c=f.pop())if(!(!(m=c.node)||(o=c.x0)>h||(r=c.y0)>p||(s=c.x1)=v)<<1|e>=g)&&(c=f[f.length-1],f[f.length-1]=f[f.length-1-l],f[f.length-1-l]=c)}else{var b=e-+this._x.call(null,m.data),y=t-+this._y.call(null,m.data),_=b*b+y*y;if(_=(a=(f+g)/2))?f=a:g=a,(u=s>=(c=(m+v)/2))?m=c:v=c,t=p,!(p=p[d=u<<1|l]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}while(p.data!==e)if(i=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,i?(o?i.next=o:delete i.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=o,this)};function T(e){for(var t=0,n=e.length;tc+p||ol+p||ra.index){var f=c-s.x-s.vx,m=l-s.y-s.vy,g=f*f+m*m;ge.r&&(e.r=e[t].r)}function a(){if(t){var i,o,r=t.length;for(n=new Array(r),i=0;i=0&&(n=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}function re(e,t){for(var n,i=0,o=e.length;i0)for(var n,i,o=new Array(n),r=0;r=0&&t._call.call(null,e),t=t._next;--ue}function Se(){me=(fe=ve.now())+ge,ue=de=0;try{Ce()}finally{ue=0,Ee(),me=0}}function Ae(){var e=ve.now(),t=e-fe;t>pe&&(ge-=t,fe=e)}function Ee(){var e,t,n=ae,i=1/0;while(n)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:ae=t);ce=e,Oe(i)}function Oe(e){if(!ue){de&&(de=clearTimeout(de));var t=e-me;t>24?(e<1/0&&(de=setTimeout(Se,e-ve.now()-ge)),he&&(he=clearInterval(he))):(he||(fe=ve.now(),he=setInterval(Ae,pe)),ue=1,be(Se))}}Me.prototype=we.prototype={constructor:Me,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?ye():+n)+(null==t?0:+t),this._next||ce===this||(ce?ce._next=this:ae=this,ce=this),this._call=e,this._time=n,Oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Oe())}};function Le(e){return e.x}function Te(e){return e.y}var xe=10,Re=Math.PI*(3-Math.sqrt(5)),ke=function(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),r=0,s=.6,a=K(),c=we(u),l=le("tick","end");function u(){d(),l.call("tick",t),n1?(null==n?a.remove(e):a.set(e,p(n)),t):a.get(e)},find:function(t,n,i){var o,r,s,a,c,l=0,u=e.length;for(null==i?i=1/0:i*=i,l=0;l1?(l.on(e,n),t):l.on(e)}}},ze=function(){var e,t,n,i,o=b(-30),r=1,s=1/0,a=.81;function c(i){var o,r=e.length,s=B(e,Le,Te).visitAfter(u);for(n=i,o=0;o=s)){(e.data!==t||e.next)&&(0===u&&(u=y(),p+=u*u),0===d&&(d=y(),p+=d*d),p=0;n--){var i=e.attributes[n];i&&(t[i.name]=i.value)}var o=e.innerHTML;if(o)return{attrs:t,data:o}}return null},svgElFromString:function(e){var t=this.toDom(e);if(this.isSvgData(t))return t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t},svgDataToUrl:function(e,t){if("object"===Ve(t))for(var n in t){var i=t[n]?t[n]:"";e.setAttribute(n,i)}var o=this.export(e);return o?this.svgToUrl(this.serialize(o)):null},isSvgData:function(e){return!!e.firstChild&&"svg"===e.firstChild.parentNode.nodeName},svgToUrl:function(e){var t=new Blob([e],{type:"image/svg+xml"}),n=URL.createObjectURL(t);return n}},Qe={name:"svg-renderer",props:["size","nodes","noNodes","selected","linksSelected","links","nodeSize","padding","fontSize","strLinks","linkWidth","nodeLabels","linkLabels","labelOffset","nodeSym"],computed:{nodeSvg:function(){return this.nodeSym?Je.toObject(this.nodeSym):null}},methods:{getNodeSize:function(e,t){var n=e._size||this.nodeSize;return t&&(n=e["_"+t]||n),n},svgIcon:function(e){return e.svgObj||this.nodeSvg},emit:function(e,t){this.$emit("action",e,t)},svgScreenShot:function(e,t,n,i){var o=Je.export(this.$refs.svg,i);if(t)e(null,Je.save(o));else{n||(n=this.searchBackground());var r=Je.makeCanvas(this.size.w,this.size.h,n);Je.svgToImg(o,r,function(t,n){t?e(t):e(null,n)})}},linkClass:function(e){var t=["link"];return this.linksSelected.hasOwnProperty(e)&&t.push("selected"),this.strLinks||t.push("curve"),t},linkPath:function(e){var t={M:[0|e.source.x,0|e.source.y],X:[0|e.target.x,0|e.target.y]};return this.strLinks?"M "+t.M.join(" ")+" L"+t.X.join(" "):(t.Q=[e.source.x,e.target.y],"M "+t.M+" Q "+t.Q.join(" ")+" "+t.X)},nodeStyle:function(e){return e._color?"fill: "+e._color:""},linkStyle:function(e){var t={};return e._color&&(t.stroke=e._color),t},nodeClass:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e._cssClass?e._cssClass:[];return s()(n)||(n=[n]),n.push("node"),t.forEach(function(e){return n.push(e)}),this.selected[e.id]&&n.push("selected"),(e.fx||e.fy)&&n.push("pinned"),n},searchBackground:function(){var e=this;while(e.$parent){var t=window.getComputedStyle(e.$el),n=t.getPropertyValue("background-color"),i=n.replace(/[^\d,]/g,"").split(","),o=i.reduce(function(e,t){return je()(e)+je()(t)},0);if(o>0)return n;e=e.$parent}return"white"},spriteSymbol:function(){var e=this.nodeSym;if(e)return Je.toSymbol(e)},linkAttrs:function(e){var t=e._svgAttrs||{};return t["stroke-width"]=t["stroke-width"]||this.linkWidth,t}}},Ze=Qe;function et(e,t,n,i,o,r,s,a){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),s?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}var tt,nt,it=et(Ze,De,Be,!1,null,null,null),ot=it.exports,rt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("canvas",{directives:[{name:"render-canvas",rawName:"v-render-canvas",value:{links:e.links,nodes:e.nodes},expression:"{links, nodes}"}],ref:"canvas",style:e.canvasStyle,attrs:{id:"canvas",width:e.size.w,height:e.size.h},on:{mouseup:function(t){return t.preventDefault(),e.canvasClick(t)},mousedown:function(t){return t.preventDefault(),e.canvasClick(t)},touchstart:function(t){return t.preventDefault(),e.canvasClick(t)},"&touchend":function(t){return e.canvasClick(t)}}})},st=[],at=(n("b54a"),n("6c7b"),{background:{_cssClass:"net-svg",fillStyle:"white"},node:{_cssClass:"node",fillStyle:"green",strokeStyle:"orange",lineWidth:2},link:{_cssClass:"link",strokeStyle:"blue",lineWidth:1},labels:{_cssClass:"node-label",_svgElement:"text",fillStyle:"black",fontFamily:"Arial"},nodeSelected:{_cssClass:"node selected",fillStyle:"red",strokeStyle:"orange",lineWidth:2},linkSelected:{_cssClass:"link selected",strokeStyle:"green",lineWidth:2},nodePinned:{_cssClass:"node pinned",fillStyle:"green",strokeStyle:"red"},nodeSelectedPinned:{_cssClass:"node selected pinned",fillStyle:"green",strokeStyle:"red"}}),ct=(n("6b54"),{randomId:function(){return Math.random().toString(36).substring(7)},fillStyle:function(e,t){var n=null,i="picker-"+this.randomId(),o=this.canvasPicker(e,i);t.appendChild(o);var r={fillStyle:"fill",strokeStyle:"stroke",lineWidth:"stroke-width",fontFamily:"font-family"};return e=this.mapStyle(i,r,e,n),t.removeChild(o),e},mapStyle:function(e,t,n,i,o){var r=window.getComputedStyle(document.getElementById(e),i);for(var s in o=o||["lineWidth"],t){var a=r.getPropertyValue(t[s]);o.indexOf(s)>-1&&(a=je()(a,10)),a&&(n[s]=a)}return n},canvasPicker:function(e,t){var n=e._svgAttrs||{},i=e._svgElement||"circle";if(!e._svgAttrs)switch(i){case"text":n={x:10,y:10,fontSize:20};break;case"circle":n={cx:10,cy:10,r:10};break}return n.class=e._cssClass,n.id=t,this.svgCreate(i,n)},compColor:function(e){var t=document.createElement("div");t.style.backgroundColor=e,document.body.appendChild(t);var n=window.getComputedStyle(t,null).getPropertyValue("background-color");return document.body.removeChild(t),n},svgCreate:function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);for(var i in t)n.setAttributeNS(null,i,t[i]);return n},create:function(e,t,n){n=n||"body";var i=document.createElement(e),o=t||"";return o+=this.randomId(),i.setAttribute("id",o),document[n].appendChild(i),i}}),lt={name:"canvas-renderer",props:["size","offset","padding","nodes","selected","linksSelected","links","nodeSize","fontSize","strLinks","linkWidth","nodeLabels","labelOffset","canvasStyles","nodeSym","noNodes"],data:function(){return{hitCanvas:null,shapes:{},drag:null,stylesReady:!1,CssStyles:!0,styles:at,sprites:{}}},computed:{nodeSvg:function(){return this.nodeSym},canvasStyle:function(){var e=this.padding.x+"px",t=this.padding.y+"px";return{left:e,top:t}}},directives:{renderCanvas:function(e,t,n){var i=t.value.nodes,o=t.value.links;n.context.draw(i,o,e)}},created:function(){if(this.canvasStyles)for(var e in this.canvasStyles)this.styles[e]=this.canvasStyles[e]},mounted:function(){var e=this;this.$nextTick(function(){e.hitCanvas.width=e.size.w,e.hitCanvas.height=e.size.h})},watch:{nodeSize:function(){this.resetSprites()},canvasStyles:function(){this.resetSprites()}},methods:{canvasScreenShot:function(e,t){var n=this.$refs.canvas,i=document.createElement("canvas");i.width=n.width,i.height=n.height;var o=this.styles.background;t&&(o=this.getCssColor(t));var r=i.getContext("2d");r=this.setCtx(r,o),r.fillRect(0,0,i.width,i.height),r.drawImage(n,0,0);var s=i.toDataURL("image/png");s?e(null,s):e(new Error("error generating canvas image"))},emit:function(e,t){this.$emit("action",e,t)},canvasInit:function(){var e=document.createElement("canvas");e.width=this.size.w,e.height=this.size.h,e.top=this.offset.y,e.left=this.offset.x,e.id="hit-canvas",this.hitCanvas=e,this.resetSprites()},resetSprites:function(){this.sprites={};for(var e=["node","nodeSelected","nodePinned","nodeSelectedPinned"],t=0;t0&&e.y>0&&e.x0&&(i.data[r]=255,i.data[r-3]=t.r,i.data[r-2]=t.g,i.data[r-1]=t.b);return n.putImageData(i,0,0),e},newColorIndex:function(){while(1){var e=this.randomColor();if(!this.shapes[e.rgb])return e}},randomColor:function(){var e=Math.round(255*Math.random()),t=Math.round(255*Math.random()),n=Math.round(255*Math.random());return{r:e,g:t,b:n,rgb:"rgb(".concat(e,",").concat(t,",").concat(n,")")}},setCtx:function(e,t){for(var n in t)e[n]=t[n];return e},cloneCanvas:function(e){var t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.width,t.height=e.height,n.drawImage(e,0,0),t},Sprite:function(e,t){return this.sprites[e]||(this.sprites[e]=t()),this.sprites[e]},getCssStyles:function(){var e=ct.create("svg","css-picker");for(var t in this.styles){var n=this.styles[t]||{};n=ct.fillStyle(n,e)}document.body.removeChild(e),this.stylesReady=!0},loadNodeStyle:function(e){var t="node",n=this.selected[e.id];if(n&&(t="nodeSelected"),e.pinned&&(t="nodePinned"),n&&e.pinned&&(t="nodeSelectedPinned"),e._cssClass){var i=t+"-"+e._cssClass;if(!this.styles[i]){var o=g()({},this.styles[t]||{});o._cssClass=o._cssClass||"",o._cssClass+=" "+e._cssClass,this.updateStyle(i,o)}t=i}var r=g()({},this.styles[t]||this.updateStyle(t));return e._color&&(r.fillStyle=e._color,r._cssStyle="fill:"+e._color),e._cssClass&&(r._cssClass+=" "+e._cssClass),r},updateStyle:function(e,t){t=t||this.styles[e]||{};var n=ct.create("svg","css-picker");return t=ct.fillStyle(t,n),this.styles[e]=t,document.body.removeChild(n),t},getCssColor:function(e){var t=ct.create("div","color-picker"),n=t.id;t.setAttribute("style","background-color:"+e);var i=ct.mapStyle(n,{fillStyle:"background-color"},[]);return document.body.removeChild(t),i},labelStyle:function(e){var t=this.styles.labels,n=e._labelClass;if(n){var i="labels-"+n,o=this.styles[i];o||(o=g()({},t),o._cssClass+=" "+n,o=this.updateStyle(i,o)),t=o}return t}}},ut=lt,dt=(n("3d11"),et(ut,rt,st,!1,null,null,null)),ht=dt.exports,pt=(n("34ef"),{save:function(e,t){var n=this;e&&(e=this.dataURIToBlob(e,function(e){var i=URL.createObjectURL(e);n.download(i,t)}))},dataURIToBlob:function(e,t){for(var n=atob(e.split(",")[1]),i=n.length,o=new Uint8Array(i),r=0;r=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("3a92"),u=n("6923"),d=n("3585"),h=n("168d"),p=n("cc26"),f=function(){function e(t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.elementsToActivate=t,this.elementsToDeactivate=n,this.kind=e.KIND}return e.KIND="switchEditMode",e}();t.SwitchEditModeAction=f;var m=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.elementsToActivate=[],n.elementsToDeactivate=[],n.handlesToRemove=[],n}return i(t,e),t.prototype.execute=function(e){var t=this,n=e.root.index;return this.action.elementsToActivate.forEach(function(e){var i=n.getById(e);void 0!==i&&t.elementsToActivate.push(i)}),this.action.elementsToDeactivate.forEach(function(e){var i=n.getById(e);if(void 0!==i&&t.elementsToDeactivate.push(i),i instanceof d.SRoutingHandle&&i.parent instanceof d.SRoutableElement){var o=i.parent;t.shouldRemoveHandle(i,o)&&(t.handlesToRemove.push({handle:i,parent:o}),t.elementsToDeactivate.push(o),t.elementsToActivate.push(o))}}),this.doExecute(e)},t.prototype.doExecute=function(e){var t=this;return this.handlesToRemove.forEach(function(e){e.point=e.parent.routingPoints.splice(e.handle.pointIndex,1)[0]}),this.elementsToDeactivate.forEach(function(e){e instanceof d.SRoutableElement?e.removeAll(function(e){return e instanceof d.SRoutingHandle}):e instanceof d.SRoutingHandle&&(e.editMode=!1,e.danglingAnchor&&e.parent instanceof d.SRoutableElement&&e.danglingAnchor.original&&(e.parent.source===e.danglingAnchor?e.parent.sourceId=e.danglingAnchor.original.id:e.parent.target===e.danglingAnchor&&(e.parent.targetId=e.danglingAnchor.original.id),e.danglingAnchor.parent.remove(e.danglingAnchor),e.danglingAnchor=void 0))}),this.elementsToActivate.forEach(function(e){if(p.canEditRouting(e)&&e instanceof l.SParentElement){var n=t.edgeRouterRegistry.get(e.routerKind);n.createRoutingHandles(e)}else e instanceof d.SRoutingHandle&&(e.editMode=!0)}),e.root},t.prototype.shouldRemoveHandle=function(e,t){if("junction"===e.kind){var n=this.edgeRouterRegistry.get(t.routerKind),i=n.route(t);return void 0===i.find(function(t){return t.pointIndex===e.pointIndex})}return!1},t.prototype.undo=function(e){var t=this;return this.handlesToRemove.forEach(function(e){void 0!==e.point&&e.parent.routingPoints.splice(e.handle.pointIndex,0,e.point)}),this.elementsToActivate.forEach(function(e){e instanceof d.SRoutableElement?e.removeAll(function(e){return e instanceof d.SRoutingHandle}):e instanceof d.SRoutingHandle&&(e.editMode=!1)}),this.elementsToDeactivate.forEach(function(e){if(p.canEditRouting(e)){var n=t.edgeRouterRegistry.get(e.routerKind);n.createRoutingHandles(e)}else e instanceof d.SRoutingHandle&&(e.editMode=!0)}),e.root},t.prototype.redo=function(e){return this.doExecute(e)},t.KIND=f.KIND,o([a.inject(h.EdgeRouterRegistry),r("design:type",h.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o([a.injectable(),s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[f])],t),t}(c.Command);t.SwitchEditModeCommand=m},a663:function(e,t,n){"use strict";var i=n("84fd"),o=n.n(i);o.a},a8af:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3");function o(e){return e instanceof RangeError||e.message===i.STACK_OVERFLOW}t.isStackOverflowExeption=o},a8f0:function(e,t,n){var i=n("b639"),o=i.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=s),r(o,s),s.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},ab71:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("869e"),r=n("dd02"),s=n("e1c6"),a=n("d8f5"),c=function(){function e(){}return Object.defineProperty(e.prototype,"kind",{get:function(){return a.PolylineEdgeRouter.KIND+":"+o.ELLIPTIC_ANCHOR_KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,n){void 0===n&&(n=0);var i=e.bounds,o=r.center(i),s=o.x-t.x,a=o.y-t.y,c=Math.sqrt(s*s+a*a),l=s/c||0,u=a/c||0;return{x:o.x-l*(.5*i.width+n),y:o.y-u*(.5*i.height+n)}},e=i([s.injectable()],e),e}();t.EllipseAnchor=c;var l=function(){function e(){}return Object.defineProperty(e.prototype,"kind",{get:function(){return a.PolylineEdgeRouter.KIND+":"+o.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,n){void 0===n&&(n=0);var i=e.bounds,o=r.center(i),s=new u(o,t);if(!r.almostEquals(o.y,t.y)){var a=this.getXIntersection(i.y,o,t);a>=i.x&&a<=i.x+i.width&&s.addCandidate(a,i.y-n);var c=this.getXIntersection(i.y+i.height,o,t);c>=i.x&&c<=i.x+i.width&&s.addCandidate(c,i.y+i.height+n)}if(!r.almostEquals(o.x,t.x)){var l=this.getYIntersection(i.x,o,t);l>=i.y&&l<=i.y+i.height&&s.addCandidate(i.x-n,l);var d=this.getYIntersection(i.x+i.width,o,t);d>=i.y&&d<=i.y+i.height&&s.addCandidate(i.x+i.width+n,d)}return s.best},e.prototype.getXIntersection=function(e,t,n){var i=(e-t.y)/(n.y-t.y);return(n.x-t.x)*i+t.x},e.prototype.getYIntersection=function(e,t,n){var i=(e-t.x)/(n.x-t.x);return(n.y-t.y)*i+t.y},e=i([s.injectable()],e),e}();t.RectangleAnchor=l;var u=function(){function e(e,t){this.centerPoint=e,this.refPoint=t,this.currentDist=-1}return e.prototype.addCandidate=function(e,t){var n=this.refPoint.x-e,i=this.refPoint.y-t,o=n*n+i*i;(this.currentDist<0||o=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===r["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t),o=!1):this.freehand_&&t.type===r["a"].POINTERDOWN?o=!1:n?(o=t.type===r["a"].POINTERMOVE,o&&this.freehand_?o=this.handlePointerMove_(t):(t.pointerEvent.pointerType==y["b"]||t.type===r["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t)):t.type===r["a"].DBLCLICK&&(o=!1),e.prototype.handleEvent.call(this,t)&&o},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e),!0):!!this.condition_(e)&&(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new s["a"](r["a"].POINTERMOVE,e.map,e.pointerEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0)},t.prototype.handleUpEvent=function(e){var t=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e);var n=this.mode_===O.CIRCLE;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||n?this.finishDrawing():this.atFinish_(e)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e):(this.startDrawing_(e),this.mode_===O.POINT&&this.finishDrawing()),t=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!t&&this.stopClick_&&e.stopPropagation(),t},t.prototype.handlePointerMove_=function(e){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,n=e.pixel,i=t[0]-n[0],o=t[1]-n[1],r=i*i+o*o;if(this.shouldHandle_=this.freehand_?r>this.squaredClickTolerance_:r<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(e):this.createOrUpdateSketchPoint_(e),!0},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var n=!1,i=[this.finishCoordinate_];if(this.mode_===O.LINE_STRING)n=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===O.POLYGON){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,i=[o[0][0],o[0][o[0].length-2]]}if(n)for(var r=e.map,s=0,a=i.length;s=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(i.slice()),this.geometryFunction_(n,o)):this.mode_===O.POLYGON&&(n=this.sketchCoords_[0],n.length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(i.slice()),t&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,o)),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t,n=this.sketchFeature_.getGeometry();this.mode_===O.LINE_STRING?(e=this.sketchCoords_,e.splice(-2,1),this.geometryFunction_(e,n),e.length>=2&&(this.finishCoordinate_=e[e.length-2].slice())):this.mode_===O.POLYGON&&(e=this.sketchCoords_[0],e.splice(-2,1),t=this.sketchLine_.getGeometry(),t.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,n)),0===e.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,n=e.getGeometry();this.mode_===O.LINE_STRING?(t.pop(),this.geometryFunction_(t,n)):this.mode_===O.POLYGON&&(t[0].pop(),this.geometryFunction_(t,n),t=n.getCoordinates()),this.type_===f["a"].MULTI_POINT?e.setGeometry(new v["a"]([t])):this.type_===f["a"].MULTI_LINE_STRING?e.setGeometry(new g["a"]([t])):this.type_===f["a"].MULTI_POLYGON&&e.setGeometry(new b["a"]([t])),this.dispatchEvent(new T(L.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return e&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),e},t.prototype.extend=function(e){var t=e.getGeometry(),n=t;this.sketchFeature_=e,this.sketchCoords_=n.getCoordinates();var i=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=i.slice(),this.sketchCoords_.push(i.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new T(L.DRAWSTART,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing_(),this.overlay_.setMap(t?e:null)},t}(w["b"]);function R(){var e=Object(E["b"])();return function(t,n){return e[t.getGeometry().getType()]}}function k(e){var t;return e===f["a"].POINT||e===f["a"].MULTI_POINT?t=O.POINT:e===f["a"].LINE_STRING||e===f["a"].MULTI_LINE_STRING?t=O.LINE_STRING:e===f["a"].POLYGON||e===f["a"].MULTI_POLYGON?t=O.POLYGON:e===f["a"].CIRCLE&&(t=O.CIRCLE),t}t["a"]=x},ac2a:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("9757"),c=n("3a92"),l=n("e1c6"),u=n("6923"),d=function(){function e(t,n){this.containerId=t,this.elementSchema=n,this.kind=e.KIND}return e.KIND="createElement",e}();t.CreateElementAction=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t=e.root.index.getById(this.action.containerId);return t instanceof c.SParentElement&&(this.container=t,this.newElement=e.modelFactory.createElement(this.action.elementSchema),this.container.add(this.newElement)),e.root},t.prototype.undo=function(e){return this.container.remove(this.newElement),e.root},t.prototype.redo=function(e){return this.container.add(this.newElement),e.root},t.KIND=d.KIND,t=o([l.injectable(),s(0,l.inject(u.TYPES.Action)),r("design:paramtypes",[d])],t),t}(a.Command);t.CreateElementCommand=h},ac8e:function(e,t,n){},ad0b:function(e,t,n){"use strict";var i=n("d988"),o=n.n(i);o.a},ad71:function(e,t,n){"use strict";(function(t,i){var o=n("966d");e.exports=w;var r,s=n("e3db");w.ReadableState=M;n("faa1").EventEmitter;var a=function(e,t){return e.listeners(t).length},c=n("429b"),l=n("a8f0").Buffer,u=t.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof u}var p=Object.create(n("3a7c"));p.inherits=n("3fb5");var f=n(2),m=void 0;m=f&&f.debuglog?f.debuglog("stream"):function(){};var g,v=n("5e1a"),b=n("4681");p.inherits(w,c);var y=["error","close","destroy","pause","resume"];function _(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function M(e,t){r=r||n("b19a"),e=e||{};var i=t instanceof r;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||(g=n("7d72").StringDecoder),this.decoder=new g(e.encoding),this.encoding=e.encoding)}function w(e){if(r=r||n("b19a"),!(this instanceof w))return new w(e);this._readableState=new M(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function C(e,t,n,i,o){var r,s=e._readableState;null===t?(s.reading=!1,x(e,s)):(o||(r=A(s,t)),r?e.emit("error",r):s.objectMode||t&&t.length>0?("string"===typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=d(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?S(e,s,t,!1):z(e,s)):S(e,s,t,!1))):i||(s.reading=!1));return E(s)}function S(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&R(e)),z(e,t)}function A(e,t){var n;return h(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function E(e){return!e.ended&&(e.needReadable||e.length=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=L(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,R(e)}}function R(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(k,e):k(e))}function k(e){m("emit readable"),e.emit("readable"),q(e)}function z(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(P,e,t))}function P(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=W(e,t.buffer,t.decoder),n);var n}function W(e,t,n){var i;return er.length?r.length:e;if(s===r.length?o+=r:o+=r.slice(0,e),e-=s,0===e){s===r.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=r.slice(s));break}++i}return t.length-=i,o}function H(e,t){var n=l.allocUnsafe(e),i=t.head,o=1;i.data.copy(n),e-=i.data.length;while(i=i.next){var r=i.data,s=e>r.length?r.length:e;if(r.copy(n,n.length-e,0,s),e-=s,0===e){s===r.length?(++o,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=r.slice(s));break}++o}return t.length-=o,n}function X(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(U,t,e))}function U(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function V(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?X(this):R(this),null;if(e=T(e,t),0===e&&t.ended)return 0===t.length&&X(this),null;var i,o=t.needReadable;return m("need readable",o),(0===t.length||t.length-e0?j(e,t):null,null===i?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&X(this)),null!==i&&this.emit("data",i),i},w.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,m("pipe count=%d opts=%j",r.pipesCount,t);var s=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,c=s?u:M;function l(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function u(){m("onend"),e.end()}r.endEmitted?o.nextTick(c):n.once("end",c),e.on("unpipe",l);var d=N(n);e.on("drain",d);var h=!1;function p(){m("cleanup"),e.removeListener("close",b),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",v),e.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",M),n.removeListener("data",g),h=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||d()}var f=!1;function g(t){m("ondata"),f=!1;var i=e.write(t);!1!==i||f||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==V(r.pipes,e))&&!h&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function v(t){m("onerror",t),M(),e.removeListener("error",v),0===a(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",y),M()}function y(){m("onfinish"),e.removeListener("close",b),M()}function M(){m("unpipe"),n.unpipe(e)}return n.on("data",g),_(e,"error",v),e.once("close",b),e.once("finish",y),e.emit("pipe",n),r.flowing||(m("pipe resume"),n.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var r=0;r=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("66f9"),s=function(){function e(){}return Object.defineProperty(e.prototype,"gridX",{get:function(){return 10},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridY",{get:function(){return 10},enumerable:!0,configurable:!0}),e.prototype.snap=function(e,t){return t&&r.isBoundsAware(t)?{x:Math.round((e.x+.5*t.bounds.width)/this.gridX)*this.gridX-.5*t.bounds.width,y:Math.round((e.y+.5*t.bounds.height)/this.gridY)*this.gridY-.5*t.bounds.height}:{x:Math.round(e.x/this.gridX)*this.gridX,y:Math.round(e.y/this.gridY)*this.gridY}},e=i([o.injectable()],e),e}();t.CenterGridSnapper=s},aff7:function(e,t,n){"use strict";var i=n("7bae"),o=n.n(i);o.a},b093:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=n("0d7a"),c=n("e45b"),l=function(){function e(){}return e.prototype.decorate=function(e,t){var n=c.getAttrs(e);return void 0!==n.id&&this.logger.warn(e,"Overriding id of vnode ("+n.id+"). Make sure not to set it manually in view."),n.id=this.domHelper.createUniqueDOMElementId(t),e.key||(e.key=t.id),e},e.prototype.postUpdate=function(){},i([r.inject(s.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),i([r.inject(s.TYPES.DOMHelper),o("design:type",a.DOMHelper)],e.prototype,"domHelper",void 0),e=i([r.injectable()],e),e}();t.IdPostprocessor=l},b19a:function(e,t,n){"use strict";var i=n("966d"),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var r=Object.create(n("3a7c"));r.inherits=n("3fb5");var s=n("ad71"),a=n("dc14");r.inherits(d,s);for(var c=o(a.prototype),l=0;lt.getMaxResolution()||v=0?e:"children"}}]),l}(e);return window["ol"]&&window["ol"]["control"]&&(window["ol"]["control"]["LayerSwitcher"]=l),l})},b485:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3b4c"),r=n("3623"),s=n("1f89"),a=function(){function e(t){this.elementId=t,this.kind=e.KIND}return e.KIND="open",e}();t.OpenAction=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.doubleClick=function(e,t){var n=r.findParentByFeature(e,s.isOpenable);return void 0!==n?[new a(n.id)]:[]},t}(o.MouseListener);t.OpenMouseListener=c},b669:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("fba3");function o(e,t){for(var n=[],o=2;o=0)return!1;if(e.metaKey!==n.findIndex(function(e){return"meta"===e||"ctrlCmd"===e})>=0)return!1}else{if(e.ctrlKey!==n.findIndex(function(e){return"ctrl"===e||"ctrlCmd"===e})>=0)return!1;if(e.metaKey!==n.findIndex(function(e){return"meta"===e})>=0)return!1}return e.altKey===n.findIndex(function(e){return"alt"===e})>=0&&e.shiftKey===n.findIndex(function(e){return"shift"===e})>=0}function r(e){if(e.keyCode){var t=s[e.keyCode];if(void 0!==t)return t}return e.code}t.matchesKeystroke=o,t.getActualCode=r;var s=new Array(256);(function(){function e(e,t){void 0===s[t]&&(s[t]=e)}e("Pause",3),e("Backspace",8),e("Tab",9),e("Enter",13),e("ShiftLeft",16),e("ShiftRight",16),e("ControlLeft",17),e("ControlRight",17),e("AltLeft",18),e("AltRight",18),e("CapsLock",20),e("Escape",27),e("Space",32),e("PageUp",33),e("PageDown",34),e("End",35),e("Home",36),e("ArrowLeft",37),e("ArrowUp",38),e("ArrowRight",39),e("ArrowDown",40),e("Insert",45),e("Delete",46),e("Digit1",49),e("Digit2",50),e("Digit3",51),e("Digit4",52),e("Digit5",53),e("Digit6",54),e("Digit7",55),e("Digit8",56),e("Digit9",57),e("Digit0",48),e("KeyA",65),e("KeyB",66),e("KeyC",67),e("KeyD",68),e("KeyE",69),e("KeyF",70),e("KeyG",71),e("KeyH",72),e("KeyI",73),e("KeyJ",74),e("KeyK",75),e("KeyL",76),e("KeyM",77),e("KeyN",78),e("KeyO",79),e("KeyP",80),e("KeyQ",81),e("KeyR",82),e("KeyS",83),e("KeyT",84),e("KeyU",85),e("KeyV",86),e("KeyW",87),e("KeyX",88),e("KeyY",89),e("KeyZ",90),e("OSLeft",91),e("MetaLeft",91),e("OSRight",92),e("MetaRight",92),e("ContextMenu",93),e("Numpad0",96),e("Numpad1",97),e("Numpad2",98),e("Numpad3",99),e("Numpad4",100),e("Numpad5",101),e("Numpad6",102),e("Numpad7",103),e("Numpad8",104),e("Numpad9",105),e("NumpadMultiply",106),e("NumpadAdd",107),e("NumpadSeparator",108),e("NumpadSubtract",109),e("NumpadDecimal",110),e("NumpadDivide",111),e("F1",112),e("F2",113),e("F3",114),e("F4",115),e("F5",116),e("F6",117),e("F7",118),e("F8",119),e("F9",120),e("F10",121),e("F11",122),e("F12",123),e("F13",124),e("F14",125),e("F15",126),e("F16",127),e("F17",128),e("F18",129),e("F19",130),e("F20",131),e("F21",132),e("F22",133),e("F23",134),e("F24",135),e("NumLock",144),e("ScrollLock",145),e("Semicolon",186),e("Equal",187),e("Comma",188),e("Minus",189),e("Period",190),e("Slash",191),e("Backquote",192),e("IntlRo",193),e("BracketLeft",219),e("Backslash",220),e("BracketRight",221),e("Quote",222),e("IntlYen",255)})()},b7b8:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t1)){var n=this.route(e);if(!(n.length<2)){for(var i=[],o=0,r=0;r1e-8&&c>=a){var u=Math.max(0,a-s)/i[r];return{segmentStart:n[r],segmentEnd:n[r+1],lambda:u}}s=c}return{segmentEnd:n.pop(),segmentStart:n.pop(),lambda:1}}}},e.prototype.addHandle=function(e,t,n,i){var o=new u.SRoutingHandle;return o.kind=t,o.pointIndex=i,o.type=n,"target"===t&&e.id===u.edgeInProgressID&&(o.id=u.edgeInProgressTargetHandleID),e.add(o),o},e.prototype.getHandlePosition=function(e,t,n){switch(n.kind){case"source":return e.source instanceof u.SDanglingAnchor?e.source.position:t[0];case"target":return e.target instanceof u.SDanglingAnchor?e.target.position:t[t.length-1];default:var i=this.getInnerHandlePosition(e,t,n);if(void 0!==i)return i;if(n.pointIndex>=0&&n.pointIndexr(i))&&(i=c),l>n&&(void 0===o||l0&&this.applyInnerHandleMoves(e,n),this.cleanupRoutingPoints(e,e.routingPoints,!0,!0)},e.prototype.cleanupRoutingPoints=function(e,t,n,i){var o=new p(e.source,e.parent,"source"),r=new p(e.target,e.parent,"target");this.resetRoutingPointsOnReconnect(e,t,n,o,r)},e.prototype.resetRoutingPointsOnReconnect=function(e,t,n,i,o){if(0===t.length||e.source instanceof u.SDanglingAnchor||e.target instanceof u.SDanglingAnchor){var s=this.getOptions(e),a=this.calculateDefaultCorners(e,i,o,s);if(t.splice.apply(t,r([0,t.length],a)),n){var c=-2;e.children.forEach(function(n){n instanceof u.SRoutingHandle&&("target"===n.kind?n.pointIndex=t.length:"line"===n.kind&&n.pointIndex>=t.length?e.remove(n):c=Math.max(n.pointIndex,c))});for(var l=c;l-1&&(e.routingPoints=[],this.cleanupRoutingPoints(e,e.routingPoints,!0,!0)))},e.prototype.takeSnapshot=function(e){return{routingPoints:e.routingPoints.slice(),routingHandles:e.children.filter(function(e){return e instanceof u.SRoutingHandle}).map(function(e){return e}),routedPoints:this.route(e),router:this,source:e.source,target:e.target}},e.prototype.applySnapshot=function(e,t){e.routingPoints=t.routingPoints,e.removeAll(function(e){return e instanceof u.SRoutingHandle}),e.routerKind=t.router.kind,t.routingHandles.forEach(function(t){return e.add(t)}),t.source&&(e.sourceId=t.source.id),t.target&&(e.targetId=t.target.id),e.root.index.remove(e),e.root.index.add(e)},e.prototype.calculateDefaultCorners=function(e,t,n,i){var o=this.getSelfEdgeIndex(e);if(o>=0){var r=i.standardDistance,a=i.selfEdgeOffset*Math.min(t.bounds.width,t.bounds.height);switch(o%4){case 0:return[{x:t.get(s.RIGHT).x+r,y:t.get(s.RIGHT).y+a},{x:t.get(s.RIGHT).x+r,y:t.get(s.BOTTOM).y+r},{x:t.get(s.BOTTOM).x+a,y:t.get(s.BOTTOM).y+r}];case 1:return[{x:t.get(s.BOTTOM).x-a,y:t.get(s.BOTTOM).y+r},{x:t.get(s.LEFT).x-r,y:t.get(s.BOTTOM).y+r},{x:t.get(s.LEFT).x-r,y:t.get(s.LEFT).y+a}];case 2:return[{x:t.get(s.LEFT).x-r,y:t.get(s.LEFT).y-a},{x:t.get(s.LEFT).x-r,y:t.get(s.TOP).y-r},{x:t.get(s.TOP).x-a,y:t.get(s.TOP).y-r}];case 3:return[{x:t.get(s.TOP).x+a,y:t.get(s.TOP).y-r},{x:t.get(s.RIGHT).x+r,y:t.get(s.TOP).y-r},{x:t.get(s.RIGHT).x+r,y:t.get(s.RIGHT).y-a}]}}return[]},e.prototype.getSelfEdgeIndex=function(e){return e.source&&e.source===e.target?e.source.outgoingEdges.filter(function(t){return t.target===e.source}).indexOf(e):-1},i([a.inject(d.AnchorComputerRegistry),o("design:type",d.AnchorComputerRegistry)],e.prototype,"anchorRegistry",void 0),e=i([a.injectable()],e),e}();t.LinearEdgeRouter=f},b7ca:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("46cc"),s=n("d8f5"),a=n("9a1f"),c=n("ab71"),l=n("869e"),u=n("168d"),d=new i.ContainerModule(function(e){e(u.EdgeRouterRegistry).toSelf().inSingletonScope(),e(l.AnchorComputerRegistry).toSelf().inSingletonScope(),e(r.ManhattanEdgeRouter).toSelf().inSingletonScope(),e(o.TYPES.IEdgeRouter).toService(r.ManhattanEdgeRouter),e(o.TYPES.IAnchorComputer).to(a.ManhattanEllipticAnchor).inSingletonScope(),e(o.TYPES.IAnchorComputer).to(a.ManhattanRectangularAnchor).inSingletonScope(),e(o.TYPES.IAnchorComputer).to(a.ManhattanDiamondAnchor).inSingletonScope(),e(s.PolylineEdgeRouter).toSelf().inSingletonScope(),e(o.TYPES.IEdgeRouter).toService(s.PolylineEdgeRouter),e(o.TYPES.IAnchorComputer).to(c.EllipseAnchor),e(o.TYPES.IAnchorComputer).to(c.RectangleAnchor),e(o.TYPES.IAnchorComputer).to(c.DiamondAnchor)});t.default=d},b7d1:function(e,t,n){(function(t){function n(e,t){if(i("noDeprecation"))return e;var n=!1;function o(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return o}function i(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("c8ba"))},b878:function(e,t,n){},b8c1:function(e,t,n){"use strict";t["a"]={data:function(){return{timer:null,prevent:!1,delay:200}},methods:{onClick:function(e,t){var n=this;this.timer=setTimeout(function(){n.prevent||t(e),n.prevent=!1},this.delay)},onDblClick:function(e,t){clearTimeout(this.timer),this.prevent=!0,t(e)}}}},b967:function(e,t,n){"use strict";var i=n("0505"),o=n.n(i);o.a},ba33:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3");function o(e){if("function"===typeof e){var t=e;return t.name}if("symbol"===typeof e)return e.toString();t=e;return t}function r(e,t,n){var i="",o=n(e,t);return 0!==o.length&&(i="\nRegistered bindings:",o.forEach(function(e){var t="Object";null!==e.implementationType&&(t=u(e.implementationType)),i=i+"\n "+t,e.constraint.metaData&&(i=i+" - "+e.constraint.metaData)})),i}function s(e,t){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===t||s(e.parentRequest,t))}function a(e){function t(e,n){void 0===n&&(n=[]);var i=o(e.serviceIdentifier);return n.push(i),null!==e.parentRequest?t(e.parentRequest,n):n}var n=t(e);return n.reverse().join(" --\x3e ")}function c(e){e.childRequests.forEach(function(e){if(s(e,e.serviceIdentifier)){var t=a(e);throw new Error(i.CIRCULAR_DEPENDENCY+" "+t)}c(e)})}function l(e,t){if(t.isTagged()||t.isNamed()){var n="",i=t.getNamedTag(),o=t.getCustomTags();return null!==i&&(n+=i.toString()+"\n"),null!==o&&o.forEach(function(e){n+=e.toString()+"\n"})," "+e+"\n "+e+" - "+n}return" "+e}function u(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=o,t.listRegisteredBindingsForServiceIdentifier=r,t.circularDependencyToException=c,t.listMetadataForTarget=l,t.getFunctionName=u},ba8b:function(e,t,n){},bab1:function(e,t,n){},bafd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.context||document;if(!e)return null;var i=[],r=u((0,o.default)(e),i,n),s=void 0;return s=r?1===r.length?r[0]:r:d({type:"text",content:e},i,n),t.hooks&&t.hooks.create&&i.forEach(function(e){t.hooks.create(e)}),s};var i=n("861d"),o=c(i),r=n("2eed"),s=c(r),a=n("6592");function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){return e instanceof Array&&e.length>0?e.map(function(e){return d(e,t,n)}):void 0}function d(e,t,n){var i=void 0;return i="text"===e.type?(0,a.createTextVNode)(e.content,n):(0,s.default)(e.name,h(e,n),u(e.children,t,n)),t.push(i),i}function h(e,t){var n={};if(!e.attrs)return n;var i=Object.keys(e.attrs).reduce(function(n,i){if("style"!==i&&"class"!==i){var o=(0,a.unescapeEntities)(e.attrs[i],t);n?n[i]=o:n=l({},i,o)}return n},null);i&&(n.attrs=i);var o=p(e);o&&(n.style=o);var r=f(e);return r&&(n.class=r),n}function p(e){try{return e.attrs.style.split(";").reduce(function(e,t){var n=t.split(":"),i=(0,a.transformName)(n[0].trim());if(i){var o=n[1].replace("!important","").trim();e?e[i]=o:e=l({},i,o)}return e},null)}catch(e){return null}}function f(e){try{return e.attrs.class.split(" ").reduce(function(e,t){return t=t.trim(),t&&(e?e[t]=!0:e=l({},t,!0)),e},null)}catch(e){return null}}},bb33:function(e,t,n){"use strict";var i=n("bee8"),o=n.n(i);o.a},bb59:function(e,t,n){},bc63:function(e,t,n){},bcbd:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("510b"),l=n("9757"),u=n("2f3a"),d=n("3a92"),h=n("3623"),p=n("6923"),f=n("1417"),m=n("3b4c"),g=n("e45b"),v=n("fba3"),b=n("e629"),y=n("b669"),_=n("70d9"),M=n("38e8"),w=n("a5f4"),C=n("3585"),S=n("3585"),A=n("3ada"),E=n("4c18"),O=function(){function e(t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.selectedElementsIDs=t,this.deselectedElementsIDs=n,this.kind=e.KIND}return e.KIND="elementSelected",e}();t.SelectAction=O;var L=function(){function e(t){void 0===t&&(t=!0),this.select=t,this.kind=e.KIND}return e.KIND="allSelected",e}();t.SelectAllAction=L;var T=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(c.generateRequestId())},e.KIND="getSelection",e}();t.GetSelectionAction=T;var x=function(){function e(t,n){void 0===t&&(t=[]),this.selectedElementsIDs=t,this.responseId=n,this.kind=e.KIND}return e.KIND="selectionResult",e}();t.SelectionResult=x;var R=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.selected=[],n.deselected=[],n}return i(t,e),t.prototype.execute=function(e){var t=this,n=e.root;return this.action.selectedElementsIDs.forEach(function(e){var i=n.index.getById(e);i instanceof d.SChildElement&&E.isSelectable(i)&&t.selected.push(i)}),this.action.deselectedElementsIDs.forEach(function(e){var i=n.index.getById(e);i instanceof d.SChildElement&&E.isSelectable(i)&&t.deselected.push(i)}),this.redo(e)},t.prototype.undo=function(e){for(var t=0,n=this.selected;t0&&n.push(new w.SwitchEditModeAction([],s))}else{n.push(new O([],r.map(function(e){return e.id})));s=r.filter(function(e){return e instanceof S.SRoutableElement}).map(function(e){return e.id});s.length>0&&n.push(new w.SwitchEditModeAction([],s))}}}return n},t.prototype.mouseMove=function(e,t){return this.hasDragged=!0,[]},t.prototype.mouseUp=function(e,t){if(0===t.button&&!this.hasDragged){var n=h.findParentByFeature(e,E.isSelectable);if(void 0!==n&&this.wasSelected)return[new O([n.id],[])]}return this.hasDragged=!1,[]},t.prototype.decorate=function(e,t){var n=h.findParentByFeature(t,E.isSelectable);return void 0!==n&&g.setClass(e,"selected",n.selected),e},o([a.inject(_.ButtonHandlerRegistry),a.optional(),r("design:type",_.ButtonHandlerRegistry)],t.prototype,"buttonHandlerRegistry",void 0),t}(m.MouseListener);t.SelectMouseListener=z;var P=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.previousSelection={},n}return i(t,e),t.prototype.retrieveResult=function(e){var t=e.root.index.all().filter(function(e){return E.isSelectable(e)&&e.selected}).map(function(e){return e.id});return new x(b.toArray(t),this.action.requestId)},t.KIND=T.KIND,t=o([a.injectable(),s(0,a.inject(p.TYPES.Action)),r("design:paramtypes",[T])],t),t}(u.ModelRequestCommand);t.GetSelectionCommand=P;var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){return y.matchesKeystroke(t,"KeyA","ctrlCmd")?[new L]:[]},t}(f.KeyListener);t.SelectKeyboardListener=N},bcc9:function(e,t,n){"use strict";var i,o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;nv&&(r.top=v-s),uy&&(r.left=y-a),r}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"}(i||(i={})),t.Draggable={bind:function(e,n,i,o){t.Draggable.update(e,n,i,o)},update:function(e,t,n,a){if(!t.value||!t.value.stopDragging){var c=t.value&&t.value.handle&&r(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(g(),b()),c.getAttribute("draggable")||(e.removeEventListener("mousedown",e["listener"]),c.addEventListener("mousedown",p),e.removeEventListener("touchstart",e["listener"]),c.addEventListener("touchstart",p,{passive:!1}),c.setAttribute("draggable","true"),e["listener"]=p,g(),b())}function l(n){n.preventDefault();var i=t.value&&t.value.stopDragging;if(!i){var o=y();o.startDragPosition&&o.initialMousePos||(g(n),o=y());var r=f(n),a=r.left-o.initialMousePos.left,c=r.top-o.initialMousePos.top,l={left:o.startDragPosition.left+a,top:o.startDragPosition.top+c},h=u(),p=e.getBoundingClientRect();h&&p&&(l=s(p,h,l.left,l.top,t.value.boundingRectMargin)),v({currentDragPosition:l}),d(),b(n)}}function u(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function d(){var t=y();t.currentDragPosition&&(e.style.touchAction="none",e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}function h(e){e.preventDefault(),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",l),document.removeEventListener("touchend",h);var t=m();v({initialMousePos:void 0,startDragPosition:t,currentDragPosition:t}),b(e,i.End)}function p(e){v({initialMousePos:f(e)}),b(e,i.Start),document.addEventListener("mousemove",l),document.addEventListener("mouseup",h),document.addEventListener("touchmove",l),document.addEventListener("touchend",h)}function f(e){if(e instanceof MouseEvent)return{left:e.clientX,top:e.clientY};if(e instanceof TouchEvent){var t=e.changedTouches[e.changedTouches.length-1];return{left:t.clientX,top:t.clientY}}}function m(){var t=e.getBoundingClientRect();if(t.height&&t.width)return{left:t.left,top:t.top}}function g(e){var n=y(),i=t&&t.value&&t.value.initialPosition,o=n.initialPosition,r=m(),s=i||o||r;v({initialPosition:s,startDragPosition:s,currentDragPosition:s,initialMousePos:f(e)}),d()}function v(e){var t=y(),n=o(o({},t),e);c.setAttribute("draggable-state",JSON.stringify(n))}function b(e,n){var r=y(),s={x:0,y:0};r.currentDragPosition&&r.startDragPosition&&(s.x=r.currentDragPosition.left-r.startDragPosition.left,s.y=r.currentDragPosition.top-r.startDragPosition.top);var a=r.currentDragPosition&&o({},r.currentDragPosition);n===i.End?t.value&&t.value.onDragEnd&&r&&t.value.onDragEnd(s,a,e):n===i.Start?t.value&&t.value.onDragStart&&r&&t.value.onDragStart(s,a,e):t.value&&t.value.onPositionChange&&r&&t.value.onPositionChange(s,a,e)}function y(){return JSON.parse(c.getAttribute("draggable-state"))||{}}}}},be02:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3864"),u=n("7b39"),d=function(e){function t(t,n){var i=e.call(this)||this;return t.forEach(function(e){return i.register(e.actionKind,e.factory())}),n.forEach(function(e){return i.initializeActionHandler(e)}),i}return i(t,e),t.prototype.initializeActionHandler=function(e){e.initialize(this)},t=o([a.injectable(),s(0,a.multiInject(c.TYPES.ActionHandlerRegistration)),s(0,a.optional()),s(1,a.multiInject(c.TYPES.IActionHandlerInitializer)),s(1,a.optional()),r("design:paramtypes",[Array,Array])],t),t}(l.MultiInstanceRegistry);function h(e,t,n){if("function"===typeof n){if(!u.isInjectable(n))throw new Error("Action handlers should be @injectable: "+n.name);e.isBound(n)||e.bind(n).toSelf()}e.bind(c.TYPES.ActionHandlerRegistration).toDynamicValue(function(e){return{actionKind:t,factory:function(){return e.container.get(n)}}})}t.ActionHandlerRegistry=d,t.configureActionHandler=h},bee8:function(e,t,n){},c146:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("987d"),r=function(){function e(e,t){void 0===t&&(t=o.easeInOut),this.context=e,this.ease=t}return e.prototype.start=function(){var e=this;return new Promise(function(t,n){var i=void 0,o=0,r=function(n){var s;o++,void 0===i?(i=n,s=0):s=n-i;var a=Math.min(1,s/e.context.duration),c=e.tween(e.ease(a),e.context);e.context.modelChanged.update(c),1===a?(e.context.logger.log(e,1e3*o/e.context.duration+" fps"),t(c)):e.context.syncer.onNextFrame(r)};if(e.context.syncer.isAvailable())e.context.syncer.onNextFrame(r);else{var s=e.tween(1,e.context);t(s)}})},e}();t.Animation=r;var s=function(e){function t(t,n,i,r){void 0===i&&(i=[]),void 0===r&&(r=o.easeInOut);var s=e.call(this,n,r)||this;return s.model=t,s.context=n,s.components=i,s.ease=r,s}return i(t,e),t.prototype.include=function(e){return this.components.push(e),this},t.prototype.tween=function(e,t){for(var n=0,i=this.components;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("dd02"),c=n("510b"),l=n("9757"),u=n("c146"),d=n("5eb6"),h=n("e1c6"),p=n("6923"),f=n("2f3a"),m=function(){function e(t,n,i){this.elementId=t,this.newViewport=n,this.animate=i,this.kind=e.KIND}return e.KIND="viewport",e}();t.SetViewportAction=m;var g=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(c.generateRequestId())},e.KIND="getViewport",e}();t.GetViewportAction=g;var v=function(){function e(t,n,i){this.viewport=t,this.canvasBounds=n,this.responseId=i,this.kind=e.KIND}return e.KIND="viewportResult",e}();t.ViewportResult=v;var b=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.newViewport=t.newViewport,n}var n;return i(t,e),n=t,t.prototype.execute=function(e){var t=e.root,n=t.index.getById(this.action.elementId);if(n&&d.isViewport(n)){if(this.element=n,this.oldViewport={scroll:this.element.scroll,zoom:this.element.zoom},this.action.animate)return new _(this.element,this.oldViewport,this.newViewport,e).start();this.element.scroll=this.newViewport.scroll,this.element.zoom=this.newViewport.zoom}return t},t.prototype.undo=function(e){return new _(this.element,this.newViewport,this.oldViewport,e).start()},t.prototype.redo=function(e){return new _(this.element,this.oldViewport,this.newViewport,e).start()},t.prototype.merge=function(e,t){return!this.action.animate&&e instanceof n&&this.element===e.element&&(this.newViewport=e.newViewport,!0)},t.KIND=m.KIND,t=n=o([h.injectable(),s(0,h.inject(p.TYPES.Action)),r("design:paramtypes",[m])],t),t}(l.MergeableCommand);t.SetViewportCommand=b;var y=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.retrieveResult=function(e){var t,n=e.root;return t=d.isViewport(n)?{scroll:n.scroll,zoom:n.zoom}:{scroll:a.ORIGIN_POINT,zoom:1},new v(t,n.canvasBounds,this.action.requestId)},t.KIND=g.KIND,t=o([s(0,h.inject(p.TYPES.Action)),r("design:paramtypes",[g])],t),t}(f.ModelRequestCommand);t.GetViewportCommand=y;var _=function(e){function t(t,n,i,o){var r=e.call(this,o)||this;return r.element=t,r.oldViewport=n,r.newViewport=i,r.context=o,r.zoomFactor=Math.log(i.zoom/n.zoom),r}return i(t,e),t.prototype.tween=function(e,t){return this.element.scroll={x:(1-e)*this.oldViewport.scroll.x+e*this.newViewport.scroll.x,y:(1-e)*this.oldViewport.scroll.y+e*this.newViewport.scroll.y},this.element.zoom=this.oldViewport.zoom*Math.exp(e*this.zoomFactor),t.root},t}(u.Animation);t.ViewportAnimation=_},c4e6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("bcbd"),s=n("842c"),a=new i.ContainerModule(function(e,t,n){s.configureCommand({bind:e,isBound:n},r.SelectCommand),s.configureCommand({bind:e,isBound:n},r.SelectAllCommand),s.configureCommand({bind:e,isBound:n},r.GetSelectionCommand),e(o.TYPES.KeyListener).to(r.SelectKeyboardListener),e(o.TYPES.MouseListener).to(r.SelectMouseListener)});t.default=a},c4ec:function(e,t,n){var i=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,o=n("4047");e.exports=function(e){var t,n=0,r=!0,s={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(i,function(i){if("="===i)return r=!0,void n++;r?0===n?((o[i]||"/"===e.charAt(e.length-2))&&(s.voidElement=!0),s.name=i):(s.attrs[t]=i.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(s.attrs[t]=t),t=i),n++,r=!1}),s}},c51d:function(e,t,n){},c58e:function(e,t,n){},c5f4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct"},c612:function(e,t,n){"use strict";var i=n("8b1b"),o=n.n(i);o.a},c622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("77d3"),o=function(){function e(e,t,n,o,r){this.id=i.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=r,this.childRequests=[],this.bindings=Array.isArray(o)?o:[o],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,i){var o=new e(t,this.parentContext,this,n,i);return this.childRequests.push(o),o},e}();t.Request=o},c661:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=function(){function e(){}return e.prototype.isAllowed=function(e){return!0},e=i([o.injectable()],e),e}();t.DefaultDiagramLocker=r},c7c3:function(e,t,n){"use strict";var i=n("3e33"),o=n.n(i);o.a},c807:function(e,t,n){"use strict";var i=n("1300"),o=n("e300"),r=n("183a"),s=n("4cdf"),a=n("0b2d"),c=n("9f5e"),l=n("a568"),u=n("1e8d"),d=n("cef7"),h=n("01d4"),p=n("06f8"),f=n("0af5"),m=n("f623"),g=n("f403"),v=n("4105"),b=n("3e6b"),y=n("5831"),_=n("a43f"),M=n("4a7d"),w=n("6c77"),C=0,S=1,A={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},E=function(e){function t(t,n,i){e.call(this,t),this.features=n,this.mapBrowserEvent=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(d["a"]),O=function(e){function t(t){var n;if(e.call(this,t),this.condition_=t.condition?t.condition:p["h"],this.defaultDeleteCondition_=function(e){return Object(p["a"])(e)&&Object(p["j"])(e)},this.deleteCondition_=t.deleteCondition?t.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:p["c"],this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.modified_=!1,this.rBush_=new M["a"],this.pixelTolerance_=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new b["a"]({source:new y["a"]({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:R(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,Circle:this.writeCircleGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_},this.source_=null,t.source?(this.source_=t.source,n=new o["a"](this.source_.getFeatures()),Object(u["a"])(this.source_,_["a"].ADDFEATURE,this.handleSourceAdd_,this),Object(u["a"])(this.source_,_["a"].REMOVEFEATURE,this.handleSourceRemove_,this)):n=t.features,!n)throw new Error("The modify interaction requires features or a source");this.features_=n,this.features_.forEach(this.addFeature_.bind(this)),Object(u["a"])(this.features_,r["a"].ADD,this.handleFeatureAdd_,this),Object(u["a"])(this.features_,r["a"].REMOVE,this.handleFeatureRemove_,this),this.lastPointerEvent_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.addFeature_=function(e){var t=e.getGeometry();t&&t.getType()in this.SEGMENT_WRITERS_&&this.SEGMENT_WRITERS_[t.getType()].call(this,e,t);var n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),Object(u["a"])(e,h["a"].CHANGE,this.handleFeatureChange_,this)},t.prototype.willModifyFeatures_=function(e){this.modified_||(this.modified_=!0,this.dispatchEvent(new E(A.MODIFYSTART,this.features_,e)))},t.prototype.removeFeature_=function(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),Object(u["c"])(e,h["a"].CHANGE,this.handleFeatureChange_,this)},t.prototype.removeFeatureSegmentData_=function(e){var t=this.rBush_,n=[];t.forEach(function(t){e===t.feature&&n.push(t)});for(var i=n.length-1;i>=0;--i)t.remove(n[i])},t.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.prototype.setActive.call(this,t)},t.prototype.setMap=function(t){this.overlay_.setMap(t),e.prototype.setMap.call(this,t)},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleSourceAdd_=function(e){e.feature&&this.features_.push(e.feature)},t.prototype.handleSourceRemove_=function(e){e.feature&&this.features_.remove(e.feature)},t.prototype.handleFeatureAdd_=function(e){this.addFeature_(e.element)},t.prototype.handleFeatureChange_=function(e){if(!this.changingFeature_){var t=e.target;this.removeFeature_(t),this.addFeature_(t)}},t.prototype.handleFeatureRemove_=function(e){var t=e.element;this.removeFeature_(t)},t.prototype.writePointGeometry_=function(e,t){var n=t.getCoordinates(),i={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),i)},t.prototype.writeMultiPointGeometry_=function(e,t){for(var n=t.getCoordinates(),i=0,o=n.length;i=0;--_)this.insertVertex_.apply(this,o[_])}return!!this.vertexFeature_},t.prototype.handleUpEvent=function(e){for(var t=this.dragSegments_.length-1;t>=0;--t){var n=this.dragSegments_[t][0],i=n.geometry;if(i.getType()===m["a"].CIRCLE){var o=i.getCenter(),r=n.featureSegments[0],s=n.featureSegments[1];r.segment[0]=r.segment[1]=o,s.segment[0]=s.segment[1]=o,this.rBush_.update(Object(f["m"])(o),r),this.rBush_.update(i.getExtent(),s)}else this.rBush_.update(Object(f["b"])(n.segment),n)}return this.modified_&&(this.dispatchEvent(new E(A.MODIFYEND,this.features_,e)),this.modified_=!1),!1},t.prototype.handlePointerMove_=function(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map)},t.prototype.handlePointerAtPixel_=function(e,t){var n=t.getCoordinateFromPixel(e),o=function(e,t){return T(n,e)-T(n,t)},r=Object(f["c"])(Object(f["m"])(n),t.getView().getResolution()*this.pixelTolerance_),s=this.rBush_,a=s.getInExtent(r);if(a.length>0){a.sort(o);var c=a[0],u=c.segment,d=x(n,c),h=t.getPixelFromCoordinate(d),p=Object(l["d"])(e,h);if(p<=this.pixelTolerance_){var g={};if(c.geometry.getType()===m["a"].CIRCLE&&c.index===S)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(d);else{var v=t.getPixelFromCoordinate(u[0]),b=t.getPixelFromCoordinate(u[1]),y=Object(l["h"])(h,v),_=Object(l["h"])(h,b);p=Math.sqrt(Math.min(y,_)),this.snappedToVertex_=p<=this.pixelTolerance_,this.snappedToVertex_&&(d=y>_?u[1]:u[0]),this.createOrUpdateVertexFeature_(d);for(var M=1,w=a.length;M=0;--r)n=h[r],u=n[0],d=Object(i["c"])(u.feature),u.depth&&(d+="-"+u.depth.join("-")),d in p||(p[d]={}),0===n[1]?(p[d].right=u,p[d].index=u.index):1==n[1]&&(p[d].left=u,p[d].index=u.index+1);for(d in p){switch(l=p[d].right,a=p[d].left,s=p[d].index,c=s-1,u=void 0!==a?a:l,c<0&&(c=0),o=u.geometry,t=o.getCoordinates(),e=t,g=!1,o.getType()){case m["a"].MULTI_LINE_STRING:t[u.depth[0]].length>2&&(t[u.depth[0]].splice(s,1),g=!0);break;case m["a"].LINE_STRING:t.length>2&&(t.splice(s,1),g=!0);break;case m["a"].MULTI_POLYGON:e=e[u.depth[1]];case m["a"].POLYGON:e=e[u.depth[0]],e.length>4&&(s==e.length-1&&(s=0),e.splice(s,1),g=!0,0===s&&(e.pop(),e.push(e[0]),c=e.length-1));break;default:}if(g){this.setGeometryCoordinates_(o,t);var v=[];if(void 0!==a&&(this.rBush_.remove(a),v.push(a.segment[0])),void 0!==l&&(this.rBush_.remove(l),v.push(l.segment[1])),void 0!==a&&void 0!==l){var b={depth:u.depth,feature:u.feature,geometry:u.geometry,index:c,segment:v};this.rBush_.insert(Object(f["b"])(b.segment),b)}this.updateSegmentIndices_(o,s,u.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return g},t.prototype.setGeometryCoordinates_=function(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1},t.prototype.updateSegmentIndices_=function(e,t,n,i){this.rBush_.forEachInExtent(e.getExtent(),function(o){o.geometry===e&&(void 0===n||void 0===o.depth||Object(c["b"])(o.depth,n))&&o.index>t&&(o.index+=i)})},t}(v["b"]);function L(e,t){return e.index-t.index}function T(e,t){var n=t.geometry;if(n.getType()===m["a"].CIRCLE){var i=n;if(t.index===S){var o=Object(l["h"])(i.getCenter(),e),r=Math.sqrt(o)-i.getRadius();return r*r}}return Object(l["i"])(e,t.segment)}function x(e,t){var n=t.geometry;return n.getType()===m["a"].CIRCLE&&t.index===S?n.getClosestPoint(e):Object(l["b"])(e,t.segment)}function R(){var e=Object(w["b"])();return function(t,n){return e[m["a"].POINT]}}t["a"]=O},c862:function(e,t,n){},c8c0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.parentContext=e,this.rootRequest=t}return e}();t.Plan=i},c95e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("f4cb"),s=n("0bd8"),a=n("842c"),c=n("be02"),l=n("ed4f"),u=n("c444"),d=n("559d"),h=new i.ContainerModule(function(e,t,n){e(o.TYPES.PopupVNodePostprocessor).to(s.PopupPositionUpdater).inSingletonScope(),e(o.TYPES.MouseListener).to(r.HoverMouseListener),e(o.TYPES.PopupMouseListener).to(r.PopupHoverMouseListener),e(o.TYPES.KeyListener).to(r.HoverKeyListener),e(o.TYPES.HoverState).toConstantValue({mouseOverTimer:void 0,mouseOutTimer:void 0,popupOpen:!1,previousPopupElement:void 0}),e(r.ClosePopupActionHandler).toSelf().inSingletonScope();var i={bind:e,isBound:n};a.configureCommand(i,r.HoverFeedbackCommand),a.configureCommand(i,r.SetPopupModelCommand),c.configureActionHandler(i,r.SetPopupModelCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,l.FitToScreenCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,l.CenterCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,u.SetViewportCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,d.MoveCommand.KIND,r.ClosePopupActionHandler)});t.default=h},c998:function(e,t,n){"use strict";var i=n("a16f"),o=n.n(i);o.a},cb6e:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,a)}c((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return c([e,t])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0})]}})})},t.prototype.getViewport=function(){return s(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:return[4,this.actionDispatcher.request(g.GetViewportAction.create())];case 1:return e=t.sent(),[2,{scroll:e.viewport.scroll,zoom:e.viewport.zoom,canvasBounds:e.canvasBounds}]}})})},t.prototype.submitModel=function(e,t,n){return s(this,void 0,void 0,function(){var i,o;return a(this,function(r){switch(r.label){case 0:return this.viewerOptions.needsClientLayout?[4,this.actionDispatcher.request(m.RequestBoundsAction.create(e))]:[3,3];case 1:return i=r.sent(),o=this.computedBoundsApplicator.apply(this.currentRoot,i),[4,this.doSubmitModel(e,!0,n,o)];case 2:return r.sent(),[3,5];case 3:return[4,this.doSubmitModel(e,t,n)];case 4:r.sent(),r.label=5;case 5:return[2]}})})},t.prototype.doSubmitModel=function(e,t,n,i){return s(this,void 0,void 0,function(){var o,r,s,c,l;return a(this,function(a){switch(a.label){case 0:if(void 0===this.layoutEngine)return[3,6];a.label=1;case 1:return a.trys.push([1,5,,6]),o=this.layoutEngine.layout(e,i),o instanceof Promise?[4,o]:[3,3];case 2:return e=a.sent(),[3,4];case 3:void 0!==o&&(e=o),a.label=4;case 4:return[3,6];case 5:return r=a.sent(),this.logger.error(this,r.toString(),r.stack),[3,6];case 6:return s=this.lastSubmittedModelType,this.lastSubmittedModelType=e.type,n&&n.kind===d.RequestModelAction.KIND&&n.requestId?(c=n,[4,this.actionDispatcher.dispatch(new d.SetModelAction(e,c.requestId))]):[3,8];case 7:return a.sent(),[3,12];case 8:return t&&e.type===s?(l=Array.isArray(t)?t:e,[4,this.actionDispatcher.dispatch(new _.UpdateModelAction(l,!0,n))]):[3,10];case 9:return a.sent(),[3,12];case 10:return[4,this.actionDispatcher.dispatch(new d.SetModelAction(e))];case 11:a.sent(),a.label=12;case 12:return[2]}})})},t.prototype.applyMatches=function(e){var t=this.currentRoot;return y.applyMatches(t,e),this.submitModel(t,e)},t.prototype.addElements=function(e){for(var t=[],n=0,i=e;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e45b"),r=n("e1c6"),s=n("3623"),a=function(){function e(){}return e.prototype.decorate=function(e,t){if(t.cssClasses)for(var n=0,i=t.cssClasses;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("510b"),l=n("9757"),u=n("6923"),d=n("3b4c"),h=n("1417"),p=n("b669"),f=n("4c18"),m=n("e629"),g=n("cc26"),v=function(){function e(t){this.labelId=t,this.kind=e.KIND}return e.KIND="EditLabel",e}();function b(e){return c.isAction(e)&&e.kind===v.KIND&&"labelId"in e}t.EditLabelAction=v,t.isEditLabelAction=b;var y=function(){function e(t,n){this.labelId=t,this.text=n,this.kind=e.KIND}return e.KIND="applyLabelEdit",e}();t.ApplyLabelEditAction=y;var _=function(){function e(){}return e}();t.ResolvedLabelEdit=_;var M=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t=e.root.index,n=t.getById(this.action.labelId);return n&&g.isEditableLabel(n)&&(this.resolvedLabelEdit={label:n,oldLabel:n.text,newLabel:this.action.text},n.text=this.action.text),e.root},t.prototype.undo=function(e){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.oldLabel),e.root},t.prototype.redo=function(e){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.newLabel),e.root},t.KIND=y.KIND,t=o([s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[y])],t),t}(l.Command);t.ApplyLabelEditCommand=M;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.doubleClick=function(e,t){var n=S(e);return n?[new v(n.id)]:[]},t}(d.MouseListener);t.EditLabelMouseListener=w;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){if(p.matchesKeystroke(t,"F2")){var n=m.toArray(e.index.all().filter(function(e){return f.isSelectable(e)&&e.selected})).map(S).filter(function(e){return void 0!==e});if(1===n.length)return[new v(n[0].id)]}return[]},t}(h.KeyListener);function S(e){return g.isEditableLabel(e)?e:g.isWithEditableLabel(e)&&e.editableLabel?e.editableLabel:void 0}t.EditLabelKeyListener=C,t.getEditableLabel=S},ce70:function(e,t,n){},cf13:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.str=e}return e.prototype.startsWith=function(e){return 0===this.str.indexOf(e)},e.prototype.endsWith=function(e){var t="",n=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},n)},e.prototype.contains=function(e){return-1!==this.str.indexOf(e)},e.prototype.equals=function(e){return this.str===e},e.prototype.value=function(){return this.str},e}();t.QueryableString=i},cf61:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("dd02"),l=n("c146"),u=n("9757"),d=n("e7fa"),h=n("3a92"),p=n("559d"),f=n("7d36"),m=n("a0af"),g=n("66f9"),v=n("3b62"),b=n("4c18"),y=n("d084"),_=n("0f4c"),M=n("6923"),w=n("5eb6"),C=n("168d"),S=n("3585"),A=function(){function e(t,n,i){void 0===n&&(n=!0),this.animate=n,this.cause=i,this.kind=e.KIND,void 0!==t.id?this.newRoot=t:this.matches=t}return e.KIND="updateModel",e}();t.UpdateModelAction=A;var E=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t;return void 0!==this.action.newRoot?t=e.modelFactory.createRoot(this.action.newRoot):(t=e.modelFactory.createRoot(e.root),void 0!==this.action.matches&&this.applyMatches(t,this.action.matches,e)),this.oldRoot=e.root,this.newRoot=t,this.performUpdate(this.oldRoot,this.newRoot,e)},t.prototype.performUpdate=function(e,t,n){if(void 0!==this.action.animate&&!this.action.animate||e.id!==t.id)return e.type===t.type&&c.isValidDimension(e.canvasBounds)&&(t.canvasBounds=e.canvasBounds),w.isViewport(e)&&w.isViewport(t)&&(t.zoom=e.zoom,t.scroll=e.scroll),t;var i=void 0;if(void 0===this.action.matches){var o=new y.ModelMatcher;i=o.match(e,t)}else i=this.convertToMatchResult(this.action.matches,e,t);var r=this.computeAnimation(t,i,n);return r instanceof l.Animation?r.start():r},t.prototype.applyMatches=function(e,t,n){for(var i=e.index,o=0,r=t;o=2?new l.CompoundAnimation(e,n,r):1===r.length?r[0]:e},t.prototype.updateElement=function(e,t,n){if(m.isLocateable(e)&&m.isLocateable(t)){var i=e.position,o=t.position;c.almostEquals(i.x,o.x)&&c.almostEquals(i.y,o.y)||(void 0===n.moves&&(n.moves=[]),n.moves.push({element:t,fromPosition:i,toPosition:o}),t.position=i)}g.isSizeable(e)&&g.isSizeable(t)&&(c.isValidDimension(t.bounds)?c.almostEquals(e.bounds.width,t.bounds.width)&&c.almostEquals(e.bounds.height,t.bounds.height)||(void 0===n.resizes&&(n.resizes=[]),n.resizes.push({element:t,fromDimension:{width:e.bounds.width,height:e.bounds.height},toDimension:{width:t.bounds.width,height:t.bounds.height}})):t.bounds={x:t.bounds.x,y:t.bounds.y,width:e.bounds.width,height:e.bounds.height}),e instanceof S.SRoutableElement&&t instanceof S.SRoutableElement&&this.edgeRouterRegistry&&(void 0===n.edgeMementi&&(n.edgeMementi=[]),n.edgeMementi.push({edge:t,before:this.takeSnapshot(e),after:this.takeSnapshot(t)})),b.isSelectable(e)&&b.isSelectable(t)&&(t.selected=e.selected),e instanceof h.SModelRoot&&t instanceof h.SModelRoot&&(t.canvasBounds=e.canvasBounds),e instanceof v.ViewportRootElement&&t instanceof v.ViewportRootElement&&(t.scroll=e.scroll,t.zoom=e.zoom)},t.prototype.takeSnapshot=function(e){var t=this.edgeRouterRegistry.get(e.routerKind);return t.takeSnapshot(e)},t.prototype.createAnimations=function(e,t,n){var i=[];if(e.fades.length>0&&i.push(new d.FadeAnimation(t,e.fades,n,!0)),void 0!==e.moves&&e.moves.length>0){for(var o=new Map,r=0,s=e.moves;r0){for(var c=new Map,l=0,u=e.resizes;l0&&i.push(new p.MorphEdgesAnimation(t,e.edgeMementi,n,!1)),i},t.prototype.undo=function(e){return this.performUpdate(this.newRoot,this.oldRoot,e)},t.prototype.redo=function(e){return this.performUpdate(this.oldRoot,this.newRoot,e)},t.KIND=A.KIND,o([a.inject(C.EdgeRouterRegistry),a.optional(),r("design:type",C.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o([a.injectable(),s(0,a.inject(M.TYPES.Action)),r("design:paramtypes",[A])],t),t}(u.Command);t.UpdateModelCommand=E},cf611:function(e,t,n){"use strict";var i=n("8e08"),o=n.n(i);o.a},cf81:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e34e"),o=n("451f"),r=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new i.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=o.namedConstraint(e),new i.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){var t=null!==e.target&&!e.target.isNamed()&&!e.target.isTagged();return t},new i.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=o.taggedConstraint(e)(t),new i.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return o.typeConstraint(e)(t.parentRequest)},new i.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return o.namedConstraint(e)(t.parentRequest)},new i.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(n){return o.taggedConstraint(e)(t)(n.parentRequest)},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.typeConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.typeConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.namedConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.namedConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(n){return o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(n){return!o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,e)},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,e)},new i.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=r},cf98:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3a92"),r=n("3b4c"),s=n("3623"),a=n("c444"),c=n("5eb6"),l=n("a0af"),u=n("3585");function d(e){return"scroll"in e}t.isScrollable=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.mouseDown=function(e,t){var n=s.findParentByFeature(e,l.isMoveable);if(void 0===n&&!(e instanceof u.SRoutingHandle)){var i=s.findParentByFeature(e,c.isViewport);this.lastScrollPosition=i?{x:t.pageX,y:t.pageY}:void 0}return[]},t.prototype.mouseMove=function(e,t){if(0===t.buttons)this.mouseUp(e,t);else if(this.lastScrollPosition){var n=s.findParentByFeature(e,c.isViewport);if(n){var i=(t.pageX-this.lastScrollPosition.x)/n.zoom,o=(t.pageY-this.lastScrollPosition.y)/n.zoom,r={scroll:{x:n.scroll.x-i,y:n.scroll.y-o},zoom:n.zoom};return this.lastScrollPosition={x:t.pageX,y:t.pageY},[new a.SetViewportAction(n.id,r,!1)]}}return[]},t.prototype.mouseEnter=function(e,t){return e instanceof o.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){return this.lastScrollPosition=void 0,[]},t}(r.MouseListener);t.ScrollMouseListener=h},d084:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("3a92");function o(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}t.forEachMatch=o;var r=function(){function e(){}return e.prototype.match=function(e,t){var n={};return this.matchLeft(e,n),this.matchRight(t,n),n},e.prototype.matchLeft=function(e,t,n){var o=t[e.id];if(void 0!==o?(o.left=e,o.leftParentId=n):(o={left:e,leftParentId:n},t[e.id]=o),i.isParent(e))for(var r=0,s=e.children;r=0&&(void 0!==s.right&&s.leftParentId===s.rightParentId?(c.children.splice(l,1,s.right),a=!0):c.children.splice(l,1)),n.remove(s.left)}}if(!a&&void 0!==s.right&&void 0!==s.rightParentId){var u=n.getById(s.rightParentId);void 0!==u&&(void 0===u.children&&(u.children=[]),u.children.push(s.right))}}}t.ModelMatcher=r,t.applyMatches=s},d14a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("a406"),s=n("0a28"),a=new i.ContainerModule(function(e){e(s.CommandPalette).toSelf().inSingletonScope(),e(o.TYPES.IUIExtension).toService(s.CommandPalette),e(o.TYPES.KeyListener).to(s.CommandPaletteKeyListener),e(r.CommandPaletteActionProviderRegistry).toSelf().inSingletonScope(),e(o.TYPES.ICommandPaletteActionProviderRegistry).toService(r.CommandPaletteActionProviderRegistry)});t.default=a},d17b:function(e,t,n){e.exports=n("e372").Transform},d18c:function(e,t,n){"use strict";var i=n("943d"),o=n.n(i);o.a},d204:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("1979"),o=n("66d7");function r(e,t){return function(n,r,s){var a=new i.Metadata(e,t);"number"===typeof s?o.tagParameter(n,r,s,a):o.tagProperty(n,r,a)}}t.tagged=r},d485:function(e,t,n){e.exports=r;var i=n("faa1").EventEmitter,o=n("3fb5");function r(){i.call(this)}o(r,i),r.Readable=n("e372"),r.Writable=n("2c63"),r.Duplex=n("0960"),r.Transform=n("d17b"),r.PassThrough=n("c2ae"),r.Stream=r,r.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function r(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",r),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",c));var s=!1;function a(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(u(),0===i.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",o),e.removeListener("drain",r),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},d60a:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},d675:function(e,t,n){},d6e2:function(e,t,n){"use strict";var i=n("bab1"),o=n.n(i);o.a},d741:function(e,t,n){},d752:function(e,t,n){var i=n("7726").parseFloat,o=n("aa77").trim;e.exports=1/i(n("fdef")+"-0")!==-1/0?function(e){var t=o(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},d8f5:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("dd02"),c=n("3585"),l=n("869e"),u=n("b7b8"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return i(t,e),n=t,Object.defineProperty(t.prototype,"kind",{get:function(){return n.KIND},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(e){return{minimalPointDistance:2,removeAngleThreshold:.1,standardDistance:20,selfEdgeOffset:.25}},t.prototype.route=function(e){var t,n,i=e.source,o=e.target;if(void 0===i||void 0===o)return[];var r=this.getOptions(e),s=e.routingPoints.length>0?e.routingPoints:[];this.cleanupRoutingPoints(e,s,!1,!1);var c=void 0!==s?s.length:0;if(0===c){var l=a.center(o.bounds);t=this.getTranslatedAnchor(i,l,o.parent,e,e.sourceAnchorCorrection);var u=a.center(i.bounds);n=this.getTranslatedAnchor(o,u,i.parent,e,e.targetAnchorCorrection)}else{var d=s[0];t=this.getTranslatedAnchor(i,d,e.parent,e,e.sourceAnchorCorrection);var h=s[c-1];n=this.getTranslatedAnchor(o,h,e.parent,e,e.targetAnchorCorrection)}var p=[];p.push({kind:"source",x:t.x,y:t.y});for(var f=0;f0&&f=r.minimalPointDistance+(e.sourceAnchorCorrection||0)||f===c-1&&a.maxDistance(m,n)>=r.minimalPointDistance+(e.targetAnchorCorrection||0))&&p.push({kind:"linear",x:m.x,y:m.y,pointIndex:f})}return p.push({kind:"target",x:n.x,y:n.y}),this.filterEditModeHandles(p,e,r)},t.prototype.filterEditModeHandles=function(e,t,n){if(0===t.children.length)return e;var i=0,o=function(){var o=e[i];if(void 0!==o.pointIndex){var r=t.children.find(function(e){return e instanceof c.SRoutingHandle&&"junction"===e.kind&&e.pointIndex===o.pointIndex});if(void 0!==r&&r.editMode&&i>0&&ir)&&e.pointIndex++}),n.addHandle(e,"line","volatile-routing-point",r),n.addHandle(e,"line","volatile-routing-point",r+1),r++),r>=0&&r-1?setImmediate:o.nextTick;y.WritableState=b;var c=Object.create(n("3a7c"));c.inherits=n("3fb5");var l={deprecate:n("b7d1")},u=n("429b"),d=n("a8f0").Buffer,h=i.Uint8Array||function(){};function p(e){return d.from(e)}function f(e){return d.isBuffer(e)||e instanceof h}var m,g=n("4681");function v(){}function b(e,t){s=s||n("b19a"),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,a=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(a||0===a)?a:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function y(e){if(s=s||n("b19a"),!m.call(y,this)&&!(this instanceof s))return new y(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),u.call(this)}function _(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}function M(e,t,n,i){var r=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(i,s),r=!1),r}function w(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,n)),t}function C(e,t,n,i,o,r){if(!n){var s=w(t,i,o);i!==s&&(n=!0,o="buffer",i=s)}var a=t.objectMode?1:i.length;t.length+=a;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var i=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||N(this,i,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("4362"),n("c8ba"))},dd02:function(e,t,n){"use strict";function i(e,t){return{x:e.x+t.x,y:e.y+t.y}}function o(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r(e){return e.width>=0&&e.height>=0}function s(e){return"x"in e&&"y"in e&&"width"in e&&"height"in e}function a(e,n){if(!r(e))return r(n)?n:t.EMPTY_BOUNDS;if(!r(n))return e;var i=Math.min(e.x,n.x),o=Math.min(e.y,n.y),s=Math.max(e.x+(e.width>=0?e.width:0),n.x+(n.width>=0?n.width:0)),a=Math.max(e.y+(e.height>=0?e.height:0),n.y+(n.height>=0?n.height:0));return{x:i,y:o,width:s-i,height:a-o}}function c(e,t){return{x:e.x+t.x,y:e.y+t.y,width:e.width,height:e.height}}function l(e){return{x:e.x+(e.width>=0?.5*e.width:0),y:e.y+(e.height>=0?.5*e.height:0)}}function u(e,t){var n={x:e.x>t.x?t.x:e.x,y:e.y>t.y?t.y:e.y,width:Math.abs(t.x-e.x),height:Math.abs(t.y-e.y)};return l(n)}function d(e,t){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}function h(e,t){var n=t.x-e.x,i=t.y-e.y;return Math.sqrt(n*n+i*i)}function p(e,t){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)}function f(e,t){return Math.max(Math.abs(t.x-e.x),Math.abs(t.y-e.y))}function m(e){return Math.atan2(e.y,e.x)}function g(e,t){var n=Math.sqrt((e.x*e.x+e.y*e.y)*(t.x*t.x+t.y*t.y));if(isNaN(n)||0===n)return NaN;var i=e.x*t.x+e.y*t.y;return Math.acos(i/n)}function v(e,t,n){var r=o(t,e),s=b(r),a={x:s.x*n,y:s.y*n};return i(e,a)}function b(e){var n=y(e);return 0===n||1===n?t.ORIGIN_POINT:{x:e.x/n,y:e.y/n}}function y(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function _(e){return 180*e/Math.PI}function M(e){return e*Math.PI/180}function w(e,t){return Math.abs(e-t)<.001}function C(e,t,n){return{x:(1-n)*e.x+n*t.x,y:(1-n)*e.y+n*t.y}}Object.defineProperty(t,"__esModule",{value:!0}),t.ORIGIN_POINT=Object.freeze({x:0,y:0}),t.add=i,t.subtract=o,t.EMPTY_DIMENSION=Object.freeze({width:-1,height:-1}),t.isValidDimension=r,t.EMPTY_BOUNDS=Object.freeze({x:0,y:0,width:-1,height:-1}),t.isBounds=s,t.combine=a,t.translate=c,t.center=l,t.centerOfLine=u,t.includes=d,function(e){e[e["left"]=0]="left",e[e["right"]=1]="right",e[e["up"]=2]="up",e[e["down"]=3]="down"}(t.Direction||(t.Direction={})),t.euclideanDistance=h,t.manhattanDistance=p,t.maxDistance=f,t.angleOfPoint=m,t.angleBetweenPoints=g,t.shiftTowards=v,t.normalize=b,t.magnitude=y,t.toDegrees=_,t.toRadians=M,t.almostEquals=w,t.linear=C;var S=function(){function e(e){this.bounds=e}return Object.defineProperty(e.prototype,"topPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightPoint",{get:function(){return{x:this.bounds.x+this.bounds.width,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y+this.bounds.height}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftPoint",{get:function(){return{x:this.bounds.x,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRightSideLine",{get:function(){return new A(this.topPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topLeftSideLine",{get:function(){return new A(this.topPoint,this.leftPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomRightSideLine",{get:function(){return new A(this.bottomPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomLeftSideLine",{get:function(){return new A(this.bottomPoint,this.leftPoint)},enumerable:!0,configurable:!0}),e.prototype.closestSideLine=function(e){var t=l(this.bounds);return e.x>t.x?e.y>t.y?this.bottomRightSideLine:this.topRightSideLine:e.y>t.y?this.bottomLeftSideLine:this.topLeftSideLine},e}();t.Diamond=S;var A=function(){function e(e,t){this.p1=e,this.p2=t}return Object.defineProperty(e.prototype,"a",{get:function(){return this.p1.y-this.p2.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.p2.x-this.p1.x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.p2.x*this.p1.y-this.p1.x*this.p2.y},enumerable:!0,configurable:!0}),e}();function E(e,t){return{x:(e.c*t.b-t.c*e.b)/(e.a*t.b-t.a*e.b),y:(e.a*t.c-t.a*e.c)/(e.a*t.b-t.a*e.b)}}t.PointToPointLine=A,t.intersection=E},dd7b:function(e,t,n){"use strict";function i(e,t,n,i,o){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:i,elm:o,key:r}}n.r(t);var o=i,r=Array.isArray;function s(e){return"string"===typeof e||"number"===typeof e}function a(e){return document.createElement(e)}function c(e,t){return document.createElementNS(e,t)}function l(e){return document.createTextNode(e)}function u(e){return document.createComment(e)}function d(e,t,n){e.insertBefore(t,n)}function h(e,t){e.removeChild(t)}function p(e,t){e.appendChild(t)}function f(e){return e.parentNode}function m(e){return e.nextSibling}function g(e){return e.tagName}function v(e,t){e.textContent=t}function b(e){return e.textContent}function y(e){return 1===e.nodeType}function _(e){return 3===e.nodeType}function M(e){return 8===e.nodeType}var w={createElement:a,createElementNS:c,createTextNode:l,createComment:u,insertBefore:d,removeChild:h,appendChild:p,parentNode:f,nextSibling:m,tagName:g,setTextContent:v,getTextContent:b,isElement:y,isText:_,isComment:M},C=w;function S(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(var i=0;i0?u:l.length,f=d>0?d:l.length,m=-1!==u||-1!==d?l.slice(0,Math.min(p,f)):l,g=e.elm=R(i)&&R(n=i.ns)?c.createElementNS(n,m):c.createElement(m);for(p0&&g.setAttribute("class",l.slice(f+1).replace(/\./g," ")),n=0;nd?(a=null==n[b+1]?null:n[b+1].elm,p(e,a,n,u,b,i)):m(e,t,l,d))}function v(e,t,n){var i,o;R(i=t.data)&&R(o=i.hook)&&R(i=o.prepatch)&&i(e,t);var r=t.elm=e.elm,s=e.children,l=t.children;if(e!==t){if(void 0!==t.data){for(i=0;i=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("1590"),l=n("1417"),u=n("b669"),d=function(){function e(){this.tools=[],this.defaultTools=[],this.actives=[]}return Object.defineProperty(e.prototype,"managedTools",{get:function(){return this.defaultTools.concat(this.tools)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTools",{get:function(){return this.actives},enumerable:!0,configurable:!0}),e.prototype.disableActiveTools=function(){this.actives.forEach(function(e){return e.disable()}),this.actives.splice(0,this.actives.length)},e.prototype.enableDefaultTools=function(){this.enable(this.defaultTools.map(function(e){return e.id}))},e.prototype.enable=function(e){var t=this;this.disableActiveTools();var n=e.map(function(e){return t.tool(e)});n.forEach(function(e){void 0!==e&&(e.enable(),t.actives.push(e))})},e.prototype.tool=function(e){return this.managedTools.find(function(t){return t.id===e})},e.prototype.registerDefaultTools=function(){for(var e=[],t=0;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("302f"),a=n("3a92"),c=n("3623"),l=n("47b7"),u=n("38e8"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultGraphFeatures=s.createFeatureSet(l.SGraph.DEFAULT_FEATURES),t.defaultNodeFeatures=s.createFeatureSet(l.SNode.DEFAULT_FEATURES),t.defaultPortFeatures=s.createFeatureSet(l.SPort.DEFAULT_FEATURES),t.defaultEdgeFeatures=s.createFeatureSet(l.SEdge.DEFAULT_FEATURES),t.defaultLabelFeatures=s.createFeatureSet(l.SLabel.DEFAULT_FEATURES),t.defaultCompartmentFeatures=s.createFeatureSet(l.SCompartment.DEFAULT_FEATURES),t.defaultButtonFeatures=s.createFeatureSet(u.SButton.DEFAULT_FEATURES),t}return i(t,e),t.prototype.createElement=function(e,t){var n;if(this.registry.hasKey(e.type)){var i=this.registry.get(e.type,void 0);if(!(i instanceof a.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");n=i}else this.isNodeSchema(e)?(n=new l.SNode,n.features=this.defaultNodeFeatures):this.isPortSchema(e)?(n=new l.SPort,n.features=this.defaultPortFeatures):this.isEdgeSchema(e)?(n=new l.SEdge,n.features=this.defaultEdgeFeatures):this.isLabelSchema(e)?(n=new l.SLabel,n.features=this.defaultLabelFeatures):this.isCompartmentSchema(e)?(n=new l.SCompartment,n.features=this.defaultCompartmentFeatures):this.isButtonSchema(e)?(n=new u.SButton,n.features=this.defaultButtonFeatures):n=new a.SChildElement;return this.initializeChild(n,e,t)},t.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof a.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=n}else this.isGraphSchema(e)?(t=new l.SGraph,t.features=this.defaultGraphFeatures):t=new a.SModelRoot;return this.initializeRoot(t,e)},t.prototype.isGraphSchema=function(e){return"graph"===c.getBasicType(e)},t.prototype.isNodeSchema=function(e){return"node"===c.getBasicType(e)},t.prototype.isPortSchema=function(e){return"port"===c.getBasicType(e)},t.prototype.isEdgeSchema=function(e){return"edge"===c.getBasicType(e)},t.prototype.isLabelSchema=function(e){return"label"===c.getBasicType(e)},t.prototype.isCompartmentSchema=function(e){return"comp"===c.getBasicType(e)},t.prototype.isButtonSchema=function(e){return"button"===c.getBasicType(e)},t=o([r.injectable()],t),t}(s.SModelFactory);t.SGraphFactory=d},e00b:function(e,t,n){"use strict";var i=function(){var e,t,n=this,i=n.$createElement,o=n._self._c||i;return null!==n.dataSummary?o("div",{staticClass:"hv-histogram-container",class:"hv-histogram-"+n.direction,style:(e={},e["min-"+n.colormapStyle]=Math.max(4*n.dataSummary.histogram.length,256)+"px",e),on:{mouseleave:function(e){n.tooltips&&n.setInfoShowed(null)}}},[n.isHorizontal?[n.hasHistogram?o("div",{staticClass:"hv-histogram",class:[null!==n.colormap?"k-with-colormap":""]},n._l(n.dataSummary.histogram,function(e,t){return o("div",{key:t,staticClass:"hv-histogram-col",style:{width:n.histogramWidth+"%"},on:{mouseover:function(e){n.infoShowed={index:t,categories:n.dataSummary.categories,values:n.dataSummary.histogram}}}},[o("q-tooltip",{attrs:{offset:[0,10],delay:500}},[n._v(n._s(n.infoShowed.values[n.infoShowed.index]))]),o("div",{staticClass:"hv-histogram-val",style:{height:n.getHistogramDataHeight(e)+"%"}})],1)})):o("div",{staticClass:"hv-histogram-nodata"},[n._v(n._s(n.$t("label.noHistogramData")))])]:n._e(),n.dataSummary.categories.length>0?o("div",{staticClass:"hv-colormap-container",class:["hv-colormap-container-"+n.direction]},[null!==n.colormap?o("div",{staticClass:"hv-colormap",class:["hv-colormap-"+n.direction],style:(t={},t["min-"+n.colormapStyle]=Math.min(n.colormap.colors.length,256)+"px",t)},n._l(n.colormap.colors,function(e,t){var i;return o("div",{key:t,staticClass:"hv-colormap-col",style:(i={},i[n.colormapStyle]=n.colormapWidth+"%",i["background-color"]=e,i),on:{mouseover:function(e){n.tooltips&&(n.infoShowed={index:t,categories:[],values:n.colormap.labels})}}})})):n._e(),n.legend&&n.dataSummary.categories.length>0?o("div",{staticClass:"hv-legend hv-categories full-height"},[n._l(n.dataSummary.categories,function(e,t){return o("div",{key:t,staticClass:"hv-category",style:{"line-height":n.calculateFontSize()+"px","font-size":n.calculateFontSize()+"px"}},[n.dataSummary.categorized?o("span",{class:{"hv-zero-category":0===n.dataSummary.histogram[t]}},[n._v(n._s(e))]):o("span",[n._v(n._s(e.split(" ")[0]))])])}),n.dataSummary.categorized?n._e():o("div",{staticClass:"hv-category"},[n._v(n._s(n.histogramMax))])],2):n._e()]):n._e(),n.tooltips?o("div",{staticClass:"hv-data-details-container",class:{"hv-details-nodata":!n.hasHistogram&&null==n.colormap}},[o("div",{staticClass:"hv-histogram-min hv-data-details",on:{mouseover:function(e){n.tooltipIt(e,"q-hmin"+n.id+"-"+n.infoShowed.index)}}},[n._v(n._s(n.histogramMin)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:n.needTooltip("q-hmin"+n.id+"-"+n.infoShowed.index),expression:"needTooltip(`q-hmin${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip"},[n._v(n._s(n.histogramMin))])],1),-1===n.infoShowed.index?[o("div",{staticClass:"hv-data-nodetail hv-data-details"},[n._v(n._s(n.$t("label.noInfoValues")))])]:[o("div",{staticClass:"hv-data-value hv-data-details",on:{mouseover:function(e){n.tooltipIt(e,"q-hdata"+n.id+"-"+n.infoShowed.index)}}},[n._v("\n "+n._s(n.infoShowedText)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:n.needTooltip("q-hdata"+n.id+"-"+n.infoShowed.index),expression:"needTooltip(`q-hdata${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip",attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[n._v("\n "+n._s(n.infoShowedText)+"\n ")])],1)],o("div",{staticClass:"hv-histogram-max hv-data-details",on:{mouseover:function(e){n.tooltipIt(e,"q-hmax"+n.id+"-"+n.infoShowed.index)}}},[n._v(n._s(n.histogramMax)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:n.needTooltip("q-hmax"+n.id+"-"+n.infoShowed.index),expression:"needTooltip(`q-hmax${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip"},[n._v(n._s(n.histogramMax))])],1)],2):n._e()],2):n._e()},o=[];i._withStripped=!0;var r=n("3156"),s=n.n(r),a=(n("ac6a"),n("cadf"),n("2cee")),c=n("7cca"),l=n("abcf"),u=l["b"].height,d={name:"HistogramViewer",props:{dataSummary:{type:Object,required:!0},colormap:Object,id:{type:String,default:""},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},tooltips:{type:Boolean,default:!0},legend:{type:Boolean,default:!1}},mixins:[a["a"]],data:function(){return{infoShowed:{index:-1,categories:[],values:[]}}},computed:{hasHistogram:function(){return this.dataSummary.histogram.length>0},isHorizontal:function(){return"horizontal"===this.direction},maxHistogramValue:function(){return Math.max.apply(null,this.dataSummary.histogram)},histogramWidth:function(){return 100/this.dataSummary.histogram.length},histogramMin:function(){return"NaN"===this.dataSummary.minValue||this.dataSummary.categorized?"":Math.round(100*this.dataSummary.minValue)/100},histogramMax:function(){return"NaN"===this.dataSummary.maxValue||this.dataSummary.categorized?"":Math.round(100*this.dataSummary.maxValue)/100},colormapWidth:function(){return 100/this.colormap.colors.length},infoShowedText:function(){var e;return this.infoShowed.categories.length>0&&(e=this.infoShowed.categories[this.infoShowed.index],"undefined"!==typeof e&&null!==e&&""!==e)?e:this.infoShowed.values.length>0&&(e=this.infoShowed.values[this.infoShowed.index],"undefined"!==typeof e&&null!==e&&""!==e)?e:""},colormapStyle:function(){return"horizontal"===this.direction?"width":"height"},categoryHeight:function(){return console.warn(100/this.dataSummary.categories.length+(this.dataSummary.categorized?0:2)),100/(this.dataSummary.categories.length+(this.dataSummary.categorized?0:2))}},methods:{getHistogramDataHeight:function(e){return 100*e/this.maxHistogramValue},setInfoShowed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.infoShowed=null===e?{index:-1,categories:[],values:[]}:s()({},e)},calculateFontSize:function(){var e=document.querySelector(".hv-categories");if(e){var t=u(e);return Math.min(Math.max(t/this.dataSummary.categories.length,6),12)}return 12}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_DATA_INFO,this.setInfoShowed)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_DATA_INFO,this.setInfoShowed)}},h=d,p=(n("4c12"),n("2877")),f=Object(p["a"])(h,i,o,!1,null,null,null);f.options.__file="HistogramViewer.vue";t["a"]=f.exports},e0d9:function(e,t,n){"use strict";var i=n("ce70"),o=n.n(i);o.a},e1c6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c5f4");t.METADATA_KEY=i;var o=n("f457");t.Container=o.Container;var r=n("155f");t.BindingScopeEnum=r.BindingScopeEnum,t.BindingTypeEnum=r.BindingTypeEnum,t.TargetTypeEnum=r.TargetTypeEnum;var s=n("771c");t.AsyncContainerModule=s.AsyncContainerModule,t.ContainerModule=s.ContainerModule;var a=n("719e");t.injectable=a.injectable;var c=n("d204");t.tagged=c.tagged;var l=n("6730");t.named=l.named;var u=n("624f");t.inject=u.inject,t.LazyServiceIdentifer=u.LazyServiceIdentifer;var d=n("8d8c");t.optional=d.optional;var h=n("9f62");t.unmanaged=h.unmanaged;var p=n("8c88");t.multiInject=p.multiInject;var f=n("a1a5");t.targetName=f.targetName;var m=n("4a4f");t.postConstruct=m.postConstruct;var g=n("c278");t.MetadataReader=g.MetadataReader;var v=n("77d3");t.id=v.id;var b=n("66d7");t.decorate=b.decorate;var y=n("451f");t.traverseAncerstors=y.traverseAncerstors,t.taggedConstraint=y.taggedConstraint,t.namedConstraint=y.namedConstraint,t.typeConstraint=y.typeConstraint;var _=n("ba33");t.getServiceIdentifierAsString=_.getServiceIdentifierAsString;var M=n("efc5");t.multiBindToService=M.multiBindToService},e1cb:function(e,t,n){"use strict";function i(e){return e.hasFeature(t.nameFeature)}function o(e){return i(e)?e.name:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.nameFeature=Symbol("nameableFeature"),t.isNameable=i,t.name=o},e2d7:function(e,t,n){"use strict";var i=n("8ef3"),o=n.n(i);o.a},e325:function(t,n,o){"use strict";var r="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};Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");var i=arguments[1],o=0;while(o>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");var i=arguments[1],o=0;while(o>>0;if(0===i)return!1;var o=0|t,r=Math.max(o>=0?o:i-Math.abs(o),0);function s(e,t){return e===t||"number"===typeof e&&"number"===typeof t&&isNaN(e)&&isNaN(t)}while(rn?(t=e-n,this.element.style.marginLeft=-t+"px"):this.element.style.marginLeft=0,this.scrollLeft=e,this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.scrollHorizontal()},s.prototype.generateColumnsFromRowData=function(e){var t,n,i=[],o=this.table.options.autoColumnsDefinitions;if(e&&e.length){for(var s in t=e[0],t){var a={field:s,title:s},c=t[s];switch("undefined"===typeof c?"undefined":r(c)){case"undefined":n="string";break;case"boolean":n="boolean";break;case"object":n=Array.isArray(c)?"array":"string";break;default:n=isNaN(c)||""===c?c.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?"alphanum":"string":"number";break}a.sorter=n,i.push(a)}if(o)switch("undefined"===typeof o?"undefined":r(o)){case"function":this.table.options.columns=o.call(this.table,i);break;case"object":Array.isArray(o)?i.forEach(function(e){var t=o.find(function(t){return t.field===e.field});t&&Object.assign(e,t)}):i.forEach(function(e){o[e.field]&&Object.assign(e,o[e.field])}),this.table.options.columns=i;break}else this.table.options.columns=i;this.setColumns(this.table.options.columns)}},s.prototype.setColumns=function(e,t){var n=this;while(n.headersElement.firstChild)n.headersElement.removeChild(n.headersElement.firstChild);n.columns=[],n.columnsByIndex=[],n.columnsByField={},n.table.modExists("frozenColumns")&&n.table.modules.frozenColumns.reset(),e.forEach(function(e,t){n._addColumn(e)}),n._reIndexColumns(),n.table.options.responsiveLayout&&n.table.modExists("responsiveLayout",!0)&&n.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!1,!0),n.redraw(!0)},s.prototype._addColumn=function(e,t,n){var i=new c(e,this),o=i.getElement(),r=n?this.findColumnIndex(n):n;if(n&&r>-1){var s=this.columns.indexOf(n.getTopColumn()),a=n.getElement();t?(this.columns.splice(s,0,i),a.parentNode.insertBefore(o,a)):(this.columns.splice(s+1,0,i),a.parentNode.insertBefore(o,a.nextSibling))}else t?(this.columns.unshift(i),this.headersElement.insertBefore(i.getElement(),this.headersElement.firstChild)):(this.columns.push(i),this.headersElement.appendChild(i.getElement())),i.columnRendered();return i},s.prototype.registerColumnField=function(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)},s.prototype.registerColumnPosition=function(e){this.columnsByIndex.push(e)},s.prototype._reIndexColumns=function(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})},s.prototype._verticalAlignHeaders=function(){var e=this,t=0;e.columns.forEach(function(e){var n;e.clearVerticalAlign(),n=e.getHeight(),n>t&&(t=n)}),e.columns.forEach(function(n){n.verticalAlign(e.table.options.columnHeaderVertAlign,t)}),e.rowManager.adjustTableSize()},s.prototype.findColumn=function(e){var t=this;if("object"!=("undefined"===typeof e?"undefined":r(e)))return this.columnsByField[e]||!1;if(e instanceof c)return e;if(e instanceof a)return e._getSelf()||!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement){var n=t.columns.find(function(t){return t.element===e});return n||!1}return!1},s.prototype.getColumnByField=function(e){return this.columnsByField[e]},s.prototype.getColumnsByFieldRoot=function(e){var t=this,n=[];return Object.keys(this.columnsByField).forEach(function(i){var o=i.split(".")[0];o===e&&n.push(t.columnsByField[i])}),n},s.prototype.getColumnByIndex=function(e){return this.columnsByIndex[e]},s.prototype.getFirstVisibileColumn=function(e){e=this.columnsByIndex.findIndex(function(e){return e.visible});return e>-1&&this.columnsByIndex[e]},s.prototype.getColumns=function(){return this.columns},s.prototype.findColumnIndex=function(e){return this.columnsByIndex.findIndex(function(t){return e===t})},s.prototype.getRealColumns=function(){return this.columnsByIndex},s.prototype.traverse=function(e){var t=this;t.columnsByIndex.forEach(function(t,n){e(t,n)})},s.prototype.getDefinitions=function(e){var t=this,n=[];return t.columnsByIndex.forEach(function(t){(!e||e&&t.visible)&&n.push(t.getDefinition())}),n},s.prototype.getDefinitionTree=function(){var e=this,t=[];return e.columns.forEach(function(e){t.push(e.getDefinition(!0))}),t},s.prototype.getComponents=function(e){var t=this,n=[],i=e?t.columns:t.columnsByIndex;return i.forEach(function(e){n.push(e.getComponent())}),n},s.prototype.getWidth=function(){var e=0;return this.columnsByIndex.forEach(function(t){t.visible&&(e+=t.getWidth())}),e},s.prototype.moveColumn=function(e,t,n){this.moveColumnActual(e,t,n),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),t.element.parentNode.insertBefore(e.element,t.element),n&&t.element.parentNode.insertBefore(t.element,e.element),this._verticalAlignHeaders(),this.table.rowManager.reinitialize()},s.prototype.moveColumnActual=function(e,t,n){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,n):this._moveColumnInArray(this.columns,e,t,n),this._moveColumnInArray(this.columnsByIndex,e,t,n,!0),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!0),this.table.options.columnMoved&&this.table.options.columnMoved.call(this.table,e.getComponent(),this.table.columnManager.getComponents()),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns")},s.prototype._moveColumnInArray=function(e,t,n,i,o){var r,s=this,a=e.indexOf(t),c=[];a>-1&&(e.splice(a,1),r=e.indexOf(n),r>-1?i&&(r+=1):r=a,e.splice(r,0,t),o&&(this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.rowManager.rows.forEach(function(e){c=c.concat(s.table.modules.dataTree.getTreeChildren(e,!1,!0))}),c=c.concat(this.table.rowManager.rows),c.forEach(function(e){if(e.cells.length){var t=e.cells.splice(a,1)[0];e.cells.splice(r,0,t)}})))},s.prototype.scrollToColumn=function(e,t,n){var i=this,o=0,r=0,s=0,a=e.getElement();return new Promise(function(c,l){if("undefined"===typeof t&&(t=i.table.options.scrollToColumnPosition),"undefined"===typeof n&&(n=i.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":s=-i.element.clientWidth/2;break;case"right":s=a.clientWidth-i.headersElement.clientWidth;break}if(!n&&(r=a.offsetLeft,r>0&&r+a.offsetWidthe.rowManager.element.clientHeight&&(t-=e.rowManager.element.offsetWidth-e.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(i){var o,r,s;i.visible&&(o=i.definition.width||0,r="undefined"==typeof i.minWidth?e.table.options.columnMinWidth:parseInt(i.minWidth),s="string"==typeof o?o.indexOf("%")>-1?t/100*parseInt(o):parseInt(o):o,n+=s>r?s:r)}),n},s.prototype.addColumn=function(e,t,n){var i=this;return new Promise(function(o,r){var s=i._addColumn(e,t,n);i._reIndexColumns(),i.table.options.responsiveLayout&&i.table.modExists("responsiveLayout",!0)&&i.table.modules.responsiveLayout.initialize(),i.table.modExists("columnCalcs")&&i.table.modules.columnCalcs.recalc(i.table.rowManager.activeRows),i.redraw(!0),"fitColumns"!=i.table.modules.layout.getMode()&&s.reinitializeWidth(),i._verticalAlignHeaders(),i.table.rowManager.reinitialize(),i.table.options.virtualDomHoz&&i.table.vdomHoz.reinitialize(),o(s)})},s.prototype.deregisterColumn=function(e){var t,n=e.getField();n&&delete this.columnsByField[n],t=this.columnsByIndex.indexOf(e),t>-1&&this.columnsByIndex.splice(t,1),t=this.columns.indexOf(e),t>-1&&this.columns.splice(t,1),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this._verticalAlignHeaders(),this.redraw()},s.prototype.redraw=function(e){e&&(g.prototype.helpers.elVisible(this.element)&&this._verticalAlignHeaders(),this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),["fitColumns","fitDataStretch"].indexOf(this.table.modules.layout.getMode())>-1?this.table.modules.layout.layout():e?this.table.modules.layout.layout():this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),e&&(this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns"),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.redraw()),this.table.footerManager.redraw()};var a=function(e){this._column=e,this.type="ColumnComponent"};a.prototype.getElement=function(){return this._column.getElement()},a.prototype.getDefinition=function(){return this._column.getDefinition()},a.prototype.getField=function(){return this._column.getField()},a.prototype.getCells=function(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e},a.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._column.visible},a.prototype.isVisible=function(){return this._column.visible},a.prototype.show=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()},a.prototype.hide=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()},a.prototype.toggle=function(){this._column.visible?this.hide():this.show()},a.prototype.delete=function(){return this._column.delete()},a.prototype.getSubColumns=function(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e},a.prototype.getParentColumn=function(){return this._column.parent instanceof c&&this._column.parent.getComponent()},a.prototype._getSelf=function(){return this._column},a.prototype.scrollTo=function(){return this._column.table.columnManager.scrollToColumn(this._column)},a.prototype.getTable=function(){return this._column.table},a.prototype.headerFilterFocus=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterFocus(this._column)},a.prototype.reloadHeaderFilter=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.reloadHeaderFilter(this._column)},a.prototype.getHeaderFilterValue=function(){if(this._column.table.modExists("filter",!0))return this._column.table.modules.filter.getHeaderFilterValue(this._column)},a.prototype.setHeaderFilterValue=function(e){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterValue(this._column,e)},a.prototype.move=function(e,t){var n=this._column.table.columnManager.findColumn(e);n?this._column.table.columnManager.moveColumn(this._column,n,t):console.warn("Move Error - No matching column found:",n)},a.prototype.getNextColumn=function(){var e=this._column.nextColumn();return!!e&&e.getComponent()},a.prototype.getPrevColumn=function(){var e=this._column.prevColumn();return!!e&&e.getComponent()},a.prototype.updateDefinition=function(e){return this._column.updateDefinition(e)},a.prototype.getWidth=function(){return this._column.getWidth()},a.prototype.setWidth=function(e){var t;return t=!0===e?this._column.reinitializeWidth(!0):this._column.setWidth(e),this._column.table.options.virtualDomHoz&&this._column.table.vdomHoz.reinitialize(!0),t},a.prototype.validate=function(){return this._column.validate()};var c=function e(t,n){var i=this;this.table=n.table,this.definition=t,this.parent=n,this.type="column",this.columns=[],this.cells=[],this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.isGroup=!1,this.tooltip=!1,this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleFormatterRendered=!1,this.setField(this.definition.field),this.table.options.invalidOptionWarnings&&this.checkDefinition(),this.modules={},this.cellEvents={cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this._mapDepricatedFunctionality(),t.columns?(this.isGroup=!0,t.columns.forEach(function(t,n){var o=new e(t,i);i.attachColumn(o)}),i.checkColumnVisibility()):n.registerColumnField(this),t.rowHandle&&!1!==this.table.options.movableRows&&this.table.modExists("moveRow")&&this.table.modules.moveRow.setHandle(!0),this._buildHeader(),this.bindModuleColumns()};c.prototype.createElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),e},c.prototype.createGroupElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e},c.prototype.checkDefinition=function(){var e=this;Object.keys(this.definition).forEach(function(t){-1===e.defaultOptionList.indexOf(t)&&console.warn("Invalid column definition option in '"+(e.field||e.definition.title)+"' column:",t)})},c.prototype.setField=function(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData},c.prototype.registerColumnPosition=function(e){this.parent.registerColumnPosition(e)},c.prototype.registerColumnField=function(e){this.parent.registerColumnField(e)},c.prototype.reRegisterPosition=function(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)},c.prototype._mapDepricatedFunctionality=function(){"undefined"!==typeof this.definition.hideInHtml&&(this.definition.htmlOutput=!this.definition.hideInHtml,console.warn("hideInHtml column definition property is deprecated, you should now use htmlOutput")),"undefined"!==typeof this.definition.align&&(this.definition.hozAlign=this.definition.align,console.warn("align column definition property is deprecated, you should now use hozAlign")),"undefined"!==typeof this.definition.downloadTitle&&(this.definition.titleDownload=this.definition.downloadTitle,console.warn("downloadTitle definition property is deprecated, you should now use titleDownload"))},c.prototype.setTooltip=function(){var e=this,t=e.definition,n=t.headerTooltip||!1===t.tooltip?t.headerTooltip:e.table.options.tooltipsHeader;n?!0===n?t.field?e.table.modules.localize.bind("columns|"+t.field,function(n){e.element.setAttribute("title",n||t.title)}):e.element.setAttribute("title",t.title):("function"==typeof n&&(n=n(e.getComponent()),!1===n&&(n="")),e.element.setAttribute("title",n)):e.element.setAttribute("title","")},c.prototype._buildHeader=function(){var e=this,t=e.definition;while(e.element.firstChild)e.element.removeChild(e.element.firstChild);t.headerVertical&&(e.element.classList.add("tabulator-col-vertical"),"flip"===t.headerVertical&&e.element.classList.add("tabulator-col-vertical-flip")),e.contentElement=e._bindEvents(),e.contentElement=e._buildColumnHeaderContent(),e.element.appendChild(e.contentElement),e.isGroup?e._buildGroupHeader():e._buildColumnHeader(),e.setTooltip(),e.table.options.resizableColumns&&e.table.modExists("resizeColumns")&&e.table.modules.resizeColumns.initializeColumn("header",e,e.element),t.headerFilter&&e.table.modExists("filter")&&e.table.modExists("edit")&&("undefined"!==typeof t.headerFilterPlaceholder&&t.field&&e.table.modules.localize.setHeaderFilterColumnPlaceholder(t.field,t.headerFilterPlaceholder),e.table.modules.filter.initializeColumn(e)),e.table.modExists("frozenColumns")&&e.table.modules.frozenColumns.initializeColumn(e),e.table.options.movableColumns&&!e.isGroup&&e.table.modExists("moveColumn")&&e.table.modules.moveColumn.initializeColumn(e),(t.topCalc||t.bottomCalc)&&e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.initializeColumn(e),e.table.modExists("persistence")&&e.table.modules.persistence.config.columns&&e.table.modules.persistence.initializeColumn(e),e.element.addEventListener("mouseenter",function(t){e.setTooltip()})},c.prototype._bindEvents=function(){var e,t,n,i=this,o=i.definition;"function"==typeof o.headerClick&&i.element.addEventListener("click",function(e){o.headerClick(e,i.getComponent())}),"function"==typeof o.headerDblClick&&i.element.addEventListener("dblclick",function(e){o.headerDblClick(e,i.getComponent())}),"function"==typeof o.headerContext&&i.element.addEventListener("contextmenu",function(e){o.headerContext(e,i.getComponent())}),"function"==typeof o.headerTap&&(n=!1,i.element.addEventListener("touchstart",function(e){n=!0},{passive:!0}),i.element.addEventListener("touchend",function(e){n&&o.headerTap(e,i.getComponent()),n=!1})),"function"==typeof o.headerDblTap&&(e=null,i.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,o.headerDblTap(t,i.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),"function"==typeof o.headerTapHold&&(t=null,i.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,n=!1,o.headerTapHold(e,i.getComponent())},1e3)},{passive:!0}),i.element.addEventListener("touchend",function(e){clearTimeout(t),t=null})),"function"==typeof o.cellClick&&(i.cellEvents.cellClick=o.cellClick),"function"==typeof o.cellDblClick&&(i.cellEvents.cellDblClick=o.cellDblClick),"function"==typeof o.cellContext&&(i.cellEvents.cellContext=o.cellContext),"function"==typeof o.cellMouseEnter&&(i.cellEvents.cellMouseEnter=o.cellMouseEnter),"function"==typeof o.cellMouseLeave&&(i.cellEvents.cellMouseLeave=o.cellMouseLeave),"function"==typeof o.cellMouseOver&&(i.cellEvents.cellMouseOver=o.cellMouseOver),"function"==typeof o.cellMouseOut&&(i.cellEvents.cellMouseOut=o.cellMouseOut),"function"==typeof o.cellMouseMove&&(i.cellEvents.cellMouseMove=o.cellMouseMove),"function"==typeof o.cellTap&&(i.cellEvents.cellTap=o.cellTap),"function"==typeof o.cellDblTap&&(i.cellEvents.cellDblTap=o.cellDblTap),"function"==typeof o.cellTapHold&&(i.cellEvents.cellTapHold=o.cellTapHold),"function"==typeof o.cellEdited&&(i.cellEvents.cellEdited=o.cellEdited),"function"==typeof o.cellEditing&&(i.cellEvents.cellEditing=o.cellEditing),"function"==typeof o.cellEditCancelled&&(i.cellEvents.cellEditCancelled=o.cellEditCancelled)},c.prototype._buildColumnHeader=function(){var e=this,t=this.definition,n=this.table;if(n.modExists("sort")&&n.modules.sort.initializeColumn(this,this.titleHolderElement),(t.headerContextMenu||t.headerClickMenu||t.headerMenu)&&n.modExists("menu")&&n.modules.menu.initializeColumnHeader(this),n.modExists("format")&&n.modules.format.initializeColumn(this),"undefined"!=typeof t.editor&&n.modExists("edit")&&n.modules.edit.initializeColumn(this),"undefined"!=typeof t.validator&&n.modExists("validate")&&n.modules.validate.initializeColumn(this),n.modExists("mutator")&&n.modules.mutator.initializeColumn(this),n.modExists("accessor")&&n.modules.accessor.initializeColumn(this),r(n.options.responsiveLayout)&&n.modExists("responsiveLayout")&&n.modules.responsiveLayout.initializeColumn(this),"undefined"!=typeof t.visible&&(t.visible?this.show(!0):this.hide(!0)),t.cssClass){var i=t.cssClass.split(" ");i.forEach(function(t){e.element.classList.add(t)})}t.field&&this.element.setAttribute("tabulator-field",t.field),this.setMinWidth("undefined"==typeof t.minWidth?this.table.options.columnMinWidth:parseInt(t.minWidth)),(t.maxWidth||this.table.options.columnMaxWidth)&&!1!==t.maxWidth&&this.setMaxWidth("undefined"==typeof t.maxWidth?this.table.options.columnMaxWidth:parseInt(t.maxWidth)),this.reinitializeWidth(),this.tooltip=this.definition.tooltip||!1===this.definition.tooltip?this.definition.tooltip:this.table.options.tooltips,this.hozAlign="undefined"==typeof this.definition.hozAlign?this.table.options.cellHozAlign:this.definition.hozAlign,this.vertAlign="undefined"==typeof this.definition.vertAlign?this.table.options.cellVertAlign:this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign},c.prototype._buildColumnHeaderContent=function(){this.definition,this.table;var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e},c.prototype._buildColumnHeaderTitle=function(){var e=this,t=e.definition,n=e.table,i=document.createElement("div");if(i.classList.add("tabulator-col-title"),t.editableTitle){var o=document.createElement("input");o.classList.add("tabulator-title-editor"),o.addEventListener("click",function(e){e.stopPropagation(),o.focus()}),o.addEventListener("change",function(){t.title=o.value,n.options.columnTitleChanged.call(e.table,e.getComponent())}),i.appendChild(o),t.field?n.modules.localize.bind("columns|"+t.field,function(e){o.value=e||t.title||" "}):o.value=t.title||" "}else t.field?n.modules.localize.bind("columns|"+t.field,function(n){e._formatColumnHeaderTitle(i,n||t.title||" ")}):e._formatColumnHeaderTitle(i,t.title||" ");return i},c.prototype._formatColumnHeaderTitle=function(e,t){var n,i,o,s,a,c=this;if(this.definition.titleFormatter&&this.table.modExists("format"))switch(n=this.table.modules.format.getFormatter(this.definition.titleFormatter),a=function(e){c.titleFormatterRendered=e},s={getValue:function(){return t},getElement:function(){return e}},o=this.definition.titleFormatterParams||{},o="function"===typeof o?o():o,i=n.call(this.table.modules.format,s,o,a),"undefined"===typeof i?"undefined":r(i)){case"object":i instanceof Node?e.appendChild(i):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));break;case"undefined":case"null":e.innerHTML="";break;default:e.innerHTML=i}else e.innerHTML=t},c.prototype._buildGroupHeader=function(){var e=this;if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var t=this.definition.cssClass.split(" ");t.forEach(function(t){e.element.classList.add(t)})}(this.definition.headerContextMenu||this.definition.headerMenu)&&this.table.modExists("menu")&&this.table.modules.menu.initializeColumnHeader(this),this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign,this.element.appendChild(this.groupElement)},c.prototype._getFlatData=function(e){return e[this.field]},c.prototype._getNestedData=function(e){for(var t,n=e,i=this.fieldStructure,o=i.length,r=0;r-1&&this.columns.splice(t,1),this.columns.length||this.delete()},c.prototype.setWidth=function(e){this.widthFixed=!0,this.setWidthActual(e)},c.prototype.setWidthActual=function(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(e){e.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()},c.prototype.checkCellHeights=function(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(null!==t.row.getElement().offsetParent?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()})},c.prototype.getWidth=function(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e},c.prototype.getHeight=function(){return this.element.offsetHeight},c.prototype.setMinWidth=function(e){this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(e){e.setMinWidth()})},c.prototype.setMaxWidth=function(e){this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(e){e.setMaxWidth()})},c.prototype.delete=function(){var e=this;return new Promise(function(t,n){e.isGroup&&e.columns.forEach(function(e){e.delete()}),e.table.modExists("edit")&&e.table.modules.edit.currentCell.column===e&&e.table.modules.edit.cancelEdit();for(var i=e.cells.length,o=0;o-1&&this._nextVisibleColumn(e+1)},c.prototype._nextVisibleColumn=function(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)},c.prototype.prevColumn=function(){var e=this.table.columnManager.findColumnIndex(this);return e>-1&&this._prevVisibleColumn(e-1)},c.prototype._prevVisibleColumn=function(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)},c.prototype.reinitializeWidth=function(e){this.widthFixed=!1,"undefined"===typeof this.definition.width||e||this.setWidth(this.definition.width),this.table.modExists("filter")&&this.table.modules.filter.hideHeaderFilterElements(),this.fitToData(),this.table.modExists("filter")&&this.table.modules.filter.showHeaderFilterElements()},c.prototype.fitToData=function(){var e=this;this.widthFixed||(this.element.style.width="",e.cells.forEach(function(e){e.clearWidth()}));var t=this.element.offsetWidth;e.width&&this.widthFixed||(e.cells.forEach(function(e){var n=e.getWidth();n>t&&(t=n)}),t&&e.setWidthActual(t+1))},c.prototype.updateDefinition=function(e){var t=this;return new Promise(function(n,i){var o;t.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),i("Column Update Error - The updateDefinition function is only available on columns, not column groups")):t.parent.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),i("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(o=Object.assign({},t.getDefinition()),o=Object.assign(o,e),t.table.columnManager.addColumn(o,!1,t).then(function(e){o.field==t.field&&(t.field=!1),t.delete().then(function(){n(e.getComponent())}).catch(function(e){i(e)})}).catch(function(e){i(e)}))})},c.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},c.prototype.defaultOptionList=["title","field","columns","visible","align","hozAlign","vertAlign","width","minWidth","maxWidth","widthGrow","widthShrink","resizable","frozen","responsive","tooltip","cssClass","rowHandle","hideInHtml","print","htmlOutput","sorter","sorterParams","formatter","formatterParams","variableHeight","editable","editor","editorParams","validator","mutator","mutatorParams","mutatorData","mutatorDataParams","mutatorEdit","mutatorEditParams","mutatorClipboard","mutatorClipboardParams","accessor","accessorParams","accessorData","accessorDataParams","accessorDownload","accessorDownloadParams","accessorClipboard","accessorClipboardParams","accessorPrint","accessorPrintParams","accessorHtmlOutput","accessorHtmlOutputParams","clipboard","download","downloadTitle","topCalc","topCalcParams","topCalcFormatter","topCalcFormatterParams","bottomCalc","bottomCalcParams","bottomCalcFormatter","bottomCalcFormatterParams","cellClick","cellDblClick","cellContext","cellTap","cellDblTap","cellTapHold","cellMouseEnter","cellMouseLeave","cellMouseOver","cellMouseOut","cellMouseMove","cellEditing","cellEdited","cellEditCancelled","headerSort","headerSortStartingDir","headerSortTristate","headerClick","headerDblClick","headerContext","headerTap","headerDblTap","headerTapHold","headerTooltip","headerVertical","headerHozAlign","editableTitle","titleFormatter","titleFormatterParams","headerFilter","headerFilterPlaceholder","headerFilterParams","headerFilterEmptyCheck","headerFilterFunc","headerFilterFuncParams","headerFilterLiveFilter","print","headerContextMenu","headerMenu","contextMenu","clickMenu","formatterPrint","formatterPrintParams","formatterClipboard","formatterClipboardParams","formatterHtmlOutput","formatterHtmlOutputParams","titlePrint","titleClipboard","titleHtmlOutput","titleDownload"],c.prototype.getComponent=function(){return this.component||(this.component=new a(this)),this.component};var l=function(e){this.table=e,this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.columnManager=null,this.height=0,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[],this.rowNumColumn=!1,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRederInPosition=!1};l.prototype.createHolderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-tableHolder"),e.setAttribute("tabindex",0),e},l.prototype.createTableElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e},l.prototype.getElement=function(){return this.element},l.prototype.getTableElement=function(){return this.tableElement},l.prototype.getRowPosition=function(e,t){return t?this.activeRows.indexOf(e):this.rows.indexOf(e)},l.prototype.setColumnManager=function(e){this.columnManager=e},l.prototype.initialize=function(){var e=this;e.setRenderMode(),e.element.appendChild(e.tableElement),e.firstRender=!0,e.element.addEventListener("scroll",function(){var t=e.element.scrollLeft;e.scrollLeft!=t&&(e.columnManager.scrollHorizontal(t),e.table.options.groupBy&&e.table.modules.groupRows.scrollHeaders(t),e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.scrollHorizontal(t),e.table.options.scrollHorizontal(t)),e.scrollLeft=t}),"virtual"===this.renderMode&&e.element.addEventListener("scroll",function(){var t=e.element.scrollTop,n=e.scrollTop>t;e.scrollTop!=t?(e.scrollTop=t,e.scrollVertical(n),"scroll"==e.table.options.ajaxProgressiveLoad&&e.table.modules.ajax.nextPage(e.element.scrollHeight-e.element.clientHeight-t),e.table.options.scrollVertical(t)):e.scrollTop=t})},l.prototype.findRow=function(e){var t=this;if("object"!=("undefined"===typeof e?"undefined":r(e))){if("undefined"==typeof e||null===e)return!1;var n=t.rows.find(function(n){return n.data[t.table.options.index]==e});return n||!1}if(e instanceof h)return e;if(e instanceof d)return e._getSelf()||!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement){var i=t.rows.find(function(t){return t.getElement()===e});return i||!1}return!1},l.prototype.getRowFromDataObject=function(e){var t=this.rows.find(function(t){return t.data===e});return t||!1},l.prototype.getRowFromPosition=function(e,t){return t?this.activeRows[e]:this.rows[e]},l.prototype.scrollToRow=function(e,t,n){var i,o=this,r=this.getDisplayRows().indexOf(e),s=e.getElement(),a=0;return new Promise(function(e,c){if(r>-1){if("undefined"===typeof t&&(t=o.table.options.scrollToRowPosition),"undefined"===typeof n&&(n=o.table.options.scrollToRowIfVisible),"nearest"===t)switch(o.renderMode){case"classic":i=g.prototype.helpers.elOffset(s).top,t=Math.abs(o.element.scrollTop-i)>Math.abs(o.element.scrollTop+o.element.clientHeight-i)?"bottom":"top";break;case"virtual":t=Math.abs(o.vDomTop-r)>Math.abs(o.vDomBottom-r)?"bottom":"top";break}if(!n&&g.prototype.helpers.elVisible(s)&&(a=g.prototype.helpers.elOffset(s).top-g.prototype.helpers.elOffset(o.element).top,a>0&&a-1&&this.activeRows.splice(i,1),n>-1&&this.rows.splice(n,1),this.setActiveRows(this.activeRows),this.displayRowIterator(function(t){var n=t.indexOf(e);n>-1&&t.splice(n,1)}),t||this.reRenderInPosition(),this.regenerateRowNumbers(),this.table.options.rowDeleted.call(this.table,e.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.updateGroupRows(!0):this.table.options.pagination&&this.table.modExists("page")?this.refreshActiveData(!1,!1,!0):this.table.options.pagination&&this.table.modExists("page")&&this.refreshActiveData("page")},l.prototype.addRow=function(e,t,n,i){var o=this.addRowActual(e,t,n,i);return this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowAdd",o,{data:e,pos:t,index:n}),o},l.prototype.addRows=function(e,t,n){var i=this,o=this,r=[];return new Promise(function(s,a){t=i.findAddRowPos(t),Array.isArray(e)||(e=[e]),e.length-1,("undefined"==typeof n&&t||"undefined"!==typeof n&&!t)&&e.reverse(),e.forEach(function(e,i){var s=o.addRow(e,t,n,!0);r.push(s)}),i.table.options.groupBy&&i.table.modExists("groupRows")?i.table.modules.groupRows.updateGroupRows(!0):i.table.options.pagination&&i.table.modExists("page")?i.refreshActiveData(!1,!1,!0):i.reRenderInPosition(),i.table.modExists("columnCalcs")&&i.table.modules.columnCalcs.recalc(i.table.rowManager.activeRows),i.regenerateRowNumbers(),s(r)})},l.prototype.findAddRowPos=function(e){return"undefined"===typeof e&&(e=this.table.options.addRowPos),"pos"===e&&(e=!0),"bottom"===e&&(e=!1),e},l.prototype.addRowActual=function(e,t,n,i){var o,r,s=e instanceof h?e:new h(e||{},this),a=this.findAddRowPos(t),c=-1;if(!n&&this.table.options.pagination&&"page"==this.table.options.paginationAddRow&&(r=this.getDisplayRows(),a?r.length?n=r[0]:this.activeRows.length&&(n=this.activeRows[this.activeRows.length-1],a=!1):r.length&&(n=r[r.length-1],a=!(r.length1&&(!n||n&&-1==l.indexOf(n)?a?l[0]!==s&&(n=l[0],this._moveRowInArray(s.getGroup().rows,s,n,!a)):l[l.length-1]!==s&&(n=l[l.length-1],this._moveRowInArray(s.getGroup().rows,s,n,!a)):this._moveRowInArray(s.getGroup().rows,s,n,!a))}return n&&(c=this.rows.indexOf(n)),n&&c>-1?(o=this.activeRows.indexOf(n),this.displayRowIterator(function(e){var t=e.indexOf(n);t>-1&&e.splice(a?t:t+1,0,s)}),o>-1&&this.activeRows.splice(a?o:o+1,0,s),this.rows.splice(a?c:c+1,0,s)):a?(this.displayRowIterator(function(e){e.unshift(s)}),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator(function(e){e.push(s)}),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.activeRows),this.table.options.rowAdded.call(this.table,s.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),i||this.reRenderInPosition(),s},l.prototype.moveRow=function(e,t,n){this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowMove",e,{posFrom:this.getRowPosition(e),posTo:this.getRowPosition(t),to:t,after:n}),this.moveRowActual(e,t,n),this.regenerateRowNumbers(),this.table.options.rowMoved.call(this.table,e.getComponent())},l.prototype.moveRowActual=function(e,t,n){var i=this;if(this._moveRowInArray(this.rows,e,t,n),this._moveRowInArray(this.activeRows,e,t,n),this.displayRowIterator(function(o){i._moveRowInArray(o,e,t,n)}),this.table.options.groupBy&&this.table.modExists("groupRows")){!n&&t instanceof I&&(t=this.table.rowManager.prevDisplayRow(e)||t);var o=t.getGroup(),r=e.getGroup();o===r?this._moveRowInArray(o.rows,e,t,n):(r&&r.removeRow(e),o.insertRow(e,t,n))}},l.prototype._moveRowInArray=function(e,t,n,i){var o,r,s,a;if(t!==n&&(o=e.indexOf(t),o>-1&&(e.splice(o,1),r=e.indexOf(n),r>-1?i?e.splice(r+1,0,t):e.splice(r,0,t):e.splice(o,0,t)),e===this.getDisplayRows())){s=oo?r:o+1;for(var c=s;c<=a;c++)e[c]&&this.styleRow(e[c],c)}},l.prototype.clearData=function(){this.setData([])},l.prototype.getRowIndex=function(e){return this.findRowIndex(e,this.rows)},l.prototype.getDisplayRowIndex=function(e){var t=this.getDisplayRows().indexOf(e);return t>-1&&t},l.prototype.nextDisplayRow=function(e,t){var n=this.getDisplayRowIndex(e),i=!1;return!1!==n&&n-1))&&n},l.prototype.getData=function(e,t){var n=[],i=this.getRows(e);return i.forEach(function(e){"row"==e.type&&n.push(e.getData(t||"data"))}),n},l.prototype.getComponents=function(e){var t=[],n=this.getRows(e);return n.forEach(function(e){t.push(e.getComponent())}),t},l.prototype.getDataCount=function(e){var t=this.getRows(e);return t.length},l.prototype._genRemoteRequest=function(){var e=this,t=this.table,n=t.options,i={};if(t.modExists("page")){if(n.ajaxSorting){var o=this.table.modules.sort.getSort();o.forEach(function(e){delete e.column}),i[this.table.modules.page.paginationDataSentNames.sorters]=o}if(n.ajaxFiltering){var r=this.table.modules.filter.getFilters(!0,!0);i[this.table.modules.page.paginationDataSentNames.filters]=r}this.table.modules.ajax.setParams(i,!0)}t.modules.ajax.sendRequest().then(function(t){e._setDataActual(t,!0)}).catch(function(e){})},l.prototype.filterRefresh=function(){var e=this.table,t=e.options,n=this.scrollLeft;t.ajaxFiltering?"remote"==t.pagination&&e.modExists("page")?(e.modules.page.reset(!0),e.modules.page.setPage(1).then(function(){}).catch(function(){})):t.ajaxProgressiveLoad?e.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData("filter"),this.scrollHorizontal(n)},l.prototype.sorterRefresh=function(e){var t=this.table,n=this.table.options,i=this.scrollLeft;n.ajaxSorting?("remote"==n.pagination||n.progressiveLoad)&&t.modExists("page")?(t.modules.page.reset(!0),t.modules.page.setPage(1).then(function(){}).catch(function(){})):n.ajaxProgressiveLoad?t.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData(e?"filter":"sort"),this.scrollHorizontal(i)},l.prototype.scrollHorizontal=function(e){this.scrollLeft=e,this.element.scrollLeft=e,this.table.options.groupBy&&this.table.modules.groupRows.scrollHeaders(e),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.scrollHorizontal(e)},l.prototype.refreshActiveData=function(e,t,n){var i,o=this,r=this.table,s=["all","filter","sort","display","freeze","group","tree","page"];if(this.redrawBlock)(!this.redrawBlockRestoreConfig||s.indexOf(e)=0))break;r=a}else if(t-s[a].getElement().offsetTop>=0)o=a;else{if(i=!0,!(n-s[a].getElement().offsetTop>=0))break;r=a}}else o=this.vDomTop,r=this.vDomBottom;return s.slice(o,r+1)},l.prototype.displayRowIterator=function(e){this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length},l.prototype.getRows=function(e){var t;switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!0);break;case"selected":t=this.table.modules.selectRow.selectedRows;break;default:t=this.rows}return t},l.prototype.reRenderInPosition=function(e){if("virtual"==this.getRenderMode())if(this.redrawBlock)e?e():this.redrawBlockRederInPosition=!0;else{for(var t=this.element.scrollTop,n=!1,i=!1,o=this.scrollLeft,r=this.getDisplayRows(),s=this.vDomTop;s<=this.vDomBottom;s++)if(r[s]){var a=t-r[s].getElement().offsetTop;if(!(!1===i||Math.abs(a)this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*m),"group"!==f.type&&(u=!1),i.vDomBottom++,l++}e?(i.vDomTopPad=t?i.vDomRowHeight*this.vDomTop+n:i.scrollTop-c,i.vDomBottomPad=i.vDomBottom==i.displayRowsCount-1?0:Math.max(i.vDomScrollHeight-i.vDomTopPad-a-c,0)):(this.vDomTopPad=0,i.vDomRowHeight=Math.floor((a+c)/l),i.vDomBottomPad=i.vDomRowHeight*(i.displayRowsCount-i.vDomBottom-1),i.vDomScrollHeight=c+a+i.vDomBottomPad-i.height),o.style.paddingTop=i.vDomTopPad+"px",o.style.paddingBottom=i.vDomBottomPad+"px",t&&(this.scrollTop=i.vDomTopPad+c+n-(this.element.scrollWidth>this.element.clientWidth?this.element.offsetHeight-this.element.clientHeight:0)),this.scrollTop=Math.min(this.scrollTop,this.element.scrollHeight-this.height),this.element.scrollWidth>this.element.offsetWidth&&t&&(this.scrollTop+=this.element.offsetHeight-this.element.clientHeight),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,r.scrollTop=this.scrollTop,o.style.minWidth=u?i.table.columnManager.getWidth()+"px":"",i.table.options.groupBy&&"fitDataFill"!=i.table.modules.layout.getMode()&&i.displayRowsCount==i.table.modules.groupRows.countGroups()&&(i.tableElement.style.minWidth=i.table.columnManager.getWidth())}else this.renderEmptyScroll();this.fixedHeight||this.adjustTableSize()},l.prototype.scrollVertical=function(e){var t=this.scrollTop-this.vDomScrollPosTop,n=this.scrollTop-this.vDomScrollPosBottom,i=2*this.vDomWindowBuffer;if(-t>i||n>i){var o=this.scrollLeft;this._virtualRenderFill(Math.floor(this.element.scrollTop/this.element.scrollHeight*this.displayRowsCount)),this.scrollHorizontal(o)}else e?(t<0&&this._addTopRow(-t),n<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(-n):this.vDomScrollPosBottom=this.scrollTop)):(t>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(t):this.vDomScrollPosTop=this.scrollTop),n>=0&&this._addBottomRow(n))},l.prototype._addTopRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.tableElement,i=this.getDisplayRows();if(this.vDomTop){var o=this.vDomTop-1,r=i[o],s=r.getHeight()||this.vDomRowHeight;e>=s&&(this.styleRow(r,o),n.insertBefore(r.getElement(),n.firstChild),r.initialized&&r.heightInitialized||(this.vDomTopNewRows.push(r),r.heightInitialized||r.clearCellHeight()),r.initialize(),this.vDomTopPad-=s,this.vDomTopPad<0&&(this.vDomTopPad=o*this.vDomRowHeight),o||(this.vDomTopPad=0),n.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=s,this.vDomTop--),e=-(this.scrollTop-this.vDomScrollPosTop),r.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*r.getHeight()),t=(i[this.vDomTop-1].getHeight()||this.vDomRowHeight)?this._addTopRow(e,t+1):this._quickNormalizeRowHeight(this.vDomTopNewRows)}},l.prototype._removeTopRow=function(e){var t=this.tableElement,n=this.getDisplayRows()[this.vDomTop],i=n.getHeight()||this.vDomRowHeight;if(e>=i){var o=n.getElement();o.parentNode.removeChild(o),this.vDomTopPad+=i,t.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?i:i+this.vDomWindowBuffer,this.vDomTop++,e=this.scrollTop-this.vDomScrollPosTop,this._removeTopRow(e)}},l.prototype._addBottomRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.tableElement,i=this.getDisplayRows();if(this.vDomBottom=s&&(this.styleRow(r,o),n.appendChild(r.getElement()),r.initialized&&r.heightInitialized||(this.vDomBottomNewRows.push(r),r.heightInitialized||r.clearCellHeight()),r.initialize(),this.vDomBottomPad-=s,(this.vDomBottomPad<0||o==this.displayRowsCount-1)&&(this.vDomBottomPad=0),n.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=s,this.vDomBottom++),e=this.scrollTop-this.vDomScrollPosBottom,r.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*r.getHeight()),t=(i[this.vDomBottom+1].getHeight()||this.vDomRowHeight)?this._addBottomRow(e,t+1):this._quickNormalizeRowHeight(this.vDomBottomNewRows)}},l.prototype._removeBottomRow=function(e){var t=this.tableElement,n=this.getDisplayRows()[this.vDomBottom],i=n.getHeight()||this.vDomRowHeight;if(e>=i){var o=n.getElement();o.parentNode&&o.parentNode.removeChild(o),this.vDomBottomPad+=i,this.vDomBottomPad<0&&(this.vDomBottomPad=0),t.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=i,this.vDomBottom--,e=-(this.scrollTop-this.vDomScrollPosBottom),this._removeBottomRow(e)}},l.prototype._quickNormalizeRowHeight=function(e){e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()}),e.length=0},l.prototype.normalizeHeight=function(){this.activeRows.forEach(function(e){e.normalizeHeight()})},l.prototype.adjustTableSize=function(){var e,t=this.element.clientHeight;if("virtual"===this.renderMode){var n=Math.floor(this.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));this.fixedHeight?(this.element.style.minHeight="calc(100% - "+n+"px)",this.element.style.height="calc(100% - "+n+"px)",this.element.style.maxHeight="calc(100% - "+n+"px)"):(this.element.style.height="",this.element.style.height=this.table.element.clientHeight-n+"px",this.element.scrollTop=this.scrollTop),this.height=this.element.clientHeight,this.vDomWindowBuffer=this.table.options.virtualDomBuffer||this.height,this.fixedHeight||t==this.element.clientHeight||(e=this.table.modExists("resizeTable"),(e&&!this.table.modules.resizeTable.autoResize||!e)&&this.redraw())}},l.prototype.reinitialize=function(){this.rows.forEach(function(e){e.reinitialize(!0)})},l.prototype.blockRedraw=function(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1},l.prototype.restoreRedraw=function(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.stage,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRederInPosition&&this.reRenderInPosition(),this.redrawBlockRederInPosition=!1},l.prototype.redraw=function(e){var t=this.scrollLeft;this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():("classic"==this.renderMode?this.table.options.groupBy?this.refreshActiveData("group",!1,!1):this._simpleRender():(this.reRenderInPosition(),this.scrollHorizontal(t)),this.displayRowsCount||this.table.options.placeholder&&this.getElement().appendChild(this.table.options.placeholder))},l.prototype.resetScroll=function(){if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))};var u=function(e){this.table=e,this.element=this.table.rowManager.tableElement,this.holderEl=this.table.rowManager.element,this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.window=200,this.initialized=!1,this.columns=[],this.compatabilityCheck()&&this.initialize()};u.prototype.compatabilityCheck=function(){var e=this.table.options,t=!1,n=!0;return"fitDataTable"==e.layout&&(console.warn("Horizontal Vitrual DOM is not compatible with fitDataTable layout mode"),n=!1),e.responsiveLayout&&(console.warn("Horizontal Vitrual DOM is not compatible with responsive columns"),n=!1),this.table.rtl&&(console.warn("Horizontal Vitrual DOM is not currently compatible with RTL text direction"),n=!1),e.columns&&(t=e.columns.find(function(e){return e.frozen}),t&&(console.warn("Horizontal Vitrual DOM is not compatible with frozen columns"),n=!1)),n||(e.virtualDomHoz=!1),n},u.prototype.initialize=function(){var e=this;this.holderEl.addEventListener("scroll",function(){var t=e.holderEl.scrollLeft;e.scrollLeft!=t&&(e.scrollLeft=t,e.scroll(t-(e.vDomScrollPosLeft+e.window)))})},u.prototype.deinitialize=function(){this.initialized=!1},u.prototype.clear=function(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0},u.prototype.dataChange=function(){var e,t,n,i=!1,o=0,r=0;if("fitData"===this.table.options.layout){if(this.table.columnManager.columnsByIndex.forEach(function(e){!e.definition.width&&e.visible&&(i=!0)}),i&&i&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.holderEl.clientWidth+this.window,this.table.options.groupBy?(e=this.table.modules.groupRows.getGroups(!1)[0],t=e.getRows(!1)[0]):t=this.table.rowManager.getDisplayRows()[0],t)){n=t.getElement(),t.generateCells(),this.element.appendChild(n);for(r=0;rthis.vDomScrollPosRight)break}for(n.parentNode.removeChild(n),this.fitDataColAvg=Math.floor(o/(r+1)),r;rn.vDomScrollPosLeft&&o.8*this.holderEl.clientWidth?this.reinitialize():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())},u.prototype.colPositionAdjust=function(e,t,n){for(var i=e;i=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=i.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.addColRight())},u.prototype.addColLeft=function(){var e=this.columns[this.leftCol-1];if(e&&e.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){var t=this.table.rowManager.getVisibleRows();t.forEach(function(t){if("group"!==t.type){var n=t.getCell(e);t.getElement().prepend(n.getElement()),n.cellRendered()}}),this.leftCol?this.vDomPadLeft-=e.getWidth():this.vDomPadLeft=0,this.element.style.paddingLeft=this.vDomPadLeft+"px",this.leftCol--,this.addColLeft()}},u.prototype.removeColRight=function(e){var t;e=this.columns[this.rightCol];e&&e.modules.vdomHoz.leftPos>this.vDomScrollPosRight&&(t=this.table.rowManager.getVisibleRows(),e.modules.vdomHoz.visible=!1,t.forEach(function(t){if("group"!==t.type){var n=t.getCell(e);t.getElement().removeChild(n.getElement())}}),this.vDomPadRight+=e.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.rightCol--,this.removeColRight())},u.prototype.removeColLeft=function(){var e,t=this.columns[this.leftCol];t&&t.modules.vdomHoz.rightPos-1}return!1},d.prototype.treeCollapse=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.collapseRow(this._row)},d.prototype.treeExpand=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.expandRow(this._row)},d.prototype.treeToggle=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.toggleRow(this._row)},d.prototype.getTreeParent=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeParent(this._row)},d.prototype.getTreeChildren=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeChildren(this._row,!0)},d.prototype.addTreeChild=function(e,t,n){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.addTreeChildRow(this._row,e,t,n)},d.prototype.reformat=function(){return this._row.reinitialize()},d.prototype.getGroup=function(){return this._row.getGroup().getComponent()},d.prototype.getTable=function(){return this._row.table},d.prototype.getNextRow=function(){var e=this._row.nextRow();return e?e.getComponent():e},d.prototype.getPrevRow=function(){var e=this._row.prevRow();return e?e.getComponent():e};var h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"row";this.table=t.table,this.parent=t,this.data={},this.type=n,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.component=null,this.created=!1,this.setData(e)};h.prototype.create=function(){this.created||(this.created=!0,this.generateElement())},h.prototype.createElement=function(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e},h.prototype.getElement=function(){return this.create(),this.element},h.prototype.detachElement=function(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},h.prototype.generateElement=function(){var e,t,n,i=this;this.createElement(),!1!==i.table.options.selectable&&i.table.modExists("selectRow")&&i.table.modules.selectRow.initializeRow(this),!1!==i.table.options.movableRows&&i.table.modExists("moveRow")&&i.table.modules.moveRow.initializeRow(this),!1!==i.table.options.dataTree&&i.table.modExists("dataTree")&&i.table.modules.dataTree.initializeRow(this),"collapse"===i.table.options.responsiveLayout&&i.table.modExists("responsiveLayout")&&i.table.modules.responsiveLayout.initializeRow(this),(i.table.options.rowContextMenu||i.table.options.rowClickMenu)&&this.table.modExists("menu")&&i.table.modules.menu.initializeRow(this),i.table.options.rowClick&&i.element.addEventListener("click",function(e){i.table.options.rowClick(e,i.getComponent())}),i.table.options.rowDblClick&&i.element.addEventListener("dblclick",function(e){i.table.options.rowDblClick(e,i.getComponent())}),i.table.options.rowContext&&i.element.addEventListener("contextmenu",function(e){i.table.options.rowContext(e,i.getComponent())}),i.table.options.rowMouseEnter&&i.element.addEventListener("mouseenter",function(e){i.table.options.rowMouseEnter(e,i.getComponent())}),i.table.options.rowMouseLeave&&i.element.addEventListener("mouseleave",function(e){i.table.options.rowMouseLeave(e,i.getComponent())}),i.table.options.rowMouseOver&&i.element.addEventListener("mouseover",function(e){i.table.options.rowMouseOver(e,i.getComponent())}),i.table.options.rowMouseOut&&i.element.addEventListener("mouseout",function(e){i.table.options.rowMouseOut(e,i.getComponent())}),i.table.options.rowMouseMove&&i.element.addEventListener("mousemove",function(e){i.table.options.rowMouseMove(e,i.getComponent())}),i.table.options.rowTap&&(n=!1,i.element.addEventListener("touchstart",function(e){n=!0},{passive:!0}),i.element.addEventListener("touchend",function(e){n&&i.table.options.rowTap(e,i.getComponent()),n=!1})),i.table.options.rowDblTap&&(e=null,i.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,i.table.options.rowDblTap(t,i.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),i.table.options.rowTapHold&&(t=null,i.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,n=!1,i.table.options.rowTapHold(e,i.getComponent())},1e3)},{passive:!0}),i.element.addEventListener("touchend",function(e){clearTimeout(t),t=null}))},h.prototype.generateCells=function(){this.cells=this.table.columnManager.generateCells(this)},h.prototype.initialize=function(e){var t=this;if(this.create(),!this.initialized||e){this.deleteCells();while(this.element.firstChild)this.element.removeChild(this.element.firstChild);this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layoutRow(this),this.generateCells(),this.table.options.virtualDomHoz&&this.table.vdomHoz.initialized?this.table.vdomHoz.initializeRow(this):this.cells.forEach(function(e){t.element.appendChild(e.getElement()),e.cellRendered()}),e&&this.normalizeHeight(),this.table.options.dataTree&&this.table.modExists("dataTree")&&this.table.modules.dataTree.layoutRow(this),"collapse"===this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout")&&this.table.modules.responsiveLayout.layoutRow(this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.table.options.resizableRows&&this.table.modExists("resizeRows")&&this.table.modules.resizeRows.initializeRow(this),this.initialized=!0}else this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitializeRow(this)},h.prototype.reinitializeHeight=function(){this.heightInitialized=!1,this.element&&null!==this.element.offsetParent&&this.normalizeHeight(!0)},h.prototype.reinitialize=function(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&null!==this.element.offsetParent&&this.initialize(!0),this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.getTreeChildren(this,!1,!0).forEach(function(e){e.reinitialize(!0)})},h.prototype.calcHeight=function(e){var t=0,n=this.table.options.resizableRows?this.element.clientHeight:0;this.cells.forEach(function(e){var n=e.getHeight();n>t&&(t=n)}),this.height=e?Math.max(t,n):this.manualHeight?this.height:Math.max(t,n),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight},h.prototype.setCellHeight=function(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0},h.prototype.clearCellHeight=function(){this.cells.forEach(function(e){e.clearHeight()})},h.prototype.normalizeHeight=function(e){e&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()},h.prototype.setHeight=function(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight)},h.prototype.getHeight=function(){return this.outerHeight},h.prototype.getWidth=function(){return this.element.offsetWidth},h.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},h.prototype.setData=function(e){this.table.modExists("mutator")&&(e=this.table.modules.mutator.transformRow(e,"data")),this.data=e,this.table.options.reactiveData&&this.table.modExists("reactiveData",!0)&&this.table.modules.reactiveData.watchRow(this)},h.prototype.updateData=function(e){var t,n=this,i=this.element&&g.prototype.helpers.elVisible(this.element),o={};return new Promise(function(r,s){for(var a in"string"===typeof e&&(e=JSON.parse(e)),n.table.options.reactiveData&&n.table.modExists("reactiveData",!0)&&n.table.modules.reactiveData.block(),n.table.modExists("mutator")?(o=Object.assign(o,n.data),o=Object.assign(o,e),t=n.table.modules.mutator.transformRow(o,"data",e)):t=e,t)n.data[a]=t[a];for(var a in n.table.options.reactiveData&&n.table.modExists("reactiveData",!0)&&n.table.modules.reactiveData.unblock(),e){var c=n.table.columnManager.getColumnsByFieldRoot(a);c.forEach(function(e){var o=n.getCell(e.getField());if(o){var r=e.getFieldValue(t);o.getValue()!=r&&(o.setValueProcessData(r),i&&o.cellRendered())}})}n.table.options.groupUpdateOnCellEdit&&n.table.options.groupBy&&n.table.modExists("groupRows")&&n.table.modules.groupRows.reassignRowToGroup(n.row),i?(n.normalizeHeight(!0),n.table.options.rowFormatter&&n.table.options.rowFormatter(n.getComponent())):(n.initialized=!1,n.height=0,n.heightStyled=""),!1!==n.table.options.dataTree&&n.table.modExists("dataTree")&&n.table.modules.dataTree.redrawNeeded(e)&&(n.table.modules.dataTree.initializeRow(n),i&&(n.table.modules.dataTree.layoutRow(n),n.table.rowManager.refreshActiveData("tree",!1,!0))),n.table.options.rowUpdated.call(n.table,n.getComponent()),n.table.options.dataChanged&&n.table.options.dataChanged.call(n.table,n.table.rowManager.getData()),r()})},h.prototype.getData=function(e){return e&&this.table.modExists("accessor")?this.table.modules.accessor.transformRow(this,e):this.data},h.prototype.getCell=function(e){var t=!1;return e=this.table.columnManager.findColumn(e),t=this.cells.find(function(t){return t.column===e}),t},h.prototype.getCellIndex=function(e){return this.cells.findIndex(function(t){return t===e})},h.prototype.findNextEditableCell=function(e){var t=!1;if(e0)for(var n=e-1;n>=0;n--){var i=this.cells[n],o=!0;if(i.column.modules.edit&&g.prototype.helpers.elVisible(i.getElement())&&("function"==typeof i.column.modules.edit.check&&(o=i.column.modules.edit.check(i.getComponent())),o)){t=i;break}}return t},h.prototype.getCells=function(){return this.cells},h.prototype.nextRow=function(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1},h.prototype.prevRow=function(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1},h.prototype.moveToRow=function(e,t){var n=this.table.rowManager.findRow(e);n?(this.table.rowManager.moveRowActual(this,n,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)},h.prototype.validate=function(){var e=[];return this.cells.forEach(function(t){t.validate()||e.push(t.getComponent())}),!e.length||e},h.prototype.delete=function(){var e=this;return new Promise(function(t,n){var i,o;e.table.options.history&&e.table.modExists("history")&&(e.table.options.groupBy&&e.table.modExists("groupRows")?(o=e.getGroup().rows,i=o.indexOf(e),i&&(i=o[i-1])):(i=e.table.rowManager.getRowIndex(e),i&&(i=e.table.rowManager.rows[i-1])),e.table.modules.history.action("rowDelete",e,{data:e.getData(),pos:!i,index:i})),e.deleteActual(),t()})},h.prototype.deleteActual=function(e){this.table.rowManager.getRowIndex(this);this.detatchModules(),this.table.options.reactiveData&&this.table.modExists("reactiveData",!0),this.modules.group&&this.modules.group.removeRow(this),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.rowDelete(this),this.table.modExists("columnCalcs")&&(this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.columnCalcs.recalcRowGroup(this):this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows))},h.prototype.detatchModules=function(){this.table.modExists("selectRow")&&this.table.modules.selectRow._deselectRow(this,!0),this.table.modExists("edit")&&this.table.modules.edit.currentCell.row===this&&this.table.modules.edit.cancelEdit(),this.table.modExists("frozenRows")&&this.table.modules.frozenRows.detachRow(this)},h.prototype.deleteCells=function(){for(var e=this.cells.length,t=0;t",footerElement:!1,index:"id",textDirection:"auto",keybindings:[],tabEndNewRow:!1,invalidOptionWarnings:!0,clipboard:!1,clipboardCopyStyled:!0,clipboardCopyConfig:!1,clipboardCopyFormatter:!1,clipboardCopyRowRange:"active",clipboardPasteParser:"table",clipboardPasteAction:"insert",clipboardCopied:function(){},clipboardPasted:function(){},clipboardPasteError:function(){},downloadDataFormatter:!1,downloadReady:function(e,t){return t},downloadComplete:!1,downloadConfig:{},downloadRowRange:"active",dataTree:!1,dataTreeFilter:!0,dataTreeSort:!0,dataTreeElementColumn:!1,dataTreeBranchElement:!0,dataTreeChildIndent:9,dataTreeChildField:"_children",dataTreeCollapseElement:!1,dataTreeExpandElement:!1,dataTreeStartExpanded:!1,dataTreeRowExpanded:function(){},dataTreeRowCollapsed:function(){},dataTreeChildColumnCalcs:!1,dataTreeSelectPropagate:!1,printAsHtml:!1,printFormatter:!1,printHeader:!1,printFooter:!1,printCopyStyle:!0,printStyled:!0,printVisibleRows:!0,printRowRange:"visible",printConfig:{},addRowPos:"bottom",selectable:"highlight",selectableRangeMode:"drag",selectableRollingSelection:!0,selectablePersistence:!0,selectableCheck:function(e,t){return!0},headerFilterLiveFilterDelay:300,headerFilterPlaceholder:!1,headerVisible:!0,history:!1,locale:!1,langs:{},virtualDom:!0,virtualDomBuffer:0,virtualDomHoz:!1,persistentLayout:!1,persistentSort:!1,persistentFilter:!1,persistenceID:"",persistenceMode:!0,persistenceReaderFunc:!1,persistenceWriterFunc:!1,persistence:!1,responsiveLayout:!1,responsiveLayoutCollapseStartOpen:!0,responsiveLayoutCollapseUseFormatters:!0,responsiveLayoutCollapseFormatter:!1,pagination:!1,paginationSize:!1,paginationInitialPage:1,paginationButtonCount:5,paginationSizeSelector:!1,paginationElement:!1,paginationDataSent:{},paginationDataReceived:{},paginationAddRow:"page",ajaxURL:!1,ajaxURLGenerator:!1,ajaxParams:{},ajaxConfig:"get",ajaxContentType:"form",ajaxRequestFunc:!1,ajaxLoader:!0,ajaxLoaderLoading:!1,ajaxLoaderError:!1,ajaxFiltering:!1,ajaxSorting:!1,ajaxProgressiveLoad:!1,ajaxProgressiveLoadDelay:0,ajaxProgressiveLoadScrollMargin:0,groupBy:!1,groupStartOpen:!0,groupValues:!1,groupUpdateOnCellEdit:!1,groupHeader:!1,groupHeaderPrint:null,groupHeaderClipboard:null,groupHeaderHtmlOutput:null,groupHeaderDownload:null,htmlOutputConfig:!1,movableColumns:!1,movableRows:!1,movableRowsConnectedTables:!1,movableRowsConnectedElements:!1,movableRowsSender:!1,movableRowsReceiver:"insert",movableRowsSendingStart:function(){},movableRowsSent:function(){},movableRowsSentFailed:function(){},movableRowsSendingStop:function(){},movableRowsReceivingStart:function(){},movableRowsReceived:function(){},movableRowsReceivedFailed:function(){},movableRowsReceivingStop:function(){},movableRowsElementDrop:function(){},scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,placeholder:!1,tableBuilding:function(){},tableBuilt:function(){},renderStarted:function(){},renderComplete:function(){},rowClick:!1,rowDblClick:!1,rowContext:!1,rowTap:!1,rowDblTap:!1,rowTapHold:!1,rowMouseEnter:!1,rowMouseLeave:!1,rowMouseOver:!1,rowMouseOut:!1,rowMouseMove:!1,rowContextMenu:!1,rowClickMenu:!1,rowAdded:function(){},rowDeleted:function(){},rowMoved:function(){},rowUpdated:function(){},rowSelectionChanged:function(){},rowSelected:function(){},rowDeselected:function(){},rowResized:function(){},cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1,cellEditing:function(){},cellEdited:function(){},cellEditCancelled:function(){},columnMoved:!1,columnResized:function(){},columnTitleChanged:function(){},columnVisibilityChanged:function(){},htmlImporting:function(){},htmlImported:function(){},dataLoading:function(){},dataLoaded:function(){},dataEdited:!1,dataChanged:!1,ajaxRequesting:function(){},ajaxResponse:!1,ajaxError:function(){},dataFiltering:!1,dataFiltered:!1,dataSorting:function(){},dataSorted:function(){},groupToggleElement:"arrow",groupClosedShowCalcs:!1,dataGrouping:function(){},dataGrouped:!1,groupVisibilityChanged:function(){},groupClick:!1,groupDblClick:!1,groupContext:!1,groupContextMenu:!1,groupClickMenu:!1,groupTap:!1,groupDblTap:!1,groupTapHold:!1,columnCalcs:!0,pageLoaded:function(){},localized:function(){},validationMode:"blocking",validationFailed:function(){},historyUndo:function(){},historyRedo:function(){},scrollHorizontal:function(){},scrollVertical:function(){}},g.prototype.initializeOptions=function(e){if(!1!==e.invalidOptionWarnings)for(var t in e)"undefined"===typeof this.defaultOptions[t]&&console.warn("Invalid table constructor option:",t);for(var t in this.defaultOptions)t in e?this.options[t]=e[t]:Array.isArray(this.defaultOptions[t])?this.options[t]=Object.assign([],this.defaultOptions[t]):"object"===r(this.defaultOptions[t])&&null!==this.defaultOptions[t]?this.options[t]=Object.assign({},this.defaultOptions[t]):this.options[t]=this.defaultOptions[t]},g.prototype.initializeElement=function(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement?(this.element=e,!0):"string"===typeof e?(this.element=document.querySelector(e),!!this.element||(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)},g.prototype.rtlCheck=function(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if("rtl"!==e.direction)break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}},g.prototype._mapDepricatedFunctionality=function(){(this.options.persistentLayout||this.options.persistentSort||this.options.persistentFilter)&&(this.options.persistence||(this.options.persistence={})),this.options.dataEdited&&(console.warn("DEPRECATION WARNING - dataEdited option has been deprecated, please use the dataChanged option instead"),this.options.dataChanged=this.options.dataEdited),this.options.downloadDataFormatter&&console.warn("DEPRECATION WARNING - downloadDataFormatter option has been deprecated"),"undefined"!==typeof this.options.clipboardCopyHeader&&(this.options.columnHeaders=this.options.clipboardCopyHeader,console.warn("DEPRECATION WARNING - clipboardCopyHeader option has been deprecated, please use the columnHeaders property on the clipboardCopyConfig option")),!0!==this.options.printVisibleRows&&(console.warn("printVisibleRows option is deprecated, you should now use the printRowRange option"),this.options.persistence.printRowRange="active"),!0!==this.options.printCopyStyle&&(console.warn("printCopyStyle option is deprecated, you should now use the printStyled option"),this.options.persistence.printStyled=this.options.printCopyStyle),this.options.persistentLayout&&(console.warn("persistentLayout option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.columns&&(this.options.persistence.columns=!0)),this.options.persistentSort&&(console.warn("persistentSort option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.sort&&(this.options.persistence.sort=!0)),this.options.persistentFilter&&(console.warn("persistentFilter option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.filter&&(this.options.persistence.filter=!0)),this.options.columnVertAlign&&(console.warn("columnVertAlign option is deprecated, you should now use the columnHeaderVertAlign option"),this.options.columnHeaderVertAlign=this.options.columnVertAlign)},g.prototype._clearSelection=function(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")},g.prototype._create=function(){this._clearObjectPointers(),this._mapDepricatedFunctionality(),this.bindModules(),this.rtlCheck(),"TABLE"===this.element.tagName&&this.modExists("htmlTableImport",!0)&&this.modules.htmlTableImport.parseTable(),this.columnManager=new s(this),this.rowManager=new l(this),this.footerManager=new m(this),this.columnManager.setRowManager(this.rowManager),this.rowManager.setColumnManager(this.columnManager),this.options.virtualDomHoz&&(this.vdomHoz=new u(this)),this._buildElement(),this._loadInitialData()},g.prototype._clearObjectPointers=function(){this.options.columns=this.options.columns.slice(0),this.options.reactiveData||(this.options.data=this.options.data.slice(0))},g.prototype._buildElement=function(){var e=this,t=this.element,n=this.modules,i=this.options;i.tableBuilding.call(this),t.classList.add("tabulator"),t.setAttribute("role","grid");while(t.firstChild)t.removeChild(t.firstChild);for(var o in i.height&&(i.height=isNaN(i.height)?i.height:i.height+"px",t.style.height=i.height),!1!==i.minHeight&&(i.minHeight=isNaN(i.minHeight)?i.minHeight:i.minHeight+"px",t.style.minHeight=i.minHeight),!1!==i.maxHeight&&(i.maxHeight=isNaN(i.maxHeight)?i.maxHeight:i.maxHeight+"px",t.style.maxHeight=i.maxHeight),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modExists("layout",!0)&&n.layout.initialize(i.layout),n.localize.initialize(),!1!==i.headerFilterPlaceholder&&n.localize.setHeaderFilterPlaceholder(i.headerFilterPlaceholder),i.langs)n.localize.installLang(o,i.langs[o]);if(n.localize.setLocale(i.locale),"string"==typeof i.placeholder){var r=document.createElement("div");r.classList.add("tabulator-placeholder");var s=document.createElement("span");s.innerHTML=i.placeholder,r.appendChild(s),i.placeholder=r}if(t.appendChild(this.columnManager.getElement()),t.appendChild(this.rowManager.getElement()),i.footerElement&&this.footerManager.activate(),i.persistence&&this.modExists("persistence",!0)&&n.persistence.initialize(),i.movableRows&&this.modExists("moveRow")&&n.moveRow.initialize(),i.autoColumns&&this.options.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modExists("columnCalcs")&&n.columnCalcs.initialize(),this.columnManager.setColumns(i.columns),i.dataTree&&this.modExists("dataTree",!0)&&n.dataTree.initialize(),this.modExists("frozenRows")&&this.modules.frozenRows.initialize(),(i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.sort||i.initialSort)&&this.modExists("sort",!0)){var a=[];i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.sort?(a=n.persistence.load("sort"),!1===a&&i.initialSort&&(a=i.initialSort)):i.initialSort&&(a=i.initialSort),n.sort.setSort(a)}if((i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.filter||i.initialFilter)&&this.modExists("filter",!0)){var c=[];i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.filter?(c=n.persistence.load("filter"),!1===c&&i.initialFilter&&(c=i.initialFilter)):i.initialFilter&&(c=i.initialFilter),n.filter.setFilter(c)}i.initialHeaderFilter&&this.modExists("filter",!0)&&i.initialHeaderFilter.forEach(function(t){var i=e.columnManager.findColumn(t.field);if(!i)return console.warn("Column Filter Error - No matching column found:",t.field),!1;n.filter.setHeaderFilterValue(i,t.value)}),this.modExists("ajax")&&n.ajax.initialize(),i.pagination&&this.modExists("page",!0)&&n.page.initialize(),i.groupBy&&this.modExists("groupRows",!0)&&n.groupRows.initialize(),this.modExists("keybindings")&&n.keybindings.initialize(),this.modExists("selectRow")&&n.selectRow.clearSelectionData(!0),i.autoResize&&this.modExists("resizeTable")&&n.resizeTable.initialize(),this.modExists("clipboard")&&n.clipboard.initialize(),i.printAsHtml&&this.modExists("print")&&n.print.initialize(),i.tableBuilt.call(this)},g.prototype._loadInitialData=function(){var e=this;if(e.options.pagination&&e.modExists("page"))if(e.modules.page.reset(!0,!0),"local"==e.options.pagination){if(e.options.data.length)e.rowManager.setData(e.options.data,!1,!0);else{if((e.options.ajaxURL||e.options.ajaxURLGenerator)&&e.modExists("ajax"))return void e.modules.ajax.loadData(!1,!0).then(function(){}).catch(function(){e.options.paginationInitialPage&&e.modules.page.setPage(e.options.paginationInitialPage)});e.rowManager.setData(e.options.data,!1,!0)}e.options.paginationInitialPage&&e.modules.page.setPage(e.options.paginationInitialPage)}else e.options.ajaxURL?e.modules.page.setPage(e.options.paginationInitialPage).then(function(){}).catch(function(){}):e.rowManager.setData([],!1,!0);else e.options.data.length?e.rowManager.setData(e.options.data):(e.options.ajaxURL||e.options.ajaxURLGenerator)&&e.modExists("ajax")?e.modules.ajax.loadData(!1,!0).then(function(){}).catch(function(){}):e.rowManager.setData(e.options.data,!1,!0)},g.prototype.destroy=function(){var e=this.element;g.prototype.comms.deregister(this),this.options.reactiveData&&this.modExists("reactiveData",!0)&&this.modules.reactiveData.unwatchData(),this.rowManager.rows.forEach(function(e){e.wipe()}),this.rowManager.rows=[],this.rowManager.activeRows=[],this.rowManager.displayRows=[],this.options.autoResize&&this.modExists("resizeTable")&&this.modules.resizeTable.clearBindings(),this.modExists("keybindings")&&this.modules.keybindings.clearBindings();while(e.firstChild)e.removeChild(e.firstChild);e.classList.remove("tabulator")},g.prototype._detectBrowser=function(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))},g.prototype.blockRedraw=function(){return this.rowManager.blockRedraw()},g.prototype.restoreRedraw=function(){return this.rowManager.restoreRedraw()},g.prototype.setDataFromLocalFile=function(e){var t=this;return new Promise(function(n,i){var o=document.createElement("input");o.type="file",o.accept=e||".json,application/json",o.addEventListener("change",function(e){var r,s=o.files[0],a=new FileReader;a.readAsText(s),a.onload=function(e){try{r=JSON.parse(a.result)}catch(e){return console.warn("File Load Error - File contents is invalid JSON",e),void i(e)}t.setData(r).then(function(e){n(e)}).catch(function(e){n(e)})},a.onerror=function(e){console.warn("File Load Error - Unable to read file"),i()}}),o.click()})},g.prototype.setData=function(e,t,n){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,n,!1,!0)},g.prototype._setData=function(e,t,n,i,o){var r=this;return"string"!==typeof e?e?r.rowManager.setData(e,i,o):r.modExists("ajax")&&(r.modules.ajax.getUrl||r.options.ajaxURLGenerator)?"remote"==r.options.pagination&&r.modExists("page",!0)?(r.modules.page.reset(!0,!0),r.modules.page.setPage(1)):r.modules.ajax.loadData(i,o):r.rowManager.setData([],i,o):0==e.indexOf("{")||0==e.indexOf("[")?r.rowManager.setData(JSON.parse(e),i,o):r.modExists("ajax",!0)?(t&&r.modules.ajax.setParams(t),n&&r.modules.ajax.setConfig(n),r.modules.ajax.setUrl(e),"remote"==r.options.pagination&&r.modExists("page",!0)?(r.modules.page.reset(!0,!0),r.modules.page.setPage(1)):r.modules.ajax.loadData(i,o)):void 0},g.prototype.clearData=function(){this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this.rowManager.clearData()},g.prototype.getData=function(e){return!0===e&&(console.warn("passing a boolean to the getData function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getData(e)},g.prototype.getDataCount=function(e){return!0===e&&(console.warn("passing a boolean to the getDataCount function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getDataCount(e)},g.prototype.searchRows=function(e,t,n){if(this.modExists("filter",!0))return this.modules.filter.search("rows",e,t,n)},g.prototype.searchData=function(e,t,n){if(this.modExists("filter",!0))return this.modules.filter.search("data",e,t,n)},g.prototype.getHtml=function(e,t,n){if(this.modExists("export",!0))return this.modules.export.getHtml(e,t,n)},g.prototype.print=function(e,t,n){if(this.modExists("print",!0))return this.modules.print.printFullscreen(e,t,n)},g.prototype.getAjaxUrl=function(){if(this.modExists("ajax",!0))return this.modules.ajax.getUrl()},g.prototype.replaceData=function(e,t,n){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,n,!0)},g.prototype.updateData=function(e){var t=this,n=this,i=0;return new Promise(function(o,r){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=n.rowManager.findRow(e[n.options.index]);t&&(i++,t.updateData(e).then(function(){i--,i||o()}))}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})},g.prototype.addData=function(e,t,n){var i=this;return new Promise(function(o,r){i.modExists("ajax")&&i.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?i.rowManager.addRows(e,t,n).then(function(e){var t=[];e.forEach(function(e){t.push(e.getComponent())}),o(t)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})},g.prototype.updateOrAddData=function(e){var t=this,n=this,i=[],o=0;return new Promise(function(r,s){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=n.rowManager.findRow(e[n.options.index]);o++,t?t.updateData(e).then(function(){o--,i.push(t.getComponent()),o||r(i)}):n.rowManager.addRows(e).then(function(e){o--,i.push(e[0].getComponent()),o||r(i)})}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})},g.prototype.getRow=function(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},g.prototype.getRowFromPosition=function(e,t){var n=this.rowManager.getRowFromPosition(e,t);return n?n.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},g.prototype.deleteRow=function(e){var t=this;return new Promise(function(n,i){var o=t,r=0,s=0,a=[];function c(){r++,r==e.length&&s&&(o.rowManager.reRenderInPosition(),n())}Array.isArray(e)||(e=[e]),e.forEach(function(e){var n=t.rowManager.findRow(e,!0);n?a.push(n):(console.warn("Delete Error - No matching row found:",e),i("Delete Error - No matching row found"),c())}),a.sort(function(e,n){return t.rowManager.rows.indexOf(e)>t.rowManager.rows.indexOf(n)?1:-1}),a.forEach(function(e){e.delete().then(function(){s++,c()}).catch(function(e){c(),i(e)})})})},g.prototype.addRow=function(e,t,n){var i=this;return new Promise(function(o,r){"string"===typeof e&&(e=JSON.parse(e)),i.rowManager.addRows(e,t,n).then(function(e){i.modExists("columnCalcs")&&i.modules.columnCalcs.recalc(i.rowManager.activeRows),o(e[0].getComponent())})})},g.prototype.updateOrAddRow=function(e,t){var n=this;return new Promise(function(i,o){var r=n.rowManager.findRow(e);"string"===typeof t&&(t=JSON.parse(t)),r?r.updateData(t).then(function(){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),i(r.getComponent())}).catch(function(e){o(e)}):r=n.rowManager.addRows(t).then(function(e){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),i(e[0].getComponent())}).catch(function(e){o(e)})})},g.prototype.updateRow=function(e,t){var n=this;return new Promise(function(i,o){var r=n.rowManager.findRow(e);"string"===typeof t&&(t=JSON.parse(t)),r?r.updateData(t).then(function(){i(r.getComponent())}).catch(function(e){o(e)}):(console.warn("Update Error - No matching row found:",e),o("Update Error - No matching row found"))})},g.prototype.scrollToRow=function(e,t,n){var i=this;return new Promise(function(o,r){var s=i.rowManager.findRow(e);s?i.rowManager.scrollToRow(s,t,n).then(function(){o()}).catch(function(e){r(e)}):(console.warn("Scroll Error - No matching row found:",e),r("Scroll Error - No matching row found"))})},g.prototype.moveRow=function(e,t,n){var i=this.rowManager.findRow(e);i?i.moveToRow(t,n):console.warn("Move Error - No matching row found:",e)},g.prototype.getRows=function(e){return!0===e&&(console.warn("passing a boolean to the getRows function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getComponents(e)},g.prototype.getRowPosition=function(e,t){var n=this.rowManager.findRow(e);return n?this.rowManager.getRowPosition(n,t):(console.warn("Position Error - No matching row found:",e),!1)},g.prototype.copyToClipboard=function(e){this.modExists("clipboard",!0)&&this.modules.clipboard.copy(e)},g.prototype.setColumns=function(e){this.columnManager.setColumns(e)},g.prototype.getColumns=function(e){return this.columnManager.getComponents(e)},g.prototype.getColumn=function(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)},g.prototype.getColumnDefinitions=function(){return this.columnManager.getDefinitionTree()},g.prototype.getColumnLayout=function(){if(this.modExists("persistence",!0))return this.modules.persistence.parseColumns(this.columnManager.getColumns())},g.prototype.setColumnLayout=function(e){return!!this.modExists("persistence",!0)&&(this.columnManager.setColumns(this.modules.persistence.mergeDefinition(this.options.columns,e)),!0)},g.prototype.showColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Show Error - No matching column found:",e),!1;t.show(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},g.prototype.hideColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Hide Error - No matching column found:",e),!1;t.hide(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},g.prototype.toggleColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1;t.visible?t.hide():t.show()},g.prototype.addColumn=function(e,t,n){var i=this;return new Promise(function(o,r){var s=i.columnManager.findColumn(n);i.columnManager.addColumn(e,t,s).then(function(e){o(e.getComponent())}).catch(function(e){r(e)})})},g.prototype.deleteColumn=function(e){var t=this;return new Promise(function(n,i){var o=t.columnManager.findColumn(e);o?o.delete().then(function(){n()}).catch(function(e){i(e)}):(console.warn("Column Delete Error - No matching column found:",e),i())})},g.prototype.updateColumnDefinition=function(e,t){var n=this;return new Promise(function(i,o){var r=n.columnManager.findColumn(e);r?r.updateDefinition(t).then(function(e){i(e)}).catch(function(e){o(e)}):(console.warn("Column Update Error - No matching column found:",e),o())})},g.prototype.moveColumn=function(e,t,n){var i=this.columnManager.findColumn(e),o=this.columnManager.findColumn(t);i?o?this.columnManager.moveColumn(i,o,n):console.warn("Move Error - No matching column found:",o):console.warn("Move Error - No matching column found:",e)},g.prototype.scrollToColumn=function(e,t,n){var i=this;return new Promise(function(o,r){var s=i.columnManager.findColumn(e);s?i.columnManager.scrollToColumn(s,t,n).then(function(){o()}).catch(function(e){r(e)}):(console.warn("Scroll Error - No matching column found:",e),r("Scroll Error - No matching column found"))})},g.prototype.setLocale=function(e){this.modules.localize.setLocale(e)},g.prototype.getLocale=function(){return this.modules.localize.getLocale()},g.prototype.getLang=function(e){return this.modules.localize.getLang(e)},g.prototype.redraw=function(e){this.columnManager.redraw(e),this.rowManager.redraw(e)},g.prototype.setHeight=function(e){"classic"!==this.rowManager.renderMode?(this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.setRenderMode(),this.rowManager.redraw()):console.warn("setHeight function is not available in classic render mode")},g.prototype.setSort=function(e,t){this.modExists("sort",!0)&&(this.modules.sort.setSort(e,t),this.rowManager.sorterRefresh())},g.prototype.getSorters=function(){if(this.modExists("sort",!0))return this.modules.sort.getSort()},g.prototype.clearSort=function(){this.modExists("sort",!0)&&(this.modules.sort.clear(),this.rowManager.sorterRefresh())},g.prototype.setFilter=function(e,t,n,i){this.modExists("filter",!0)&&(this.modules.filter.setFilter(e,t,n,i),this.rowManager.filterRefresh())},g.prototype.refreshFilter=function(){this.modExists("filter",!0)&&this.rowManager.filterRefresh()},g.prototype.addFilter=function(e,t,n,i){this.modExists("filter",!0)&&(this.modules.filter.addFilter(e,t,n,i),this.rowManager.filterRefresh())},g.prototype.getFilters=function(e){if(this.modExists("filter",!0))return this.modules.filter.getFilters(e)},g.prototype.setHeaderFilterFocus=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Filter Focus Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterFocus(t)}},g.prototype.getHeaderFilterValue=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(t)return this.modules.filter.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}},g.prototype.setHeaderFilterValue=function(e,t){if(this.modExists("filter",!0)){var n=this.columnManager.findColumn(e);if(!n)return console.warn("Column Filter Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterValue(n,t)}},g.prototype.getHeaderFilters=function(){if(this.modExists("filter",!0))return this.modules.filter.getHeaderFilters()},g.prototype.removeFilter=function(e,t,n){this.modExists("filter",!0)&&(this.modules.filter.removeFilter(e,t,n),this.rowManager.filterRefresh())},g.prototype.clearFilter=function(e){this.modExists("filter",!0)&&(this.modules.filter.clearFilter(e),this.rowManager.filterRefresh())},g.prototype.clearHeaderFilter=function(){this.modExists("filter",!0)&&(this.modules.filter.clearHeaderFilter(),this.rowManager.filterRefresh())},g.prototype.selectRow=function(e){this.modExists("selectRow",!0)&&(!0===e&&(console.warn("passing a boolean to the selectRowselectRow function is deprecated, you should now pass the string 'active'"),e="active"),this.modules.selectRow.selectRows(e))},g.prototype.deselectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.deselectRows(e)},g.prototype.toggleSelectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.toggleRow(e)},g.prototype.getSelectedRows=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedRows()},g.prototype.getSelectedData=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedData()},g.prototype.getInvalidCells=function(){if(this.modExists("validate",!0))return this.modules.validate.getInvalidCells()},g.prototype.clearCellValidation=function(e){var t=this;this.modExists("validate",!0)&&(e||(e=this.modules.validate.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach(function(e){t.modules.validate.clearValidation(e._getSelf())}))},g.prototype.validate=function(e){var t=[];return this.rowManager.rows.forEach(function(e){var n=e.validate();!0!==n&&(t=t.concat(n))}),!t.length||t},g.prototype.setMaxPage=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setMaxPage(e)},g.prototype.setPage=function(e){return this.options.pagination&&this.modExists("page")?this.modules.page.setPage(e):new Promise(function(e,t){t()})},g.prototype.setPageToRow=function(e){var t=this;return new Promise(function(n,i){t.options.pagination&&t.modExists("page")?(e=t.rowManager.findRow(e),e?t.modules.page.setPageToRow(e).then(function(){n()}).catch(function(){i()}):i()):i()})},g.prototype.setPageSize=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setPageSize(e),this.modules.page.setPage(1).then(function(){}).catch(function(){})},g.prototype.getPageSize=function(){if(this.options.pagination&&this.modExists("page",!0))return this.modules.page.getPageSize()},g.prototype.previousPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.previousPage()},g.prototype.nextPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.nextPage()},g.prototype.getPage=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPage()},g.prototype.getPageMax=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPageMax()},g.prototype.setGroupBy=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupBy=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},g.prototype.setGroupValues=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupValues=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},g.prototype.setGroupStartOpen=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupStartOpen=e,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},g.prototype.setGroupHeader=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupHeader=e,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},g.prototype.getGroups=function(e){return!!this.modExists("groupRows",!0)&&this.modules.groupRows.getGroups(!0)},g.prototype.getGroupedData=function(){if(this.modExists("groupRows",!0))return this.options.groupBy?this.modules.groupRows.getGroupedData():this.getData()},g.prototype.getEditedCells=function(){if(this.modExists("edit",!0))return this.modules.edit.getEditedCells()},g.prototype.clearCellEdited=function(e){var t=this;this.modExists("edit",!0)&&(e||(e=this.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach(function(e){t.modules.edit.clearEdited(e._getSelf())}))},g.prototype.getCalcResults=function(){return!!this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.getResults()},g.prototype.recalc=function(){this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.recalcAll(this.rowManager.activeRows)},g.prototype.navigatePrev=function(){var e=!1;return!(!this.modExists("edit",!0)||(e=this.modules.edit.currentCell,!e))&&e.nav().prev()},g.prototype.navigateNext=function(){var e=!1;return!(!this.modExists("edit",!0)||(e=this.modules.edit.currentCell,!e))&&e.nav().next()},g.prototype.navigateLeft=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().left())},g.prototype.navigateRight=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().right())},g.prototype.navigateUp=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().up())},g.prototype.navigateDown=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().down())},g.prototype.undo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.undo()},g.prototype.redo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.redo()},g.prototype.getHistoryUndoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryUndoSize()},g.prototype.getHistoryRedoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryRedoSize()},g.prototype.clearHistory=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.clear()},g.prototype.download=function(e,t,n,i){this.modExists("download",!0)&&this.modules.download.download(e,t,n,i)},g.prototype.downloadToTab=function(e,t,n,i){this.modExists("download",!0)&&this.modules.download.download(e,t,n,i,!0)},g.prototype.tableComms=function(e,t,n,i){this.modules.comms.receive(e,t,n,i)},g.prototype.moduleBindings={},g.prototype.extendModule=function(e,t,n){if(g.prototype.moduleBindings[e]){var i=g.prototype.moduleBindings[e].prototype[t];if(i)if("object"==("undefined"===typeof n?"undefined":r(n)))for(var o in n)i[o]=n[o];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)},g.prototype.registerModule=function(e,t){g.prototype.moduleBindings[e]=t},g.prototype.bindModules=function(){for(var e in this.modules={},g.prototype.moduleBindings)this.modules[e]=new g.prototype.moduleBindings[e](this)},g.prototype.modExists=function(e,t){return!!this.modules[e]||(t&&console.error("Tabulator Module Not Installed: "+e),!1)},g.prototype.helpers={elVisible:function(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)},elOffset:function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}},deepClone:function(e){var t=Object.assign(Array.isArray(e)?[]:{},e);for(var n in e)null!=e[n]&&"object"===r(e[n])&&(e[n]instanceof Date?t[n]=new Date(e[n]):t[n]=this.deepClone(e[n]));return t}},g.prototype.comms={tables:[],register:function(e){g.prototype.comms.tables.push(e)},deregister:function(e){var t=g.prototype.comms.tables.indexOf(e);t>-1&&g.prototype.comms.tables.splice(t,1)},lookupTable:function(e,t){var n,i,o=[];if("string"===typeof e){if(n=document.querySelectorAll(e),n.length)for(var r=0;r0?r.setWidth(o):r.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(e){var t=this,n=t.table.element.clientWidth,i=0,o=0,r=0,s=0,a=[],c=[],l=0,u=0,d=0;function h(e){var t;return t="string"==typeof e?e.indexOf("%")>-1?n/100*parseInt(e):parseInt(e):e,t}function p(e,t,n,i){var o=[],s=0,a=0,c=0,l=r,u=0,d=0,f=[];function m(e){return n*(e.column.definition.widthGrow||1)}function g(e){return h(e.width)-n*(e.column.definition.widthShrink||0)}return e.forEach(function(e,r){var s=i?g(e):m(e);e.column.minWidth>=s?o.push(e):e.column.maxWidth&&e.column.maxWidththis.table.rowManager.element.clientHeight&&(n-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),e.forEach(function(e){var t,n,o;e.visible&&(t=e.definition.width,n=parseInt(e.minWidth),t?(o=h(t),i+=o>n?o:n,e.definition.widthShrink&&(c.push({column:e,width:o>n?o:n}),l+=e.definition.widthShrink)):(a.push({column:e,width:0}),r+=e.definition.widthGrow||1))}),o=n-i,s=Math.floor(o/r);d=p(a,o,s,!1);a.length&&d>0&&(a[a.length-1].width+=+d),a.forEach(function(e){o-=e.width}),u=Math.abs(d)+o,u>0&&l&&(d=p(c,u,Math.floor(u/l),!0)),c.length&&(c[c.length-1].width-=d),a.forEach(function(e){e.column.setWidth(e.width)}),c.forEach(function(e){e.column.setWidth(e.width)})}},g.prototype.registerModule("layout",v);var b=function(e){this.table=e,this.locale="default",this.lang=!1,this.bindings={},this.langList={}};b.prototype.initialize=function(){this.langList=g.prototype.helpers.deepClone(this.langs)},b.prototype.setHeaderFilterPlaceholder=function(e){this.langList.default.headerFilters.default=e},b.prototype.setHeaderFilterColumnPlaceholder=function(e,t){this.langList.default.headerFilters.columns[e]=t,this.lang&&!this.lang.headerFilters.columns[e]&&(this.lang.headerFilters.columns[e]=t)},b.prototype.installLang=function(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t},b.prototype._setLangProp=function(e,t){for(var n in t)e[n]&&"object"==r(e[n])?this._setLangProp(e[n],t[n]):e[n]=t[n]},b.prototype.setLocale=function(e){var t=this;function n(e,t){for(var i in e)"object"==r(e[i])?(t[i]||(t[i]={}),n(e[i],t[i])):t[i]=e[i]}if(e=e||"default",!0===e&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!t.langList[e]){var i=e.split("-")[0];t.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}t.locale=e,t.lang=g.prototype.helpers.deepClone(t.langList.default||{}),"default"!=e&&n(t.langList[e],t.lang),t.table.options.localized.call(t.table,t.locale,t.lang),t._executeBindings()},b.prototype.getLocale=function(e){return self.locale},b.prototype.getLang=function(e){return e?this.langList[e]:this.lang},b.prototype.getText=function(e,t){e=t?e+"|"+t:e;var n=e.split("|"),i=this._getLangElement(n,this.locale);return i||""},b.prototype._getLangElement=function(e,t){var n=this,i=n.lang;return e.forEach(function(e){var t;i&&(t=i[e],i="undefined"!=typeof t&&t)}),i},b.prototype.bind=function(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)},b.prototype._executeBindings=function(){var e=this,t=function(t){e.bindings[t].forEach(function(n){n(e.getText(t),e.lang)})};for(var n in e.bindings)t(n)},b.prototype.langs={default:{groups:{item:"item",items:"items"},columns:{},ajax:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All"},headerFilters:{default:"filter column...",columns:{}}}},g.prototype.registerModule("localize",b);var y=function(e){this.table=e};y.prototype.getConnections=function(e){var t,n=this,i=[];return t=g.prototype.comms.lookupTable(e),t.forEach(function(e){n.table!==e&&i.push(e)}),i},y.prototype.send=function(e,t,n,i){var o=this,r=this.getConnections(e);r.forEach(function(e){e.tableComms(o.table.element,t,n,i)}),!r.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)},y.prototype.receive=function(e,t,n,i){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,n,i);console.warn("Inter-table Comms Error - no such module:",t)},g.prototype.registerModule("comms",y);var _=function(e){this.table=e,this.allowedTypes=["","data","download","clipboard","print","htmlOutput"]};_.prototype.initializeColumn=function(e){var t=this,n=!1,i={};this.allowedTypes.forEach(function(o){var r,s="accessor"+(o.charAt(0).toUpperCase()+o.slice(1));e.definition[s]&&(r=t.lookupAccessor(e.definition[s]),r&&(n=!0,i[s]={accessor:r,params:e.definition[s+"Params"]||{}}))}),n&&(e.modules.accessor=i)},_.prototype.lookupAccessor=function(e){var t=!1;switch("undefined"===typeof e?"undefined":r(e)){case"string":this.accessors[e]?t=this.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t},_.prototype.transformRow=function(e,t){var n="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),i=e.getComponent(),o=g.prototype.helpers.deepClone(e.data||{});return this.table.columnManager.traverse(function(e){var r,s,a,c;e.modules.accessor&&(s=e.modules.accessor[n]||e.modules.accessor.accessor||!1,s&&(r=e.getFieldValue(o),"undefined"!=r&&(c=e.getComponent(),a="function"===typeof s.params?s.params(r,o,t,c,i):s.params,e.setFieldValue(o,s.accessor(r,o,t,a,c,i)))))}),o},_.prototype.accessors={},g.prototype.registerModule("accessor",_);var M=function(e){this.table=e,this.config=!1,this.url="",this.urlGenerator=!1,this.params=!1,this.loaderElement=this.createLoaderElement(),this.msgElement=this.createMsgElement(),this.loadingElement=!1,this.errorElement=!1,this.loaderPromise=!1,this.progressiveLoad=!1,this.loading=!1,this.requestOrder=0};M.prototype.initialize=function(){var e;this.loaderElement.appendChild(this.msgElement),this.table.options.ajaxLoaderLoading&&("string"==typeof this.table.options.ajaxLoaderLoading?(e=document.createElement("template"),e.innerHTML=this.table.options.ajaxLoaderLoading.trim(),this.loadingElement=e.content.firstChild):this.loadingElement=this.table.options.ajaxLoaderLoading),this.loaderPromise=this.table.options.ajaxRequestFunc||this.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||this.defaultURLGenerator,this.table.options.ajaxLoaderError&&("string"==typeof this.table.options.ajaxLoaderError?(e=document.createElement("template"),e.innerHTML=this.table.options.ajaxLoaderError.trim(),this.errorElement=e.content.firstChild):this.errorElement=this.table.options.ajaxLoaderError),this.table.options.ajaxParams&&this.setParams(this.table.options.ajaxParams),this.table.options.ajaxConfig&&this.setConfig(this.table.options.ajaxConfig),this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.table.options.ajaxProgressiveLoad&&(this.table.options.pagination?(this.progressiveLoad=!1,console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time")):this.table.modExists("page")?(this.progressiveLoad=this.table.options.ajaxProgressiveLoad,this.table.modules.page.initializeProgressive(this.progressiveLoad)):console.error("Pagination plugin is required for progressive ajax loading"))},M.prototype.createLoaderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader"),e},M.prototype.createMsgElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader-msg"),e.setAttribute("role","alert"),e},M.prototype.setParams=function(e,t){if(t)for(var n in this.params=this.params||{},e)this.params[n]=e[n];else this.params=e},M.prototype.getParams=function(){return this.params||{}},M.prototype.setConfig=function(e){if(this._loadDefaultConfig(),"string"==typeof e)this.config.method=e;else for(var t in e)this.config[t]=e[t]},M.prototype._loadDefaultConfig=function(e){var t=this;if(!t.config||e)for(var n in t.config={},t.defaultConfig)t.config[n]=t.defaultConfig[n]},M.prototype.setUrl=function(e){this.url=e},M.prototype.getUrl=function(){return this.url},M.prototype.loadData=function(e,t){return this.progressiveLoad?this._loadDataProgressive():this._loadDataStandard(e,t)},M.prototype.nextPage=function(e){var t;this.loading||(t=this.table.options.ajaxProgressiveLoadScrollMargin||2*this.table.rowManager.getElement().clientHeight,ei||null===i)&&(i=e)}),null!==i?!1!==o?i.toFixed(o):i:""},min:function(e,t,n){var i=null,o="undefined"!==typeof n.precision&&n.precision;return e.forEach(function(e){e=Number(e),(e"),n.dataTreeExpandElement?"string"===typeof n.dataTreeExpandElement?(e=document.createElement("div"),e.innerHTML=n.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=n.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="
"),r(n.dataTreeStartExpanded)){case"boolean":this.startOpen=function(e,t){return n.dataTreeStartExpanded};break;case"function":this.startOpen=n.dataTreeStartExpanded;break;default:this.startOpen=function(e,t){return n.dataTreeStartExpanded[t]};break}},A.prototype.initializeRow=function(e){var t=e.getData()[this.field],n=Array.isArray(t),i=n||!n&&"object"===("undefined"===typeof t?"undefined":r(t))&&null!==t;!i&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!i&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:!!i&&(e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0)),controlEl:!(!e.modules.dataTree||!i)&&e.modules.dataTree.controlEl,branchEl:!(!e.modules.dataTree||!i)&&e.modules.dataTree.branchEl,parent:!!e.modules.dataTree&&e.modules.dataTree.parent,children:i}},A.prototype.layoutRow=function(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],n=t.getElement(),i=e.modules.dataTree;i.branchEl&&(i.branchEl.parentNode&&i.branchEl.parentNode.removeChild(i.branchEl),i.branchEl=!1),i.controlEl&&(i.controlEl.parentNode&&i.controlEl.parentNode.removeChild(i.controlEl),i.controlEl=!1),this.generateControlElement(e,n),e.getElement().classList.add("tabulator-tree-level-"+i.index),i.index&&(this.branchEl?(i.branchEl=this.branchEl.cloneNode(!0),n.insertBefore(i.branchEl,n.firstChild),this.table.rtl?i.branchEl.style.marginRight=(i.branchEl.offsetWidth+i.branchEl.style.marginLeft)*(i.index-1)+i.index*this.indent+"px":i.branchEl.style.marginLeft=(i.branchEl.offsetWidth+i.branchEl.style.marginRight)*(i.index-1)+i.index*this.indent+"px"):this.table.rtl?n.style.paddingRight=parseInt(window.getComputedStyle(n,null).getPropertyValue("padding-right"))+i.index*this.indent+"px":n.style.paddingLeft=parseInt(window.getComputedStyle(n,null).getPropertyValue("padding-left"))+i.index*this.indent+"px")},A.prototype.generateControlElement=function(e,t){var n=this,i=e.modules.dataTree,o=(t=t||e.getCells()[0].getElement(),i.controlEl);!1!==i.children&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",function(t){t.stopPropagation(),n.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",function(t){t.stopPropagation(),n.expandRow(e)})),i.controlEl.addEventListener("mousedown",function(e){e.stopPropagation()}),o&&o.parentNode===t?o.parentNode.replaceChild(i.controlEl,o):t.insertBefore(i.controlEl,t.firstChild))},A.prototype.setDisplayIndex=function(e){this.displayIndex=e},A.prototype.getDisplayIndex=function(){return this.displayIndex},A.prototype.getRows=function(e){var t=this,n=[];return e.forEach(function(e,i){var o,r;n.push(e),e instanceof h&&(e.create(),o=e.modules.dataTree.children,o.index||!1===o.children||(r=t.getChildren(e),r.forEach(function(e){e.create(),n.push(e)})))}),n},A.prototype.getChildren=function(e,t){var n=this,i=e.modules.dataTree,o=[],r=[];return!1!==i.children&&(i.open||t)&&(Array.isArray(i.children)||(i.children=this.generateChildren(e)),o=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(i.children):i.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(o),o.forEach(function(e){r.push(e);var t=n.getChildren(e);t.forEach(function(e){r.push(e)})})),r},A.prototype.generateChildren=function(e){var t=this,n=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(function(i){var o=new h(i||{},t.table.rowManager);o.create(),o.modules.dataTree.index=e.modules.dataTree.index+1,o.modules.dataTree.parent=e,o.modules.dataTree.children&&(o.modules.dataTree.open=t.startOpen(o.getComponent(),o.modules.dataTree.index)),n.push(o)}),n},A.prototype.expandRow=function(e,t){var n=e.modules.dataTree;!1!==n.children&&(n.open=!0,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowExpanded(e.getComponent(),e.modules.dataTree.index))},A.prototype.collapseRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open=!1,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowCollapsed(e.getComponent(),e.modules.dataTree.index))},A.prototype.toggleRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open?this.collapseRow(e):this.expandRow(e))},A.prototype.getTreeParent=function(e){return!!e.modules.dataTree.parent&&e.modules.dataTree.parent.getComponent()},A.prototype.getFilteredTreeChildren=function(e){var t,n=e.modules.dataTree,i=[];return n.children&&(Array.isArray(n.children)||(n.children=this.generateChildren(e)),t=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(n.children):n.children,t.forEach(function(e){e instanceof h&&i.push(e)})),i},A.prototype.rowDelete=function(e){var t,n=e.modules.dataTree.parent;n&&(t=this.findChildIndex(e,n),!1!==t&&n.data[this.field].splice(t,1),n.data[this.field].length||delete n.data[this.field],this.initializeRow(n),this.layoutRow(n)),this.table.rowManager.refreshActiveData("tree",!1,!0)},A.prototype.addTreeChildRow=function(e,t,n,i){var o=!1;"string"===typeof t&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),"undefined"!==typeof i&&(o=this.findChildIndex(i,e),!1!==o&&e.data[this.field].splice(n?o:o+1,0,t)),!1===o&&(n?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)},A.prototype.findChildIndex=function(e,t){var n=this,i=!1;return"object"==("undefined"===typeof e?"undefined":r(e))?e instanceof h?i=e.data:e instanceof d?i=e._getSelf().data:"undefined"!==typeof HTMLElement&&e instanceof HTMLElement&&t.modules.dataTree&&(i=t.modules.dataTree.children.find(function(t){return t instanceof h&&t.element===e}),i&&(i=i.data)):i="undefined"!=typeof e&&null!==e&&t.data[this.field].find(function(t){return t.data[n.table.options.index]==e}),i&&(Array.isArray(t.data[this.field])&&(i=t.data[this.field].indexOf(i)),-1==i&&(i=!1)),i},A.prototype.getTreeChildren=function(e,t,n){var i=this,o=e.modules.dataTree,r=[];return o.children&&(Array.isArray(o.children)||(o.children=this.generateChildren(e)),o.children.forEach(function(e){e instanceof h&&(r.push(t?e.getComponent():e),n&&(r=r.concat(i.getTreeChildren(e,t,n))))})),r},A.prototype.checkForRestyle=function(e){e.row.cells.indexOf(e)||e.row.reinitialize()},A.prototype.getChildField=function(){return this.field},A.prototype.redrawNeeded=function(e){return!!this.field&&"undefined"!==typeof e[this.field]||!!this.elementField&&"undefined"!==typeof e[this.elementField]},g.prototype.registerModule("dataTree",A);var E=function(e){this.table=e};E.prototype.download=function(e,t,n,i,o){var r=this,s=!1;function a(n,i){o?!0===o?r.triggerDownload(n,i,e,t,!0):o(n):r.triggerDownload(n,i,e,t)}if("function"==typeof e?s=e:r.downloaders[e]?s=r.downloaders[e]:console.warn("Download Error - No such download type found: ",e),s){var c=this.generateExportList(i);s.call(this.table,c,n||{},a)}},E.prototype.generateExportList=function(e){var t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,e||this.table.options.downloadRowRange,"download"),n=this.table.options.groupHeaderDownload;return n&&!Array.isArray(n)&&(n=[n]),t.forEach(function(e){var t;"group"===e.type&&(t=e.columns[0],n&&n[e.indent]&&(t.value=n[e.indent](t.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)))}),t},E.prototype.triggerDownload=function(e,t,n,i,o){var r=document.createElement("a"),s=new Blob([e],{type:t});i=i||"Tabulator."+("function"===typeof n?"txt":n);s=this.table.options.downloadReady.call(this.table,e,s),s&&(o?window.open(window.URL.createObjectURL(s)):navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(s,i):(r.setAttribute("href",window.URL.createObjectURL(s)),r.setAttribute("download",i),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)),this.table.options.downloadComplete&&this.table.options.downloadComplete())},E.prototype.commsReceived=function(e,t,n){switch(t){case"intercept":this.download(n.type,"",n.options,n.active,n.intercept);break}},E.prototype.downloaders={csv:function(e,t,n){var i=t&&t.delimiter?t.delimiter:",",o=[],s=[];e.forEach(function(e){var t=[];switch(e.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":e.columns.forEach(function(e,t){e&&1===e.depth&&(s[t]="undefined"==typeof e.value||null===e.value?"":'"'+String(e.value).split('"').join('""')+'"')});break;case"row":e.columns.forEach(function(e){if(e){switch(r(e.value)){case"object":e.value=JSON.stringify(e.value);break;case"undefined":case"null":e.value="";break}t.push('"'+String(e.value).split('"').join('""')+'"')}}),o.push(t.join(i));break}}),s.length&&o.unshift(s.join(i)),o=o.join("\n"),t.bom&&(o="\ufeff"+o),n(o,"text/csv")},json:function(e,t,n){var i=[];e.forEach(function(e){var t={};switch(e.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":e.columns.forEach(function(e){e&&(t[e.component.getField()]=e.value)}),i.push(t);break}}),i=JSON.stringify(i,null,"\t"),n(i,"application/json")},pdf:function(e,t,n){var i=[],o=[],s={},a=t.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},c=t.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},l=t.jsPDF||{},u=t&&t.title?t.title:"";function d(e,t){var n=[];return e.columns.forEach(function(e){var i;if(e){switch(r(e.value)){case"object":e.value=JSON.stringify(e.value);break;case"undefined":case"null":e.value="";break}i={content:e.value,colSpan:e.width,rowSpan:e.height},t&&(i.styles=t),n.push(i)}else n.push("")}),n}l.orientation||(l.orientation=t.orientation||"landscape"),l.unit||(l.unit="pt"),e.forEach(function(e){switch(e.type){case"header":i.push(d(e));break;case"group":o.push(d(e,a));break;case"calc":o.push(d(e,c));break;case"row":o.push(d(e));break}});var h=new jsPDF(l);t&&t.autoTable&&(s="function"===typeof t.autoTable?t.autoTable(h)||{}:t.autoTable),u&&(s.addPageContent=function(e){h.text(u,40,30)}),s.head=i,s.body=o,h.autoTable(s),t&&t.documentProcessing&&t.documentProcessing(h),n(h.output("arraybuffer"),"application/pdf")},xlsx:function(e,t,n){var i,o=this,s=t.sheetName||"Sheet1",a=XLSX.utils.book_new();function c(){var t=[],n=[],i={},o={s:{c:0,r:0},e:{c:e[0]?e[0].columns.reduce(function(e,t){return e+(t&&t.width?t.width:1)},0):0,r:e.length}};return e.forEach(function(e,i){var o=[];e.columns.forEach(function(e,t){e?(o.push(e.value instanceof Date||"object"!==r(e.value)?e.value:JSON.stringify(e.value)),(e.width>1||e.height>-1)&&n.push({s:{r:i,c:t},e:{r:i+e.height-1,c:t+e.width-1}})):o.push("")}),t.push(o)}),XLSX.utils.sheet_add_aoa(i,t),i["!ref"]=XLSX.utils.encode_range(o),n.length&&(i["!merges"]=n),i}if(a.SheetNames=[],a.Sheets={},t.sheetOnly)n(c());else{if(t.sheets)for(var l in t.sheets)!0===t.sheets[l]?(a.SheetNames.push(l),a.Sheets[l]=c()):(a.SheetNames.push(l),this.modules.comms.send(t.sheets[l],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:o.active,intercept:function(e){a.Sheets[l]=e}}));else a.SheetNames.push(s),a.Sheets[s]=c();t.documentProcessing&&(a=t.documentProcessing(a)),i=XLSX.write(a,{bookType:"xlsx",bookSST:!0,type:"binary"}),n(u(i),"application/octet-stream")}function u(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i!=e.length;++i)n[i]=255&e.charCodeAt(i);return t}},html:function(e,t,n){this.modExists("export",!0)&&n(this.modules.export.genereateHTMLTable(e),"text/html")}},g.prototype.registerModule("download",E);var O=function(e){this.table=e,this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[]};O.prototype.initializeColumn=function(e){var t=this,n={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{}};switch(r(e.definition.editor)){case"string":"tick"===e.definition.editor&&(e.definition.editor="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),t.editors[e.definition.editor]?n.editor=t.editors[e.definition.editor]:console.warn("Editor Error - No such editor found: ",e.definition.editor);break;case"function":n.editor=e.definition.editor;break;case"boolean":!0===e.definition.editor&&("function"!==typeof e.definition.formatter?("tick"===e.definition.formatter&&(e.definition.formatter="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),t.editors[e.definition.formatter]?n.editor=t.editors[e.definition.formatter]:n.editor=t.editors["input"]):console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",e.definition.formatter));break}n.editor&&(e.modules.edit=n)},O.prototype.getCurrentCell=function(){return!!this.currentCell&&this.currentCell.getComponent()},O.prototype.clearEditor=function(e){var t,n=this.currentCell;if(this.invalidEdit=!1,n){this.currentCell=!1,t=n.getElement(),e?n.validate():t.classList.remove("tabulator-validation-fail"),t.classList.remove("tabulator-editing");while(t.firstChild)t.removeChild(t.firstChild);n.row.getElement().classList.remove("tabulator-row-editing")}},O.prototype.cancelEdit=function(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),("textarea"==e.column.definition.editor||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.cellEvents.cellEditCancelled&&e.column.cellEvents.cellEditCancelled.call(this.table,t),this.table.options.cellEditCancelled.call(this.table,t)}},O.prototype.bindEditor=function(e){var t=this,n=e.getElement(!0);n.setAttribute("tabindex",0),n.addEventListener("click",function(e){n.classList.contains("tabulator-editing")||n.focus({preventScroll:!0})}),n.addEventListener("mousedown",function(e){2===e.button?e.preventDefault():t.mouseClick=!0}),n.addEventListener("focus",function(n){t.recursionBlock||t.edit(e,n,!1)})},O.prototype.focusCellNoEvent=function(e,t){this.recursionBlock=!0,t&&"ie"===this.table.browser||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1},O.prototype.editCell=function(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)},O.prototype.focusScrollAdjust=function(e){if("virtual"==this.table.rowManager.getRenderMode()){var t=this.table.rowManager.element.scrollTop,n=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,i=e.row.getElement();i.offsetTop;i.offsetTopn&&(this.table.rowManager.element.scrollTop+=i.offsetTop+i.offsetHeight-n);var o=this.table.rowManager.element.scrollLeft,r=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,s=e.getElement();s.offsetLeft;this.table.modExists("frozenColumns")&&(o+=parseInt(this.table.modules.frozenColumns.leftMargin),r-=parseInt(this.table.modules.frozenColumns.rightMargin)),this.table.options.virtualDomHoz&&(o-=parseInt(this.table.vdomHoz.vDomPadLeft),r-=parseInt(this.table.vdomHoz.vDomPadLeft)),s.offsetLeftr&&(this.table.rowManager.element.scrollLeft+=s.offsetLeft+s.offsetWidth-r)}},O.prototype.edit=function(e,t,n){var i,o,s,a=this,c=!0,l=function(){},u=e.getElement();if(!this.currentCell){if(e.column.modules.edit.blocked)return this.mouseClick=!1,u.blur(),!1;switch(t&&t.stopPropagation(),r(e.column.modules.edit.check)){case"function":c=e.column.modules.edit.check(e.getComponent());break;case"boolean":c=e.column.modules.edit.check;break}if(c||n){if(a.cancelEdit(),a.currentCell=e,this.focusScrollAdjust(e),o=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.cellEvents.cellClick&&e.column.cellEvents.cellClick.call(this.table,t,o)),e.column.cellEvents.cellEditing&&e.column.cellEvents.cellEditing.call(this.table,o),a.table.options.cellEditing.call(this.table,o),s="function"===typeof e.column.modules.edit.params?e.column.modules.edit.params(o):e.column.modules.edit.params,i=e.column.modules.edit.editor.call(a,o,m,p,f,s),!1===i)return u.blur(),!1;if(!(i instanceof Node))return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",i),u.blur(),!1;u.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-row-editing");while(u.firstChild)u.removeChild(u.firstChild);u.appendChild(i),l();for(var d=u.children,h=0;h46){if(s>=n.length)return t.preventDefault(),t.stopPropagation(),!1,!1;switch(n[s]){case i:if(a.toUpperCase()==a.toLowerCase())return t.preventDefault(),t.stopPropagation(),!1,!1;break;case o:if(isNaN(a))return t.preventDefault(),t.stopPropagation(),!1,!1;break;case r:break;default:if(a!==n[s])return t.preventDefault(),t.stopPropagation(),!1,!1}!0}}),e.addEventListener("keyup",function(n){n.keyCode>46&&t.maskAutoFill&&s(e.value.length)}),e.placeholder||(e.placeholder=n),t.maskAutoFill&&s(e.value.length)},O.prototype.getEditedCells=function(){var e=[];return this.editedCells.forEach(function(t){e.push(t.getComponent())}),e},O.prototype.clearEdited=function(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,e.modules.validate&&(e.modules.validate.invalid=!1)),t=this.editedCells.indexOf(e),t>-1&&this.editedCells.splice(t,1)},O.prototype.editors={input:function(e,t,n,i,o){var s=e.getValue(),a=document.createElement("input");if(a.setAttribute("type",o.search?"search":"text"),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var c in o.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),a.setAttribute(c,a.getAttribute(c)+o.elementAttributes["+"+c])):a.setAttribute(c,o.elementAttributes[c]);function l(e){(null===s||"undefined"===typeof s)&&""!==a.value||a.value!==s?n(a.value)&&(s=a.value):i()}return a.value="undefined"!==typeof s?s:"",t(function(){a.focus({preventScroll:!0}),a.style.height="100%"}),a.addEventListener("change",l),a.addEventListener("blur",l),a.addEventListener("keydown",function(e){switch(e.keyCode){case 13:l(e);break;case 27:i();break;case 35:case 36:e.stopPropagation();break}}),o.mask&&this.table.modules.edit.maskInput(a,o),a},textarea:function(e,t,n,i,o){var s=e.getValue(),a=o.verticalNavigation||"hybrid",c=String(null!==s&&"undefined"!==typeof s?s:""),l=((c.match(/(?:\r\n|\r|\n)/g)||[]).length,document.createElement("textarea")),u=0;if(l.style.display="block",l.style.padding="2px",l.style.height="100%",l.style.width="100%",l.style.boxSizing="border-box",l.style.whiteSpace="pre-wrap",l.style.resize="none",o.elementAttributes&&"object"==r(o.elementAttributes))for(var d in o.elementAttributes)"+"==d.charAt(0)?(d=d.slice(1),l.setAttribute(d,l.getAttribute(d)+o.elementAttributes["+"+d])):l.setAttribute(d,o.elementAttributes[d]);function h(t){(null===s||"undefined"===typeof s)&&""!==l.value||l.value!==s?(n(l.value)&&(s=l.value),setTimeout(function(){e.getRow().normalizeHeight()},300)):i()}return l.value=c,t(function(){l.focus({preventScroll:!0}),l.style.height="100%",l.scrollHeight,l.style.height=l.scrollHeight+"px",e.getRow().normalizeHeight()}),l.addEventListener("change",h),l.addEventListener("blur",h),l.addEventListener("keyup",function(){l.style.height="";var t=l.scrollHeight;l.style.height=t+"px",t!=u&&(u=t,e.getRow().normalizeHeight())}),l.addEventListener("keydown",function(e){switch(e.keyCode){case 27:i();break;case 38:("editor"==a||"hybrid"==a&&l.selectionStart)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 40:("editor"==a||"hybrid"==a&&l.selectionStart!==l.value.length)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation();break}}),o.mask&&this.table.modules.edit.maskInput(l,o),l},number:function(e,t,n,i,o){var s=e.getValue(),a=o.verticalNavigation||"editor",c=document.createElement("input");if(c.setAttribute("type","number"),"undefined"!=typeof o.max&&c.setAttribute("max",o.max),"undefined"!=typeof o.min&&c.setAttribute("min",o.min),"undefined"!=typeof o.step&&c.setAttribute("step",o.step),c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var l in o.elementAttributes)"+"==l.charAt(0)?(l=l.slice(1),c.setAttribute(l,c.getAttribute(l)+o.elementAttributes["+"+l])):c.setAttribute(l,o.elementAttributes[l]);c.value=s;var u=function(e){d()};function d(){var e=c.value;isNaN(e)||""===e||(e=Number(e)),e!==s?n(e)&&(s=e):i()}return t(function(){c.removeEventListener("blur",u),c.focus({preventScroll:!0}),c.style.height="100%",c.addEventListener("blur",u)}),c.addEventListener("keydown",function(e){switch(e.keyCode){case 13:d();break;case 27:i();break;case 38:case 40:"editor"==a&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation();break}}),o.mask&&this.table.modules.edit.maskInput(c,o),c},range:function(e,t,n,i,o){var s=e.getValue(),a=document.createElement("input");if(a.setAttribute("type","range"),"undefined"!=typeof o.max&&a.setAttribute("max",o.max),"undefined"!=typeof o.min&&a.setAttribute("min",o.min),"undefined"!=typeof o.step&&a.setAttribute("step",o.step),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var c in o.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),a.setAttribute(c,a.getAttribute(c)+o.elementAttributes["+"+c])):a.setAttribute(c,o.elementAttributes[c]);function l(){var e=a.value;isNaN(e)||""===e||(e=Number(e)),e!=s?n(e)&&(s=e):i()}return a.value=s,t(function(){a.focus({preventScroll:!0}),a.style.height="100%"}),a.addEventListener("blur",function(e){l()}),a.addEventListener("keydown",function(e){switch(e.keyCode){case 13:l();break;case 27:i();break}}),a},select:function(e,t,n,i,o){var s=this,a=this,c=e.getElement(),l=e.getValue(),u=o.verticalNavigation||"editor",d="undefined"!==typeof l||null===l?Array.isArray(l)?l:[l]:"undefined"!==typeof o.defaultValue?o.defaultValue:[],h=document.createElement("input"),p=document.createElement("div"),f=o.multiselect,m=[],v={},b=[],y=[],_=!0,M=!1,w="",C=null;function S(t){var n,i={},o=a.table.getData();return n=t?a.table.columnManager.getColumnByField(t):e.getColumn()._getSelf(),n?o.forEach(function(e){var t=n.getFieldValue(e);null!==t&&"undefined"!==typeof t&&""!==t&&(i[t]=!0)}):console.warn("unable to find matching column to create select lookup list:",t),Object.keys(i)}function A(t,n){var i=[],s=[];function a(e){e={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1};return n.indexOf(e.value)>-1&&L(e),i.push(e),s.push(e),e}if("function"==typeof t&&(t=t(e)),Array.isArray(t))t.forEach(function(e){var t;"object"===("undefined"===typeof e?"undefined":r(e))?e.options?(t={label:e.label,group:!0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1},s.push(t),e.options.forEach(function(e){a(e)})):a(e):(t={label:e,value:e,element:!1},n.indexOf(t.value)>-1&&L(t),i.push(t),s.push(t))});else for(var c in t){var l={label:t[c],value:c,element:!1};n.indexOf(l.value)>-1&&L(l),i.push(l),s.push(l)}o.sortValuesList&&(i.sort(function(e,t){return e.labelt.label?1:0}),s.sort(function(e,t){return e.labelt.label?1:0}),"asc"!==o.sortValuesList&&(i.reverse(),s.reverse())),m=i,b=s,E()}function E(){while(p.firstChild)p.removeChild(p.firstChild);b.forEach(function(t){var n=t.element;if(!n){if(n=document.createElement("div"),t.label=o.listItemFormatter?o.listItemFormatter(t.value,t.label,e,n,t.itemParams):t.label,t.group?(n.classList.add("tabulator-edit-select-list-group"),n.tabIndex=0,n.innerHTML=""===t.label?" ":t.label):(n.classList.add("tabulator-edit-select-list-item"),n.tabIndex=0,n.innerHTML=""===t.label?" ":t.label,n.addEventListener("click",function(){M=!0,setTimeout(function(){M=!1},10),f?(x(t),h.focus()):R(t)}),y.indexOf(t)>-1&&n.classList.add("active")),t.elementAttributes&&"object"==r(t.elementAttributes))for(var i in t.elementAttributes)"+"==i.charAt(0)?(i=i.slice(1),n.setAttribute(i,h.getAttribute(i)+t.elementAttributes["+"+i])):n.setAttribute(i,t.elementAttributes[i]);n.addEventListener("mousedown",function(){_=!1,setTimeout(function(){_=!0},10)}),t.element=n}p.appendChild(n)})}function O(e,t){!f&&v&&v.element&&v.element.classList.remove("active"),v&&v.element&&v.element.classList.remove("focused"),v=e,e.element&&(e.element.classList.add("focused"),t&&e.element.classList.add("active")),e&&e.element&&e.element.scrollIntoView&&e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function L(e){var t=y.indexOf(e);-1==t&&(y.push(e),O(e,!0)),z()}function T(e){var t=y[e];e>-1&&(y.splice(e,1),t.element&&t.element.classList.remove("active"))}function x(e){e||(e=v);var t=y.indexOf(e);t>-1?T(t):(!0!==f&&y.length>=f&&T(0),L(e)),z()}function R(e){D(),e||(e=v),e&&(h.value=e.label,n(e.value)),d=[e.value]}function k(e){e||D();var t=[];y.forEach(function(e){t.push(e.value)}),d=t,n(t)}function z(){var e=[];y.forEach(function(t){e.push(t.label)}),h.value=e.join(", "),!1===a.currentCell&&k(!0)}function P(){for(var e=y.length,t=0;t0&&O(m[t-1],!f));break;case 40:t=m.indexOf(v),("editor"==u||"hybrid"==u&&t=38&&e.keyCode<=90&&q(e.keyCode)}}),h.addEventListener("blur",function(e){_&&(f?k():N())}),h.addEventListener("focus",function(e){M||I()}),p=document.createElement("div"),p.classList.add("tabulator-edit-select-list"),t(function(){h.style.height="100%",h.focus({preventScroll:!0})}),setTimeout(function(){s.table.rowManager.element.addEventListener("scroll",N)},10),h},autocomplete:function(e,t,n,i,o){var s=this,a=this,c=e.getElement(),l=e.getValue(),u=o.verticalNavigation||"editor",d="undefined"!==typeof l||null===l?l:"undefined"!==typeof o.defaultValue?o.defaultValue:"",h=document.createElement("input"),p=document.createElement("div"),f=[],m=!1,v=!0,b=!1;if(h.setAttribute("type","search"),h.style.padding="4px",h.style.width="100%",h.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var y in o.elementAttributes)"+"==y.charAt(0)?(y=y.slice(1),h.setAttribute(y,h.getAttribute(y)+o.elementAttributes["+"+y])):h.setAttribute(y,o.elementAttributes[y]);function _(){!0===o.values?b=M():"string"===typeof o.values&&(b=M(o.values))}function M(t){var n,i={},r=a.table.getData();return n=t?a.table.columnManager.getColumnByField(t):e.getColumn()._getSelf(),n?(r.forEach(function(e){var t=n.getFieldValue(e);null!==t&&"undefined"!==typeof t&&""!==t&&(i[t]=!0)}),i=o.sortValuesList?"asc"==o.sortValuesList?Object.keys(i).sort():Object.keys(i).sort().reverse():Object.keys(i)):console.warn("unable to find matching column to create autocomplete lookup list:",t),i}function w(e,t){var n,i,r=[];n=b||(o.values||[]),o.searchFunc?(r=o.searchFunc(e,n),r instanceof Promise?(C("undefined"!==typeof o.searchingPlaceholder?o.searchingPlaceholder:"Searching..."),r.then(function(e){E(S(e),t)}).catch(function(e){console.err("error in autocomplete search promise:",e)})):E(S(r),t)):(i=S(n),""===e?o.showListOnEmpty&&(r=i):i.forEach(function(t){null===t.value&&"undefined"===typeof t.value||(String(t.value).toLowerCase().indexOf(String(e).toLowerCase())>-1||String(t.title).toLowerCase().indexOf(String(e).toLowerCase())>-1)&&r.push(t)}),E(r,t))}function C(e){var t=document.createElement("div");A(),!1!==e&&(t.classList.add("tabulator-edit-select-list-notice"),t.tabIndex=0,e instanceof Node?t.appendChild(e):t.innerHTML=e,p.appendChild(t))}function S(e){var t=[];if(Array.isArray(e))e.forEach(function(e){var n={};"object"===("undefined"===typeof e?"undefined":r(e))?(n.title=o.listItemFormatter?o.listItemFormatter(e.value,e.label):e.label,n.value=e.value):(n.title=o.listItemFormatter?o.listItemFormatter(e,e):e,n.value=e),t.push(n)});else for(var n in e){var i={title:o.listItemFormatter?o.listItemFormatter(n,e[n]):e[n],value:n};t.push(i)}return t}function A(){while(p.firstChild)p.removeChild(p.firstChild)}function E(e,t){e.length?O(e,t):o.emptyPlaceholder&&C(o.emptyPlaceholder)}function O(e,t){var n=!1;A(),f=e,f.forEach(function(e){var i=e.element;i||(i=document.createElement("div"),i.classList.add("tabulator-edit-select-list-item"),i.tabIndex=0,i.innerHTML=e.title,i.addEventListener("click",function(t){x(e),L()}),i.addEventListener("mousedown",function(e){v=!1,setTimeout(function(){v=!0},10)}),e.element=i,t&&e.value==l&&(h.value=e.title,e.element.classList.add("active"),n=!0),e===m&&(e.element.classList.add("active"),n=!0)),p.appendChild(i)}),n||x(!1)}function L(){R(),m?l!==m.value?(l=m.value,h.value=m.title,n(m.value)):i():o.freetext?(l=h.value,n(h.value)):o.allowEmpty&&""===h.value?(l=h.value,n(h.value)):i()}function T(){if(!p.parentNode){console.log("show",d);while(p.firstChild)p.removeChild(p.firstChild);var e=g.prototype.helpers.elOffset(c);p.style.minWidth=c.offsetWidth+"px",p.style.top=e.top+c.offsetHeight+"px",p.style.left=e.left+"px",document.body.appendChild(p)}}function x(e,t){m&&m.element&&m.element.classList.remove("active"),m=e,e&&e.element&&e.element.classList.add("active"),e&&e.element&&e.element.scrollIntoView&&e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function R(){p.parentNode&&p.parentNode.removeChild(p),z()}function k(){R(),i()}function z(){a.table.rowManager.element.removeEventListener("scroll",k)}return p.classList.add("tabulator-edit-select-list"),p.addEventListener("mousedown",function(e){v=!1,setTimeout(function(){v=!0},10)}),h.addEventListener("keydown",function(e){var t;switch(e.keyCode){case 38:t=f.indexOf(m),("editor"==u||"hybrid"==u&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),x(t>0&&f[t-1]));break;case 40:t=f.indexOf(m),("editor"==u||"hybrid"==u&&t'):("ie"==s.table.browser?t.setAttribute("class","tabulator-star-inactive"):t.classList.replace("tabulator-star-active","tabulator-star-inactive"),t.innerHTML='')})}function m(e){var t=document.createElement("span"),i=p.cloneNode(!0);d.push(i),t.addEventListener("mouseenter",function(t){t.stopPropagation(),t.stopImmediatePropagation(),f(e)}),t.addEventListener("mousemove",function(e){e.stopPropagation(),e.stopImmediatePropagation()}),t.addEventListener("click",function(t){t.stopPropagation(),t.stopImmediatePropagation(),n(e),a.blur()}),t.appendChild(i),h.appendChild(t)}function g(e){c=e,f(e)}if(a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",h.style.verticalAlign="middle",h.style.display="inline-block",h.style.padding="4px",p.setAttribute("width",u),p.setAttribute("height",u),p.setAttribute("viewBox","0 0 512 512"),p.setAttribute("xml:space","preserve"),p.style.padding="0 1px",o.elementAttributes&&"object"==r(o.elementAttributes))for(var v in o.elementAttributes)"+"==v.charAt(0)?(v=v.slice(1),h.setAttribute(v,h.getAttribute(v)+o.elementAttributes["+"+v])):h.setAttribute(v,o.elementAttributes[v]);for(var b=1;b<=l;b++)m(b);return c=Math.min(parseInt(c),l),f(c),h.addEventListener("mousemove",function(e){f(0)}),h.addEventListener("click",function(e){n(0)}),a.addEventListener("blur",function(e){i()}),a.addEventListener("keydown",function(e){switch(e.keyCode){case 39:g(c+1);break;case 37:g(c-1);break;case 13:n(c);break;case 27:i();break}}),h},progress:function(e,t,n,i,o){var s,a,c=e.getElement(),l="undefined"===typeof o.max?c.getElementsByTagName("div")[0].getAttribute("max")||100:o.max,u="undefined"===typeof o.min?c.getElementsByTagName("div")[0].getAttribute("min")||0:o.min,d=(l-u)/100,h=e.getValue()||0,p=document.createElement("div"),f=document.createElement("div");function m(){var e=window.getComputedStyle(c,null),t=d*Math.round(f.offsetWidth/((c.clientWidth-parseInt(e.getPropertyValue("padding-left"))-parseInt(e.getPropertyValue("padding-right")))/100))+u;n(t),c.setAttribute("aria-valuenow",t),c.setAttribute("aria-label",h)}if(p.style.position="absolute",p.style.right="0",p.style.top="0",p.style.bottom="0",p.style.width="5px",p.classList.add("tabulator-progress-handle"),f.style.display="inline-block",f.style.position="relative",f.style.height="100%",f.style.backgroundColor="#488CE9",f.style.maxWidth="100%",f.style.minWidth="0%",o.elementAttributes&&"object"==r(o.elementAttributes))for(var g in o.elementAttributes)"+"==g.charAt(0)?(g=g.slice(1),f.setAttribute(g,f.getAttribute(g)+o.elementAttributes["+"+g])):f.setAttribute(g,o.elementAttributes[g]);return c.style.padding="4px 4px",h=Math.min(parseFloat(h),l),h=Math.max(parseFloat(h),u),h=Math.round((h-u)/d),f.style.width=h+"%",c.setAttribute("aria-valuemin",u),c.setAttribute("aria-valuemax",l),f.appendChild(p),p.addEventListener("mousedown",function(e){s=e.screenX,a=f.offsetWidth}),p.addEventListener("mouseover",function(){p.style.cursor="ew-resize"}),c.addEventListener("mousemove",function(e){s&&(f.style.width=a+e.screenX-s+"px")}),c.addEventListener("mouseup",function(e){s&&(e.stopPropagation(),e.stopImmediatePropagation(),s=!1,a=!1,m())}),c.addEventListener("keydown",function(e){switch(e.keyCode){case 39:e.preventDefault(),f.style.width=f.clientWidth+c.clientWidth/100+"px";break;case 37:e.preventDefault(),f.style.width=f.clientWidth-c.clientWidth/100+"px";break;case 9:case 13:m();break;case 27:i();break}}),c.addEventListener("blur",function(){i()}),f},tickCross:function(e,t,n,i,o){var s=e.getValue(),a=document.createElement("input"),c=o.tristate,l="undefined"===typeof o.indeterminateValue?null:o.indeterminateValue,u=!1;if(a.setAttribute("type","checkbox"),a.style.marginTop="5px",a.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var d in o.elementAttributes)"+"==d.charAt(0)?(d=d.slice(1),a.setAttribute(d,a.getAttribute(d)+o.elementAttributes["+"+d])):a.setAttribute(d,o.elementAttributes[d]);function h(e){return c?e?u?l:a.checked:a.checked&&!u?(a.checked=!1,a.indeterminate=!0,u=!0,l):(u=!1,a.checked):a.checked}return a.value=s,!c||"undefined"!==typeof s&&s!==l&&""!==s||(u=!0,a.indeterminate=!0),"firefox"!=this.table.browser&&t(function(){a.focus({preventScroll:!0})}),a.checked=!0===s||"true"===s||"True"===s||1===s,t(function(){a.focus()}),a.addEventListener("change",function(e){n(h())}),a.addEventListener("blur",function(e){n(h(!0))}),a.addEventListener("keydown",function(e){13==e.keyCode&&n(h()),27==e.keyCode&&i()}),a}},g.prototype.registerModule("edit",O);var L=function(e,t,n,i){this.type=e,this.columns=t,this.component=n||!1,this.indent=i||0},T=function(e,t,n,i,o){this.value=e,this.component=t||!1,this.width=n,this.height=i,this.depth=o},x=function(e){this.table=e,this.config={},this.cloneTableStyle=!0,this.colVisProp=""};x.prototype.generateExportList=function(e,t,n,i){this.cloneTableStyle=t,this.config=e||{},this.colVisProp=i;var o=!1!==this.config.columnHeaders?this.headersToExportRows(this.generateColumnGroupHeaders()):[],r=this.bodyToExportRows(this.rowLookup(n));return o.concat(r)},x.prototype.genereateTable=function(e,t,n,i){var o=this.generateExportList(e,t,n,i);return this.genereateTableElement(o)},x.prototype.rowLookup=function(e){var t=this,n=[];if("function"==typeof e)e.call(this.table).forEach(function(e){e=t.table.rowManager.findRow(e),e&&n.push(e)});else switch(e){case!0:case"visible":n=this.table.rowManager.getVisibleRows(!0);break;case"all":n=this.table.rowManager.rows;break;case"selected":n=this.table.modules.selectRow.selectedRows;break;case"active":default:n=this.table.options.pagination?this.table.rowManager.getDisplayRows(this.table.rowManager.displayRows.length-2):this.table.rowManager.getDisplayRows()}return Object.assign([],n)},x.prototype.generateColumnGroupHeaders=function(){var e=this,t=[],n=!1!==this.config.columnGroups?this.table.columnManager.columns:this.table.columnManager.columnsByIndex;return n.forEach(function(n){var i=e.processColumnGroup(n);i&&t.push(i)}),t},x.prototype.processColumnGroup=function(e){var t=this,n=e.columns,i=0,o=e.definition["title"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))]||e.definition.title,r={title:o,column:e,depth:1};if(n.length){if(r.subGroups=[],r.width=0,n.forEach(function(e){var n=t.processColumnGroup(e);n&&(r.width+=n.width,r.subGroups.push(n),n.depth>i&&(i=n.depth))}),r.depth+=i,!r.width)return!1}else{if(!this.columnVisCheck(e))return!1;r.width=1}return r},x.prototype.columnVisCheck=function(e){return!1!==e.definition[this.colVisProp]&&(e.visible||!e.visible&&e.definition[this.colVisProp])},x.prototype.headersToExportRows=function(e){var t=[],n=0,i=[];function o(e,i){var r=n-i;if("undefined"===typeof t[i]&&(t[i]=[]),e.height=e.subGroups?1:r-e.depth+1,t[i].push(e),e.height>1)for(var s=1;s1)for(var a=1;an&&(n=e.depth)}),e.forEach(function(e){o(e,0)}),t.forEach(function(e){var t=[];e.forEach(function(e){e?t.push(new T(e.title,e.column.getComponent(),e.width,e.height,e.depth)):t.push(null)}),i.push(new L("header",t))}),i},x.prototype.bodyToExportRows=function(e){var t=this,n=[],i=[];return this.table.columnManager.columnsByIndex.forEach(function(e){t.columnVisCheck(e)&&n.push(e.getComponent())}),!1!==this.config.columnCalcs&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),e=e.filter(function(e){switch(e.type){case"group":return!1!==t.config.rowGroups;case"calc":return!1!==t.config.columnCalcs;case"row":return!(t.table.options.dataTree&&!1===t.config.dataTree&&e.modules.dataTree.parent)}return!0}),e.forEach(function(e,o){var r=e.getData(t.colVisProp),s=[],a=0;switch(e.type){case"group":a=e.level,s.push(new T(e.key,e.getComponent(),n.length,1));break;case"calc":case"row":n.forEach(function(e){s.push(new T(e._column.getFieldValue(r),e,1,1))}),t.table.options.dataTree&&!1!==t.config.dataTree&&(a=e.modules.dataTree.index);break}i.push(new L(e.type,s,e.getComponent(),a))}),i},x.prototype.genereateTableElement=function(e){var t=this,n=document.createElement("table"),i=document.createElement("thead"),o=document.createElement("tbody"),r=this.lookupTableStyles(),s=this.table.options["rowFormatter"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],a={};return a.rowFormatter=null!==s?s:this.table.options.rowFormatter,this.table.options.dataTree&&!1!==this.config.dataTree&&this.table.modExists("columnCalcs")&&(a.treeElementField=this.table.modules.dataTree.elementField),a.groupHeader=this.table.options["groupHeader"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],a.groupHeader&&!Array.isArray(a.groupHeader)&&(a.groupHeader=[a.groupHeader]),n.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),i,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach(function(e,n){switch(e.type){case"header":i.appendChild(t.genereateHeaderElement(e,a,r));break;case"group":o.appendChild(t.genereateGroupElement(e,a,r));break;case"calc":o.appendChild(t.genereateCalcElement(e,a,r));break;case"row":var s=t.genereateRowElement(e,a,r);t.mapElementStyles(n%2&&r.evenRow?r.evenRow:r.oddRow,s,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),o.appendChild(s);break}}),i.innerHTML&&n.appendChild(i),n.appendChild(o),this.mapElementStyles(this.table.element,n,["border-top","border-left","border-right","border-bottom"]),n},x.prototype.lookupTableStyles=function(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e},x.prototype.genereateHeaderElement=function(e,t,n){var i=this,o=document.createElement("tr");return e.columns.forEach(function(e){if(e){var t=document.createElement("th"),n=e.component._column.definition.cssClass?e.component._column.definition.cssClass.split(" "):[];t.colSpan=e.width,t.rowSpan=e.height,t.innerHTML=e.value,i.cloneTableStyle&&(t.style.boxSizing="border-box"),n.forEach(function(e){t.classList.add(e)}),i.mapElementStyles(e.component.getElement(),t,["text-align","border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),i.mapElementStyles(e.component._column.contentElement,t,["padding-top","padding-left","padding-right","padding-bottom"]),e.component._column.visible?i.mapElementStyles(e.component.getElement(),t,["width"]):e.component._column.definition.width&&(t.style.width=e.component._column.definition.width+"px"),e.component._column.parent&&i.mapElementStyles(e.component._column.parent.groupElement,t,["border-top"]),o.appendChild(t)}}),o},x.prototype.genereateGroupElement=function(e,t,n){var i=document.createElement("tr"),o=document.createElement("td"),r=e.columns[0];return i.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?r.value=t.groupHeader[e.indent](r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):!1===t.groupHeader?r.value=r.value:r.value=e.component._group.generator(r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component),o.colSpan=r.width,o.innerHTML=r.value,i.classList.add("tabulator-print-table-group"),i.classList.add("tabulator-group-level-"+e.indent),r.component.isVisible()&&i.classList.add("tabulator-group-visible"),this.mapElementStyles(n.firstGroup,i,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(n.firstGroup,o,["padding-top","padding-left","padding-right","padding-bottom"]),i.appendChild(o),i},x.prototype.genereateCalcElement=function(e,t,n){var i=this.genereateRowElement(e,t,n);return i.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(n.calcRow,i,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),i},x.prototype.genereateRowElement=function(e,t,n){var o=this,s=document.createElement("tr");return s.classList.add("tabulator-print-table-row"),e.columns.forEach(function(a){if(a){var c=document.createElement("td"),l=a.component._column,u=a.value,d={modules:{},getValue:function(){return u},getField:function(){return l.definition.field},getElement:function(){return c},getColumn:function(){return l.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getComponent:function(){return d},column:l},h=l.definition.cssClass?l.definition.cssClass.split(" "):[];if(h.forEach(function(e){c.classList.add(e)}),o.table.modExists("format")&&!1!==o.config.formatCells)u=o.table.modules.format.formatExportValue(d,o.colVisProp);else switch("undefined"===typeof u?"undefined":r(u)){case"object":u=JSON.stringify(u);break;case"undefined":case"null":u="";break;default:u=u}u instanceof Node?c.appendChild(u):c.innerHTML=u,n.firstCell&&(o.mapElementStyles(n.firstCell,c,["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size"]),l.definition.align&&(c.style.textAlign=l.definition.align)),o.table.options.dataTree&&!1!==o.config.dataTree&&(t.treeElementField&&t.treeElementField==l.field||!t.treeElementField&&0==i)&&(e.component._row.modules.dataTree.controlEl&&c.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),c.firstChild),e.component._row.modules.dataTree.branchEl&&c.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),c.firstChild)),s.appendChild(c),d.modules.format&&d.modules.format.renderedCallback&&d.modules.format.renderedCallback(),t.rowFormatter&&!1!==o.config.formatCells&&t.rowFormatter(e.component)}}),s},x.prototype.genereateHTMLTable=function(e){var t=document.createElement("div");return t.appendChild(this.genereateTableElement(e)),t.innerHTML},x.prototype.getHtml=function(e,t,n,i){var o=this.generateExportList(n||this.table.options.htmlOutputConfig,t,e,i||"htmlOutput");return this.genereateHTMLTable(o)},x.prototype.mapElementStyles=function(e,t,n){if(this.cloneTableStyle&&e&&t){var i={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var o=window.getComputedStyle(e);n.forEach(function(e){t.style[i[e]]=o.getPropertyValue(e)})}}},g.prototype.registerModule("export",x);var R=function(e){this.table=e,this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1};R.prototype.initializeColumn=function(e,t){var n,i=this,o=e.getField();function s(t){var s,a="input"==e.modules.filter.tagType&&"text"==e.modules.filter.attrType||"textarea"==e.modules.filter.tagType?"partial":"match",c="",l="";if("undefined"===typeof e.modules.filter.prevSuccess||e.modules.filter.prevSuccess!==t){if(e.modules.filter.prevSuccess=t,e.modules.filter.emptyFunc(t))delete i.headerFilters[o];else{switch(e.modules.filter.value=t,r(e.definition.headerFilterFunc)){case"string":i.filters[e.definition.headerFilterFunc]?(c=e.definition.headerFilterFunc,s=function(n){var o=e.definition.headerFilterFuncParams||{},r=e.getFieldValue(n);return o="function"===typeof o?o(t,r,n):o,i.filters[e.definition.headerFilterFunc](t,r,n,o)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":s=function(n){var i=e.definition.headerFilterFuncParams||{},o=e.getFieldValue(n);return i="function"===typeof i?i(t,o,n):i,e.definition.headerFilterFunc(t,o,n,i)},c=s;break}if(!s)switch(a){case"partial":s=function(n){var i=e.getFieldValue(n);return"undefined"!==typeof i&&null!==i&&String(i).toLowerCase().indexOf(String(t).toLowerCase())>-1},c="like";break;default:s=function(n){return e.getFieldValue(n)==t},c="="}i.headerFilters[o]={value:t,func:s,type:c,params:n||{}}}l=JSON.stringify(i.headerFilters),i.prevHeaderFilterChangeCheck!==l&&(i.prevHeaderFilterChangeCheck=l,i.changed=!0,i.table.rowManager.filterRefresh())}return!0}e.modules.filter={success:s,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)},R.prototype.generateHeaderFilterElement=function(e,t,n){var i,o,s,a,c,l,u,d=this,h=this,p=e.modules.filter.success,f=e.getField();function m(){}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),f){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(e){return!e&&"0"!==e&&0!==e},i=document.createElement("div"),i.classList.add("tabulator-header-filter"),r(e.definition.headerFilter)){case"string":h.table.modules.edit.editors[e.definition.headerFilter]?(o=h.table.modules.edit.editors[e.definition.headerFilter],"tick"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":o=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?o=e.modules.edit.editor:e.definition.formatter&&h.table.modules.edit.editors[e.definition.formatter]?(o=h.table.modules.edit.editors[e.definition.formatter],"tick"!==e.definition.formatter&&"tickCross"!==e.definition.formatter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):o=h.table.modules.edit.editors["input"];break}if(o){if(a={getValue:function(){return"undefined"!==typeof t?t:""},getField:function(){return e.definition.field},getElement:function(){return i},getColumn:function(){return e.getComponent()},getRow:function(){return{normalizeHeight:function(){}}}},u=e.definition.headerFilterParams||{},u="function"===typeof u?u.call(h.table):u,s=o.call(this.table.modules.edit,a,function(){},p,m,u),!s)return void console.warn("Filter Error - Cannot add filter to "+f+" column, editor returned a value of false");if(!(s instanceof Node))return void console.warn("Filter Error - Cannot add filter to "+f+" column, editor should return an instance of Node, the editor returned:",s);f?h.table.modules.localize.bind("headerFilters|columns|"+e.definition.field,function(e){s.setAttribute("placeholder","undefined"!==typeof e&&e?e:h.table.modules.localize.getText("headerFilters|default"))}):h.table.modules.localize.bind("headerFilters|default",function(e){s.setAttribute("placeholder","undefined"!==typeof h.column.definition.headerFilterPlaceholder&&h.column.definition.headerFilterPlaceholder?h.column.definition.headerFilterPlaceholder:e)}),s.addEventListener("click",function(e){e.stopPropagation(),s.focus()}),s.addEventListener("focus",function(e){var t=d.table.columnManager.element.scrollLeft;t!==d.table.rowManager.element.scrollLeft&&(d.table.rowManager.scrollHorizontal(t),d.table.columnManager.scrollHorizontal(t))}),c=!1,l=function(e){c&&clearTimeout(c),c=setTimeout(function(){p(s.value)},h.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=s,e.modules.filter.attrType=s.hasAttribute("type")?s.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=s.tagName.toLowerCase(),!1!==e.definition.headerFilterLiveFilter&&("autocomplete"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter&&("autocomplete"!==e.definition.editor&&"tickCross"!==e.definition.editor||!0!==e.definition.headerFilter)&&(s.addEventListener("keyup",l),s.addEventListener("search",l),"number"==e.modules.filter.attrType&&s.addEventListener("change",function(e){p(s.value)}),"text"==e.modules.filter.attrType&&"ie"!==this.table.browser&&s.setAttribute("type","search")),"input"!=e.modules.filter.tagType&&"select"!=e.modules.filter.tagType&&"textarea"!=e.modules.filter.tagType||s.addEventListener("mousedown",function(e){e.stopPropagation()})),i.appendChild(s),e.contentElement.appendChild(i),n||h.headerFilterColumns.push(e)}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)},R.prototype.hideHeaderFilterElements=function(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")})},R.prototype.showHeaderFilterElements=function(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")})},R.prototype.setHeaderFilterFocus=function(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())},R.prototype.getHeaderFilterValue=function(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.headerElement.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())},R.prototype.setHeaderFilterValue=function(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},R.prototype.reloadHeaderFilter=function(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},R.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},R.prototype.setFilter=function(e,t,n,i){var o=this;o.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:n,params:i}]),o.addFilter(e)},R.prototype.addFilter=function(e,t,n,i){var o=this;Array.isArray(e)||(e=[{field:e,type:t,value:n,params:i}]),e.forEach(function(e){e=o.findFilter(e),e&&(o.filterList.push(e),o.changed=!0)}),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},R.prototype.findFilter=function(e){var t,n=this;if(Array.isArray(e))return this.findSubFilters(e);var i=!1;return"function"==typeof e.field?i=function(t){return e.field(t,e.type||{})}:n.filters[e.type]?(t=n.table.columnManager.getColumnByField(e.field),i=t?function(i){return n.filters[e.type](e.value,t.getFieldValue(i),i,e.params||{})}:function(t){return n.filters[e.type](e.value,t[e.field],t,e.params||{})}):console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=i,!!e.func&&e},R.prototype.findSubFilters=function(e){var t=this,n=[];return e.forEach(function(e){e=t.findFilter(e),e&&n.push(e)}),!!n.length&&n},R.prototype.getFilters=function(e,t){var n=[];return e&&(n=this.getHeaderFilters()),t&&n.forEach(function(e){"function"==typeof e.type&&(e.type="function")}),n=n.concat(this.filtersToArray(this.filterList,t)),n},R.prototype.filtersToArray=function(e,t){var n=this,i=[];return e.forEach(function(e){var o;Array.isArray(e)?i.push(n.filtersToArray(e,t)):(o={field:e.field,type:e.type,value:e.value},t&&"function"==typeof o.type&&(o.type="function"),i.push(o))}),i},R.prototype.getHeaderFilters=function(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e},R.prototype.removeFilter=function(e,t,n){var i=this;Array.isArray(e)||(e=[{field:e,type:t,value:n}]),e.forEach(function(e){var t=-1;t="object"==r(e.field)?i.filterList.findIndex(function(t){return e===t}):i.filterList.findIndex(function(t){return e.field===t.field&&e.type===t.type&&e.value===t.value}),t>-1?(i.filterList.splice(t,1),i.changed=!0):console.warn("Filter Error - No matching filter type found, ignoring: ",e.type)}),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},R.prototype.clearFilter=function(e){this.filterList=[],e&&this.clearHeaderFilter(),this.changed=!0,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},R.prototype.clearHeaderFilter=function(){var e=this;this.headerFilters={},e.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach(function(t){"undefined"!==typeof t.modules.filter.value&&delete t.modules.filter.value,t.modules.filter.prevSuccess=void 0,e.reloadHeaderFilter(t)}),this.changed=!0},R.prototype.search=function(e,t,n,i){var o=this,r=[],s=[];return Array.isArray(t)||(t=[{field:t,type:n,value:i}]),t.forEach(function(e){e=o.findFilter(e),e&&s.push(e)}),this.table.rowManager.rows.forEach(function(t){var n=!0;s.forEach(function(e){o.filterRecurse(e,t.getData())||(n=!1)}),n&&r.push("data"===e?t.getData("data"):t.getComponent())}),r},R.prototype.filter=function(e,t){var n=this,i=[],o=[];return n.table.options.dataFiltering&&n.table.options.dataFiltering.call(n.table,n.getFilters()),n.table.options.ajaxFiltering||!n.filterList.length&&!Object.keys(n.headerFilters).length?i=e.slice(0):e.forEach(function(e){n.filterRow(e)&&i.push(e)}),n.table.options.dataFiltered&&(i.forEach(function(e){o.push(e.getComponent())}),n.table.options.dataFiltered.call(n.table,n.getFilters(),o)),i},R.prototype.filterRow=function(e,t){var n=this,i=!0,o=e.getData();for(var r in n.filterList.forEach(function(e){n.filterRecurse(e,o)||(i=!1)}),n.headerFilters)n.headerFilters[r].func(o)||(i=!1);return i},R.prototype.filterRecurse=function(e,t){var n=this,i=!1;return Array.isArray(e)?e.forEach(function(e){n.filterRecurse(e,t)&&(i=!0)}):i=e.func(t),i},R.prototype.filters={"=":function(e,t,n,i){return t==e},"<":function(e,t,n,i){return t":function(e,t,n,i){return t>e},">=":function(e,t,n,i){return t>=e},"!=":function(e,t,n,i){return t!=e},regex:function(e,t,n,i){return"string"==typeof e&&(e=new RegExp(e)),e.test(t)},like:function(e,t,n,i){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().indexOf(e.toLowerCase())>-1},keywords:function(e,t,n,i){var o=e.toLowerCase().split("undefined"===typeof i.separator?" ":i.separator),r=String(null===t||"undefined"===typeof t?"":t).toLowerCase(),s=[];return o.forEach(function(e){r.includes(e)&&s.push(!0)}),i.matchAll?s.length===o.length:!!s.length},starts:function(e,t,n,i){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().startsWith(e.toLowerCase())},ends:function(e,t,n,i){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().endsWith(e.toLowerCase())},in:function(e,t,n,i){return Array.isArray(e)?!e.length||e.indexOf(t)>-1:(console.warn("Filter Error - filter value is not an array:",e),!1)}},g.prototype.registerModule("filter",R);var k=function(e){this.table=e};k.prototype.initializeColumn=function(e){e.modules.format=this.lookupFormatter(e,""),"undefined"!==typeof e.definition.formatterPrint&&(e.modules.format.print=this.lookupFormatter(e,"Print")),"undefined"!==typeof e.definition.formatterClipboard&&(e.modules.format.clipboard=this.lookupFormatter(e,"Clipboard")),"undefined"!==typeof e.definition.formatterHtmlOutput&&(e.modules.format.htmlOutput=this.lookupFormatter(e,"HtmlOutput"))},k.prototype.lookupFormatter=function(e,t){var n={params:e.definition["formatter"+t+"Params"]||{}},i=e.definition["formatter"+t];switch("undefined"===typeof i?"undefined":r(i)){case"string":"tick"===i&&(i="tickCross","undefined"==typeof n.params.crossElement&&(n.params.crossElement=!1),console.warn("DEPRECATION WARNING - the tick formatter has been deprecated, please use the tickCross formatter with the crossElement param set to false")),this.formatters[i]?n.formatter=this.formatters[i]:(console.warn("Formatter Error - No such formatter found: ",i),n.formatter=this.formatters.plaintext);break;case"function":n.formatter=i;break;default:n.formatter=this.formatters.plaintext;break}return n},k.prototype.cellRendered=function(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)},k.prototype.formatValue=function(e){var t=e.getComponent(),n="function"===typeof e.column.modules.format.params?e.column.modules.format.params(t):e.column.modules.format.params;function i(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1}return e.column.modules.format.formatter.call(this,t,n,i)},k.prototype.formatExportValue=function(e,t){var n,i=e.column.modules.format[t];if(i){var o=function(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1};return n="function"===typeof i.params?i.params(component):i.params,i.formatter.call(this,e.getComponent(),n,o)}return this.formatValue(e)},k.prototype.sanitizeHTML=function(e){if(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}return e},k.prototype.emptyToSpace=function(e){return null===e||"undefined"===typeof e||""===e?" ":e},k.prototype.getFormatter=function(e){switch("undefined"===typeof e?"undefined":r(e)){case"string":this.formatters[e]?e=this.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),e=this.formatters.plaintext);break;case"function":e=e;break;default:e=this.formatters.plaintext;break}return e},k.prototype.formatters={plaintext:function(e,t,n){return this.emptyToSpace(this.sanitizeHTML(e.getValue()))},html:function(e,t,n){return e.getValue()},textarea:function(e,t,n){return e.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(e.getValue()))},money:function(e,t,n){var i,o,r,s,a=parseFloat(e.getValue()),c=t.decimal||".",l=t.thousand||",",u=t.symbol||"",d=!!t.symbolAfter,h="undefined"!==typeof t.precision?t.precision:2;if(isNaN(a))return this.emptyToSpace(this.sanitizeHTML(e.getValue()));i=!1!==h?a.toFixed(h):a,i=String(i).split("."),o=i[0],r=i.length>1?c+i[1]:"",s=/(\d+)(\d{3})/;while(s.test(o))o=o.replace(s,"$1"+l+"$2");return d?o+r+u:u+o+r},link:function(e,t,n){var i,o=e.getValue(),s=t.urlPrefix||"",a=t.download,c=o,l=document.createElement("a");if(t.labelField&&(i=e.getData(),c=i[t.labelField]),t.label)switch(r(t.label)){case"string":c=t.label;break;case"function":c=t.label(e);break}if(c){if(t.urlField&&(i=e.getData(),o=i[t.urlField]),t.url)switch(r(t.url)){case"string":o=t.url;break;case"function":o=t.url(e);break}return l.setAttribute("href",s+o),t.target&&l.setAttribute("target",t.target),t.download&&(a="function"==typeof a?a(e):!0===a?"":a,l.setAttribute("download",a)),l.innerHTML=this.emptyToSpace(this.sanitizeHTML(c)),l}return" "},image:function(e,t,n){var i=document.createElement("img"),o=e.getValue();switch(t.urlPrefix&&(o=t.urlPrefix+e.getValue()),t.urlSuffix&&(o+=t.urlSuffix),i.setAttribute("src",o),r(t.height)){case"number":i.style.height=t.height+"px";break;case"string":i.style.height=t.height;break}switch(r(t.width)){case"number":i.style.width=t.width+"px";break;case"string":i.style.width=t.width;break}return i.addEventListener("load",function(){e.getRow().normalizeHeight()}),i},tickCross:function(e,t,n){var i=e.getValue(),o=e.getElement(),r=t.allowEmpty,s=t.allowTruthy,a="undefined"!==typeof t.tickElement?t.tickElement:'',c="undefined"!==typeof t.crossElement?t.crossElement:'';return s&&i||!0===i||"true"===i||"True"===i||1===i||"1"===i?(o.setAttribute("aria-checked",!0),a||""):!r||"null"!==i&&""!==i&&null!==i&&"undefined"!==typeof i?(o.setAttribute("aria-checked",!1),c||""):(o.setAttribute("aria-checked","mixed"),"")},datetime:function(e,t,n){var i=t.inputFormat||"YYYY-MM-DD hh:mm:ss",o=t.outputFormat||"DD/MM/YYYY hh:mm:ss",r="undefined"!==typeof t.invalidPlaceholder?t.invalidPlaceholder:"",s=e.getValue(),a=moment(s,i);return a.isValid()?t.timezone?a.tz(t.timezone).format(o):a.format(o):!0===r?s:"function"===typeof r?r(s):r},datetimediff:function(e,t,n){var i=t.inputFormat||"YYYY-MM-DD hh:mm:ss",o="undefined"!==typeof t.invalidPlaceholder?t.invalidPlaceholder:"",r="undefined"!==typeof t.suffix&&t.suffix,s="undefined"!==typeof t.unit?t.unit:void 0,a="undefined"!==typeof t.humanize&&t.humanize,c="undefined"!==typeof t.date?t.date:moment(),l=e.getValue(),u=moment(l,i);return u.isValid()?a?moment.duration(u.diff(c)).humanize(r):u.diff(c,s)+(r?" "+r:""):!0===o?l:"function"===typeof o?o(l):o},lookup:function(e,t,n){var i=e.getValue();return"undefined"===typeof t[i]?(console.warn("Missing display value for "+i),i):t[i]},star:function(e,t,n){var i=e.getValue(),o=e.getElement(),r=t&&t.stars?t.stars:5,s=document.createElement("span"),a=document.createElementNS("http://www.w3.org/2000/svg","svg"),c='',l='';s.style.verticalAlign="middle",a.setAttribute("width","14"),a.setAttribute("height","14"),a.setAttribute("viewBox","0 0 512 512"),a.setAttribute("xml:space","preserve"),a.style.padding="0 1px",i=i&&!isNaN(i)?parseInt(i):0,i=Math.max(0,Math.min(i,r));for(var u=1;u<=r;u++){var d=a.cloneNode(!0);d.innerHTML=u<=i?c:l,s.appendChild(d)}return o.style.whiteSpace="nowrap",o.style.overflow="hidden",o.style.textOverflow="ellipsis",o.setAttribute("aria-label",i),s},traffic:function(e,t,n){var i,o,s=this.sanitizeHTML(e.getValue())||0,a=document.createElement("span"),c=t&&t.max?t.max:100,l=t&&t.min?t.min:0,u=t&&"undefined"!==typeof t.color?t.color:["red","orange","green"],d="#666666";if(!isNaN(s)&&"undefined"!==typeof e.getValue()){switch(a.classList.add("tabulator-traffic-light"),o=parseFloat(s)<=c?parseFloat(s):c,o=parseFloat(o)>=l?parseFloat(o):l,i=(c-l)/100,o=Math.round((o-l)/i),"undefined"===typeof u?"undefined":r(u)){case"string":d=u;break;case"function":d=u(s);break;case"object":if(Array.isArray(u)){var h=100/u.length,p=Math.floor(o/h);p=Math.min(p,u.length-1),p=Math.max(p,0),d=u[p];break}}return a.style.backgroundColor=d,a}},progress:function(e,t,n){var i,o,s,a,c,l=this.sanitizeHTML(e.getValue())||0,u=e.getElement(),d=t&&t.max?t.max:100,h=t&&t.min?t.min:0,f=t&&t.legendAlign?t.legendAlign:"center";switch(o=parseFloat(l)<=d?parseFloat(l):d,o=parseFloat(o)>=h?parseFloat(o):h,i=(d-h)/100,o=Math.round((o-h)/i),r(t.color)){case"string":s=t.color;break;case"function":s=t.color(l);break;case"object":if(Array.isArray(t.color)){var m=100/t.color.length,g=Math.floor(o/m);g=Math.min(g,t.color.length-1),g=Math.max(g,0),s=t.color[g];break}default:s="#2DC214"}switch(r(t.legend)){case"string":a=t.legend;break;case"function":a=t.legend(l);break;case"boolean":a=l;break;default:a=!1}switch(r(t.legendColor)){case"string":c=t.legendColor;break;case"function":c=t.legendColor(l);break;case"object":if(Array.isArray(t.legendColor)){m=100/t.legendColor.length,g=Math.floor(o/m);g=Math.min(g,t.legendColor.length-1),g=Math.max(g,0),c=t.legendColor[g]}break;default:c="#000"}u.style.minWidth="30px",u.style.position="relative",u.setAttribute("aria-label",o);var v=document.createElement("div");if(v.style.display="inline-block",v.style.position="relative",v.style.width=o+"%",v.style.backgroundColor=s,v.style.height="100%",v.setAttribute("data-max",d),v.setAttribute("data-min",h),a){var b=document.createElement("div");b.style.position="absolute",b.style.top="4px",b.style.left=0,b.style.textAlign=f,b.style.width="100%",b.style.color=c,b.innerHTML=a}return n(function(){if(!(e instanceof p)){var t=document.createElement("div");t.style.position="absolute",t.style.top="4px",t.style.bottom="4px",t.style.left="4px",t.style.right="4px",u.appendChild(t),u=t}u.appendChild(v),a&&u.appendChild(b)}),""},color:function(e,t,n){return e.getElement().style.backgroundColor=this.sanitizeHTML(e.getValue()),""},buttonTick:function(e,t,n){return''},buttonCross:function(e,t,n){return''},rownum:function(e,t,n){return this.table.rowManager.activeRows.indexOf(e.getRow()._getSelf())+1},handle:function(e,t,n){return e.getElement().classList.add("tabulator-row-handle"),"
"},responsiveCollapse:function(e,t,n){var i=document.createElement("div"),o=e.getRow()._row.modules.responsiveLayout;function r(e){var t=o.element;o.open=e,t&&(o.open?(i.classList.add("open"),t.style.display=""):(i.classList.remove("open"),t.style.display="none"))}return i.classList.add("tabulator-responsive-collapse-toggle"),i.innerHTML="+-",e.getElement().classList.add("tabulator-row-handle"),i.addEventListener("click",function(e){e.stopImmediatePropagation(),r(!o.open)}),r(o.open),i},rowSelection:function(e,t,n){var i=this,o=document.createElement("input");if(o.type="checkbox",this.table.modExists("selectRow",!0))if(o.addEventListener("click",function(e){e.stopPropagation()}),"function"==typeof e.getRow){var r=e.getRow();r instanceof d?(o.addEventListener("change",function(e){r.toggleSelect()}),o.checked=r.isSelected&&r.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(r,o)):o=""}else o.addEventListener("change",function(e){i.table.modules.selectRow.selectedRows.length?i.table.deselectRow():i.table.selectRow(t.rowRange)}),this.table.modules.selectRow.registerHeaderSelectCheckbox(o);return o}},g.prototype.registerModule("format",k);var z=function(e){this.table=e,this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightPadding=0,this.initializationMode="left",this.active=!1,this.scrollEndTimer=!1};z.prototype.reset=function(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightMargin=0,this.active=!1,this.table.columnManager.headersElement.style.marginLeft=0,this.table.columnManager.element.style.paddingRight=0},z.prototype.initializeColumn=function(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,"left"==this.initializationMode?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")},z.prototype.frozenCheck=function(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen},z.prototype.scrollHorizontal=function(){var e,t=this;this.active&&(clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout(function(){t.layout()},100),e=this.table.rowManager.getVisibleRows(),this.calcMargins(),this.layoutColumnPosition(),this.layoutCalcRows(),e.forEach(function(e){"row"===e.type&&t.layoutRow(e)}),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},z.prototype.calcMargins=function(){this.leftMargin=this._calcSpace(this.leftColumns,this.leftColumns.length)+"px",this.table.columnManager.headersElement.style.marginLeft=this.leftMargin,this.rightMargin=this._calcSpace(this.rightColumns,this.rightColumns.length)+"px",this.table.columnManager.element.style.paddingRight=this.rightMargin,this.rightPadding=this.table.rowManager.element.clientWidth+this.table.columnManager.scrollLeft},z.prototype.layoutCalcRows=function(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow))},z.prototype.layoutColumnPosition=function(e){var t=this,n=[];this.leftColumns.forEach(function(i,o){if(i.modules.frozen.margin=t._calcSpace(t.leftColumns,o)+t.table.columnManager.scrollLeft+"px",o==t.leftColumns.length-1?i.modules.frozen.edge=!0:i.modules.frozen.edge=!1,i.parent.isGroup){var r=t.getColGroupParentElement(i);n.includes(r)||(t.layoutElement(r,i),n.push(r)),i.modules.frozen.edge&&r.classList.add("tabulator-frozen-"+i.modules.frozen.position)}else t.layoutElement(i.getElement(),i);e&&i.cells.forEach(function(e){t.layoutElement(e.getElement(!0),i)})}),this.rightColumns.forEach(function(n,i){n.modules.frozen.margin=t.rightPadding-t._calcSpace(t.rightColumns,i+1)+"px",i==t.rightColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup?t.layoutElement(t.getColGroupParentElement(n),n):t.layoutElement(n.getElement(),n),e&&n.cells.forEach(function(e){t.layoutElement(e.getElement(!0),n)})})},z.prototype.getColGroupParentElement=function(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()},z.prototype.layout=function(){var e=this;e.active&&(this.calcMargins(),e.table.rowManager.getDisplayRows().forEach(function(t){"row"===t.type&&e.layoutRow(t)}),this.layoutCalcRows(),this.layoutColumnPosition(!0),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},z.prototype.layoutRow=function(e){var t=this,n=e.getElement();n.style.paddingLeft=this.leftMargin,this.leftColumns.forEach(function(n){var i=e.getCell(n);i&&t.layoutElement(i.getElement(!0),n)}),this.rightColumns.forEach(function(n){var i=e.getCell(n);i&&t.layoutElement(i.getElement(!0),n)})},z.prototype.layoutElement=function(e,t){t.modules.frozen&&(e.style.position="absolute",e.style.left=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),t.modules.frozen.edge&&e.classList.add("tabulator-frozen-"+t.modules.frozen.position))},z.prototype._calcSpace=function(e,t){for(var n=0,i=0;i-1&&t.splice(n,1)}),t},P.prototype.freezeRow=function(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.table.rowManager.adjustTableSize(),this.rows.push(e),this.table.rowManager.refreshActiveData("display"),this.styleRows())},P.prototype.unfreezeRow=function(e){this.rows.indexOf(e);e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.table.rowManager.refreshActiveData("display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")},P.prototype.detachRow=function(e){var t=this.rows.indexOf(e);if(t>-1){var n=e.getElement();n.parentNode.removeChild(n),this.rows.splice(t,1)}},P.prototype.styleRows=function(e){var t=this;this.rows.forEach(function(e,n){t.table.rowManager.styleRow(e,n)})},g.prototype.registerModule("frozenRows",P);var N=function(e){this._group=e,this.type="GroupComponent"};N.prototype.getKey=function(){return this._group.key},N.prototype.getField=function(){return this._group.field},N.prototype.getElement=function(){return this._group.element},N.prototype.getRows=function(){return this._group.getRows(!0)},N.prototype.getSubGroups=function(){return this._group.getSubGroups(!0)},N.prototype.getParentGroup=function(){return!!this._group.parent&&this._group.parent.getComponent()},N.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._group.visible},N.prototype.isVisible=function(){return this._group.visible},N.prototype.show=function(){this._group.show()},N.prototype.hide=function(){this._group.hide()},N.prototype.toggle=function(){this._group.toggleVisibility()},N.prototype._getSelf=function(){return this._group},N.prototype.getTable=function(){return this._group.groupManager.table};var I=function(e,t,n,i,o,r,s){this.groupManager=e,this.parent=t,this.key=i,this.level=n,this.field=o,this.hasSubGroups=n-1?n?this.rows.splice(o+1,0,e):this.rows.splice(o,0,e):n?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)},I.prototype.scrollHeader=function(e){this.arrowElement.style.marginLeft=e,this.groupList.forEach(function(t){t.scrollHeader(e)})},I.prototype.getRowIndex=function(e){},I.prototype.conformRowData=function(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e},I.prototype.removeRow=function(e){var t=this.rows.indexOf(e),n=e.getElement();t>-1&&this.rows.splice(t,1),this.groupManager.table.options.groupValues||this.rows.length?(n.parentNode&&n.parentNode.removeChild(n),this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)):(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0))},I.prototype.removeGroup=function(e){var t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],t=this.groupList.indexOf(e),t>-1&&this.groupList.splice(t,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))},I.prototype.getHeadersAndRows=function(e){var t=[];return t.push(this),this._visSet(),this.visible?this.groupList.length?this.groupList.forEach(function(n){t=t.concat(n.getHeadersAndRows(e))}):(!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top)),t=t.concat(this.rows),!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.table.options.columnCalcs||this.groupManager.table.modExists("columnCalcs")&&(!e&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top))),!e&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom)))),t},I.prototype.getData=function(e,t){var n=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach(function(e){n.push(e.getData(t||"data"))}),n},I.prototype.getRowCount=function(){var e=0;return this.groupList.length?this.groupList.forEach(function(t){e+=t.getRowCount()}):e=this.rows.length,e},I.prototype.toggleVisibility=function(){this.visible?this.hide():this.show()},I.prototype.hide=function(){this.visible=!1,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination?this.groupManager.updateGroupRows(!0):(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach(function(e){var t=e.getHeadersAndRows();t.forEach(function(e){e.detachElement()})}):this.rows.forEach(function(e){var t=e.getElement();t.parentNode.removeChild(t)}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()),this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!1)},I.prototype.show=function(){var e=this;if(e.visible=!0,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!0);else{this.element.classList.add("tabulator-group-visible");var t=e.getElement();this.groupList.length?this.groupList.forEach(function(e){var n=e.getHeadersAndRows();n.forEach(function(e){var n=e.getElement();t.parentNode.insertBefore(n,t.nextSibling),e.initialize(),t=n})}):e.rows.forEach(function(e){var n=e.getElement();t.parentNode.insertBefore(n,t.nextSibling),e.initialize(),t=n}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()}this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!0)},I.prototype._visSet=function(){var e=[];"function"==typeof this.visible&&(this.rows.forEach(function(t){e.push(t.getData())}),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))},I.prototype.getRowGroup=function(e){var t=!1;return this.groupList.length?this.groupList.forEach(function(n){var i=n.getRowGroup(e);i&&(t=i)}):this.rows.find(function(t){return t===e})&&(t=this),t},I.prototype.getSubGroups=function(e){var t=[];return this.groupList.forEach(function(n){t.push(e?n.getComponent():n)}),t},I.prototype.getRows=function(e){var t=[];return this.rows.forEach(function(n){t.push(e?n.getComponent():n)}),t},I.prototype.generateGroupHeaderContents=function(){var e=[];this.rows.forEach(function(t){e.push(t.getData())}),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());while(this.element.firstChild)this.element.removeChild(this.element.firstChild);"string"===typeof this.elementContents?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)},I.prototype.getPath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.unshift(this.key),this.parent&&this.parent.getPath(e),e},I.prototype.getElement=function(){this.addBindingsd=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;ei.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),e.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],e.table.modules.localize.bind("groups|item",function(t,n){e.headerGenerator[0]=function(e,i,o){return("undefined"===typeof e?"":e)+"("+i+" "+(1===i?t:n.groups.items)+")"}}),this.groupIDLookups=[],Array.isArray(t)||t)this.table.modExists("columnCalcs")&&"table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs();else if(this.table.modExists("columnCalcs")&&"group"!=this.table.options.columnCalcs){var o=this.table.columnManager.getRealColumns();o.forEach(function(t){t.definition.topCalc&&e.table.modules.columnCalcs.initializeTopRow(),t.definition.bottomCalc&&e.table.modules.columnCalcs.initializeBottomRow()})}Array.isArray(t)||(t=[t]),t.forEach(function(t,n){var i,o;"function"==typeof t?i=t:(o=e.table.columnManager.getColumnByField(t),i=o?function(e){return o.getFieldValue(e)}:function(e){return e[t]}),e.groupIDLookups.push({field:"function"!==typeof t&&t,func:i,values:!!e.allowedValues&&e.allowedValues[n]})}),n&&(Array.isArray(n)||(n=[n]),n.forEach(function(e){e="function"==typeof e?e:function(){return!0}}),e.startOpen=n),i&&(e.headerGenerator=Array.isArray(i)?i:[i]),this.initialized=!0},D.prototype.setDisplayIndex=function(e){this.displayIndex=e},D.prototype.getDisplayIndex=function(){return this.displayIndex},D.prototype.getRows=function(e){return this.groupIDLookups.length?(this.table.options.dataGrouping.call(this.table),this.generateGroups(e),this.table.options.dataGrouped&&this.table.options.dataGrouped.call(this.table,this.getGroups(!0)),this.updateGroupRows()):e.slice(0)},D.prototype.getGroups=function(e){var t=[];return this.groupList.forEach(function(n){t.push(e?n.getComponent():n)}),t},D.prototype.getChildGroups=function(e){var t=this,n=[];return e||(e=this),e.groupList.forEach(function(e){e.groupList.length?n=n.concat(t.getChildGroups(e)):n.push(e)}),n},D.prototype.wipe=function(){this.groupList.forEach(function(e){e.wipe()})},D.prototype.pullGroupListData=function(e){var t=this,n=[];return e.forEach(function(e){var i={level:0,rowCount:0,headerContent:""},o=[];e.hasSubGroups?(o=t.pullGroupListData(e.groupList),i.level=e.level,i.rowCount=o.length-e.groupList.length,i.headerContent=e.generator(e.key,i.rowCount,e.rows,e),n.push(i),n=n.concat(o)):(i.level=e.level,i.headerContent=e.generator(e.key,e.rows.length,e.rows,e),i.rowCount=e.getRows().length,n.push(i),e.getRows().forEach(function(e){n.push(e.getData("data"))}))}),n},D.prototype.getGroupedData=function(){return this.pullGroupListData(this.groupList)},D.prototype.getRowGroup=function(e){var t=!1;return this.groupList.forEach(function(n){var i=n.getRowGroup(e);i&&(t=i)}),t},D.prototype.countGroups=function(){return this.groupList.length},D.prototype.generateGroups=function(e){var t=this,n=t.groups;t.groups={},t.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach(function(e){t.createGroup(e,0,n)}),e.forEach(function(e){t.assignRowToExistingGroup(e,n)})):e.forEach(function(e){t.assignRowToGroup(e,n)})},D.prototype.createGroup=function(e,t,n){var i,o=t+"_"+e;n=n||[],i=new I(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],n[o]),this.groups[o]=i,this.groupList.push(i)},D.prototype.assignRowToExistingGroup=function(e,t){var n=this.groupIDLookups[0].func(e.getData()),i="0_"+n;this.groups[i]&&this.groups[i].addRow(e)},D.prototype.assignRowToGroup=function(e,t){var n=this.groupIDLookups[0].func(e.getData()),i=!this.groups["0_"+n];return i&&this.createGroup(n,0,t),this.groups["0_"+n].addRow(e),!i},D.prototype.reassignRowToGroup=function(e){var t=e.getGroup(),n=t.getPath(),i=this.getExpectedPath(e),o=!0;o=n.length==i.length&&n.every(function(e,t){return e===i[t]});o||(t.removeRow(e),this.assignRowToGroup(e,self.groups),this.table.rowManager.refreshActiveData("group",!1,!0))},D.prototype.getExpectedPath=function(e){var t=[],n=e.getData();return this.groupIDLookups.forEach(function(e){t.push(e.func(n))}),t},D.prototype.updateGroupRows=function(e){var t=this,n=[];if(t.groupList.forEach(function(e){n=n.concat(e.getHeadersAndRows())}),e){var i=t.table.rowManager.setDisplayRows(n,this.getDisplayIndex());!0!==i&&this.setDisplayIndex(i),t.table.rowManager.refreshActiveData("group",!0,!0)}return n},D.prototype.scrollHeaders=function(e){this.table.options.virtualDomHoz&&(e-=this.table.vdomHoz.vDomPadLeft),e+="px",this.groupList.forEach(function(t){t.scrollHeader(e)})},D.prototype.removeGroup=function(e){var t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],t=this.groupList.indexOf(e),t>-1&&this.groupList.splice(t,1))},g.prototype.registerModule("groupRows",D);var B=function(e){this.table=e,this.history=[],this.index=-1};B.prototype.clear=function(){this.history=[],this.index=-1},B.prototype.action=function(e,t,n){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:n}),this.index++},B.prototype.getHistoryUndoSize=function(){return this.index+1},B.prototype.getHistoryRedoSize=function(){return this.history.length-(this.index+1)},B.prototype.clearComponentHistory=function(e){var t=this.history.findIndex(function(t){return t.component===e});t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))},B.prototype.undo=function(){if(this.index>-1){var e=this.history[this.index];return this.undoers[e.type].call(this,e),this.index--,this.table.options.historyUndo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Undo Error - No more history to undo"),!1},B.prototype.redo=function(){if(this.history.length-1>this.index){this.index++;var e=this.history[this.index];return this.redoers[e.type].call(this,e),this.table.options.historyRedo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Redo Error - No more history to redo"),!1},B.prototype.undoers={cellEdit:function(e){e.component.setValueProcessData(e.data.oldValue)},rowAdd:function(e){e.component.deleteActual()},rowDelete:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t)},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.posFrom],!e.data.after),this.table.rowManager.redraw()}},B.prototype.redoers={cellEdit:function(e){e.component.setValueProcessData(e.data.newValue)},rowAdd:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t)},rowDelete:function(e){e.component.deleteActual()},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.posTo],e.data.after),this.table.rowManager.redraw()}},B.prototype._rebindRow=function(e,t){this.history.forEach(function(n){if(n.component instanceof h)n.component===e&&(n.component=t);else if(n.component instanceof f&&n.component.row===e){var i=n.component.column.getField();i&&(n.component=t.getCell(i))}})},g.prototype.registerModule("history",B);var q=function(e){this.table=e,this.fieldIndex=[],this.hasIndex=!1};q.prototype.parseTable=function(){var e=this,t=e.table.element,n=e.table.options,i=(n.columns,t.getElementsByTagName("th")),o=t.getElementsByTagName("tbody")[0],s=[];e.hasIndex=!1,e.table.options.htmlImporting.call(this.table),o=o?o.getElementsByTagName("tr"):[],e._extractOptions(t,n),i.length?e._extractHeaders(i,o):e._generateBlankHeaders(i,o);for(var a=0;a-1&&e.pressedKeys.splice(o,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)},j.prototype.clearBindings=function(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)},j.prototype.checkBinding=function(e,t){var n=this,i=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta&&(t.keys.forEach(function(e){var t=n.pressedKeys.indexOf(e);-1==t&&(i=!1)}),i&&t.action.call(n,e),!0)},j.prototype.bindings={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35,undo:"ctrl + 90",redo:"ctrl + 89",copyToClipboard:"ctrl + 67"},j.prototype.actions={keyBlock:function(e){e.stopPropagation(),e.preventDefault()},scrollPageUp:function(e){var t=this.table.rowManager,n=t.scrollTop-t.height;t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(n>=0?t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(e){var t=this.table.rowManager,n=t.scrollTop+t.height,i=t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(n<=i?t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1]),this.table.element.focus()},navPrev:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().prev()))},navNext:function(e){var t,n=!1,i=this.table.options.tabEndNewRow;this.table.modExists("edit")&&(n=this.table.modules.edit.currentCell,n&&(e.preventDefault(),t=n.nav(),t.next()||i&&(n.getElement().firstChild.blur(),i=!0===i?this.table.addRow({}):"function"==typeof i?this.table.addRow(i(n.row.getComponent())):this.table.addRow(Object.assign({},i)),i.then(function(){setTimeout(function(){t.next()})}))))},navLeft:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().left()))},navRight:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().right()))},navUp:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().up()))},navDown:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().down()))},undo:function(e){var t=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t||(e.preventDefault(),this.table.modules.history.undo()))},redo:function(e){var t=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t||(e.preventDefault(),this.table.modules.history.redo()))},copyToClipboard:function(e){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},g.prototype.registerModule("keybindings",j);var W=function(e){this.table=e,this.menuElements=[],this.blurEvent=this.hideMenu.bind(this),this.escEvent=this.escMenu.bind(this),this.nestedMenuBlock=!1,this.positionReversedX=!1};W.prototype.initializeColumnHeader=function(e){var t,n=this;e.definition.headerContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,e.definition.headerContextMenu)),this.tapHold(e,e.definition.headerContextMenu)),e.definition.headerMenu&&(t=document.createElement("span"),t.classList.add("tabulator-header-menu-button"),t.innerHTML="⋮",t.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault(),n.LoadMenuEvent(e,e.definition.headerMenu,t)}),e.titleElement.insertBefore(t,e.titleElement.firstChild))},W.prototype.LoadMenuEvent=function(e,t,n){t="function"==typeof t?t.call(this.table,e.getComponent(),n):t,this.loadMenu(n,e,t)},W.prototype.tapHold=function(e,t){var n=this,i=e.getElement(),o=null,r=!1;i.addEventListener("touchstart",function(i){clearTimeout(o),r=!1,o=setTimeout(function(){clearTimeout(o),o=null,r=!0,n.LoadMenuEvent(e,t,i)},1e3)},{passive:!0}),i.addEventListener("touchend",function(e){clearTimeout(o),o=null,r&&e.preventDefault()})},W.prototype.initializeCell=function(e){e.column.definition.contextMenu&&(e.getElement(!0).addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,e.column.definition.contextMenu)),this.tapHold(e,e.column.definition.contextMenu)),e.column.definition.clickMenu&&e.getElement(!0).addEventListener("click",this.LoadMenuEvent.bind(this,e,e.column.definition.clickMenu))},W.prototype.initializeRow=function(e){this.table.options.rowContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,this.table.options.rowContextMenu)),this.tapHold(e,this.table.options.rowContextMenu)),this.table.options.rowClickMenu&&e.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,e,this.table.options.rowClickMenu))},W.prototype.initializeGroup=function(e){this.table.options.groupContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,this.table.options.groupContextMenu)),this.tapHold(e,this.table.options.groupContextMenu)),this.table.options.groupClickMenu&&e.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,e,this.table.options.groupClickMenu))},W.prototype.loadMenu=function(e,t,n,i){var o=this,r=!(e instanceof MouseEvent),s=document.createElement("div");if(s.classList.add("tabulator-menu"),r||e.preventDefault(),n&&n.length){if(!i){if(this.nestedMenuBlock){if(this.isOpen())return}else this.nestedMenuBlock=setTimeout(function(){o.nestedMenuBlock=!1},100);this.hideMenu(),this.menuElements=[]}n.forEach(function(e){var n=document.createElement("div"),i=e.label,r=e.disabled;e.separator?n.classList.add("tabulator-menu-separator"):(n.classList.add("tabulator-menu-item"),"function"==typeof i&&(i=i.call(o.table,t.getComponent())),i instanceof Node?n.appendChild(i):n.innerHTML=i,"function"==typeof r&&(r=r.call(o.table,t.getComponent())),r?(n.classList.add("tabulator-menu-item-disabled"),n.addEventListener("click",function(e){e.stopPropagation()})):e.menu&&e.menu.length?n.addEventListener("click",function(i){i.stopPropagation(),o.hideOldSubMenus(s),o.loadMenu(i,t,e.menu,n)}):e.action&&n.addEventListener("click",function(n){e.action(n,t.getComponent())}),e.menu&&e.menu.length&&n.classList.add("tabulator-menu-item-submenu")),s.appendChild(n)}),s.addEventListener("click",function(e){o.hideMenu()}),this.menuElements.push(s),this.positionMenu(s,i,r,e)}},W.prototype.hideOldSubMenus=function(e){var t=this.menuElements.indexOf(e);if(t>-1)for(var n=this.menuElements.length-1;n>t;n--){var i=this.menuElements[n];i.parentNode&&i.parentNode.removeChild(i),this.menuElements.pop()}},W.prototype.positionMenu=function(e,t,n,i){var o,r,s,a=this,c=Math.max(document.body.offsetHeight,window.innerHeight);t?(s=g.prototype.helpers.elOffset(t),o=s.left+t.offsetWidth,r=s.top-1):(o=n?i.touches[0].pageX:i.pageX,r=n?i.touches[0].pageY:i.pageY,this.positionReversedX=!1),e.style.top=r+"px",e.style.left=o+"px",setTimeout(function(){a.table.rowManager.element.addEventListener("scroll",a.blurEvent),document.body.addEventListener("click",a.blurEvent),document.body.addEventListener("contextmenu",a.blurEvent),window.addEventListener("resize",a.blurEvent),document.body.addEventListener("keydown",a.escEvent)},100),document.body.appendChild(e),r+e.offsetHeight>=c&&(e.style.top="",e.style.bottom=t?c-s.top-t.offsetHeight-1+"px":c-r+"px"),(o+e.offsetWidth>=document.body.offsetWidth||this.positionReversedX)&&(e.style.left="",e.style.right=t?document.documentElement.offsetWidth-s.left+"px":document.documentElement.offsetWidth-o+"px",this.positionReversedX=!0)},W.prototype.isOpen=function(){return!!this.menuElements.length},W.prototype.escMenu=function(e){27==e.keyCode&&this.hideMenu()},W.prototype.hideMenu=function(){this.menuElements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent)},W.prototype.menus={},g.prototype.registerModule("menu",W);var F=function(e){this.table=e,this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this)};F.prototype.createPlaceholderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e},F.prototype.initializeColumn=function(e){var t,n=this,i={};e.modules.frozen||(t=e.getElement(),i.mousemove=function(i){e.parent===n.moving.parent&&((n.touchMove?i.touches[0].pageX:i.pageX)-g.prototype.helpers.elOffset(t).left+n.table.columnManager.element.scrollLeft>e.getWidth()/2?n.toCol===e&&n.toColAfter||(t.parentNode.insertBefore(n.placeholderElement,t.nextSibling),n.moveColumn(e,!0)):(n.toCol!==e||n.toColAfter)&&(t.parentNode.insertBefore(n.placeholderElement,t),n.moveColumn(e,!1)))}.bind(n),t.addEventListener("mousedown",function(t){n.touchMove=!1,1===t.which&&(n.checkTimeout=setTimeout(function(){n.startMove(t,e)},n.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)}),n.bindTouchEvents(e)),e.modules.moveColumn=i},F.prototype.bindTouchEvents=function(e){var t,n,i,o,r,s,a=this,c=e.getElement(),l=!1;c.addEventListener("touchstart",function(c){a.checkTimeout=setTimeout(function(){a.touchMove=!0,e,t=e.nextColumn(),i=t?t.getWidth()/2:0,n=e.prevColumn(),o=n?n.getWidth()/2:0,r=0,s=0,l=!1,a.startMove(c,e)},a.checkPeriod)},{passive:!0}),c.addEventListener("touchmove",function(c){var u,d;a.moving&&(a.moveHover(c),l||(l=c.touches[0].pageX),u=c.touches[0].pageX-l,u>0?t&&u-r>i&&(d=t,d!==e&&(l=c.touches[0].pageX,d.getElement().parentNode.insertBefore(a.placeholderElement,d.getElement().nextSibling),a.moveColumn(d,!0))):n&&-u-s>o&&(d=n,d!==e&&(l=c.touches[0].pageX,d.getElement().parentNode.insertBefore(a.placeholderElement,d.getElement()),a.moveColumn(d,!1))),d&&(d,t=d.nextColumn(),r=i,i=t?t.getWidth()/2:0,n=d.prevColumn(),s=o,o=n?n.getWidth()/2:0))},{passive:!0}),c.addEventListener("touchend",function(e){a.checkTimeout&&clearTimeout(a.checkTimeout),a.moving&&a.endMove(e)})},F.prototype.startMove=function(e,t){var n=t.getElement();this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-g.prototype.helpers.elOffset(n).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.table.columnManager.getElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom="0",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e)},F.prototype._bindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)})},F.prototype._unbindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)})},F.prototype.moveColumn=function(e,t){var n=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach(function(e,t){var i=e.getElement(!0);i.parentNode.insertBefore(n[t].getElement(),i.nextSibling)}):e.getCells().forEach(function(e,t){var i=e.getElement(!0);i.parentNode.insertBefore(n[t].getElement(),i)})},F.prototype.endMove=function(e){(1===e.which||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))},F.prototype.moveHover=function(e){var t,n=this,i=n.table.columnManager.getElement(),o=i.scrollLeft,r=(n.touchMove?e.touches[0].pageX:e.pageX)-g.prototype.helpers.elOffset(i).left+o;n.hoverElement.style.left=r-n.startX+"px",r-oe.getHeight()/2){if(t.toRow!==e||!t.toRowAfter){var i=e.getElement();i.parentNode.insertBefore(t.placeholderElement,i.nextSibling),t.moveRow(e,!0)}}else if(t.toRow!==e||t.toRowAfter){i=e.getElement();i.previousSibling&&(i.parentNode.insertBefore(t.placeholderElement,i),t.moveRow(e,!1))}}.bind(t),e.modules.moveRow=n},H.prototype.initializeRow=function(e){var t,n=this,i={};i.mouseup=function(t){n.tableRowDrop(t,e)}.bind(n),i.mousemove=function(t){var i=e.getElement();t.pageY-g.prototype.helpers.elOffset(i).top+n.table.rowManager.element.scrollTop>e.getHeight()/2?n.toRow===e&&n.toRowAfter||(i.parentNode.insertBefore(n.placeholderElement,i.nextSibling),n.moveRow(e,!0)):(n.toRow!==e||n.toRowAfter)&&(i.parentNode.insertBefore(n.placeholderElement,i),n.moveRow(e,!1))}.bind(n),this.hasHandle||(t=e.getElement(),t.addEventListener("mousedown",function(t){1===t.which&&(n.checkTimeout=setTimeout(function(){n.startMove(t,e)},n.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)}),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=i},H.prototype.initializeCell=function(e){var t=this,n=e.getElement(!0);n.addEventListener("mousedown",function(n){1===n.which&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e.row)},t.checkPeriod))}),n.addEventListener("mouseup",function(e){1===e.which&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,n)},H.prototype.bindTouchEvents=function(e,t){var n,i,o,r,s,a,c=this,l=!1;t.addEventListener("touchstart",function(t){c.checkTimeout=setTimeout(function(){c.touchMove=!0,e,n=e.nextRow(),o=n?n.getHeight()/2:0,i=e.prevRow(),r=i?i.getHeight()/2:0,s=0,a=0,l=!1,c.startMove(t,e)},c.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",function(t){var u,d;c.moving&&(t.preventDefault(),c.moveHover(t),l||(l=t.touches[0].pageY),u=t.touches[0].pageY-l,u>0?n&&u-s>o&&(d=n,d!==e&&(l=t.touches[0].pageY,d.getElement().parentNode.insertBefore(c.placeholderElement,d.getElement().nextSibling),c.moveRow(d,!0))):i&&-u-a>r&&(d=i,d!==e&&(l=t.touches[0].pageY,d.getElement().parentNode.insertBefore(c.placeholderElement,d.getElement()),c.moveRow(d,!1))),d&&(d,n=d.nextRow(),s=o,o=n?n.getHeight()/2:0,i=d.prevRow(),a=r,r=i?i.getHeight()/2:0))}),t.addEventListener("touchend",function(e){c.checkTimeout&&clearTimeout(c.checkTimeout),c.moving&&(c.endMove(e),c.touchMove=!1)})},H.prototype._bindMouseMove=function(){var e=this;e.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)})},H.prototype._unbindMouseMove=function(){var e=this;e.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)})},H.prototype.startMove=function(e,t){var n=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n)),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.moveHover(e)},H.prototype.setStartPosition=function(e,t){var n,i,o=this.touchMove?e.touches[0].pageX:e.pageX,r=this.touchMove?e.touches[0].pageY:e.pageY;n=t.getElement(),this.connection?(i=n.getBoundingClientRect(),this.startX=i.left-o+window.pageXOffset,this.startY=i.top-r+window.pageYOffset):this.startY=r-n.getBoundingClientRect().top},H.prototype.endMove=function(e){e&&1!==e.which&&!this.touchMove||(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow&&this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))},H.prototype.moveRow=function(e,t){this.toRow=e,this.toRowAfter=t},H.prototype.moveHover=function(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)},H.prototype.moveHoverTable=function(e){var t=this.table.rowManager.getElement(),n=t.scrollTop,i=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+n;this.hoverElement.style.top=i-this.startY+"px"},H.prototype.moveHoverConnections=function(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"},H.prototype.elementRowDrop=function(e,t,n){this.table.options.movableRowsElementDrop&&this.table.options.movableRowsElementDrop(e,t,!!n&&n.getComponent())},H.prototype.connectToTables=function(e){var t,n=this;this.connectionSelectorsTables&&(t=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStart.call(this.table,t),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach(function(e){"string"===typeof e?n.connectionElements=n.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(e))):n.connectionElements.push(e)}),this.connectionElements.forEach(function(e){var t=function(t){n.elementRowDrop(t,e,n.moving)};e.addEventListener("mouseup",t),e.tabulatorElementDropEvent=t,e.classList.add("tabulator-movingrow-receiving")}))},H.prototype.disconnectFromTables=function(){var e;this.connectionSelectorsTables&&(e=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStop.call(this.table,e),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach(function(e){e.classList.remove("tabulator-movingrow-receiving"),e.removeEventListener("mouseup",e.tabulatorElementDropEvent),delete e.tabulatorElementDropEvent})},H.prototype.connect=function(e,t){var n=this;return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),n.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().addEventListener("mouseup",e.modules.moveRow.mouseup)}),n.tableRowDropEvent=n.tableRowDrop.bind(n),n.table.element.addEventListener("mouseup",n.tableRowDropEvent),this.table.options.movableRowsReceivingStart.call(this.table,t,e),!0)},H.prototype.disconnect=function(e){var t=this;e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),t.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().removeEventListener("mouseup",e.modules.moveRow.mouseup)}),t.table.element.removeEventListener("mouseup",t.tableRowDropEvent),this.table.options.movableRowsReceivingStop.call(this.table,e)):console.warn("Move Row Error - trying to disconnect from non connected table")},H.prototype.dropComplete=function(e,t,n){var i=!1;if(n){switch(r(this.table.options.movableRowsSender)){case"string":i=this.senders[this.table.options.movableRowsSender];break;case"function":i=this.table.options.movableRowsSender;break}i?i.call(this,this.moving.getComponent(),t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.table.options.movableRowsSent.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.table.options.movableRowsSentFailed.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()},H.prototype.tableRowDrop=function(e,t){var n=!1,i=!1;switch(e.stopImmediatePropagation(),r(this.table.options.movableRowsReceiver)){case"string":n=this.receivers[this.table.options.movableRowsReceiver];break;case"function":n=this.table.options.movableRowsReceiver;break}n?i=n.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),i?this.table.options.movableRowsReceived.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.table.options.movableRowsReceivedFailed.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.table.modules.comms.send(this.connectedTable,"moveRow","dropcomplete",{row:t,success:i})},H.prototype.receivers={insert:function(e,t,n){return this.table.addRow(e.getData(),void 0,t),!0},add:function(e,t,n){return this.table.addRow(e.getData()),!0},update:function(e,t,n){return!!t&&(t.update(e.getData()),!0)},replace:function(e,t,n){return!!t&&(this.table.addRow(e.getData(),void 0,t),t.delete(),!0)}},H.prototype.senders={delete:function(e,t,n){e.delete()}},H.prototype.commsReceived=function(e,t,n){switch(t){case"connect":return this.connect(e,n.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,n.row,n.success)}},g.prototype.registerModule("moveRow",H);var X=function(e){this.table=e,this.allowedTypes=["","data","edit","clipboard"],this.enabled=!0};X.prototype.initializeColumn=function(e){var t=this,n=!1,i={};this.allowedTypes.forEach(function(o){var r,s="mutator"+(o.charAt(0).toUpperCase()+o.slice(1));e.definition[s]&&(r=t.lookupMutator(e.definition[s]),r&&(n=!0,i[s]={mutator:r,params:e.definition[s+"Params"]||{}}))}),n&&(e.modules.mutate=i)},X.prototype.lookupMutator=function(e){var t=!1;switch("undefined"===typeof e?"undefined":r(e)){case"string":this.mutators[e]?t=this.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e;break}return t},X.prototype.transformRow=function(e,t,n){var i,o=this,r="mutator"+(t.charAt(0).toUpperCase()+t.slice(1));return this.enabled&&o.table.columnManager.traverse(function(o){var s,a,c;o.modules.mutate&&(s=o.modules.mutate[r]||o.modules.mutate.mutator||!1,s&&(i=o.getFieldValue("undefined"!==typeof n?n:e),"data"!=t&&"undefined"===typeof i||(c=o.getComponent(),a="function"===typeof s.params?s.params(i,e,t,c):s.params,o.setFieldValue(e,s.mutator(i,e,t,a,c)))))}),e},X.prototype.transformCell=function(e,t){var n=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,i={};return n?(i=Object.assign(i,e.row.getData()),e.column.setFieldValue(i,t),n.mutator(t,i,"edit",n.params,e.getComponent())):t},X.prototype.enable=function(){this.enabled=!0},X.prototype.disable=function(){this.enabled=!1},X.prototype.mutators={},g.prototype.registerModule("mutator",X);var U=function(e){this.table=e,this.mode="local",this.progressiveLoad=!1,this.size=0,this.page=1,this.count=5,this.max=1,this.displayIndex=0,this.initialLoad=!0,this.pageSizes=[],this.dataReceivedNames={},this.dataSentNames={},this.createElements()};U.prototype.createElements=function(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),e=document.createElement("button"),e.classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))},U.prototype.generatePageSizeSelectList=function(){var e=this,t=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))t=this.table.options.paginationSizeSelector,this.pageSizes=t,-1==this.pageSizes.indexOf(this.size)&&t.unshift(this.size);else if(-1==this.pageSizes.indexOf(this.size)){t=[];for(var n=1;n<5;n++)t.push(this.size*n);this.pageSizes=t}else t=this.pageSizes;while(this.pageSizeSelect.firstChild)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);t.forEach(function(t){var n=document.createElement("option");n.value=t,!0===t?e.table.modules.localize.bind("pagination|all",function(e){n.innerHTML=e}):n.innerHTML=t,e.pageSizeSelect.appendChild(n)}),this.pageSizeSelect.value=this.size}},U.prototype.initialize=function(e){var t,n,i,o=this;this.dataSentNames=Object.assign({},this.paginationDataSentNames),this.dataSentNames=Object.assign(this.dataSentNames,this.table.options.paginationDataSent),this.dataReceivedNames=Object.assign({},this.paginationDataReceivedNames),this.dataReceivedNames=Object.assign(this.dataReceivedNames,this.table.options.paginationDataReceived),o.table.modules.localize.bind("pagination|first",function(e){o.firstBut.innerHTML=e}),o.table.modules.localize.bind("pagination|first_title",function(e){o.firstBut.setAttribute("aria-label",e),o.firstBut.setAttribute("title",e)}),o.table.modules.localize.bind("pagination|prev",function(e){o.prevBut.innerHTML=e}),o.table.modules.localize.bind("pagination|prev_title",function(e){o.prevBut.setAttribute("aria-label",e),o.prevBut.setAttribute("title",e)}),o.table.modules.localize.bind("pagination|next",function(e){o.nextBut.innerHTML=e}),o.table.modules.localize.bind("pagination|next_title",function(e){o.nextBut.setAttribute("aria-label",e),o.nextBut.setAttribute("title",e)}),o.table.modules.localize.bind("pagination|last",function(e){o.lastBut.innerHTML=e}),o.table.modules.localize.bind("pagination|last_title",function(e){o.lastBut.setAttribute("aria-label",e),o.lastBut.setAttribute("title",e)}),o.firstBut.addEventListener("click",function(){o.setPage(1).then(function(){}).catch(function(){})}),o.prevBut.addEventListener("click",function(){o.previousPage().then(function(){}).catch(function(){})}),o.nextBut.addEventListener("click",function(){o.nextPage().then(function(){}).catch(function(){})}),o.lastBut.addEventListener("click",function(){o.setPage(o.max).then(function(){}).catch(function(){})}),o.table.options.paginationElement&&(o.element=o.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),o.table.modules.localize.bind("pagination|page_size",function(e){o.pageSizeSelect.setAttribute("aria-label",e),o.pageSizeSelect.setAttribute("title",e),t.innerHTML=e}),o.element.appendChild(t),o.element.appendChild(o.pageSizeSelect),o.pageSizeSelect.addEventListener("change",function(e){o.setPageSize("true"==o.pageSizeSelect.value||o.pageSizeSelect.value),o.setPage(1).then(function(){}).catch(function(){})})),o.element.appendChild(o.firstBut),o.element.appendChild(o.prevBut),o.element.appendChild(o.pagesElement),o.element.appendChild(o.nextBut),o.element.appendChild(o.lastBut),o.table.options.paginationElement||e||o.table.footerManager.append(o.element,o),o.mode=o.table.options.pagination,o.table.options.paginationSize?o.size=o.table.options.paginationSize:(n=document.createElement("div"),n.classList.add("tabulator-row"),n.style.visibility=e,i=document.createElement("div"),i.classList.add("tabulator-cell"),i.innerHTML="Page Row Test",n.appendChild(i),o.table.rowManager.getTableElement().appendChild(n),o.size=Math.floor(o.table.rowManager.getElement().clientHeight/n.offsetHeight),o.table.rowManager.getTableElement().removeChild(n)),o.count=o.table.options.paginationButtonCount,o.generatePageSizeSelectList()},U.prototype.initializeProgressive=function(e){this.initialize(!0),this.mode="progressive_"+e,this.progressiveLoad=!0},U.prototype.setDisplayIndex=function(e){this.displayIndex=e},U.prototype.getDisplayIndex=function(){return this.displayIndex},U.prototype.setMaxRows=function(e){this.max=e?!0===this.size?1:Math.ceil(e/this.size):1,this.page>this.max&&(this.page=this.max)},U.prototype.reset=function(e,t){return("local"==this.mode||e)&&(this.page=1),t&&(this.initialLoad=!0),!0},U.prototype.setMaxPage=function(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())},U.prototype.setPage=function(e){var t=this,n=this;switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return new Promise(function(i,o){e=parseInt(e),e>0&&e<=t.max||"local"!==t.mode?(t.page=e,t.trigger().then(function(){i()}).catch(function(){o()}),n.table.options.persistence&&n.table.modExists("persistence",!0)&&n.table.modules.persistence.config.page&&n.table.modules.persistence.save("page")):(console.warn("Pagination Error - Requested page is out of range of 1 - "+t.max+":",e),o())})},U.prototype.setPageToRow=function(e){var t=this;return new Promise(function(n,i){var o=t.table.rowManager.getDisplayRows(t.displayIndex-1),r=o.indexOf(e);if(r>-1){var s=!0===t.size?1:Math.ceil((r+1)/t.size);t.setPage(s).then(function(){n()}).catch(function(){i()})}else console.warn("Pagination Error - Requested row is not visible"),i()})},U.prototype.setPageSize=function(e){!0!==e&&(e=parseInt(e)),e>0&&(this.size=e),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.page&&this.table.modules.persistence.save("page")},U.prototype._setPageButtons=function(){var e=this,t=Math.floor((this.count-1)/2),n=Math.ceil((this.count-1)/2),i=this.max-this.page+t+10&&r<=e.max&&e.pagesElement.appendChild(e._generatePageButton(r));this.footerRedraw()},U.prototype._generatePageButton=function(e){var t=this,n=document.createElement("button");return n.classList.add("tabulator-page"),e==t.page&&n.classList.add("active"),n.setAttribute("type","button"),n.setAttribute("role","button"),t.table.modules.localize.bind("pagination|page_title",function(t){n.setAttribute("aria-label",t+" "+e),n.setAttribute("title",t+" "+e)}),n.setAttribute("data-page",e),n.textContent=e,n.addEventListener("click",function(n){t.setPage(e).then(function(){}).catch(function(){})}),n},U.prototype.previousPage=function(){var e=this;return new Promise(function(t,n){e.page>1?(e.page--,e.trigger().then(function(){t()}).catch(function(){n()}),e.table.options.persistence&&e.table.modExists("persistence",!0)&&e.table.modules.persistence.config.page&&e.table.modules.persistence.save("page")):(console.warn("Pagination Error - Previous page would be less than page 1:",0),n())})},U.prototype.nextPage=function(){var e=this;return new Promise(function(t,n){e.pageo?i.splice(o,0,e):i.push(e))}),i},V.prototype._findColumn=function(e,t){var n=t.columns?"group":t.field?"field":"object";return e.find(function(e){switch(n){case"group":return e.title===t.title&&e.columns.length===t.columns.length;case"field":return e.field===t.field;case"object":return e===t}})},V.prototype.save=function(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig();break}this.writeFunc&&this.writeFunc(this.id,e,t)},V.prototype.validateSorters=function(e){return e.forEach(function(e){e.column=e.field,delete e.field}),e},V.prototype.getGroupConfig=function(){var e={};return this.config.group&&((!0===this.config.group||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(!0===this.config.group||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(!0===this.config.group||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e},V.prototype.getPageConfig=function(){var e={};return this.config.page&&((!0===this.config.page||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(!0===this.config.page||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e},V.prototype.parseColumns=function(e){var t=this,n=[],i=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach(function(e){var o,r={},s=e.getDefinition();e.isGroup?(r.title=s.title,r.columns=t.parseColumns(e.getColumns())):(r.field=e.getField(),!0===t.config.columns||void 0==t.config.columns?(o=Object.keys(s),o.push("width")):o=t.config.columns,o.forEach(function(t){switch(t){case"width":r.width=e.getWidth();break;case"visible":r.visible=e.visible;break;default:"function"!==typeof s[t]&&-1===i.indexOf(t)&&(r[t]=s[t])}})),n.push(r)}),n},V.prototype.readers={local:function(e,t){var n=localStorage.getItem(e+"-"+t);return!!n&&JSON.parse(n)},cookie:function(e,t){var n,i,o=document.cookie,r=e+"-"+t,s=o.indexOf(r+"=");return s>-1&&(o=o.substr(s),n=o.indexOf(";"),n>-1&&(o=o.substr(0,n)),i=o.replace(r+"=","")),!!i&&JSON.parse(i)}},V.prototype.writers={local:function(e,t,n){localStorage.setItem(e+"-"+t,JSON.stringify(n))},cookie:function(e,t,n){var i=new Date;i.setDate(i.getDate()+1e4),document.cookie=e+"-"+t+"="+JSON.stringify(n)+"; expires="+i.toUTCString()}},g.prototype.registerModule("persistence",V);var G=function(e){this.table=e,this.element=!1,this.manualBlock=!1};G.prototype.initialize=function(){window.addEventListener("beforeprint",this.replaceTable.bind(this)),window.addEventListener("afterprint",this.cleanup.bind(this))},G.prototype.replaceTable=function(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.genereateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))},G.prototype.cleanup=function(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")},G.prototype.printFullscreen=function(e,t,n){var i,o,r=window.scrollX,s=window.scrollY,a=document.createElement("div"),c=document.createElement("div"),l=this.table.modules.export.genereateTable("undefined"!=typeof n?n:this.table.options.printConfig,"undefined"!=typeof t?t:this.table.options.printStyled,e,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(a.classList.add("tabulator-print-header"),i="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader,"string"==typeof i?a.innerHTML=i:a.appendChild(i),this.element.appendChild(a)),this.element.appendChild(l),this.table.options.printFooter&&(c.classList.add("tabulator-print-footer"),o="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter,"string"==typeof o?c.innerHTML=o:c.appendChild(o),this.element.appendChild(c)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,l),window.print(),this.cleanup(),window.scrollTo(r,s),this.manualBlock=!1},g.prototype.registerModule("print",G);var K=function(e){this.table=e,this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0};K.prototype.watchData=function(e){var t,n=this;this.currentVersion++,t=this.currentVersion,n.unwatchData(),n.data=e,n.origFuncs.push=e.push,Object.defineProperty(n.data,"push",{enumerable:!1,configurable:!0,value:function(){var i=Array.from(arguments);return n.blocked||t!==n.currentVersion||i.forEach(function(e){n.table.rowManager.addRowActual(e,!1)}),n.origFuncs.push.apply(e,arguments)}}),n.origFuncs.unshift=e.unshift,Object.defineProperty(n.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var i=Array.from(arguments);return n.blocked||t!==n.currentVersion||i.forEach(function(e){n.table.rowManager.addRowActual(e,!0)}),n.origFuncs.unshift.apply(e,arguments)}}),n.origFuncs.shift=e.shift,Object.defineProperty(n.data,"shift",{enumerable:!1,configurable:!0,value:function(){var i;return n.blocked||t!==n.currentVersion||n.data.length&&(i=n.table.rowManager.getRowFromDataObject(n.data[0]),i&&i.deleteActual()),n.origFuncs.shift.call(e)}}),n.origFuncs.pop=e.pop,Object.defineProperty(n.data,"pop",{enumerable:!1,configurable:!0,value:function(){var i;return n.blocked||t!==n.currentVersion||n.data.length&&(i=n.table.rowManager.getRowFromDataObject(n.data[n.data.length-1]),i&&i.deleteActual()),n.origFuncs.pop.call(e)}}),n.origFuncs.splice=e.splice,Object.defineProperty(n.data,"splice",{enumerable:!1,configurable:!0,value:function(){var i,o=Array.from(arguments),r=o[0]<0?e.length+o[0]:o[0],s=o[1],a=!!o[2]&&o.slice(2);if(!n.blocked&&t===n.currentVersion){if(a&&(i=!!e[r]&&n.table.rowManager.getRowFromDataObject(e[r]),i?a.forEach(function(e){n.table.rowManager.addRowActual(e,!0,i,!0)}):(a=a.slice().reverse(),a.forEach(function(e){n.table.rowManager.addRowActual(e,!0,!1,!0)}))),0!==s){var c=e.slice(r,"undefined"===typeof o[1]?o[1]:r+s);c.forEach(function(e,t){var i=n.table.rowManager.getRowFromDataObject(e);i&&i.deleteActual(t!==c.length-1)})}(a||0!==s)&&n.table.rowManager.reRenderInPosition()}return n.origFuncs.splice.apply(e,arguments)}})},K.prototype.unwatchData=function(){if(!1!==this.data)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})},K.prototype.watchRow=function(e){var t=e.getData();for(var n in this.blocked=!0,t)this.watchKey(e,t,n);this.table.options.dataTree&&this.watchTreeChildren(e),this.blocked=!1},K.prototype.watchTreeChildren=function(e){var t=this,n=e.getData()[this.table.options.dataTreeChildField],i={};function o(){t.table.modules.dataTree.initializeRow(e),t.table.modules.dataTree.layoutRow(e),t.table.rowManager.refreshActiveData("tree",!1,!0)}n&&(i.push=n.push,Object.defineProperty(n,"push",{enumerable:!1,configurable:!0,value:function(){var e=i.push.apply(n,arguments);return o(),e}}),i.unshift=n.unshift,Object.defineProperty(n,"unshift",{enumerable:!1,configurable:!0,value:function(){var e=i.unshift.apply(n,arguments);return o(),e}}),i.shift=n.shift,Object.defineProperty(n,"shift",{enumerable:!1,configurable:!0,value:function(){var e=i.shift.call(n);return o(),e}}),i.pop=n.pop,Object.defineProperty(n,"pop",{enumerable:!1,configurable:!0,value:function(){var e=i.pop.call(n);return o(),e}}),i.splice=n.splice,Object.defineProperty(n,"splice",{enumerable:!1,configurable:!0,value:function(){var e=i.splice.apply(n,arguments);return o(),e}}))},K.prototype.watchKey=function(e,t,n){var i=this,o=Object.getOwnPropertyDescriptor(t,n),r=t[n],s=this.currentVersion;Object.defineProperty(t,n,{set:function(t){if(r=t,!i.blocked&&s===i.currentVersion){var a={};a[n]=t,e.updateData(a)}o.set&&o.set(t)},get:function(){return o.get&&o.get(),r}})},K.prototype.unwatchRow=function(e){var t=e.getData();for(var n in t)Object.defineProperty(t,n,{value:t[n]})},K.prototype.block=function(){this.blocked=!0},K.prototype.unblock=function(){this.blocked=!1},g.prototype.registerModule("reactiveData",K);var $=function(e){this.table=e,this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.handle=null,this.prevHandle=null};$.prototype.initializeColumn=function(e,t,n){var i=this,o=!1,r=this.table.options.resizableColumns;if("header"===e&&(o="textarea"==t.definition.formatter||t.definition.variableHeight,t.modules.resize={variableHeight:o}),!0===r||r==e){var s=document.createElement("div");s.className="tabulator-col-resize-handle";var a=document.createElement("div");a.className="tabulator-col-resize-handle prev",s.addEventListener("click",function(e){e.stopPropagation()});var c=function(e){var n=t.getLastColumn();n&&i._checkResizability(n)&&(i.startColumn=t,i._mouseDown(e,n,s))};s.addEventListener("mousedown",c),s.addEventListener("touchstart",c,{passive:!0}),s.addEventListener("dblclick",function(e){var n=t.getLastColumn();n&&i._checkResizability(n)&&(e.stopPropagation(),n.reinitializeWidth(!0))}),a.addEventListener("click",function(e){e.stopPropagation()});var l=function(e){var n,o,r;n=t.getFirstColumn(),n&&(o=i.table.columnManager.findColumnIndex(n),r=o>0&&i.table.columnManager.getColumnByIndex(o-1),r&&i._checkResizability(r)&&(i.startColumn=t,i._mouseDown(e,r,a)))};a.addEventListener("mousedown",l),a.addEventListener("touchstart",l,{passive:!0}),a.addEventListener("dblclick",function(e){var n,o,r;n=t.getFirstColumn(),n&&(o=i.table.columnManager.findColumnIndex(n),r=o>0&&i.table.columnManager.getColumnByIndex(o-1),r&&i._checkResizability(r)&&(e.stopPropagation(),r.reinitializeWidth(!0)))}),n.appendChild(s),n.appendChild(a)}},$.prototype._checkResizability=function(e){return"undefined"!=typeof e.definition.resizable?e.definition.resizable:this.table.options.resizableColumns},$.prototype._mouseDown=function(e,t,n){var i=this;function o(e){i.table.rtl?t.setWidth(i.startWidth-(("undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX)-i.startX)):t.setWidth(i.startWidth+(("undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX)-i.startX)),i.table.options.virtualDomHoz&&i.table.vdomHoz.reinitialize(!0),!i.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}function r(e){i.startColumn.modules.edit&&(i.startColumn.modules.edit.blocked=!1),i.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",o),n.removeEventListener("touchmove",o),n.removeEventListener("touchend",r),i.table.element.classList.remove("tabulator-block-select"),i.table.options.persistence&&i.table.modExists("persistence",!0)&&i.table.modules.persistence.config.columns&&i.table.modules.persistence.save("columns"),i.table.options.columnResized.call(i.table,t.getComponent())}i.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),i.startColumn.modules.edit&&(i.startColumn.modules.edit.blocked=!0),i.startX="undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX,i.startWidth=t.getWidth(),document.body.addEventListener("mousemove",o),document.body.addEventListener("mouseup",r),n.addEventListener("touchmove",o,{passive:!0}),n.addEventListener("touchend",r)},g.prototype.registerModule("resizeColumns",$);var Y=function(e){this.table=e,this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null};Y.prototype.initializeRow=function(e){var t=this,n=e.getElement(),i=document.createElement("div");i.className="tabulator-row-resize-handle";var o=document.createElement("div");o.className="tabulator-row-resize-handle prev",i.addEventListener("click",function(e){e.stopPropagation()});var r=function(n){t.startRow=e,t._mouseDown(n,e,i)};i.addEventListener("mousedown",r),i.addEventListener("touchstart",r,{passive:!0}),o.addEventListener("click",function(e){e.stopPropagation()});var s=function(n){var i=t.table.rowManager.prevDisplayRow(e);i&&(t.startRow=i,t._mouseDown(n,i,o))};o.addEventListener("mousedown",s),o.addEventListener("touchstart",s,{passive:!0}),n.appendChild(i),n.appendChild(o)},Y.prototype._mouseDown=function(e,t,n){var i=this;function o(e){t.setHeight(i.startHeight+(("undefined"===typeof e.screenY?e.touches[0].screenY:e.screenY)-i.startY))}function r(e){document.body.removeEventListener("mouseup",o),document.body.removeEventListener("mousemove",o),n.removeEventListener("touchmove",o),n.removeEventListener("touchend",r),i.table.element.classList.remove("tabulator-block-select"),i.table.options.rowResized.call(this.table,t.getComponent())}i.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),i.startY="undefined"===typeof e.screenY?e.touches[0].screenY:e.screenY,i.startHeight=t.getHeight(),document.body.addEventListener("mousemove",o),document.body.addEventListener("mouseup",r),n.addEventListener("touchmove",o,{passive:!0}),n.addEventListener("touchend",r)},g.prototype.registerModule("resizeRows",Y);var J=function(e){this.table=e,this.binding=!1,this.observer=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1};J.prototype.initialize=function(e){var t,n=this,i=this.table;this.tableHeight=i.element.clientHeight,this.tableWidth=i.element.clientWidth,i.element.parentNode&&(this.containerHeight=i.element.parentNode.clientHeight,this.containerWidth=i.element.parentNode.clientWidth),"undefined"!==typeof ResizeObserver&&"virtual"===i.rowManager.getRenderMode()?(this.autoResize=!0,this.observer=new ResizeObserver(function(e){if(!i.browserMobile||i.browserMobile&&!i.modules.edit.currentCell){var t=Math.floor(e[0].contentRect.height),o=Math.floor(e[0].contentRect.width);n.tableHeight==t&&n.tableWidth==o||(n.tableHeight=t,n.tableWidth=o,i.element.parentNode&&(n.containerHeight=i.element.parentNode.clientHeight,n.containerWidth=i.element.parentNode.clientWidth),i.options.virtualDomHoz&&i.vdomHoz.reinitialize(!0),i.redraw())}}),this.observer.observe(i.element),t=window.getComputedStyle(i.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver(function(e){if(!i.browserMobile||i.browserMobile&&!i.modules.edit.currentCell){var t=Math.floor(e[0].contentRect.height),o=Math.floor(e[0].contentRect.width);n.containerHeight==t&&n.containerWidth==o||(n.containerHeight=t,n.containerWidth=o,n.tableHeight=i.element.clientHeight,n.tableWidth=i.element.clientWidth),i.options.virtualDomHoz&&i.vdomHoz.reinitialize(!0),i.redraw()}}),this.containerObserver.observe(this.table.element.parentNode))):(this.binding=function(){(!i.browserMobile||i.browserMobile&&!i.modules.edit.currentCell)&&(i.options.virtualDomHoz&&i.vdomHoz.reinitialize(!0),i.redraw())},window.addEventListener("resize",this.binding))},J.prototype.clearBindings=function(e){this.binding&&window.removeEventListener("resize",this.binding),this.observer&&this.observer.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)},g.prototype.registerModule("resizeTable",J);var Q=function(e){this.table=e,this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1};Q.prototype.initialize=function(){var e=this,t=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.table.columnManager.columnsByIndex.forEach(function(n,i){n.modules.responsive&&n.modules.responsive.order&&n.modules.responsive.visible&&(n.modules.responsive.index=i,t.push(n),n.visible||"collapse"!==e.mode||e.hiddenColumns.push(n))}),t=t.reverse(),t=t.sort(function(e,t){var n=t.modules.responsive.order-e.modules.responsive.order;return n||t.modules.responsive.index-e.modules.responsive.index}),this.columns=t,"collapse"===this.mode&&this.generateCollapsedContent();var n=this.table.columnManager.columnsByIndex,i=Array.isArray(n),o=0;for(n=i?n:n[Symbol.iterator]();;){var r;if(i){if(o>=n.length)break;r=n[o++]}else{if(o=n.next(),o.done)break;r=o.value}var s=r;if("responsiveCollapse"==s.definition.formatter){this.collapseHandleColumn=s;break}}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())},Q.prototype.initializeColumn=function(e){var t=e.getDefinition();e.modules.responsive={order:"undefined"===typeof t.responsive?1:t.responsive,visible:!1!==t.visible}},Q.prototype.initializeRow=function(e){var t;"calc"!==e.type&&(t=document.createElement("div"),t.classList.add("tabulator-responsive-collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.collapseStartOpen||(t.style.display="none"))},Q.prototype.layoutRow=function(e){var t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLayout.element),this.generateCollapsedRowContent(e))},Q.prototype.updateColumnVisibility=function(e,t){e.modules.responsive&&(e.modules.responsive.visible=t,this.initialize())},Q.prototype.hideColumn=function(e){var t=this.hiddenColumns.length;e.hide(!1,!0),"collapse"===this.mode&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent(),this.collapseHandleColumn&&!t&&this.collapseHandleColumn.show())},Q.prototype.showColumn=function(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),"collapse"===this.mode&&(t=this.hiddenColumns.indexOf(e),t>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())},Q.prototype.update=function(){var e=this,t=!0;while(t){var n="fitColumns"==e.table.modules.layout.getMode()?e.table.columnManager.getFlexBaseWidth():e.table.columnManager.getWidth(),i=(e.table.options.headerVisible?e.table.columnManager.element.clientWidth:e.table.element.clientWidth)-n;if(i<0){var o=e.columns[e.index];o?(e.hideColumn(o),e.index++):t=!1}else{var r=e.columns[e.index-1];r&&i>0&&i>=r.getWidth()?(e.showColumn(r),e.index--):t=!1}e.table.rowManager.activeRowsCount||e.table.rowManager.renderEmptyScroll()}},Q.prototype.generateCollapsedContent=function(){var e=this,t=this.table.rowManager.getDisplayRows();t.forEach(function(t){e.generateCollapsedRowContent(t)})},Q.prototype.generateCollapsedRowContent=function(e){var t,n;if(e.modules.responsiveLayout){t=e.modules.responsiveLayout.element;while(t.firstChild)t.removeChild(t.firstChild);n=this.collapseFormatter(this.generateCollapsedRowData(e)),n&&t.appendChild(n)}},Q.prototype.generateCollapsedRowData=function(e){var t,n=this,i=e.getData(),o=[];return this.hiddenColumns.forEach(function(r){var s=r.getFieldValue(i);r.definition.title&&r.field&&(r.modules.format&&n.table.options.responsiveLayoutCollapseUseFormatters?(t={value:!1,data:{},getValue:function(){return s},getData:function(){return i},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return r.getComponent()}},o.push({field:r.field,title:r.definition.title,value:r.modules.format.formatter.call(n.table.modules.format,t,r.modules.format.params)})):o.push({field:r.field,title:r.definition.title,value:s}))}),o},Q.prototype.formatCollapsedData=function(e){var t=document.createElement("table");return e.forEach(function(e){var n,i=document.createElement("tr"),o=document.createElement("td"),r=document.createElement("td"),s=document.createElement("strong");o.appendChild(s),this.table.modules.localize.bind("columns|"+e.field,function(t){s.innerText=t||e.title}),e.value instanceof Node?(n=document.createElement("div"),n.appendChild(e.value),r.appendChild(n)):r.innerHTML=e.value,i.appendChild(o),i.appendChild(r),t.appendChild(i)},this),Object.keys(e).length?t:""},g.prototype.registerModule("responsiveLayout",Q);var Z=function(e){this.table=e,this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null};Z.prototype.clearSelectionData=function(e){this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],e||this._rowSelectionChanged()},Z.prototype.initializeRow=function(e){var t=this,n=e.getElement(),i=function e(){setTimeout(function(){t.selecting=!1},50),document.body.removeEventListener("mouseup",e)};e.modules.select={selected:!1},t.table.options.selectableCheck.call(this.table,e.getComponent())?(n.classList.add("tabulator-selectable"),n.classList.remove("tabulator-unselectable"),t.table.options.selectable&&"highlight"!=t.table.options.selectable&&("click"===t.table.options.selectableRangeMode?n.addEventListener("click",function(n){if(n.shiftKey){t.table._clearSelection(),t.lastClickedRow=t.lastClickedRow||e;var i=t.table.rowManager.getDisplayRowIndex(t.lastClickedRow),o=t.table.rowManager.getDisplayRowIndex(e),r=i<=o?i:o,s=i>=o?i:o,a=t.table.rowManager.getDisplayRows().slice(0),c=a.splice(r,s-r+1);n.ctrlKey||n.metaKey?(c.forEach(function(n){n!==t.lastClickedRow&&(!0===t.table.options.selectable||t.isRowSelected(e)?t.toggleRow(n):t.selectedRows.lengtht.table.options.selectable&&(c=c.slice(0,t.table.options.selectable)),t.selectRows(c)),t.table._clearSelection()}else n.ctrlKey||n.metaKey?(t.toggleRow(e),t.lastClickedRow=e):(t.deselectRows(void 0,!0),t.selectRows(e),t.lastClickedRow=e)}):(n.addEventListener("click",function(n){t.table.modExists("edit")&&t.table.modules.edit.getCurrentCell()||t.table._clearSelection(),t.selecting||t.toggleRow(e)}),n.addEventListener("mousedown",function(n){if(n.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",i),document.body.addEventListener("keyup",i),t.toggleRow(e),!1}),n.addEventListener("mouseenter",function(n){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))}),n.addEventListener("mouseout",function(n){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))})))):(n.classList.add("tabulator-unselectable"),n.classList.remove("tabulator-selectable"))},Z.prototype.toggleRow=function(e){this.table.options.selectableCheck.call(this.table,e.getComponent())&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))},Z.prototype.selectRows=function(e){var t,n=this;switch("undefined"===typeof e?"undefined":r(e)){case"undefined":this.table.rowManager.rows.forEach(function(e){n._selectRow(e,!0,!0)}),this._rowSelectionChanged();break;case"string":t=this.table.rowManager.findRow(e),t?this._selectRow(t,!0,!0):this.table.rowManager.getRows(e).forEach(function(e){n._selectRow(e,!0,!0)}),this._rowSelectionChanged();break;default:Array.isArray(e)?(e.forEach(function(e){n._selectRow(e,!0,!0)}),this._rowSelectionChanged()):this._selectRow(e,!1,!0);break}},Z.prototype._selectRow=function(e,t,n){if(!isNaN(this.table.options.selectable)&&!0!==this.table.options.selectable&&!n&&this.selectedRows.length>=this.table.options.selectable){if(!this.table.options.selectableRollingSelection)return!1;this._deselectRow(this.selectedRows[0])}var i=this.table.rowManager.findRow(e);i?-1==this.selectedRows.indexOf(i)&&(i.getElement().classList.add("tabulator-selected"),i.modules.select||(i.modules.select={}),i.modules.select.selected=!0,i.modules.select.checkboxEl&&(i.modules.select.checkboxEl.checked=!0),this.selectedRows.push(i),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(i,!0),t||this.table.options.rowSelected.call(this.table,i.getComponent()),this._rowSelectionChanged(t)):t||console.warn("Selection Error - No such row found, ignoring selection:"+e)},Z.prototype.isRowSelected=function(e){return-1!==this.selectedRows.indexOf(e)},Z.prototype.deselectRows=function(e,t){var n,i=this;if("undefined"==typeof e){n=i.selectedRows.length;for(var o=0;o-1&&(o.getElement().classList.remove("tabulator-selected"),o.modules.select||(o.modules.select={}),o.modules.select.selected=!1,o.modules.select.checkboxEl&&(o.modules.select.checkboxEl.checked=!1),i.selectedRows.splice(n,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(o,!1),t||i.table.options.rowDeselected.call(this.table,o.getComponent()),i._rowSelectionChanged(t))):t||console.warn("Deselection Error - No such row found, ignoring selection:"+e)},Z.prototype.getSelectedData=function(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getData())}),e},Z.prototype.getSelectedRows=function(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getComponent())}),e},Z.prototype._rowSelectionChanged=function(e){this.headerCheckboxElement&&(0===this.selectedRows.length?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),e||this.table.options.rowSelectionChanged.call(this.table,this.getSelectedData(),this.getSelectedRows())},Z.prototype.registerRowSelectCheckbox=function(e,t){e._row.modules.select||(e._row.modules.select={}),e._row.modules.select.checkboxEl=t},Z.prototype.registerHeaderSelectCheckbox=function(e){this.headerCheckboxElement=e},Z.prototype.childRowSelection=function(e,t){var n=this.table.modules.dataTree.getChildren(e,!0);if(t){var i=n,o=Array.isArray(i),r=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(r>=i.length)break;s=i[r++]}else{if(r=i.next(),r.done)break;s=r.value}var a=s;this._selectRow(a,!0)}}else{var c=n,l=Array.isArray(c),u=0;for(c=l?c:c[Symbol.iterator]();;){var d;if(l){if(u>=c.length)break;d=c[u++]}else{if(u=c.next(),u.done)break;d=u.value}var h=d;this._deselectRow(h,!0)}}},g.prototype.registerModule("selectRow",Z);var ee=function(e){this.table=e,this.sortList=[],this.changed=!1};ee.prototype.initializeColumn=function(e,t){var n,i,o=this,s=!1;switch(r(e.definition.sorter)){case"string":o.sorters[e.definition.sorter]?s=o.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":s=e.definition.sorter;break}e.modules.sort={sorter:s,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:"undefined"!==typeof e.definition.headerSortTristate?e.definition.headerSortTristate:this.table.options.headerSortTristate},("undefined"===typeof e.definition.headerSort?!1!==this.table.options.headerSort:!1!==e.definition.headerSort)&&(n=e.getElement(),n.classList.add("tabulator-sortable"),i=document.createElement("div"),i.classList.add("tabulator-col-sorter"),"object"==r(this.table.options.headerSortElement)?i.appendChild(this.table.options.headerSortElement):i.innerHTML=this.table.options.headerSortElement,t.appendChild(i),e.modules.sort.element=i,n.addEventListener("click",function(t){var n="",i=[],r=!1;if(e.modules.sort){if(e.modules.sort.tristate)n="none"==e.modules.sort.dir?e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?"asc"==e.modules.sort.dir?"desc":"asc":"none";else switch(e.modules.sort.dir){case"asc":n="desc";break;case"desc":n="asc";break;default:n=e.modules.sort.startingDir}o.table.options.columnHeaderSortMulti&&(t.shiftKey||t.ctrlKey)?(i=o.getSort(),r=i.findIndex(function(t){return t.field===e.getField()}),r>-1?(i[r].dir=n,r!=i.length-1&&(r=i.splice(r,1)[0],"none"!=n&&i.push(r))):"none"!=n&&i.push({column:e,dir:n}),o.setSort(i)):"none"==n?o.clear():o.setSort(e,n),o.table.rowManager.sorterRefresh(!o.sortList.length)}}))},ee.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},ee.prototype.getSort=function(){var e=this,t=[];return e.sortList.forEach(function(e){e.column&&t.push({column:e.column.getComponent(),field:e.column.getField(),dir:e.dir})}),t},ee.prototype.setSort=function(e,t){var n=this,i=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(e){var t;t=n.table.columnManager.findColumn(e.column),t?(e.column=t,i.push(e),n.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",e.column)}),n.sortList=i,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.sort&&this.table.modules.persistence.save("sort")},ee.prototype.clear=function(){this.setSort([])},ee.prototype.findSorter=function(e){var t,n,i=this.table.rowManager.activeRows[0],o="string";if(i&&(i=i.getData(),t=e.getField(),t))switch(n=e.getFieldValue(i),"undefined"===typeof n?"undefined":r(n)){case"undefined":o="string";break;case"boolean":o="boolean";break;default:isNaN(n)||""===n?n.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(o="alphanum"):o="number";break}return this.sorters[o]},ee.prototype.sort=function(e){var t=this,n=this.table.options.sortOrderReverse?t.sortList.slice().reverse():t.sortList,i=[],o=[];t.table.options.dataSorting&&t.table.options.dataSorting.call(t.table,t.getSort()),t.clearColumnHeaders(),t.table.options.ajaxSorting?n.forEach(function(e,n){t.setColumnHeader(e.column,e.dir)}):(n.forEach(function(e,n){var o=e.column.modules.sort;e.column&&o&&(o.sorter||(o.sorter=t.findSorter(e.column)),e.params="function"===typeof o.params?o.params(e.column.getComponent(),e.dir):o.params,i.push(e)),t.setColumnHeader(e.column,e.dir)}),i.length&&t._sortItems(e,i)),t.table.options.dataSorted&&(e.forEach(function(e){o.push(e.getComponent())}),t.table.options.dataSorted.call(t.table,t.getSort(),o))},ee.prototype.clearColumnHeaders=function(){this.table.columnManager.getRealColumns().forEach(function(e){e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"))})},ee.prototype.setColumnHeader=function(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort",t)},ee.prototype._sortItems=function(e,t){var n=this,i=t.length-1;e.sort(function(e,o){for(var r,s=i;s>=0;s--){var a=t[s];if(r=n._sortRow(e,o,a.column,a.dir,a.params),0!==r)break}return r})},ee.prototype._sortRow=function(e,t,n,i,o){var r,s,a="asc"==i?e:t,c="asc"==i?t:e;return e=n.getFieldValue(a.getData()),t=n.getFieldValue(c.getData()),e="undefined"!==typeof e?e:"",t="undefined"!==typeof t?t:"",r=a.getComponent(),s=c.getComponent(),n.modules.sort.sorter.call(this,e,t,r,s,n.getComponent(),i,o)},ee.prototype.sorters={number:function(e,t,n,i,o,r,s){var a=s.alignEmptyValues,c=s.decimalSeparator,l=s.thousandSeparator,u=0;if(e=String(e),t=String(t),l&&(e=e.split(l).join(""),t=t.split(l).join("")),c&&(e=e.split(c).join("."),t=t.split(c).join(".")),e=parseFloat(e),t=parseFloat(t),isNaN(e))u=isNaN(t)?0:-1;else{if(!isNaN(t))return e-t;u=1}return("top"===a&&"desc"===r||"bottom"===a&&"asc"===r)&&(u*=-1),u},string:function(e,t,n,i,o,s,a){var c,l=a.alignEmptyValues,u=0;if(e){if(t){switch(r(a.locale)){case"boolean":a.locale&&(c=this.table.modules.localize.getLocale());break;case"string":c=a.locale;break}return String(e).toLowerCase().localeCompare(String(t).toLowerCase(),c)}u=1}else u=t?-1:0;return("top"===l&&"desc"===s||"bottom"===l&&"asc"===s)&&(u*=-1),u},date:function(e,t,n,i,o,r,s){return s.format||(s.format="DD/MM/YYYY"),this.sorters.datetime.call(this,e,t,n,i,o,r,s)},time:function(e,t,n,i,o,r,s){return s.format||(s.format="HH:mm"),this.sorters.datetime.call(this,e,t,n,i,o,r,s)},datetime:function(e,t,n,i,o,r,s){var a=s.format||"DD/MM/YYYY HH:mm:ss",c=s.alignEmptyValues,l=0;if("undefined"!=typeof moment){if(e=moment(e,a),t=moment(t,a),e.isValid()){if(t.isValid())return e-t;l=1}else l=t.isValid()?-1:0;return("top"===c&&"desc"===r||"bottom"===c&&"asc"===r)&&(l*=-1),l}console.error("Sort Error - 'datetime' sorter is dependant on moment.js")},boolean:function(e,t,n,i,o,r,s){var a=!0===e||"true"===e||"True"===e||1===e?1:0,c=!0===t||"true"===t||"True"===t||1===t?1:0;return a-c},array:function(e,t,n,i,o,r,s){var a=0,c=0,l=s.type||"length",u=s.alignEmptyValues,d=0;function h(e){switch(l){case"length":return e.length;case"sum":return e.reduce(function(e,t){return e+t});case"max":return Math.max.apply(null,e);case"min":return Math.min.apply(null,e);case"avg":return e.reduce(function(e,t){return e+t})/e.length}}if(Array.isArray(e)){if(Array.isArray(t))return a=e?h(e):0,c=t?h(t):0,a-c;u=1}else u=Array.isArray(t)?-1:0;return("top"===u&&"desc"===r||"bottom"===u&&"asc"===r)&&(d*=-1),d},exists:function(e,t,n,i,o,r,s){var a="undefined"==typeof e?0:1,c="undefined"==typeof t?0:1;return a-c},alphanum:function(e,t,n,i,o,r,s){var a,c,l,u,d,h=0,p=/(\d+)|(\D+)/g,f=/\d/,m=s.alignEmptyValues,g=0;if(e||0===e){if(t||0===t){if(isFinite(e)&&isFinite(t))return e-t;if(a=String(e).toLowerCase(),c=String(t).toLowerCase(),a===c)return 0;if(!f.test(a)||!f.test(c))return a>c?1:-1;a=a.match(p),c=c.match(p),d=a.length>c.length?c.length:a.length;while(hu?1:-1;return a.length>c.length}g=1}else g=t||0===t?-1:0;return("top"===m&&"desc"===r||"bottom"===m&&"asc"===r)&&(g*=-1),g}},g.prototype.registerModule("sort",ee);var te=function(e){this.table=e,this.invalidCells=[]};te.prototype.initializeColumn=function(e){var t,n=this,i=[];e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(function(e){t=n._extractValidator(e),t&&i.push(t)}):(t=this._extractValidator(e.definition.validator),t&&i.push(t)),e.modules.validate=!!i.length&&i)},te.prototype._extractValidator=function(e){var t,n,i;switch("undefined"===typeof e?"undefined":r(e)){case"string":return i=e.indexOf(":"),i>-1?(t=e.substring(0,i),n=e.substring(i+1)):t=e,this._buildValidator(t,n);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}},te.prototype._buildValidator=function(e,t){var n="function"==typeof e?e:this.validators[e];return n?{type:"function"==typeof e?"function":e,func:n,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)},te.prototype.validate=function(e,t,n){var i=this,o=[],r=this.invalidCells.indexOf(t);return e&&e.forEach(function(e){e.func.call(i,t.getComponent(),n,e.params)||o.push({type:e.type,parameters:e.params})}),o=!o.length||o,t.modules.validate||(t.modules.validate={}),!0===o?(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),r>-1&&this.invalidCells.splice(r,1)):(t.modules.validate.invalid=!0,"manual"!==this.table.options.validationMode&&t.getElement().classList.add("tabulator-validation-fail"),-1==r&&this.invalidCells.push(t)),o},te.prototype.getInvalidCells=function(){var e=[];return this.invalidCells.forEach(function(t){e.push(t.getComponent())}),e},te.prototype.clearValidation=function(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,t=this.invalidCells.indexOf(e),t>-1&&this.invalidCells.splice(t,1))},te.prototype.validators={integer:function(e,t,n){return""===t||null===t||"undefined"===typeof t||(t=Number(t),"number"===typeof t&&isFinite(t)&&Math.floor(t)===t)},float:function(e,t,n){return""===t||null===t||"undefined"===typeof t||(t=Number(t),"number"===typeof t&&isFinite(t)&&t%1!==0)},numeric:function(e,t,n){return""===t||null===t||"undefined"===typeof t||!isNaN(t)},string:function(e,t,n){return""===t||null===t||"undefined"===typeof t||isNaN(t)},max:function(e,t,n){return""===t||null===t||"undefined"===typeof t||parseFloat(t)<=n},min:function(e,t,n){return""===t||null===t||"undefined"===typeof t||parseFloat(t)>=n},starts:function(e,t,n){return""===t||null===t||"undefined"===typeof t||String(t).toLowerCase().startsWith(String(n).toLowerCase())},ends:function(e,t,n){return""===t||null===t||"undefined"===typeof t||String(t).toLowerCase().endsWith(String(n).toLowerCase())},minLength:function(e,t,n){return""===t||null===t||"undefined"===typeof t||String(t).length>=n},maxLength:function(e,t,n){return""===t||null===t||"undefined"===typeof t||String(t).length<=n},in:function(e,t,n){return""===t||null===t||"undefined"===typeof t||("string"==typeof n&&(n=n.split("|")),""===t||n.indexOf(t)>-1)},regex:function(e,t,n){if(""===t||null===t||"undefined"===typeof t)return!0;var i=new RegExp(n);return i.test(t)},unique:function(e,t,n){if(""===t||null===t||"undefined"===typeof t)return!0;var i=!0,o=e.getData(),r=e.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(e){var n=e.getData();n!==o&&t==r.getFieldValue(n)&&(i=!1)}),i},required:function(e,t,n){return""!==t&&null!==t&&"undefined"!==typeof t}},g.prototype.registerModule("validate",te),n["a"]=g},e34e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("cf81"),o=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new i.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=o},e372:function(e,t,n){t=e.exports=n("ad71"),t.Stream=t,t.Readable=t,t.Writable=n("dc14"),t.Duplex=n("b19a"),t.Transform=n("27bf"),t.PassThrough=n("780f")},e445:function(e,t,n){},e45b:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("3a92"),a=n("7f73"),c=n("e45b"),l=n("dd02"),u=n("66f9"),d=n("3585"),h=n("168d"),p=function(){function e(){}return e.prototype.decorate=function(e,t){if(a.isDecoration(t)){var n=this.getPosition(t),i="translate("+n.x+", "+n.y+")";c.setAttr(e,"transform",i)}return e},e.prototype.getPosition=function(e){if(e instanceof s.SChildElement&&e.parent instanceof d.SRoutableElement){var t=this.edgeRouterRegistry.get(e.parent.routerKind),n=t.route(e.parent);if(n.length>1){var i=Math.floor(.5*(n.length-1)),o=u.isSizeable(e)?{x:-.5*e.bounds.width,y:-.5*e.bounds.width}:l.ORIGIN_POINT;return{x:.5*(n[i].x+n[i+1].x)+o.x,y:.5*(n[i].y+n[i+1].y)+o.y}}}return u.isSizeable(e)?{x:-.666*e.bounds.width,y:-.666*e.bounds.height}:l.ORIGIN_POINT},e.prototype.postUpdate=function(){},i([r.inject(h.EdgeRouterRegistry),o("design:type",h.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),e=i([r.injectable()],e),e}();t.DecorationPlacer=p},e5a7:function(e,t,n){},e629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.startFn=e,this.nextFn=t}return e.prototype[Symbol.iterator]=function(){var e,t=this,n=(e={state:this.startFn(),next:function(){return t.nextFn(n.state)}},e[Symbol.iterator]=function(){return n},e);return n},e.prototype.filter=function(e){return r(this,e)},e.prototype.map=function(e){return s(this,e)},e.prototype.forEach=function(e){var t,n=this[Symbol.iterator](),i=0;do{t=n.next(),void 0!==t.value&&e(t.value,i),i++}while(!t.done)},e.prototype.indexOf=function(e){var t,n=this[Symbol.iterator](),i=0;do{if(t=n.next(),t.value===e)return i;i++}while(!t.done);return-1},e}();function o(e){if(e.constructor===Array)return e;var t=[];return e.forEach(function(e){return t.push(e)}),t}function r(e,t){return new i(function(){return a(e)},function(e){var n;do{n=e.next()}while(!n.done&&!t(n.value));return n})}function s(e,n){return new i(function(){return a(e)},function(e){var i=e.next(),o=i.done,r=i.value;return o?t.DONE_RESULT:{done:!1,value:n(r)}})}function a(e){var n=e[Symbol.iterator];if("function"===typeof n)return n.call(e);var i=e.length;return"number"===typeof i&&i>=0?new c(e):{next:function(){return t.DONE_RESULT}}}t.FluentIterableImpl=i,t.toArray=o,t.DONE_RESULT=Object.freeze({done:!0,value:void 0}),t.filterIterable=r,t.mapIterable=s;var c=function(){function e(e){this.array=e,this.index=0}return e.prototype.next=function(){return this.index=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("c146"),a=n("3a92"),c=n("e45b"),l=n("7d36"),u=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.elementFades=n,r.removeAfterFadeOut=o,r}return i(t,e),t.prototype.tween=function(e,t){for(var n=0,i=this.elementFades;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("dd02"),c=n("b669"),l=n("3a92"),u=n("9757"),d=n("1417"),h=n("66f9"),p=n("4c18"),f=n("c444"),m=n("5eb6"),g=n("e1c6"),v=n("6923"),b=function(){function e(t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1),this.elementIds=t,this.animate=n,this.retainZoom=i,this.kind=e.KIND}return e.KIND="center",e}();t.CenterAction=b;var y=function(){function e(t,n,i,o){void 0===o&&(o=!0),this.elementIds=t,this.padding=n,this.maxZoom=i,this.animate=o,this.kind=e.KIND}return e.KIND="fit",e}();t.FitToScreenAction=y;var _=function(e){function t(t){var n=e.call(this)||this;return n.animate=t,n}return i(t,e),t.prototype.initialize=function(e){var t=this;if(m.isViewport(e)){this.oldViewport={scroll:e.scroll,zoom:e.zoom};var n=[];if(this.getElementIds().forEach(function(i){var o=e.index.getById(i);o&&h.isBoundsAware(o)&&n.push(t.boundsInViewport(o,o.bounds,e))}),0===n.length&&e.index.all().forEach(function(i){p.isSelectable(i)&&i.selected&&h.isBoundsAware(i)&&n.push(t.boundsInViewport(i,i.bounds,e))}),0===n.length&&e.index.all().forEach(function(i){h.isBoundsAware(i)&&n.push(t.boundsInViewport(i,i.bounds,e))}),0!==n.length){var i=n.reduce(function(e,t){return a.combine(e,t)});a.isValidDimension(i)&&(this.newViewport=this.getNewViewport(i,e))}}},t.prototype.boundsInViewport=function(e,t,n){return e instanceof l.SChildElement&&e.parent!==n?this.boundsInViewport(e.parent,e.parent.localToParent(t),n):t},t.prototype.execute=function(e){return this.initialize(e.root),this.redo(e)},t.prototype.undo=function(e){var t=e.root;if(m.isViewport(t)&&void 0!==this.newViewport&&!this.equal(this.newViewport,this.oldViewport)){if(this.animate)return new f.ViewportAnimation(t,this.newViewport,this.oldViewport,e).start();t.scroll=this.oldViewport.scroll,t.zoom=this.oldViewport.zoom}return t},t.prototype.redo=function(e){var t=e.root;if(m.isViewport(t)&&void 0!==this.newViewport&&!this.equal(this.newViewport,this.oldViewport)){if(this.animate)return new f.ViewportAnimation(t,this.oldViewport,this.newViewport,e).start();t.scroll=this.newViewport.scroll,t.zoom=this.newViewport.zoom}return t},t.prototype.equal=function(e,t){return e.zoom===t.zoom&&e.scroll.x===t.scroll.x&&e.scroll.y===t.scroll.y},t=o([g.injectable(),r("design:paramtypes",[Boolean])],t),t}(u.Command);t.BoundsAwareViewportCommand=_;var M=function(e){function t(t){var n=e.call(this,t.animate)||this;return n.action=t,n}return i(t,e),t.prototype.getElementIds=function(){return this.action.elementIds},t.prototype.getNewViewport=function(e,t){if(a.isValidDimension(t.canvasBounds)){var n=this.action.retainZoom&&m.isViewport(t)?t.zoom:1,i=a.center(e);return{scroll:{x:i.x-.5*t.canvasBounds.width/n,y:i.y-.5*t.canvasBounds.height/n},zoom:n}}},t.KIND=b.KIND,t=o([s(0,g.inject(v.TYPES.Action)),r("design:paramtypes",[b])],t),t}(_);t.CenterCommand=M;var w=function(e){function t(t){var n=e.call(this,t.animate)||this;return n.action=t,n}return i(t,e),t.prototype.getElementIds=function(){return this.action.elementIds},t.prototype.getNewViewport=function(e,t){if(a.isValidDimension(t.canvasBounds)){var n=a.center(e),i=void 0===this.action.padding?0:2*this.action.padding,o=Math.min(t.canvasBounds.width/(e.width+i),t.canvasBounds.height/(e.height+i));return void 0!==this.action.maxZoom&&(o=Math.min(o,this.action.maxZoom)),o===1/0&&(o=1),{scroll:{x:n.x-.5*t.canvasBounds.width/o,y:n.y-.5*t.canvasBounds.height/o},zoom:o}}},t.KIND=y.KIND,t=o([s(0,g.inject(v.TYPES.Action)),r("design:paramtypes",[y])],t),t}(_);t.FitToScreenCommand=w;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){return c.matchesKeystroke(t,"KeyC","ctrlCmd","shift")?[new b([])]:c.matchesKeystroke(t,"KeyF","ctrlCmd","shift")?[new y([])]:[]},t}(d.KeyListener);t.CenterKeyboardListener=C},edad:function(e,t,n){"use strict";var i=n("c51d"),o=n.n(i);o.a},ee16:function(e,t,n){e.exports=n("bafd")},efc5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=function(e){return function(t){return function(){for(var n=[],i=0;i0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("b669"),l=n("dd02"),u=n("6923"),d=n("3a92"),h=n("3b4c"),p=n("510b"),f=n("9757"),m=n("302f"),g=n("1417"),v=n("3623"),b=n("66f9"),y=n("e4f0"),_=function(){function e(t,n){this.mouseoverElement=t,this.mouseIsOver=n,this.kind=e.KIND}return e.KIND="hoverFeedback",e}();t.HoverFeedbackAction=_;var M=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t=e.root,n=t.index.getById(this.action.mouseoverElement);return n&&y.isHoverable(n)&&(n.hoverFeedback=this.action.mouseIsOver),this.redo(e)},t.prototype.undo=function(e){return e.root},t.prototype.redo=function(e){return e.root},t.KIND=_.KIND,t=o([a.injectable(),s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[_])],t),t}(f.SystemCommand);t.HoverFeedbackCommand=M;var w=function(){function e(t,n,i){void 0===i&&(i=""),this.elementId=t,this.bounds=n,this.requestId=i,this.kind=e.KIND}return e.create=function(t,n){return new e(t,n,p.generateRequestId())},e.KIND="requestPopupModel",e}();t.RequestPopupModelAction=w;var C=function(){function e(t,n){void 0===n&&(n=""),this.newRoot=t,this.responseId=n,this.kind=e.KIND}return e.KIND="setPopupModel",e}();t.SetPopupModelAction=C;var S=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.oldRoot=e.root,this.newRoot=e.modelFactory.createRoot(this.action.newRoot),this.newRoot},t.prototype.undo=function(e){return this.oldRoot},t.prototype.redo=function(e){return this.newRoot},t.KIND=C.KIND,t=o([a.injectable(),s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[C])],t),t}(f.PopupCommand);t.SetPopupModelCommand=S;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.mouseDown=function(e,t){return this.mouseIsDown=!0,[]},t.prototype.mouseUp=function(e,t){return this.mouseIsDown=!1,[]},t.prototype.stopMouseOutTimer=function(){void 0!==this.state.mouseOutTimer&&(window.clearTimeout(this.state.mouseOutTimer),this.state.mouseOutTimer=void 0)},t.prototype.startMouseOutTimer=function(){var e=this;return this.stopMouseOutTimer(),new Promise(function(t){e.state.mouseOutTimer=window.setTimeout(function(){e.state.popupOpen=!1,e.state.previousPopupElement=void 0,t(new C({type:m.EMPTY_ROOT.type,id:m.EMPTY_ROOT.id}))},e.options.popupCloseDelay)})},t.prototype.stopMouseOverTimer=function(){void 0!==this.state.mouseOverTimer&&(window.clearTimeout(this.state.mouseOverTimer),this.state.mouseOverTimer=void 0)},o([a.inject(u.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),o([a.inject(u.TYPES.HoverState),r("design:type",Object)],t.prototype,"state",void 0),t}(h.MouseListener);t.AbstractHoverMouseListener=A;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.computePopupBounds=function(e,t){var n={x:-5,y:20},i=b.getAbsoluteBounds(e),o=e.root.canvasBounds,r=l.translate(i,o),s=r.x+r.width-t.x,a=r.y+r.height-t.y;a<=s&&this.allowSidePosition(e,"below",a)?n={x:-5,y:Math.round(a+5)}:s<=a&&this.allowSidePosition(e,"right",s)&&(n={x:Math.round(s+5),y:-5});var c=t.x+n.x,u=o.x+o.width;c>u&&(c=u);var d=t.y+n.y,h=o.y+o.height;return d>h&&(d=h),{x:c,y:d,width:-1,height:-1}},t.prototype.allowSidePosition=function(e,t,n){return!(e instanceof d.SModelRoot)&&n<=150},t.prototype.startMouseOverTimer=function(e,t){var n=this;return this.stopMouseOverTimer(),new Promise(function(i){n.state.mouseOverTimer=window.setTimeout(function(){var o=n.computePopupBounds(e,{x:t.pageX,y:t.pageY});i(new w(e.id,o)),n.state.popupOpen=!0,n.state.previousPopupElement=e},n.options.popupOpenDelay)})},t.prototype.mouseOver=function(e,t){var n=[];if(!this.mouseIsDown){var i=v.findParent(e,y.hasPopupFeature);this.state.popupOpen&&(void 0===i||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id!==i.id)?n.push(this.startMouseOutTimer()):(this.stopMouseOverTimer(),this.stopMouseOutTimer()),void 0===i||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id===i.id||n.push(this.startMouseOverTimer(i,t)),this.lastHoverFeedbackElementId&&(n.push(new _(this.lastHoverFeedbackElementId,!1)),this.lastHoverFeedbackElementId=void 0);var o=v.findParentByFeature(e,y.isHoverable);void 0!==o&&(n.push(new _(o.id,!0)),this.lastHoverFeedbackElementId=o.id)}return n},t.prototype.mouseOut=function(e,t){var n=[];if(!this.mouseIsDown){var i=document.elementFromPoint(t.x,t.y);if(!this.isSprottyPopup(i)){if(this.state.popupOpen){var o=v.findParent(e,y.hasPopupFeature);void 0!==this.state.previousPopupElement&&void 0!==o&&this.state.previousPopupElement.id===o.id&&n.push(this.startMouseOutTimer())}this.stopMouseOverTimer();var r=v.findParentByFeature(e,y.isHoverable);void 0!==r&&(n.push(new _(r.id,!1)),this.lastHoverFeedbackElementId=void 0)}}return n},t.prototype.isSprottyPopup=function(e){return!!e&&(e.id===this.options.popupDiv||!!e.parentElement&&this.isSprottyPopup(e.parentElement))},t.prototype.mouseMove=function(e,t){var n=[];if(!this.mouseIsDown){void 0!==this.state.previousPopupElement&&this.closeOnMouseMove(this.state.previousPopupElement,t)&&n.push(this.startMouseOutTimer());var i=v.findParent(e,y.hasPopupFeature);void 0===i||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id===i.id||n.push(this.startMouseOverTimer(i,t))}return n},t.prototype.closeOnMouseMove=function(e,t){return e instanceof d.SModelRoot},o([a.inject(u.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),t=o([a.injectable()],t),t}(A);t.HoverMouseListener=E;var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.mouseOut=function(e,t){return[this.startMouseOutTimer()]},t.prototype.mouseOver=function(e,t){return this.stopMouseOutTimer(),this.stopMouseOverTimer(),[]},t=o([a.injectable()],t),t}(A);t.PopupHoverMouseListener=O;var L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){return c.matchesKeystroke(t,"Escape")?[new C({type:m.EMPTY_ROOT.type,id:m.EMPTY_ROOT.id})]:[]},t}(g.KeyListener);t.HoverKeyListener=L;var T=function(){function e(){this.popupOpen=!1}return e.prototype.handle=function(e){if(e.kind===S.KIND)this.popupOpen=e.newRoot.type!==m.EMPTY_ROOT.type;else if(this.popupOpen)return new C({id:m.EMPTY_ROOT.id,type:m.EMPTY_ROOT.type})},e=o([a.injectable()],e),e}();t.ClosePopupActionHandler=T},f58f:function(e,t,n){"use strict";var i=n("15f6"),o=n.n(i);o.a},f913:function(e,t,n){"use strict";var i=n("0c4a"),o=n.n(i);o.a},f923:function(e,t,n){"use strict";function i(e,t){var n,i,o=t.elm,r=e.data.class,s=t.data.class;if((r||s)&&r!==s){for(i in r=r||{},s=s||{},r)s[i]||o.classList.remove(i);for(i in s)n=s[i],n!==r[i]&&o.classList[n?"add":"remove"](i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.classModule={create:i,update:i},t.default=t.classModule},faa1:function(e,t,n){"use strict";var i,o="object"===typeof Reflect?Reflect:null,r=o&&"function"===typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function s(e){console&&console.warn&&console.warn(e)}i=o&&"function"===typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function c(){c.init.call(this)}e.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function h(e,t,n,i){var o,r,a;if(u(n),r=e._events,void 0===r?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),a=r[t]),void 0===a)a=r[t]=n,++e._eventsCount;else if("function"===typeof a?a=r[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),o=d(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s(c)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(i);return o.listener=n,i.wrapFn=o,o}function m(e,t,n){var i=e._events;if(void 0===i)return[];var o=i[t];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?y(o):v(o,o.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),i=0;i0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"===typeof c)r(c,this,t);else{var l=c.length,u=v(c,l);for(n=0;n=0;r--)if(n[r]===t||n[r].listener===t){s=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():b(n,o),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,i;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,r=Object.keys(n);for(i=0;i=0;i--)this.removeListener(e,t[i]);return this},c.prototype.listeners=function(e){return m(this,e,!0)},c.prototype.rawListeners=function(e){return m(this,e,!1)},c.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},c.prototype.listenerCount=g,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},fba3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("dd02");function o(e){return r()?e.metaKey:e.ctrlKey}function r(){return-1!==window.navigator.userAgent.indexOf("Mac")}function s(e){if(e&&"undefined"!==typeof window&&window.location){var t="";return window.location.protocol&&(t+=window.location.protocol+"//"),window.location.host&&(t+=window.location.host),t.length>0&&!e.startsWith(t)}return!1}function a(){return"undefined"===typeof window?i.ORIGIN_POINT:{x:window.pageXOffset,y:window.pageYOffset}}t.isCtrlOrCmd=o,t.isMac=r,t.isCrossSite=s,t.getWindowScroll=a},fcf3:function(e,t,n){!function(t,n){e.exports=n()}(self,function(){return(()=>{"use strict";var e={4567:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var r=n(9042),s=n(6114),a=n(9924),c=n(3656),l=n(844),u=n(5596),d=n(9631),h=function(e){function t(t,n){var i=e.call(this)||this;i._terminal=t,i._renderService=n,i._liveRegionLineCount=0,i._charsToConsume=[],i._charsToAnnounce="",i._accessibilityTreeRoot=document.createElement("div"),i._accessibilityTreeRoot.setAttribute("role","document"),i._accessibilityTreeRoot.classList.add("xterm-accessibility"),i._accessibilityTreeRoot.tabIndex=0,i._rowContainer=document.createElement("div"),i._rowContainer.setAttribute("role","list"),i._rowContainer.classList.add("xterm-accessibility-tree"),i._rowElements=[];for(var o=0;oe;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=r.tooMuchOutput)),s.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,s.isMac&&(0,d.removeElementFromParent)(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},t.prototype._renderRows=function(e,t){for(var n=this._terminal.buffer,i=n.lines.length.toString(),o=e;o<=t;o++){var r=n.translateBufferLineToString(n.ydisp+o,!0),s=(n.ydisp+o+1).toString(),a=this._rowElements[o];a&&(0===r.length?a.innerText=" ":a.textContent=r,a.setAttribute("aria-posinset",s),a.setAttribute("aria-setsize",i))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e{function n(e){return e.replace(/\r?\n/g,"\r")}function i(e,t){return t?"[200~"+e+"[201~":e}function o(e,t,o){e=i(e=n(e),o.decPrivateModes.bracketedPasteMode),o.triggerDataEvent(e,!0),t.value=""}function r(e,t,n){var i=n.getBoundingClientRect(),o=e.clientX-i.left-10,r=e.clientY-i.top-10;t.style.width="20px",t.style.height="20px",t.style.left=o+"px",t.style.top=r+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=n,t.bracketTextForPaste=i,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,n){e.stopPropagation(),e.clipboardData&&o(e.clipboardData.getData("text/plain"),t,n)},t.paste=o,t.moveTextAreaUnderMouseCursor=r,t.rightClickHandler=function(e,t,n,i,o){r(e,t,n),o&&i.rightClickSelect(e),t.value=i.selectionText,t.select()}},4774:(e,t)=>{var n,i,o,r;function s(e){var t=e.toString(16);return t.length<2?"0"+t:t}function a(e,t){return e>>0}}(n=t.channels||(t.channels={})),(i=t.color||(t.color={})).blend=function(e,t){var i=(255&t.rgba)/255;if(1===i)return{css:t.css,rgba:t.rgba};var o=t.rgba>>24&255,r=t.rgba>>16&255,s=t.rgba>>8&255,a=e.rgba>>24&255,c=e.rgba>>16&255,l=e.rgba>>8&255,u=a+Math.round((o-a)*i),d=c+Math.round((r-c)*i),h=l+Math.round((s-l)*i);return{css:n.toCss(u,d,h),rgba:n.toRgba(u,d,h)}},i.isOpaque=function(e){return 255==(255&e.rgba)},i.ensureContrastRatio=function(e,t,n){var i=r.ensureContrastRatio(e.rgba,t.rgba,n);if(i)return r.toColor(i>>24&255,i>>16&255,i>>8&255)},i.opaque=function(e){var t=(255|e.rgba)>>>0,i=r.toChannels(t),o=i[0],s=i[1],a=i[2];return{css:n.toCss(o,s,a),rgba:t}},i.opacity=function(e,t){var i=Math.round(255*t),o=r.toChannels(e.rgba),s=o[0],a=o[1],c=o[2];return{css:n.toCss(s,a,c,i),rgba:n.toRgba(s,a,c,i)}},i.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]},(t.css||(t.css={})).toColor=function(e){switch(e.length){case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(e){function t(e,t,n){var i=e/255,o=t/255,r=n/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(o=t.rgb||(t.rgb={})),function(e){function t(e,t,n){for(var i=e>>24&255,r=e>>16&255,s=e>>8&255,c=t>>24&255,l=t>>16&255,u=t>>8&255,d=a(o.relativeLuminance2(c,u,l),o.relativeLuminance2(i,r,s));d0||l>0||u>0);)c-=Math.max(0,Math.ceil(.1*c)),l-=Math.max(0,Math.ceil(.1*l)),u-=Math.max(0,Math.ceil(.1*u)),d=a(o.relativeLuminance2(c,u,l),o.relativeLuminance2(i,r,s));return(c<<24|l<<16|u<<8|255)>>>0}function i(e,t,n){for(var i=e>>24&255,r=e>>16&255,s=e>>8&255,c=t>>24&255,l=t>>16&255,u=t>>8&255,d=a(o.relativeLuminance2(c,u,l),o.relativeLuminance2(i,r,s));d>>0}e.ensureContrastRatio=function(e,n,r){var s=o.relativeLuminance(e>>8),c=o.relativeLuminance(n>>8);if(a(s,c)>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,i){return{css:n.toCss(e,t,i),rgba:n.toRgba(e,t,i)}}}(r=t.rgba||(t.rgba={})),t.toPaddedHex=s,t.contrastRatio=a},7239:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var n=function(){function e(){this._color={},this._rgba={}}return e.prototype.clear=function(){this._color={},this._rgba={}},e.prototype.setCss=function(e,t,n){this._rgba[e]||(this._rgba[e]={}),this._rgba[e][t]=n},e.prototype.getCss=function(e,t){return this._rgba[e]?this._rgba[e][t]:void 0},e.prototype.setColor=function(e,t,n){this._color[e]||(this._color[e]={}),this._color[e][t]=n},e.prototype.getColor=function(e,t){return this._color[e]?this._color[e][t]:void 0},e}();t.ColorContrastCache=n},5680:function(e,t,n){var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o{Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(){for(var e,t=[],n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,n,i){e.addEventListener(t,n,i);var o=!1;return{dispose:function(){o||(o=!0,e.removeEventListener(t,n,i))}}}},3551:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var r=n(8460),s=n(2585),a=function(){function e(e,t,n){this._bufferService=e,this._logService=t,this._unicodeService=n,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new r.EventEmitter,this._onHideLinkUnderline=new r.EventEmitter,this._onLinkTooltip=new r.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(e.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),e.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},e.prototype.linkifyRows=function(t,n){var i=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(t,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return i._linkifyRows()},e._timeBeforeLatency))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var n=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,i=Math.ceil(2e3/this._bufferService.cols),o=this._bufferService.buffer.iterator(!1,t,n,i,i);o.hasNext();)for(var r=o.next(),s=0;s=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},e.prototype.deregisterLinkMatcher=function(e){for(var t=0;t>9&511:void 0;n.validationCallback?n.validationCallback(a,function(e){o._rowsTimeoutId||e&&o._addLink(l[1],l[0]-o._bufferService.buffer.ydisp,a,n,h)}):c._addLink(l[1],l[0]-c._bufferService.buffer.ydisp,a,n,h)},c=this;null!==(i=r.exec(t))&&"break"!==a(););},e.prototype._addLink=function(e,t,n,i,o){var r=this;if(this._mouseZoneManager&&this._element){var s=this._unicodeService.getStringCellWidth(n),a=e%this._bufferService.cols,l=t+Math.floor(e/this._bufferService.cols),u=(a+s)%this._bufferService.cols,d=l+Math.floor((a+s)/this._bufferService.cols);0===u&&(u=this._bufferService.cols,d--),this._mouseZoneManager.add(new c(a+1,l+1,u+1,d+1,function(e){if(i.handler)return i.handler(e,n);var t=window.open();t?(t.opener=null,t.location.href=n):console.warn("Opening link blocked as opener could not be cleared")},function(){r._onShowLinkUnderline.fire(r._createLinkHoverEvent(a,l,u,d,o)),r._element.classList.add("xterm-cursor-pointer")},function(e){r._onLinkTooltip.fire(r._createLinkHoverEvent(a,l,u,d,o)),i.hoverTooltipCallback&&i.hoverTooltipCallback(e,n,{start:{x:a,y:l},end:{x:u,y:d}})},function(){r._onHideLinkUnderline.fire(r._createLinkHoverEvent(a,l,u,d,o)),r._element.classList.remove("xterm-cursor-pointer"),i.hoverLeaveCallback&&i.hoverLeaveCallback()},function(e){return!i.willLinkActivate||i.willLinkActivate(e,n)}))}},e.prototype._createLinkHoverEvent=function(e,t,n,i,o){return{x1:e,y1:t,x2:n,y2:i,cols:this._bufferService.cols,fg:o}},e._timeBeforeLatency=200,e=i([o(0,s.IBufferService),o(1,s.ILogService),o(2,s.IUnicodeService)],e)}();t.Linkifier=a;var c=function(e,t,n,i,o,r,s,a,c){this.x1=e,this.y1=t,this.x2=n,this.y2=i,this.clickCallback=o,this.hoverCallback=r,this.tooltipCallback=s,this.leaveCallback=a,this.willLinkActivate=c};t.MouseZone=c},6465:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var a=n(2585),c=n(8460),l=n(844),u=n(3656),d=function(e){function t(t){var n=e.call(this)||this;return n._bufferService=t,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new c.EventEmitter),n._onHideLinkUnderline=n.register(new c.EventEmitter),n.register((0,l.getDisposeArrayDisposable)(n._linkCacheDisposables)),n}return o(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var n=t._linkProviders.indexOf(e);-1!==n&&t._linkProviders.splice(n,1)}}},t.prototype.attachToDom=function(e,t,n){var i=this;this._element=e,this._mouseService=t,this._renderService=n,this.register((0,u.addDisposableDomListener)(this._element,"mouseleave",function(){i._isMouseOut=!0,i._clearCurrentLink()})),this.register((0,u.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"click",this._onClick.bind(this)))},t.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var n=e.composedPath(),i=0;ie?this._bufferService.cols:s.link.range.end.x,l=a;l<=c;l++){if(n.has(l)){o.splice(r--,1);break}n.add(l)}}},t.prototype._checkLinkProviderResult=function(e,t,n){var i,o=this;if(!this._activeProviderReplies)return n;for(var r=this._activeProviderReplies.get(e),s=!1,a=0;a=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,l.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._linkAtPosition(e.link,n)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.pointerCursor},set:function(e){var n,i;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(i=t._element)||void 0===i||i.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.underline},set:function(n){var i,o,r;(null===(i=t._currentLink)||void 0===i?void 0:i.state)&&(null===(r=null===(o=t._currentLink)||void 0===o?void 0:o.state)||void 0===r?void 0:r.decorations.underline)!==n&&(t._currentLink.state.decorations.underline=n,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,n))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(e){var n=0===e.start?0:e.start+1+t._bufferService.buffer.ydisp;t._clearCurrentLink(n,e.end+1+t._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(e,t,n){var i;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(n,t.text)},t.prototype._fireUnderlineEvent=function(e,t){var n=e.range,i=this._bufferService.buffer.ydisp,o=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-i-1,n.end.x,n.end.y-i-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(o)},t.prototype._linkLeave=function(e,t,n){var i;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(n,t.text)},t.prototype._linkAtPosition=function(e,t){var n=e.range.start.y===e.range.end.y,i=e.range.start.yt.y;return(n&&e.range.start.x<=t.x&&e.range.end.x>=t.x||i&&e.range.end.x>=t.x||o&&e.range.start.x<=t.x||i&&o)&&e.range.start.y<=t.y&&e.range.end.y>=t.y},t.prototype._positionFromMouseEvent=function(e,t,n){var i=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(e,t,n,i,o){return{x1:e,y1:t,x2:n,y2:i,cols:this._bufferService.cols,fg:o}},r([s(0,a.IBufferService)],t)}(l.Disposable);t.Linkifier2=d},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var a=n(844),c=n(3656),l=n(4725),u=n(2585),d=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;return a._element=t,a._screenElement=n,a._bufferService=i,a._mouseService=o,a._selectionService=r,a._optionsService=s,a._zones=[],a._areZonesActive=!1,a._lastHoverCoords=[void 0,void 0],a._initialSelectionLength=0,a.register((0,c.addDisposableDomListener)(a._element,"mousedown",function(e){return a._onMouseDown(e)})),a._mouseMoveListener=function(e){return a._onMouseMove(e)},a._mouseLeaveListener=function(e){return a._onMouseLeave(e)},a._clickListener=function(e){return a._onClick(e)},a}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var n=0;ne&&i.y1<=t+1||i.y2>e&&i.y2<=t+1||i.y1t+1)&&(this._currentZone&&this._currentZone===i&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(n--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,n=this._findZoneEventAt(e);n!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),n&&(this._currentZone=n,n.hoverCallback&&n.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);null==t||t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);(null==t?void 0:t.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e),n=this._getSelectionLength();t&&n===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var n=t[0],i=t[1],o=0;o=r.x1&&n=r.x1||i===r.y2&&nr.y1&&i{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0;var n=function(){function e(e){this._renderCallback=e}return e.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.refresh=function(e,t,n){var i=this;this._rowCount=n,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return i._innerRefresh()}))},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(e,t)}},e}();t.RenderDebouncer=n},5596:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._currentDevicePixelRatio=window.devicePixelRatio,t}return o(t,e),t.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.prototype._updateDpr=function(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},t.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},t}(n(844).Disposable);t.ScreenDprMonitor=r},3236:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var r=n(2950),s=n(1680),a=n(3614),c=n(2584),l=n(5435),u=n(3525),d=n(3551),h=n(9312),p=n(6114),f=n(3656),m=n(9042),g=n(357),v=n(6954),b=n(4567),y=n(1296),_=n(7399),M=n(8460),w=n(8437),C=n(5680),S=n(3230),A=n(4725),E=n(428),O=n(8934),L=n(6465),T=n(5114),x=n(8969),R=n(4774),k=n(4269),z=n(5941),P="undefined"!=typeof window?window.document:null,N=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.browser=p,n._keyDownHandled=!1,n._keyPressHandled=!1,n._unprocessedDeadKey=!1,n._onCursorMove=new M.EventEmitter,n._onKey=new M.EventEmitter,n._onRender=new M.EventEmitter,n._onSelectionChange=new M.EventEmitter,n._onTitleChange=new M.EventEmitter,n._onBell=new M.EventEmitter,n._onFocus=new M.EventEmitter,n._onBlur=new M.EventEmitter,n._onA11yCharEmitter=new M.EventEmitter,n._onA11yTabEmitter=new M.EventEmitter,n._setup(),n.linkifier=n._instantiationService.createInstance(d.Linkifier),n.linkifier2=n.register(n._instantiationService.createInstance(L.Linkifier2)),n.register(n._inputHandler.onRequestBell(function(){return n.bell()})),n.register(n._inputHandler.onRequestRefreshRows(function(e,t){return n.refresh(e,t)})),n.register(n._inputHandler.onRequestSendFocus(function(){return n._reportFocus()})),n.register(n._inputHandler.onRequestReset(function(){return n.reset()})),n.register(n._inputHandler.onRequestWindowsOptionsReport(function(e){return n._reportWindowsOptions(e)})),n.register(n._inputHandler.onColor(function(e){return n._handleColorEvent(e)})),n.register((0,M.forwardEvent)(n._inputHandler.onCursorMove,n._onCursorMove)),n.register((0,M.forwardEvent)(n._inputHandler.onTitleChange,n._onTitleChange)),n.register((0,M.forwardEvent)(n._inputHandler.onA11yChar,n._onA11yCharEmitter)),n.register((0,M.forwardEvent)(n._inputHandler.onA11yTab,n._onA11yTabEmitter)),n.register(n._bufferService.onResize(function(e){return n._afterResize(e.cols,e.rows)})),n}return o(t,e),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),t.prototype._handleColorEvent=function(e){var t,n;if(this._colorManager){for(var i=0,o=e;i4)&&t.coreMouseService.triggerMouseEvent({col:o.x-33,row:o.y-33,button:n,action:i,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var o={mouseup:null,wheel:null,mousedrag:null,mousemove:null},r=function(t){return i(t),t.buttons||(e._document.removeEventListener("mouseup",o.mouseup),o.mousedrag&&e._document.removeEventListener("mousemove",o.mousedrag)),e.cancel(t)},s=function(t){return i(t),e.cancel(t,!0)},a=function(e){e.buttons&&i(e)},l=function(e){e.buttons||i(e)};this.register(this.coreMouseService.onProtocolChange(function(t){t?("debug"===e.optionsService.rawOptions.logLevel&&e._logService.debug("Binding to mouse events:",e.coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?o.mousemove||(n.addEventListener("mousemove",l),o.mousemove=l):(n.removeEventListener("mousemove",o.mousemove),o.mousemove=null),16&t?o.wheel||(n.addEventListener("wheel",s,{passive:!1}),o.wheel=s):(n.removeEventListener("wheel",o.wheel),o.wheel=null),2&t?o.mouseup||(o.mouseup=r):(e._document.removeEventListener("mouseup",o.mouseup),o.mouseup=null),4&t?o.mousedrag||(o.mousedrag=a):(e._document.removeEventListener("mousemove",o.mousedrag),o.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,f.addDisposableDomListener)(n,"mousedown",function(t){if(t.preventDefault(),e.focus(),e.coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return i(t),o.mouseup&&e._document.addEventListener("mouseup",o.mouseup),o.mousedrag&&e._document.addEventListener("mousemove",o.mousedrag),e.cancel(t)})),this.register((0,f.addDisposableDomListener)(n,"wheel",function(t){if(!o.wheel){if(!e.buffer.hasScrollback){var n=e.viewport.getLinesScrolled(t);if(0===n)return;for(var i=c.C0.ESC+(e.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),r="",s=0;s47)},t.prototype._keyUp=function(e){this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)},t.prototype._keyPress=function(e){var t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},t.prototype._inputEvent=function(e){if(e.data&&"insertText"===e.inputType&&!e.composed&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1},t.prototype.bell=function(){var e;this._soundBell()&&(null===(e=this._soundService)||void 0===e||e.playBellSound()),this._onBell.fire()},t.prototype.resize=function(t,n){t!==this.cols||n!==this.rows?e.prototype.resize.call(this,t,n):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},t.prototype._afterResize=function(e,t){var n,i;null===(n=this._charSizeService)||void 0===n||n.measure(),null===(i=this.viewport)||void 0===i||i.syncScrollArea(!0)},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0;var n=function(){function e(e,t){void 0===t&&(t=1e3),this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return e.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},e.prototype.refresh=function(e,t,n){var i=this;this._rowCount=n,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;var o=Date.now();if(o-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=o,this._innerRefresh();else if(!this._additionalRefreshRequested){var r=o-this._lastRefreshMs,s=this._debounceThresholdMS-r;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){i._lastRefreshMs=Date.now(),i._innerRefresh(),i._additionalRefreshRequested=!1,i._refreshTimeoutID=void 0},s)}},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},e}();t.TimeBasedDebouncer=n},1680:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var a=n(844),c=n(3656),l=n(4725),u=n(2585),d=function(e){function t(t,n,i,o,r,s,a,l){var u=e.call(this)||this;return u._scrollLines=t,u._viewportElement=n,u._scrollArea=i,u._element=o,u._bufferService=r,u._optionsService=s,u._charSizeService=a,u._renderService=l,u.scrollBarWidth=0,u._currentRowHeight=0,u._currentScaledCellHeight=0,u._lastRecordedBufferLength=0,u._lastRecordedViewportHeight=0,u._lastRecordedBufferHeight=0,u._lastTouchY=0,u._lastScrollTop=0,u._lastHadScrollBar=!1,u._wheelPartialScroll=0,u._refreshAnimationFrame=null,u._ignoreNextScrollEvent=!1,u.scrollBarWidth=u._viewportElement.offsetWidth-u._scrollArea.offsetWidth||15,u._lastHadScrollBar=!0,u.register((0,c.addDisposableDomListener)(u._viewportElement,"scroll",u._onScroll.bind(u))),u._activeBuffer=u._bufferService.buffer,u.register(u._bufferService.buffers.onBufferActivate(function(e){return u._activeBuffer=e.activeBuffer})),u._renderDimensions=u._renderService.dimensions,u.register(u._renderService.onDimensionsChange(function(e){return u._renderDimensions=e})),setTimeout(function(){return u.syncScrollArea()},0),u}return o(t,e),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),0===this._optionsService.rawOptions.scrollback?this.scrollBarWidth=0:this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0;var n=window.getComputedStyle(this._element),i=parseInt(n.paddingLeft)+parseInt(n.paddingRight);this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth+(this._lastHadScrollBar?i:0)).toString()+"px",this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.rawOptions.scrollback>0&&this._refresh(e):this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},t.prototype._bubbleScroll=function(e,t){var n=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&n0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},t.prototype._applyScrollModifier=function(e,t){var n=this._optionsService.rawOptions.fastScrollModifier;return"alt"===n&&t.altKey||"ctrl"===n&&t.ctrlKey||"shift"===n&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},r([s(4,u.IBufferService),s(5,u.IOptionsService),s(6,l.ICharSizeService),s(7,l.IRenderService)],t)}(a.Disposable);t.Viewport=d},2950:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var r=n(4725),s=n(2585),a=function(){function e(e,t,n,i,o,r){this._textarea=e,this._compositionView=t,this._bufferService=n,this._optionsService=i,this._coreService=o,this._renderService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(e.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var e;t._isSendingComposition&&(t._isSendingComposition=!1,n.start+=t._dataAlreadySent.length,(e=t._isComposing?t._textarea.value.substring(n.start,n.end):t._textarea.value.substring(n.start)).length>0&&t._coreService.triggerDataEvent(e,!0))},0)}else{this._isSendingComposition=!1;var i=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(i,!0)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout(function(){if(!e._isComposing){var n=e._textarea.value.replace(t,"");n.length>0&&(e._dataAlreadySent=n,e._coreService.triggerDataEvent(n,!0))}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._renderService.dimensions.actualCellHeight,o=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,r=n*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=r+"px",this._compositionView.style.top=o+"px",this._compositionView.style.height=i+"px",this._compositionView.style.lineHeight=i+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var s=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=o+"px",this._textarea.style.width=Math.max(s.width,1)+"px",this._textarea.style.height=Math.max(s.height,1)+"px",this._textarea.style.lineHeight=s.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},i([o(2,s.IBufferService),o(3,s.IOptionsService),o(4,s.ICoreService),o(5,r.IRenderService)],e)}();t.CompositionHelper=a},9806:(e,t)=>{function n(e,t){var n=t.getBoundingClientRect();return[e.clientX-n.left,e.clientY-n.top]}Object.defineProperty(t,"__esModule",{value:!0}),t.getRawByteCoords=t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=n,t.getCoords=function(e,t,i,o,r,s,a,c){if(r){var l=n(e,t);if(l)return l[0]=Math.ceil((l[0]+(c?s/2:0))/s),l[1]=Math.ceil(l[1]/a),l[0]=Math.min(Math.max(l[0],1),i+(c?1:0)),l[1]=Math.min(Math.max(l[1],1),o),l}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},9504:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var i=n(2584);function o(e,t,n,i){var o=e-r(n,e),a=t-r(n,t),u=Math.abs(o-a)-function(e,t,n){for(var i=0,o=e-r(n,e),a=t-r(n,t),c=0;c=0&&tt?"A":"B"}function a(e,t,n,i,o,r){for(var s=e,a=t,c="";s!==n||a!==i;)s+=o?1:-1,o&&s>r.cols-1?(c+=r.buffer.translateBufferLineToString(a,!1,e,s),s=0,e=0,a++):!o&&s<0&&(c+=r.buffer.translateBufferLineToString(a,!1,0,e+1),e=s=r.cols-1,a--);return c+r.buffer.translateBufferLineToString(a,!1,e,s)}function c(e,t){var n=t?"O":"[";return i.C0.ESC+n+e}function l(e,t){e=Math.floor(e);for(var n="",i=0;i0?i-r(s,i):t;var h=i,p=function(e,t,n,i,s,a){var c;return c=o(n,i,s,a).length>0?i-r(s,i):t,e=n&&ce?"D":"C",l(Math.abs(u-e),c(s,i));s=d>t?"D":"C";var h=Math.abs(d-t);return l(function(e,t){return t.cols-e}(d>t?e:u,n)+(h-1)*n.cols+1+((d>t?u:e)-1),c(s,i))}},4389:function(e,t,n){var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;var i=n(643),o=n(8803),r=n(1420),s=n(3734),a=n(1752),c=n(4774),l=n(9631),u=n(8978),d=function(){function e(e,t,n,i,o,r,s,a){this._container=e,this._alpha=i,this._colors=o,this._rendererId=r,this._bufferService=s,this._optionsService=a,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=n.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){var e;(0,l.removeElementFromParent)(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},e.prototype._initCanvas=function(){this._ctx=(0,a.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},e.prototype.onOptionsChanged=function(){},e.prototype.onBlur=function(){},e.prototype.onFocus=function(){},e.prototype.onCursorMove=function(){},e.prototype.onGridChanged=function(e,t){},e.prototype.onSelectionChanged=function(e,t,n){void 0===n&&(n=!1)},e.prototype.setColors=function(e){this._refreshCharAtlas(e)},e.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},e.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,r.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},e.prototype.clearTextureAtlas=function(){var e;null===(e=this._charAtlas)||void 0===e||e.clear()},e.prototype._fillCells=function(e,t,n,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight)},e.prototype._fillMiddleLineAtCells=function(e,t,n){void 0===n&&(n=1);var i=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-i-window.devicePixelRatio,n*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillBottomLineAtCells=function(e,t,n){void 0===n&&(n=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,n*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillLeftLineAtCell=function(e,t,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*n,this._scaledCellHeight)},e.prototype._strokeRectAtCell=function(e,t,n,i){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,n*this._scaledCellWidth-window.devicePixelRatio,i*this._scaledCellHeight-window.devicePixelRatio)},e.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype._clearCells=function(e,t,n,i){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight))},e.prototype._fillCharTrueColor=function(e,t,n){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=o.TEXT_BASELINE,this._clipRow(n);var i=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(i=(0,u.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,n*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),i||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},e.prototype._drawChars=function(e,t,n){var r,s,a,c=this._getContrastColor(e);c||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,t,n,c):(e.isInverse()?(s=e.isBgDefault()?o.INVERTED_DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?o.INVERTED_DEFAULT_COLOR:e.getFgColor()):(a=e.isBgDefault()?i.DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?i.DEFAULT_COLOR:e.getFgColor()),s+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||i.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||i.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=s,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),(null===(r=this._charAtlas)||void 0===r?void 0:r.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,n))},e.prototype._drawUncachedChars=function(e,t,n,i){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=o.TEXT_BASELINE,e.isInverse())if(i)this._ctx.fillStyle=i.css;else if(e.isBgDefault())this._ctx.fillStyle=c.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var r=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&r<8&&(r+=8),this._ctx.fillStyle=this._colors.ansi[r].css}else if(i)this._ctx.fillStyle=i.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var a=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(n),e.isDim()&&(this._ctx.globalAlpha=o.DIM_OPACITY);var l=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(l=(0,u.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,n*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),l||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},e.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},e.prototype._getContrastColor=function(e){if(1!==this._optionsService.rawOptions.minimumContrastRatio){var t=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==t)return t||void 0;var n=e.getFgColor(),i=e.getFgColorMode(),o=e.getBgColor(),r=e.getBgColorMode(),s=!!e.isInverse(),a=!!e.isInverse();if(s){var l=n;n=o,o=l;var u=i;i=r,r=u}var d=this._resolveBackgroundRgba(r,o,s),h=this._resolveForegroundRgba(i,n,s,a),p=c.rgba.ensureContrastRatio(d,h,this._optionsService.rawOptions.minimumContrastRatio);if(p){var f={css:c.channels.toCss(p>>24&255,p>>16&255,p>>8&255),rgba:p};return this._colors.contrastCache.setColor(e.bg,e.fg,f),f}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},e.prototype._resolveBackgroundRgba=function(e,t,n){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return n?this._colors.foreground.rgba:this._colors.background.rgba}},e.prototype._resolveForegroundRgba=function(e,t,n,i){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&i&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return n?this._colors.background.rgba:this._colors.foreground.rgba}},e}();t.BaseRenderLayer=d},2512:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;var a=n(1546),c=n(511),l=n(2585),u=n(4725),d=600,h=function(e){function t(t,n,i,o,r,s,a,l,u){var d=e.call(this,t,"cursor",n,!0,i,o,s,a)||this;return d._onRequestRedraw=r,d._coreService=l,d._coreBrowserService=u,d._cell=new c.CellData,d._state={x:0,y:0,isFocused:!1,style:"",width:0},d._cursorRenderers={bar:d._renderBarCursor.bind(d),block:d._renderBlockCursor.bind(d),underline:d._renderUnderlineCursor.bind(d)},d}return o(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var e;this._clearCursor(),null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new p(this._coreBrowserService.isFocused,function(){t._render(!0)})):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation()},t.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=t-this._bufferService.buffer.ydisp;if(n<0||n>=this._bufferService.rows)this._clearCursor();else{var i=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(i,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var o=this._optionsService.rawOptions.cursorStyle;return o&&"block"!==o?this._cursorRenderers[o](i,n,this._cell):this._renderBlurCursor(i,n,this._cell),this._ctx.restore(),this._state.x=i,this._state.y=n,this._state.isFocused=!1,this._state.style=o,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===i&&this._state.y===n&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](i,n,this._cell),this._ctx.restore(),this._state.x=i,this._state.y=n,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,n.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(n,e,t),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,n.getWidth(),1),this._ctx.restore()},r([s(5,l.IBufferService),s(6,l.IOptionsService),s(7,l.ICoreService),s(8,u.ICoreBrowserService)],t)}(a.BaseRenderLayer);t.CursorRenderLayer=h;var p=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=void 0})))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=d),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(t._animationTimeRestarted){var e=d-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0}),t._blinkInterval=window.setInterval(function(){if(t._animationTimeRestarted){var e=d-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})},d)},e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:(e,t,n)=>{var i,o,r,s,a,c,l,u,d,h,p,f,m,g,v,b,y,_,M,w,C,S,A,E,O,L,T,x,R,k,z,P,N,I,D,B,q,j,W,F,H,X,U,V,G,K,$,Y,J,Q,Z,ee,te,ne,ie,oe,re,se,ae,ce,le,ue,de,he,pe,fe,me,ge,ve,be,ye,_e,Me,we,Ce,Se,Ae,Ee,Oe,Le,Te,xe,Re,ke,ze,Pe,Ne,Ie,De,Be,qe,je,We,Fe,He,Xe,Ue,Ve,Ge,Ke,$e,Ye,Je,Qe,Ze,et,tt,nt,it,ot,rt,st,at,ct,lt,ut,dt,ht,pt,ft,mt,gt,vt,bt,yt,_t,Mt,wt;Object.defineProperty(t,"__esModule",{value:!0}),t.tryDrawCustomChar=t.boxDrawingDefinitions=t.blockElementDefinitions=void 0;var Ct=n(1752);t.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:9,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var St={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};t.boxDrawingDefinitions={"─":(i={},i[1]="M0,.5 L1,.5",i),"━":(o={},o[3]="M0,.5 L1,.5",o),"│":(r={},r[1]="M.5,0 L.5,1",r),"┃":(s={},s[3]="M.5,0 L.5,1",s),"┌":(a={},a[1]="M0.5,1 L.5,.5 L1,.5",a),"┏":(c={},c[3]="M0.5,1 L.5,.5 L1,.5",c),"┐":(l={},l[1]="M0,.5 L.5,.5 L.5,1",l),"┓":(u={},u[3]="M0,.5 L.5,.5 L.5,1",u),"└":(d={},d[1]="M.5,0 L.5,.5 L1,.5",d),"┗":(h={},h[3]="M.5,0 L.5,.5 L1,.5",h),"┘":(p={},p[1]="M.5,0 L.5,.5 L0,.5",p),"┛":(f={},f[3]="M.5,0 L.5,.5 L0,.5",f),"├":(m={},m[1]="M.5,0 L.5,1 M.5,.5 L1,.5",m),"┣":(g={},g[3]="M.5,0 L.5,1 M.5,.5 L1,.5",g),"┤":(v={},v[1]="M.5,0 L.5,1 M.5,.5 L0,.5",v),"┫":(b={},b[3]="M.5,0 L.5,1 M.5,.5 L0,.5",b),"┬":(y={},y[1]="M0,.5 L1,.5 M.5,.5 L.5,1",y),"┳":(_={},_[3]="M0,.5 L1,.5 M.5,.5 L.5,1",_),"┴":(M={},M[1]="M0,.5 L1,.5 M.5,.5 L.5,0",M),"┻":(w={},w[3]="M0,.5 L1,.5 M.5,.5 L.5,0",w),"┼":(C={},C[1]="M0,.5 L1,.5 M.5,0 L.5,1",C),"╋":(S={},S[3]="M0,.5 L1,.5 M.5,0 L.5,1",S),"╴":(A={},A[1]="M.5,.5 L0,.5",A),"╸":(E={},E[3]="M.5,.5 L0,.5",E),"╵":(O={},O[1]="M.5,.5 L.5,0",O),"╹":(L={},L[3]="M.5,.5 L.5,0",L),"╶":(T={},T[1]="M.5,.5 L1,.5",T),"╺":(x={},x[3]="M.5,.5 L1,.5",x),"╷":(R={},R[1]="M.5,.5 L.5,1",R),"╻":(k={},k[3]="M.5,.5 L.5,1",k),"═":(z={},z[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},z),"║":(P={},P[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},P),"╒":(N={},N[1]=function(e,t){return"M.5,1 L.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},N),"╓":(I={},I[1]=function(e,t){return"M"+(.5-e)+",1 L"+(.5-e)+",.5 L1,.5 M"+(.5+e)+",.5 L"+(.5+e)+",1"},I),"╔":(D={},D[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},D),"╕":(B={},B[1]=function(e,t){return"M0,"+(.5-t)+" L.5,"+(.5-t)+" L.5,1 M0,"+(.5+t)+" L.5,"+(.5+t)},B),"╖":(q={},q[1]=function(e,t){return"M"+(.5+e)+",1 L"+(.5+e)+",.5 L0,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1"},q),"╗":(j={},j[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",1"},j),"╘":(W={},W[1]=function(e,t){return"M.5,0 L.5,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5-t)+" L1,"+(.5-t)},W),"╙":(F={},F[1]=function(e,t){return"M1,.5 L"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},F),"╚":(H={},H[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0 M1,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",0"},H),"╛":(X={},X[1]=function(e,t){return"M0,"+(.5+t)+" L.5,"+(.5+t)+" L.5,0 M0,"+(.5-t)+" L.5,"+(.5-t)},X),"╜":(U={},U[1]=function(e,t){return"M0,.5 L"+(.5+e)+",.5 L"+(.5+e)+",0 M"+(.5-e)+",.5 L"+(.5-e)+",0"},U),"╝":(V={},V[1]=function(e,t){return"M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M0,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",0"},V),"╞":(G={},G[1]=function(e,t){return"M.5,0 L.5,1 M.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},G),"╟":(K={},K[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1 M"+(.5+e)+",.5 L1,.5"},K),"╠":($={},$[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},$),"╡":(Y={},Y[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L.5,"+(.5-t)+" M0,"+(.5+t)+" L.5,"+(.5+t)},Y),"╢":(J={},J[1]=function(e,t){return"M0,.5 L"+(.5-e)+",.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},J),"╣":(Q={},Q[1]=function(e,t){return"M"+(.5+e)+",0 L"+(.5+e)+",1 M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0"},Q),"╤":(Z={},Z[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5+t)+" L.5,1"},Z),"╥":(ee={},ee[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1 M"+(.5+e)+",.5 L"+(.5+e)+",1"},ee),"╦":(te={},te[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},te),"╧":(ne={},ne[1]=function(e,t){return"M.5,0 L.5,"+(.5-t)+" M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},ne),"╨":(ie={},ie[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},ie),"╩":(oe={},oe[1]=function(e,t){return"M0,"+(.5+t)+" L1,"+(.5+t)+" M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},oe),"╪":(re={},re[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},re),"╫":(se={},se[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},se),"╬":(ae={},ae[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},ae),"╱":(ce={},ce[1]="M1,0 L0,1",ce),"╲":(le={},le[1]="M0,0 L1,1",le),"╳":(ue={},ue[1]="M1,0 L0,1 M0,0 L1,1",ue),"╼":(de={},de[1]="M.5,.5 L0,.5",de[3]="M.5,.5 L1,.5",de),"╽":(he={},he[1]="M.5,.5 L.5,0",he[3]="M.5,.5 L.5,1",he),"╾":(pe={},pe[1]="M.5,.5 L1,.5",pe[3]="M.5,.5 L0,.5",pe),"╿":(fe={},fe[1]="M.5,.5 L.5,1",fe[3]="M.5,.5 L.5,0",fe),"┍":(me={},me[1]="M.5,.5 L.5,1",me[3]="M.5,.5 L1,.5",me),"┎":(ge={},ge[1]="M.5,.5 L1,.5",ge[3]="M.5,.5 L.5,1",ge),"┑":(ve={},ve[1]="M.5,.5 L.5,1",ve[3]="M.5,.5 L0,.5",ve),"┒":(be={},be[1]="M.5,.5 L0,.5",be[3]="M.5,.5 L.5,1",be),"┕":(ye={},ye[1]="M.5,.5 L.5,0",ye[3]="M.5,.5 L1,.5",ye),"┖":(_e={},_e[1]="M.5,.5 L1,.5",_e[3]="M.5,.5 L.5,0",_e),"┙":(Me={},Me[1]="M.5,.5 L.5,0",Me[3]="M.5,.5 L0,.5",Me),"┚":(we={},we[1]="M.5,.5 L0,.5",we[3]="M.5,.5 L.5,0",we),"┝":(Ce={},Ce[1]="M.5,0 L.5,1",Ce[3]="M.5,.5 L1,.5",Ce),"┞":(Se={},Se[1]="M0.5,1 L.5,.5 L1,.5",Se[3]="M.5,.5 L.5,0",Se),"┟":(Ae={},Ae[1]="M.5,0 L.5,.5 L1,.5",Ae[3]="M.5,.5 L.5,1",Ae),"┠":(Ee={},Ee[1]="M.5,.5 L1,.5",Ee[3]="M.5,0 L.5,1",Ee),"┡":(Oe={},Oe[1]="M.5,.5 L.5,1",Oe[3]="M.5,0 L.5,.5 L1,.5",Oe),"┢":(Le={},Le[1]="M.5,.5 L.5,0",Le[3]="M0.5,1 L.5,.5 L1,.5",Le),"┥":(Te={},Te[1]="M.5,0 L.5,1",Te[3]="M.5,.5 L0,.5",Te),"┦":(xe={},xe[1]="M0,.5 L.5,.5 L.5,1",xe[3]="M.5,.5 L.5,0",xe),"┧":(Re={},Re[1]="M.5,0 L.5,.5 L0,.5",Re[3]="M.5,.5 L.5,1",Re),"┨":(ke={},ke[1]="M.5,.5 L0,.5",ke[3]="M.5,0 L.5,1",ke),"┩":(ze={},ze[1]="M.5,.5 L.5,1",ze[3]="M.5,0 L.5,.5 L0,.5",ze),"┪":(Pe={},Pe[1]="M.5,.5 L.5,0",Pe[3]="M0,.5 L.5,.5 L.5,1",Pe),"┭":(Ne={},Ne[1]="M0.5,1 L.5,.5 L1,.5",Ne[3]="M.5,.5 L0,.5",Ne),"┮":(Ie={},Ie[1]="M0,.5 L.5,.5 L.5,1",Ie[3]="M.5,.5 L1,.5",Ie),"┯":(De={},De[1]="M.5,.5 L.5,1",De[3]="M0,.5 L1,.5",De),"┰":(Be={},Be[1]="M0,.5 L1,.5",Be[3]="M.5,.5 L.5,1",Be),"┱":(qe={},qe[1]="M.5,.5 L1,.5",qe[3]="M0,.5 L.5,.5 L.5,1",qe),"┲":(je={},je[1]="M.5,.5 L0,.5",je[3]="M0.5,1 L.5,.5 L1,.5",je),"┵":(We={},We[1]="M.5,0 L.5,.5 L1,.5",We[3]="M.5,.5 L0,.5",We),"┶":(Fe={},Fe[1]="M.5,0 L.5,.5 L0,.5",Fe[3]="M.5,.5 L1,.5",Fe),"┷":(He={},He[1]="M.5,.5 L.5,0",He[3]="M0,.5 L1,.5",He),"┸":(Xe={},Xe[1]="M0,.5 L1,.5",Xe[3]="M.5,.5 L.5,0",Xe),"┹":(Ue={},Ue[1]="M.5,.5 L1,.5",Ue[3]="M.5,0 L.5,.5 L0,.5",Ue),"┺":(Ve={},Ve[1]="M.5,.5 L0,.5",Ve[3]="M.5,0 L.5,.5 L1,.5",Ve),"┽":(Ge={},Ge[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Ge[3]="M.5,.5 L0,.5",Ge),"┾":(Ke={},Ke[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Ke[3]="M.5,.5 L1,.5",Ke),"┿":($e={},$e[1]="M.5,0 L.5,1",$e[3]="M0,.5 L1,.5",$e),"╀":(Ye={},Ye[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Ye[3]="M.5,.5 L.5,0",Ye),"╁":(Je={},Je[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Je[3]="M.5,.5 L.5,1",Je),"╂":(Qe={},Qe[1]="M0,.5 L1,.5",Qe[3]="M.5,0 L.5,1",Qe),"╃":(Ze={},Ze[1]="M0.5,1 L.5,.5 L1,.5",Ze[3]="M.5,0 L.5,.5 L0,.5",Ze),"╄":(et={},et[1]="M0,.5 L.5,.5 L.5,1",et[3]="M.5,0 L.5,.5 L1,.5",et),"╅":(tt={},tt[1]="M.5,0 L.5,.5 L1,.5",tt[3]="M0,.5 L.5,.5 L.5,1",tt),"╆":(nt={},nt[1]="M.5,0 L.5,.5 L0,.5",nt[3]="M0.5,1 L.5,.5 L1,.5",nt),"╇":(it={},it[1]="M.5,.5 L.5,1",it[3]="M.5,.5 L.5,0 M0,.5 L1,.5",it),"╈":(ot={},ot[1]="M.5,.5 L.5,0",ot[3]="M0,.5 L1,.5 M.5,.5 L.5,1",ot),"╉":(rt={},rt[1]="M.5,.5 L1,.5",rt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",rt),"╊":(st={},st[1]="M.5,.5 L0,.5",st[3]="M.5,0 L.5,1 M.5,.5 L1,.5",st),"╌":(at={},at[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",at),"╍":(ct={},ct[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ct),"┄":(lt={},lt[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",lt),"┅":(ut={},ut[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ut),"┈":(dt={},dt[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",dt),"┉":(ht={},ht[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",ht),"╎":(pt={},pt[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",pt),"╏":(ft={},ft[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",ft),"┆":(mt={},mt[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",mt),"┇":(gt={},gt[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",gt),"┊":(vt={},vt[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",vt),"┋":(bt={},bt[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",bt),"╭":(yt={},yt[1]="C.5,1,.5,.5,1,.5",yt),"╮":(_t={},_t[1]="C.5,1,.5,.5,0,.5",_t),"╯":(Mt={},Mt[1]="C.5,0,.5,.5,0,.5",Mt),"╰":(wt={},wt[1]="C.5,0,.5,.5,1,.5",wt)},t.tryDrawCustomChar=function(e,n,i,o,r,s){var a=t.blockElementDefinitions[n];if(a)return function(e,t,n,i,o,r){for(var s=0;s7&&parseInt(c.substr(7,2),16)||1;else{if(!c.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+c+'" when drawing pattern glyph');m=(s=c.substring(5,c.length-1).split(",").map(function(e){return parseFloat(e)}))[0],g=s[1],v=s[2],b=s[3]}for(var y=0;y{Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0;var n=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var n=0;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;var a=n(1546),c=n(8803),l=n(2040),u=n(2585),d=function(e){function t(t,n,i,o,r,s,a,c){var l=e.call(this,t,"link",n,!0,i,o,a,c)||this;return r.onShowLinkUnderline(function(e){return l._onShowLinkUnderline(e)}),r.onHideLinkUnderline(function(e){return l._onHideLinkUnderline(e)}),s.onShowLinkUnderline(function(e){return l._onShowLinkUnderline(e)}),s.onHideLinkUnderline(function(e){return l._onHideLinkUnderline(e)}),l}return o(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(e){if(e.fg===c.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,l.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var a=n(9596),c=n(4149),l=n(2512),u=n(5098),d=n(844),h=n(4725),p=n(2585),f=n(1420),m=n(8460),g=1,v=function(e){function t(t,n,i,o,r,s,d,h){var p=e.call(this)||this;p._colors=t,p._screenElement=n,p._bufferService=s,p._charSizeService=d,p._optionsService=h,p._id=g++,p._onRequestRedraw=new m.EventEmitter;var f=p._optionsService.rawOptions.allowTransparency;return p._renderLayers=[r.createInstance(a.TextRenderLayer,p._screenElement,0,p._colors,f,p._id),r.createInstance(c.SelectionRenderLayer,p._screenElement,1,p._colors,p._id),r.createInstance(u.LinkRenderLayer,p._screenElement,2,p._colors,p._id,i,o),r.createInstance(l.CursorRenderLayer,p._screenElement,3,p._colors,p._id,p._onRequestRedraw)],p.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},p._devicePixelRatio=window.devicePixelRatio,p._updateDimensions(),p.onOptionsChanged(),p}return o(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){for(var t=0,n=this._renderLayers;t{Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e}},4149:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;var a=n(1546),c=n(2585),l=function(e){function t(t,n,i,o,r,s){var a=e.call(this,t,"selection",n,!0,i,o,r,s)||this;return a._clearState(),a}return o(t,e),t.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._clearState()},t.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},t.prototype.onSelectionChanged=function(e,t,n){if(this._didStateChange(e,t,n,this._bufferService.buffer.ydisp))if(this._clearAll(),e&&t){var i=e[1]-this._bufferService.buffer.ydisp,o=t[1]-this._bufferService.buffer.ydisp,r=Math.max(i,0),s=Math.min(o,this._bufferService.rows-1);if(r>=this._bufferService.rows||s<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,n){var a=e[0],c=t[0]-a,l=s-r+1;this._fillCells(a,r,c,l)}else{a=i===r?e[0]:0;var u=r===o?t[0]:this._bufferService.cols;this._fillCells(a,r,u-a,1);var d=Math.max(s-r-1,0);if(this._fillCells(0,r+1,this._bufferService.cols,d),r!==s){var h=o===s?t[0]:this._bufferService.cols;this._fillCells(0,s,h,1)}}this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=n,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},t.prototype._didStateChange=function(e,t,n,i){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||n!==this._state.columnSelectMode||i!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},r([s(4,c.IBufferService),s(5,c.IOptionsService)],t)}(a.BaseRenderLayer);t.SelectionRenderLayer=l},9596:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;var a=n(3700),c=n(1546),l=n(3734),u=n(643),d=n(511),h=n(2585),p=n(4725),f=n(4269),m=function(e){function t(t,n,i,o,r,s,c,l){var u=e.call(this,t,"text",n,o,i,r,s,c)||this;return u._characterJoinerService=l,u._characterWidth=0,u._characterFont="",u._characterOverlapCache={},u._workCell=new d.CellData,u._state=new a.GridCache,u}return o(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t);var n=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===n||(this._characterWidth=t.scaledCharWidth,this._characterFont=n,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},t.prototype.reset=function(){this._state.clear(),this._clearAll()},t.prototype._forEachCell=function(e,t,n){for(var i=e;i<=t;i++)for(var o=i+this._bufferService.buffer.ydisp,r=this._bufferService.buffer.lines.get(o),s=this._characterJoinerService.getJoinedCharacters(o),a=0;a0&&a===s[0][0]){l=!0;var h=s.shift();c=new f.JoinedCellData(this._workCell,r.translateToString(!0,h[0],h[1]),h[1]-h[0]),d=h[1]-1}!l&&this._isOverlapping(c)&&dthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=n,n},r([s(5,h.IBufferService),s(6,h.IOptionsService),s(7,p.ICharacterJoinerService)],t)}(c.BaseRenderLayer);t.TextRenderLayer=m},9616:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseCharAtlas=void 0;var n=function(){function e(){this._didWarmUp=!1}return e.prototype.dispose=function(){},e.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},e.prototype._doWarmUp=function(){},e.prototype.clear=function(){},e.prototype.beginFrame=function(){},e}();t.BaseCharAtlas=n},1420:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireCharAtlas=void 0;var i=n(2040),o=n(1906),r=[];t.acquireCharAtlas=function(e,t,n,s,a){for(var c=(0,i.generateConfig)(s,a,e,n),l=0;l=0){if((0,i.configEquals)(d.config,c))return d.atlas;1===d.ownedBy.length?(d.atlas.dispose(),r.splice(l,1)):d.ownedBy.splice(u,1);break}}for(l=0;l{Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;var i=n(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=i.isFirefox||i.isLegacyEdge?"bottom":"ideographic",t.CHAR_ATLAS_CELL_SPACING=1},1906:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.NoneCharAtlas=t.DynamicCharAtlas=t.getGlyphCacheKey=void 0;var r=n(8803),s=n(9616),a=n(5680),c=n(7001),l=n(6114),u=n(1752),d=n(4774),h=1024,p=1024,f={css:"rgba(0, 0, 0, 0)",rgba:0};function m(e){return e.code<<21|e.bg<<12|e.fg<<3|(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1)}t.getGlyphCacheKey=m;var g=function(e){function t(t,n){var i=e.call(this)||this;i._config=n,i._drawToCacheCount=0,i._glyphsWaitingOnBitmap=[],i._bitmapCommitTimeout=null,i._bitmap=null,i._cacheCanvas=t.createElement("canvas"),i._cacheCanvas.width=h,i._cacheCanvas.height=p,i._cacheCtx=(0,u.throwIfFalsy)(i._cacheCanvas.getContext("2d",{alpha:!0}));var o=t.createElement("canvas");o.width=i._config.scaledCharWidth,o.height=i._config.scaledCharHeight,i._tmpCtx=(0,u.throwIfFalsy)(o.getContext("2d",{alpha:i._config.allowTransparency})),i._width=Math.floor(h/i._config.scaledCharWidth),i._height=Math.floor(p/i._config.scaledCharHeight);var r=i._width*i._height;return i._cacheMap=new c.LRUMap(r),i._cacheMap.prealloc(r),i}return o(t,e),t.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},t.prototype.beginFrame=function(){this._drawToCacheCount=0},t.prototype.clear=function(){if(this._cacheMap.size>0){var e=this._width*this._height;this._cacheMap=new c.LRUMap(e),this._cacheMap.prealloc(e)}this._cacheCtx.clearRect(0,0,h,p),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},t.prototype.draw=function(e,t,n,i){if(32===t.code)return!0;if(!this._canCache(t))return!1;var o=m(t),r=this._cacheMap.get(o);if(null!=r)return this._drawFromCache(e,r,n,i),!0;if(this._drawToCacheCount<100){var s;s=this._cacheMap.size>>24,o=t.rgba>>>16&255,r=t.rgba>>>8&255,s=0;s{Object.defineProperty(t,"__esModule",{value:!0}),t.LRUMap=void 0;var n=function(){function e(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return e.prototype._unlinkNode=function(e){var t=e.prev,n=e.next;e===this._head&&(this._head=n),e===this._tail&&(this._tail=t),null!==t&&(t.next=n),null!==n&&(n.prev=t)},e.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},e.prototype.prealloc=function(e){for(var t=this._nodePool,n=0;n=this.capacity)n=this._head,this._unlinkNode(n),delete this._map[n.key],n.key=e,n.value=t,this._map[e]=n;else{var i=this._nodePool;i.length>0?((n=i.pop()).key=e,n.value=t):n={prev:null,next:null,key:e,value:t},this._map[e]=n,this.size++}this._appendNode(n)},e}();t.LRUMap=n},1296:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var a=n(3787),c=n(8803),l=n(844),u=n(4725),d=n(2585),h=n(8460),p=n(4774),f=n(9631),m="xterm-dom-renderer-owner-",g="xterm-fg-",v="xterm-bg-",b="xterm-focus",y=1,_=function(e){function t(t,n,i,o,r,s,c,l,u,d){var h=e.call(this)||this;return h._colors=t,h._element=n,h._screenElement=i,h._viewportElement=o,h._linkifier=r,h._linkifier2=s,h._charSizeService=l,h._optionsService=u,h._bufferService=d,h._terminalClass=y++,h._rowElements=[],h._rowContainer=document.createElement("div"),h._rowContainer.classList.add("xterm-rows"),h._rowContainer.style.lineHeight="normal",h._rowContainer.setAttribute("aria-hidden","true"),h._refreshRowElements(h._bufferService.cols,h._bufferService.rows),h._selectionContainer=document.createElement("div"),h._selectionContainer.classList.add("xterm-selection"),h._selectionContainer.setAttribute("aria-hidden","true"),h.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},h._updateDimensions(),h._injectCss(),h._rowFactory=c.createInstance(a.DomRendererRowFactory,document,h._colors),h._element.classList.add(m+h._terminalClass),h._screenElement.appendChild(h._rowContainer),h._screenElement.appendChild(h._selectionContainer),h._linkifier.onShowLinkUnderline(function(e){return h._onLinkHover(e)}),h._linkifier.onHideLinkUnderline(function(e){return h._onLinkLeave(e)}),h._linkifier2.onShowLinkUnderline(function(e){return h._onLinkHover(e)}),h._linkifier2.onHideLinkUnderline(function(e){return h._onLinkLeave(e)}),h}return o(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return(new h.EventEmitter).event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._element.classList.remove(m+this._terminalClass),(0,f.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),e.prototype.dispose.call(this)},t.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var e=0,t=this._rowElements;et;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove(b)},t.prototype.onFocus=function(){this._rowContainer.classList.add(b)},t.prototype.onSelectionChanged=function(e,t,n){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var i=e[1]-this._bufferService.buffer.ydisp,o=t[1]-this._bufferService.buffer.ydisp,r=Math.max(i,0),s=Math.min(o,this._bufferService.rows-1);if(!(r>=this._bufferService.rows||s<0)){var a=document.createDocumentFragment();if(n)a.appendChild(this._createSelectionElement(r,e[0],t[0],s-r+1));else{var c=i===r?e[0]:0,l=r===o?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(r,c,l));var u=s-r-1;if(a.appendChild(this._createSelectionElement(r+1,0,this._bufferService.cols,u)),r!==s){var d=o===s?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(s,0,d))}}this._selectionContainer.appendChild(a)}}},t.prototype._createSelectionElement=function(e,t,n,i){void 0===i&&(i=1);var o=document.createElement("div");return o.style.height=i*this.dimensions.actualCellHeight+"px",o.style.top=e*this.dimensions.actualCellHeight+"px",o.style.left=t*this.dimensions.actualCellWidth+"px",o.style.width=this.dimensions.actualCellWidth*(n-t)+"px",o},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},t.prototype.clear=function(){for(var e=0,t=this._rowElements;e=o&&(e=0,n++)}},r([s(6,d.IInstantiationService),s(7,u.ICharSizeService),s(8,d.IOptionsService),s(9,d.IBufferService)],t)}(l.Disposable);t.DomRenderer=_},3787:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.STRIKETHROUGH_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var r=n(8803),s=n(643),a=n(511),c=n(2585),l=n(4774),u=n(4725),d=n(4269);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.STRIKETHROUGH_CLASS="xterm-strikethrough",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var h=function(){function e(e,t,n,i,o){this._document=e,this._colors=t,this._characterJoinerService=n,this._optionsService=i,this._coreService=o,this._workCell=new a.CellData}return e.prototype.setColors=function(e){this._colors=e},e.prototype.createRow=function(e,n,i,o,a,c,u,h){for(var f=this._document.createDocumentFragment(),m=this._characterJoinerService.getJoinedCharacters(n),g=0,v=Math.min(e.length,h)-1;v>=0;v--)if(e.loadCell(v,this._workCell).getCode()!==s.NULL_CELL_CODE||i&&v===a){g=v+1;break}for(v=0;v0&&v===m[0][0]){y=!0;var w=m.shift();M=new d.JoinedCellData(this._workCell,e.translateToString(!0,w[0],w[1]),w[1]-w[0]),_=w[1]-1,b=M.getWidth()}var C=this._document.createElement("span");if(b>1&&(C.style.width=u*b+"px"),y&&(C.style.display="inline",a>=v&&a<=_&&(a=v)),!this._coreService.isCursorHidden&&i&&v===a)switch(C.classList.add(t.CURSOR_CLASS),c&&C.classList.add(t.CURSOR_BLINK_CLASS),o){case"bar":C.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":C.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:C.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}M.isBold()&&C.classList.add(t.BOLD_CLASS),M.isItalic()&&C.classList.add(t.ITALIC_CLASS),M.isDim()&&C.classList.add(t.DIM_CLASS),M.isUnderline()&&C.classList.add(t.UNDERLINE_CLASS),M.isInvisible()?C.textContent=s.WHITESPACE_CELL_CHAR:C.textContent=M.getChars()||s.WHITESPACE_CELL_CHAR,M.isStrikethrough()&&C.classList.add(t.STRIKETHROUGH_CLASS);var S=M.getFgColor(),A=M.getFgColorMode(),E=M.getBgColor(),O=M.getBgColorMode(),L=!!M.isInverse();if(L){var T=S;S=E,E=T;var x=A;A=O,O=x}switch(A){case 16777216:case 33554432:M.isBold()&&S<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(S+=8),this._applyMinimumContrast(C,this._colors.background,this._colors.ansi[S])||C.classList.add("xterm-fg-"+S);break;case 50331648:var R=l.rgba.toColor(S>>16&255,S>>8&255,255&S);this._applyMinimumContrast(C,this._colors.background,R)||this._addStyle(C,"color:#"+p(S.toString(16),"0",6));break;default:this._applyMinimumContrast(C,this._colors.background,this._colors.foreground)||L&&C.classList.add("xterm-fg-"+r.INVERTED_DEFAULT_COLOR)}switch(O){case 16777216:case 33554432:C.classList.add("xterm-bg-"+E);break;case 50331648:this._addStyle(C,"background-color:#"+p(E.toString(16),"0",6));break;default:L&&C.classList.add("xterm-bg-"+r.INVERTED_DEFAULT_COLOR)}f.appendChild(C),v=_}}return f},e.prototype._applyMinimumContrast=function(e,t,n){if(1===this._optionsService.rawOptions.minimumContrastRatio)return!1;var i=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===i&&(i=l.color.ensureContrastRatio(t,n,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=i?i:null)),!!i&&(this._addStyle(e,"color:"+i.css),!0)},e.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},i([o(2,u.ICharacterJoinerService),o(3,c.IOptionsService),o(4,c.ICoreService)],e)}();function p(e,t,n){for(;e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0;var n=function(){function e(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}return e.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=n},428:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var r=n(2585),s=n(8460),a=function(){function e(e,t,n){this._optionsService=n,this.width=0,this.height=0,this._onCharSizeChange=new s.EventEmitter,this._measureStrategy=new c(e,t,this._optionsService)}return Object.defineProperty(e.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),e.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},i([o(2,r.IOptionsService)],e)}();t.CharSizeService=a;var c=function(){function e(e,t,n){this._document=e,this._parentElement=t,this._optionsService=n,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return e.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},e}()},4269:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;var a=n(3734),c=n(643),l=n(511),u=n(2585),d=function(e){function t(t,n,i){var o=e.call(this)||this;return o.content=0,o.combinedData="",o.fg=t.fg,o.bg=t.bg,o.combinedData=n,o._width=i,o}return o(t,e),t.prototype.isCombined=function(){return 2097152},t.prototype.getWidth=function(){return this._width},t.prototype.getChars=function(){return this.combinedData},t.prototype.getCode=function(){return 2097151},t.prototype.setFromCharData=function(e){throw new Error("not implemented")},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(a.AttributeData);t.JoinedCellData=d;var h=function(){function e(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new l.CellData}return e.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},e.prototype.deregister=function(e){for(var t=0;t1)for(var d=this._getJoinedRanges(i,s,r,t,o),h=0;h1)for(d=this._getJoinedRanges(i,s,r,t,o),h=0;h{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;var n=function(){function e(e){this._textarea=e}return Object.defineProperty(e.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),e}();t.CoreBrowserService=n},8934:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var r=n(4725),s=n(9806),a=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,n,i,o){return(0,s.getCoords)(e,t,n,i,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,o)},e.prototype.getRawByteCoords=function(e,t,n,i){var o=this.getCoords(e,t,n,i);return(0,s.getRawByteCoords)(o)},i([o(0,r.IRenderService),o(1,r.ICharSizeService)],e)}();t.MouseService=a},3230:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var a=n(6193),c=n(8460),l=n(844),u=n(5596),d=n(3656),h=n(2585),p=n(4725),f=function(e){function t(t,n,i,o,r,s){var l=e.call(this)||this;if(l._renderer=t,l._rowCount=n,l._charSizeService=r,l._isPaused=!1,l._needsFullRefresh=!1,l._isNextRenderRedrawOnly=!0,l._needsSelectionRefresh=!1,l._canvasWidth=0,l._canvasHeight=0,l._selectionState={start:void 0,end:void 0,columnSelectMode:!1},l._onDimensionsChange=new c.EventEmitter,l._onRender=new c.EventEmitter,l._onRefreshRequest=new c.EventEmitter,l.register({dispose:function(){return l._renderer.dispose()}}),l._renderDebouncer=new a.RenderDebouncer(function(e,t){return l._renderRows(e,t)}),l.register(l._renderDebouncer),l._screenDprMonitor=new u.ScreenDprMonitor,l._screenDprMonitor.setListener(function(){return l.onDevicePixelRatioChange()}),l.register(l._screenDprMonitor),l.register(s.onResize(function(e){return l._fullRefresh()})),l.register(o.onOptionChange(function(){return l._renderer.onOptionsChanged()})),l.register(l._charSizeService.onCharSizeChange(function(){return l.onCharSizeChanged()})),l._renderer.onRequestRedraw(function(e){return l.refreshRows(e.start,e.end,!0)}),l.register((0,d.addDisposableDomListener)(window,"resize",function(){return l.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var h=new IntersectionObserver(function(e){return l._onIntersectionChange(e[e.length-1])},{threshold:0});h.observe(i),l.register({dispose:function(){return h.disconnect()}})}return l}return o(t,e),Object.defineProperty(t.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),t.prototype._onIntersectionChange=function(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},t.prototype.refreshRows=function(e,t,n){void 0===n&&(n=!1),this._isPaused?this._needsFullRefresh=!0:(n||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))},t.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0},t.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},t.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},t.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRedraw(function(e){return t.refreshRows(e.start,e.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},t.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},t.prototype.clearTextureAtlas=function(){var e,t;null===(t=null===(e=this._renderer)||void 0===e?void 0:e.clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh()},t.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},t.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},t.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()},t.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},t.prototype.onBlur=function(){this._renderer.onBlur()},t.prototype.onFocus=function(){this._renderer.onFocus()},t.prototype.onSelectionChanged=function(e,t,n){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=n,this._renderer.onSelectionChanged(e,t,n)},t.prototype.onCursorMove=function(){this._renderer.onCursorMove()},t.prototype.clear=function(){this._renderer.clear()},r([s(3,h.IOptionsService),s(4,p.ICharSizeService),s(5,h.IBufferService)],t)}(l.Disposable);t.RenderService=f},9312:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var a=n(6114),c=n(456),l=n(511),u=n(8460),d=n(4725),h=n(2585),p=n(9806),f=n(9504),m=n(844),g=n(4841),v=String.fromCharCode(160),b=new RegExp(v,"g"),y=function(e){function t(t,n,i,o,r,s,a,d){var h=e.call(this)||this;return h._element=t,h._screenElement=n,h._linkifier=i,h._bufferService=o,h._coreService=r,h._mouseService=s,h._optionsService=a,h._renderService=d,h._dragScrollAmount=0,h._enabled=!0,h._workCell=new l.CellData,h._mouseDownTimeStamp=0,h._oldHasSelection=!1,h._oldSelectionStart=void 0,h._oldSelectionEnd=void 0,h._onLinuxMouseSelection=h.register(new u.EventEmitter),h._onRedrawRequest=h.register(new u.EventEmitter),h._onSelectionChange=h.register(new u.EventEmitter),h._onRequestScrollLines=h.register(new u.EventEmitter),h._mouseMoveListener=function(e){return h._onMouseMove(e)},h._mouseUpListener=function(e){return h._onMouseUp(e)},h._coreService.onUserInput(function(){h.hasSelection&&h.clearSelection()}),h._trimListener=h._bufferService.buffer.lines.onTrim(function(e){return h._onTrim(e)}),h.register(h._bufferService.buffers.onBufferActivate(function(e){return h._onBufferActivate(e)})),h.enable(),h._model=new c.SelectionModel(h._bufferService),h._activeSelectionMode=0,h}return o(t,e),Object.defineProperty(t.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._removeMouseDownListeners()},t.prototype.reset=function(){this.clearSelection()},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var n=this._bufferService.buffer,i=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var o=e[1];o<=t[1];o++){var r=n.translateBufferLineToString(o,!0,e[0],t[0]);i.push(r)}}else{var s=e[1]===t[1]?t[0]:void 0;for(i.push(n.translateBufferLineToString(e[1],!0,e[0],s)),o=e[1]+1;o<=t[1]-1;o++){var c=n.lines.get(o);r=n.translateBufferLineToString(o,!0),(null==c?void 0:c.isWrapped)?i[i.length-1]+=r:i.push(r)}e[1]!==t[1]&&(c=n.lines.get(t[1]),r=n.translateBufferLineToString(t[1],!0,0,t[0]),c&&c.isWrapped?i[i.length-1]+=r:i.push(r))}return i.map(function(e){return e.replace(b," ")}).join(a.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},t.prototype.refresh=function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),a.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},t.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},t.prototype._isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!!(n&&i&&t)&&this._areCoordsInSelection(t,n,i)},t.prototype._areCoordsInSelection=function(e,t,n){return e[1]>t[1]&&e[1]=t[0]&&e[0]=t[0]},t.prototype._selectWordAtCursor=function(e,t){var n,i,o=null===(i=null===(n=this._linkifier.currentLink)||void 0===n?void 0:n.link)||void 0===i?void 0:i.range;if(o)return this._model.selectionStart=[o.start.x-1,o.start.y-1],this._model.selectionStartLength=(0,g.getRangeLength)(o,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var r=this._getMouseBufferCoords(e);return!!r&&(this._selectWordAt(r,t),this._model.selectionEnd=void 0,!0)},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},t.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t},t.prototype._getMouseEventScrollAmount=function(e){var t=(0,p.getCoordsRelativeToElement)(e,this._screenElement)[1],n=this._renderService.dimensions.canvasHeight;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return a.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return e._dragScroll()},50)},t.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(a.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var n=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var n=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(n&&void 0!==n[0]&&void 0!==n[1]){var i=(0,f.moveToCellSequence)(n[0]-1,n[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(i,!0)}}}else this._fireEventIfSelectionChanged()},t.prototype._fireEventIfSelectionChanged=function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,n=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);n?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,n)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,n)},t.prototype._fireOnSelectionChange=function(e,t,n){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=n,this._onSelectionChange.fire()},t.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(function(e){return t._onTrim(e)})},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var n=t[0],i=0;t[0]>=i;i++){var o=e.loadCell(i,this._workCell).getChars().length;0===this._workCell.getWidth()?n--:o>1&&t[0]!==i&&(n+=o-1)}return n},t.prototype.setSelection=function(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh()},t.prototype.rightClickSelect=function(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},t.prototype._getWordAt=function(e,t,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!0),!(e[0]>=this._bufferService.cols)){var o=this._bufferService.buffer,r=o.lines.get(e[1]);if(r){var s=o.translateBufferLineToString(e[1],!1),a=this._convertViewportColToCharacterIndex(r,e),c=a,l=e[0]-a,u=0,d=0,h=0,p=0;if(" "===s.charAt(a)){for(;a>0&&" "===s.charAt(a-1);)a--;for(;c1&&(p+=g-1,c+=g-1);f>0&&a>0&&!this._isCharWordSeparator(r.loadCell(f-1,this._workCell));){r.loadCell(f-1,this._workCell);var v=this._workCell.getChars().length;0===this._workCell.getWidth()?(u++,f--):v>1&&(h+=v-1,a-=v-1),a--,f--}for(;m1&&(p+=b-1,c+=b-1),c++,m++}}c++;var y=a+l-u+h,_=Math.min(this._bufferService.cols,c-a+u+d-h-p);if(t||""!==s.slice(a,c).trim()){if(n&&0===y&&32!==r.getCodePoint(0)){var M=o.lines.get(e[1]-1);if(M&&r.isWrapped&&32!==M.getCodePoint(this._bufferService.cols-1)){var w=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(w){var C=this._bufferService.cols-w.start;y-=C,_+=C}}}if(i&&y+_===this._bufferService.cols&&32!==r.getCodePoint(this._bufferService.cols-1)){var S=o.lines.get(e[1]+1);if((null==S?void 0:S.isWrapped)&&32!==S.getCodePoint(0)){var A=this._getWordAt([0,e[1]+1],!1,!1,!0);A&&(_+=A.length)}}return{start:y,length:_}}}}},t.prototype._selectWordAt=function(e,t){var n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var n=e[1];t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}},t.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0},t.prototype._selectLineAt=function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,t.first],this._model.selectionEnd=[this._bufferService.cols,t.last],this._model.selectionStartLength=0},r([s(3,h.IBufferService),s(4,h.ICoreService),s(5,d.IMouseService),s(6,h.IOptionsService),s(7,d.IRenderService)],t)}(m.Disposable);t.SelectionService=y},4725:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ICharacterJoinerService=t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var i=n(8343);t.ICharSizeService=(0,i.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,i.createDecorator)("CoreBrowserService"),t.IMouseService=(0,i.createDecorator)("MouseService"),t.IRenderService=(0,i.createDecorator)("RenderService"),t.ISelectionService=(0,i.createDecorator)("SelectionService"),t.ISoundService=(0,i.createDecorator)("SoundService"),t.ICharacterJoinerService=(0,i.createDecorator)("CharacterJoinerService")},357:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var r=n(2585),s=function(){function e(e){this._optionsService=e}return Object.defineProperty(e,"audioContext",{get:function(){if(!e._audioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;e._audioContext=new t}return e._audioContext},enumerable:!1,configurable:!0}),e.prototype.playBellSound=function(){var t=e.audioContext;if(t){var n=t.createBufferSource();t.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(e){n.buffer=e,n.connect(t.destination),n.start(0)})}},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),n=t.length,i=new Uint8Array(n),o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var i=n(8460),o=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new i.EventEmitter,this.onInsertEmitter=new i.EventEmitter,this.onTrimEmitter=new i.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),n=0;nthis._length)for(var t=this._length;t=e;o--)this._array[this._getCyclicIndex(o+n.length)]=this._array[this._getCyclicIndex(o)];for(o=0;othis._maxLength){var r=this._length+n.length-this._maxLength;this._startIndex+=r,this._length=this._maxLength,this.onTrimEmitter.fire(r)}else this._length+=n.length},e.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},e.prototype.shiftElements=function(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(n>0){for(var i=t-1;i>=0;i--)this.set(e+i+n,this.get(e+i));var o=e+t+n-this._length;if(o>0)for(this._length+=o;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,n){if(void 0===n&&(n=5),"object"!=typeof t)return t;var i=Array.isArray(t)?[]:{};for(var o in t)i[o]=n<=1?t[o]:t[o]&&e(t[o],n-1);return i}},8969:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var r=n(844),s=n(2585),a=n(4348),c=n(7866),l=n(744),u=n(7302),d=n(6975),h=n(8460),p=n(1753),f=n(3730),m=n(1480),g=n(7994),v=n(9282),b=n(5435),y=n(5981),_=!1,M=function(e){function t(t){var n=e.call(this)||this;return n._onBinary=new h.EventEmitter,n._onData=new h.EventEmitter,n._onLineFeed=new h.EventEmitter,n._onResize=new h.EventEmitter,n._onScroll=new h.EventEmitter,n._instantiationService=new a.InstantiationService,n.optionsService=new u.OptionsService(t),n._instantiationService.setService(s.IOptionsService,n.optionsService),n._bufferService=n.register(n._instantiationService.createInstance(l.BufferService)),n._instantiationService.setService(s.IBufferService,n._bufferService),n._logService=n._instantiationService.createInstance(c.LogService),n._instantiationService.setService(s.ILogService,n._logService),n.coreService=n.register(n._instantiationService.createInstance(d.CoreService,function(){return n.scrollToBottom()})),n._instantiationService.setService(s.ICoreService,n.coreService),n.coreMouseService=n._instantiationService.createInstance(p.CoreMouseService),n._instantiationService.setService(s.ICoreMouseService,n.coreMouseService),n._dirtyRowService=n._instantiationService.createInstance(f.DirtyRowService),n._instantiationService.setService(s.IDirtyRowService,n._dirtyRowService),n.unicodeService=n._instantiationService.createInstance(m.UnicodeService),n._instantiationService.setService(s.IUnicodeService,n.unicodeService),n._charsetService=n._instantiationService.createInstance(g.CharsetService),n._instantiationService.setService(s.ICharsetService,n._charsetService),n._inputHandler=new b.InputHandler(n._bufferService,n._charsetService,n.coreService,n._dirtyRowService,n._logService,n.optionsService,n.coreMouseService,n.unicodeService),n.register((0,h.forwardEvent)(n._inputHandler.onLineFeed,n._onLineFeed)),n.register(n._inputHandler),n.register((0,h.forwardEvent)(n._bufferService.onResize,n._onResize)),n.register((0,h.forwardEvent)(n.coreService.onData,n._onData)),n.register((0,h.forwardEvent)(n.coreService.onBinary,n._onBinary)),n.register(n.optionsService.onOptionChange(function(e){return n._updateOptions(e)})),n.register(n._bufferService.onScroll(function(e){n._onScroll.fire({position:n._bufferService.buffer.ydisp,source:0}),n._dirtyRowService.markRangeDirty(n._bufferService.buffer.scrollTop,n._bufferService.buffer.scrollBottom)})),n.register(n._inputHandler.onScroll(function(e){n._onScroll.fire({position:n._bufferService.buffer.ydisp,source:0}),n._dirtyRowService.markRangeDirty(n._bufferService.buffer.scrollTop,n._bufferService.buffer.scrollBottom)})),n._writeBuffer=new y.WriteBuffer(function(e,t){return n._inputHandler.parse(e,t)}),n}return o(t,e),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){var e=this;return this._onScrollApi||(this._onScrollApi=new h.EventEmitter,this.register(this._onScroll.event(function(t){var n;null===(n=e._onScrollApi)||void 0===n||n.fire(t.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.optionsService.options},set:function(e){for(var t in e)this.optionsService.options[t]=e[t]},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)},t.prototype.write=function(e,t){this._writeBuffer.write(e,t)},t.prototype.writeSync=function(e,t){this._logService.logLevel<=s.LogLevelEnum.WARN&&!_&&(this._logService.warn("writeSync is unreliable and will be removed soon."),_=!0),this._writeBuffer.writeSync(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,l.MINIMUM_COLS),t=Math.max(t,l.MINIMUM_ROWS),this._bufferService.resize(e,t))},t.prototype.scroll=function(e,t){void 0===t&&(t=!1),this._bufferService.scroll(e,t)},t.prototype.scrollLines=function(e,t,n){this._bufferService.scrollLines(e,t,n)},t.prototype.scrollPages=function(e){this._bufferService.scrollPages(e)},t.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},t.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},t.prototype.scrollToLine=function(e){this._bufferService.scrollToLine(e)},t.prototype.registerEscHandler=function(e,t){return this._inputHandler.registerEscHandler(e,t)},t.prototype.registerDcsHandler=function(e,t){return this._inputHandler.registerDcsHandler(e,t)},t.prototype.registerCsiHandler=function(e,t){return this._inputHandler.registerCsiHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._inputHandler.registerOscHandler(e,t)},t.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},t.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},t.prototype._updateOptions=function(e){var t;switch(e){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)}},t.prototype._enableWindowsMode=function(){var e=this;if(!this._windowsMode){var t=[];t.push(this.onLineFeed(v.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.registerCsiHandler({final:"H"},function(){return(0,v.updateWindowsModeWrappedState)(e._bufferService),!1})),this._windowsMode={dispose:function(){for(var e=0,n=t;e{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var n=function(){function e(){this._listeners=[],this._disposed=!1}return Object.defineProperty(e.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var n=0;n24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(r=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var S=function(){function e(e,t,n,i){this._bufferService=e,this._coreService=t,this._logService=n,this._optionsService=i,this._data=new Uint32Array(0)}return e.prototype.hook=function(e){this._data=new Uint32Array(0)},e.prototype.put=function(e,t,n){this._data=(0,u.concat)(this._data,e.subarray(t,n))},e.prototype.unhook=function(e){if(!e)return this._data=new Uint32Array(0),!0;var t=(0,d.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),t){case'"q':this._coreService.triggerDataEvent(s.C0.ESC+'P1$r0"q'+s.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(s.C0.ESC+'P1$r61;1"p'+s.C0.ESC+"\\");break;case"r":var n=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(s.C0.ESC+"P1$r"+n+s.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(s.C0.ESC+"P1$r0m"+s.C0.ESC+"\\");break;case" q":var i={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];i-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(s.C0.ESC+"P1$r"+i+" q"+s.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(s.C0.ESC+"P0$r"+s.C0.ESC+"\\")}return!0},e}(),A=function(e){function t(t,n,i,o,r,l,u,f,g){void 0===g&&(g=new c.EscapeSequenceParser);var v=e.call(this)||this;v._bufferService=t,v._charsetService=n,v._coreService=i,v._dirtyRowService=o,v._logService=r,v._optionsService=l,v._coreMouseService=u,v._unicodeService=f,v._parser=g,v._parseBuffer=new Uint32Array(4096),v._stringDecoder=new d.StringToUtf32,v._utf8Decoder=new d.Utf8ToUtf32,v._workCell=new m.CellData,v._windowTitle="",v._iconName="",v._windowTitleStack=[],v._iconNameStack=[],v._curAttrData=h.DEFAULT_ATTR_DATA.clone(),v._eraseAttrDataInternal=h.DEFAULT_ATTR_DATA.clone(),v._onRequestBell=new p.EventEmitter,v._onRequestRefreshRows=new p.EventEmitter,v._onRequestReset=new p.EventEmitter,v._onRequestSendFocus=new p.EventEmitter,v._onRequestSyncScrollBar=new p.EventEmitter,v._onRequestWindowsOptionsReport=new p.EventEmitter,v._onA11yChar=new p.EventEmitter,v._onA11yTab=new p.EventEmitter,v._onCursorMove=new p.EventEmitter,v._onLineFeed=new p.EventEmitter,v._onScroll=new p.EventEmitter,v._onTitleChange=new p.EventEmitter,v._onColor=new p.EventEmitter,v._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},v._specialColors=[256,257,258],v.register(v._parser),v._activeBuffer=v._bufferService.buffer,v.register(v._bufferService.buffers.onBufferActivate(function(e){return v._activeBuffer=e.activeBuffer})),v._parser.setCsiHandlerFallback(function(e,t){v._logService.debug("Unknown CSI code: ",{identifier:v._parser.identToString(e),params:t.toArray()})}),v._parser.setEscHandlerFallback(function(e){v._logService.debug("Unknown ESC code: ",{identifier:v._parser.identToString(e)})}),v._parser.setExecuteHandlerFallback(function(e){v._logService.debug("Unknown EXECUTE code: ",{code:e})}),v._parser.setOscHandlerFallback(function(e,t,n){v._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:n})}),v._parser.setDcsHandlerFallback(function(e,t,n){"HOOK"===t&&(n=n.toArray()),v._logService.debug("Unknown DCS code: ",{identifier:v._parser.identToString(e),action:t,payload:n})}),v._parser.setPrintHandler(function(e,t,n){return v.print(e,t,n)}),v._parser.registerCsiHandler({final:"@"},function(e){return v.insertChars(e)}),v._parser.registerCsiHandler({intermediates:" ",final:"@"},function(e){return v.scrollLeft(e)}),v._parser.registerCsiHandler({final:"A"},function(e){return v.cursorUp(e)}),v._parser.registerCsiHandler({intermediates:" ",final:"A"},function(e){return v.scrollRight(e)}),v._parser.registerCsiHandler({final:"B"},function(e){return v.cursorDown(e)}),v._parser.registerCsiHandler({final:"C"},function(e){return v.cursorForward(e)}),v._parser.registerCsiHandler({final:"D"},function(e){return v.cursorBackward(e)}),v._parser.registerCsiHandler({final:"E"},function(e){return v.cursorNextLine(e)}),v._parser.registerCsiHandler({final:"F"},function(e){return v.cursorPrecedingLine(e)}),v._parser.registerCsiHandler({final:"G"},function(e){return v.cursorCharAbsolute(e)}),v._parser.registerCsiHandler({final:"H"},function(e){return v.cursorPosition(e)}),v._parser.registerCsiHandler({final:"I"},function(e){return v.cursorForwardTab(e)}),v._parser.registerCsiHandler({final:"J"},function(e){return v.eraseInDisplay(e)}),v._parser.registerCsiHandler({prefix:"?",final:"J"},function(e){return v.eraseInDisplay(e)}),v._parser.registerCsiHandler({final:"K"},function(e){return v.eraseInLine(e)}),v._parser.registerCsiHandler({prefix:"?",final:"K"},function(e){return v.eraseInLine(e)}),v._parser.registerCsiHandler({final:"L"},function(e){return v.insertLines(e)}),v._parser.registerCsiHandler({final:"M"},function(e){return v.deleteLines(e)}),v._parser.registerCsiHandler({final:"P"},function(e){return v.deleteChars(e)}),v._parser.registerCsiHandler({final:"S"},function(e){return v.scrollUp(e)}),v._parser.registerCsiHandler({final:"T"},function(e){return v.scrollDown(e)}),v._parser.registerCsiHandler({final:"X"},function(e){return v.eraseChars(e)}),v._parser.registerCsiHandler({final:"Z"},function(e){return v.cursorBackwardTab(e)}),v._parser.registerCsiHandler({final:"`"},function(e){return v.charPosAbsolute(e)}),v._parser.registerCsiHandler({final:"a"},function(e){return v.hPositionRelative(e)}),v._parser.registerCsiHandler({final:"b"},function(e){return v.repeatPrecedingCharacter(e)}),v._parser.registerCsiHandler({final:"c"},function(e){return v.sendDeviceAttributesPrimary(e)}),v._parser.registerCsiHandler({prefix:">",final:"c"},function(e){return v.sendDeviceAttributesSecondary(e)}),v._parser.registerCsiHandler({final:"d"},function(e){return v.linePosAbsolute(e)}),v._parser.registerCsiHandler({final:"e"},function(e){return v.vPositionRelative(e)}),v._parser.registerCsiHandler({final:"f"},function(e){return v.hVPosition(e)}),v._parser.registerCsiHandler({final:"g"},function(e){return v.tabClear(e)}),v._parser.registerCsiHandler({final:"h"},function(e){return v.setMode(e)}),v._parser.registerCsiHandler({prefix:"?",final:"h"},function(e){return v.setModePrivate(e)}),v._parser.registerCsiHandler({final:"l"},function(e){return v.resetMode(e)}),v._parser.registerCsiHandler({prefix:"?",final:"l"},function(e){return v.resetModePrivate(e)}),v._parser.registerCsiHandler({final:"m"},function(e){return v.charAttributes(e)}),v._parser.registerCsiHandler({final:"n"},function(e){return v.deviceStatus(e)}),v._parser.registerCsiHandler({prefix:"?",final:"n"},function(e){return v.deviceStatusPrivate(e)}),v._parser.registerCsiHandler({intermediates:"!",final:"p"},function(e){return v.softReset(e)}),v._parser.registerCsiHandler({intermediates:" ",final:"q"},function(e){return v.setCursorStyle(e)}),v._parser.registerCsiHandler({final:"r"},function(e){return v.setScrollRegion(e)}),v._parser.registerCsiHandler({final:"s"},function(e){return v.saveCursor(e)}),v._parser.registerCsiHandler({final:"t"},function(e){return v.windowOptions(e)}),v._parser.registerCsiHandler({final:"u"},function(e){return v.restoreCursor(e)}),v._parser.registerCsiHandler({intermediates:"'",final:"}"},function(e){return v.insertColumns(e)}),v._parser.registerCsiHandler({intermediates:"'",final:"~"},function(e){return v.deleteColumns(e)}),v._parser.setExecuteHandler(s.C0.BEL,function(){return v.bell()}),v._parser.setExecuteHandler(s.C0.LF,function(){return v.lineFeed()}),v._parser.setExecuteHandler(s.C0.VT,function(){return v.lineFeed()}),v._parser.setExecuteHandler(s.C0.FF,function(){return v.lineFeed()}),v._parser.setExecuteHandler(s.C0.CR,function(){return v.carriageReturn()}),v._parser.setExecuteHandler(s.C0.BS,function(){return v.backspace()}),v._parser.setExecuteHandler(s.C0.HT,function(){return v.tab()}),v._parser.setExecuteHandler(s.C0.SO,function(){return v.shiftOut()}),v._parser.setExecuteHandler(s.C0.SI,function(){return v.shiftIn()}),v._parser.setExecuteHandler(s.C1.IND,function(){return v.index()}),v._parser.setExecuteHandler(s.C1.NEL,function(){return v.nextLine()}),v._parser.setExecuteHandler(s.C1.HTS,function(){return v.tabSet()}),v._parser.registerOscHandler(0,new b.OscHandler(function(e){return v.setTitle(e),v.setIconName(e),!0})),v._parser.registerOscHandler(1,new b.OscHandler(function(e){return v.setIconName(e)})),v._parser.registerOscHandler(2,new b.OscHandler(function(e){return v.setTitle(e)})),v._parser.registerOscHandler(4,new b.OscHandler(function(e){return v.setOrReportIndexedColor(e)})),v._parser.registerOscHandler(10,new b.OscHandler(function(e){return v.setOrReportFgColor(e)})),v._parser.registerOscHandler(11,new b.OscHandler(function(e){return v.setOrReportBgColor(e)})),v._parser.registerOscHandler(12,new b.OscHandler(function(e){return v.setOrReportCursorColor(e)})),v._parser.registerOscHandler(104,new b.OscHandler(function(e){return v.restoreIndexedColor(e)})),v._parser.registerOscHandler(110,new b.OscHandler(function(e){return v.restoreFgColor(e)})),v._parser.registerOscHandler(111,new b.OscHandler(function(e){return v.restoreBgColor(e)})),v._parser.registerOscHandler(112,new b.OscHandler(function(e){return v.restoreCursorColor(e)})),v._parser.registerEscHandler({final:"7"},function(){return v.saveCursor()}),v._parser.registerEscHandler({final:"8"},function(){return v.restoreCursor()}),v._parser.registerEscHandler({final:"D"},function(){return v.index()}),v._parser.registerEscHandler({final:"E"},function(){return v.nextLine()}),v._parser.registerEscHandler({final:"H"},function(){return v.tabSet()}),v._parser.registerEscHandler({final:"M"},function(){return v.reverseIndex()}),v._parser.registerEscHandler({final:"="},function(){return v.keypadApplicationMode()}),v._parser.registerEscHandler({final:">"},function(){return v.keypadNumericMode()}),v._parser.registerEscHandler({final:"c"},function(){return v.fullReset()}),v._parser.registerEscHandler({final:"n"},function(){return v.setgLevel(2)}),v._parser.registerEscHandler({final:"o"},function(){return v.setgLevel(3)}),v._parser.registerEscHandler({final:"|"},function(){return v.setgLevel(3)}),v._parser.registerEscHandler({final:"}"},function(){return v.setgLevel(2)}),v._parser.registerEscHandler({final:"~"},function(){return v.setgLevel(1)}),v._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return v.selectDefaultCharset()}),v._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return v.selectDefaultCharset()});var y=function(e){_._parser.registerEscHandler({intermediates:"(",final:e},function(){return v.selectCharset("("+e)}),_._parser.registerEscHandler({intermediates:")",final:e},function(){return v.selectCharset(")"+e)}),_._parser.registerEscHandler({intermediates:"*",final:e},function(){return v.selectCharset("*"+e)}),_._parser.registerEscHandler({intermediates:"+",final:e},function(){return v.selectCharset("+"+e)}),_._parser.registerEscHandler({intermediates:"-",final:e},function(){return v.selectCharset("-"+e)}),_._parser.registerEscHandler({intermediates:".",final:e},function(){return v.selectCharset("."+e)}),_._parser.registerEscHandler({intermediates:"/",final:e},function(){return v.selectCharset("/"+e)})},_=this;for(var M in a.CHARSETS)y(M);return v._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return v.screenAlignmentPattern()}),v._parser.setErrorHandler(function(e){return v._logService.error("Parsing error: ",e),e}),v._parser.registerDcsHandler({intermediates:"$",final:"q"},new S(v._bufferService,v._coreService,v._logService,v._optionsService)),v}return o(t,e),Object.defineProperty(t.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._preserveStack=function(e,t,n,i){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=n,this._parseStack.position=i},t.prototype._logSlowResolvingAsync=function(e){this._logService.logLevel<=v.LogLevelEnum.WARN&&Promise.race([e,new Promise(function(e,t){return setTimeout(function(){return t("#SLOW_TIMEOUT")},5e3)})]).catch(function(e){if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")})},t.prototype.parse=function(e,t){var n,i=this._activeBuffer.x,o=this._activeBuffer.y,r=0,s=this._parseStack.paused;if(s){if(n=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(n),n;i=this._parseStack.cursorStartX,o=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>w&&(r=this._parseStack.position+w)}if(this._logService.logLevel<=v.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?' "'+e+'"':""),"string"==typeof e?e.split("").map(function(e){return e.charCodeAt(0)}):e),this._parseBuffer.lengthw)for(var a=r;a0&&2===h.getWidth(this._activeBuffer.x-1)&&h.setCellFromCodePoint(this._activeBuffer.x-1,0,1,u.fg,u.bg,u.extended);for(var p=t;p=a)if(c){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),h=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=a-1,2===o)continue;if(l&&(h.insertCells(this._activeBuffer.x,o,this._activeBuffer.getNullCell(u),u),2===h.getWidth(a-1)&&h.setCellFromCodePoint(a-1,f.NULL_CELL_CODE,f.NULL_CELL_WIDTH,u.fg,u.bg,u.extended)),h.setCellFromCodePoint(this._activeBuffer.x++,i,o,u.fg,u.bg,u.extended),o>0)for(;--o;)h.setCellFromCodePoint(this._activeBuffer.x++,0,0,u.fg,u.bg,u.extended)}else h.getWidth(this._activeBuffer.x-1)?h.addCodepointToCell(this._activeBuffer.x-1,i):h.addCodepointToCell(this._activeBuffer.x-2,i)}n-t>0&&(h.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&0===h.getWidth(this._activeBuffer.x)&&!h.hasContent(this._activeBuffer.x)&&h.setCellFromCodePoint(this._activeBuffer.x,0,1,u.fg,u.bg,u.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype.registerCsiHandler=function(e,t){var n=this;return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,function(e){return!C(e.params[0],n._optionsService.rawOptions.windowOptions)||t(e)})},t.prototype.registerDcsHandler=function(e,t){return this._parser.registerDcsHandler(e,new y.DcsHandler(t))},t.prototype.registerEscHandler=function(e,t){return this._parser.registerEscHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._parser.registerOscHandler(e,new b.OscHandler(t))},t.prototype.bell=function(){return this._onRequestBell.fire(),!0},t.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},t.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},t.prototype.backspace=function(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},t.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0},t.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},t.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},t.prototype._restrictCursor=function(e){void 0===e&&(e=this._bufferService.cols-1),this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)},t.prototype.cursorUp=function(e){var t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0},t.prototype.cursorDown=function(e){var t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0},t.prototype.cursorForward=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.cursorBackward=function(e){return this._moveCursor(-(e.params[0]||1),0),!0},t.prototype.cursorNextLine=function(e){return this.cursorDown(e),this._activeBuffer.x=0,!0},t.prototype.cursorPrecedingLine=function(e){return this.cursorUp(e),this._activeBuffer.x=0,!0},t.prototype.cursorCharAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.cursorPosition=function(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0},t.prototype.charPosAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.hPositionRelative=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.linePosAbsolute=function(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0},t.prototype.vPositionRelative=function(e){return this._moveCursor(0,e.params[0]||1),!0},t.prototype.hVPosition=function(e){return this.cursorPosition(e),!0},t.prototype.tabClear=function(e){var t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0},t.prototype.cursorForwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},t.prototype.cursorBackwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},t.prototype._eraseInBufferLine=function(e,t,n,i){void 0===i&&(i=!1);var o=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);o.replaceCells(t,n,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i&&(o.isWrapped=!1)},t.prototype._resetBufferLine=function(e){var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);t.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),t.isWrapped=!1},t.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(t=this._activeBuffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);t=this._bufferService.cols&&(this._activeBuffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowService.markDirty(t-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var n=this._activeBuffer.lines.length-this._bufferService.rows;n>0&&(this._activeBuffer.lines.trimStart(n),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-n,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-n,0),this._onScroll.fire(0))}return!0},t.prototype.eraseInLine=function(e){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},t.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(s.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(s.C0.ESC+"[?6c")),!0},t.prototype.sendDeviceAttributesSecondary=function(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(s.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(s.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(s.C0.ESC+"[>83;40003;0c")),!0},t.prototype._is=function(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)},t.prototype.setMode=function(e){for(var t=0;t=2||2===i[1]&&r+o>=5)break;i[1]&&(o=1)}while(++r+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()},t.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=h.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=h.DEFAULT_ATTR_DATA.bg,!0;for(var t,n=e.length,i=this._curAttrData,o=0;o=30&&t<=37?(i.fg&=-50331904,i.fg|=16777216|t-30):t>=40&&t<=47?(i.bg&=-50331904,i.bg|=16777216|t-40):t>=90&&t<=97?(i.fg&=-50331904,i.fg|=16777224|t-90):t>=100&&t<=107?(i.bg&=-50331904,i.bg|=16777224|t-100):0===t?(i.fg=h.DEFAULT_ATTR_DATA.fg,i.bg=h.DEFAULT_ATTR_DATA.bg):1===t?i.fg|=134217728:3===t?i.bg|=67108864:4===t?(i.fg|=268435456,this._processUnderline(e.hasSubParams(o)?e.getSubParams(o)[0]:1,i)):5===t?i.fg|=536870912:7===t?i.fg|=67108864:8===t?i.fg|=1073741824:9===t?i.fg|=2147483648:2===t?i.bg|=134217728:21===t?this._processUnderline(2,i):22===t?(i.fg&=-134217729,i.bg&=-134217729):23===t?i.bg&=-67108865:24===t?i.fg&=-268435457:25===t?i.fg&=-536870913:27===t?i.fg&=-67108865:28===t?i.fg&=-1073741825:29===t?i.fg&=2147483647:39===t?(i.fg&=-67108864,i.fg|=16777215&h.DEFAULT_ATTR_DATA.fg):49===t?(i.bg&=-67108864,i.bg|=16777215&h.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?o+=this._extractColor(e,o,i):59===t?(i.extended=i.extended.clone(),i.extended.underlineColor=-1,i.updateExtended()):100===t?(i.fg&=-67108864,i.fg|=16777215&h.DEFAULT_ATTR_DATA.fg,i.bg&=-67108864,i.bg|=16777215&h.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t);return!0},t.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(s.C0.ESC+"[0n");break;case 6:var t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent(s.C0.ESC+"["+t+";"+n+"R")}return!0},t.prototype.deviceStatusPrivate=function(e){if(6===e.params[0]){var t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent(s.C0.ESC+"[?"+t+";"+n+"R")}return!0},t.prototype.softReset=function(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=h.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},t.prototype.setCursorStyle=function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var n=t%2==1;return this._optionsService.options.cursorBlink=n,!0},t.prototype.setScrollRegion=function(e){var t,n=e.params[0]||1;return(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>n&&(this._activeBuffer.scrollTop=n-1,this._activeBuffer.scrollBottom=t-1,this._setCursor(0,0)),!0},t.prototype.windowOptions=function(e){if(!C(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;var t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(r.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(r.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(s.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},t.prototype.saveCursor=function(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},t.prototype.restoreCursor=function(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},t.prototype.setTitle=function(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0},t.prototype.setIconName=function(e){return this._iconName=e,!0},t.prototype.setOrReportIndexedColor=function(e){for(var t=[],n=e.split(";");n.length>1;){var i=n.shift(),o=n.shift();if(/^\d+$/.exec(i)){var r=parseInt(i);if(0<=r&&r<256)if("?"===o)t.push({type:0,index:r});else{var s=(0,_.parseColor)(o);s&&t.push({type:1,index:r,color:s})}}}return t.length&&this._onColor.fire(t),!0},t.prototype._setOrReportSpecialColor=function(e,t){for(var n=e.split(";"),i=0;i=this._specialColors.length);++i,++t)if("?"===n[i])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{var o=(0,_.parseColor)(n[i]);o&&this._onColor.fire([{type:1,index:this._specialColors[t],color:o}])}return!0},t.prototype.setOrReportFgColor=function(e){return this._setOrReportSpecialColor(e,0)},t.prototype.setOrReportBgColor=function(e){return this._setOrReportSpecialColor(e,1)},t.prototype.setOrReportCursorColor=function(e){return this._setOrReportSpecialColor(e,2)},t.prototype.restoreIndexedColor=function(e){if(!e)return this._onColor.fire([{type:2}]),!0;for(var t=[],n=e.split(";"),i=0;i=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},t.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},t.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0},t.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},t.prototype.reset=function(){this._curAttrData=h.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=h.DEFAULT_ATTR_DATA.clone()},t.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},t.prototype.setgLevel=function(e){return this._charsetService.setgLevel(e),!0},t.prototype.screenAlignmentPattern=function(){var e=new m.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(var t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.Disposable=void 0;var n=function(){function e(){this._disposables=[],this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed=!0;for(var e=0,t=this._disposables;e{Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isLegacyEdge=t.isFirefox=void 0;var n="undefined"==typeof navigator,i=n?"node":navigator.userAgent,o=n?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(o),t.isIpad="iPad"===o,t.isIphone="iPhone"===o,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(o),t.isLinux=o.indexOf("Linux")>=0},8273:(e,t)=>{function n(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),n>=e.length)return e;n=(e.length+n)%e.length,i=i>=e.length?e.length:(e.length+i)%e.length;for(var o=n;o{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var i=n(643);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),n=null==t?void 0:t.get(e.cols-1),o=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);o&&n&&(o.isWrapped=n[i.CHAR_DATA_CODE_INDEX]!==i.NULL_CELL_CODE&&n[i.CHAR_DATA_CODE_INDEX]!==i.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var n=function(){function e(){this.fg=0,this.bg=0,this.extended=new i}return e.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},e.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},e.prototype.clone=function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t},e.prototype.isInverse=function(){return 67108864&this.fg},e.prototype.isBold=function(){return 134217728&this.fg},e.prototype.isUnderline=function(){return 268435456&this.fg},e.prototype.isBlink=function(){return 536870912&this.fg},e.prototype.isInvisible=function(){return 1073741824&this.fg},e.prototype.isItalic=function(){return 67108864&this.bg},e.prototype.isDim=function(){return 134217728&this.bg},e.prototype.isStrikethrough=function(){return 2147483648&this.fg},e.prototype.getFgColorMode=function(){return 50331648&this.fg},e.prototype.getBgColorMode=function(){return 50331648&this.bg},e.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},e.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},e.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},e.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},e.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},e.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},e.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},e.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},e.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},e.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},e.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},e.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},e.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},e.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},e.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},e.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},e.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},e}();t.AttributeData=n;var i=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=-1),this.underlineStyle=e,this.underlineColor=t}return e.prototype.clone=function(){return new e(this.underlineStyle,this.underlineColor)},e.prototype.isEmpty=function(){return 0===this.underlineStyle},e}();t.ExtendedAttrs=i},9092:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;var i=n(6349),o=n(8437),r=n(511),s=n(643),a=n(4634),c=n(4863),l=n(7116),u=n(3734);t.MAX_BUFFER_SIZE=4294967295;var d=function(){function e(e,t,n){this._hasScrollback=e,this._optionsService=t,this._bufferService=n,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=o.DEFAULT_ATTR_DATA.clone(),this.savedCharset=l.DEFAULT_CHARSET,this.markers=[],this._nullCell=r.CellData.fromCharData([0,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]),this._whitespaceCell=r.CellData.fromCharData([0,s.WHITESPACE_CELL_CHAR,s.WHITESPACE_CELL_WIDTH,s.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return e.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell},e.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell},e.prototype.getBlankLine=function(e,t){return new o.BufferLine(this._bufferService.cols,this.getNullCell(e),t)},Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:n},e.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=o.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var n=this.getNullCell(o.DEFAULT_ATTR_DATA),i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,this.ydisp>0&&this.ydisp--):this.lines.push(new o.BufferLine(e,n)));else for(a=this._rows;a>t;a--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i0&&(this.lines.trimStart(c),this.ybase=Math.max(this.ybase-c,0),this.ydisp=Math.max(this.ydisp-c,0),this.savedY=Math.max(this.savedY-c,0)),this.lines.maxLength=i}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),s&&(this.y+=s),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(r=0;rthis._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},e.prototype._reflowLarger=function(e,t){var n=(0,a.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(o.DEFAULT_ATTR_DATA));if(n.length>0){var i=(0,a.reflowLargerCreateNewLayout)(this.lines,n);(0,a.reflowLargerApplyNewLayout)(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,n){for(var i=this.getNullCell(o.DEFAULT_ATTR_DATA),r=n;r-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;s--){var c=this.lines.get(s);if(!(!c||!c.isWrapped&&c.getTrimmedLength()<=e)){for(var l=[c];c.isWrapped&&s>0;)c=this.lines.get(--s),l.unshift(c);var u=this.ybase+this.y;if(!(u>=s&&u0&&(i.push({start:s+l.length+r,newLines:m}),r+=m.length),l.push.apply(l,m);var b=p.length-1,y=p[b];0===y&&(y=p[--b]);for(var _=l.length-f-1,M=h;_>=0;){var w=Math.min(M,y);if(void 0===l[b])break;if(l[b].copyCellsFrom(l[_],M-w,y-w,w,!0),0==(y-=w)&&(y=p[--b]),0==(M-=w)){_--;var C=Math.max(_,0);M=(0,a.getWrappedLineTrimmedLength)(l,C,this._cols)}}for(g=0;g0;)0===this.ybase?this.y0){var A=[],E=[];for(g=0;g=0;g--)if(x&&x.start>L+R){for(var k=x.newLines.length-1;k>=0;k--)this.lines.set(g--,x.newLines[k]);g++,A.push({index:L+1,amount:x.newLines.length}),R+=x.newLines.length,x=i[++T]}else this.lines.set(g,E[L--]);var z=0;for(g=A.length-1;g>=0;g--)A[g].index+=z,this.lines.onInsertEmitter.fire(A[g]),z+=A[g].amount;var P=Math.max(0,O+r-this.lines.maxLength);P>0&&this.lines.onTrimEmitter.fire(P)}},e.prototype.stringIndexToBufferIndex=function(e,t,n){for(void 0===n&&(n=!1);t;){var i=this.lines.get(e);if(!i)return[-1,-1];for(var o=n?i.getTrimmedLength():i.length,r=0;r0&&this.lines.get(t).isWrapped;)t--;for(;n+10;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e},e.prototype.addMarker=function(e){var t=this,n=new c.Marker(e);return this.markers.push(n),n.register(this.lines.onTrim(function(e){n.line-=e,n.line<0&&n.dispose()})),n.register(this.lines.onInsert(function(e){n.line>=e.index&&(n.line+=e.amount)})),n.register(this.lines.onDelete(function(e){n.line>=e.index&&n.linee.index&&(n.line-=e.amount)})),n.register(n.onDispose(function(){return t._removeMarker(n)})),n},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,n,i,o){return new h(this,e,t,n,i,o)},e}();t.Buffer=d;var h=function(){function e(e,t,n,i,o,r){void 0===n&&(n=0),void 0===i&&(i=e.lines.length),void 0===o&&(o=0),void 0===r&&(r=0),this._buffer=e,this._trimRight=t,this._startIndex=n,this._endIndex=i,this._startOverscan=o,this._endOverscan=r,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",n=e.first;n<=e.last;++n)t+=this._buffer.translateBufferLineToString(n,this._trimRight);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=h},8437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var i=n(482),o=n(643),r=n(511),s=n(3734);t.DEFAULT_ATTR_DATA=Object.freeze(new s.AttributeData);var a=function(){function e(e,t,n){void 0===n&&(n=!1),this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);for(var i=t||r.CellData.fromCharData([0,o.NULL_CELL_CHAR,o.NULL_CELL_WIDTH,o.NULL_CELL_CODE]),s=0;s>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):n]},e.prototype.set=function(e,t){this._data[3*e+1]=t[o.CHAR_DATA_ATTR_INDEX],t[o.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[o.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[o.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[o.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(e){return this._data[3*e+0]>>22},e.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},e.prototype.getFg=function(e){return this._data[3*e+1]},e.prototype.getBg=function(e){return this._data[3*e+2]},e.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},e.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},e.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},e.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,i.stringFromCodePoint)(2097151&t):""},e.prototype.loadCell=function(e,t){var n=3*e;return t.content=this._data[n+0],t.fg=this._data[n+1],t.bg=this._data[n+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t},e.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},e.prototype.setCellFromCodePoint=function(e,t,n,i,o,r){268435456&o&&(this._extendedAttrs[e]=r),this._data[3*e+0]=t|n<<22,this._data[3*e+1]=i,this._data[3*e+2]=o},e.prototype.addCodepointToCell=function(e,t){var n=this._data[3*e+0];2097152&n?this._combined[e]+=(0,i.stringFromCodePoint)(t):(2097151&n?(this._combined[e]=(0,i.stringFromCodePoint)(2097151&n)+(0,i.stringFromCodePoint)(t),n&=-2097152,n|=2097152):n=t|1<<22,this._data[3*e+0]=n)},e.prototype.insertCells=function(e,t,n,i){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new s.ExtendedAttrs),t=0;--a)this.setCell(e+t+a,this.loadCell(e+a,o));for(a=0;athis.length){var n=new Uint32Array(3*e);this.length&&(3*e=e&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},e.prototype.fill=function(e){this._combined={},this._extendedAttrs={};for(var t=0;t=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},e.prototype.copyCellsFrom=function(e,t,n,i,o){var r=e._data;if(o)for(var s=i-1;s>=0;s--)for(var a=0;a<3;a++)this._data[3*(n+s)+a]=r[3*(t+s)+a];else for(s=0;s=t&&(this._combined[l-t+n]=e._combined[l])}},e.prototype.translateToString=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===n&&(n=this.length),e&&(n=Math.min(n,this.getTrimmedLength()));for(var r="";t>22||1}return r},e}();t.BufferLine=a},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error("Buffer range end ("+e.end.x+", "+e.end.y+") cannot be before start ("+e.start.x+", "+e.start.y+")");return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function n(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();var i=!e[t].hasContent(n-1)&&1===e[t].getWidth(n-1),o=2===e[t+1].getWidth(0);return i&&o?n-1:n}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,i,o,r){for(var s=[],a=0;a=a&&o0&&(_>d||0===u[_].getTrimmedLength());_--)y++;y>0&&(s.push(a+u.length-y),s.push(y)),a+=u.length-1}}}return s},t.reflowLargerCreateNewLayout=function(e,t){for(var n=[],i=0,o=t[i],r=0,s=0;sl&&(s-=l,a++);var u=2===e[a].getWidth(s-1);u&&s--;var d=u?i-1:i;o.push(d),c+=d}return o},t.getWrappedLineTrimmedLength=n},5295:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var r=n(9092),s=n(8460),a=function(e){function t(t,n){var i=e.call(this)||this;return i._optionsService=t,i._bufferService=n,i._onBufferActivate=i.register(new s.EventEmitter),i.reset(),i}return o(t,e),Object.defineProperty(t.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this._normal=new r.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new r.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},t.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(n(844).Disposable);t.BufferSet=a},511:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var r=n(482),s=n(643),a=n(3734),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.content=0,t.fg=0,t.bg=0,t.extended=new a.ExtendedAttrs,t.combinedData="",t}return o(t,e),t.fromCharData=function(e){var n=new t;return n.setFromCharData(e),n},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,r.stringFromCodePoint)(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(e){this.fg=e[s.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[s.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[s.CHAR_DATA_CHAR_INDEX].length){var n=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){var i=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=i&&i<=57343?this.content=1024*(n-55296)+i-56320+65536|e[s.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[s.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[s.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[s.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(a.AttributeData);t.CellData=c},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var r=n(8460),s=function(e){function t(n){var i=e.call(this)||this;return i.line=n,i._id=t._nextId++,i.isDisposed=!1,i._onDispose=new r.EventEmitter,i}return o(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),e.prototype.dispose.call(this))},t._nextId=1,t}(n(844).Disposable);t.Marker=s},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.C1=t.C0=void 0,(i=t.C0||(t.C0={})).NUL="\0",i.SOH="",i.STX="",i.ETX="",i.EOT="",i.ENQ="",i.ACK="",i.BEL="",i.BS="\b",i.HT="\t",i.LF="\n",i.VT="\v",i.FF="\f",i.CR="\r",i.SO="",i.SI="",i.DLE="",i.DC1="",i.DC2="",i.DC3="",i.DC4="",i.NAK="",i.SYN="",i.ETB="",i.CAN="",i.EM="",i.SUB="",i.ESC="",i.FS="",i.GS="",i.RS="",i.US="",i.SP=" ",i.DEL="",(n=t.C1||(t.C1={})).PAD="€",n.HOP="",n.BPH="‚",n.NBH="ƒ",n.IND="„",n.NEL="…",n.SSA="†",n.ESA="‡",n.HTS="ˆ",n.HTJ="‰",n.VTS="Š",n.PLD="‹",n.PLU="Œ",n.RI="",n.SS2="Ž",n.SS3="",n.DCS="",n.PU1="‘",n.PU2="’",n.STS="“",n.CCH="”",n.MW="•",n.SPA="–",n.EPA="—",n.SOS="˜",n.SGCI="™",n.SCI="š",n.CSI="›",n.ST="œ",n.OSC="",n.PM="ž",n.APC="Ÿ"},7399:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var i=n(2584),o={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,n,r){var s={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?s.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?s.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?s.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(s.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B");break;case 8:if(e.shiftKey){s.key=i.C0.BS;break}if(e.altKey){s.key=i.C0.ESC+i.C0.DEL;break}s.key=i.C0.DEL;break;case 9:if(e.shiftKey){s.key=i.C0.ESC+"[Z";break}s.key=i.C0.HT,s.cancel=!0;break;case 13:s.key=e.altKey?i.C0.ESC+i.C0.CR:i.C0.CR,s.cancel=!0;break;case 27:s.key=i.C0.ESC,e.altKey&&(s.key=i.C0.ESC+i.C0.ESC),s.cancel=!0;break;case 37:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"D",s.key===i.C0.ESC+"[1;3D"&&(s.key=i.C0.ESC+(n?"b":"[1;5D"))):s.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D";break;case 39:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"C",s.key===i.C0.ESC+"[1;3C"&&(s.key=i.C0.ESC+(n?"f":"[1;5C"))):s.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C";break;case 38:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"A",n||s.key!==i.C0.ESC+"[1;3A"||(s.key=i.C0.ESC+"[1;5A")):s.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A";break;case 40:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"B",n||s.key!==i.C0.ESC+"[1;3B"||(s.key=i.C0.ESC+"[1;5B")):s.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(s.key=i.C0.ESC+"[2~");break;case 46:s.key=a?i.C0.ESC+"[3;"+(a+1)+"~":i.C0.ESC+"[3~";break;case 36:s.key=a?i.C0.ESC+"[1;"+(a+1)+"H":t?i.C0.ESC+"OH":i.C0.ESC+"[H";break;case 35:s.key=a?i.C0.ESC+"[1;"+(a+1)+"F":t?i.C0.ESC+"OF":i.C0.ESC+"[F";break;case 33:e.shiftKey?s.type=2:s.key=i.C0.ESC+"[5~";break;case 34:e.shiftKey?s.type=3:s.key=i.C0.ESC+"[6~";break;case 112:s.key=a?i.C0.ESC+"[1;"+(a+1)+"P":i.C0.ESC+"OP";break;case 113:s.key=a?i.C0.ESC+"[1;"+(a+1)+"Q":i.C0.ESC+"OQ";break;case 114:s.key=a?i.C0.ESC+"[1;"+(a+1)+"R":i.C0.ESC+"OR";break;case 115:s.key=a?i.C0.ESC+"[1;"+(a+1)+"S":i.C0.ESC+"OS";break;case 116:s.key=a?i.C0.ESC+"[15;"+(a+1)+"~":i.C0.ESC+"[15~";break;case 117:s.key=a?i.C0.ESC+"[17;"+(a+1)+"~":i.C0.ESC+"[17~";break;case 118:s.key=a?i.C0.ESC+"[18;"+(a+1)+"~":i.C0.ESC+"[18~";break;case 119:s.key=a?i.C0.ESC+"[19;"+(a+1)+"~":i.C0.ESC+"[19~";break;case 120:s.key=a?i.C0.ESC+"[20;"+(a+1)+"~":i.C0.ESC+"[20~";break;case 121:s.key=a?i.C0.ESC+"[21;"+(a+1)+"~":i.C0.ESC+"[21~";break;case 122:s.key=a?i.C0.ESC+"[23;"+(a+1)+"~":i.C0.ESC+"[23~";break;case 123:s.key=a?i.C0.ESC+"[24;"+(a+1)+"~":i.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(n&&!r||!e.altKey||e.metaKey)!n||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?s.key=e.key:e.key&&e.ctrlKey&&"_"===e.key&&(s.key=i.C0.US):65===e.keyCode&&(s.type=1);else{var c=o[e.keyCode],l=null==c?void 0:c[e.shiftKey?1:0];if(l)s.key=i.C0.ESC+l;else if(e.keyCode>=65&&e.keyCode<=90){var u=e.ctrlKey?e.keyCode-64:e.keyCode+32;s.key=i.C0.ESC+String.fromCharCode(u)}}else e.keyCode>=65&&e.keyCode<=90?s.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?s.key=i.C0.NUL:e.keyCode>=51&&e.keyCode<=55?s.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?s.key=i.C0.DEL:219===e.keyCode?s.key=i.C0.ESC:220===e.keyCode?s.key=i.C0.FS:221===e.keyCode&&(s.key=i.C0.GS)}return s}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i="",o=t;o65535?(r-=65536,i+=String.fromCharCode(55296+(r>>10))+String.fromCharCode(r%1024+56320)):i+=String.fromCharCode(r)}return i};var n=function(){function e(){this._interim=0}return e.prototype.clear=function(){this._interim=0},e.prototype.decode=function(e,t){var n=e.length;if(!n)return 0;var i=0,o=0;this._interim&&(56320<=(a=e.charCodeAt(o++))&&a<=57343?t[i++]=1024*(this._interim-55296)+a-56320+65536:(t[i++]=this._interim,t[i++]=a),this._interim=0);for(var r=o;r=n)return this._interim=s,i;var a;56320<=(a=e.charCodeAt(r))&&a<=57343?t[i++]=1024*(s-55296)+a-56320+65536:(t[i++]=s,t[i++]=a)}else 65279!==s&&(t[i++]=s)}return i},e}();t.StringToUtf32=n;var i=function(){function e(){this.interim=new Uint8Array(3)}return e.prototype.clear=function(){this.interim.fill(0)},e.prototype.decode=function(e,t){var n=e.length;if(!n)return 0;var i,o,r,s,a=0,c=0,l=0;if(this.interim[0]){var u=!1,d=this.interim[0];d&=192==(224&d)?31:224==(240&d)?15:7;for(var h=0,p=void 0;(p=63&this.interim[++h])&&h<4;)d<<=6,d|=p;for(var f=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,m=f-h;l=n)return 0;if(128!=(192&(p=e[l++]))){l--,u=!0;break}this.interim[h++]=p,d<<=6,d|=63&p}u||(2===f?d<128?l--:t[a++]=d:3===f?d<2048||d>=55296&&d<=57343||65279===d||(t[a++]=d):d<65536||d>1114111||(t[a++]=d)),this.interim.fill(0)}for(var g=n-4,v=l;v=n)return this.interim[0]=i,a;if(128!=(192&(o=e[v++]))){v--;continue}if((c=(31&i)<<6|63&o)<128){v--;continue}t[a++]=c}else if(224==(240&i)){if(v>=n)return this.interim[0]=i,a;if(128!=(192&(o=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=o,a;if(128!=(192&(r=e[v++]))){v--;continue}if((c=(15&i)<<12|(63&o)<<6|63&r)<2048||c>=55296&&c<=57343||65279===c)continue;t[a++]=c}else if(240==(248&i)){if(v>=n)return this.interim[0]=i,a;if(128!=(192&(o=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=o,a;if(128!=(192&(r=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=o,this.interim[2]=r,a;if(128!=(192&(s=e[v++]))){v--;continue}if((c=(7&i)<<18|(63&o)<<12|(63&r)<<6|63&s)<65536||c>1114111)continue;t[a++]=c}}return a},e}();t.Utf8ToUtf32=i},225:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var i,o=n(8273),r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],s=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],a=function(){function e(){if(this.version="6",!i){i=new Uint8Array(65536),(0,o.fill)(i,1),i[0]=0,(0,o.fill)(i,0,1,32),(0,o.fill)(i,0,127,160),(0,o.fill)(i,2,4352,4448),i[9001]=2,i[9002]=2,(0,o.fill)(i,2,11904,42192),i[12351]=1,(0,o.fill)(i,2,44032,55204),(0,o.fill)(i,2,63744,64256),(0,o.fill)(i,2,65040,65050),(0,o.fill)(i,2,65072,65136),(0,o.fill)(i,2,65280,65377),(0,o.fill)(i,2,65504,65511);for(var e=0;et[o][1])return!1;for(;o>=i;)if(e>t[n=i+o>>1][1])i=n+1;else{if(!(e=131072&&e<=196605||e>=196608&&e<=262141?2:1},e}();t.UnicodeV6=a},5981:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var n="undefined"==typeof queueMicrotask?function(e){Promise.resolve().then(e)}:queueMicrotask,i=function(){function e(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return e.prototype.writeSync=function(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var n;for(this._isSyncWriting=!0;n=this._writeBuffer.shift();){this._action(n);var i=this._callbacks.shift();i&&i()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},e.prototype.write=function(e,t){var n=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return n._innerWrite()})),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},e.prototype._innerWrite=function(e,t){var i=this;void 0===e&&(e=0),void 0===t&&(t=!0);for(var o=e||Date.now();this._writeBuffer.length>this._bufferOffset;){var r=this._writeBuffer[this._bufferOffset],s=this._action(r,t);if(s)return void s.catch(function(e){return n(function(){throw e}),Promise.resolve(!1)}).then(function(e){return Date.now()-o>=12?setTimeout(function(){return i._innerWrite(0,e)}):i._innerWrite(o,e)});var a=this._callbacks[this._bufferOffset];if(a&&a(),this._bufferOffset++,this._pendingData-=r.length,Date.now()-o>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return i._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},e}();t.WriteBuffer=i},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;var n=/^([\da-f]{1})\/([\da-f]{1})\/([\da-f]{1})$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,i=/^[\da-f]+$/;function o(e,t){var n=e.toString(16),i=n.length<2?"0"+n:n;switch(t){case 4:return n[0];case 8:return i;case 12:return(i+i).slice(0,3);default:return i+i}}t.parseColor=function(e){if(e){var t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);var o=n.exec(t);if(o){var r=o[1]?15:o[4]?255:o[7]?4095:65535;return[Math.round(parseInt(o[1]||o[4]||o[7]||o[10],16)/r*255),Math.round(parseInt(o[2]||o[5]||o[8]||o[11],16)/r*255),Math.round(parseInt(o[3]||o[6]||o[9]||o[12],16)/r*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),i.exec(t)&&[3,6,9,12].includes(t.length))){for(var s=t.length/3,a=[0,0,0],c=0;c<3;++c){var l=parseInt(t.slice(s*c,s*c+s),16);a[c]=1===s?l<<4:2===s?l:3===s?l>>4:l>>8}return a}}},t.toRgbString=function(e,t){void 0===t&&(t=16);var n=e[0],i=e[1],r=e[2];return"rgb:"+o(n,t)+"/"+o(i,t)+"/"+o(r,t)}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var i=n(482),o=n(8742),r=n(5770),s=[],a=function(){function e(){this._handlers=Object.create(null),this._active=s,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=s},e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.reset=function(){if(this._active.length)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=s,this._ident=0},e.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||s,this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].hook(t);else this._handlerFb(this._ident,"HOOK",t)},e.prototype.put=function(e,t,n){if(this._active.length)for(var o=this._active.length-1;o>=0;o--)this._active[o].put(e,t,n);else this._handlerFb(this._ident,"PUT",(0,i.utf32ToString)(e,t,n))},e.prototype.unhook=function(e,t){if(void 0===t&&(t=!0),this._active.length){var n=!1,i=this._active.length-1,o=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,n=t,o=this._stack.fallThrough,this._stack.paused=!1),!o&&!1===n){for(;i>=0&&!0!==(n=this._active[i].unhook(e));i--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,n;i--}for(;i>=0;i--)if((n=this._active[i].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,n}else this._handlerFb(this._ident,"UNHOOK",e);this._active=s,this._ident=0},e}();t.DcsParser=a;var c=new o.Params;c.addParam(0);var l=function(){function e(e){this._handler=e,this._data="",this._params=c,this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.length>1||e.params[0]?e.clone():c,this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,n){this._hitLimit||(this._data+=(0,i.utf32ToString)(e,t,n),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t=this,n=!1;if(this._hitLimit)n=!1;else if(e&&(n=this._handler(this._data,this._params))instanceof Promise)return n.then(function(e){return t._params=c,t._data="",t._hitLimit=!1,e});return this._params=c,this._data="",this._hitLimit=!1,n},e}();t.DcsHandler=l},2015:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var r=n(844),s=n(8273),a=n(8742),c=n(6242),l=n(6351),u=function(){function e(e){this.table=new Uint8Array(e)}return e.prototype.setDefault=function(e,t){(0,s.fill)(this.table,e<<4|t)},e.prototype.add=function(e,t,n,i){this.table[t<<8|e]=n<<4|i},e.prototype.addMany=function(e,t,n,i){for(var o=0;o1)throw new Error("only one byte as prefix supported");if((n=e.prefix.charCodeAt(0))&&60>n||n>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var i=0;io||o>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");n<<=8,n|=o}}if(1!==e.final.length)throw new Error("final must be a single byte");var r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return(n<<=8)|r},n.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},n.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},n.prototype.setPrintHandler=function(e){this._printHandler=e},n.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},n.prototype.registerEscHandler=function(e,t){var n=this._identifier(e,[48,126]);void 0===this._escHandlers[n]&&(this._escHandlers[n]=[]);var i=this._escHandlers[n];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},n.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},n.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},n.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},n.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},n.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},n.prototype.registerCsiHandler=function(e,t){var n=this._identifier(e);void 0===this._csiHandlers[n]&&(this._csiHandlers[n]=[]);var i=this._csiHandlers[n];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},n.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},n.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},n.prototype.registerDcsHandler=function(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)},n.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},n.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},n.prototype.registerOscHandler=function(e,t){return this._oscParser.registerHandler(e,t)},n.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},n.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},n.prototype.setErrorHandler=function(e){this._errorHandler=e},n.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},n.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},n.prototype._preserveStack=function(e,t,n,i,o){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=n,this._parseStack.transition=i,this._parseStack.chunkPos=o},n.prototype.parse=function(e,t,n){var i,o=0,r=0,s=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,s=this._parseStack.chunkPos+1;else{if(void 0===n||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var a=this._parseStack.handlers,c=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===n&&c>-1)for(;c>=0&&!0!==(i=a[c](this._params));c--)if(i instanceof Promise)return this._parseStack.handlerPos=c,i;this._parseStack.handlers=[];break;case 4:if(!1===n&&c>-1)for(;c>=0&&!0!==(i=a[c]());c--)if(i instanceof Promise)return this._parseStack.handlerPos=c,i;this._parseStack.handlers=[];break;case 6:if(o=e[this._parseStack.chunkPos],i=this._dcsParser.unhook(24!==o&&26!==o,n))return i;27===o&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(o=e[this._parseStack.chunkPos],i=this._oscParser.end(24!==o&&26!==o,n))return i;27===o&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,s=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var l=s;l>4){case 2:for(var u=l+1;;++u){if(u>=t||(o=e[u])<32||o>126&&o=t||(o=e[u])<32||o>126&&o=t||(o=e[u])<32||o>126&&o=t||(o=e[u])<32||o>126&&o=0&&!0!==(i=a[h](this._params));h--)if(i instanceof Promise)return this._preserveStack(3,a,h,r,l),i;h<0&&this._csiHandlerFb(this._collect<<8|o,this._params),this.precedingCodepoint=0;break;case 8:do{switch(o){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(o-48)}}while(++l47&&o<60);l--;break;case 9:this._collect<<=8,this._collect|=o;break;case 10:for(var p=this._escHandlers[this._collect<<8|o],f=p?p.length-1:-1;f>=0&&!0!==(i=p[f]());f--)if(i instanceof Promise)return this._preserveStack(4,p,f,r,l),i;f<0&&this._escHandlerFb(this._collect<<8|o),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|o,this._params);break;case 13:for(var m=l+1;;++m)if(m>=t||24===(o=e[m])||26===o||27===o||o>127&&o=t||(o=e[g])<32||o>127&&o{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var i=n(5770),o=n(482),r=[],s=function(){function e(){this._state=0,this._active=r,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=r},e.prototype.reset=function(){if(2===this._state)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=r,this._id=-1,this._state=0},e.prototype._start=function(){if(this._active=this._handlers[this._id]||r,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")},e.prototype._put=function(e,t,n){if(this._active.length)for(var i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,n);else this._handlerFb(this._id,"PUT",(0,o.utf32ToString)(e,t,n))},e.prototype.start=function(){this.reset(),this._state=1},e.prototype.put=function(e,t,n){if(3!==this._state){if(1===this._state)for(;t0&&this._put(e,t,n)}},e.prototype.end=function(e,t){if(void 0===t&&(t=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var n=!1,i=this._active.length-1,o=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,n=t,o=this._stack.fallThrough,this._stack.paused=!1),!o&&!1===n){for(;i>=0&&!0!==(n=this._active[i].end(e));i--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,n;i--}for(;i>=0;i--)if((n=this._active[i].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,n}else this._handlerFb(this._id,"END",e);this._active=r,this._id=-1,this._state=0}},e}();t.OscParser=s;var a=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.start=function(){this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,n){this._hitLimit||(this._data+=(0,o.utf32ToString)(e,t,n),this._data.length>i.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t=this,n=!1;if(this._hitLimit)n=!1;else if(e&&(n=this._handler(this._data))instanceof Promise)return n.then(function(e){return t._data="",t._hitLimit=!1,e});return this._data="",this._hitLimit=!1,n},e}();t.OscHandler=a},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var n=2147483647,i=function(){function e(e,t){if(void 0===e&&(e=32),void 0===t&&(t=32),this.maxLength=e,this.maxSubParamsLength=t,t>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return e.fromArray=function(t){var n=new e;if(!t.length)return n;for(var i=Array.isArray(t[0])?1:0;i>8,i=255&this._subParamsIdx[t];i-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,i))}return e},e.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},e.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>n?n:e}},e.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>n?n:e,this._subParamsIdx[this.length-1]++}},e.prototype.hasSubParams=function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0},e.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,n=255&this._subParamsIdx[e];return n-t>0?this._subParams.subarray(t,n):null},e.prototype.getSubParamsAll=function(){for(var e={},t=0;t>8,i=255&this._subParamsIdx[t];i-n>0&&(e[t]=this._subParams.slice(n,i))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var i=this._digitIsSub?this._subParams:this.params,o=i[t-1];i[t-1]=~o?Math.min(10*o+e,n):e}},e}();t.Params=i},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0;var n=function(){function e(){this._addons=[]}return e.prototype.dispose=function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()},e.prototype.loadAddon=function(e,t){var n=this,i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=function(){return n._wrappedAddonDispose(i)},t.activate(e)},e.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;var i=n(3785),o=n(511),r=function(){function e(e,t){this._buffer=e,this.type=t}return e.prototype.init=function(e){return this._buffer=e,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(e){var t=this._buffer.lines.get(e);if(t)return new i.BufferLineApiView(t)},e.prototype.getNullCell=function(){return new o.CellData},e}();t.BufferApiView=r},3785:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;var i=n(511),o=function(){function e(e){this._line=e}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new i.CellData)},e.prototype.translateToString=function(e,t,n){return this._line.translateToString(e,t,n)},e}();t.BufferLineApiView=o},8285:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;var i=n(8771),o=n(8460),r=function(){function e(e){var t=this;this._core=e,this._onBufferChange=new o.EventEmitter,this._normal=new i.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new i.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return t._onBufferChange.fire(t.active)})}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),e}();t.BufferNamespaceApi=r},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0;var n=function(){function e(e){this._core=e}return e.prototype.registerCsiHandler=function(e,t){return this._core.registerCsiHandler(e,function(e){return t(e.toArray())})},e.prototype.addCsiHandler=function(e,t){return this.registerCsiHandler(e,t)},e.prototype.registerDcsHandler=function(e,t){return this._core.registerDcsHandler(e,function(e,n){return t(e,n.toArray())})},e.prototype.addDcsHandler=function(e,t){return this.registerDcsHandler(e,t)},e.prototype.registerEscHandler=function(e,t){return this._core.registerEscHandler(e,t)},e.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},e.prototype.registerOscHandler=function(e,t){return this._core.registerOscHandler(e,t)},e.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},e}();t.ParserApi=n},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0;var n=function(){function e(e){this._core=e}return e.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!1,configurable:!0}),e}();t.UnicodeApi=n},744:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var a=n(2585),c=n(5295),l=n(8460),u=n(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var d=function(e){function n(n){var i=e.call(this)||this;return i._optionsService=n,i.isUserScrolling=!1,i._onResize=new l.EventEmitter,i._onScroll=new l.EventEmitter,i.cols=Math.max(n.rawOptions.cols||0,t.MINIMUM_COLS),i.rows=Math.max(n.rawOptions.rows||0,t.MINIMUM_ROWS),i.buffers=new c.BufferSet(n,i),i}return o(n,e),Object.defineProperty(n.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},n.prototype.resize=function(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:t})},n.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},n.prototype.scroll=function(e,t){void 0===t&&(t=!1);var n,i=this.buffer;(n=this._cachedBlankLine)&&n.length===this.cols&&n.getFg(0)===e.fg&&n.getBg(0)===e.bg||(n=i.getBlankLine(e,t),this._cachedBlankLine=n),n.isWrapped=t;var o=i.ybase+i.scrollTop,r=i.ybase+i.scrollBottom;if(0===i.scrollTop){var s=i.lines.isFull;r===i.lines.length-1?s?i.lines.recycle().copyFrom(n):i.lines.push(n.clone()):i.lines.splice(r+1,0,n.clone()),s?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{var a=r-o+1;i.lines.shiftElements(o+1,a-1,-1),i.lines.set(r,n.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)},n.prototype.scrollLines=function(e,t,n){var i=this.buffer;if(e<0){if(0===i.ydisp)return;this.isUserScrolling=!0}else e+i.ydisp>=i.ybase&&(this.isUserScrolling=!1);var o=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),o!==i.ydisp&&(t||this._onScroll.fire(i.ydisp))},n.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},n.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},n.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},n.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},r([s(0,a.IOptionsService)],n)}(u.Disposable);t.BufferService=d},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0;var n=function(){function e(){this.glevel=0,this._charsets=[]}return e.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},e.prototype.setgLevel=function(e){this.glevel=e,this.charset=this._charsets[e]},e.prototype.setgCharset=function(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)},e}();t.CharsetService=n},1753:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var r=n(2585),s=n(8460),a={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function c(e,t){var n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(n|=64,n|=e.action):(n|=3&e.button,4&e.button&&(n|=64),8&e.button&&(n|=128),32===e.action?n|=32:0!==e.action||t||(n|=3)),n}var l=String.fromCharCode,u={DEFAULT:function(e){var t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":""+l(t[0])+l(t[1])+l(t[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"[<"+c(e,!0)+";"+e.col+";"+e.row+t}},d=function(){function e(e,t){this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new s.EventEmitter,this._lastEvent=null;for(var n=0,i=Object.keys(a);n=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},e.prototype.explainEvents=function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}},e.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},i([o(0,r.IBufferService),o(1,r.ICoreService)],e)}();t.CoreMouseService=d},6975:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var a=n(2585),c=n(8460),l=n(1439),u=n(844),d=Object.freeze({insertMode:!1}),h=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),p=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._bufferService=n,r._logService=i,r._optionsService=o,r.isCursorInitialized=!1,r.isCursorHidden=!1,r._onData=r.register(new c.EventEmitter),r._onUserInput=r.register(new c.EventEmitter),r._onBinary=r.register(new c.EventEmitter),r._scrollToBottom=t,r.register({dispose:function(){return r._scrollToBottom=void 0}}),r.modes=(0,l.clone)(d),r.decPrivateModes=(0,l.clone)(h),r}return o(t,e),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.modes=(0,l.clone)(d),this.decPrivateModes=(0,l.clone)(h)},t.prototype.triggerDataEvent=function(e,t){if(void 0===t&&(t=!1),!this._optionsService.rawOptions.disableStdin){var n=this._bufferService.buffer;n.ybase!==n.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onData.fire(e)}},t.prototype.triggerBinaryEvent=function(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onBinary.fire(e))},r([s(1,a.IBufferService),s(2,a.ILogService),s(3,a.IOptionsService)],t)}(u.Disposable);t.CoreService=p},3730:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var r=n(2585),s=function(){function e(e){this._bufferService=e,this.clearRange()}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),e.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},e.prototype.markDirty=function(e){ethis._end&&(this._end=e)},e.prototype.markRangeDirty=function(e,t){if(e>t){var n=e;e=t,t=n}ethis._end&&(this._end=t)},e.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},i([o(0,r.IBufferService)],e)}();t.DirtyRowService=s},4348:function(e,t,n){var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o0?o[0].index:t.length;if(t.length!==d)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(d+1)+" conflicts with "+t.length+" static arguments");return new(e.bind.apply(e,i([void 0],i(i([],t,!0),s,!0),!1)))},e}();t.InstantiationService=a},7866:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o{function n(e,t,n){t.di$target===t?t.di$dependencies.push({id:e,index:n}):(t.di$dependencies=[{id:e,index:n}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var i=function(e,t,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(i,e,o)};return i.toString=function(){return e},t.serviceRegistry.set(e,i),i}},2585:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IUnicodeService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var i,o=n(8343);t.IBufferService=(0,o.createDecorator)("BufferService"),t.ICoreMouseService=(0,o.createDecorator)("CoreMouseService"),t.ICoreService=(0,o.createDecorator)("CoreService"),t.ICharsetService=(0,o.createDecorator)("CharsetService"),t.IDirtyRowService=(0,o.createDecorator)("DirtyRowService"),t.IInstantiationService=(0,o.createDecorator)("InstantiationService"),(i=t.LogLevelEnum||(t.LogLevelEnum={}))[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.OFF=4]="OFF",t.ILogService=(0,o.createDecorator)("LogService"),t.IOptionsService=(0,o.createDecorator)("OptionsService"),t.IUnicodeService=(0,o.createDecorator)("UnicodeService")},1480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var i=n(8460),o=n(225),r=function(){function e(){this._providers=Object.create(null),this._active="",this._onChange=new i.EventEmitter;var e=new o.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!1,configurable:!0}),e.prototype.register=function(e){this._providers[e.version]=e},e.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},e.prototype.getStringCellWidth=function(e){for(var t=0,n=e.length,i=0;i=n)return t+this.wcwidth(o);var r=e.charCodeAt(i);56320<=r&&r<=57343?o=1024*(o-55296)+r-56320+65536:t+=this.wcwidth(r)}t+=this.wcwidth(o)}return t},e}();t.UnicodeService=r}},t={};return function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}(4389)})()})},fcf8:function(e,t,n){},fd0f:function(e,t,n){},fe37:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("fba3"),r=n("3b4c"),s=n("3623"),a=n("c444"),c=n("5eb6");function l(e){return"zoom"in e}function u(e){var t=1,n=s.findParentByFeature(e,c.isViewport);return n&&(t=n.zoom),t}t.isZoomable=l,t.getZoom=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.wheel=function(e,t){var n=s.findParentByFeature(e,c.isViewport);if(n){var i=this.getZoomFactor(t),o=this.getViewportOffset(e.root,t),r=1/(i*n.zoom)-1/n.zoom,l={scroll:{x:n.scroll.x-r*o.x,y:n.scroll.y-r*o.y},zoom:n.zoom*i};return[new a.SetViewportAction(n.id,l,!1)]}return[]},t.prototype.getViewportOffset=function(e,t){var n=e.canvasBounds,i=o.getWindowScroll();return{x:t.clientX+i.x-n.x,y:t.clientY+i.y-n.y}},t.prototype.getZoomFactor=function(e){return e.deltaMode===e.DOM_DELTA_PAGE?Math.exp(.5*-e.deltaY):e.deltaMode===e.DOM_DELTA_LINE?Math.exp(.05*-e.deltaY):Math.exp(.005*-e.deltaY)},t}(r.MouseListener);t.ZoomMouseListener=d},ff70:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="http://www.w3.org/1999/xlink",o="http://www.w3.org/XML/1998/namespace",r=58,s=120;function a(e,t){var n,a=t.elm,c=e.data.attrs,l=t.data.attrs;if((c||l)&&c!==l){for(n in c=c||{},l=l||{},l){var u=l[n],d=c[n];d!==u&&(!0===u?a.setAttribute(n,""):!1===u?a.removeAttribute(n):n.charCodeAt(0)!==s?a.setAttribute(n,u):n.charCodeAt(3)===r?a.setAttributeNS(o,n,u):n.charCodeAt(5)===r?a.setAttributeNS(i,n,u):a.setAttribute(n,u))}for(n in c)n in l||a.removeAttribute(n)}}t.attributesModule={create:a,update:a},t.default=t.attributesModule}}]); \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/74fd8965.f850ea0b.js b/klab.engine/src/main/resources/static/ui/js/74fd8965.f850ea0b.js new file mode 100644 index 0000000000..96f6f06827 --- /dev/null +++ b/klab.engine/src/main/resources/static/ui/js/74fd8965.f850ea0b.js @@ -0,0 +1,27 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["74fd8965"],{"019a":function(e,t,n){},"0300":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null===e||void 0===e)throw new Error(i.NULL_ARGUMENT);if(null===t||void 0===t)throw new Error(i.NULL_ARGUMENT);var n=this._map.get(e);void 0!==n?(n.push(t),this._map.set(e,n)):this._map.set(e,[t])},e.prototype.get=function(e){if(null===e||void 0===e)throw new Error(i.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(i.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null===e||void 0===e)throw new Error(i.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(i.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach(function(n,i){var o=n.filter(function(t){return!e(t)});o.length>0?t._map.set(i,o):t._map.delete(i)})},e.prototype.hasKey=function(e){if(null===e||void 0===e)throw new Error(i.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach(function(e,n){e.forEach(function(e){return t.add(n,e.clone())})}),t},e.prototype.traverse=function(e){this._map.forEach(function(t,n){e(n,t)})},e}();t.Lookup=o},"0312":function(e,t){var n=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=n},"0483":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("b485"),s=new i.ContainerModule(function(e){e(o.TYPES.MouseListener).to(r.OpenMouseListener)});t.default=s},"04c2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("4741"),s=new i.ContainerModule(function(e){e(o.TYPES.IButtonHandler).toConstructor(r.ExpandButtonHandler)});t.default=s},"0505":function(e,t,n){},"064a":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("393a"),c=n("e1c6"),l=n("6923"),u=n("3864"),d=n("dd02"),h=n("7b39"),p=n("302f"),f=n("3623"),m=function(e){function t(t){var n=e.call(this)||this;return n.registerDefaults(),t.forEach(function(e){return n.register(e.type,e.factory())}),n}return i(t,e),t.prototype.registerDefaults=function(){this.register(p.EMPTY_ROOT.type,new b)},t.prototype.missing=function(e){return new y},t=o([c.injectable(),s(0,c.multiInject(l.TYPES.ViewRegistration)),s(0,c.optional()),r("design:paramtypes",[Array])],t),t}(u.InstanceRegistry);function g(e,t,n,i,o){f.registerModelElement(e,t,n,o),v(e,t,i)}function v(e,t,n){if("function"===typeof n){if(!h.isInjectable(n))throw new Error("Views should be @injectable: "+n.name);e.isBound(n)||e.bind(n).toSelf()}e.bind(l.TYPES.ViewRegistration).toDynamicValue(function(e){return{type:t,factory:function(){return e.container.get(n)}}})}t.ViewRegistry=m,t.configureModelElement=g,t.configureView=v;var b=function(){function e(){}return e.prototype.render=function(e,t){return a.svg("svg",{"class-sprotty-empty":!0})},e=o([c.injectable()],e),e}();t.EmptyView=b;var y=function(){function e(){}return e.prototype.render=function(e,t){var n=e.position||d.ORIGIN_POINT;return a.svg("text",{"class-sprotty-missing":!0,x:n.x,y:n.y},"?",e.id,"?")},e=o([c.injectable()],e),e}();t.MissingView=y},"0960":function(e,t,n){e.exports=n("b19a")},"0a28":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t"+e+""}),n},t.prototype.renderIcon=function(e,t){e.innerHTML+=''},t.prototype.filterActions=function(e,t){return f.toArray(t.filter(function(t){var n=t.label.toLowerCase(),i=e.split(" ");return i.every(function(e){return-1!==n.indexOf(e.toLowerCase())})}))},t.prototype.customizeSuggestionContainer=function(e,t,n){this.containerElement&&this.containerElement.appendChild(e)},t.prototype.hide=function(){e.prototype.hide.call(this),this.autoCompleteResult&&this.autoCompleteResult.destroy()},t.prototype.executeAction=function(e){var t=this;this.actionDispatcherProvider().then(function(t){return t.dispatchAll(w(e))}).catch(function(e){return t.logger.error(t,"No action dispatcher available to execute command palette action",e)})},t.ID="command-palette",t.isInvokePaletteKey=function(e){return m.matchesKeystroke(e,"Space","ctrl")},o([a.inject(l.TYPES.IActionDispatcherProvider),r("design:type",Function)],t.prototype,"actionDispatcherProvider",void 0),o([a.inject(l.TYPES.ICommandPaletteActionProviderRegistry),r("design:type",b.CommandPaletteActionProviderRegistry)],t.prototype,"actionProviderRegistry",void 0),o([a.inject(l.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"viewerOptions",void 0),o([a.inject(l.TYPES.DOMHelper),r("design:type",h.DOMHelper)],t.prototype,"domHelper",void 0),o([a.inject(y.MousePositionTracker),r("design:type",y.MousePositionTracker)],t.prototype,"mousePositionTracker",void 0),t=n=o([a.injectable()],t),t}(u.AbstractUIExtension);function w(e){return c.isLabeledAction(e)?e.actions:c.isAction(e)?[e]:[]}function C(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}t.CommandPalette=M;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){if(m.matchesKeystroke(t,"Escape"))return[new d.SetUIExtensionVisibilityAction(M.ID,!1,[])];if(M.isInvokePaletteKey(t)){var n=f.toArray(e.index.all().filter(function(e){return v.isSelectable(e)&&e.selected}).map(function(e){return e.id}));return[new d.SetUIExtensionVisibilityAction(M.ID,!0,n)]}return[]},t}(p.KeyListener);t.CommandPaletteKeyListener=S},"0bd8":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=function(){function e(){}return e.prototype.decorate=function(e,t){return e},e.prototype.postUpdate=function(){var e=document.getElementById(this.options.popupDiv);if(null!==e&&"undefined"!==typeof window){var t=e.getBoundingClientRect();window.innerHeight=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=function(){function e(){}return e.prototype.getPrefix=function(){var e=void 0!==this.viewerOptions&&void 0!==this.viewerOptions.baseDiv?this.viewerOptions.baseDiv+"_":"";return e},e.prototype.createUniqueDOMElementId=function(e){return this.getPrefix()+e.id},e.prototype.findSModelIdByDOMElement=function(e){return e.id.replace(this.getPrefix(),"")},i([r.inject(s.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"viewerOptions",void 0),e=i([r.injectable()],e),e}();t.DOMHelper=a},"0e44":function(e,t,n){"use strict";var i=n("7615"),o=n.n(i);o.a},"0efb":function(e,t,n){var i,o,r;//! moment-timezone.js +//! version : 0.5.34 +//! Copyright (c) JS Foundation and other contributors +//! license : MIT +//! github.com/moment/moment-timezone +//! moment-timezone.js +//! version : 0.5.34 +//! Copyright (c) JS Foundation and other contributors +//! license : MIT +//! github.com/moment/moment-timezone +(function(s,a){"use strict";e.exports?e.exports=a(n("c1df")):(o=[n("c1df")],i=a,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r))})(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n="0.5.34",i={},o={},r={},s={},a={};e&&"string"===typeof e.version||j("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var c=e.version.split("."),l=+c[0],u=+c[1];function d(e){return e>96?e-87:e>64?e-29:e-48}function h(e){var t,n=0,i=e.split("."),o=i[0],r=i[1]||"",s=1,a=0,c=1;for(45===e.charCodeAt(0)&&(n=1,c=-1),n;n3){var t=s[L(e)];if(t)return t;j("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,i,o,r=w(),a=r.length,c=A(r),l=[];for(i=0;i0?l[0].zone.name:void 0}function O(e){return t&&!e||(t=E()),t}function L(e){return(e||"").toLowerCase().replace(/\//g,"_")}function T(e){var t,n,o,r;for("string"===typeof e&&(e=[e]),t=0;t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),v.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,i=this.untils;for(t=0;ti&&W.moveInvalidForward&&(t=i),r0&&(this._z=null),e.apply(this,arguments)}}e.tz=W,e.defaultZone=null,e.updateOffset=function(t,n){var i,o=e.defaultZone;if(void 0===t._z&&(o&&q(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(o.parse(t),"minutes")),t._z=o),t._z)if(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset){var r=t._z;t.utcOffset(-i,n),t._z=r}else t.zone(i,n)},F.tz=function(t,n){if(t){if("string"!==typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=x(t),this._z?e.updateOffset(this,n):j("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},F.zoneName=H(F.zoneName),F.zoneAbbr=H(F.zoneAbbr),F.utc=X(F.utc),F.local=X(F.local),F.utcOffset=U(F.utcOffset),e.tz.setDefault=function(t){return(l<2||2===l&&u<9)&&j("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?x(t):null,e};var V=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(V)?(V.push("_z"),V.push("_a")):V&&(V._z=null),e})},"0f4c":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("c146"),r=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.elementResizes=n,r.reverse=o,r}return i(t,e),t.prototype.tween=function(e){var t=this;return this.elementResizes.forEach(function(n){var i=n.element,o=t.reverse?{width:(1-e)*n.toDimension.width+e*n.fromDimension.width,height:(1-e)*n.toDimension.height+e*n.fromDimension.height}:{width:(1-e)*n.fromDimension.width+e*n.toDimension.width,height:(1-e)*n.fromDimension.height+e*n.toDimension.height};i.bounds={x:i.bounds.x,y:i.bounds.y,width:o.width,height:o.height}}),this.model},t}(o.Animation);t.ResizeAnimation=r},"0faf":function(e,t,n){"use strict";var i=n("5870"),o=n.n(i);o.a},"0fb6":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=n("9175"),c=n("302f"),l=n("538c"),u=n("3f0a"),d=n("c20e"),h=n("510b"),p=function(){function e(){this.postponedActions=[],this.requests=new Map}return e.prototype.initialize=function(){var e=this;return this.initialized||(this.initialized=this.actionHandlerRegistryProvider().then(function(t){e.actionHandlerRegistry=t,e.handleAction(new u.SetModelAction(c.EMPTY_ROOT))})),this.initialized},e.prototype.dispatch=function(e){var t=this;return this.initialize().then(function(){return void 0!==t.blockUntil?t.handleBlocked(e,t.blockUntil):t.diagramLocker.isAllowed(e)?t.handleAction(e):void 0})},e.prototype.dispatchAll=function(e){var t=this;return Promise.all(e.map(function(e){return t.dispatch(e)}))},e.prototype.request=function(e){if(!e.requestId)return Promise.reject(new Error("Request without requestId"));var t=new a.Deferred;return this.requests.set(e.requestId,t),this.dispatch(e),t.promise},e.prototype.handleAction=function(e){if(e.kind===d.UndoAction.KIND)return this.commandStack.undo().then(function(){});if(e.kind===d.RedoAction.KIND)return this.commandStack.redo().then(function(){});if(h.isResponseAction(e)){var t=this.requests.get(e.responseId);if(void 0!==t){if(this.requests.delete(e.responseId),e.kind===h.RejectAction.KIND){var n=e;t.reject(new Error(n.message)),this.logger.warn(this,"Request with id "+e.responseId+" failed.",n.message,n.detail)}else t.resolve(e);return Promise.resolve()}this.logger.log(this,"No matching request for response",e)}var i=this.actionHandlerRegistry.get(e.kind);if(0===i.length){this.logger.warn(this,"Missing handler for action",e);var o=new Error("Missing handler for action '"+e.kind+"'");if(h.isRequestAction(e)){t=this.requests.get(e.requestId);void 0!==t&&(this.requests.delete(e.requestId),t.reject(o))}return Promise.reject(o)}this.logger.log(this,"Handle",e);for(var r=[],s=0,a=i;s=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,a)}c((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return c([e,t])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("3a92"),l=n("e45b"),u=function(){function e(e){void 0===e&&(e=[]),this.keyListeners=e}return e.prototype.register=function(e){this.keyListeners.push(e)},e.prototype.deregister=function(e){var t=this.keyListeners.indexOf(e);t>=0&&this.keyListeners.splice(t,1)},e.prototype.handleEvent=function(e,t,n){var i=this.keyListeners.map(function(i){return i[e].apply(i,[t,n])}).reduce(function(e,t){return e.concat(t)});i.length>0&&(n.preventDefault(),this.actionDispatcher.dispatchAll(i))},e.prototype.keyDown=function(e,t){this.handleEvent("keyDown",e,t)},e.prototype.keyUp=function(e,t){this.handleEvent("keyUp",e,t)},e.prototype.focus=function(){},e.prototype.decorate=function(e,t){return t instanceof c.SModelRoot&&(l.on(e,"focus",this.focus.bind(this),t),l.on(e,"keydown",this.keyDown.bind(this),t),l.on(e,"keyup",this.keyUp.bind(this),t)),e},e.prototype.postUpdate=function(){},i([s.inject(a.TYPES.IActionDispatcher),o("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=i([s.injectable(),r(0,s.multiInject(a.TYPES.KeyListener)),r(0,s.optional()),o("design:paramtypes",[Array])],e),e}();t.KeyTool=u;var d=function(){function e(){}return e.prototype.keyDown=function(e,t){return[]},e.prototype.keyUp=function(e,t){return[]},e=i([s.injectable()],e),e}();t.KeyListener=d},1468:function(e,t){var n=1e3,i=60*n,o=60*i,r=24*o,s=365.25*r;function a(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var a=parseFloat(t[1]),c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function c(e){return e>=r?Math.round(e/r)+"d":e>=o?Math.round(e/o)+"h":e>=i?Math.round(e/i)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}function l(e){return u(e,r,"day")||u(e,o,"hour")||u(e,i,"minute")||u(e,n,"second")||e+" ms"}function u(e,t,n){if(!(e0)return a(e);if("number"===n&&!1===isNaN(e))return t.long?l(e):c(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"155f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingScopeEnum=i;var o={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.BindingTypeEnum=o;var r={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};t.TargetTypeEnum=r},1590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t){this.toolIds=t,this.kind=e.KIND}return e.KIND="enable-tools",e}();t.EnableToolsAction=i;var o=function(){function e(){this.kind=e.KIND}return e.KIND="enable-default-tools",e}();t.EnableDefaultToolsAction=o},"15f6":function(e,t,n){},"160b":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("302f"),l=n("3a92"),u=n("538c"),d=n("9757"),h=function(){function e(){this.undoStack=[],this.redoStack=[],this.offStack=[]}return e.prototype.initialize=function(){this.currentPromise=Promise.resolve({main:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1},hidden:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1},popup:{model:this.modelFactory.createRoot(c.EMPTY_ROOT),modelChanged:!1}})},Object.defineProperty(e.prototype,"currentModel",{get:function(){return this.currentPromise.then(function(e){return e.main.model})},enumerable:!0,configurable:!0}),e.prototype.executeAll=function(e){var t=this;return e.forEach(function(e){t.logger.log(t,"Executing",e),t.handleCommand(e,e.execute,t.mergeOrPush)}),this.thenUpdate()},e.prototype.execute=function(e){return this.logger.log(this,"Executing",e),this.handleCommand(e,e.execute,this.mergeOrPush),this.thenUpdate()},e.prototype.undo=function(){var e=this;this.undoOffStackSystemCommands(),this.undoPreceedingSystemCommands();var t=this.undoStack[this.undoStack.length-1];return void 0===t||this.isBlockUndo(t)||(this.undoStack.pop(),this.logger.log(this,"Undoing",t),this.handleCommand(t,t.undo,function(t,n){e.redoStack.push(t)})),this.thenUpdate()},e.prototype.redo=function(){var e=this;this.undoOffStackSystemCommands();var t=this.redoStack.pop();return void 0!==t&&(this.logger.log(this,"Redoing",t),this.handleCommand(t,t.redo,function(t,n){e.pushToUndoStack(t)})),this.redoFollowingSystemCommands(),this.thenUpdate()},e.prototype.handleCommand=function(e,t,n){var i=this;this.currentPromise=this.currentPromise.then(function(o){return new Promise(function(r){var s;s=e instanceof d.HiddenCommand?"hidden":e instanceof d.PopupCommand?"popup":"main";var a,c=i.createContext(o.main.model);try{a=t.call(e,c)}catch(e){i.logger.error(i,"Failed to execute command:",e),a=o[s].model}var u=p(o);a instanceof Promise?a.then(function(t){"main"===s&&n.call(i,e,c),u[s]={model:t,modelChanged:!0},r(u)}):a instanceof l.SModelRoot?("main"===s&&n.call(i,e,c),u[s]={model:a,modelChanged:!0},r(u)):("main"===s&&n.call(i,e,c),u[s]={model:a.model,modelChanged:o[s].modelChanged||a.modelChanged,cause:a.cause},r(u))})})},e.prototype.pushToUndoStack=function(e){this.undoStack.push(e),this.options.undoHistoryLimit>=0&&this.undoStack.length>this.options.undoHistoryLimit&&this.undoStack.splice(0,this.undoStack.length-this.options.undoHistoryLimit)},e.prototype.thenUpdate=function(){var e=this;return this.currentPromise=this.currentPromise.then(function(t){var n=p(t);return t.hidden.modelChanged&&(e.updateHidden(t.hidden.model,t.hidden.cause),n.hidden.modelChanged=!1,n.hidden.cause=void 0),t.main.modelChanged&&(e.update(t.main.model,t.main.cause),n.main.modelChanged=!1,n.main.cause=void 0),t.popup.modelChanged&&(e.updatePopup(t.popup.model,t.popup.cause),n.popup.modelChanged=!1,n.popup.cause=void 0),n}),this.currentModel},e.prototype.update=function(e,t){void 0===this.modelViewer&&(this.modelViewer=this.viewerProvider.modelViewer),this.modelViewer.update(e,t)},e.prototype.updateHidden=function(e,t){void 0===this.hiddenModelViewer&&(this.hiddenModelViewer=this.viewerProvider.hiddenModelViewer),this.hiddenModelViewer.update(e,t)},e.prototype.updatePopup=function(e,t){void 0===this.popupModelViewer&&(this.popupModelViewer=this.viewerProvider.popupModelViewer),this.popupModelViewer.update(e,t)},e.prototype.mergeOrPush=function(e,t){var n=this;if(this.isBlockUndo(e))return this.undoStack=[],this.redoStack=[],this.offStack=[],void this.pushToUndoStack(e);if(this.isPushToOffStack(e)&&this.redoStack.length>0){if(this.offStack.length>0){var i=this.offStack[this.offStack.length-1];if(i instanceof d.MergeableCommand&&i.merge(e,t))return}this.offStack.push(e)}else if(this.isPushToUndoStack(e)){if(this.offStack.forEach(function(e){return n.undoStack.push(e)}),this.offStack=[],this.redoStack=[],this.undoStack.length>0){i=this.undoStack[this.undoStack.length-1];if(i instanceof d.MergeableCommand&&i.merge(e,t))return}this.pushToUndoStack(e)}},e.prototype.undoOffStackSystemCommands=function(){var e=this.offStack.pop();while(void 0!==e)this.logger.log(this,"Undoing off-stack",e),this.handleCommand(e,e.undo,function(){}),e=this.offStack.pop()},e.prototype.undoPreceedingSystemCommands=function(){var e=this,t=this.undoStack[this.undoStack.length-1];while(void 0!==t&&this.isPushToOffStack(t))this.undoStack.pop(),this.logger.log(this,"Undoing",t),this.handleCommand(t,t.undo,function(t,n){e.redoStack.push(t)}),t=this.undoStack[this.undoStack.length-1]},e.prototype.redoFollowingSystemCommands=function(){var e=this,t=this.redoStack[this.redoStack.length-1];while(void 0!==t&&this.isPushToOffStack(t))this.redoStack.pop(),this.logger.log(this,"Redoing ",t),this.handleCommand(t,t.redo,function(t,n){e.pushToUndoStack(t)}),t=this.redoStack[this.redoStack.length-1]},e.prototype.createContext=function(e){return{root:e,modelChanged:this,modelFactory:this.modelFactory,duration:this.options.defaultDuration,logger:this.logger,syncer:this.syncer}},e.prototype.isPushToOffStack=function(e){return e instanceof d.SystemCommand},e.prototype.isPushToUndoStack=function(e){return!(e instanceof d.HiddenCommand)},e.prototype.isBlockUndo=function(e){return e instanceof d.ResetCommand},o([s.inject(a.TYPES.IModelFactory),r("design:type",Object)],e.prototype,"modelFactory",void 0),o([s.inject(a.TYPES.IViewerProvider),r("design:type",Object)],e.prototype,"viewerProvider",void 0),o([s.inject(a.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),o([s.inject(a.TYPES.AnimationFrameSyncer),r("design:type",u.AnimationFrameSyncer)],e.prototype,"syncer",void 0),o([s.inject(a.TYPES.CommandStackOptions),r("design:type",Object)],e.prototype,"options",void 0),o([s.postConstruct(),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"initialize",null),e=o([s.injectable()],e),e}();function p(e){return{main:i({},e.main),hidden:i({},e.hidden),popup:i({},e.popup)}}t.CommandStack=h},"168d":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("3864"),c=n("d8f5"),l=n("e1c6"),u=n("6923"),d=function(e){function t(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.kind,e)}),n}return i(t,e),Object.defineProperty(t.prototype,"defaultKind",{get:function(){return c.PolylineEdgeRouter.KIND},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t||this.defaultKind)},t=o([l.injectable(),s(0,l.multiInject(u.TYPES.IEdgeRouter)),r("design:paramtypes",[Array])],t),t}(a.InstanceRegistry);t.EdgeRouterRegistry=d},1817:function(e,t,n){"use strict";var i=n("c23f"),o=n.n(i);o.a},1848:function(e,t,n){"use strict";var i=n("98ab"),o=n.n(i);o.a},1963:function(e,t,n){},1978:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("9757"),c=n("3a92"),l=n("6923"),u=n("e1c6");function d(e){return e instanceof c.SChildElement&&e.hasFeature(t.deletableFeature)}t.deletableFeature=Symbol("deletableFeature"),t.isDeletable=d;var h=function(){function e(t){this.elementIds=t,this.kind=e.KIND}return e.KIND="delete",e}();t.DeleteElementAction=h;var p=function(){function e(){}return e}();t.ResolvedDelete=p;var f=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.resolvedDeletes=[],n}return i(t,e),t.prototype.execute=function(e){for(var t=e.root.index,n=0,i=this.action.elementIds;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("393a"),r=n("9964"),s=n("3623"),a=n("e1c6"),c=function(){function e(){}return e.prototype.render=function(e,t){var n=s.findParentByFeature(e,r.isExpandable),i=void 0!==n&&n.expanded?"M 1,5 L 8,12 L 15,5 Z":"M 1,8 L 8,15 L 8,1 Z";return o.svg("g",{"class-sprotty-button":"{true}","class-enabled":"{button.enabled}"},o.svg("rect",{x:0,y:0,width:16,height:16,opacity:0}),o.svg("path",{d:i}))},e=i([a.injectable()],e),e}();t.ExpandButtonView=c},"19f2":function(e,t,n){"use strict";var i=n("8ac3"),o=n.n(i);o.a},"19fc":function(e,t,n){"use strict";(function(e){n("7f7f"),n("6762"),n("2fdb"),n("6b54"),n("a481");var i=n("448a"),o=n.n(i),r=(n("f559"),n("7514"),n("3156")),s=n.n(r),a=(n("ac6a"),n("cadf"),n("f400"),n("e325")),c=n("1ad9"),l=n.n(c),u=(n("c862"),n("e00b")),d=n("2f62"),h=n("7cca"),p=n("b12a"),f=n("be3b"),m=n("7173");t["a"]={name:"DocumentationViewer",props:{forPrinting:{type:Boolean,default:!1}},components:{FigureTimeline:m["a"],HistogramViewer:u["a"]},data:function(){return{content:[],tables:[],images:[],loadingImages:[],figures:[],rawDocumentation:[],DOCUMENTATION_TYPES:h["l"],links:new Map,tableCounter:0,referenceCounter:0,viewport:null,needUpdates:!1,visible:!1,waitHeight:320}},computed:s()({},Object(d["c"])("data",["documentationTrees","documentationContent"]),Object(d["c"])("view",["documentationView","documentationSelected","documentationCache","tableFontSize"]),{tree:function(){var e=this;return this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree}}),methods:s()({},Object(d["b"])("view",["setDocumentation"]),{getId:function(e){return this.forPrinting?"".concat(e,"-fp"):e},getFormatter:function(e,t){var n=t.numberFormat;switch(n||(n="%f"),e){case h["H"].TEXT:case h["H"].VALUE:case h["H"].BOOLEAN:return"plaintext";case h["H"].NUMBER:return function(e){return e.getValue()&&""!==e.getValue()?l()(n,e.getValue()):""};default:return"plaintext"}},formatColumns:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.numberFormat,o=function e(n,o){var r="".concat(o||"").concat(n.id);return s()({title:n.title,field:r,headerVertical:n.headerVertical,frozen:n.frozen},n.sorter&&{sorter:n.sorter},n.hozAlign&&{hozAlign:n.hozAlign},n.formatter&&{formatter:n.formatter},!n.formatter&&n.type&&{formatter:t.getFormatter(n.type,{numberFormat:n.numberFormat||i})},n.columns&&n.columns.length>0&&{columns:n.columns.map(function(t){return e(t,r)})})};return e.map(function(e){return s()({},o(e))})},selectElement:function(e){var t;t=e.startsWith(".")?document.querySelector(e):document.getElementById(this.getId(e)),t&&(t.scrollIntoView({behavior:"smooth"}),t.classList.add("dv-selected"))},getModelCode:function(e){return e?e.replaceAll("\n","
").replaceAll(" ",''):""},fontSizeChangeListener:function(e){"table"===e&&(this.tables.length>0&&this.tables.forEach(function(e){e.instance&&e.instance.redraw(!0)}),this.forPrinting&&(this.visible=!0,this.build()))},getLinkedText:function(e){var t=this;if(e){var n=[];return o()(e.matchAll(/LINK\/(?[^/]*)\/(?[^/]*)\//g)).forEach(function(e){var i,o=t.documentationContent.get(e[2]);o&&(o.type===h["l"].REFERENCE?i="[".concat(o.id,"]"):o.type===h["l"].TABLE&&(i="<".concat(o.id).concat(++t.tableCounter,">")),o.index=++t.referenceCounter,n.push({what:e[0],with:'').concat(o.index,"")}),t.links.set(e[2],o))}),n.length>0&&n.forEach(function(t){e=e.replace(t.what,t.with)}),e}return e},getImage:function(t,n){var i=this,o=document.getElementById("resimg-".concat(this.getId(t)));if(o)if(this.documentationCache.has(t)){var r=this.documentationCache.get(t);null!==r?o.src=this.documentationCache.get(t):o.style.display="none"}else f["a"].get("".concat("").concat("/modeler").concat(n),{responseType:"arraybuffer"}).then(function(n){var r=n.data;r&&r.byteLength>0?(o.src="data:image/png;base64,".concat(e.from(r,"binary").toString("base64")),i.documentationCache.set(t,o.src)):(o.style.display="none",i.documentationCache.set(t,null))})},getFigure:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=document.getElementById("figimg-".concat(this.documentationView,"-").concat(this.getId(e)));if(o){var r=this.documentationContent.get(e),a="".concat(t.observationId,"/").concat(n);if(r.figure.timeString=i,""!==o.src&&(this.waitHeight=o.clientHeight),this.documentationCache.has(a))o.src=this.documentationCache.get(a).src,r.figure.colormap=this.documentationCache.get(a).colormap;else if(!this.loadingImages.includes(e)){this.loadingImages.push(e),o.src="";var c=this;f["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:s()({format:h["q"].TYPE_RASTER,viewport:c.viewport},-1!==n&&{locator:"T1(1){time=".concat(n,"}")}),responseType:"blob"}).then(function(i){var l=c.loadingImages.indexOf(e);if(-1!==l&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),i){var u=new FileReader,d={src:null,colormap:null};u.readAsDataURL(i.data),u.onload=function(){o.src=u.result,d.src=u.result},f["a"].get("".concat("").concat("/modeler").concat(t.baseUrl),{params:s()({format:h["q"].TYPE_COLORMAP},-1!==n&&{locator:"T1(1){time=".concat(n,"}")})}).then(function(e){e&&e.data&&(r.figure.colormap=Object(p["i"])(e.data),d.colormap=r.figure.colormap),c.documentationCache.set(a,d)}).catch(function(e){console.error(e),c.documentationCache.set(a,d)})}}).catch(function(t){var n=c.loadingImages.indexOf(e);-1!==n&&c.loadingImages.splice(c.loadingImages.indexOf(e),1),console.error(t)})}}},tableCopy:function(e){var t=this.tables.find(function(t){return t.id===e});t?t.instance.copyToClipboard("all"):console.warn("table not found")},tableDownload:function(e){var t=this.tables.find(function(t){return t.id===e});t?t.instance.download("xlsx","".concat(t.name,".xlsx")):console.warn("table not found")},updateThings:function(){var e=this;if(this.visible&&this.needUpdates){console.debug("Update things");var t=this;this.$nextTick(function(){e.tables.forEach(function(e){var n=document.querySelector("#".concat(t.getId(e.id),"-table"));n&&(e.instance=new a["a"]("#".concat(t.getId(e.id),"-table"),e.tabulator))}),e.images.forEach(function(t){e.getImage(t.id,t.url)}),e.figures.forEach(function(t){e.getFigure(t.id,t.instance,t.time,t.timeString)}),e.needUpdates=!1})}},clearCache:function(){this.documentationCache.clear(),this.needUpdates=!0},changeTime:function(e,t){var n=this.figures.find(function(e){return e.id===t});n&&(n.time=e.time,this.getFigure(n.id,n.instance,n.time,e.timeString))},build:function(){var e=this;this.rawDocumentation.splice(0,this.rawDocumentation.length),this.content.splice(0,this.content.length),this.tables.splice(0,this.tables.length),this.images.splice(0,this.images.length),this.figures.splice(0,this.figures.length),this.tree.forEach(function(t){Object(p["g"])(t,"children").forEach(function(t){e.rawDocumentation.push(t)})});var t=document.querySelectorAll(".dv-figure-".concat(this.forPrinting?"print":"display"));t.forEach(function(e){e.setAttribute("src","")}),this.needUpdates=!0;var n=this;this.rawDocumentation.forEach(function(e){var t=n.documentationContent.get(e.id);switch(t.bodyText&&(t.bodyText=n.getLinkedText(t.bodyText)),n.content.push(t),e.type){case h["l"].PARAGRAPH:break;case h["l"].RESOURCE:n.images.push({id:e.id,url:t.resource.spaceDescriptionUrl});break;case h["l"].SECTION:break;case h["l"].TABLE:n.tables.push({id:t.id,name:t.bodyText.replaceAll(" ","_").toLowerCase(),tabulator:{clipboard:"copy",printAsHtml:!0,data:t.table.rows,columns:n.formatColumns(t.table.columns,s()({},t.table.numberFormat&&{numberFormat:t.table.numberFormat})),clipboardCopied:function(){n.$q.notify({message:n.$t("messages.tableCopied"),type:"info",icon:"mdi-information",timeout:1e3})}}});break;case h["l"].FIGURE:n.$set(t.figure,"colormap",null),n.$set(t.figure,"timeString",""),n.figures.push({id:t.id,instance:t.figure,time:-1,timeString:""});break;default:break}}),this.updateThings()}}),watch:{tree:function(){this.build()},documentationSelected:function(e){Array.prototype.forEach.call(document.getElementsByClassName("dv-selected"),function(e){e.classList.remove("dv-selected")}),null!==e&&this.selectElement(e)}},mounted:function(){this.viewport=Math.min(document.body.clientWidth,640),this.$eventBus.$on(h["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener),this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.$eventBus.$on(h["h"].REFRESH_DOCUMENTATION,this.clearCache))},activated:function(){this.visible=!0,this.updateThings()},deactivated:function(){this.visible=!1},updated:function(){var e=this;this.forPrinting||(null!==this.documentationSelected&&this.selectElement(this.documentationSelected),this.links.size>0&&(this.links.forEach(function(t,n){document.querySelectorAll(".link-".concat(n)).forEach(function(n){n.onclick=function(){e.setDocumentation({id:t.id,view:h["m"][t.type]})}})}),this.links.clear(),this.tableCounter=0,this.referenceCounter=0))},beforeDestroy:function(){this.forPrinting||this.$eventBus.$off(h["h"].REFRESH_DOCUMENTATION,this.clearCache),this.$eventBus.$off(h["h"].FONT_SIZE_CHANGE,this.fontSizeChangeListener)}}}).call(this,n("b639").Buffer)},"1ad9":function(e,t,n){var i=n("3022"),o=function(e,t,n,i){var o,r,s=[],a=0;while(o=t.exec(e)){if(r=e.slice(a,t.lastIndex-o[0].length),r.length&&s.push(r),n){var c=n.apply(i,o.slice(1).concat(s.length));"undefined"!=typeof c&&("%"===c.specifier?s.push("%"):s.push(c))}a=t.lastIndex}return r=e.slice(a),r.length&&s.push(r),s},r=function(e){this._mapped=!1,this._format=e,this._tokens=o(e,this._re,this._parseDelim,this)};r.prototype._re=/\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([\%bscdeEfFgGioOuxX])/g,r.prototype._parseDelim=function(e,t,n,i,o,r,s){return e&&(this._mapped=!0),{mapping:e,intmapping:t,flags:n,_minWidth:i,period:o,_precision:r,specifier:s}},r.prototype._specifiers={b:{base:2,isInt:!0},o:{base:8,isInt:!0},x:{base:16,isInt:!0},X:{extend:["x"],toUpper:!0},d:{base:10,isInt:!0},i:{extend:["d"]},u:{extend:["d"],isUnsigned:!0},c:{setArg:function(e){if(!isNaN(e.arg)){var t=parseInt(e.arg);if(t<0||t>127)throw new Error("invalid character code passed to %c in printf");e.arg=isNaN(t)?""+t:String.fromCharCode(t)}}},s:{setMaxWidth:function(e){e.maxWidth="."==e.period?e.precision:-1}},e:{isDouble:!0,doubleNotation:"e"},E:{extend:["e"],toUpper:!0},f:{isDouble:!0,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:!0,doubleNotation:"g"},G:{extend:["g"],toUpper:!0},O:{isObject:!0}},r.prototype.format=function(e){if(this._mapped&&"object"!=typeof e)throw new Error("format requires a mapping");for(var t,n="",i=0,o=0;o=arguments.length)throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");t.arg=arguments[i++]}if(!t.compiled){t.compiled=!0,t.sign="",t.zeroPad=!1,t.rightJustify=!1,t.alternative=!1;for(var l={},u=t.flags.length;u--;){var d=t.flags.charAt(u);switch(l[d]=!0,d){case" ":t.sign=" ";break;case"+":t.sign="+";break;case"0":t.zeroPad=!l["-"];break;case"-":t.rightJustify=!0,t.zeroPad=!1;break;case"#":t.alternative=!0;break;default:throw Error("bad formatting flag '"+t.flags.charAt(u)+"'")}}t.minWidth=t._minWidth?parseInt(t._minWidth):0,t.maxWidth=-1,t.toUpper=!1,t.isUnsigned=!1,t.isInt=!1,t.isDouble=!1,t.isObject=!1,t.precision=1,"."==t.period&&(t._precision?t.precision=parseInt(t._precision):t.precision=0);var h=this._specifiers[t.specifier];if("undefined"==typeof h)throw new Error("unexpected specifier '"+t.specifier+"'");if(h.extend){var p=this._specifiers[h.extend];for(var f in p)h[f]=p[f];delete h.extend}for(var m in h)t[m]=h[m]}if("function"==typeof t.setArg&&t.setArg(t),"function"==typeof t.setMaxWidth&&t.setMaxWidth(t),"*"==t._minWidth){if(this._mapped)throw new Error("* width not supported in mapped formats");if(t.minWidth=parseInt(arguments[i++]),isNaN(t.minWidth))throw new Error("the argument for * width at position "+i+" is not a number in "+this._format);t.minWidth<0&&(t.rightJustify=!0,t.minWidth=-t.minWidth)}if("*"==t._precision&&"."==t.period){if(this._mapped)throw new Error("* precision not supported in mapped formats");if(t.precision=parseInt(arguments[i++]),isNaN(t.precision))throw Error("the argument for * precision at position "+i+" is not a number in "+this._format);t.precision<0&&(t.precision=1,t.period="")}t.isInt?("."==t.period&&(t.zeroPad=!1),this.formatInt(t)):t.isDouble?("."!=t.period&&(t.precision=6),this.formatDouble(t)):t.isObject&&this.formatObject(t),this.fitField(t),n+=""+t.arg}return n},r.prototype._zeros10="0000000000",r.prototype._spaces10=" ",r.prototype.formatInt=function(e){var t=parseInt(e.arg);if(!isFinite(t)){if("number"!=typeof e.arg)throw new Error("format argument '"+e.arg+"' not an integer; parseInt returned "+t);t=0}t<0&&(e.isUnsigned||10!=e.base)&&(t=4294967295+t+1),t<0?(e.arg=(-t).toString(e.base),this.zeroPad(e),e.arg="-"+e.arg):(e.arg=t.toString(e.base),t||e.precision?this.zeroPad(e):e.arg="",e.sign&&(e.arg=e.sign+e.arg)),16==e.base&&(e.alternative&&(e.arg="0x"+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()),8==e.base&&e.alternative&&"0"!=e.arg.charAt(0)&&(e.arg="0"+e.arg)},r.prototype.formatDouble=function(e){var t=parseFloat(e.arg);if(!isFinite(t)){if("number"!=typeof e.arg)throw new Error("format argument '"+e.arg+"' not a float; parseFloat returned "+t);t=0}switch(e.doubleNotation){case"e":e.arg=t.toExponential(e.precision);break;case"f":e.arg=t.toFixed(e.precision);break;case"g":Math.abs(t)<1e-4?e.arg=t.toExponential(e.precision>0?e.precision-1:e.precision):e.arg=t.toPrecision(e.precision),e.alternative||(e.arg=e.arg.replace(/(\..*[^0])0*e/,"$1e"),e.arg=e.arg.replace(/\.0*e/,"e").replace(/\.0$/,""));break;default:throw new Error("unexpected double notation '"+e.doubleNotation+"'")}e.arg=e.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1"),e.alternative&&(e.arg=e.arg.replace(/^(\d+)$/,"$1."),e.arg=e.arg.replace(/^(\d+)e/,"$1.e")),t>=0&&e.sign&&(e.arg=e.sign+e.arg),e.arg=e.toUpper?e.arg.toUpperCase():e.arg.toLowerCase()},r.prototype.formatObject=function(e){var t="."===e.period?e.precision:null;e.arg=i.inspect(e.arg,{showHidden:!e.alternative,depth:t,colors:e.sign,compact:!0})},r.prototype.zeroPad=function(e,t){t=2==arguments.length?t:e.precision;var n=!1;"string"!=typeof e.arg&&(e.arg=""+e.arg),"-"===e.arg.substr(0,1)&&(n=!0,e.arg=e.arg.substr(1));var i=t-10;while(e.arg.length=0&&e.arg.length>e.maxWidth&&(e.arg=e.arg.substring(0,e.maxWidth)),e.zeroPad?this.zeroPad(e,e.minWidth):this.spacePad(e)},r.prototype.spacePad=function(e,t){t=2==arguments.length?t:e.minWidth,"string"!=typeof e.arg&&(e.arg=""+e.arg);var n=t-10;while(e.arg.length1?arguments[1]:void 0,g=void 0!==m,v=0,b=u(h);if(g&&(m=i(m,f>2?arguments[2]:void 0,2)),void 0==b||p==Array&&a(b))for(t=c(h.length),n=new p(t);t>v;v++)l(n,v,g?m(h[v],v):h[v]);else for(d=b.call(h),n=new p;!(o=d.next()).done;v++)l(n,v,g?s(d,m,[o.value,v],!0):o.value);return n.length=v,n}})},"1cc1":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("1978"),l=n("4c18"),u=function(){function e(e){void 0===e&&(e=[]),this.menuProviders=e}return e.prototype.getItems=function(e,t){var n=this.menuProviders.map(function(n){return n.getItems(e,t)});return Promise.all(n).then(this.flattenAndRestructure)},e.prototype.flattenAndRestructure=function(e){for(var t=e.reduce(function(e,t){return void 0!==t?e.concat(t):e},[]),n=t.filter(function(e){return e.parentId}),i=function(e){if(e.parentId){for(var n=e.parentId.split("."),i=void 0,o=t,r=function(e){i=o.find(function(t){return e===t.id}),i&&i.children&&(o=i.children)},s=0,a=n;s0}}])},e=i([s.injectable()],e),e}();t.DeleteContextMenuItemProvider=d},"1cd9":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("4c18"),u=n("510b"),d=n("3a92"),h=n("1417"),p=n("b669"),f=n("7faf"),m=n("5d19"),g=n("5eb6"),v=n("e4f0"),b=n("6923"),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){return p.matchesKeystroke(t,"KeyE","ctrlCmd","shift")?[new _]:[]},t=o([a.injectable()],t),t}(h.KeyListener);t.ExportSvgKeyListener=y;var _=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(u.generateRequestId())},e.KIND="requestExportSvg",e}();t.RequestExportSvgAction=_;var M=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){if(f.isExportable(e.root)){var t=e.modelFactory.createRoot(e.root);if(f.isExportable(t))return g.isViewport(t)&&(t.zoom=1,t.scroll={x:0,y:0}),t.index.all().forEach(function(e){l.isSelectable(e)&&e.selected&&(e.selected=!1),v.isHoverable(e)&&e.hoverFeedback&&(e.hoverFeedback=!1)}),{model:t,modelChanged:!0,cause:this.action}}return{model:e.root,modelChanged:!1}},t.KIND=_.KIND,t=o([s(0,a.inject(b.TYPES.Action)),r("design:paramtypes",[_])],t),t}(c.HiddenCommand);t.ExportSvgCommand=M;var w=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof d.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){this.root&&void 0!==e&&e.kind===_.KIND&&this.svgExporter.export(this.root,e)},o([a.inject(b.TYPES.SvgExporter),r("design:type",m.SvgExporter)],e.prototype,"svgExporter",void 0),e=o([a.injectable()],e),e}();t.ExportSvgPostprocessor=w},"1d39":function(e,t,n){"use strict";var i=n("1963"),o=n.n(i);o.a},"1e19":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("ed4f"),s=n("c444"),a=n("cf98"),c=n("fe37"),l=n("842c"),u=new i.ContainerModule(function(e,t,n){l.configureCommand({bind:e,isBound:n},r.CenterCommand),l.configureCommand({bind:e,isBound:n},r.FitToScreenCommand),l.configureCommand({bind:e,isBound:n},s.SetViewportCommand),l.configureCommand({bind:e,isBound:n},s.GetViewportCommand),e(o.TYPES.KeyListener).to(r.CenterKeyboardListener),e(o.TYPES.MouseListener).to(a.ScrollMouseListener),e(o.TYPES.MouseListener).to(c.ZoomMouseListener)});t.default=u},"1e31":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("9d6c"),s=new i.ContainerModule(function(e){e(r.EdgeLayoutPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(r.EdgeLayoutPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(r.EdgeLayoutPostprocessor)});t.default=s},"1e94":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.of=function(t,n){var i=new e;return i.bindings=t,i.middleware=n,i},e}();t.ContainerSnapshot=i},"1f0f":function(e,t,n){},"1f66":function(e,t,n){},"1f89":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.openFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.openFeature=Symbol("openFeature"),t.isOpenable=i},"1fac":function(e,t,n){"use strict";var i=n("e5a7"),o=n.n(i);o.a},2:function(e,t){},"218d":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("393a"),s=n("47b7"),a=n("8e97"),c=n("dd02"),l=n("e1c6"),u=function(){function e(){}return e.prototype.render=function(e,t){var n="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return r.svg("svg",null,r.svg("g",{transform:n},t.renderChildren(e)))},e=o([l.injectable()],e),e}();t.SvgViewportView=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var n=this.getRadius(e);return r.svg("g",null,r.svg("circle",{"class-sprotty-node":e instanceof s.SNode,"class-sprotty-port":e instanceof s.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,r:n,cx:n,cy:n}),t.renderChildren(e))}},t.prototype.getRadius=function(e){var t=Math.min(e.size.width,e.size.height);return t>0?t/2:0},t=o([l.injectable()],t),t}(a.ShapeView);t.CircularNodeView=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t))return r.svg("g",null,r.svg("rect",{"class-sprotty-node":e instanceof s.SNode,"class-sprotty-port":e instanceof s.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:Math.max(e.size.width,0),height:Math.max(e.size.height,0)}),t.renderChildren(e))},t=o([l.injectable()],t),t}(a.ShapeView);t.RectangularNodeView=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(this.isVisible(e,t)){var n=new c.Diamond({height:Math.max(e.size.height,0),width:Math.max(e.size.width,0),x:0,y:0}),i=f(n.topPoint)+" "+f(n.rightPoint)+" "+f(n.bottomPoint)+" "+f(n.leftPoint);return r.svg("g",null,r.svg("polygon",{"class-sprotty-node":e instanceof s.SNode,"class-sprotty-port":e instanceof s.SPort,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,points:i}),t.renderChildren(e))}},t=o([l.injectable()],t),t}(a.ShapeView);function f(e){return e.x+","+e.y}t.DiamondNodeView=p;var m=function(){function e(){}return e.prototype.render=function(e,t){return r.svg("g",null)},e=o([l.injectable()],e),e}();t.EmptyGroupView=m},2196:function(e,t,n){},"21a6":function(e,t,n){(function(n){var i,o,r;(function(n,s){o=[],i=s,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r)})(0,function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){a(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var a=s.URL||s.webkitURL,c=document.createElement("a");t=t||e.name||"download",c.download=t,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?r(c):o(c.href)?i(e,t,n):r(c,c.target="_blank")):(c.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){r(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,s){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),n);else if(o(e))i(e,n,s);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){r(a)})}}:function(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return i(e,t,n);var r="application/octet-stream"===e.type,a=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&a)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var u=s.URL||s.webkitURL,d=u.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});s.saveAs=a.saveAs=a,e.exports=a})}).call(this,n("c8ba"))},"232d":function(e,t,n){},"23a0":function(e,t,n){"use strict";var i=n("79d7"),o=n.n(i);o.a},2590:function(e,t,n){"use strict";var i=n("1288"),o=n.n(i);o.a},"26ad":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("3f0a"),c=n("6923"),l=n("5d19"),u=n("3a92"),d=function(){function e(){}return e.prototype.initialize=function(e){e.register(a.RequestModelAction.KIND,this),e.register(l.ExportSvgAction.KIND,this)},o([s.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),o([s.inject(c.TYPES.ViewerOptions),r("design:type",Object)],e.prototype,"viewerOptions",void 0),e=o([s.injectable()],e),e}();t.ModelSource=d;var h=function(){function e(){}return e.prototype.apply=function(e,t){var n=new u.SModelIndex;n.add(e);for(var i=0,o=t.bounds;i=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("393a"),a=n("dd7b"),c=n("6af2"),l=n("ff70"),u=n("9016"),d=n("6907"),h=n("f923"),p=n("e1c6"),f=n("6923"),m=n("fba3"),g=n("33b2"),v=n("e45b"),b=n("8d53"),y=n("302f"),_=function(){function e(e,t,n){this.viewRegistry=e,this.targetKind=t,this.postprocessors=n}return e.prototype.decorate=function(e,t){return b.isThunk(e)?e:this.postprocessors.reduce(function(e,n){return n.decorate(e,t)},e)},e.prototype.renderElement=function(e,t){var n=this.viewRegistry.get(e.type),i=n.render(e,this,t);return i?this.decorate(i,e):void 0},e.prototype.renderChildren=function(e,t){var n=this;return e.children.map(function(e){return n.renderElement(e,t)}).filter(function(e){return void 0!==e})},e.prototype.postUpdate=function(e){this.postprocessors.forEach(function(t){return t.postUpdate(e)})},e}();t.ModelRenderer=_;var M=function(){function e(){this.patcher=a.init(this.createModules())}return e.prototype.createModules=function(){return[c.propsModule,l.attributesModule,h.classModule,u.styleModule,d.eventListenersModule]},e=i([p.injectable(),o("design:paramtypes",[])],e),e}();t.PatcherProvider=M;var w=function(){function e(e,t,n){var i=this;this.onWindowResize=function(e){var t=document.getElementById(i.options.baseDiv);if(null!==t){var n=i.getBoundsInPage(t);i.actiondispatcher.dispatch(new g.InitializeCanvasBoundsAction(n))}},this.renderer=e("main",n),this.patcher=t.patcher}return e.prototype.update=function(e,t){var n=this;this.logger.log(this,"rendering",e);var i=s.html("div",{id:this.options.baseDiv},this.renderer.renderElement(e));if(void 0!==this.lastVDOM){var o=this.hasFocus();v.copyClassesFromVNode(this.lastVDOM,i),this.lastVDOM=this.patcher.call(this,this.lastVDOM,i),this.restoreFocus(o)}else if("undefined"!==typeof document){var r=document.getElementById(this.options.baseDiv);null!==r?("undefined"!==typeof window&&window.addEventListener("resize",function(){n.onWindowResize(i)}),v.copyClassesFromElement(r,i),v.setClass(i,this.options.baseClass,!0),this.lastVDOM=this.patcher.call(this,r,i)):this.logger.error(this,"element not in DOM:",this.options.baseDiv)}this.renderer.postUpdate(t)},e.prototype.hasFocus=function(){if("undefined"!==typeof document&&document.activeElement&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var e=this.lastVDOM.children[0];if("object"===typeof e){var t=e.elm;return document.activeElement===t}}return!1},e.prototype.restoreFocus=function(e){if(e&&this.lastVDOM.children&&this.lastVDOM.children.length>0){var t=this.lastVDOM.children[0];if("object"===typeof t){var n=t.elm;n&&"function"===typeof n.focus&&n.focus()}}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),n=m.getWindowScroll();return{x:t.left+n.x,y:t.top+n.y,width:t.width,height:t.height}},i([p.inject(f.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"options",void 0),i([p.inject(f.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),i([p.inject(f.TYPES.IActionDispatcher),o("design:type",Object)],e.prototype,"actiondispatcher",void 0),e=i([p.injectable(),r(0,p.inject(f.TYPES.ModelRendererFactory)),r(1,p.inject(f.TYPES.PatcherProvider)),r(2,p.multiInject(f.TYPES.IVNodePostprocessor)),r(2,p.optional()),o("design:paramtypes",[Function,M,Array])],e),e}();t.ModelViewer=w;var C=function(){function e(e,t,n){this.hiddenRenderer=e("hidden",n),this.patcher=t.patcher}return e.prototype.update=function(e,t){var n;if(this.logger.log(this,"rendering hidden"),e.type===y.EMPTY_ROOT.type)n=s.html("div",{id:this.options.hiddenDiv});else{var i=this.hiddenRenderer.renderElement(e);i&&v.setAttr(i,"opacity",0),n=s.html("div",{id:this.options.hiddenDiv},i)}if(void 0!==this.lastHiddenVDOM)v.copyClassesFromVNode(this.lastHiddenVDOM,n),this.lastHiddenVDOM=this.patcher.call(this,this.lastHiddenVDOM,n);else{var o=document.getElementById(this.options.hiddenDiv);null===o?(o=document.createElement("div"),document.body.appendChild(o)):v.copyClassesFromElement(o,n),v.setClass(n,this.options.baseClass,!0),v.setClass(n,this.options.hiddenClass,!0),this.lastHiddenVDOM=this.patcher.call(this,o,n)}this.hiddenRenderer.postUpdate(t)},i([p.inject(f.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"options",void 0),i([p.inject(f.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),e=i([p.injectable(),r(0,p.inject(f.TYPES.ModelRendererFactory)),r(1,p.inject(f.TYPES.PatcherProvider)),r(2,p.multiInject(f.TYPES.HiddenVNodePostprocessor)),r(2,p.optional()),o("design:paramtypes",[Function,M,Array])],e),e}();t.HiddenModelViewer=C;var S=function(){function e(e,t,n){this.modelRendererFactory=e,this.popupRenderer=this.modelRendererFactory("popup",n),this.patcher=t.patcher}return e.prototype.update=function(e,t){this.logger.log(this,"rendering popup",e);var n,i=e.type===y.EMPTY_ROOT.type;if(i)n=s.html("div",{id:this.options.popupDiv});else{var o=e.canvasBounds,r={top:o.y+"px",left:o.x+"px"};n=s.html("div",{id:this.options.popupDiv,style:r},this.popupRenderer.renderElement(e))}if(void 0!==this.lastPopupVDOM)v.copyClassesFromVNode(this.lastPopupVDOM,n),v.setClass(n,this.options.popupClosedClass,i),this.lastPopupVDOM=this.patcher.call(this,this.lastPopupVDOM,n);else if("undefined"!==typeof document){var a=document.getElementById(this.options.popupDiv);null===a?(a=document.createElement("div"),document.body.appendChild(a)):v.copyClassesFromElement(a,n),v.setClass(n,this.options.popupClass,!0),v.setClass(n,this.options.popupClosedClass,i),this.lastPopupVDOM=this.patcher.call(this,a,n)}this.popupRenderer.postUpdate(t)},i([p.inject(f.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"options",void 0),i([p.inject(f.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),e=i([p.injectable(),r(0,p.inject(f.TYPES.ModelRendererFactory)),r(1,p.inject(f.TYPES.PatcherProvider)),r(2,p.multiInject(f.TYPES.PopupVNodePostprocessor)),r(2,p.optional()),o("design:paramtypes",[Function,M,Array])],e),e}();t.PopupModelViewer=S},"2b54":function(e,t,n){"use strict";var i=n("e7ed"),o=n.n(i);o.a},"2c63":function(e,t,n){e.exports=n("dc14")},"2cac":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e34e"),o=n("cf81"),r=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=r},"2cee":function(e,t,n){"use strict";n("6762"),n("2fdb");t["a"]={data:function(){return{ellipsed:[]}},methods:{tooltipIt:function(e,t){e.target.offsetWidth=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("9757"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.execute=function(e){var t=this.retrieveResult(e);return this.actionDispatcher.dispatch(t),{model:e.root,modelChanged:!1}},t.prototype.undo=function(e){return{model:e.root,modelChanged:!1}},t.prototype.redo=function(e){return{model:e.root,modelChanged:!1}},o([s.inject(a.TYPES.IActionDispatcher),r("design:type",Object)],t.prototype,"actionDispatcher",void 0),t=o([s.injectable()],t),t}(c.SystemCommand);t.ModelRequestCommand=l},3:function(e,t){},3022:function(e,t,n){(function(e){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},i=0;i=r)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}}),c=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),b(n)?i.showHidden=n:n&&t._extend(i,n),S(i.showHidden)&&(i.showHidden=!1),S(i.depth)&&(i.depth=2),S(i.colors)&&(i.colors=!1),S(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),d(i,e,i.depth)}function c(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function l(e,t){return e}function u(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function d(e,n,i){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(i,e);return w(o)||(o=d(e,o,i)),o}var r=h(e,n);if(r)return r;var s=Object.keys(n),a=u(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),L(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(n);if(0===s.length){if(T(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(A(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(L(n))return p(n)}var l,b="",y=!1,_=["{","}"];if(v(n)&&(y=!0,_=["[","]"]),T(n)){var M=n.name?": "+n.name:"";b=" [Function"+M+"]"}return A(n)&&(b=" "+RegExp.prototype.toString.call(n)),O(n)&&(b=" "+Date.prototype.toUTCString.call(n)),L(n)&&(b=" "+p(n)),0!==s.length||y&&0!=n.length?i<0?A(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=y?f(e,n,i,a,s):s.map(function(t){return m(e,n,i,a,t,y)}),e.seen.pop(),g(l,b,_)):_[0]+b+_[1]}function h(e,t){if(S(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return M(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,i,o){for(var r=[],s=0,a=t.length;s-1&&(a=r?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),S(s)){if(r&&o.match(/^\d+$/))return a;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function g(e,t,n){var i=e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function b(e){return"boolean"===typeof e}function y(e){return null===e}function _(e){return null==e}function M(e){return"number"===typeof e}function w(e){return"string"===typeof e}function C(e){return"symbol"===typeof e}function S(e){return void 0===e}function A(e){return E(e)&&"[object RegExp]"===R(e)}function E(e){return"object"===typeof e&&null!==e}function O(e){return E(e)&&"[object Date]"===R(e)}function L(e){return E(e)&&("[object Error]"===R(e)||e instanceof Error)}function T(e){return"function"===typeof e}function x(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function R(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(S(r)&&(r=Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.21.01",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API_LOGOUT:"/modeler/api/v2/users/log-out",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"}).NODE_DEBUG||""),n=n.toUpperCase(),!s[n])if(new RegExp("\\b"+n+"\\b","i").test(r)){var i=e.pid;s[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,i,e)}}else s[n]=function(){};return s[n]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=v,t.isBoolean=b,t.isNull=y,t.isNullOrUndefined=_,t.isNumber=M,t.isString=w,t.isSymbol=C,t.isUndefined=S,t.isRegExp=A,t.isObject=E,t.isDate=O,t.isError=L,t.isFunction=T,t.isPrimitive=x,t.isBuffer=n("d60a");var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),z[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=n("28a0"),t._extend=function(e,t){if(!t||!E(t))return e;var n=Object.keys(t),i=n.length;while(i--)e[n[i]]=t[n[i]];return e};var I="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function B(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3864"),u=n("3a92"),d=function(){function e(){}return e.prototype.createElement=function(e,t){var n;if(this.registry.hasKey(e.type)){var i=this.registry.get(e.type,void 0);if(!(i instanceof u.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");n=i}else n=new u.SChildElement;return this.initializeChild(n,e,t)},e.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof u.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=n}else t=new u.SModelRoot;return this.initializeRoot(t,e)},e.prototype.createSchema=function(e){var t=this,n={};for(var i in e)if(!this.isReserved(e,i)){var o=e[i];"function"!==typeof o&&(n[i]=o)}return e instanceof u.SParentElement&&(n["children"]=e.children.map(function(e){return t.createSchema(e)})),n},e.prototype.initializeElement=function(e,t){for(var n in t)if(!this.isReserved(e,n)){var i=t[n];"function"!==typeof i&&(e[n]=i)}return e},e.prototype.isReserved=function(e,t){if(["children","parent","index"].indexOf(t)>=0)return!0;var n=e;do{var i=Object.getOwnPropertyDescriptor(n,t);if(void 0!==i)return void 0!==i.get;n=Object.getPrototypeOf(n)}while(n);return!1},e.prototype.initializeParent=function(e,t){var n=this;return this.initializeElement(e,t),u.isParent(t)&&(e.children=t.children.map(function(t){return n.createElement(t,e)})),e},e.prototype.initializeChild=function(e,t,n){return this.initializeParent(e,t),void 0!==n&&(e.parent=n),e},e.prototype.initializeRoot=function(e,t){return this.initializeParent(e,t),e.index.add(e),e},o([a.inject(c.TYPES.SModelRegistry),r("design:type",h)],e.prototype,"registry",void 0),e=o([a.injectable()],e),e}();t.SModelFactory=d,t.EMPTY_ROOT=Object.freeze({type:"NONE",id:"EMPTY"});var h=function(e){function t(t){var n=e.call(this)||this;return t.forEach(function(e){var t=n.getDefaultFeatures(e.constr);if(!t&&e.features&&e.features.enable&&(t=[]),t){var i=p(t,e.features);n.register(e.type,function(){var t=new e.constr;return t.features=i,t})}else n.register(e.type,function(){return new e.constr})}),n}return i(t,e),t.prototype.getDefaultFeatures=function(e){var t=e;do{var n=t.DEFAULT_FEATURES;if(n)return n;t=Object.getPrototypeOf(t)}while(t)},t=o([a.injectable(),s(0,a.multiInject(c.TYPES.SModelElementRegistration)),s(0,a.optional()),r("design:paramtypes",[Array])],t),t}(l.FactoryRegistry);function p(e,t){var n=new Set(e);if(t&&t.enable)for(var i=0,o=t.enable;i= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("3864"),l=n("dd02"),u=n("66f9"),d=n("da84"),h=n("4b75"),p=n("ac2a"),f=function(e){function t(){var t=e.call(this)||this;return t.register(d.VBoxLayouter.KIND,new d.VBoxLayouter),t.register(h.HBoxLayouter.KIND,new h.HBoxLayouter),t.register(p.StackLayouter.KIND,new p.StackLayouter),t}return i(t,e),t}(c.InstanceRegistry);t.LayoutRegistry=f;var m=function(){function e(){}return e.prototype.layout=function(e){new g(e,this.layoutRegistry,this.logger).layout()},o([s.inject(a.TYPES.LayoutRegistry),r("design:type",f)],e.prototype,"layoutRegistry",void 0),o([s.inject(a.TYPES.ILogger),r("design:type",Object)],e.prototype,"logger",void 0),e=o([s.injectable()],e),e}();t.Layouter=m;var g=function(){function e(e,t,n){var i=this;this.element2boundsData=e,this.layoutRegistry=t,this.log=n,this.toBeLayouted=[],e.forEach(function(e,t){u.isLayoutContainer(t)&&i.toBeLayouted.push(t)})}return e.prototype.getBoundsData=function(e){var t=this.element2boundsData.get(e),n=e.bounds;return u.isLayoutContainer(e)&&this.toBeLayouted.indexOf(e)>=0&&(n=this.doLayout(e)),t||(t={bounds:n,boundsChanged:!1,alignmentChanged:!1},this.element2boundsData.set(e,t)),t},e.prototype.layout=function(){while(this.toBeLayouted.length>0){var e=this.toBeLayouted[0];this.doLayout(e)}},e.prototype.doLayout=function(e){var t=this.toBeLayouted.indexOf(e);t>=0&&this.toBeLayouted.splice(t,1);var n=this.layoutRegistry.get(e.layout);n&&n.layout(e,this);var i=this.element2boundsData.get(e);return void 0!==i&&void 0!==i.bounds?i.bounds:(this.log.error(e,"Layout failed"),l.EMPTY_BOUNDS)},e}();t.StatefulLayouter=g},"33b2":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("dd02"),u=n("3a92"),d=n("9757"),h=n("fba3"),p=function(){function e(){}return e.prototype.decorate=function(e,t){return t instanceof u.SModelRoot&&!l.isValidDimension(t.canvasBounds)&&(this.rootAndVnode=[t,e]),e},e.prototype.postUpdate=function(){if(void 0!==this.rootAndVnode){var e=this.rootAndVnode[1].elm,t=this.rootAndVnode[0].canvasBounds;if(void 0!==e){var n=this.getBoundsInPage(e);l.almostEquals(n.x,t.x)&&l.almostEquals(n.y,t.y)&&l.almostEquals(n.width,t.width)&&l.almostEquals(n.height,t.width)||this.actionDispatcher.dispatch(new f(n))}this.rootAndVnode=void 0}},e.prototype.getBoundsInPage=function(e){var t=e.getBoundingClientRect(),n=h.getWindowScroll();return{x:t.left+n.x,y:t.top+n.y,width:t.width,height:t.height}},o([a.inject(c.TYPES.IActionDispatcher),r("design:type",Object)],e.prototype,"actionDispatcher",void 0),e=o([a.injectable()],e),e}();t.CanvasBoundsInitializer=p;var f=function(){function e(t){this.newCanvasBounds=t,this.kind=e.KIND}return e.KIND="initializeCanvasBounds",e}();t.InitializeCanvasBoundsAction=f;var m=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.newCanvasBounds=this.action.newCanvasBounds,e.root.canvasBounds=this.newCanvasBounds,e.root},t.prototype.undo=function(e){return e.root},t.prototype.redo=function(e){return e.root},t.KIND=f.KIND,t=o([a.injectable(),s(0,a.inject(c.TYPES.Action)),r("design:paramtypes",[f])],t),t}(d.SystemCommand);t.InitializeCanvasBoundsCommand=m},"34eb":function(e,t,n){(function(i){function o(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function r(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var i="color: "+this.color;e.splice(1,0,i,"color: inherit");var o=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(r=o))}),e.splice(r,0,i)}}function s(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function c(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof i&&"env"in i&&(e=Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.21.01",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API_LOGOUT:"/modeler/api/v2/users/log-out",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"}).DEBUG),e}function l(){try{return window.localStorage}catch(e){}}t=e.exports=n("96fe"),t.log=s,t.formatArgs=r,t.save=a,t.load=c,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:l(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(c())}).call(this,n("4362"))},3585:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3a92"),r=n("dd02"),s=n("66f9"),a=n("1978"),c=n("4c18"),l=n("e4f0"),u=n("a0af"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.routingPoints=[],t}return i(t,e),Object.defineProperty(t.prototype,"source",{get:function(){return this.index.getById(this.sourceId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this.index.getById(this.targetId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.routingPoints.reduce(function(e,t){return r.combine(e,{x:t.x,y:t.y,width:0,height:0})},r.EMPTY_BOUNDS)},enumerable:!0,configurable:!0}),t}(o.SChildElement);function h(e){return e.hasFeature(t.connectableFeature)&&e.canConnect}function p(e,t){void 0===t&&(t=e.routingPoints);var n=f(t),i=e;while(i instanceof o.SChildElement){var r=i.parent;n=r.localToParent(n),i=r}return n}function f(e){for(var t={x:NaN,y:NaN,width:0,height:0},n=0,i=e;nt.x+t.width&&(t.width=o.x-t.x),o.yt.y+t.height&&(t.height=o.y-t.y))}return t}t.SRoutableElement=d,t.connectableFeature=Symbol("connectableFeature"),t.isConnectable=h,t.getAbsoluteRouteBounds=p,t.getRouteBounds=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.strokeWidth=0,t}return i(t,e),Object.defineProperty(t.prototype,"incomingEdges",{get:function(){return this.index.getIncomingEdges(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outgoingEdges",{get:function(){return this.index.getOutgoingEdges(this)},enumerable:!0,configurable:!0}),t.prototype.canConnect=function(e,t){return!0},t}(s.SShapeElement);t.SConnectableElement=m;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.editMode=!1,t.hoverFeedback=!1,t.selected=!1,t}return i(t,e),t.prototype.hasFeature=function(e){return-1!==t.DEFAULT_FEATURES.indexOf(e)},t.DEFAULT_FEATURES=[c.selectFeature,u.moveFeature,l.hoverFeedbackFeature],t}(o.SChildElement);t.SRoutingHandle=g;var v=function(e){function t(){var t=e.call(this)||this;return t.type="dangling-anchor",t.size={width:0,height:0},t}return i(t,e),t.DEFAULT_FEATURES=[a.deletableFeature],t}(m);t.SDanglingAnchor=v,t.edgeInProgressID="edge-in-progress",t.edgeInProgressTargetHandleID=t.edgeInProgressID+"-target-anchor"},"359b":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("393a"),r=n("e45b"),s=n("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){for(var n=o.html("div",null,t.renderChildren(e)),i=0,s=e.classes;i=0?e.type.substring(0,t):e.type}function a(e){if(!e.type)return"";var t=e.type.indexOf(":");return t>=0?e.type.substring(t+1):e.type}function c(e,t){if(e.id===t)return e;if(void 0!==e.children)for(var n=0,i=e.children;n=0;r--)e=i[r].parentToLocal(e)}return e}function h(e,t,n){var i=d(e,t,n),o=d({x:e.x+e.width,y:e.y+e.height},t,n);return{x:i.x,y:i.y,width:o.x-i.x,height:o.y-i.y}}t.registerModelElement=r,t.getBasicType=s,t.getSubType=a,t.findElement=c,t.findParent=l,t.findParentByFeature=u,t.translatePoint=d,t.translateBounds=h},3672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("842c"),s=n("be02"),a=n("064a"),c=n("3585"),l=n("218d"),u=n("1978"),d=n("cd26"),h=n("1254"),p=n("a5f4"),f=n("61d8");t.edgeEditModule=new i.ContainerModule(function(e,t,n){var i={bind:e,isBound:n};r.configureCommand(i,p.SwitchEditModeCommand),r.configureCommand(i,f.ReconnectCommand),r.configureCommand(i,u.DeleteElementCommand),a.configureModelElement(i,"dangling-anchor",c.SDanglingAnchor,l.EmptyGroupView)}),t.labelEditModule=new i.ContainerModule(function(e,t,n){e(o.TYPES.MouseListener).to(d.EditLabelMouseListener),e(o.TYPES.KeyListener).to(d.EditLabelKeyListener),r.configureCommand({bind:e,isBound:n},d.ApplyLabelEditCommand)}),t.labelEditUiModule=new i.ContainerModule(function(e,t,n){var i={bind:e,isBound:n};s.configureActionHandler(i,d.EditLabelAction.KIND,h.EditLabelActionHandler),e(h.EditLabelUI).toSelf().inSingletonScope(),e(o.TYPES.IUIExtension).toService(h.EditLabelUI)})},"36e4":function(e,t,n){},"37a9":function(e,t,n){"use strict";var i=n("ddfc"),o=n.n(i);o.a},3864:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e,t){var n=this.elements.get(e);return n?new n(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=i([o.injectable()],e),e}();t.ProviderRegistry=r;var s=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e,t){var n=this.elements.get(e);return n?n(t):this.missing(e,t)},e.prototype.missing=function(e,t){throw new Error("Unknown registry key: "+e)},e=i([o.injectable()],e),e}();t.FactoryRegistry=s;var a=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");if(this.hasKey(e))throw new Error("Key is already registered: "+e);this.elements.set(e,t)},e.prototype.deregister=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.hasKey=function(e){return this.elements.has(e)},e.prototype.get=function(e){var t=this.elements.get(e);return t||this.missing(e)},e.prototype.missing=function(e){throw new Error("Unknown registry key: "+e)},e=i([o.injectable()],e),e}();t.InstanceRegistry=a;var c=function(){function e(){this.elements=new Map}return e.prototype.register=function(e,t){if(void 0===e)throw new Error("Key is undefined");var n=this.elements.get(e);void 0!==n?n.push(t):this.elements.set(e,[t])},e.prototype.deregisterAll=function(e){if(void 0===e)throw new Error("Key is undefined");this.elements.delete(e)},e.prototype.get=function(e){var t=this.elements.get(e);return void 0!==t?t:[]},e=i([o.injectable()],e),e}();t.MultiInstanceRegistry=c},"38e8":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("66f9"),r=n("7d36"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t}return i(t,e),t.DEFAULT_FEATURES=[o.boundsFeature,o.layoutableChildFeature,r.fadeFeature],t}(o.SShapeElement);t.SButton=s},"393a":function(e,t,n){"use strict";var i="http://www.w3.org/2000/svg",o=["hook","on","style","class","props","attrs","dataset"],r=Array.prototype.slice;function s(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||null===e||void 0===e}function a(e,t,n,i){for(var o={ns:t},r=0,s=i.length;r0?u(c.slice(0,l),c.slice(l+1),e[c]):o[c]||u(n,c,e[c])}return o;function u(e,t,n){var i=o[e]||(o[e]={});i[t]=n}}function c(e,t,n,i,o,r){if(o.selector&&(i+=o.selector),o.classNames){var c=o.classNames;i=i+"."+(Array.isArray(c)?c.join("."):c.replace(/\s+/g,"."))}return{sel:i,data:a(o,e,t,n),children:r.map(function(e){return s(e)?{text:e}:e}),key:o.key}}function l(e,t,n,i,o,r){var s;if("function"===typeof i)s=i(o,r);else if(i&&"function"===typeof i.view)s=i.view(o,r);else{if(!i||"function"!==typeof i.render)throw"JSX tag must be either a string, a function or an object with 'view' or 'render' methods";s=i.render(o,r)}return s.key=o.key,s}function u(e,t,n){for(var i=t,o=e.length;i3||!Array.isArray(a))&&(a=r.call(arguments,2)),h(e,t||"props",n||o,i,s,a)}}e.exports={html:p(void 0),svg:p(i,"attrs"),JSX:p}},"3a7c":function(e,t,n){(function(e){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function i(e){return"boolean"===typeof e}function o(e){return null===e}function r(e){return null==e}function s(e){return"number"===typeof e}function a(e){return"string"===typeof e}function c(e){return"symbol"===typeof e}function l(e){return void 0===e}function u(e){return"[object RegExp]"===g(e)}function d(e){return"object"===typeof e&&null!==e}function h(e){return"[object Date]"===g(e)}function p(e){return"[object Error]"===g(e)||e instanceof Error}function f(e){return"function"===typeof e}function m(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function g(e){return Object.prototype.toString.call(e)}t.isArray=n,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=r,t.isNumber=s,t.isString=a,t.isSymbol=c,t.isUndefined=l,t.isRegExp=u,t.isObject=d,t.isDate=h,t.isError=p,t.isFunction=f,t.isPrimitive=m,t.isBuffer=e.isBuffer}).call(this,n("b639").Buffer)},"3a92":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("dd02"),r=n("e629"),s=function(){function e(){}return Object.defineProperty(e.prototype,"root",{get:function(){var e=this;while(e){if(e instanceof u)return e;e=e instanceof l?e.parent:void 0}throw new Error("Element has no root")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.root.index},enumerable:!0,configurable:!0}),e.prototype.hasFeature=function(e){return void 0!==this.features&&this.features.has(e)},e}();function a(e){var t=e.children;return void 0!==t&&t.constructor===Array}t.SModelElement=s,t.isParent=a;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.children=[],t}return i(t,e),t.prototype.add=function(e,t){var n=this.children;if(void 0===t)n.push(e);else{if(t<0||t>this.children.length)throw new Error("Child index "+t+" out of bounds (0.."+n.length+")");n.splice(t,0,e)}e.parent=this,this.index.add(e)},t.prototype.remove=function(e){var t=this.children,n=t.indexOf(e);if(n<0)throw new Error("No such child "+e.id);t.splice(n,1),delete e.parent,this.index.remove(e)},t.prototype.removeAll=function(e){var t=this,n=this.children;if(void 0!==e){for(var i=n.length-1;i>=0;i--)if(e(n[i])){var o=n.splice(i,1)[0];delete o.parent,this.index.remove(o)}}else n.forEach(function(e){delete e.parent,t.index.remove(e)}),n.splice(0,n.length)},t.prototype.move=function(e,t){var n=this.children,i=n.indexOf(e);if(-1===i)throw new Error("No such child "+e.id);if(t<0||t>n.length-1)throw new Error("Child index "+t+" out of bounds (0.."+n.length+")");n.splice(i,1),n.splice(t,0,e)},t.prototype.localToParent=function(e){return o.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t.prototype.parentToLocal=function(e){return o.isBounds(e)?e:{x:e.x,y:e.y,width:-1,height:-1}},t}(s);t.SParentElement=c;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(c);t.SChildElement=l;var u=function(e){function t(t){void 0===t&&(t=new p);var n=e.call(this)||this;return n.canvasBounds=o.EMPTY_BOUNDS,Object.defineProperty(n,"index",{value:t,writable:!1}),n}return i(t,e),t}(c);t.SModelRoot=u;var d="0123456789abcdefghijklmnopqrstuvwxyz";function h(e){void 0===e&&(e=8);for(var t="",n=0;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3a92"),u=n("9757"),d=n("3585"),h=function(){function e(t){this.elementIDs=t,this.kind=e.KIND}return e.KIND="bringToFront",e}();t.BringToFrontAction=h;var p=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.selected=[],n}return i(t,e),t.prototype.execute=function(e){var t=this,n=e.root;return this.action.elementIDs.forEach(function(e){var i=n.index.getById(e);i instanceof d.SRoutableElement&&(i.source&&t.addToSelection(i.source),i.target&&t.addToSelection(i.target)),i instanceof l.SChildElement&&t.addToSelection(i),t.includeConnectedEdges(i)}),this.redo(e)},t.prototype.includeConnectedEdges=function(e){var t=this;if(e instanceof d.SConnectableElement&&(e.incomingEdges.forEach(function(e){return t.addToSelection(e)}),e.outgoingEdges.forEach(function(e){return t.addToSelection(e)})),e instanceof l.SParentElement)for(var n=0,i=e.children;n=0;t--){var n=this.selected[t],i=n.element;i.parent.move(i,n.index)}return e.root},t.prototype.redo=function(e){for(var t=0;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("510b"),l=n("3a92"),u=n("6923"),d=n("0d7a"),h=n("e45b"),p=function(){function e(e){void 0===e&&(e=[]),this.mouseListeners=e}return e.prototype.register=function(e){this.mouseListeners.push(e)},e.prototype.deregister=function(e){var t=this.mouseListeners.indexOf(e);t>=0&&this.mouseListeners.splice(t,1)},e.prototype.getTargetElement=function(e,t){var n=t.target,i=e.index;while(n){if(n.id){var o=i.getById(this.domHelper.findSModelIdByDOMElement(n));if(void 0!==o)return o}n=n.parentNode}},e.prototype.handleEvent=function(e,t,n){var i=this;this.focusOnMouseEvent(e,t);var o=this.getTargetElement(t,n);if(o){var r=this.mouseListeners.map(function(t){return t[e].apply(t,[o,n])}).reduce(function(e,t){return e.concat(t)});if(r.length>0){n.preventDefault();for(var s=0,a=r;s=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},a=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,a)}c((i=i.apply(e,t||[])).next())})},c=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return c([e,t])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("510b"),l=n("9757"),u=n("6923"),d=n("33b2"),h=function(){function e(t,n){void 0===n&&(n=""),this.options=t,this.requestId=n,this.kind=e.KIND}return e.create=function(t){return new e(t,c.generateRequestId())},e.KIND="requestModel",e}();t.RequestModelAction=h;var p=function(){function e(t,n){void 0===n&&(n=""),this.newRoot=t,this.responseId=n,this.kind=e.KIND}return e.KIND="setModel",e}();t.SetModelAction=p;var f=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.oldRoot=e.modelFactory.createRoot(e.root),this.newRoot=e.modelFactory.createRoot(this.action.newRoot),this.newRoot},t.prototype.undo=function(e){return this.oldRoot},t.prototype.redo=function(e){return this.newRoot},Object.defineProperty(t.prototype,"blockUntil",{get:function(){return function(e){return e.kind===d.InitializeCanvasBoundsCommand.KIND}},enumerable:!0,configurable:!0}),t.KIND=p.KIND,t=o([a.injectable(),s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[p])],t),t}(l.ResetCommand);t.SetModelCommand=f},4047:function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},"429b":function(e,t,n){e.exports=n("faa1").EventEmitter},"42be":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("6923"),u=n("26ad"),d=function(){function e(){this.kind=h.KIND}return e}();t.CommitModelAction=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.newModel=e.modelFactory.createSchema(e.root),this.doCommit(this.newModel,e.root,!0)},t.prototype.doCommit=function(e,t,n){var i=this,o=this.modelSource.commitModel(e);return o instanceof Promise?o.then(function(e){return n&&(i.originalModel=e),t}):(n&&(this.originalModel=o),t)},t.prototype.undo=function(e){return this.doCommit(this.originalModel,e.root,!1)},t.prototype.redo=function(e){return this.doCommit(this.newModel,e.root,!1)},t.KIND="commitModel",o([a.inject(l.TYPES.ModelSource),r("design:type",u.ModelSource)],t.prototype,"modelSource",void 0),t=o([a.injectable(),s(0,a.inject(l.TYPES.Action)),r("design:paramtypes",[d])],t),t}(c.SystemCommand);t.CommitModelCommand=h},"42d6":function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("510b")),i(n("0fb6")),i(n("be02")),i(n("c661")),i(n("538c")),i(n("c146")),i(n("987d")),i(n("9757")),i(n("842c")),i(n("5e9c")),i(n("160b")),i(n("33b2")),i(n("3f0a")),i(n("302f")),i(n("3623")),i(n("3a92")),i(n("ddee")),i(n("1590")),i(n("6176")),i(n("4c95c")),i(n("1417")),i(n("3b4c")),i(n("8d53")),i(n("064a")),i(n("8794")),i(n("65d1")),i(n("29fa")),i(n("a190")),i(n("e45b")),i(n("6923"));var o=n("8122");t.defaultModule=o.default,i(n("42f7")),i(n("61bf")),i(n("320b")),i(n("66f9")),i(n("da84")),i(n("4b75")),i(n("ac2a")),i(n("8e97")),i(n("70d9")),i(n("38e8")),i(n("a406")),i(n("0a28")),i(n("80b5")),i(n("1cc1")),i(n("3c83")),i(n("1e31")),i(n("9d6c")),i(n("779b")),i(n("ac57")),i(n("ea38")),i(n("3672")),i(n("1978")),i(n("cd26")),i(n("1254")),i(n("a5f4")),i(n("cc26")),i(n("61d8")),i(n("4741")),i(n("9964")),i(n("19b5")),i(n("1cd9")),i(n("7faf")),i(n("5d19")),i(n("e7fa")),i(n("7d36")),i(n("f4cb")),i(n("e4f0")),i(n("7f73")),i(n("755f")),i(n("e576")),i(n("a0af")),i(n("559d")),i(n("af44")),i(n("e1cb")),i(n("b485")),i(n("1f89")),i(n("869e")),i(n("b7b8")),i(n("9a1f")),i(n("46cc")),i(n("3585")),i(n("ab71")),i(n("d8f5")),i(n("168d")),i(n("8d9d")),i(n("4c18")),i(n("bcbd")),i(n("c20e")),i(n("d084")),i(n("cf61")),i(n("ed4f")),i(n("5eb6")),i(n("cf98")),i(n("3b62")),i(n("c444")),i(n("fe37")),i(n("3ada"));var r=n("5530");t.graphModule=r.default;var s=n("72dd");t.boundsModule=s.default;var a=n("54f8");t.buttonModule=a.default;var c=n("d14a");t.commandPaletteModule=c.default;var l=n("5884");t.contextMenuModule=l.default;var u=n("7bae3");t.decorationModule=u.default;var d=n("1e31");t.edgeLayoutModule=d.default;var h=n("04c2");t.expandModule=h.default;var p=n("9f8d");t.exportModule=p.default;var f=n("9811");t.fadeModule=f.default;var m=n("c95e");t.hoverModule=m.default;var g=n("520d");t.moveModule=g.default;var v=n("0483");t.openModule=v.default;var b=n("b7ca");t.routingModule=b.default;var y=n("c4e6");t.selectModule=y.default;var _=n("3b74");t.undoRedoModule=_.default;var M=n("cc3e");t.updateModule=M.default;var w=n("1e19");t.viewportModule=w.default;var C=n("6f35");t.zorderModule=C.default,i(n("dfc0")),i(n("47b7")),i(n("6bb9")),i(n("44c1")),i(n("9ad4")),i(n("359b")),i(n("87fa")),i(n("218d")),i(n("42be")),i(n("945d")),i(n("cb6e")),i(n("85ed")),i(n("26ad")),i(n("484b"));var S=n("8e65");t.modelSourceModule=S.default,i(n("fba3")),i(n("0be1")),i(n("dd02")),i(n("7b39")),i(n("9e2e")),i(n("3864"))},"42f7":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n("e1c6"),l=n("510b"),u=n("9757"),d=n("6923"),h=n("66f9"),p=function(){function e(t){this.bounds=t,this.kind=e.KIND}return e.KIND="setBounds",e}();t.SetBoundsAction=p;var f=function(){function e(t,n){void 0===n&&(n=""),this.newRoot=t,this.requestId=n,this.kind=e.KIND}return e.create=function(t){return new e(t,l.generateRequestId())},e.KIND="requestBounds",e}();t.RequestBoundsAction=f;var m=function(){function e(t,n,i,o){void 0===o&&(o=""),this.bounds=t,this.revision=n,this.alignments=i,this.responseId=o,this.kind=e.KIND}return e.KIND="computedBounds",e}();t.ComputedBoundsAction=m;var g=function(){function e(){this.kind=e.KIND}return e.KIND="layout",e}();t.LayoutAction=g;var v=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.bounds=[],n}return i(t,e),t.prototype.execute=function(e){var t=this;return this.action.bounds.forEach(function(n){var i=e.root.index.getById(n.elementId);i&&h.isBoundsAware(i)&&t.bounds.push({element:i,oldBounds:i.bounds,newPosition:n.newPosition,newSize:n.newSize})}),this.redo(e)},t.prototype.undo=function(e){return this.bounds.forEach(function(e){return e.element.bounds=e.oldBounds}),e.root},t.prototype.redo=function(e){return this.bounds.forEach(function(e){e.newPosition?e.element.bounds=o(o({},e.newPosition),e.newSize):e.element.bounds=o({x:e.element.bounds.x,y:e.element.bounds.y},e.newSize)}),e.root},t.KIND=p.KIND,t=r([c.injectable(),a(0,c.inject(d.TYPES.Action)),s("design:paramtypes",[p])],t),t}(u.SystemCommand);t.SetBoundsCommand=v;var b=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return{model:e.modelFactory.createRoot(this.action.newRoot),modelChanged:!0,cause:this.action}},Object.defineProperty(t.prototype,"blockUntil",{get:function(){return function(e){return e.kind===m.KIND}},enumerable:!0,configurable:!0}),t.KIND=f.KIND,t=r([c.injectable(),a(0,c.inject(d.TYPES.Action)),s("design:paramtypes",[f])],t),t}(u.HiddenCommand);t.RequestBoundsCommand=b},"44c1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8122"),o=n("8e65"),r=n("72dd"),s=n("54f8"),a=n("d14a"),c=n("5884"),l=n("7bae3"),u=n("1e31"),d=n("3672"),h=n("04c2"),p=n("9f8d"),f=n("9811"),m=n("c95e"),g=n("520d"),v=n("0483"),b=n("b7ca"),y=n("c4e6"),_=n("3b74"),M=n("cc3e"),w=n("1e19"),C=n("6f35");function S(e,t){var n=[i.default,o.default,r.default,s.default,a.default,c.default,l.default,d.edgeEditModule,u.default,h.default,p.default,f.default,m.default,d.labelEditModule,d.labelEditUiModule,g.default,v.default,b.default,y.default,_.default,M.default,w.default,C.default];if(t&&t.exclude)for(var S=0,A=t.exclude;S=0&&n.splice(O,1)}e.load.apply(e,n)}t.loadDefaultModules=S},"451f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c5f4"),o=n("1979"),r=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||r(n,t))};t.traverseAncerstors=r;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new o.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(i.NAMED_TAG);t.namedConstraint=a;var c=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"===typeof e){var i=n.serviceIdentifier;return i===e}var o=t.bindings[0].implementationType;return e===o}return!1}};t.typeConstraint=c},4681:function(e,t,n){"use strict";var i=n("966d");function o(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i.nextTick(s,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(i.nextTick(s,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}e.exports={destroy:o,undestroy:r}},"46cc":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0){var i=e.routingPoints.slice();if(this.cleanupRoutingPoints(e,i,!1,!0),i.length>0)return i.map(function(e,t){return o({kind:"linear",pointIndex:t},e)})}var r=this.getOptions(e),s=this.calculateDefaultCorners(e,t,n,r);return s.map(function(e){return o({kind:"linear"},e)})},t.prototype.createRoutingHandles=function(e){var t=this.route(e);if(this.commitRoute(e,t),t.length>0){this.addHandle(e,"source","routing-point",-2);for(var n=0;n0&&Math.abs(n-e[t-1].x)=0&&t0&&Math.abs(n-e[t-1].y)=0&&t=0;--c){if(!s.includes(r.bounds,t[c]))break;t.splice(c,1),n&&this.removeHandle(e,c)}if(t.length>=2){var l=this.getOptions(e);for(c=t.length-2;c>=0;--c)s.manhattanDistance(t[c],t[c+1])t?--e.pointIndex:e.pointIndex===t&&n.push(e))}),n.forEach(function(t){return e.remove(t)})},t.prototype.addAdditionalCorner=function(e,t,n,i,o){if(0!==t.length){var r,l="source"===n.kind?t[0]:t[t.length-1],u="source"===n.kind?0:t.length,d=u-("source"===n.kind?1:0);if(t.length>1)r=0===u?s.almostEquals(t[0].x,t[1].x):s.almostEquals(t[t.length-1].x,t[t.length-2].x);else{var h=i.getNearestSide(l);r=h===a.Side.TOP||h===a.Side.BOTTOM}if(r){if(l.yn.get(a.Side.BOTTOM).y){var p={x:n.get(a.Side.TOP).x,y:l.y};t.splice(u,0,p),o&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=d&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",d))}}else if(l.xn.get(a.Side.RIGHT).x){p={x:l.x,y:n.get(a.Side.LEFT).y};t.splice(u,0,p),o&&(e.children.forEach(function(e){e instanceof c.SRoutingHandle&&e.pointIndex>=d&&++e.pointIndex}),this.addHandle(e,"manhattan-50%","volatile-routing-point",d))}}},t.prototype.manhattanify=function(e,t){for(var n=1;n0)return r;var s=this.getBestConnectionAnchors(t,n,i,o),c=s.source,l=s.target,u=[],d=n.get(c),h=i.get(l);switch(c){case a.Side.RIGHT:switch(l){case a.Side.BOTTOM:u.push({x:h.x,y:d.y});break;case a.Side.TOP:u.push({x:h.x,y:d.y});break;case a.Side.RIGHT:u.push({x:Math.max(d.x,h.x)+1.5*o.standardDistance,y:d.y}),u.push({x:Math.max(d.x,h.x)+1.5*o.standardDistance,y:h.y});break;case a.Side.LEFT:h.y!==d.y&&(u.push({x:(d.x+h.x)/2,y:d.y}),u.push({x:(d.x+h.x)/2,y:h.y}));break}break;case a.Side.LEFT:switch(l){case a.Side.BOTTOM:u.push({x:h.x,y:d.y});break;case a.Side.TOP:u.push({x:h.x,y:d.y});break;default:h=i.get(a.Side.RIGHT),h.y!==d.y&&(u.push({x:(d.x+h.x)/2,y:d.y}),u.push({x:(d.x+h.x)/2,y:h.y}));break}break;case a.Side.TOP:switch(l){case a.Side.RIGHT:h.x-d.x>0?(u.push({x:d.x,y:d.y-o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:d.y-o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;case a.Side.LEFT:h.x-d.x<0?(u.push({x:d.x,y:d.y-o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:d.y-o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;case a.Side.TOP:u.push({x:d.x,y:Math.min(d.y,h.y)-1.5*o.standardDistance}),u.push({x:h.x,y:Math.min(d.y,h.y)-1.5*o.standardDistance});break;case a.Side.BOTTOM:h.x!==d.x&&(u.push({x:d.x,y:(d.y+h.y)/2}),u.push({x:h.x,y:(d.y+h.y)/2}));break}break;case a.Side.BOTTOM:switch(l){case a.Side.RIGHT:h.x-d.x>0?(u.push({x:d.x,y:d.y+o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:d.y+o.standardDistance}),u.push({x:h.x+1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;case a.Side.LEFT:h.x-d.x<0?(u.push({x:d.x,y:d.y+o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:d.y+o.standardDistance}),u.push({x:h.x-1.5*o.standardDistance,y:h.y})):u.push({x:d.x,y:h.y});break;default:h=i.get(a.Side.TOP),h.x!==d.x&&(u.push({x:d.x,y:(d.y+h.y)/2}),u.push({x:h.x,y:(d.y+h.y)/2}));break}break}return u},t.prototype.getBestConnectionAnchors=function(e,t,n,i){var o=t.get(a.Side.RIGHT),r=n.get(a.Side.LEFT);if(r.x-o.x>i.standardDistance)return{source:a.Side.RIGHT,target:a.Side.LEFT};if(o=t.get(a.Side.LEFT),r=n.get(a.Side.RIGHT),o.x-r.x>i.standardDistance)return{source:a.Side.LEFT,target:a.Side.RIGHT};if(o=t.get(a.Side.TOP),r=n.get(a.Side.BOTTOM),o.y-r.y>i.standardDistance)return{source:a.Side.TOP,target:a.Side.BOTTOM};if(o=t.get(a.Side.BOTTOM),r=n.get(a.Side.TOP),r.y-o.y>i.standardDistance)return{source:a.Side.BOTTOM,target:a.Side.TOP};if(o=t.get(a.Side.RIGHT),r=n.get(a.Side.TOP),r.x-o.x>.5*i.standardDistance&&r.y-o.y>i.standardDistance)return{source:a.Side.RIGHT,target:a.Side.TOP};if(r=n.get(a.Side.BOTTOM),r.x-o.x>.5*i.standardDistance&&o.y-r.y>i.standardDistance)return{source:a.Side.RIGHT,target:a.Side.BOTTOM};if(o=t.get(a.Side.LEFT),r=n.get(a.Side.BOTTOM),o.x-r.x>.5*i.standardDistance&&o.y-r.y>i.standardDistance)return{source:a.Side.LEFT,target:a.Side.BOTTOM};if(r=n.get(a.Side.TOP),o.x-r.x>.5*i.standardDistance&&r.y-o.y>i.standardDistance)return{source:a.Side.LEFT,target:a.Side.TOP};if(o=t.get(a.Side.TOP),r=n.get(a.Side.RIGHT),o.y-r.y>.5*i.standardDistance&&o.x-r.x>i.standardDistance)return{source:a.Side.TOP,target:a.Side.RIGHT};if(r=n.get(a.Side.LEFT),o.y-r.y>.5*i.standardDistance&&r.x-o.x>i.standardDistance)return{source:a.Side.TOP,target:a.Side.LEFT};if(o=t.get(a.Side.BOTTOM),r=n.get(a.Side.RIGHT),r.y-o.y>.5*i.standardDistance&&o.x-r.x>i.standardDistance)return{source:a.Side.BOTTOM,target:a.Side.RIGHT};if(r=n.get(a.Side.LEFT),r.y-o.y>.5*i.standardDistance&&r.x-o.x>i.standardDistance)return{source:a.Side.BOTTOM,target:a.Side.LEFT};if(o=t.get(a.Side.TOP),r=n.get(a.Side.TOP),!s.includes(n.bounds,o)&&!s.includes(t.bounds,r))if(o.y-r.y<0){if(Math.abs(o.x-r.x)>(t.bounds.width+i.standardDistance)/2)return{source:a.Side.TOP,target:a.Side.TOP}}else if(Math.abs(o.x-r.x)>n.bounds.width/2)return{source:a.Side.TOP,target:a.Side.TOP};if(o=t.get(a.Side.RIGHT),r=n.get(a.Side.RIGHT),!s.includes(n.bounds,o)&&!s.includes(t.bounds,r))if(o.x-r.x>0){if(Math.abs(o.y-r.y)>(t.bounds.height+i.standardDistance)/2)return{source:a.Side.RIGHT,target:a.Side.RIGHT}}else if(Math.abs(o.y-r.y)>n.bounds.height/2)return{source:a.Side.RIGHT,target:a.Side.RIGHT};return o=t.get(a.Side.TOP),r=n.get(a.Side.RIGHT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?(r=n.get(a.Side.LEFT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?(o=t.get(a.Side.BOTTOM),r=n.get(a.Side.RIGHT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?(r=n.get(a.Side.LEFT),s.includes(n.bounds,o)||s.includes(t.bounds,r)?{source:a.Side.RIGHT,target:a.Side.BOTTOM}:{source:a.Side.BOTTOM,target:a.Side.LEFT}):{source:a.Side.BOTTOM,target:a.Side.RIGHT}):{source:a.Side.TOP,target:a.Side.LEFT}):{source:a.Side.TOP,target:a.Side.RIGHT}},t.KIND="manhattan",t}(a.LinearEdgeRouter);t.ManhattanEdgeRouter=l},4741:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("3623"),r=n("9964"),s=n("e1c6"),a=function(){function e(t,n){this.expandIds=t,this.collapseIds=n,this.kind=e.KIND}return e.KIND="collapseExpand",e}();t.CollapseExpandAction=a;var c=function(){function e(t){void 0===t&&(t=!0),this.expand=t,this.kind=e.KIND}return e.KIND="collapseExpandAll",e}();t.CollapseExpandAllAction=c;var l=function(){function e(){}return e.prototype.buttonPressed=function(e){var t=o.findParentByFeature(e,r.isExpandable);return void 0!==t?[new a(t.expanded?[]:[t.id],t.expanded?[t.id]:[])]:[]},e.TYPE="button:expand",e=i([s.injectable()],e),e}();t.ExpandButtonHandler=l},"47b7":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3a92"),r=n("66f9"),s=n("779b"),a=n("1978"),c=n("cc26"),l=n("7d36"),u=n("e4f0"),d=n("a0af"),h=n("3585"),p=n("4c18"),f=n("3b62"),m=n("dd02"),g=n("e629"),v=function(e){function t(t){return void 0===t&&(t=new C),e.call(this,t)||this}return i(t,e),t}(f.ViewportRootElement);t.SGraph=v;var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return i(t,e),t.prototype.canConnect=function(e,t){return void 0===this.children.find(function(e){return e instanceof y})},t.DEFAULT_FEATURES=[h.connectableFeature,a.deletableFeature,p.selectFeature,r.boundsFeature,d.moveFeature,r.layoutContainerFeature,l.fadeFeature,u.hoverFeedbackFeature,u.popupFeature],t}(h.SConnectableElement);t.SNode=b;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[h.connectableFeature,p.selectFeature,r.boundsFeature,l.fadeFeature,u.hoverFeedbackFeature],t}(h.SConnectableElement);t.SPort=y;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.hoverFeedback=!1,t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[c.editFeature,a.deletableFeature,p.selectFeature,l.fadeFeature,u.hoverFeedbackFeature],t}(h.SRoutableElement);t.SEdge=_;var M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selected=!1,t.alignment=m.ORIGIN_POINT,t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.alignFeature,r.layoutableChildFeature,s.edgeLayoutFeature,l.fadeFeature],t}(r.SShapeElement);t.SLabel=M;var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.opacity=1,t}return i(t,e),t.DEFAULT_FEATURES=[r.boundsFeature,r.layoutContainerFeature,r.layoutableChildFeature,l.fadeFeature],t}(r.SShapeElement);t.SCompartment=w;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.outgoing=new Map,t.incoming=new Map,t}return i(t,e),t.prototype.add=function(t){if(e.prototype.add.call(this,t),t instanceof _){if(t.sourceId){var n=this.outgoing.get(t.sourceId);void 0===n?this.outgoing.set(t.sourceId,[t]):n.push(t)}if(t.targetId){var i=this.incoming.get(t.targetId);void 0===i?this.incoming.set(t.targetId,[t]):i.push(t)}}},t.prototype.remove=function(t){if(e.prototype.remove.call(this,t),t instanceof _){var n=this.outgoing.get(t.sourceId);if(void 0!==n){var i=n.indexOf(t);i>=0&&(1===n.length?this.outgoing.delete(t.sourceId):n.splice(i,1))}var o=this.incoming.get(t.targetId);if(void 0!==o){i=o.indexOf(t);i>=0&&(1===o.length?this.incoming.delete(t.targetId):o.splice(i,1))}}},t.prototype.getAttachedElements=function(e){var t=this;return new g.FluentIterableImpl(function(){return{outgoing:t.outgoing.get(e.id),incoming:t.incoming.get(e.id),nextOutgoingIndex:0,nextIncomingIndex:0}},function(e){var t=e.nextOutgoingIndex;if(void 0!==e.outgoing&&t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("945d"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.listen=function(e){var t=this;e.addEventListener("message",function(e){t.messageReceived(e.data)}),e.addEventListener("error",function(e){t.logger.error(t,"error event received",e)}),this.webSocket=e},t.prototype.disconnect=function(){this.webSocket&&(this.webSocket.close(),this.webSocket=void 0)},t.prototype.sendMessage=function(e){if(!this.webSocket)throw new Error("WebSocket is not connected");this.webSocket.send(JSON.stringify(e))},t=o([r.injectable()],t),t}(s.DiagramServer);t.WebSocketDiagramServer=a},"48f9":function(e,t,n){},"4a4f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4"),r=n("1979");function s(){return function(e,t,n){var s=new r.Metadata(o.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(o.POST_CONSTRUCT,e.constructor))throw new Error(i.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(o.POST_CONSTRUCT,s,e.constructor)}}t.postConstruct=s},"4b0d":function(e,t,n){"use strict";var i=n("2196"),o=n.n(i);o.a},"4b75":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=function(){function e(){this.tasks=[],this.endTasks=[],this.triggered=!1}return e.prototype.isAvailable=function(){return"function"===typeof requestAnimationFrame},e.prototype.onNextFrame=function(e){this.tasks.push(e),this.trigger()},e.prototype.onEndOfNextFrame=function(e){this.endTasks.push(e),this.trigger()},e.prototype.trigger=function(){var e=this;this.triggered||(this.triggered=!0,this.isAvailable()?requestAnimationFrame(function(t){return e.run(t)}):setTimeout(function(t){return e.run(t)}))},e.prototype.run=function(e){var t=this.tasks,n=this.endTasks;this.triggered=!1,this.tasks=[],this.endTasks=[],t.forEach(function(t){return t.call(void 0,e)}),n.forEach(function(t){return t.call(void 0,e)})},e=i([o.injectable()],e),e}();t.AnimationFrameSyncer=r},"54f8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("70d9"),r=new i.ContainerModule(function(e){e(o.ButtonHandlerRegistry).toSelf().inSingletonScope()});t.default=r},5530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("dfc0"),s=new i.ContainerModule(function(e,t,n,i){i(o.TYPES.IModelFactory).to(r.SGraphFactory).inSingletonScope()});t.default=s},"559d":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var c=n("e1c6"),l=n("c146"),u=n("9757"),d=n("3a92"),h=n("3623"),p=n("6923"),f=n("3b4c"),m=n("e45b"),g=n("47b7"),v=n("42be"),b=n("dd02"),y=n("66f9"),_=n("ea38"),M=n("1978"),w=n("a5f4"),C=n("61d8"),S=n("3585"),A=n("168d"),E=n("779b"),O=n("4c18"),L=n("bcbd"),T=n("5eb6"),x=n("a0af"),R=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.moves=e,this.animate=t,this.finished=n,this.kind=k.KIND}return e}();t.MoveAction=R;var k=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.resolvedMoves=new Map,n.edgeMementi=[],n}var n;return i(t,e),n=t,t.prototype.execute=function(e){var t=this,n=e.root.index,i=new Map,o=new Map;return this.action.moves.forEach(function(e){var r=n.getById(e.elementId);if(r instanceof S.SRoutingHandle&&t.edgeRouterRegistry){var s=r.parent;if(s instanceof S.SRoutableElement){var a=t.resolveHandleMove(r,s,e);if(a){var c=i.get(s);c||(c=[],i.set(s,c)),c.push(a)}}}else if(r&&x.isLocateable(r)){var l=t.resolveElementMove(r,e);l&&(t.resolvedMoves.set(l.element.id,l),t.edgeRouterRegistry&&n.getAttachedElements(r).forEach(function(e){if(e instanceof S.SRoutableElement){var t=o.get(e),n=b.subtract(l.toPosition,l.fromPosition),i=t?b.linear(t,n,.5):n;o.set(e,i)}}))}}),this.doMove(i,o),this.action.animate?(this.undoMove(),new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!1),new P(e.root,this.edgeMementi,e,!1)]).start()):e.root},t.prototype.resolveHandleMove=function(e,t,n){var i=n.fromPosition;if(!i){var o=this.edgeRouterRegistry.get(t.routerKind);i=o.getHandlePosition(t,o.route(t),e)}if(i)return{handle:e,fromPosition:i,toPosition:n.toPosition}},t.prototype.resolveElementMove=function(e,t){var n=t.fromPosition||{x:e.position.x,y:e.position.y};return{element:e,fromPosition:n,toPosition:t.toPosition}},t.prototype.doMove=function(e,t){var n=this;this.resolvedMoves.forEach(function(e){e.element.position=e.toPosition}),e.forEach(function(e,t){var i=n.edgeRouterRegistry.get(t.routerKind),o=i.takeSnapshot(t);i.applyHandleMoves(t,e);var r=i.takeSnapshot(t);n.edgeMementi.push({edge:t,before:o,after:r})}),t.forEach(function(t,i){if(!e.get(i)){var o=n.edgeRouterRegistry.get(i.routerKind),r=o.takeSnapshot(i);if(i.source&&i.target&&n.resolvedMoves.get(i.source.id)&&n.resolvedMoves.get(i.target.id))i.routingPoints=i.routingPoints.map(function(e){return b.add(e,t)});else{var s=O.isSelectable(i)&&i.selected;o.cleanupRoutingPoints(i,i.routingPoints,s,n.action.finished)}var a=o.takeSnapshot(i);n.edgeMementi.push({edge:i,before:r,after:a})}})},t.prototype.undoMove=function(){var e=this;this.resolvedMoves.forEach(function(e){e.element.position=e.fromPosition}),this.edgeMementi.forEach(function(t){var n=e.edgeRouterRegistry.get(t.edge.routerKind);n.applySnapshot(t.edge,t.before)})},t.prototype.undo=function(e){return new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!0),new P(e.root,this.edgeMementi,e,!0)]).start()},t.prototype.redo=function(e){return new l.CompoundAnimation(e.root,e,[new z(e.root,this.resolvedMoves,e,!1),new P(e.root,this.edgeMementi,e,!1)]).start()},t.prototype.merge=function(e,t){var i=this;if(!this.action.animate&&e instanceof n)return e.resolvedMoves.forEach(function(e,t){var n=i.resolvedMoves.get(t);n?n.toPosition=e.toPosition:i.resolvedMoves.set(t,e)}),e.edgeMementi.forEach(function(e){var t=i.edgeMementi.find(function(t){return t.edge.id===e.edge.id});t?t.after=e.after:i.edgeMementi.push(e)}),!0;if(e instanceof C.ReconnectCommand){var o=e.memento;if(o){var r=this.edgeMementi.find(function(e){return e.edge.id===o.edge.id});r?r.after=o.after:this.edgeMementi.push(o)}return!0}return!1},t.KIND="move",r([c.inject(A.EdgeRouterRegistry),c.optional(),s("design:type",A.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=n=r([c.injectable(),a(0,c.inject(p.TYPES.Action)),s("design:paramtypes",[R])],t),t}(u.MergeableCommand);t.MoveCommand=k;var z=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.elementMoves=n,r.reverse=o,r}return i(t,e),t.prototype.tween=function(e){var t=this;return this.elementMoves.forEach(function(n){t.reverse?n.element.position={x:(1-e)*n.toPosition.x+e*n.fromPosition.x,y:(1-e)*n.toPosition.y+e*n.fromPosition.y}:n.element.position={x:(1-e)*n.fromPosition.x+e*n.toPosition.x,y:(1-e)*n.fromPosition.y+e*n.toPosition.y}}),this.model},t}(l.Animation);t.MoveAnimation=z;var P=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.reverse=o,r.expanded=[],n.forEach(function(e){var t=r.reverse?e.after:e.before,n=r.reverse?e.before:e.after,i=t.routedPoints,o=n.routedPoints,s=Math.max(i.length,o.length);r.expanded.push({startExpandedRoute:r.growToSize(i,s),endExpandedRoute:r.growToSize(o,s),memento:e})}),r}return i(t,e),t.prototype.midPoint=function(e){var t=e.edge,n=e.edge.source,i=e.edge.target;return b.linear(h.translatePoint(b.center(n.bounds),n.parent,t.parent),h.translatePoint(b.center(i.bounds),i.parent,t.parent),.5)},t.prototype.start=function(){return this.expanded.forEach(function(e){e.memento.edge.removeAll(function(e){return e instanceof S.SRoutingHandle})}),e.prototype.start.call(this)},t.prototype.tween=function(e){var t=this;return 1===e?this.expanded.forEach(function(e){var n=e.memento;t.reverse?n.before.router.applySnapshot(n.edge,n.before):n.after.router.applySnapshot(n.edge,n.after)}):this.expanded.forEach(function(t){for(var n=[],i=1;i(s+l)*o)++l;s+=l;for(var u=0;u0?new R(o,!1,n):void 0}},t.prototype.snap=function(e,t,n){return n&&this.snapper?this.snapper.snap(e,t):e},t.prototype.getHandlePosition=function(e){if(this.edgeRouterRegistry){var t=e.parent;if(!(t instanceof S.SRoutableElement))return;var n=this.edgeRouterRegistry.get(t.routerKind),i=n.route(t);return n.getHandlePosition(t,i,e)}},t.prototype.mouseEnter=function(e,t){return e instanceof d.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){var n=this,i=[],o=!1;if(this.startDragPosition){var r=this.getElementMoves(e,t,!0);r&&i.push(r),e.root.index.all().forEach(function(t){if(t instanceof S.SRoutingHandle){var r=t.parent;if(r instanceof S.SRoutableElement&&t.danglingAnchor){var s=n.getHandlePosition(t);if(s){var a=h.translatePoint(s,t.parent,t.root),c=y.findChildrenAtPosition(e.root,a).find(function(e){return S.isConnectable(e)&&e.canConnect(r,t.kind)});c&&n.hasDragged&&(i.push(new C.ReconnectAction(t.parent.id,"source"===t.kind?c.id:r.sourceId,"target"===t.kind?c.id:r.targetId)),o=!0)}}t.editMode&&i.push(new w.SwitchEditModeAction([],[t.id]))}})}if(!o){var s=e.root.index.getById(S.edgeInProgressID);if(s instanceof d.SChildElement){var a=[];a.push(S.edgeInProgressID),s.children.forEach(function(e){e instanceof S.SRoutingHandle&&e.danglingAnchor&&a.push(e.danglingAnchor.id)}),i.push(new M.DeleteElementAction(a))}}return this.hasDragged&&i.push(new v.CommitModelAction),this.hasDragged=!1,this.startDragPosition=void 0,this.elementId2startPos.clear(),i},t.prototype.decorate=function(e,t){return e},r([c.inject(A.EdgeRouterRegistry),c.optional(),s("design:type",A.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),r([c.inject(p.TYPES.ISnapper),c.optional(),s("design:type",Object)],t.prototype,"snapper",void 0),t}(f.MouseListener);t.MoveMouseListener=N;var I=function(){function e(){}return e.prototype.decorate=function(e,t){if(E.isEdgeLayoutable(t)&&t.parent instanceof g.SEdge)return e;var n="";if(x.isLocateable(t)&&t instanceof d.SChildElement&&void 0!==t.parent){var i=t.position;0===i.x&&0===i.y||(n="translate("+i.x+", "+i.y+")")}if(y.isAlignable(t)){var o=t.alignment;0===o.x&&0===o.y||(n.length>0&&(n+=" "),n+="translate("+o.x+", "+o.y+")")}return n.length>0&&m.setAttr(e,"transform",n),e},e.prototype.postUpdate=function(){},e=r([c.injectable()],e),e}();t.LocationPostprocessor=I},5823:function(e,t,n){"use strict";var i=n("e8de"),o=n.n(i);o.a},5870:function(e,t,n){},5884:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("1cc1"),r=n("3c83"),s=n("6923"),a=new i.ContainerModule(function(e){e(s.TYPES.IContextMenuServiceProvider).toProvider(function(e){return function(){return new Promise(function(t,n){e.container.isBound(s.TYPES.IContextMenuService)?t(e.container.get(s.TYPES.IContextMenuService)):n()})}}),e(s.TYPES.MouseListener).to(r.ContextMenuMouseListener),e(s.TYPES.IContextMenuProviderRegistry).to(o.ContextMenuProviderRegistry)});t.default=a},"5b35":function(e,t,n){"use strict";var i=n("b878"),o=n.n(i);o.a},"5bc0":function(e,t,n){},"5bcd":function(e,t,n){},"5d08":function(e,t,n){"use strict";var i=n("d675"),o=n.n(i);o.a},"5d19":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("66f9"),s=n("0fb6"),a=n("6923"),c=n("dd02"),l=n("e1c6"),u=function(){function e(t,n){void 0===n&&(n=""),this.svg=t,this.responseId=n,this.kind=e.KIND}return e.KIND="exportSvg",e}();t.ExportSvgAction=u;var d=function(){function e(){}return e.prototype.export=function(e,t){if("undefined"!==typeof document){var n=document.getElementById(this.options.hiddenDiv);if(null!==n&&n.firstElementChild&&"svg"===n.firstElementChild.tagName){var i=n.firstElementChild,o=this.createSvg(i,e);this.actionDispatcher.dispatch(new u(o,t?t.requestId:""))}}},e.prototype.createSvg=function(e,t){var n=new XMLSerializer,i=n.serializeToString(e),o=document.createElement("iframe");if(document.body.appendChild(o),!o.contentWindow)throw new Error("IFrame has no contentWindow");var r=o.contentWindow.document;r.open(),r.write(i),r.close();var s=r.getElementById(e.id);s.removeAttribute("opacity"),this.copyStyles(e,s,["width","height","opacity"]),s.setAttribute("version","1.1");var a=this.getBounds(t);s.setAttribute("viewBox",a.x+" "+a.y+" "+a.width+" "+a.height);var c=n.serializeToString(s);return document.body.removeChild(o),c},e.prototype.copyStyles=function(e,t,n){for(var i=getComputedStyle(e),o=getComputedStyle(t),r="",s=0;s=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},"5e1a":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n("a8f0").Buffer,r=n(3);function s(e,t,n){e.copy(t,n)}e.exports=function(){function e(){i(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;var t=o.allocUnsafe(e>>>0),n=this.head,i=0;while(n)s(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},"5e9c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("6923");function o(e,t){var n=e.get(i.TYPES.CommandStackOptions);for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return n}t.overrideCommandStackOptions=o},"5eb6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("3a92");function o(e){return e instanceof i.SModelRoot&&e.hasFeature(t.viewportFeature)&&"zoom"in e&&"scroll"in e}t.viewportFeature=Symbol("viewportFeature"),t.isViewport=o},6176:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("dd02"),a=n("3a92"),c=n("6923"),l=n("42f7"),u=n("320b"),d=n("66f9"),h=function(){function e(){}return e}();t.BoundsData=h;var p=function(){function e(){this.element2boundsData=new Map}return e.prototype.decorate=function(e,t){return(d.isSizeable(t)||d.isLayoutContainer(t))&&this.element2boundsData.set(t,{vnode:e,bounds:t.bounds,boundsChanged:!1,alignmentChanged:!1}),t instanceof a.SModelRoot&&(this.root=t),e},e.prototype.postUpdate=function(e){if(void 0!==e&&e.kind===l.RequestBoundsAction.KIND){var t=e;this.getBoundsFromDOM(),this.layouter.layout(this.element2boundsData);var n=[],i=[];this.element2boundsData.forEach(function(e,t){if(e.boundsChanged&&void 0!==e.bounds){var o={elementId:t.id,newSize:{width:e.bounds.width,height:e.bounds.height}};t instanceof a.SChildElement&&d.isLayoutContainer(t.parent)&&(o.newPosition={x:e.bounds.x,y:e.bounds.y}),n.push(o)}e.alignmentChanged&&void 0!==e.alignment&&i.push({elementId:t.id,newAlignment:e.alignment})});var o=void 0!==this.root?this.root.revision:void 0;this.actionDispatcher.dispatch(new l.ComputedBoundsAction(n,o,i,t.requestId)),this.element2boundsData.clear()}},e.prototype.getBoundsFromDOM=function(){var e=this;this.element2boundsData.forEach(function(t,n){if(t.bounds&&d.isSizeable(n)){var i=t.vnode;if(i&&i.elm){var o=e.getBounds(i.elm,n);!d.isAlignable(n)||s.almostEquals(o.x,0)&&s.almostEquals(o.y,0)||(t.alignment={x:-o.x,y:-o.y},t.alignmentChanged=!0);var r={x:n.bounds.x,y:n.bounds.y,width:o.width,height:o.height};s.almostEquals(r.x,n.bounds.x)&&s.almostEquals(r.y,n.bounds.y)&&s.almostEquals(r.width,n.bounds.width)&&s.almostEquals(r.height,n.bounds.height)||(t.bounds=r,t.boundsChanged=!0)}}})},e.prototype.getBounds=function(e,t){if("function"!==typeof e.getBBox)return this.logger.error(this,"Not an SVG element:",e),s.EMPTY_BOUNDS;var n=e.getBBox();return{x:n.x,y:n.y,width:n.width,height:n.height}},i([r.inject(c.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),i([r.inject(c.TYPES.IActionDispatcher),o("design:type",Object)],e.prototype,"actionDispatcher",void 0),i([r.inject(c.TYPES.Layouter),o("design:type",u.Layouter)],e.prototype,"layouter",void 0),e=i([r.injectable()],e),e}();t.HiddenBoundsUpdater=p},"61d8":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("6923"),u=n("3585"),d=n("168d"),h=function(){function e(t,n,i){this.routableId=t,this.newSourceId=n,this.newTargetId=i,this.kind=e.KIND}return e.KIND="reconnect",e}();t.ReconnectAction=h;var p=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.doExecute(e),e.root},t.prototype.doExecute=function(e){var t=e.root.index,n=t.getById(this.action.routableId);if(n instanceof u.SRoutableElement){var i=this.edgeRouterRegistry.get(n.routerKind),o=i.takeSnapshot(n);i.applyReconnect(n,this.action.newSourceId,this.action.newTargetId);var r=i.takeSnapshot(n);this.memento={edge:n,before:o,after:r}}},t.prototype.undo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.before)}return e.root},t.prototype.redo=function(e){if(this.memento){var t=this.edgeRouterRegistry.get(this.memento.edge.routerKind);t.applySnapshot(this.memento.edge,this.memento.after)}return e.root},t.KIND=h.KIND,o([a.inject(d.EdgeRouterRegistry),r("design:type",d.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o([a.injectable(),s(0,a.inject(l.TYPES.Action)),r("design:paramtypes",[h])],t),t}(c.Command);t.ReconnectCommand=p},6208:function(e,t,n){"use strict";var i=n("6cea"),o=n.n(i);o.a},"624f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4"),r=n("1979"),s=n("66d7"),a=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();function c(e){return function(t,n,a){if(void 0===e)throw new Error(i.UNDEFINED_INJECT_ANNOTATION(t.name));var c=new r.Metadata(o.INJECT_TAG,e);"number"===typeof a?s.tagParameter(t,n,a,c):s.tagProperty(t,n,c)}}t.LazyServiceIdentifer=a,t.inject=c},6283:function(e,t,n){"use strict";var i=n("5bcd"),o=n.n(i);o.a},6420:function(e,t,n){"use strict";var i=n("1f0f"),o=n.n(i);o.a},6592:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTextVNode=s,t.transformName=a,t.unescapeEntities=u;var i=n("81aa"),o=r(i);function r(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return(0,o.default)(void 0,void 0,void 0,u(e,t))}function a(e){e=e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var t=e.charAt(0).toLowerCase();return""+t+e.substring(1)}var c=new RegExp("&[a-z0-9#]+;","gi"),l=null;function u(e,t){return l||(l=t.createElement("div")),e.replace(c,function(e){return l.innerHTML=e,l.textContent})}},"65d1":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("393a"),c=n("3623"),l=n("e45b"),u=n("8e97"),d=n("779b"),h=n("3585"),p=n("168d"),f=n("8d9d"),m=function(){function e(){}return e.prototype.render=function(e,t){var n="scale("+e.zoom+") translate("+-e.scroll.x+","+-e.scroll.y+")";return a.svg("svg",{"class-sprotty-graph":!0},a.svg("g",{transform:n},t.renderChildren(e)))},e=o([s.injectable()],e),e}();t.SGraphView=m;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){var n=this.edgeRouterRegistry.get(e.routerKind),i=n.route(e);if(0===i.length)return this.renderDanglingEdge("Cannot compute route",e,t);if(!this.isVisible(e,i,t)){if(0===e.children.length)return;return a.svg("g",null,t.renderChildren(e,{route:i}))}return a.svg("g",{"class-sprotty-edge":!0,"class-mouseover":e.hoverFeedback},this.renderLine(e,i,t),this.renderAdditionals(e,i,t),t.renderChildren(e,{route:i}))},t.prototype.renderLine=function(e,t,n){for(var i=t[0],o="M "+i.x+","+i.y,r=1;r0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,i=l.some(function(e){return!!~n.indexOf(e)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,i=Object.keys(t);n0},e}(),L="undefined"!==typeof WeakMap?new WeakMap:new n,T=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),i=new O(t,n,this);L.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){T.prototype[e]=function(){var t;return(t=L.get(this))[e].apply(t,arguments)}});var x=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:T}();t["a"]=x}).call(this,n("c8ba"))},"6f35":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("842c"),r=n("3ada"),s=new i.ContainerModule(function(e,t,n){o.configureCommand({bind:e,isBound:n},r.BringToFrontCommand)});t.default=s},"70d9":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("3864"),c=n("e1c6"),l=n("6923"),u=function(e){function t(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.TYPE,new e)}),n}return i(t,e),t=o([c.injectable(),s(0,c.multiInject(l.TYPES.IButtonHandler)),s(0,c.optional()),r("design:paramtypes",[Array])],t),t}(a.InstanceRegistry);t.ButtonHandlerRegistry=u},7122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("155f"),r=n("c5f4");function s(e,t,n){var i=t.filter(function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ClassProperty}),r=i.map(n);return i.forEach(function(t,n){var i="";i=t.target.name.value();var o=r[n];e[i]=o}),e}function a(e,t){return new(e.bind.apply(e,[void 0].concat(t)))}function c(e,t){if(Reflect.hasMetadata(r.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(r.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(i.POST_CONSTRUCT_ERROR(e.name,t.message))}}}function l(e,t,n){var i=null;if(t.length>0){var r=t.filter(function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ConstructorArgument}),l=r.map(n);i=a(e,l),i=s(i,t,n)}else i=new e;return c(e,i),i}t.resolveInstance=l},"715d":function(e,t,n){"use strict";var i=n("1f66"),o=n.n(i);o.a},7173:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ft-wrapper",class:{"ft-no-timestamp":0===e.slices.length||-1===e.timestamp}},[n("div",{staticClass:"ft-container"},[n("div",{staticClass:"ft-time row"},[n("div",{staticClass:"ft-time-origin-container",on:{click:function(t){e.onClick(t,function(){e.changeTimestamp(-1)})}}},[n("q-icon",{staticClass:"ft-time-origin",class:{"ft-time-origin-active":-1===e.timestamp},attrs:{name:"mdi-clock-start"}}),0!==e.slices.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.slices.length>0?e.slices[0][1]:e.$t("label.timeOrigin"))}}):e._e()],1),n("div",{ref:"ft-timeline-"+e.observationId,staticClass:"ft-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[n("div",{ref:"ft-timeline",staticClass:"ft-timeline",class:{"ft-with-slices":0!==e.slices.length},on:{mousemove:e.moveOnTimeline,click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.slices.length>0,expression:"slices.length > 0"}],staticClass:"ft-timeline-viewer"}),e.slices.length<=1?n("div",{staticClass:"ft-slice-container",style:{left:e.calculatePosition(e.start)+"px"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.start)))])]):e._e(),e._l(e.slices,function(t,i){return-1!==t[0]?n("div",{key:i,staticClass:"ft-slice-container",style:{left:e.calculatePosition(t[0])+"px"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(t[0])))])]):e._e()}),n("div",{staticClass:"ft-slice-container",style:{left:"calc("+e.calculatePosition(e.end)+"px - 2px)"}},[n("div",{staticClass:"ft-slice"}),n("div",{staticClass:"ft-slice-caption"},[e._v(e._s(e.getLabel(e.end)))])]),-1!==e.timestamp?n("div",{staticClass:"ft-actual-time",style:{left:"calc("+e.calculatePosition(e.timestamp)+"px - 11px + "+(e.timestamp===e.end?"0":"1")+"px)"}},[n("q-icon",{attrs:{name:"mdi-menu-down-outline"}})],1):e._e(),0!==e.slices.length?n("q-tooltip",{staticClass:"ft-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)])])]),n("q-resize-observable",{on:{resize:e.updateWidth}})],1)},o=[];i._withStripped=!0;n("ac6a");var r=n("278c"),s=n.n(r),a=(n("28a5"),n("c5f6"),n("c1df")),c=n.n(a),l=n("b8c1"),u={name:"FigureTimeline",mixins:[l["a"]],props:{observationId:{type:String,required:!0},start:{type:Number,required:!0},end:{type:Number,required:!0},rawSlices:{type:Array,default:function(){return[]}},startingTime:{type:Number,default:-1}},computed:{slices:function(){return this.rawSlices.map(function(e){var t=e.split(",");return[+t[0],t[1]]})}},data:function(){return{timestamp:this.startingTime,timelineDate:null,timelineWidth:0,timelineLeft:0}},methods:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===e?"":(t||(e=c()(e).format("L")),'
'.concat(e,"
"))},updateWidth:function(){var e=this.$refs["ft-timeline-".concat(this.observationId)];e?(this.timelineWidth=e.clientWidth,this.timelineLeft=e.getBoundingClientRect().left):(this.timelineWidth=0,this.timelineLeft=0)},calculatePosition:function(e){if(0===this.timelineWidth)return 0;if(-1===e)return 0;var t=Math.floor((e-this.start)*this.timelineWidth/(this.end-this.start));return t},moveOnTimeline:function(e){var t=this.getSlice(this.getDateFromPosition(e)),n=s()(t,2);this.timelineDate=n[1]},getDateFromPosition:function(e){if(0===this.timelineWidth)return 0;var t=e.clientX-this.timelineLeft,n=Math.floor(this.start+t*(this.end-this.start)/this.timelineWidth);return n>this.end?n=this.end:nthis.end)return[this.end,this.formatDate(this.end)];var t=[this.start,this.formatDate(this.start)];return this.slices.length>0&&this.slices.forEach(function(n){n[0]<=e&&(t=n)}),t},changeTimestamp:function(e){if(0!==this.slices.length){e>this.end?this.timestamp=this.end:this.timestamp=e;var t=this.getSlice(e),n=s()(t,2);this.timelineDate=n[1],this.$emit("timestampchange",{time:t[0],timeString:-1===e?t[1]:c()(e).format("L")})}},getLabel:function(e){return c()(e).format("L")}},mounted:function(){this.updateWidth()}},d=u,h=(n("0faf"),n("2877")),p=Object(h["a"])(d,i,o,!1,null,null,null);p.options.__file="FigureTimeline.vue";t["a"]=p.exports},"719e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("c5f4");function r(){return function(e){if(Reflect.hasOwnMetadata(o.PARAM_TYPES,e))throw new Error(i.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(o.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(o.PARAM_TYPES,t,e),e}}t.injectable=r},"71d9":function(e,t,n){},"72dd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("42f7"),s=n("61bf"),a=n("320b"),c=n("842c"),l=new i.ContainerModule(function(e,t,n){c.configureCommand({bind:e,isBound:n},r.SetBoundsCommand),c.configureCommand({bind:e,isBound:n},r.RequestBoundsCommand),e(s.HiddenBoundsUpdater).toSelf().inSingletonScope(),e(o.TYPES.HiddenVNodePostprocessor).toService(s.HiddenBoundsUpdater),e(o.TYPES.Layouter).to(a.Layouter).inSingletonScope(),e(o.TYPES.LayoutRegistry).to(a.LayoutRegistry).inSingletonScope()});t.default=l},7364:function(e,t,n){},7521:function(e,t,n){"use strict";var i=n("48f9"),o=n.n(i);o.a},"755f":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("393a"),r=n("e45b"),s=n("e1c6"),a=function(){function e(){}return e.prototype.render=function(e,t){var n=16/1792,i="scale("+n+", "+n+")",s=this.getMaxSeverity(e),a=o.svg("g",{"class-sprotty-issue":!0},o.svg("g",{transform:i},o.svg("path",{d:this.getPath(s)})));return r.setClass(a,"sprotty-"+s,!0),a},e.prototype.getMaxSeverity=function(e){for(var t="info",n=0,i=e.issues.map(function(e){return e.severity});n1?n("div",{staticClass:"kal-locales"},e._l(t.locales,function(i){return n("div",{key:i,staticClass:"row inline"},[n("div",{staticClass:"kal-locale klab-link",on:{click:function(n){e.runApp(t.name.substring(0,t.name.lastIndexOf("."))+"."+i)}}},[n("span",{staticClass:"mdi mdi-earth"}),n("span",{staticClass:"kal-locale-name"},[e._v(e._s(e.getLocaleName(i)))])])])})):e._e()])])})],2)])],1)],1)],1)])},O=[];E._withStripped=!0;n("a481"),n("20d6"),n("ac6a"),n("cadf"),n("456d"),n("7f7f");var L=n("be3b"),T=n("d247"),x={ab:{name:"Abkhaz",nativeName:"аҧсуа"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"አማርኛ"},ar:{name:"Arabic",nativeName:"العربية"},an:{name:"Aragonese",nativeName:"Aragonés"},hy:{name:"Armenian",nativeName:"Հայերեն"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},eu:{name:"Basque",nativeName:"euskara"},be:{name:"Belarusian",nativeName:"Беларуская"},bn:{name:"Bengali",nativeName:"বাংলা"},bh:{name:"Bihari",nativeName:"भोजपुरी"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"български език"},my:{name:"Burmese",nativeName:"ဗမာစာ"},ca:{name:"Catalan; Valencian",nativeName:"Català"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiCheŵa"},zh:{name:"Chinese",nativeName:"中文 (Zhōngwén)"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"česky"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"ދިވެހި"},nl:{name:"Dutch",nativeName:"Nederlands"},en:{name:"English",nativeName:"English",flag:"gb"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti"},ee:{name:"Ewe",nativeName:"Eʋegbe"},fo:{name:"Faroese",nativeName:"føroyskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi"},fr:{name:"French",nativeName:"français"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"ქართული"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek",nativeName:"Ελληνικά"},gn:{name:"Guaraní",nativeName:"Avañeẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},ht:{name:"Haitian; Haitian Creole",nativeName:"Kreyòl ayisyen"},ha:{name:"Hausa",nativeName:"Hausa"},he:{name:"Hebrew (modern)",nativeName:"עברית"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語 (にほんご/にっぽんご)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},kk:{name:"Kazakh",nativeName:"Қазақ тілі"},km:{name:"Khmer",nativeName:"ភាសាខ្មែរ"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz",nativeName:"кыргыз тили"},kv:{name:"Komi",nativeName:"коми кыв"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"한국어 (韓國語)"},ku:{name:"Kurdish",nativeName:"Kurdî"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latviešu valoda"},gv:{name:"Manx",nativeName:"Gaelg"},mk:{name:"Macedonian",nativeName:"македонски јазик"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"Māori",nativeName:"te reo Māori"},mr:{name:"Marathi (Marāṭhī)",nativeName:"मराठी"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mn:{name:"Mongolian",nativeName:"монгол"},na:{name:"Nauru",nativeName:"Ekakairũ Naoero"},nv:{name:"Navajo",nativeName:"Diné bizaad"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},fa:{name:"Persian",nativeName:"فارسی"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian",nativeName:"română"},ru:{name:"Russian",nativeName:"русский"},sa:{name:"Sanskrit (Saṁskṛta)",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},sr:{name:"Serbian",nativeName:"српски језик"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"Gàidhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovene",nativeName:"slovenščina"},so:{name:"Somali",nativeName:"Soomaaliga"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"español"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},bo:{name:"Tibetan Standard",nativeName:"བོད་ཡིག"},tk:{name:"Turkmen",nativeName:"Türkmen"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татарча"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur",nativeName:"Uyƣurqə"},uk:{name:"Ukrainian",nativeName:"українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"zbek"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"}},R={name:"KlabSettings",data:function(){return{models:{userDetails:!1,appsList:!1},popupsOver:{userDetails:!1,appsList:!1},fabVisible:!1,closeTimeout:null,modalTimeout:null,appsList:[],TERMINAL_TYPES:c["J"],ISO_LOCALE:x}},computed:s()({},Object(a["c"])("data",["sessionReference","isLocal"]),Object(a["c"])("view",["isApp","klabApp","hasShowSettings","layout","dataflowInfoOpen","mainViewerName"]),{hasDataflowInfo:function(){return this.dataflowInfoOpen&&this.mainViewerName===c["L"].DATAFLOW_VIEWER.name},modalsAreFocused:function(){var e=this;return Object.keys(this.popupsOver).some(function(t){return e.popupsOver[t]})},owner:function(){return this.sessionReference&&this.sessionReference.owner?this.sessionReference.owner:{unknown:this.$t("label.unknownUser")}},isDeveloper:function(){return this.owner&&this.owner.groups&&-1!==this.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})}}),methods:s()({},Object(a["b"])("data",["loadSessionReference","addTerminal"]),Object(a["b"])("view",["setLayout","setShowSettings"]),{getLocaleName:function(e){var t=x[e];return t&&t.nativeName?t.nativeName.charAt(0).toUpperCase()+t.nativeName.slice(1):e.toUpperCase()},loadApplications:function(){var e=this;if(this.appsList.splice(0),this.sessionReference&&this.sessionReference.publicApps){var t=this.sessionReference.publicApps.filter(function(e){return"WEB"===e.platform||"ANY"===e.platform});t.forEach(function(t){t.logo?(t.logoSrc="".concat("").concat(T["c"].REST_GET_PROJECT_RESOURCE,"/").concat(t.projectId,"/").concat(t.logo.replace("/",":")),e.appsList.push(t)):(t.logoSrc=c["b"].DEFAULT_LOGO,e.appsList.push(t))})}},runApp:function(e){var t=this;this.layout&&this.layout.name===e.name||(this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:e},this.$store.state.data.session).body),this.$nextTick(function(){t.models.appsList=!1,t.fabVisible=!1}))},exitApp:function(){this.layout&&this.setLayout(null)},logout:function(){var e=this,t="".concat("").concat("/modeler").concat(this.isApp?"?app=".concat(this.klabApp):"");null!==this.token?L["a"].post("".concat("").concat("/modeler/api/v2/users/log-out"),{}).then(function(n){var i=n.status;205===i?window.location=t:(e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),console.error("Strange status: ".concat(i)))}).catch(function(t){e.$q.notify({message:e.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),t.response&&403===t.response.status&&console.error("Probably bad token"),console.error("Error logging out: ".concat(t))}):window.location=t},mouseActionEnter:function(e){var t=this;clearTimeout(this.modalTimeout),this.modalTimeout=null,this.$nextTick(function(){t.models[e]=!0,Object.keys(t.models).forEach(function(n){n!==e&&(t.models[n]=!1)})})},mouseActionLeave:function(e){var t=this;this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.closeTimeout=setTimeout(function(){t.popupsOver[e]||(t.models[e]=!1)},500)},mousePopupEnter:function(e){this.popupsOver[e]=!0,clearTimeout(this.modalTimeout),this.modalTimeout=null},mousePopupLeave:function(e){var t=this;this.popupsOver[e]=!1,this.models[e]=!1,this.modalTimeout=setTimeout(function(){t.closeAll(),t.modalTimeout=null},500)},mouseFabEnter:function(){var e=this;clearTimeout(this.modalTimeout),this.modalTimeout=null,setTimeout(function(){e.fabVisible=!0},300)},mouseFabLeave:function(){var e=this;this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.closeTimeout=setTimeout(function(){e.modalsAreFocused||e.closeAll()},500)},closeAll:function(){var e=this;this.fabVisible=!1,Object.keys(this.models).forEach(function(t){e.models[t]=!1})},openTerminal:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.mousePopupLeave("userDetails"),this.mouseFabLeave(),setTimeout(function(){e.addTerminal(s()({},t&&{type:t}))},200)}}),watch:{sessionReference:function(){this.loadApplications()}},created:function(){this.loadApplications()}},k=R,z=(n("e2d7"),Object(y["a"])(k,E,O,!1,null,null,null));z.options.__file="KlabSettings.vue";var P=z.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.draggableConfig,expression:"draggableConfig"}],staticClass:"kterm-container",class:{"kterm-minimized":!e.terminal.active,"kterm-focused":e.hasFocus},attrs:{id:"kterm-container-"+e.terminal.id}},[n("div",{staticClass:"kterm-header",style:{"background-color":e.background},attrs:{id:"kterm-handle-"+e.terminal.id},on:{mousedown:function(t){e.instance.focus()}}},[n("q-btn",{staticClass:"kterm-button kterm-delete-history",attrs:{icon:"mdi-delete-clock-outline",disable:0===e.terminalCommands.length,flat:"",color:"white",dense:""},on:{click:e.deleteHistory}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalDeleteHistory")))])],1),n("q-btn",{staticClass:"kterm-button kterm-drag",attrs:{icon:"mdi-resize",flat:"",color:"white",dense:""},on:{click:function(t){e.selectSize=!0}}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalResizeWindow")))])],1),e.terminal.active?n("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-minimize",flat:"",color:"white",dense:""},on:{click:e.minimize}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMinimize")))])],1):n("q-btn",{staticClass:"kterm-button kterm-minimize",attrs:{icon:"mdi-window-maximize",flat:"",color:"white",dense:""},on:{click:e.maximize}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalMaxmize")))])],1),n("q-btn",{staticClass:"kterm-button kterm-close",attrs:{icon:"mdi-close-circle",flat:"",color:"white",dense:""},on:{click:e.closeTerminal}},[n("q-tooltip",{staticClass:"kterm-tooltip",attrs:{anchor:"top middle",self:"bottom middle",offset:[0,8],delay:1e3}},[e._v(e._s(e.$t("label.terminalClose")))])],1)],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.terminal.active,expression:"terminal.active"}],staticClass:"kterm-terminal",attrs:{id:"kterm-"+e.terminal.id}}),n("q-dialog",{attrs:{color:"mc-main"},on:{ok:e.onOk},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(n){e.sizeSelected(t.ok,!1)}}}),n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appSetDefault")},on:{click:function(n){e.sizeSelected(t.ok,!0)}}})]}}]),model:{value:e.selectSize,callback:function(t){e.selectSize=t},expression:"selectSize"}},[n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("label.titleSelectTerminalSize")))]),n("div",{attrs:{slot:"body"},slot:"body"},[n("q-option-group",{attrs:{type:"radio",color:"mc-main",options:e.TERMINAL_SIZE_OPTIONS.map(function(e){return{label:e.label,value:e.value}})},model:{value:e.selectedSize,callback:function(t){e.selectedSize=t},expression:"selectedSize"}})],1)])],1)},I=[];N._withStripped=!0;var D,B=n("448a"),q=n.n(B),j=(n("7514"),n("96cf"),n("c973")),W=n.n(j),F=n("fcf3");n("f751");function H(e){return e&&(e.$el||e)}function X(e,t,n,i,o){void 0===o&&(o={});var r={left:n,top:i},s=e.height,a=e.width,c=i,l=i+s,u=n,d=n+a,h=o.top||0,p=o.bottom||0,f=o.left||0,m=o.right||0,g=t.top+h,v=t.bottom-p,b=t.left+f,y=t.right-m;return cv&&(r.top=v-s),uy&&(r.left=y-a),r}(function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"})(D||(D={}));var U={bind:function(e,t,n,i){U.update(e,t,n,i)},update:function(e,t,n,i){if(!t.value||!t.value.stopDragging){var o=t.value&&t.value.handle&&H(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(p(),g()),o.getAttribute("draggable")||(e.removeEventListener("touchstart",e.listener),e.removeEventListener("mousedown",e.listener),o.addEventListener("mousedown",c),o.addEventListener("touchstart",c,{passive:!1}),o.setAttribute("draggable","true"),e.listener=c,p(),g())}function r(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function s(){if(!f()){var t=v();t.currentDragPosition&&(e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}}function a(e){return e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY,e}function c(e){if(window.TouchEvent&&e instanceof TouchEvent){if(e.targetTouches.length1||(t.value.fingers=2),m({initialPosition:a,startDragPosition:a,currentDragPosition:a,initialPos:d(e)}),s()}function f(){return t&&t.value&&t.value.noMove}function m(e){var t=v(),n=Object.assign({},t,e);o.setAttribute("draggable-state",JSON.stringify(n))}function g(e,n){var i=v(),o={x:0,y:0};i.currentDragPosition&&i.startDragPosition&&(o.x=i.currentDragPosition.left-i.startDragPosition.left,o.y=i.currentDragPosition.top-i.startDragPosition.top);var r=i.currentDragPosition&&Object.assign({},i.currentDragPosition);n===D.End?t.value&&t.value.onDragEnd&&i&&t.value.onDragEnd(o,r,e):n===D.Start?t.value&&t.value.onDragStart&&i&&t.value.onDragStart(o,r,e):t.value&&t.value.onPositionChange&&i&&t.value.onPositionChange(o,r,e)}function v(){return JSON.parse(o.getAttribute("draggable-state"))||{}}}},V=n("741d"),G=n("abcf"),K=(n("abb2"),G["b"].height),$={name:"KlabTerminal",props:{terminal:{type:Object,required:!0},size:{type:String,validator:function(e){return-1!==c["I"].findIndex(function(t){return t.value===e})}},bgcolor:{type:String,default:""}},directives:{Draggable:U},data:function(){var e=this;return{instance:void 0,zIndex:1e3,draggableConfig:{handle:void 0,onDragEnd:function(){e.instance.focus()}},draggableElement:void 0,commandCounter:0,command:[],hasFocus:!1,selectedSize:null,selectSize:!1,commandsIndex:-1,TERMINAL_SIZE_OPTIONS:c["I"]}},computed:s()({background:function(){return""!==this.bgcolor?this.bgcolor:this.terminal.type===c["J"].DEBUGGER?"#002f74":"#2e0047"}},Object(a["c"])("data",["terminalCommands"])),methods:s()({},Object(a["b"])("data",["removeTerminal","addTerminalCommand","clearTerminalCommands"]),{minimize:function(){this.terminal.active=!1,this.changeDraggablePosition({top:window.innerHeight-55,left:25})},maximize:function(){var e=this;this.changeDraggablePosition(this.draggableConfig.initialPosition),this.terminal.active=!0,this.$nextTick(function(){e.instance.focus()})},closeTerminal:function(){this.sendStompMessage(l["a"].CONSOLE_CLOSED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body),this.instance=null,this.removeTerminal(this.terminal.id)},changeDraggablePosition:function(e){this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var t=JSON.parse(this.draggableConfig.handle.getAttribute("draggable-state"));t.startDragPosition=e,t.currentDragPosition=e,this.draggableConfig.handle.setAttribute("draggable-state",JSON.stringify(t))},commandResponseListener:function(e){e&&e.payload&&e.consoleId===this.terminal.id&&(this.instance.write("\b \b\b \b".concat(e.payload.replaceAll("\n","\r\n"))),this.instance.prompt())},onFocusListener:function(e){this.hasFocus=this.terminal.id===e},sizeSelected:function(){var e=W()(regeneratorRuntime.mark(function e(t,n){var i,o=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:i=c["I"].find(function(e){return e.value===o.selectedSize}),this.instance.resize(i.cols,i.rows),n&&V["a"].set(c["O"].COOKIE_TERMINAL_SIZE,this.selectedSize,{expires:30,path:"/",secure:!0});case 5:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),onOk:function(){},deleteHistory:function(){this.clearTerminalCommands()}}),created:function(){this.sendStompMessage(l["a"].CONSOLE_CREATED({consoleId:this.terminal.id,consoleType:this.terminal.type},this.$store.state.data.session).body)},mounted:function(){var e,t=this;e=this.size?this.size:V["a"].has(c["O"].COOKIE_TERMINAL_SIZE)?V["a"].get(c["O"].COOKIE_TERMINAL_SIZE):c["I"][0].value;var n=c["I"].find(function(t){return t.value===e});this.selectedSize=n.value,this.instance=new F["Terminal"]({cols:n.cols,rows:n.rows,cursorBlink:!0,bellStyle:"both",theme:{background:this.background}}),this.instance.prompt=function(){t.instance.write("\r\n$ ")},this.instance.open(document.getElementById("kterm-".concat(this.terminal.id))),this.instance.writeln("".concat(this.$t("messages.terminalHello",{type:this.terminal.type})," / ").concat(this.terminal.id)),this.instance.prompt(),this.instance.onData(function(e){var n=function(){for(var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=0;i0){var o=t.command.join("");t.sendStompMessage(l["a"].COMMAND_REQUEST({consoleId:t.terminal.id,consoleType:t.terminal.type,commandId:"".concat(t.terminal.id,"-").concat(++t.commandCounter),payload:o},t.$store.state.data.session).body),t.addTerminalCommand(o)}t.command.splice(0,t.command.length),t.commandsIndex=-1,t.instance.prompt();break;case"":i>2&&t.instance.write("\b \b"),t.command.length>0&&t.command.pop();break;case"":t.terminalCommands.length>0&&t.commandsIndex0&&t.commandsIndex>0?n(t.terminalCommands[--t.commandsIndex]):(n(),t.commandsIndex=-1);break;case"":break;case"":break;default:t.command.push(e),t.instance.write(e)}}),this.instance.textarea.addEventListener("focus",function(){t.$eventBus.$emit(c["h"].TERMINAL_FOCUSED,t.terminal.id)}),this.draggableConfig.handle=document.getElementById("kterm-handle-".concat(this.terminal.id)),this.draggableElement=document.getElementById("kterm-container-".concat(this.terminal.id)),this.draggableConfig.initialPosition={top:window.innerHeight-K(this.draggableElement)-25,left:25},this.instance.focus(),this.$eventBus.$on(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$on(c["h"].COMMAND_RESPONSE,this.commandResponseListener)},beforeDestroy:function(){null!==this.instance&&this.closeTerminal(),this.$eventBus.$off(c["h"].TERMINAL_FOCUSED,this.onFocusListener),this.$eventBus.$off(c["h"].COMMAND_RESPONSE,this.commandResponseListener)}},Y=$,J=(n("23a0"),Object(y["a"])(Y,N,I,!1,null,null,null));J.options.__file="KlabTerminal.vue";var Q=J.exports,Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.activeDialog?n("q-modal",{attrs:{"content-classes":"kaa-container"},model:{value:e.hasActiveDialogs,callback:function(t){e.hasActiveDialogs=t},expression:"hasActiveDialogs"}},[n("div",{staticClass:"kaa-content",domProps:{innerHTML:e._s(e.activeDialog.content)}}),n("div",{staticClass:"kaa-button"},[n("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appOK")},on:{click:function(t){e.dialogAction(e.activeDialog,!0)}}}),e.activeDialog.type===e.APPS_COMPONENTS.CONFIRM?n("q-btn",{attrs:{color:"app-title-color",label:e.$t("label.appCancel")},on:{click:function(t){e.dialogAction(e.activeDialog,!1)}}}):e._e()],1)]):e._e()},ee=[];Z._withStripped=!0;var te={name:"AppDialogViewer",data:function(){return{activeDialog:null,APPS_COMPONENTS:c["a"]}},computed:s()({},Object(a["c"])("view",["layout","activeDialogs"]),{hasActiveDialogs:{get:function(){return this.activeDialogs.length>0},set:function(){}}}),methods:{setActiveDialog:function(){var e=this;this.activeDialogs.length>0?this.activeDialog=this.activeDialogs[this.activeDialogs.length-1]:this.$nextTick(function(){e.activeDialog=null})},dialogAction:function(e,t){this.activeDialog.dismiss=!0,e.type===c["a"].CONFIRM&&this.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}},watch:{activeDialogs:function(){this.setActiveDialog()}},mounted:function(){this.setActiveDialog()}},ne=te,ie=(n("715d"),Object(y["a"])(ne,Z,ee,!1,null,null,null));ie.options.__file="AppDialogsViewer.vue";var oe=ie.exports,re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kapp-layout-container",class:{"kapp-main":e.isRootLayout},style:e.modalDimensions,attrs:{view:"hhh lpr fFf",id:"kapp-"+e.idSuffix}},[!e.isModal&&e.hasHeader?n("q-layout-header",{staticClass:"kapp-header-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{id:"kapp-"+e.idSuffix+"-header"}},[e.layout.header?n("klab-app-viewer",{staticClass:"kapp-header",attrs:{component:e.layout.header,direction:"horizontal"}}):n("div",{staticClass:"kapp-header row"},[n("div",{staticClass:"kapp-logo-container"},[n("img",{ref:"kapp-logo",staticClass:"kapp-logo",attrs:{id:"kapp-"+e.idSuffix+"-logo",src:e.logoImage}})]),n("div",{staticClass:"kapp-title-container"},[e.layout.label?n("div",{staticClass:"kapp-title"},[e._v(e._s(e.layout.label)),e.layout.versionString?n("span",{staticClass:"kapp-version"},[e._v(e._s(e.layout.versionString))]):e._e()]):e._e(),e.layout.description?n("div",{staticClass:"kapp-subtitle"},[e._v(e._s(e.layout.description))]):e._e()]),e.layout.menu&&e.layout.menu.length>0?n("div",{staticClass:"kapp-header-menu-container"},e._l(e.layout.menu,function(t){return n("div",{key:t.id,staticClass:"kapp-header-menu-item klab-link",on:{click:function(n){e.clickOnMenu(t.id)}}},[e._v(e._s(t.text))])})):e._e(),n("div",{staticClass:"kapp-actions-container row items-end justify-end"},[n("main-actions-buttons",{staticClass:"col items-end",attrs:{"is-header":!0}})],1)])],1):e._e(),e.showLeftPanel?n("q-layout-drawer",{staticClass:"kapp-left-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"left","content-class":"kapp-left-inner-container",width:e.leftPanelWidth},model:{value:e.showLeftPanel,callback:function(t){e.showLeftPanel=t},expression:"showLeftPanel"}},[e.leftPanel?[n("klab-app-viewer",{staticClass:"kapp-left-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-left-0",component:e.layout.leftPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),e.showRightPanel?n("q-layout-drawer",{staticClass:"kapp-right-container kapp-container print-hide",class:{"kapp-main":e.isRootLayout},attrs:{side:"right","content-class":"kapp-right-inner-container",width:e.rightPanelWidth},model:{value:e.showRightPanel,callback:function(t){e.showRightPanel=t},expression:"showRightPanel"}},[e.rightPanel?[n("klab-app-viewer",{staticClass:"kapp-right-wrapper",attrs:{id:"kapp-"+e.idSuffix+"-right-0",component:e.layout.rightPanels[0],direction:"vertical"}})]:e._e()],2):e._e(),n("q-page-container",[e.layout&&0!==e.layout.panels.length?[n("klab-app-viewer",{staticClass:"kapp-main-container kapp-container print-hide",attrs:{id:"kapp-"+e.idSuffix+"-main-0",mainPanelStyle:e.mainPanelStyle,component:e.layout.panels[0]}})]:n("k-explorer",{staticClass:"kapp-main-container is-kexplorer",attrs:{id:"kapp-"+e.idSuffix+"-main",mainPanelStyle:e.mainPanelStyle}})],2),n("q-resize-observable",{on:{resize:function(t){e.updateLayout()}}}),n("q-modal",{staticClass:"kapp-modal",attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["absolute-center","kapp-loading"]},model:{value:e.blockApp,callback:function(t){e.blockApp=t},expression:"blockApp"}},[n("q-spinner",{attrs:{color:"app-main-color",size:"3em"}})],1)],1)},se=[];re._withStripped=!0;n("6762"),n("2fdb"),n("4917"),n("5df3"),n("1c4c");var ae=n("50fb"),ce=n.n(ae),le=n("84a2"),ue=n.n(le),de=n("6dd8"),he=n("0312"),pe=n.n(he);function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"y";if(this.isEnabled[i]||this.options.forceVisible){"x"===i?(e=this.scrollbarX,t=this.contentSizeX,n=this.trackXSize):(e=this.scrollbarY,t=this.contentSizeY,n=this.trackYSize);var o=n/t;this.handleSize[i]=Math.max(~~(o*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(this.handleSize[i]=Math.min(this.handleSize[i],this.options.scrollbarMaxSize)),"x"===i?e.style.width="".concat(this.handleSize[i],"px"):e.style.height="".concat(this.handleSize[i],"px")}}},{key:"positionScrollbar",value:function(){var e,t,n,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";"x"===o?(e=this.scrollbarX,t=this.contentEl[this.scrollOffsetAttr[o]],n=this.contentSizeX,i=this.trackXSize):(e=this.scrollbarY,t=this.scrollContentEl[this.scrollOffsetAttr[o]],n=this.contentSizeY,i=this.trackYSize);var r=t/(n-i),s=~~((i-this.handleSize[o])*r);(this.isEnabled[o]||this.options.forceVisible)&&(e.style.transform="x"===o?"translate3d(".concat(s,"px, 0, 0)"):"translate3d(0, ".concat(s,"px, 0)"))}},{key:"toggleTrackVisibility",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t="y"===e?this.trackY:this.trackX,n="y"===e?this.scrollbarY:this.scrollbarX;this.isEnabled[e]||this.options.forceVisible?t.style.visibility="visible":t.style.visibility="hidden",this.options.forceVisible&&(this.isEnabled[e]?n.style.visibility="visible":n.style.visibility="hidden")}},{key:"hideNativeScrollbar",value:function(){this.scrollbarWidth=ce()(),this.scrollContentEl.style[this.isRtl?"paddingLeft":"paddingRight"]="".concat(this.scrollbarWidth||this.offsetSize,"px"),this.scrollContentEl.style.marginBottom="-".concat(2*this.scrollbarWidth||this.offsetSize,"px"),this.contentEl.style.paddingBottom="".concat(this.scrollbarWidth||this.offsetSize,"px"),0!==this.scrollbarWidth&&(this.contentEl.style[this.isRtl?"marginLeft":"marginRight"]="-".concat(this.scrollbarWidth,"px"))}},{key:"showScrollbar",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.isVisible[t]||(e="x"===t?this.scrollbarX:this.scrollbarY,this.isEnabled[t]&&(e.classList.add("visible"),this.isVisible[t]=!0),this.options.autoHide&&(window.clearInterval(this.flashTimeout),this.flashTimeout=window.setInterval(this.hideScrollbars,this.options.timeout)))}},{key:"onDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";e.preventDefault();var n="y"===t?this.scrollbarY:this.scrollbarX,i="y"===t?e.pageY:e.pageX;this.dragOffset[t]=i-n.getBoundingClientRect()[this.offsetAttr[t]],this.currentAxis=t,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";return"y"===e?this.scrollContentEl:this.contentEl}},{key:"getContentElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),this.scrollContentEl.removeEventListener("scroll",this.onScrollY),this.contentEl.removeEventListener("scroll",this.onScrollX),this.mutationObserver.disconnect(),this.resizeObserver.disconnect()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(e){return null!==e&&(e===this.el||this.isChildNode(e.parentNode))}},{key:"isWithinBounds",value:function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height}}],[{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!==typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(t){t.forEach(function(t){Array.from(t.addedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!t.SimpleBar&&new e(t,e.getElOptions(t)):Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){!t.SimpleBar&&new e(t,e.getElOptions(t))}))}),Array.from(t.removedNodes).forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?e.SimpleBar&&e.SimpleBar.unMount():Array.from(e.querySelectorAll("[data-simplebar]")).forEach(function(e){e.SimpleBar&&e.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(e){var t=Array.from(e.attributes).reduce(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var i=n[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":e[i]=!0;break;case"false":e[i]=!1;break;case void 0:e[i]=!0;break;default:e[i]=t.value}}return e},{});return t}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar||new e(t,e.getElOptions(t))})}},{key:"defaultOptions",get:function(){return{autoHide:!0,forceVisible:!1,classNames:{content:"simplebar-content",scrollContent:"simplebar-scroll-content",scrollbar:"simplebar-scrollbar",track:"simplebar-track"},scrollbarMinSize:25,scrollbarMaxSize:0,direction:"ltr",timeout:1e3}}}]),e}();pe.a&&ve.initHtmlApi();var be=ve,ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kexplorer-main-container print-hide",style:{width:e.mainPanelStyle.width+"px",height:e.mainPanelStyle.height+"px"},attrs:{view:"hHh lpr fFf",container:""}},[n("q-layout-drawer",{attrs:{side:"left",overlay:!1,breakpoint:0,width:e.leftMenuState===e.LEFTMENU_CONSTANTS.LEFTMENU_MAXIMIZED?e.LEFTMENU_CONSTANTS.LEFTMENU_MAXSIZE:e.LEFTMENU_CONSTANTS.LEFTMENU_MINSIZE,"content-class":["klab-left","no-scroll",e.largeMode?"klab-large-mode":""]},model:{value:e.leftMenuVisible,callback:function(t){e.leftMenuVisible=t},expression:"leftMenuVisible"}},[n("klab-left-menu")],1),n("q-page-container",[n("q-page",{staticClass:"column"},[n("div",{staticClass:"col row full-height kexplorer-container",class:{"kd-is-app":null!==e.layout}},[n("keep-alive",[n(e.mainViewer.name,{tag:"component",attrs:{"container-style":{width:e.mainPanelStyle.width-e.leftMenuWidth,height:e.mainPanelStyle.height}}})],1),n("q-resize-observable",{on:{resize:e.setChildrenToAskFor}})],1),n("div",{staticClass:"col-1 row"},[e.logVisible?n("klab-log"):e._e()],1),n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[e.mainViewer.mainControl?n("klab-main-control",{directives:[{name:"show",rawName:"v-show",value:e.isTreeVisible,expression:"isTreeVisible"}]}):e._e()],1),n("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForUndocking&&!e.mainViewer.mainControl?n("div",{staticClass:"kexplorer-undocking full-height full-width"}):e._e()]),e.isMainControlDocked?e._e():n("observation-time"),n("input-request-modal"),n("scale-change-dialog")],1)],1)],1)},_e=[];ye._withStripped=!0;var Me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isDrawMode,expression:"!isDrawMode"}],ref:"main-control-container",staticClass:"mc-container print-hide small"},[n("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isHidden,expression:"isHidden"}],staticClass:"spinner-lonely-div klab-spinner-div",style:{left:e.defaultLeft+"px",top:e.defaultTop+"px","border-color":e.hasTasks()?e.spinnerColor.color:"rgba(0,0,0,0)"}},[n("klab-spinner",{staticClass:"spinner-lonely",attrs:{"store-controlled":!0,size:40,ball:22,wrapperId:"spinner-lonely-div"},nativeOn:{dblclick:function(t){return e.show(t)},touchstart:function(t){e.handleTouch(t,null,e.show)}}})],1)]),n("transition",{attrs:{appear:"","enter-active-class":"animated fadeInLeft","leave-active-class":"animated fadeOutLeft"}},[n("q-card",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"},{name:"show",rawName:"v-show",value:!e.isHidden,expression:"!isHidden"}],staticClass:"mc-q-card no-box-shadow absolute lot-of-flow",class:[e.hasContext?"with-context":"bg-transparent without-context","mc-large-mode-"+e.largeMode],style:e.qCardStyle,attrs:{draggable:"false",flat:!0},nativeOn:{contextmenu:function(e){e.preventDefault()}}},[n("q-card-title",{ref:"mc-draggable",staticClass:"mc-q-card-title q-pa-xs",class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":".2")},attrs:{ondragstart:"return false;"},nativeOn:{mousedown:function(t){e.moved=!1},mousemove:function(t){e.moved=!0},mouseup:function(t){return e.focusSearch(t)}}},[n("klab-search-bar",{ref:"klab-search-bar"}),n("klab-breadcrumbs",{attrs:{slot:"subtitle"},slot:"subtitle"})],1),n("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden&&!e.hasHeader&&null===e.layout,expression:"hasContext && !isHidden && !hasHeader && layout === null"}],staticClass:"context-actions no-margin"},[n("div",{staticClass:"mc-tabs"},[n("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-log-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-log-pane"}}},[n("q-icon",{attrs:{name:"mdi-console"}},[n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.showLogPane")))])],1)],1),n("div",{staticClass:"klab-button mc-tab",class:["tab-button",{active:"klab-tree-pane"===e.selectedTab}],on:{click:function(t){e.selectedTab="klab-tree-pane"}}},[n("q-icon",{attrs:{name:"mdi-folder-image"}},[n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.treePane")))])],1)],1)]),n("main-actions-buttons",{attrs:{orientation:"horizontal","separator-class":"mc-separator"}}),n("scale-buttons",{attrs:{docked:!1}}),n("div",{staticClass:"mc-separator",staticStyle:{right:"35px"}}),n("stop-actions-buttons")],1),n("q-card-main",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"no-margin relative-position",attrs:{draggable:"false"}},[n("keep-alive",[n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[n(e.selectedTab,{tag:"component"})],1)],1)],1),n("q-card-actions",{directives:[{name:"show",rawName:"v-show",value:e.hasContext&&!e.isHidden,expression:"hasContext && !isHidden"}],staticClass:"kmc-bottom-actions"},[n("div",{staticClass:"klab-button klab-action"},[n("q-icon",{attrs:{name:"mdi-terrain"}}),n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.scenarios")))])],1),n("div",{staticClass:"klab-button klab-action"},[n("q-icon",{attrs:{name:"mdi-human-male-female"}}),n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("tooltips.observers")))])],1),e.contextHasTime?n("observations-timeline",{staticClass:"mc-timeline"}):e._e()],1)],1)],1),n("transition",{attrs:{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"}},[e.askForDocking?n("div",{staticClass:"mc-docking full-height",style:{width:e.leftMenuMaximized}}):e._e()])],1)},we=[];Me._withStripped=!0;var Ce=n("1fe0"),Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-actions",class:e.orientation},[n("div",{staticClass:"klab-main-actions"},["horizontal"!==e.orientation||e.isHeader?n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATA_VIEWER.name}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATA_VIEWER.name&&e.click(e.isMainControlDocked?e.VIEWERS.DOCKED_DATA_VIEWER:e.VIEWERS.DATA_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-folder-image"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.dataViewer")))])],1)],1):e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DOCUMENTATION_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&(!e.hasContext||!e.hasObservations)}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DOCUMENTATION_VIEWER.name&&e.hasContext&&e.hasObservations&&e.click(e.VIEWERS.DOCUMENTATION_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-text-box-multiple-outline"}},[e.reloadViews.length>0?n("span",{staticClass:"klab-button-notification"}):e._e(),n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.hasObservations?e.$t("tooltips.documentationViewer"):e.$t("tooltips.noDocumentation")))])],1)],1),n("div",{staticClass:"klab-button klab-action",class:[{active:e.mainViewerName===e.VIEWERS.DATAFLOW_VIEWER.name,disabled:e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&!e.hasContext}],on:{click:function(t){e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.click(e.VIEWERS.DATAFLOW_VIEWER)}}},[n("q-icon",{attrs:{name:"mdi-sitemap"}},[e.mainViewerName!==e.VIEWERS.DATAFLOW_VIEWER.name&&e.hasContext&&e.reloadDataflow?n("span",{staticClass:"klab-button-notification"}):e._e(),n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.hasDataflow||e.reloadDataflow?e.$t("tooltips.dataflowViewer"):e.$t("tooltips.noDataflow")))])],1)],1)])])},Ae=[];Se._withStripped=!0;var Ee={name:"MainActionsButtons",props:{orientation:{type:String,default:"horizontal"},separatorClass:{type:String,default:""},isHeader:{type:Boolean,default:!1}},data:function(){return{}},computed:s()({},Object(a["d"])("view",["reloadDataflow"]),Object(a["c"])("data",["hasObservations","hasDataflow","hasContext"]),Object(a["c"])("view",["spinnerColor","mainViewerName","statusTextsString","statusTextsLength","isMainControlDocked","reloadViews"])),methods:s()({},Object(a["b"])("view",["setMainViewer"]),{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},click:function(e){var t=this;this.setMainViewer(e),this.$nextTick(function(){t.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout"})})}}),created:function(){this.VIEWERS=c["L"]}},Oe=Ee,Le=(n("6208"),Object(y["a"])(Oe,Se,Ae,!1,null,null,null));Le.options.__file="MainActionsButtons.vue";var Te=Le.exports,xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-destructive-actions"},[e.hasContext&&!e.hasTasks(e.contextId)?n("div",{staticClass:"klab-button klab-reset-context",on:{click:e.resetContext}},[n("q-icon",{attrs:{name:"mdi-close-circle-outline"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.resetContext")))])],1)],1):e._e(),e.hasContext&&e.hasTasks(e.contextId)?n("div",{staticClass:"klab-button klab-interrupt-task",on:{click:e.interruptTask}},[n("q-icon",{attrs:{name:"mdi-stop-circle-outline"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:e.tooltipAnchor("top"),anchor:e.tooltipAnchor("bottom")}},[e._v(e._s(e.$t("tooltips.interruptTask",{taskDescription:e.lastActiveTaskText})))])],1)],1):e._e()])},Re=[];xe._withStripped=!0;var ke={computed:s()({},Object(a["c"])("data",["hasContext","contextId","session"])),methods:s()({},Object(a["b"])("data",["loadContext","setWaitinForReset"]),Object(a["b"])("view",["setSpinner"]),{loadOrReloadContext:function(e,t){null!==e&&this.setSpinner(s()({},c["G"].SPINNER_LOADING,{owner:e})),this.hasContext?(this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body),null!==e?this.setWaitinForReset(e):"function"===typeof t&&this.callbackIfNothing()):this.loadContext(e)}})},ze={name:"StopActionsButtons",mixins:[ke],data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasContext","contextId","previousContext"]),Object(a["c"])("stomp",["hasTasks","lastActiveTask"]),{lastActiveTaskText:function(){var e=null===this.lastActiveTask(this.contextId)?"":this.lastActiveTask(this.contextId).description;return e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)?e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation")):e}}),methods:{tooltipAnchor:function(e){return"".concat(e," ").concat("horizontal"===this.orientation?"middle":"left")},resetContext:function(){this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body)},interruptTask:function(){var e=this.lastActiveTask(this.contextId);null!==e&&e.alive&&this.sendStompMessage(l["a"].TASK_INTERRUPTED({taskId:e.id},this.$store.state.data.session).body)}}},Pe=ze,Ne=(n("c31b"),Object(y["a"])(Pe,xe,Re,!1,null,null,null));Ne.options.__file="StopActionsButtons.vue";var Ie=Ne.exports,De=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.hasContext?"with-context":"without-context",e.isDocked?"ksb-docked":""],style:{width:e.isDocked&&e.searchIsFocused&&e.largeMode?e.getLargeModeWidth():"100%"},attrs:{id:"ksb-container"}},[e.isDocked?e._e():n("div",{staticClass:"klab-spinner-div",attrs:{id:"ksb-spinner"}},[n("klab-spinner",{style:{"box-shadow":e.searchIsFocused?"0px 0px 3px "+e.getBGColor(".4"):"none"},attrs:{"store-controlled":!0,color:e.spinnerColor.hex,size:40,ball:22,wrapperId:"ksb-spinner",id:"spinner-searchbar"},nativeOn:{dblclick:function(t){return e.emitSpinnerDoubleclick(t)},touchstart:function(t){t.stopPropagation(),e.handleTouch(t,e.showSuggestions,e.emitSpinnerDoubleclick)}}})],1),n("div",{class:[e.fuzzyMode?"klab-fuzzy":"",e.searchIsFocused?"klab-search-focused":""],style:{"background-color":e.isDocked?e.getBGColor(e.hasContext?"1.0":e.searchIsFocused?".8":e.isDocked?"1.0":".2"):"rgba(0,0,0,0)"},attrs:{id:"ksb-search-container"}},[e.searchIsActive?n("klab-search",{ref:"klab-search",staticClass:"klab-search",on:{"busy-search":e.busySearch}}):n("div",{staticClass:"ksb-context-text text-white"},[n("scrolling-text",{ref:"st-context-text",attrs:{"with-edge":!0,"hover-active":!0,"initial-text":null===e.mainContextLabel?e.$t("label.noContextPlaceholder"):e.mainContextLabel,"placeholder-style":!e.hasContext}})],1),n("div",{ref:"ksb-status-texts",staticClass:"ksb-status-texts"},[n("scrolling-text",{ref:"st-status-text",attrs:{"with-edge":!0,edgeOpacity:e.hasContext?1:e.searchIsFocused?.8:.2,hoverActive:!1,initialText:e.statusTextsString,accentuate:!0}})],1),e.isScaleLocked["space"]&&!e.hasContext?n("q-icon",{attrs:{name:"mdi-lock-outline"}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[10,5],delay:500}},[e._v(e._s(e.$t("label.scaleLocked",{type:e.$t("label.spaceScale")})))])],1):e._e(),n("main-control-menu")],1)])},Be=[];De._withStripped=!0;var qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"ks-container",attrs:{id:"ks-container"}},[n("div",{staticStyle:{position:"relative"},attrs:{id:"ks-internal-container"}},[e._l(e.acceptedTokens,function(t,i){return n("div",{key:t.index,ref:"token-"+t.index,refInFor:!0,class:["ks-tokens-accepted","ks-tokens","bg-semantic-elements",t.selected?"selected":"","text-"+t.leftColor],style:{"border-color":t.selected?t.rgb:"transparent"},attrs:{tabindex:i},on:{focus:function(n){e.onTokenFocus(t,n)},blur:function(n){e.onTokenFocus(t,n)},keydown:e.onKeyPressedOnToken,touchstart:function(t){e.handleTouch(t,null,e.deleteLastToken)}}},[e._v(e._s(t.value)+"\n "),n("q-tooltip",{attrs:{delay:500,offset:[0,15],self:"top left",anchor:"bottom left"}},[t.sublabel.length>0?n("span",[e._v(e._s(t.sublabel))]):n("span",[e._v(e._s(e.$t("label.noTokenDescription")))])])],1)}),n("div",{staticClass:"ks-tokens",class:[e.fuzzyMode?"ks-tokens-fuzzy":"ks-tokens-klab"]},[n("q-input",{ref:"ks-search-input",class:[e.fuzzyMode?"ks-fuzzy":"",e.searchIsFocused?"ks-search-focused":""],attrs:{autofocus:!0,placeholder:e.fuzzyMode?e.$t("label.fuzzySearchPlaceholder"):e.$t("label.searchPlaceholder"),size:"20",id:"ks-search-input",tabindex:e.acceptedTokens.length,"hide-underline":!0},on:{focus:function(t){e.onInputFocus(!0)},blur:function(t){e.onInputFocus(!1)},keydown:e.onKeyPressedOnSearchInput,keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,"Escape"))return null;e.searchEnd({})}},nativeOn:{contextmenu:function(e){e.preventDefault()},touchstart:function(t){e.handleTouch(t,null,e.searchInKLab)}},model:{value:e.actualToken,callback:function(t){e.actualToken=t},expression:"actualToken"}},[n("klab-autocomplete",{ref:"ks-autocomplete",class:[e.notChrome()?"not-chrome":""],attrs:{debounce:400,"min-characters":e.minimumCharForAutocomplete,"max-results":50,id:"ks-autocomplete"},on:{search:e.autocompleteSearch,selected:e.selected,show:e.onAutocompleteShow,hide:e.onAutocompleteHide}})],1)],1)],2)])},je=[];qe._withStripped=!0;n("386d");var We=n("278c"),Fe=n.n(We),He=n("2b0e"),Xe=n("b0b2"),Ue=n("b12a"),Ve=n("7ea0"),Ge=n("b5b8"),Ke=n("1180"),$e=n("68c2"),Ye=n("506f"),Je=n("b8d9"),Qe=n("52b5"),Ze=n("03d8"),et={name:"QItemSide",props:{right:Boolean,icon:String,letter:{type:String,validator:function(e){return 1===e.length}},inverted:Boolean,avatar:String,image:String,stamp:String,color:String,textColor:String,tooltip:{type:Object,default:null}},computed:{type:function(){var e=this;return["icon","image","avatar","letter","stamp"].find(function(t){return e[t]})},classes:function(){var e=["q-item-side-".concat(this.right?"right":"left")];return!this.color||this.icon||this.letter||e.push("text-".concat(this.color)),e},typeClasses:function(){var e=["q-item-".concat(this.type)];return this.color&&(this.inverted&&(this.icon||this.letter)?e.push("bg-".concat(this.color)):this.textColor||e.push("text-".concat(this.color))),this.textColor&&e.push("text-".concat(this.textColor)),this.inverted&&(this.icon||this.letter)&&(e.push("q-item-inverted"),e.push("flex"),e.push("flex-center")),e},imagePath:function(){return this.image||this.avatar}},render:function(e){var t;return this.type&&(this.icon?(t=e(Qe["a"],{class:this.inverted?null:this.typeClasses,props:{name:this.icon,tooltip:this.tooltip}}),this.inverted&&(t=e("div",{class:this.typeClasses},[t]))):t=this.imagePath?e("img",{class:this.typeClasses,attrs:{src:this.imagePath}}):e("div",{class:this.typeClasses},[this.stamp||this.letter])),e("div",{staticClass:"q-item-side q-item-section",class:this.classes},[null!==this.tooltip?e(Ze["a"],{ref:"tooltip",class:"kl-model-desc-container",props:{offset:[25,0],anchor:"top right",self:"top left"}},[e("div",{class:["kl-model-desc","kl-model-desc-title"]},this.tooltip.title),e("div",{class:["kl-model-desc","kl-model-desc-state","bg-state-".concat(this.tooltip.state)]},this.tooltip.state),e("div",{class:["kl-model-desc","kl-model-desc-content"]},this.tooltip.content)]):null,t,this.$slots.default])}};function tt(e,t,n,i,o,r){var s={props:{right:r.right}};if(i&&o)e.push(t(n,s,i));else{var a=!1;for(var c in r)if(r.hasOwnProperty(c)&&(a=r[c],void 0!==a&&!0!==a)){e.push(t(n,{props:r}));break}i&&e.push(t(n,s,i))}}var nt={name:"QItemWrapper",props:{cfg:{type:Object,default:function(){return{}}},slotReplace:Boolean},render:function(e){var t=this.cfg,n=this.slotReplace,i=[];return tt(i,e,et,this.$slots.left,n,{icon:t.icon,color:t.leftColor,avatar:t.avatar,letter:t.letter,image:t.image,inverted:t.leftInverted,textColor:t.leftTextColor,tooltip:t.leftTooltip}),tt(i,e,Je["a"],this.$slots.main,n,{label:t.label,sublabel:t.sublabel,labelLines:t.labelLines,sublabelLines:t.sublabelLines,inset:t.inset}),tt(i,e,et,this.$slots.right,n,{right:!0,icon:t.rightIcon,color:t.rightColor,avatar:t.rightAvatar,letter:t.rightLetter,image:t.rightImage,stamp:t.stamp,inverted:t.rightInverted,textColor:t.rightTextColor,tooltip:t.rightTooltip}),i.push(this.$slots.default),e(Ye["a"],{attrs:this.$attrs,on:this.$listeners,props:t},i)}},it=G["b"].width,ot={name:"KlabQAutocomplete",extends:Ve["a"],methods:{trigger:function(e){var t=this;if(this.__input&&this.__input.isEditable()&&this.__input.hasFocus()&&this.isWorking()){var n=[null,void 0].includes(this.__input.val)?"":String(this.__input.val),i=n.length,o=Object($e["a"])(),r=this.$refs.popover;if(this.searchId=o,i0)return this.searchId="",this.__clearSearch(),void this.hide();if(this.width=it(this.inputEl)+"px",this.staticData)return this.searchId="",this.results=this.filter(n,this.staticData),this.results.length?void this.__showResults():void r.hide();this.$emit("search",n,function(e){if(t.isWorking()&&t.searchId===o){if(t.__clearSearch(),Array.isArray(e)&&e.length>0)return t.results=e,void t.__showResults();t.hide()}})}}},render:function(e){var t=this,n=this.__input.isDark();return e(Ge["a"],{ref:"popover",class:n?"bg-dark":null,props:{fit:!0,keepOnScreen:!0,anchorClick:!1,maxHeight:this.maxHeight,noFocus:!0,noRefocus:!0},on:{show:function(){t.__input.selectionOpen=!0,t.$emit("show")},hide:function(){t.__input.selectionOpen=!1,t.$emit("hide")}},nativeOn:{mousedown:function(e){e.preventDefault()}}},[e(Ke["a"],{props:{dark:n,noBorder:!0,separator:this.separator},style:this.computedWidth},this.computedResults.map(function(n,i){return e(nt,{key:n.id||i,class:{"q-select-highlight":t.keyboardIndex===i,"cursor-pointer":!n.disable,"text-faded":n.disable,"ka-separator":n.separator},props:{cfg:n},nativeOn:{mousedown:function(e){!n.disable&&(t.keyboardIndex=i),e.preventDefault()},click:function(){!n.disable&&t.setValue(n)}}})}))])}},rt={data:function(){return{doubleTouchTimeout:null}},methods:{handleTouch:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:300;window.TouchEvent&&e instanceof TouchEvent&&(1===e.targetTouches.length?null===this.doubleTouchTimeout?this.doubleTouchTimeout=setTimeout(function(){t.doubleTouchTimeout=null,null!==n&&n(e)},r):(clearTimeout(this.doubleTouchTimeout),this.doubleTouchTimeout=null,null!==i&&i()):null!==o&&o(e))}}},st="=(<)>",at={name:"KlabSearch",components:{KlabAutocomplete:ot},mixins:[rt],props:{maxResults:{type:Number,default:-1}},data:function(){return{searchContextId:null,searchRequestId:0,doneFunc:null,result:null,acceptedTokens:[],actualToken:"",actualSearchString:"",noSearch:!1,searchDiv:null,searchDivInitialSize:void 0,searchDivInternal:void 0,searchInput:null,autocompleteEl:null,scrolled:0,suggestionShowed:!1,searchTimeout:null,searchHistoryIndex:-1,autocompleteSB:null,freeText:!1,parenthesisDepth:0,last:!1,minimumCharForAutocomplete:2}},computed:s()({},Object(a["c"])("data",["searchResult","contextId","isCrossingIDL"]),Object(a["c"])("view",["spinner","searchIsFocused","searchLostChar","searchInApp","searchHistory","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{inputSearchColor:{get:function(){return this.searchInput?this.searchInput.$refs.input.style.color:"black"},set:function(e){this.searchInput.$refs.input&&(this.searchInput.$refs.input.style.color=e)}}}),methods:s()({},Object(a["b"])("data",["setContextCustomLabel"]),Object(a["b"])("view",["searchStop","setSpinner","searchFocus","resetSearchLostChar","storePreviousSearch","setFuzzyMode","setLargeMode"]),{notChrome:function(){return-1===navigator.userAgent.indexOf("Chrome")},onTokenFocus:function(e,t){e.selected="focus"===t.type},onInputFocus:function(e){this.searchFocus({focused:e}),this.actualToken=this.actualSearchString},onAutocompleteShow:function(){this.suggestionShowed=!0},onAutocompleteHide:function(){this.suggestionShowed=!1,this.actualToken!==this.actualSearchString&&(this.noSearch=!0,this.resetSearchInput())},onKeyPressedOnToken:function(e){var t=this;if(37===e.keyCode||39===e.keyCode){e.preventDefault();var n=this.acceptedTokens.findIndex(function(e){return e.selected}),i=null,o=!1;if(37===e.keyCode&&n>0?i="token-".concat(this.acceptedTokens[n-1].index):39===e.keyCode&&n=s&&(n=s)}else{var a=o?r.$el:r,c=(o?a.offsetLeft:r.offsetLeft)+i+a.offsetWidth,l=t.searchDiv.offsetWidth+t.searchDiv.scrollLeft;l<=c&&(n=t.searchDiv.scrollLeft+(c-l)-i)}null!==n&&He["a"].nextTick(function(){t.searchDiv.scrollLeft=n})})}}},onKeyPressedOnSearchInput:function(e){var t=this;if(this.noSearch=!1,this.last)return e.preventDefault(),void this.$q.notify({message:this.$t("messages.lastTermAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});switch(e.keyCode){case 8:if(""===this.actualToken&&0!==this.acceptedTokens.length){var n=this.acceptedTokens.pop();this.searchHistoryIndex=-1,e.preventDefault(),this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:n.matchIndex,matchId:n.id,added:!1},this.$store.state.data.session).body),this.freeText=this.acceptedTokens.length>0&&this.acceptedTokens[this.acceptedTokens.length-1].nextTokenClass!==c["u"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){t.checkLargeMode(!1)})}else""!==this.actualSearchString?(e.preventDefault(),this.actualSearchString=this.actualSearchString.slice(0,-1),""===this.actualSearchString&&this.setFuzzyMode(!1)):""===this.actualSearchString&&""!==this.actualToken&&(this.actualToken="",e.preventDefault());break;case 9:this.suggestionShowed&&-1!==this.autocompleteEl.keyboardIndex?(this.autocompleteEl.setValue(this.autocompleteEl.results[this.autocompleteEl.keyboardIndex]),this.searchHistoryIndex=-1):this.freeText&&this.acceptText(),e.preventDefault();break;case 13:this.freeText||this.fuzzyMode?this.acceptText():this.searchInKLab(e);break;case 27:this.suggestionShowed?this.autocompleteEl.hide():this.searchEnd({noStore:!0}),e.preventDefault();break;case 32:if(e.preventDefault(),this.fuzzyMode)this.searchHistoryIndex=-1,this.actualSearchString+=e.key;else if(this.freeText)this.acceptFreeText();else if(this.suggestionShowed){var i=-1===this.autocompleteEl.keyboardIndex?0:this.autocompleteEl.keyboardIndex,o=this.autocompleteEl.results[i];o.separator||(this.autocompleteEl.setValue(o),this.searchHistoryIndex=-1)}else this.askForSuggestion()||this.$q.notify({message:this.$t("messages.noSpaceAllowedInSearch"),type:"warning",icon:"mdi-alert",timeout:1500});break;case 37:if(!this.suggestionShowed&&0===this.searchInput.$refs.input.selectionStart&&this.acceptedTokens.length>0){var r=this.acceptedTokens[this.acceptedTokens.length-1];He["a"].nextTick(function(){t.$refs["token-".concat(r.index)][0].focus()}),e.preventDefault()}break;case 38:this.suggestionShowed||this.searchHistoryEvent(1,e);break;case 40:this.suggestionShowed||this.searchHistoryEvent(-1,e);break;default:this.isAcceptedKey(e.key)?")"===e.key&&0===this.parenthesisDepth?e.preventDefault():(e.preventDefault(),0===this.acceptedTokens.length&&0===this.searchInput.$refs.input.selectionStart&&Object(Xe["h"])(e.key)&&this.setFuzzyMode(!0),this.searchHistoryIndex=-1,this.actualSearchString+=e.key,-1!==st.indexOf(e.key)&&this.askForSuggestion(e.key.trim())):39!==e.keyCode&&e.preventDefault();break}},acceptText:function(){var e=this,t=this.actualToken.trim();""===t?this.$q.notify({message:this.$t("messages.emptyFreeTextSearch"),type:"warning",icon:"mdi-alert",timeout:1e3}):this.search(this.actualToken,function(t){t&&t.length>0?e.selected(t[0],!1):e.$q.notify({message:e.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3})})},selected:function(e,t){var n=this;if(t)this.inputSearchColor=e.rgb;else{if(this.acceptedTokens.push(e),this.actualSearchString="",this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!0},this.$store.state.data.session).body),this.fuzzyMode)return void this.$nextTick(function(){n.searchEnd({})});this.freeText=e.nextTokenClass!==c["u"].NEXT_TOKENS.TOKEN,this.$nextTick(function(){n.checkLargeMode(!0)})}},checkLargeMode:function(){var e=this;this.$nextTick(function(){var t;if(e.isDocked)t=e.searchDivInitialSize-e.searchDivInternal.clientWidth,t<0&&0===e.largeMode?e.setLargeMode(1):t>=0&&e.largeMode>0&&e.setLargeMode(0);else if(t=e.searchDiv.clientWidth-e.searchDivInternal.clientWidth,t>=0){var n=Math.floor(t/c["g"].SEARCHBAR_INCREMENT);n>0&&e.largeMode>0&&(n>e.largeMode?e.setLargeMode(0):e.setLargeMode(e.largeMode-n))}else{var i=Math.ceil(Math.abs(t)/c["g"].SEARCHBAR_INCREMENT);e.setLargeMode(e.largeMode+i)}})},autocompleteSearch:function(e,t){this.freeText?t([]):this.search(e,t)},search:function(e,t){var n=this;if(this.noSearch)return this.noSearch=!1,void t([]);this.searchRequestId+=1,this.sendStompMessage(l["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:this.maxResults,cancelSearch:!1,defaultResults:""===e,searchMode:this.fuzzyMode?c["D"].FREETEXT:c["D"].SEMANTIC,queryString:this.actualSearchString},this.$store.state.data.session).body),this.setSpinner(s()({},c["G"].SPINNER_LOADING,{owner:this.$options.name})),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.setSpinner(s()({},c["G"].SPINNER_ERROR,{owner:n.$options.name,errorMessage:n.$t("errors.searchTimeout"),time:n.fuzzyMode?5:2,then:s()({},c["G"].SPINNER_STOPPED)})),n.doneFunc([])},"4000")},searchInKLab:function(){if(!this.suggestionShowed&&!this.fuzzyMode)if(this.parenthesisDepth>0)this.$q.notify({message:this.$t("messages.parenthesisAlertText"),type:"warning",icon:"mdi-alert",timeout:2e3});else if(this.isCrossingIDL)this.$q.dialog({title:this.$t("label.IDLAlertTitle"),message:this.$t("messages.IDLAlertText"),color:"mc-red"}).catch(function(){});else{if(this.acceptedTokens.length>0){if(this.engineEventsCount>0)return this.$emit("busy-search"),void this.$q.notify({message:this.$t("messages.resourcesValidating"),type:"warning",icon:"mdi-alert",timeout:2e3});var e=this.acceptedTokens.map(function(e){return e.id}).join(" ");this.sendStompMessage(l["a"].OBSERVATION_REQUEST({urn:e,contextId:this.contextId,searchContextId:null},this.$store.state.data.session).body);var t=this.acceptedTokens.map(function(e){return e.label}).join(" ");this.setContextCustomLabel(this.$t("messages.waitingObservationInit",{observation:t})),this.$q.notify({message:this.$t("label.askForObservation",{urn:t}),type:"info",icon:"mdi-information",timeout:2e3})}else console.info("Nothing to search for");this.searchEnd({})}},searchEnd:function(e){var t=e.noStore,n=void 0!==t&&t,i=e.noDelete,o=void 0!==i&&i;if(!this.suggestionShowed){if(this.acceptedTokens.length>0){if(o)return;n||this.storePreviousSearch({acceptedTokens:this.acceptedTokens.slice(0),searchContextId:this.searchContextId,searchRequestId:this.searchRequestId})}this.searchContextId=null,this.searchRequestId=0,this.doneFunc=null,this.result=null,this.acceptedTokens=[],this.searchHistoryIndex=-1,this.actualSearchString="",this.scrolled=0,this.noSearch=!1,this.freeText=!1,this.setFuzzyMode(!1),this.setLargeMode(0),this.parenthesisDepth=0,this.last=!1,this.searchStop()}},resetSearchInput:function(){var e=this;this.$nextTick(function(){e.actualToken=e.actualSearchString,e.inputSearchColor="black"})},searchHistoryEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(""===this.actualToken&&this.searchHistory.length>0&&(0===this.acceptedTokens.length||this.searchHistoryIndex>=0)&&this.searchHistory.length>0&&(e>0||this.searchHistoryIndex>0)&&this.searchHistoryIndex+e0&&void 0!==arguments[0]?arguments[0]:"";return(""!==t||0===this.acceptedTokens.length)&&0===this.searchInput.$refs.input.selectionStart&&(this.search(t,function(n){e.autocompleteEl.__clearSearch(),Array.isArray(n)&&n.length>0?(e.autocompleteEl.results=n,He["a"].nextTick(function(){e.autocompleteEl.__showResults(),""!==t&&(e.autocompleteEl.keyboardIndex=0)})):e.autocompleteEl.hide()}),!0)},deleteLastToken:function(){if(0!==this.acceptedTokens.length){var e=this.acceptedTokens.pop();this.searchHistoryIndex=-1,this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:e.matchIndex,matchId:e.id,added:!1},this.$store.state.data.session).body)}},charReceived:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"ArrowUp"===e?this.searchHistoryEvent(1):"ArrowDown"===e?this.searchHistoryEvent(-1):" "===e?this.askForSuggestion():(Object(Xe["h"])(e)&&this.setFuzzyMode(!0),this.actualSearchString=t?this.actualSearchString+e:e,-1!==st.indexOf(e)&&this.askForSuggestion(e))}}),watch:{actualSearchString:function(){this.resetSearchInput()},searchResult:function(e){var t=this;if(!this.searchInApp){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var n=e.requestId,i=e.contextId;if(null===this.searchContextId)this.searchContextId=i;else if(i!==this.searchContextId)return void console.warn("Something strange was happened: differents search context ids:\n\n actual: ".concat(this.searchContextId," / received: ").concat(i));if(this.searchRequestId===n){var o;null!==this.result&&this.result.requestId===n&&(o=e.matches).push.apply(o,q()(this.result.matches)),this.result=e;var r=this.result,a=r.matches,l=r.error,u=r.errorMessage,d=r.parenthesisDepth,h=r.last;if(this.parenthesisDepth=d,this.last=h,l)this.setSpinner(s()({},c["G"].SPINNER_ERROR,{owner:this.$options.name,errorMessage:u}));else{var p=[];a.forEach(function(e){var n=c["u"][e.matchType];if("undefined"!==typeof n){var i=n;if(null!==e.mainSemanticType){var o=c["E"][e.mainSemanticType];"undefined"!==typeof o&&(i=o)}if("SEPARATOR"===e.matchType)p.push({value:e.name,label:e.name,labelLines:1,rgb:i.rgb,selected:!1,disable:!0,separator:!0});else{var r=e.state?e.state:null,a=null!==r?Object(Ue["m"])(e.state):null;p.push(s()({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:i.symbol,leftInverted:!0,leftColor:i.color,rgb:i.rgb,id:e.id,index:t.acceptedTokens.length+1,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1,nextTokenClass:e.nextTokenClass},null!==a&&{rightIcon:a.icon,rightTextColor:"state-".concat(a.tooltip),rightTooltip:{state:a.tooltip,title:e.name,content:e.extendedDescription||e.description}}))}}else console.warn("Unknown type: ".concat(e.matchType))}),this.fuzzyMode||0!==p.length||this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),this.setSpinner(s()({},c["G"].SPINNER_STOPPED,{owner:this.$options.name})),He["a"].nextTick(function(){t.doneFunc(p),t.autocompleteEl.keyboardIndex=0})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(n,"\n"))}},acceptedTokens:function(){var e=this;He["a"].nextTick(function(){var t=e.searchDiv.scrollWidth;e.scrolled!==t&&(e.searchDiv.scrollLeft=t,e.scrolled=t)})},searchIsFocused:function(e){e?(this.searchInput.focus(),this.acceptedTokens.forEach(function(e){e.selected=!1})):this.searchInput.blur()},searchLostChar:function(e){null!==e&&""!==e&&(this.charReceived(e,!0),this.resetSearchLostChar())}},beforeMount:function(){this.setFuzzyMode(!1)},mounted:function(){var e=this;this.searchDiv=this.$refs["ks-container"],this.searchDivInternal=document.getElementById("ks-internal-container"),this.searchInput=this.$refs["ks-search-input"],this.autocompleteEl=this.$refs["ks-autocomplete"],null!==this.searchLostChar&&""!==this.searchLostChar?this.charReceived(this.searchLostChar,!1):this.actualSearchString="",this.inputSearchColor="black",this.setLargeMode(0),this.$nextTick(function(){e.searchDivInitialSize=e.searchDiv.clientWidth})},updated:function(){var e=document.querySelectorAll("#ks-autocomplete .q-item-side-right");e.forEach(function(e){e.setAttribute("title","lalala")})},beforeDestroy:function(){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null)}},ct=at,lt=(n("aff7"),Object(y["a"])(ct,qe,je,!1,null,null,null));lt.options.__file="KlabSearch.vue";var ut=lt.exports,dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"st-container",class:{marquee:e.needMarquee<0,"hover-active":e.hoverActive}},[n("div",{ref:"st-text",staticClass:"st-text",class:{"st-accentuate":e.accentuate,"st-placeholder":e.placeholderStyle},style:{left:(e.needMarquee<0?e.needMarquee:0)+"px","animation-duration":e.animationDuration+"s"}},[e._v("\n "+e._s(e.text)+"\n ")]),e.withEdge?n("div",{staticClass:"st-edges",style:{"background-color":e.getBGColor(e.spinnerColor,e.edgeOpacity)}}):e._e()])},ht=[];dt._withStripped=!0;var pt={name:"ScrollingText",props:{hoverActive:{type:Boolean,default:!1},initialText:{type:String,default:""},duration:{type:Number,default:10},accentuate:{type:Boolean,default:!1},edgeOpacity:{type:Number,default:1},withEdge:{type:Boolean,default:!0},placeholderStyle:{type:Boolean,default:!1}},data:function(){return{needMarquee:0,animationDuration:this.duration,text:this.initialText,edgeBgGradient:""}},computed:s()({},Object(a["c"])("view",["spinnerColor"])),methods:{isNeededMarquee:function(){var e=this.$refs["st-text"];return"undefined"===typeof e?0:e.offsetWidth-e.scrollWidth},changeText:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.needMarquee=0,e!==this.text&&(this.text=null===e?"":e,this.$nextTick(function(){null!==n&&(t.animationDuration=n),t.needMarquee=t.isNeededMarquee(t.ref)}))},getBGColor:function(e,t){return"rgba(".concat(e.rgb.r,",").concat(e.rgb.g,",").concat(e.rgb.b,", ").concat(t,")")},getEdgeGradient:function(){return"linear-gradient(to right,\n ".concat(this.getBGColor(this.spinnerColor,1)," 0,\n ").concat(this.getBGColor(this.spinnerColor,0)," 5%,\n ").concat(this.getBGColor(this.spinnerColor,0)," 95%,\n ").concat(this.getBGColor(this.spinnerColor,1)," 100%)")}},watch:{spinnerColor:function(){this.edgeBgGradient=this.getEdgeGradient()}},mounted:function(){var e=this;this.$nextTick(function(){e.needMarquee=e.isNeededMarquee(e.ref)}),this.edgeBgGradient=this.getEdgeGradient()}},ft=pt,mt=(n("2590"),Object(y["a"])(ft,dt,ht,!1,null,null,null));mt.options.__file="ScrollingText.vue";var gt=mt.exports,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-btn",{staticClass:"mcm-menubutton absolute-top-right",attrs:{icon:e.interactiveMode?"mdi-play":"mdi-chevron-right",color:e.interactiveMode?"mc-main-light":"black",size:"sm",round:"",flat:""}},[e.isVisible?n("q-popover",{ref:"mcm-main-popover",attrs:{anchor:"top right",self:"top left",persistent:!1,"max-height":"95vh"}},[n("q-btn",{staticClass:"mcm-icon-close-popover",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closeMenuPopups}}),n("q-list",{attrs:{dense:""}},[n("q-list-header",{staticStyle:{padding:"0 16px 0 16px","min-height":"0"}},[e._v("\n "+e._s(e.$t("label.mcMenuContext"))+"\n "),e.hasContext?n("q-icon",{staticClass:"mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(t){e.copyContextES(t,e.contextEncodedShape)}}},[n("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1):e._e()],1),n("q-item-separator"),e.hasContext?n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",on:{click:function(t){e.closeAndCall(null)}}},[n("div",{staticClass:"klab-item mdi mdi-star-four-points-outline klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.newContext")))])])])]):e._e(),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",class:{"klab-not-available":0===e.contextsHistory.length},on:{click:e.toggleContextsHistory}},[n("div",{staticClass:"klab-item mdi mdi-history klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.previousContexts")))]),n("div",[n("q-icon",{staticClass:"mcm-contextbutton",attrs:{name:"mdi-chevron-right",color:"black",size:"sm"}}),n("q-popover",{ref:"mcm-contexts-popover",attrs:{anchor:"top right",self:"top left",offset:[18,28]}},[n("q-list",{attrs:{dense:""}},e._l(e.contextsHistory,function(t){return n("q-item",{key:t.id},[n("q-item-main",[n("div",{staticClass:"mcm-container mcm-context-label"},[n("div",{staticClass:"klab-menuitem",class:[t.id===e.contextId?"klab-no-clickable":"klab-clickable"],on:{click:function(n){e.closeAndCall(t.id)}}},[n("div",{staticClass:"klab-item klab-large-text",class:{"mcm-actual-context":t.id===e.contextId},style:{"font-style":e.contextTaskIsAlive(t.id)?"italic":"normal"},on:{mouseover:function(n){e.tooltipIt(n,t.id)}}},[e._v("\n "+e._s(e.formatContextTime(t))+": "+e._s(t.label)+"\n "),n("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.needTooltip(t.id),expression:"needTooltip(context.id)"}],attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(t.label)+"\n ")])],1)]),n("q-icon",{staticClass:"absolute-right mcm-copy-icon",attrs:{name:"mdi-content-copy"},nativeOn:{click:function(n){e.copyContextES(n,t.spatialProjection+" "+t.encodedShape)}}},[n("q-tooltip",{attrs:{delay:1e3,anchor:"center right",self:"center left",offset:[10,10]}},[e._v("\n "+e._s(e.$t("tooltips.copyEncodedShapeToClipboard"))+"\n ")])],1)],1)])],1)}))],1)],1)])])]),e.hasContext?e._e():[n("q-item",[n("q-item-main",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",class:[e.isDrawMode?"klab-select":""],on:{click:function(t){e.startDraw()}}},[n("div",{staticClass:"klab-item mdi mdi-vector-polygon klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.drawCustomContext")))])])])])],1),n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuScale")))]),n("q-item-separator"),n("q-item",[n("q-item-main",[n("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"space",editable:!0,full:!0}})],1)],1),n("q-item",[n("q-item-main",[n("scale-reference",{attrs:{width:"180px",light:!0,scaleType:"time",editable:!0,full:!0}})],1)],1)],n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuOption")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.interactiveMode")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.interactiveModeModel,callback:function(t){e.interactiveModeModel=t},expression:"interactiveModeModel"}})],1)],1)]),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.viewCoordinates")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.coordinates,callback:function(t){e.coordinates=t},expression:"coordinates"}})],1)],1)]),e.hasContext?e._e():[n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuSettings")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.optionSaveLocation")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveLocationVar,callback:function(t){e.saveLocationVar=t},expression:"saveLocationVar"}})],1)],1)]),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem"},[n("div",{staticClass:"klab-item"},[e._v(e._s(e.$t("label.saveDockedStatus")))])]),n("q-item-side",{attrs:{right:""}},[n("q-toggle",{attrs:{color:"mc-main"},model:{value:e.saveDockedStatusVar,callback:function(t){e.saveDockedStatusVar=t},expression:"saveDockedStatusVar"}})],1)],1)])],n("q-list-header",{staticStyle:{padding:"8px 16px 0 16px","min-height":"0"}},[e._v(e._s(e.$t("label.mcMenuHelp")))]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"mcm-container"},[n("div",{staticClass:"klab-menuitem klab-clickable",on:{click:e.askTutorial}},[n("div",{staticClass:"klab-item klab-font klab-im-logo klab-icon"}),n("div",{staticClass:"klab-item klab-text klab-only-text"},[e._v(e._s(e.$t("label.showHelp")))])])])]),n("q-item-separator"),n("q-item",[n("div",{staticClass:"klab-version"},[e._v("Version: "+e._s(e.$store.state.data.packageVersion)+"/ Build "+e._s(e.$store.state.data.packageBuild))])])],2)],1):e._e()],1)},bt=[];vt._withStripped=!0;var yt=n("c1df"),_t=n.n(yt),Mt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sr-container",class:[e.light?"sr-light":"sr-dark","vertical"===e.orientation?"sr-vertical":""],style:{width:e.width},on:{click:function(t){e.scaleEditing=e.editable}}},[e.hasScale?n("div",{staticClass:"sr-scalereference klab-menuitem",class:{"sr-full":e.full,"klab-clickable":e.editable}},[e.full?n("div",{staticClass:"sr-locked klab-item mdi sr-icon",class:[e.isScaleLocked[e.scaleType]?"mdi-lock-outline":"mdi-lock-open-outline"],on:{click:function(t){t.preventDefault(),e.lockScale(t)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.isScaleLocked[e.scaleType]?e.$t("label.clickToUnlock"):e.$t("label.clickToLock")))])],1):e._e(),n("div",{staticClass:"sr-editables",style:{cursor:e.editable?"pointer":"default"}},[n("div",{staticClass:"sr-scaletype klab-item",class:["mdi "+e.type+" sr-icon"]}),n("div",{staticClass:"sr-description klab-item"},[e._v(e._s(e.description))]),n("div",{staticClass:"sr-spacescale klab-item"},[e._v(e._s(e.scale))]),e.editable?n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e.scaleType===e.SCALE_TYPE.ST_TIME&&""!==e.timeLimits?n("div",{staticClass:"sr-tooltip sr-time-tooltip",domProps:{innerHTML:e._s(e.timeLimits)}}):e._e(),n("div",{staticClass:"sr-tooltip"},[e._v(e._s(e.$t("label.clickToEditScale")))])]):e._e()],1)]):n("div",{staticClass:"sr-no-scalereference"},[n("p",[e._v(e._s(e.$t("label.noScaleReference")))])])])},wt=[];Mt._withStripped=!0;var Ct={name:"ScaleReference",props:{scaleType:{type:String,validator:function(e){return-1!==[c["A"].ST_SPACE,c["A"].ST_TIME].indexOf(e)},default:c["A"].ST_SPACE},useNext:{type:Boolean,default:!1},width:{type:String,default:"150px"},light:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},full:{type:Boolean,default:!1},orientation:{type:String,default:"horizontal"}},data:function(){return{SCALE_TYPE:c["A"]}},computed:s()({},Object(a["c"])("data",["scaleReference","isScaleLocked","nextScale"]),{scaleObj:function(){return this.useNext?this.nextScale:this.scaleReference},resolution:function(){return this.scaleType===c["A"].ST_SPACE?this.scaleObj.spaceResolutionConverted:this.scaleObj.timeUnit},unit:function(){return this.scaleType===c["A"].ST_SPACE?this.scaleObj.spaceUnit:this.scaleObj.timeUnit},type:function(){return this.scaleType===c["A"].ST_SPACE?"mdi-grid":"mdi-clock-outline"},description:function(){return this.scaleType===c["A"].ST_SPACE?this.scaleObj.spaceResolutionDescription:null===this.scaleObj.timeUnit?"YEAR":this.scaleObj.timeUnit},scale:function(){var e=this;return this.scaleType===c["A"].ST_SPACE?this.scaleObj.spaceScale:this.unit?c["B"].find(function(t){return t.value===e.unit}).index:this.scaleObj.timeScale},hasScale:function(){return this.useNext?null!==this.nextScale:null!==this.scaleReference},timeLimits:function(){return 0===this.scaleObj.start&&0===this.scaleObj.end?"":"".concat(_t()(this.scaleObj.start).format("L HH:mm:ss"),"
").concat(_t()(this.scaleObj.end).format("L HH:mm:ss"))},scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleType})}}}),methods:s()({},Object(a["b"])("data",["setScaleLocked"]),{lockScale:function(e){e.stopPropagation();var t=!this.isScaleLocked[this.scaleType];this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:this.scaleType===c["A"].ST_SPACE?c["F"].LOCK_SPACE:c["F"].LOCK_TIME,value:t},this.$store.state.data.session).body),this.setScaleLocked({scaleType:this.scaleType,scaleLocked:t}),t||this.$eventBus.$emit(c["h"].SEND_REGION_OF_INTEREST)}})},St=Ct,At=(n("cf611"),Object(y["a"])(St,Mt,wt,!1,null,null,null));At.options.__file="ScaleReference.vue";var Et=At.exports,Ot=n("2cee"),Lt=n("1442"),Tt={name:"MainControlMenu",mixins:[Ot["a"],ke],components:{ScaleReference:Et},data:function(){return{}},computed:s()({},Object(a["c"])("data",["contextsHistory","hasContext","contextId","contextReloaded","contextEncodedShape","interactiveMode","session"]),Object(a["d"])("stomp",["subscriptions"]),Object(a["c"])("stomp",["lastActiveTask","contextTaskIsAlive"]),Object(a["c"])("view",["searchIsActive","isDrawMode","isScaleEditing","isMainControlDocked","viewCoordinates"]),Object(a["d"])("view",["saveLocation","saveDockedStatus"]),{saveLocationVar:{get:function(){return this.saveLocation},set:function(e){this.changeSaveLocation(e)}},saveDockedStatusVar:{get:function(){return this.saveDockedStatus},set:function(e){this.changeSaveDockedStatus(e)}},interactiveModeModel:{get:function(){return this.interactiveMode},set:function(e){this.setInteractiveMode(e)}},coordinates:{get:function(){return this.viewCoordinates},set:function(e){this.setViewCoordinates(e)}},isVisible:function(){return!this.isDrawMode&&!this.isScaleEditing}}),methods:s()({},Object(a["b"])("data",["setInteractiveMode"]),Object(a["b"])("view",["setDrawMode","setViewCoordinates"]),{startDraw:function(){this.setDrawMode(!this.isDrawMode)},toggleContextsHistory:function(){this.contextsHistory.length>0&&this.$refs["mcm-contexts-popover"].toggle()},closeAndCall:function(){var e=W()(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.contextId!==t){e.next=2;break}return e.abrupt("return");case 2:this.closeMenuPopups(),this.clearTooltip(),this.loadOrReloadContext(t,this.closeMenuPopups());case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),formatContextTime:function(e){var t=e.lastUpdate;if(0===t&&(t=e.creationTime),t&&null!==t){var n=_t()(t),i=0===_t()().diff(n,"days");return i?n.format("HH:mm:ss"):n.format("YYYY/mm/dd HH:mm:ss")}return""},changeSaveLocation:function(e){this.$store.commit("view/SET_SAVE_LOCATION",e,{root:!0}),V["a"].set(c["O"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),e||(V["a"].set(c["O"].COOKIE_SAVELOCATION,e,{expires:30,path:"/",secure:!0}),V["a"].set(c["O"].COOKIE_MAPDEFAULT,{center:Lt["b"].center,zoom:Lt["b"].zoom},{expires:30,path:"/",secure:!0}))},changeSaveDockedStatus:function(e){this.$store.commit("view/SET_SAVE_DOCKED_STATUS",e,{root:!0}),e?V["a"].set(c["O"].COOKIE_DOCKED_STATUS,this.isMainControlDocked,{expires:30,path:"/",secure:!0}):V["a"].remove(c["O"].COOKIE_DOCKED_STATUS)},copyContextES:function(e,t){e.stopPropagation(),Object(Xe["b"])(t),this.$q.notify({message:Object(Xe["a"])(this.$t("messages.customCopyToClipboard",{what:this.$t("label.context")})),type:"info",icon:"mdi-information",timeout:500})},closeMenuPopups:function(){this.$refs["mcm-main-popover"]&&this.$refs["mcm-main-popover"].hide(),this.$refs["mcm-contexts-popover"]&&this.$refs["mcm-contexts-popover"].hide()},sendInteractiveModeState:function(e){this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["F"].INTERACTIVE_MODE,value:e},this.session).body)},viewerClickListener:function(){this.isDrawMode||this.closeMenuPopups()},askTutorial:function(){this.$eventBus.$emit(c["h"].NEED_HELP),this.closeMenuPopups()}}),watch:{hasContext:function(){this.closeMenuPopups()},searchIsActive:function(e){e&&this.closeMenuPopups()},interactiveModeModel:function(e){this.sendInteractiveModeState(e)}},mounted:function(){this.$eventBus.$on(c["h"].VIEWER_CLICK,this.viewerClickListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLICK,this.viewerClickListener)}},xt=Tt,Rt=(n("6774"),Object(y["a"])(xt,vt,bt,!1,null,null,null));Rt.options.__file="MainControlMenu.vue";var kt=Rt.exports,zt={name:"KlabSearchBar",components:{KlabSpinner:M,KlabSearch:ut,ScrollingText:gt,MainControlMenu:kt},mixins:[rt],data:function(){return{searchAsked:!1,busyInformed:!1,searchAskedInterval:null}},computed:s()({},Object(a["c"])("data",["hasContext","contextLabel","contextCustomLabel","isScaleLocked"]),Object(a["c"])("view",["spinnerColor","searchIsActive","searchIsFocused","hasMainControl","statusTextsString","statusTextsLength","fuzzyMode","largeMode","isDocked","engineEventsCount"]),{isDocked:function(){return!this.hasMainControl},mainContextLabel:function(){return this.contextLabel?this.contextLabel:this.contextCustomLabel}}),methods:s()({},Object(a["b"])("view",["setMainViewer","searchStart","searchFocus","searchStop","setSpinner"]),{getLargeModeWidth:function(){return"".concat((window.innerWidth||document.body.clientWidth)-c["t"].LEFTMENU_MINSIZE,"px")},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},showSuggestions:function(e){1===e.targetTouches.length&&(e.preventDefault(),this.searchIsActive?this.searchIsFocused?this.$refs["klab-search"].searchEnd({noDelete:!1}):this.searchFocus({char:" ",focused:!0}):this.searchStart(" "))},emitSpinnerDoubleclick:function(){this.$eventBus.$emit(c["h"].SPINNER_DOUBLE_CLICK)},askForSuggestionsListener:function(e){this.showSuggestions(e)},busySearch:function(){this.searchAsked=!0,this.updateBusy()},updateBusy:function(){var e=this;null!==this.searchAskedInterval&&(clearTimeout(this.searchAskedInterval),this.searchAskedInterval=null),this.searchAsked&&(0===this.engineEventsCount?this.searchAskedInterval=setTimeout(function(){e.searchAsked=!1,e.busyInformed=!1,e.setSpinner(s()({},c["G"].SPINNER_STOPPED,{owner:"BusySearch"}))},600):this.busyInformed||(this.setSpinner(s()({},c["G"].SPINNER_LOADING,{owner:"BusySearch"})),this.busyInformed=!0))}}),watch:{statusTextsString:function(e){e.includes(c["p"].UNKNOWN_SEARCH_OBSERVATION)&&(e=e.replace(c["p"].UNKNOWN_SEARCH_OBSERVATION,this.$t("messages.unknownSearchObservation"))),this.$refs["st-status-text"].changeText(e,5*this.statusTextsLength)},mainContextLabel:function(e){this.$refs["st-context-text"]&&this.$refs["st-context-text"].changeText(e)},hasContext:function(e){e&&this.setSpinner(s()({},c["G"].SPINNER_STOPPED,{owner:"KlabSearch"}))},engineEventsCount:function(){this.updateBusy()}},mounted:function(){this.$eventBus.$on(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener),this.updateBusy()},beforeDestroy:function(){this.$eventBus.$off(c["h"].ASK_FOR_SUGGESTIONS,this.askForSuggestionsListener)}},Pt=zt,Nt=(n("19f2"),Object(y["a"])(Pt,De,Be,!1,null,null,null));Nt.options.__file="KlabSearchBar.vue";var It=Nt.exports,Dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.contextsCount>1?n("div",{staticClass:"kbc-container"},e._l(e.contextsLabels,function(t,i){return n("span",{key:t.id,on:{click:function(n){e.load(t.contextId,i)}}},[e._v(e._s(t.label))])})):e._e()},Bt=[];Dt._withStripped=!0;var qt={name:"KlabBreadcrumbs",mixins:[ke],computed:s()({},Object(a["c"])("data",["contextsLabels","contextsCount","contextById"])),methods:s()({},Object(a["b"])("data",["loadContext"]),{load:function(e,t){if(t!==this.contextsCount-1){var n,i=this.$store.state.data.observations.find(function(t){return t.id===e});n=i||this.contextById(e),this.sendStompMessage(l["a"].CONTEXTUALIZATION_REQUEST(s()({contextId:n.id},n.contextId&&{parentContext:n.contextId}),this.$store.state.data.session).body),this.loadContext(e)}}})},jt=qt,Wt=(n("6c8f"),Object(y["a"])(jt,Dt,Bt,!1,null,null,null));Wt.options.__file="KlabBreadcrumbs.vue";var Ft=Wt.exports,Ht=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"klab-tree-pane"}},[n("klab-splitter",{attrs:{margin:0,hidden:e.hasObservationInfo?"":"right"},on:{"close-info":e.onCloseInfo}},[n("div",{staticClass:"full-height",attrs:{slot:"left-pane",id:"ktp-left"},slot:"left-pane"},[e.hasTree?n("div",{ref:"kt-out-container",class:{"ktp-loading":e.taskOfContextIsAlive,"with-splitter":e.hasObservationInfo},attrs:{id:"kt-out-container"}},[n("q-resize-observable",{on:{resize:e.outContainerResized}}),[n("klab-tree",{ref:"kt-user-tree",style:{"max-height":!!e.userTreeMaxHeight&&e.userTreeMaxHeight+"px"},attrs:{id:"kt-user-tree",tree:e.userTree,"is-user":!0},on:{resized:e.recalculateTreeHeight}})],n("details",{directives:[{name:"show",rawName:"v-show",value:e.mainTreeHasNodes(),expression:"mainTreeHasNodes()"}],attrs:{id:"kt-tree-details",open:e.taskOfContextIsAlive||e.mainTreeHasNodes(!0)||e.detailsOpen}},[n("summary",[n("q-icon",{attrs:{name:"mdi-dots-horizontal",id:"ktp-main-tree-arrow"}},[n("q-tooltip",{attrs:{offset:[0,0],self:"top left",anchor:"bottom right"}},[e._v(e._s(e.detailsOpen?e.$t("tooltips.displayMainTree"):e.$t("tooltips.hideMainTree")))])],1)],1),n("klab-tree",{ref:"kt-tree",style:{"max-height":!!e.treeHeight&&e.treeHeight+"px"},attrs:{id:"kt-tree",tree:e.tree,"is-user":!1},on:{resized:e.recalculateTreeHeight}})],1)],2):e.hasContext?n("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noObservation"))+"\n ")]):n("div",{staticClass:"q-ma-md text-center text-white ktp-no-tree"},[e._v("\n "+e._s(e.$t("label.noContext"))+"\n ")])]),n("div",{staticClass:"full-height",attrs:{slot:"right-pane",id:"ktp-right"},slot:"right-pane"},[e.hasObservationInfo?n("observation-info",{on:{shownode:function(t){e.informTree(t)}}}):e._e()],1)])],1)},Xt=[];Ht._withStripped=!0;n("5df2");var Ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"splitter-container full-height"},[!e.hidden&&e.controllers?n("div",{staticClass:"splitter-controllers"},[e.onlyOpenClose?e._e():[n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-left",icon:"mdi-arrow-left"},nativeOn:{click:function(t){e.percent=0}}}),n("q-btn",{staticClass:"no-padding splitter-actions rotate-90",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-middle",icon:"mdi-format-align-middle"},nativeOn:{click:function(t){e.percent=50}}}),n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-to-right",icon:"mdi-arrow-right"},nativeOn:{click:function(t){e.percent=100}}})],n("q-btn",{staticClass:"no-padding splitter-actions",style:{color:e.controlsColor},attrs:{flat:"",round:"",size:"sm",id:"splitter-close",icon:"mdi-close"},nativeOn:{click:function(t){e.$emit("close-info")}}})],2):e._e(),n("div",e._g({staticClass:"vue-splitter",style:{cursor:e.cursor,flexDirection:e.flexDirection}},e.onlyOpenClose?{}:{mouseup:e.onUp,mousemove:e.onMouseMove,touchmove:e.onMove,touchend:e.onUp}),[n("div",{staticClass:"left-pane splitter-pane",style:e.leftPaneStyle},[e._t("left-pane")],2),e.hidden?e._e():[e.onlyOpenClose?e._e():n("div",e._g({staticClass:"splitter",class:{active:e.active},style:e.splitterStyle},e.onlyOpenClose?{}:{mousedown:e.onDown,touchstart:e.onDown})),n("div",{staticClass:"right-pane splitter-pane",style:e.rightPaneStyle},[e._t("right-pane")],2)]],2)])},Vt=[];Ut._withStripped=!0;var Gt={props:{margin:{type:Number,default:10},horizontal:{type:Boolean,default:!1},hidden:{type:String,default:""},splitterColor:{type:String,default:"rgba(0, 0, 0, 0.2)"},controlsColor:{type:String,default:"rgba(192, 192, 192)"},splitterSize:{type:Number,default:3},controllers:{type:Boolean,default:!0},onlyOpenClose:{type:Boolean,default:!0}},data:function(){return{active:!1,percent:"left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50,hasMoved:!1}},computed:{flexDirection:function(){return this.horizontal?"column":"row"},splitterStyle:function(){return this.horizontal?{height:"".concat(this.splitterSize,"px"),cursor:"ns-resize","background-color":this.splitterColor}:{width:"".concat(this.splitterSize,"px"),cursor:"ew-resize","background-color":this.splitterColor}},leftPaneStyle:function(){return this.horizontal?{height:"".concat(this.percent,"%")}:{width:"".concat(this.percent,"%")}},rightPaneStyle:function(){return this.horizontal?{height:"".concat(100-this.percent,"%")}:{width:"".concat(100-this.percent,"%")}},cursor:function(){return this.active?this.horizontal?"ns-resize":"ew-resize":""}},methods:{onDown:function(){this.active=!0,this.hasMoved=!1},onUp:function(){this.active=!1},onMove:function(e){var t=0,n=e.currentTarget,i=0;if(this.active){if(this.horizontal){while(n)t+=n.offsetTop,n=n.offsetParent;i=Math.floor((e.pageY-t)/e.currentTarget.offsetHeight*1e4)/100}else{while(n)t+=n.offsetLeft,n=n.offsetParent;i=Math.floor((e.pageX-t)/e.currentTarget.offsetWidth*1e4)/100}i>this.margin&&i<100-this.margin&&(this.percent=i),this.$emit("splitterresize"),this.hasMoved=!0}},onMouseMove:function(e){0!==e.buttons&&0!==e.which||(this.active=!1),this.onMove(e)}},watch:{hidden:function(){this.percent="left"===this.hidden?0:"right"===this.hidden?100:this.onlyOpenClose?0:50}}},Kt=Gt,$t=(n("1848"),Object(y["a"])(Kt,Ut,Vt,!1,null,null,null));$t.options.__file="KlabSplitter.vue";var Yt=$t.exports,Jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kt-container relative-position klab-menu-component",class:{"kt-drag-enter":e.dragEnter>0&&!e.dragStart},on:{dragenter:e.onDragEnter,dragover:e.onDragOver,dragleave:e.onDragLeave,drop:e.onDrop}},[n("div",{staticClass:"kt-tree-container simplebar-vertical-only",on:{contextmenu:e.rightClickHandler}},[n("klab-q-tree",{ref:"klab-tree",attrs:{nodes:e.tree,"node-key":"id",ticked:e.ticked,selected:e.selected,expanded:e.expanded,"tick-strategy":"strict","text-color":"white","control-color":"white",color:"white",dark:!0,noNodesLabel:e.$t("label.noNodes"),"double-click-function":e.doubleClick,filter:e.isUser?"user":"tree",filterMethod:e.filterUser,noFilteredResultLabel:e.isUser?e.taskOfContextIsAlive?e.$t("messages.treeNoResultUserWaiting"):e.$t("messages.treeNoResultUser"):e.$t("messages.treeNoResultNoUser")},on:{"update:ticked":function(t){e.ticked=t},"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},click:function(t){e.$refs["observations-context"].close()}},scopedSlots:e._u([{key:"header-default",fn:function(t){return n("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[n("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":"",e.hasObservationInfo&&e.observationInfo.id===t.node.id?"node-selected":"",null!==e.cleanTopLayerId&&e.cleanTopLayerId===t.node.id?"node-on-top":"",e.checkObservationsOnTop(t.node.id)?"node-on-top":"",e.isUser?"node-user-element":"node-tree-element",t.node.needUpdate?"node-updatable":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(n){e.onDragStart(n,t.node.id)},dragend:e.onDragEnd}},[t.node.observationType===e.OBSERVATION_CONSTANTS.TYPE_PROCESS?n("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-buddhism",size:"17px"}}):t.node.noTick?n("q-icon",{attrs:{name:"mdi-checkbox-blank-circle"}}):e._e(),e._v("\n "+e._s(t.node.label)+"\n "),t.node.dynamic?n("q-icon",{staticClass:"node-icon-time",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-clock-outline",color:"mc-green"}}):n("q-icon",{staticClass:"node-icon-time node-loading-layer",class:{"animate-spin":t.node.loading},attrs:{name:"mdi-loading"}}),n("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.clearObservable(t.node.observable)))])],1),t.node.childrenCount>0||t.node.children.length>0?[n("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])]:e._e(),t.node.empty||t.node.noTick?e._e():n("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up",disable:""}},[n("q-tooltip",{staticClass:"kt-q-tooltip",attrs:{delay:300,offset:[0,8],self:"bottom left",anchor:"top left"}},[e._v(e._s(e.$t("tooltips.uploadData")))])],1),t.node.empty||t.node.noTick?e._e():n("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(n){e.askForOutputFormat(n,t.node.id,t.node.exportFormats)}}}),"undefined"!==typeof t.node.idx?[n("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e()],2)}},{key:"header-folder",fn:function(t){return n("div",{class:{"node-disabled":t.node.disabled&&!t.node.noTick}},[n("span",{directives:[{name:"ripple",rawName:"v-ripple",value:t.node.main,expression:"prop.node.main"}],staticClass:"node-element",class:[t.node.main?"node-emphasized":""],attrs:{draggable:t.node.parentId===e.contextId,id:"node-"+t.node.id},on:{dragstart:function(n){e.onDragStart(n,t.node.id)},dragend:e.onDragEnd}},[e._v(e._s(t.node.label))]),n("q-btn",{staticClass:"kt-upload",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-up"}}),n("q-btn",{staticClass:"kt-download",attrs:{round:"",flat:"",size:"sm",icon:"mdi-arrow-down"},nativeOn:{click:function(n){e.askForOutputFormat(n,t.node.id,t.node.exportFormats,!0)}}}),"undefined"!==typeof t.node.idx?[n("q-chip",{staticClass:"node-chip transparent",style:{right:t.node.childrenCount>0?e.calculateRightPosition([t.node.childrenCount],"25px"):t.node.children.length>0?e.calculateRightPosition([t.node.children.length],"25px"):""},attrs:{small:"",dense:"","text-color":"grey-9"}},[e._v("\n "+e._s(e.$t("label.itemCounter",{loaded:t.node.idx+1,total:t.node.siblingsCount}))+"\n ")])]:e._e(),n("q-chip",{staticClass:"node-chip",class:{"node-substituible":!t.node.empty&&!t.node.noTick},attrs:{color:"white",small:"",dense:"","text-color":"grey-7"}},[e._v(e._s(t.node.childrenCount?t.node.childrenCount:t.node.children.length))])],2)}},{key:"header-stub",fn:function(t){return n("div",{staticClass:"node-stub"},[n("span",{staticClass:"node-element node-stub"},[n("q-icon",{staticClass:"node-no-tick",attrs:{name:"mdi-checkbox-blank-circle"}}),e._v(e._s(e.$t("messages.loadingChildren"))+"\n ")],1)])}}])},[e._v("\n >\n ")])],1),n("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),n("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Qt=[];Jt._withStripped=!0;n("f559"),n("6b54"),n("b54a");var Zt=n("e4f9"),en=n("bffd"),tn=n("b70a"),nn=n("525b"),on={name:"KlabQTree",extends:Zt["a"],props:{doubleClickTimeout:{type:Number,default:300},doubleClickFunction:{type:Function,default:null},noFilteredResultLabel:{type:String,default:null},checkClick:{type:Boolean,default:!0}},data:function(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[],timeouts:[]}},methods:{__blur:function(){document.activeElement&&document.activeElement.blur()},__getNode:function(e,t){var n=this,i=t[this.nodeKey],o=this.meta[i],r=t.header&&this.$scopedSlots["header-".concat(t.header)]||this.$scopedSlots["default-header"],s=o.isParent?this.__getChildren(e,t.children):[],a=s.length>0||o.lazy&&"loaded"!==o.lazy,c=t.body&&this.$scopedSlots["body-".concat(t.body)]||this.$scopedSlots["default-body"],l=r||c?this.__getSlotScope(t,o,i):null;return c&&(c=e("div",{staticClass:"q-tree-node-body relative-position"},[e("div",{class:this.contentClass},[c(l)])])),e("div",{key:i,staticClass:"q-tree-node",class:{"q-tree-node-parent":a,"q-tree-node-child":!a}},[e("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":o.link,"q-tree-node-selected":o.selected,disabled:o.disabled},on:{click:function(e){n.checkClick?e&&e.srcElement&&-1!==e.srcElement.className.indexOf("node-element")&&n.__onClick(t,o):n.__onClick(t,o)}}},["loading"===o.lazy?e(tn["a"],{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):a?e(Qe["a"],{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":o.expanded},props:{name:this.computedIcon},nativeOn:{click:function(e){n.__onExpandClick(t,o,e)}}}):null,e("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[o.hasTicking&&!o.noTick?e(nn["a"],{staticClass:"q-mr-xs",props:{value:o.indeterminate?null:o.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!o.tickable},on:{input:function(e){n.__onTickedClick(t,o,e)}}}):null,r?r(l):[this.__getNodeMedia(e,t),e("span",t[this.labelKey])]])]),a?e(en["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:o.expanded}],staticClass:"q-tree-node-collapsible",class:"text-".concat(this.color)},[c,e("div",{staticClass:"q-tree-children",class:{disabled:o.disabled}},s)])]):c])},__onClick:function(e,t){var n=this;null===this.doubleClickFunction?this.__onClickDefault(e,t):"undefined"===typeof this.timeouts["id".concat(e.id)]||null===this.timeouts["id".concat(e.id)]?this.timeouts["id".concat(e.id)]=setTimeout(function(){n.timeouts["id".concat(e.id)]=null,n.__onClickDefault(e,t)},this.doubleClickTimeout):(clearTimeout(this.timeouts["id".concat(e.id)]),this.timeouts["id".concat(e.id)]=null,this.doubleClickFunction(e,t))},__onClickDefault:function(e,t){this.__blur(),this.hasSelection?t.selectable&&this.$emit("update:selected",t.key!==this.selected?t.key:null):this.__onExpandClick(e,t),"function"===typeof e.handler&&e.handler(e)}},render:function(e){var t=this.__getChildren(e,this.nodes),n=this.classes.indexOf("klab-no-nodes");return 0===t.length&&-1===n?this.classes.push("klab-no-nodes"):0!==t.length&&-1!==n&&this.classes.splice(n,1),e("div",{staticClass:"q-tree",class:this.classes},0===t.length?this.filter?this.noFilteredResultLabel:this.noNodesLabel||this.$t("messages.treeNoNodes"):t)}},rn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-context-menu",{directives:[{name:"show",rawName:"v-show",value:e.enableContextMenu,expression:"enableContextMenu"}],ref:"observations-context",on:{hide:e.hide}},[n("q-list",{staticStyle:{"min-width":"150px"},attrs:{dense:"","no-border":""}},[e._l(e.itemActions,function(t,i){return t.enabled?[t.separator&&0!==i?n("q-item-separator",{key:t.actionId}):e._e(),!t.separator&&t.enabled?n("q-item",{key:t.actionId,attrs:{link:""},nativeOn:{click:function(n){e.askForAction(t.actionId)}}},[n("q-item-main",{attrs:{label:t.actionLabel}})],1):e._e(),t.separator||t.enabled?e._e():n("q-item",{key:t.actionId,attrs:{disabled:""}},[n("q-item-main",{attrs:{label:t.actionLabel}})],1)]:e._e()})],2)],1)},sn=[];rn._withStripped=!0;var an={name:"ObservationContextMenu",props:{observationId:{type:String,default:null}},data:function(){return{enableContextMenu:!1,itemActions:[],itemObservation:null}},methods:s()({},Object(a["b"])("data",["setContext","loadContext","setContextMenuObservationId"]),{initContextMenu:function(){var e=this,t=this.$store.state.data.observations.find(function(t){return t.id===e.observationId});t?(this.resetContextMenu(!1),t&&t.actions&&t.actions.length>1?(this.itemActions=t.actions.slice(),this.itemObservation=t):this.resetContextMenu(),t.observationType!==c["x"].TYPE_STATE&&t.observationType!==c["x"].TYPE_GROUP&&(this.itemActions.push(c["y"].SEPARATOR_ITEM),this.itemActions.push(c["y"].RECONTEXTUALIZATION_ITEM),this.itemObservation=t),this.itemActions&&this.itemActions.length>0?this.enableContextMenu=this.itemActions&&this.itemActions.length>0:this.enableContextMenu=!1):this.resetContextMenu()},resetContextMenu:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.itemActions=[],this.itemObservation=null,e&&(this.enableContextMenu=!1)},hide:function(e){this.resetContextMenu(),this.$emit("hide",e)},askForAction:function(e){if(null!==this.itemObservation)switch(console.debug("Will ask for ".concat(e," of observation ").concat(this.itemObservation.id)),e){case"Recontextualization":this.sendStompMessage(l["a"].CONTEXTUALIZATION_REQUEST({contextId:this.itemObservation.id,parentContext:this.itemObservation.contextId},this.$store.state.data.session).body),this.loadContext(this.itemObservation.id);break;case"AddToCache":console.log("Ask for Add to cache, no action for now");break;default:break}this.enableContextMenu=!1}}),watch:{observationId:function(){null!==this.observationId?this.initContextMenu():this.resetContextMenu()}},mounted:function(){null!==this.observationId&&this.initContextMenu()}},cn=an,ln=(n("ad0b"),Object(y["a"])(cn,rn,sn,!1,null,null,null));ln.options.__file="ObservationContextMenu.vue";var un=ln.exports,dn=null,hn={name:"klabTree",components:{KlabQTree:on,ObservationContextMenu:un},props:{isUser:{type:Boolean,required:!0},tree:{type:Array,required:!0}},data:function(){return{ticked:[],selected:null,expanded:[],itemObservationId:null,askingForChildren:!1,scrollElement:null,showPopover:null,dragStart:!1,dragEnter:0,watchedObservation:[],contextMenuObservationId:null,OBSERVATION_CONSTANTS:c["x"]}},computed:s()({},Object(a["c"])("data",["treeNode","lasts","contextReloaded","contextId","observations","timeEventsOfObservation","timestamp","observationsIdOnTop"]),Object(a["c"])("stomp",["tasks","taskOfContextIsAlive"]),Object(a["c"])("view",["observationInfo","hasObservationInfo","topLayerId"]),Object(a["d"])("view",["treeSelected","treeTicked","treeExpanded","showNotified"]),{cleanTopLayerId:function(){return this.topLayerId?this.topLayerId.substr(0,this.topLayerId.indexOf("T")):null}}),methods:s()({checkObservationsOnTop:function(e){return this.observationsIdOnTop.length>0&&this.observationsIdOnTop.includes(e)},copyToClipboard:Xe["b"]},Object(a["b"])("data",["setVisibility","selectNode","askForChildren","addChildrenToTree","setContext","changeTreeOfNode","setTimestamp"]),Object(a["b"])("view",["setSpinner","setMainDataViewer"]),{filterUser:function(e,t){return e.userNode?"user"===t:"tree"===t},rightClickHandler:function(e){e.preventDefault();var t=null;if(e.target.className.includes("node-element"))t=e.target;else{var n=e.target.getElementsByClassName("node-element");if(1===n.length){var i=Fe()(n,1);t=i[0]}}this.contextMenuObservationId=null!==t?t.id.substring(5):null},clearObservable:function(e){return 0===e.indexOf("(")&&e.lastIndexOf(")")===e.length-1?e.substring(1,e.length-1):e},askForOutputFormat:function(e,t,n){var i=this;null!==n&&n.length>0?(e.stopPropagation(),this.$q.dialog({title:this.$t("label.titleOutputFormat"),message:this.$t("label.askForOuputFormat"),options:{type:"radio",model:n[0].value,items:n},cancel:!0,preventClose:!1,color:"info"}).then(function(e){i.askDownload(t,e,n)}).catch(function(){})):this.$q.notify({message:"No available formats",type:"warning",icon:"mdi-alert",timeout:200})},askDownload:function(e,t,n,i){if("undefined"===typeof i){var o="";if(-1!==this.timestamp){var r=new Date(this.timestamp);o="_".concat(r.getFullYear()).concat(r.getMonth()<9?"0":"").concat(r.getMonth()+1).concat(r.getDate()<10?"0":"").concat(r.getDate(),"_").concat(r.getHours()<10?"0":"").concat(r.getHours()).concat(r.getMinutes()<10?"0":"").concat(r.getMinutes()).concat(r.getSeconds()<10?"0":"").concat(r.getSeconds())}i="".concat(e).concat(o)}var s=n.find(function(e){return e.value===t});Object(Ue["b"])(e,"RAW",i,s,this.timestamp)},changeNodeState:function(e){var t=e.nodeId,n=e.state;"undefined"!==typeof this.$refs["klab-tree"]&&this.$refs["klab-tree"].setTicked([t],n)},doubleClick:function(){var e=W()(regeneratorRuntime.mark(function e(t,n){var i,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!t.isContainer){e.next=4;break}null!==t.viewerIdx&&this.setMainDataViewer({viewerIdx:t.viewerIdx,visible:t.visible}),e.next=14;break;case 4:if(t.observationType!==c["x"].TYPE_STATE){e.next=8;break}this.fitMap(t,n),e.next=14;break;case 8:if(i=this.observations.find(function(e){return e.id===t.id}),!i||null===i){e.next=14;break}return e.next=12,Object(Ue["j"])(i);case 12:o=e.sent,this.fitMap(t,n,o);case 14:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),fitMap:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$eventBus.$emit(c["h"].NEED_FIT_MAP,{geometry:n}),e&&t&&t.ticked&&this.setVisibility({node:e,visible:!0})},updateFolderListener:function(e){if(e&&e.folderId){var t=Object(Ue["f"])(this.tree,e.folderId);t&&null!==t&&(e.visible?this.$refs["klab-tree"].setTicked(t.children.map(function(e){return e.id}),!0):this.$refs["klab-tree"].setTicked(this.ticked.filter(function(e){return-1===t.children.findIndex(function(t){return t.id===e})}),!1))}},selectElementListener:function(e){var t=this,n=e.id,i=e.selected;this.$nextTick(function(){var e=Object(Ue["f"])(t.tree,n);e&&(t.setVisibility({node:e,visible:i}),i?t.ticked.push(n):t.ticked.splice(t.ticked.findIndex(function(e){return e===n}),1))})},treeSizeChangeListener:function(){var e=this;this.isUser||(null!=dn&&(clearTimeout(this.scrollToTimeout),dn=null),this.$nextTick(function(){dn=setTimeout(function(){e.scrollElement.scrollTop=e.scrollElement.scrollHeight},1e3)}))},calculateRightPosition:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.reduce(function(e,t){return e+t.toString().length},0),i=""!==t?" + ".concat(t):"";return"calc(".concat(n,"ch").concat(i,")")},onDragStart:function(e,t){e.dataTransfer.setData("id",t),this.dragStart=!0},onDragEnd:function(){this.dragStart=!1},onDragEnter:function(e){e.preventDefault(),this.dragStart||(this.dragEnter+=1)},onDragLeave:function(e){e.preventDefault(),this.dragStart||(this.dragEnter-=1)},onDragOver:function(e){e.preventDefault()},onDrop:function(e){if(e.preventDefault(),this.dragEnter>0){var t=e.dataTransfer.getData("id");t&&""!==t?this.changeTreeOfNode({id:t,isUserTree:this.isUser}):console.warn("Strange dropped node ".concat(e.dataTransfer.getData("id")))}else console.debug("Self dropped");this.dragStart=!1,this.dragEnter=0}}),watch:{tree:function(){this.treeSizeChangeListener()},treeSelected:function(e){e!==this.selected&&(this.selected=e)},expanded:function(e,t){if(this.$store.state.view.treeExpanded=e,t.length!==e.length){if(t.length>e.length){var n=t.filter(function(t){return e.indexOf(t)<0})[0],i=Object(Ue["f"])(this.tree,n);return this.sendStompMessage(l["a"].WATCH_REQUEST({active:!1,observationId:n,rootContextId:i.rootContextId},this.$store.state.data.session).body),this.watchedObservation.splice(this.watchedObservation.findIndex(function(e){return e.observationId===n}),1),void console.info("Stop watching observation ".concat(n," with rootContextId ").concat(i.rootContextId))}var o=e[e.length-1],r=Object(Ue["f"])(this.tree,o);r&&(this.sendStompMessage(l["a"].WATCH_REQUEST({active:!0,observationId:o,rootContextId:r.rootContextId},this.$store.state.data.session).body),this.watchedObservation.push({observationId:o,rootContextId:r.rootContextId}),console.info("Start watching observation ".concat(o," with rootContextId ").concat(r.rootContextId)),r.children.length>0&&r.children[0].id.startsWith("STUB")&&(r.children.splice(0,1),r.children.length0?(this.addChildrenToTree({parent:r}),this.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:r.id,visible:"undefined"!==typeof r.ticked&&r.ticked})):0===r.children.length&&this.askForChildren({parentId:r.id,offset:0,count:this.childrenToAskFor,total:r.childrenCount,visible:"undefined"!==typeof r.ticked&&(!!r.isContainer&&r.ticked)})))}},selected:function(e){null!==e?0===e.indexOf("ff_")?this.selected=null:this.selectNode(e):this.selectNode(null)},ticked:function(e,t){var n=this;if(this.$store.state.view.treeTicked=e,t.length!==e.length)if(t.length>e.length){var i=t.filter(function(t){return e.indexOf(t)<0})[0];if(i.startsWith("STUB"))return;var o=Object(Ue["f"])(this.tree,i);o&&(this.setVisibility({node:o,visible:!1}),o.isContainer&&(this.ticked=this.ticked.filter(function(e){return-1===o.children.findIndex(function(t){return t.id===e})})))}else{var r=e[e.length-1];if(r.startsWith("STUB"))return;var s=Object(Ue["f"])(this.tree,r);if(null!==s)if(s.isContainer){var a=function(){var e;n.setVisibility({node:s,visible:!0}),(e=n.ticked).push.apply(e,q()(s.children.filter(function(e){return e.parentArtifactId===s.id}).map(function(e){return e.id})))};this.askingForChildren||(s.childrenLoaded We are asking for tree now, this call is not need so exit");if(0===e.lasts.length)return t.preventDefault(),void console.debug("KlabTree -> There aren't incompleted folders, exit");var n=e.scrollElement.getBoundingClientRect(),i=n.bottom;e.lasts.forEach(function(t){var n=document.getElementById("node-".concat(t.observationId));if(null!==n){var o=n.getBoundingClientRect();if(0!==o.bottom&&o.bottom Asked for them"),e.$eventBus.$emit(c["h"].UPDATE_FOLDER,{folderId:t.folderId,visible:"undefined"!==typeof r.ticked&&r.ticked})})}}})}),this.$eventBus.$on(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$on(c["h"].SELECT_ELEMENT,this.selectElementListener),this.selected=this.treeSelected,this.ticked=this.treeTicked,this.expanded=this.treeExpanded},beforeDestroy:function(){var e=this;this.$eventBus.$off(c["h"].UPDATE_FOLDER,this.updateFolderListener),this.$eventBus.$off(c["h"].SELECT_ELEMENT,this.selectElementListener),this.watchedObservation.length>0&&this.watchedObservation.forEach(function(t){e.sendStompMessage(l["a"].WATCH_REQUEST({active:!1,observationId:t.observationId,rootContextId:t.rootContextId},e.$store.state.data.session).body),console.info("Stop watching observation ".concat(t.observationId," with rootContextId ").concat(t.rootContextId))})}},pn=hn,fn=(n("5b35"),Object(y["a"])(pn,Jt,Qt,!1,null,null,null));fn.options.__file="KlabTree.vue";var mn=fn.exports,gn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative-position klab-menu-component",attrs:{id:"oi-container"}},[n("div",{attrs:{id:"oi-controls"}},[n("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-visualize"}},[n("q-checkbox",{attrs:{"keep-color":!0,color:"mc-yellow",readonly:1===e.observationInfo.valueCount||e.observationInfo.empty,disabled:1===e.observationInfo.valueCount||e.observationInfo.empty},nativeOn:{click:function(t){return e.showNode(t)}},model:{value:e.layerShow,callback:function(t){e.layerShow=t},expression:"layerShow"}})],1),n("div",{staticClass:"oi-control oi-text",attrs:{id:"oi-name"}},[n("span",[e._v(e._s(e.observationInfo.label))])]),e.hasSlider?n("div",{staticClass:"oi-control",attrs:{id:"oi-slider"}},[n("q-slider",{attrs:{min:0,max:1,step:.1,decimals:1,color:"mc-yellow",label:!1},model:{value:e.observationInfo.layerOpacity,callback:function(t){e.$set(e.observationInfo,"layerOpacity",t)},expression:"observationInfo.layerOpacity"}})],1):e._e()]),n("div",{class:e.getContainerClasses(),attrs:{id:"oi-metadata-map-wrapper"}},[n("div",{class:[this.exploreMode?"with-mapinfo":""],attrs:{id:"oi-scroll-container"}},[n("div",{attrs:{id:"oi-scroll-metadata-container"}},e._l(e.observationInfo.metadata,function(t,i){return n("div",{key:i,attrs:{id:"oi-metadata"}},[n("div",{staticClass:"oi-metadata-name oi-text"},[e._v(e._s(i))]),n("div",{staticClass:"oi-metadata-value",on:{dblclick:function(n){e.copyToClipboard(t)}}},[e._v(e._s(t))])])}))]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.hasMapInfo,expression:"hasMapInfo"}],attrs:{id:"oi-mapinfo-container"},on:{mouseenter:function(t){e.setInfoShowed({index:0,categories:[],values:[e.mapSelection.value]})},mouseleave:function(t){e.setInfoShowed(null)}}},[n("div",{attrs:{id:"oi-mapinfo-map"}}),n("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-h"}}),n("div",{staticClass:"oi-pixel-indicator",attrs:{id:"oi-pixel-v"}})])]),n("histogram-viewer",{attrs:{dataSummary:e.observationInfo.dataSummary,colormap:e.observationInfo.colormap}})],1)},vn=[];gn._withStripped=!0;var bn=n("e00b"),yn=n("5eee"),_n=n("a2c7"),Mn={name:"ObservationInfo",components:{HistogramViewer:bn["a"]},mixins:[Ot["a"]],data:function(){return{scrollBar:void 0,layerShow:!1,infoShowed:{index:-1,categories:[],values:[]},infoMap:null}},computed:s()({},Object(a["c"])("view",["observationInfo","mapSelection","exploreMode","viewer"]),{hasSlider:function(){return this.observationInfo.visible&&null!==this.observationInfo.viewerIdx&&this.viewer(this.observationInfo.viewerIdx).type.component===c["M"].VIEW_MAP.component},hasMapInfo:function(){return this.exploreMode&&null!==this.mapSelection.pixelSelected&&this.mapSelection.layerSelected.get("id").startsWith("cl_".concat(this.observationInfo.id))}}),methods:{copyToClipboard:function(e){Object(Xe["b"])(e),this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})},getContainerClasses:function(){var e=[];return null!==this.observationInfo.dataSummary&&e.push("k-with-histogram"),e},showNode:function(){this.$emit(c["h"].SHOW_NODE,{nodeId:this.observationInfo.id,state:this.layerShow})},viewerClosedListener:function(e){var t=e.idx;t===this.observationInfo.viewerIdx&&(this.layerShow=!1)},setInfoShowed:function(e){this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,e)}},watch:{mapSelection:function(){var e=this;if(null!==this.mapSelection.layerSelected){var t=this.infoMap.getLayers().getArray();null!==this.mapSelection.pixelSelected?(t.length>1&&this.infoMap.removeLayer(t[1]),this.infoMap.addLayer(this.mapSelection.layerSelected),this.infoMap.getView().setCenter(this.mapSelection.pixelSelected),this.infoMap.getView().setZoom(14),this.$nextTick(function(){e.infoMap.updateSize()}),this.$eventBus.$emit(c["h"].SHOW_DATA_INFO,{index:0,categories:[],values:[this.mapSelection.value]})):t.length>1&&this.infoMap.removeLayer(t[1])}}},mounted:function(){this.scrollBar=new be(document.getElementById("oi-scroll-container")),this.infoMap=new yn["a"]({view:new _n["a"]({center:[0,0],zoom:12}),target:"oi-mapinfo-map",layers:[Lt["c"].EMPTY_LAYER],controls:[],interactions:[]}),this.layerShow=this.observationInfo.visible,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},wn=Mn,Cn=(n("db0a"),Object(y["a"])(wn,gn,vn,!1,null,null,null));Cn.options.__file="ObservationInfo.vue";var Sn=Cn.exports,An=G["b"].height,En={name:"klabTreeContainer",components:{KlabSplitter:Yt,KlabTree:mn,ObservationInfo:Sn},data:function(){return{outContainerHeight:void 0,userTreeMaxHeight:void 0,userTreeHeight:void 0,treeHeight:void 0,detailsOpen:!1}},computed:s()({},Object(a["c"])("data",["tree","userTree","treeNode","hasTree","mainTreeHasNodes","hasContext"]),Object(a["c"])("stomp",["taskOfContextIsAlive"]),Object(a["c"])("view",["hasObservationInfo","isDocked"])),methods:s()({},Object(a["b"])("view",["setObservationInfo"]),{onCloseInfo:function(){this.setObservationInfo(null),this.$eventBus.$emit(c["h"].OBSERVATION_INFO_CLOSED)},informTree:function(e){var t=e.nodeId,n=e.state,i=this.treeNode(t);i&&(this.$refs["kt-tree"]&&this.$refs["kt-tree"].changeNodeState({nodeId:t,state:n}),i.userNode&&this.$refs["kt-user-tree"]&&this.$refs["kt-user-tree"].changeNodeState({nodeId:t,state:n}))},showNodeListener:function(e){this.informTree(e)},outContainerResized:function(){this.isDocked?this.outContainerHeight=An(document.getElementById("dmc-tree"))+24:this.$refs["kt-out-container"]&&(this.outContainerHeight=Number.parseFloat(window.getComputedStyle(this.$refs["kt-out-container"],null).getPropertyValue("max-height"))),this.recalculateTreeHeight()},recalculateTreeHeight:function(){var e=this;this.$nextTick(function(){e.userTreeMaxHeight=e.mainTreeHasNodes()?e.outContainerHeight/2:e.outContainerHeight;var t=document.getElementById("kt-user-tree");t&&e.outContainerHeight&&(e.userTreeHeight=An(t),e.treeHeight=e.outContainerHeight-e.userTreeHeight)})},initTree:function(){var e=this;this.hasTree&&this.$nextTick(function(){e.outContainerResized(),document.getElementById("kt-tree-details").addEventListener("toggle",function(t){e.detailsOpen=t.srcElement.open,e.recalculateTreeHeight()})})}}),watch:{userTree:function(){this.recalculateTreeHeight()},tree:function(){this.recalculateTreeHeight()},hasTree:function(){this.initTree()},taskOfContextIsAlive:function(){this.detailsOpen=this.taskOfContextIsAlive}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_NODE,this.showNodeListener),window.addEventListener("resize",this.outContainerResized),this.initTree()},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NODE,this.showNodeListener),window.removeEventListener("resize",this.outContainerResized)}},On=En,Ln=(n("a663"),Object(y["a"])(On,Ht,Xt,!1,null,null,null));Ln.options.__file="KlabTreePane.vue";var Tn=Ln.exports,xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ot-wrapper",class:{"ot-no-timestamp":0===e.timeEvents.length||-1===e.timestamp}},[n("div",{staticClass:"ot-container",class:{"ot-active-timeline":e.isVisible,"ot-docked":e.isMainControlDocked}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-player"},[n("q-icon",{class:{"cursor-pointer":e.timestamp0},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.onClick(t,function(){e.changeTimestamp(e.scaleReference.start)})},dblclick:function(t){e.onDblClick(t,function(){e.changeTimestamp(-1)})}}},[-1===e.timestamp?n("q-icon",{staticClass:"ot-time-origin",class:{"ot-time-origin-loaded":e.timeEvents.length},attrs:{name:"mdi-circle-medium",color:"mc-main"}}):e._e(),0!==e.timeEvents.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.start))}}):e._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.startDate))])]),n("div",{ref:"ot-timeline-container",staticClass:"ot-timeline-container col",class:{"ot-timeline-with-time":-1!==e.timestamp}},[n("div",{ref:"ot-timeline",staticClass:"ot-timeline",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible},on:{mousemove:e.moveOnTimeline,mouseenter:function(t){e.timelineActivated=!0},mouseleave:function(t){e.timelineActivated=!1},click:function(t){e.changeTimestamp(e.getDateFromPosition(t))}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],staticClass:"ot-timeline-viewer"}),e._l(e.visibleEvents,function(t){return n("div",{key:t.id+"-"+t.timestamp,staticClass:"ot-modification-container",style:{left:"calc("+e.calculatePosition(t.timestamp)+"px - 1px)"}},[n("div",{staticClass:"ot-modification"})])}),n("div",{staticClass:"ot-loaded-time",style:{width:e.engineTimestamp>0?"calc("+e.calculatePosition(e.engineTimestamp)+"px + 4px)":0}}),-1!==e.timestamp?n("div",{staticClass:"ot-actual-time",style:{left:"calc("+e.calculatePosition(e.visibleTimestamp)+"px + "+(e.timestamp===e.scaleReference.end?"0":"1")+"px)"}}):e._e(),0!==e.timeEvents.length?n("q-tooltip",{staticClass:"ot-date-tooltip",attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle",delay:300},domProps:{innerHTML:e._s(e.timelineDate)}}):e._e()],2)]),n("div",{staticClass:"ot-date-container"},[n("div",{staticClass:"ot-date ot-date-end col",class:{"ot-with-modifications":0!==e.timeEvents.length&&e.isVisible,"ot-date-loaded":e.engineTimestamp===e.scaleReference.end},on:{click:function(t){if(t.target!==t.currentTarget)return null;e.changeTimestamp(e.scaleReference.end)}}},[0!==e.timeEvents.length?n("q-tooltip",{attrs:{offset:[0,8],self:"top middle",anchor:"bottom middle"},domProps:{innerHTML:e._s(e.formatDate(e.scaleReference.end))}}):e._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isVisible,expression:"!isVisible"}],staticClass:"ot-date-text"},[e._v(e._s(e.endDate))])])])]),e.isMainControlDocked?n("observation-time"):e._e()],1)},Rn=[];xn._withStripped=!0;var kn=n("b8c1"),zn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.timeEvents.length>0?n("transition",{attrs:{name:"fade"}},[n("div",{staticClass:"otv-now",class:{"otv-novisible":-1===e.timestamp,"otv-docked":e.isMainControlDocked,"otv-running":e.isTimeRunning},domProps:{innerHTML:e._s(e.formattedTimestamp)}})]):e._e()},Pn=[];zn._withStripped=!0;var Nn={name:"ObservationTime",data:function(){return{formattedTimestamp:void 0}},computed:s()({},Object(a["c"])("data",["timestamp","timeEvents"]),Object(a["c"])("view",["isMainControlDocked","isTimeRunning"])),methods:{formatTimestamp:function(){if(-1===this.timestamp)this.formattedTimestamp=this.$t("label.noTimeSet");else{var e=_t()(this.timestamp);this.formattedTimestamp="".concat(e.format("L")," ").concat(e.format("HH:mm:ss:SSS"))}}},watch:{timestamp:function(){this.formatTimestamp()}},created:function(){this.formatTimestamp()}},In=Nn,Dn=(n("8622"),Object(y["a"])(In,zn,Pn,!1,null,null,null));Dn.options.__file="ObservationTime.vue";var Bn=Dn.exports,qn={name:"ObservationsTimeline",components:{ObservationTime:Bn},mixins:[kn["a"]],data:function(){var e=this;return{timelineActivated:!1,moveOnTimelineFunction:Object(Ce["a"])(function(t){e.timelineActivated&&(e.timelineDate=e.formatDate(e.getDateFromPosition(t)))},300),timelineDate:null,timelineContainer:void 0,timelineLeft:void 0,visibleTimestamp:-1,playTimer:null,interval:void 0,speedMultiplier:1,selectSpeed:!1,pressTimer:null,longPress:!1}},computed:s()({},Object(a["c"])("data",["scaleReference","schedulingResolution","timeEvents","timestamp","modificationsTask","hasContext","visibleEvents","engineTimestamp"]),Object(a["c"])("stomp",["tasks"]),Object(a["c"])("view",["isMainControlDocked"]),{startDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.start,!0):""},endDate:function(){return null!==this.scaleReference?this.formatDate(this.scaleReference.end,!0):""},isVisible:function(){return this.visibleEvents.length>0}}),methods:s()({},Object(a["b"])("data",["setTimestamp","setModificationsTask"]),Object(a["b"])("view",["setTimeRunning"]),{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===e)return"";var i=_t()(e);return t?i.format("DD MMM YYYY"):'
'.concat(i.format("L")).concat(n?" - ":"
").concat(i.format("HH:mm:ss:SSS"),"
")},calculatePosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=Math.floor((e-this.scaleReference.start)*this.timelineContainer.clientWidth/(this.scaleReference.end-this.scaleReference.start));return t},moveOnTimeline:function(e){this.moveOnTimelineFunction(e)},getDateFromPosition:function(e){if(this.timelineContainer||(this.timelineContainer=this.$refs["ot-timeline-container"]),!this.timelineContainer)return 0;var t=this.timelineContainer.clientWidth,n=e.clientX-this.timelineContainer.getBoundingClientRect().left,i=this.scaleReference.start+n*(this.scaleReference.end-this.scaleReference.start)/t;return i>this.scaleReference.end?i=this.scaleReference.end:ithis.scaleReference.end?(this.visibleTimestamp=this.scaleReference.end,this.setTimestamp(this.scaleReference.end)):(this.visibleTimestamp=e,this.setTimestamp(e)))},stop:function(){clearInterval(this.playTimer),this.playTimer=null},run:function(){var e=this;if(null!==this.playTimer)this.stop();else{this.interval||this.calculateInterval(),-1===this.timestamp&&this.changeTimestamp(this.scaleReference.start);var t={start:this.timestamp,stop:this.timestamp+this.interval.buffer};this.playTimer=setInterval(function(){e.changeTimestamp(Math.floor(e.timestamp+e.interval.step)),e.$nextTick(function(){e.timestamp>=e.scaleReference.end?e.stop():e.timestamp>t.stop-e.interval.step&&e.timestamp<=e.scaleReference.end&&(t={start:e.timestamp,stop:e.timestamp+e.interval.buffer},e.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t))})},this.interval.interval),this.$eventBus.$emit(c["h"].NEED_LAYER_BUFFER,t)}},calculateInterval:function(){if(this.scaleReference&&this.schedulingResolution){var e=1,t=this.calculatePosition(this.scaleReference.start+this.schedulingResolution);t>1&&(e=t);var n=(this.schedulingResolution||c["K"].DEFAULT_STEP)/e,i=(this.scaleReference.end-this.scaleReference.start)/n,o=Math.max(document.body.clientHeight,document.body.clientWidth),r=(this.scaleReference.end-this.scaleReference.start)/4,s=o/e;s*ic["K"].MAX_PLAY_TIME&&(s=c["K"].MAX_PLAY_TIME/i),s/=this.speedMultiplier,this.interval={step:n,steps:i,interval:s,buffer:r,multiplier:this.speedMultiplier},console.info("Step: ".concat(this.interval.step,"; Steps: ").concat(this.interval.steps,"; Interval: ").concat(this.interval.interval,"; Buffer: ").concat(this.interval.buffer))}},startPress:function(){var e=this;this.longPress=!1,this.pressTimer?(clearInterval(this.pressTimer),this.pressTimer=null):this.pressTimer=setTimeout(function(){e.selectSpeed=!0,e.longPress=!0},600)},stopPress:function(){clearInterval(this.pressTimer),this.pressTimer=null,!this.longPress&&this.timestamp0&&this.modificationsTask){var n=e.find(function(e){return e.id===t.modificationsTask.id});n&&!n.alive&&this.setModificationsTask(null)}},visibleEvents:function(){0===this.visibleEvents.length&&null!==this.playTimer&&this.stop()},timestamp:function(e,t){!this.isMainControlDocked||-1!==e&&-1!==t||(this.timelineContainer=void 0)},playTimer:function(){this.setTimeRunning(null!==this.playTimer)}},mounted:function(){this.timelineDate=this.startTime,this.visibleTimestamp=this.timestamp,_t.a.locale(window.navigator.userLanguage||window.navigator.language),this.$eventBus.$on(c["h"].NEW_SCHEDULING,this.calculateInterval)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEW_SCHEDULING,this.calculateInterval)},destroyed:function(){this.stop()}},jn=qn,Wn=(n("31da"),Object(y["a"])(jn,xn,Rn,!1,null,null,null));Wn.options.__file="ObservationsTimeline.vue";var Fn,Hn=Wn.exports,Xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"klab-menu-component kp-container",attrs:{id:"klab-log-pane"}},[n("div",{staticClass:"klp-level-selector"},[n("ul",e._l(e.LOG_ICONS,function(t,i,o){return n("li",{key:o,class:{"klp-selected":e.hasLevel(i)}},[n("q-btn",{staticClass:"klp-chip",attrs:{dense:"",size:"sm",icon:t.icon,color:t.color},on:{click:function(t){e.toggleLevel(i)}}},[n("q-tooltip",{attrs:{delay:600,offset:[0,5]}},[e._v(e._s(e.$t(t.i18nlabel)))])],1)],1)}))]),n("q-list",{staticClass:"no-padding no-border",attrs:{dense:"",dark:"",id:"log-container"}},[0!==e.logs.length?e._l(e.logs,function(t,i){return n("q-item",{key:i,staticClass:"log-item q-pa-xs"},[e.isSeparator(t)?[n("q-item-main",{staticClass:"klp-separator"},[n("span",[e._v(e._s(e.$t("label.contextReset")))])])]:[n("q-item-side",[n("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:e.logColorAndIcon(t).icon,color:e.logColorAndIcon(t).color}})],1),n("q-item-main",[n("q-item-tile",[e._v(e._s(e.logText(t)))])],1)]],2)}):[n("q-item",{staticClass:"log-item log-no-items q-pa-xs"},[n("q-item-side",[n("q-item-tile",{staticStyle:{"font-size":"18px"},attrs:{icon:0===e.levels.length?"mdi-alert-outline":"mdi-information-outline"}})],1),n("q-item-main",[n("q-item-tile",[e._v(e._s(0===e.levels.length?e.$t("messages.noLevelSelected"):e.$t("messages.noLogItems")))])],1)],1)]],2)],1)},Un=[];Xn._withStripped=!0;var Vn=(Fn={},p()(Fn,T["a"].TYPE_ERROR,{i18nlabel:"label.levelError",icon:"mdi-close-circle",color:"negative"}),p()(Fn,T["a"].TYPE_WARNING,{i18nlabel:"label.levelWarning",icon:"mdi-alert",color:"warning"}),p()(Fn,T["a"].TYPE_INFO,{i18nlabel:"label.levelInfo",icon:"mdi-information",color:"info"}),p()(Fn,T["a"].TYPE_DEBUG,{i18nlabel:"label.levelDebug",icon:"mdi-console-line",color:"grey-6"}),p()(Fn,T["a"].TYPE_ENGINEEVENT,{i18nlabel:"label.levelEngineEvent",icon:"mdi-cog-outline",color:"secondary"}),Fn),Gn={name:"KLabLogPane",data:function(){return{scrollBar:null,log:null,LOG_ICONS:Vn}},computed:s()({},Object(a["c"])("view",["klabLogReversedAndFiltered","levels"]),{logs:function(){return 0===this.levels.length?[]:this.klabLogReversedAndFiltered(5===this.levels.length?[]:this.levels)}}),methods:s()({},Object(a["b"])("view",["setLevels","toggleLevel"]),{logText:function(e){if(e&&e.payload){if(e.type===T["a"].TYPE_ENGINEEVENT){var t=e.time;return e.payload.timestamp&&(t=_t()(e.payload.timestamp)),"".concat(t.format("HH:mm:ss"),": ").concat(this.$t("engineEventLabels.evt".concat(e.payload.type))," ").concat(e.payload.started?"started":"stopped")}return"".concat(e.time?e.time.format("HH:mm:ss"):this.$t("messages.noTime"),": ").concat(e.payload)}return this.$t("label.klabNoMessage")},logColorAndIcon:function(e){var t=Vn[e.type];return t?Vn[e.type]:(console.warn("Log type: ".concat(e.type),e),Vn.Error)},isSeparator:function(e){return e&&e.payload&&e.payload.separator},hasLevel:function(e){return-1!==this.levels.indexOf(e)}}),mounted:function(){this.scrollBar=new be(document.getElementById("klab-log-pane"))}},Kn=Gn,$n=(n("f58f"),Object(y["a"])(Kn,Xn,Un,!1,null,null,null));$n.options.__file="KlabLogPane.vue";var Yn=$n.exports,Jn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sb-scales"},[e.hasNextScale()?n("div",{staticClass:"klab-button klab-action klab-mdi-next-scale"},[n("q-icon",{attrs:{name:"mdi-refresh",color:"mc-yellow"},nativeOn:{click:function(t){return e.rescaleContext(t)}}},[n("q-tooltip",{attrs:{delay:600,anchor:e.anchorType,self:e.selfType,offset:e.offsets}},[e._v(e._s(e.$t("tooltips.refreshScale")))])],1)],1):e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.showSpaceScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("space",!0)},mouseleave:function(t){e.toggleScalePopup("space",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_SPACE}}}},[n("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_SPACE)},attrs:{name:"mdi-earth"}},[n("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showSpaceScalePopup,callback:function(t){e.showSpaceScalePopup=t},expression:"showSpaceScalePopup"}},[n("div",{staticClass:"mc-scalereference",attrs:{id:"mc-spacereference"}},[n("scale-reference",{attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_SPACE)?n("scale-reference",{staticClass:"sb-next-scale",attrs:{width:e.spaceWidth?e.spaceWidth:e.scaleWidth,"scale-type":"space","use-next":!0,light:!0,editable:!1}}):e._e(),n("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_SPACE})))])],1)])],1)],1),n("div",{staticClass:"klab-button klab-action",class:[{active:e.showTimeScalePopup}],on:{mouseover:function(t){e.toggleScalePopup("time",!0)},mouseleave:function(t){e.toggleScalePopup("time",!1)},click:function(t){e.scaleEditing={active:!0,type:e.SCALE_TYPE.ST_TIME}}}},[n("q-icon",{class:{"klab-mdi-next-scale":e.hasNextScale(e.SCALE_TYPE.ST_TIME)},attrs:{name:"mdi-clock"}},[n("q-popover",{attrs:{"anchor-click":!1,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.showTimeScalePopup,callback:function(t){e.showTimeScalePopup=t},expression:"showTimeScalePopup"}},[n("div",{staticClass:"mc-scalereference",attrs:{id:"mc-timereference"}},[n("scale-reference",{attrs:{width:e.timeWidth?e.timeWidth:e.scaleWidth,"scale-type":"time",light:!0,editable:!1}}),e.hasNextScale(e.SCALE_TYPE.ST_TIME)?n("scale-reference",{staticClass:"sb-next-scale",attrs:{width:"timeWidth ? timeWidth : scaleWidth","scale-type":"time",light:!0,editable:!1,"use-next":!0}}):e._e(),n("div",{staticClass:"sb-tooltip"},[e._v(e._s(e.$t("tooltips.clickToEdit",{type:e.SCALE_TYPE.ST_TIME})))])],1)])],1)],1)])},Qn=[];Jn._withStripped=!0;var Zn={name:"ScaleButtons",components:{ScaleReference:Et},props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:8},scaleWidth:{type:String,default:"140px"},timeWidth:{type:String,default:void 0},spaceWidth:{type:String,default:void 0}},data:function(){return{showSpaceScalePopup:!1,showTimeScalePopup:!1,anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],SCALE_TYPE:c["A"]}},computed:s()({},Object(a["c"])("data",["nextScale","hasNextScale","scaleReference","contextId"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){var t=e.active,n=e.type;this.$store.dispatch("view/setScaleEditing",{active:t,type:n})}}}),methods:{toggleScalePopup:function(e,t){"space"===e?(this.showSpaceScalePopup=t,this.showTimeScalePopup=!1):"time"===e&&(this.showSpaceScalePopup=!1,this.showTimeScalePopup=t)},rescaleContext:function(){this.hasNextScale()&&this.sendStompMessage(l["a"].SCALE_REFERENCE(s()({scaleReference:this.scaleReference,contextId:this.contextId},this.hasNextScale(c["A"].ST_SPACE)&&{spaceResolution:this.nextScale.spaceResolutionConverted,spaceUnit:this.nextScale.spaceUnit},this.hasNextScale(c["A"].ST_TIME)&&{timeResolutionMultiplier:this.nextScale.timeResolutionMultiplier,timeUnit:this.nextScale.timeUnit,start:this.nextScale.start,end:this.nextScale.end}),this.$store.state.data.session).body)},noTimeScaleChange:function(){this.$q.notify({message:this.$t("messages.availableInFuture"),type:"info",icon:"mdi-information",timeout:1e3})}}},ei=Zn,ti=(n("1817"),Object(y["a"])(ei,Jn,Qn,!1,null,null,null));ti.options.__file="ScaleButtons.vue";var ni=ti.exports,ii=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kvs-container"},[n("div",{staticClass:"klab-button klab-action",class:{disabled:0===e.knowledgeViews.length}},[n("div",{staticClass:"kvs-button mdi mdi-text-box-multiple float-left"}),e.docked?e._e():n("q-icon",{staticClass:"float-left klab-item",staticStyle:{padding:"3px 0 0 8px"},attrs:{name:"mdi-chevron-down"}},[e.hasNew?n("span",{staticClass:"klab-button-notification"}):e._e()]),n("q-tooltip",{attrs:{offset:[8,0],self:e.selfTooltipType,anchor:e.anchorTooltipType,delay:600}},[e._v(e._s(0===e.knowledgeViews.length?e.$t("tooltips.noKnowledgeViews"):e.$t("tooltips.knowledgeViews")))])],1),n("q-popover",{staticClass:"kvs-popover",attrs:{disable:0===e.knowledgeViews.length,anchor:e.anchorType,self:e.selfType,offset:e.offsets},model:{value:e.kvListOpen,callback:function(t){e.kvListOpen=t},expression:"kvListOpen"}},[n("div",{staticClass:"kvs-popover-container"},[n("q-list",{staticClass:"kvs-list",attrs:{link:"","no-border":"",dense:"",dark:""}},e._l(e.knowledgeViews,function(t){return n("q-item",{key:t.viewId,nativeOn:{click:function(n){e.selectKnowledgeView(t.viewId)}}},[n("q-item-side",{attrs:{icon:e.KNOWLEDGE_VIEWS.find(function(e){return e.viewClass===t.viewClass}).icon}}),n("q-item-main",[n("div",[e._v(e._s(t.label))])]),n("q-tooltip",{ref:"kv-tooltip-"+t.viewId,refInFor:!0,attrs:{offset:[8,0],self:"center left",anchor:"center right"}},[e._v(e._s(t.title))])],1)}))],1)])],1)},oi=[];ii._withStripped=!0;var ri={name:"KnoledgeViewsSelector",props:{docked:{type:Boolean,required:!0},offset:{type:Number,default:0}},data:function(){return{anchorTooltipType:this.docked?"bottom left":"center right",selfTooltipType:this.docked?"top left":"center left",offsetTooltip:this.docked?[0,this.offset]:[this.offset,0],anchorType:this.docked?"center right":"bottom left",selfType:this.docked?"center left":"top left",offsets:this.docked?[this.offset,0]:[0,this.offset],kvListOpen:!1,hasNew:!1,KNOWLEDGE_VIEWS:c["s"]}},computed:s()({},Object(a["c"])("data",["knowledgeViews"]),{knowledgeViewsLength:function(){return this.knowledgeViews.length}}),methods:s()({},Object(a["b"])("data",["showKnowledgeView"]),{selectKnowledgeView:function(e){var t=this;this.showKnowledgeView(e),this.$nextTick(function(){t.kvListOpen=!1;var n=t.$refs["kv-tooltip-".concat(e)];n&&n.length>0&&n[0].hide()})}}),watch:{knowledgeViewsLength:function(e,t){e>t&&(this.hasNew=!0)},kvListOpen:function(){this.kvListOpen&&this.hasNew&&(this.hasNew=!1)}}},si=ri,ai=(n("0e44"),Object(y["a"])(si,ii,oi,!1,null,null,null));ai.options.__file="KnowledgeViewsSelector.vue";var ci=ai.exports,li=G["b"].width,ui=G["b"].height,di={top:25,left:15},hi={name:"klabMainControl",components:{KlabSpinner:M,KlabSearchBar:It,KlabBreadcrumbs:Ft,KlabTreePane:Tn,KlabLogPane:Yn,ScrollingText:gt,ScaleButtons:ni,MainActionsButtons:Te,StopActionsButtons:Ie,ObservationsTimeline:Hn,KnowledgeViewsSelector:ci},directives:{Draggable:U},mixins:[rt],data:function(){var e=this;return{isHidden:!1,dragMCConfig:{handle:void 0,resetInitialPos:!1,onPositionChange:Object(Ce["a"])(function(t,n,i){e.onDebouncedPositionChanged(i)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkWhereWasDragged,fingers:2},correctedPosition:{top:0,left:0},defaultLeft:di.left,defaultTop:di.top,centeredLeft:di.left,dragging:!1,wasMoved:!1,askForDocking:!1,leftMenuMaximized:"".concat(c["t"].LEFTMENU_MAXSIZE,"px"),boundingElement:void 0,selectedTab:"klab-tree-pane",draggableElement:void 0,draggableElementWidth:0,kvListOpen:!1,KNOWLEDGE_VIEWS:c["s"]}},computed:s()({},Object(a["c"])("data",["hasContext","contextHasTime","knowledgeViews"]),Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["spinnerColor","searchIsFocused","searchIsActive","isDrawMode","fuzzyMode","largeMode","windowSide","layout","hasHeader"]),{qCardStyle:function(){return{top:"".concat(this.defaultTop+this.correctedPosition.top,"px"),left:"".concat(this.centeredLeft+this.correctedPosition.left,"px"),"margin-top":"-".concat(this.correctedPosition.top,"px"),"margin-left":"-".concat(this.correctedPosition.left,"px")}}}),methods:s()({},Object(a["b"])("view",["setMainViewer","setLargeMode","searchStart","searchFocus","setWindowSide","setObservationInfo"]),{callStartType:function(e){this.searchIsFocused?e.evt.stopPropagation():this.$refs["klab-search-bar"].startType(e)},onDebouncedPositionChanged:function(e){this.askForDocking=!!(this.hasContext&&this.dragging&&null===this.layout&&e&&e.x<=30+this.correctedPosition.left)},hide:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!0},show:function(){this.dragMCConfig.resetInitialPos=!1,this.isHidden=!1},getRightLeft:function(){var e=li(this.boundingElement);return e-this.draggableElement.offsetWidth-di.left+this.correctedPosition.left},getCenteredLeft:function(){var e;if("undefined"===typeof this.draggableElement||this.hasContext)e=this.defaultLeft;else{var t=this.draggableElementWidth,n=li(this.boundingElement);e=(n-t)/2}return e+this.correctedPosition.left},changeDraggablePosition:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(e.top+=this.correctedPosition.top,e.left+=this.correctedPosition.left),this.draggableElement.style.left="".concat(e.left,"px"),this.draggableElement.style.top="".concat(e.top,"px");var n=JSON.parse(this.dragMCConfig.handle.getAttribute("draggable-state"));n.startDragPosition=e,n.currentDragPosition=e;var i=document.querySelector(".mc-q-card-title");i?i.setAttribute("draggable-state",JSON.stringify(n)):this.dragMCConfig.handle.setAttribute("draggable-state",JSON.stringify(n))},checkWhereWasDragged:function(){if(this.dragging=!1,this.askForDocking)return this.askForDocking=!1,this.setMainViewer(c["L"].DOCKED_DATA_VIEWER),void this.setObservationInfo(null);this.draggableElement.offsetTop<0&&this.changeDraggablePosition({top:0,left:Math.max(this.draggableElement.offsetLeft,0)}),this.draggableElement.offsetLeft+this.draggableElement.offsetWidth<=0&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:0}),this.draggableElement.offsetLeft>=li(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(this.draggableElement.offsetTop,0),left:Math.max(li(this.boundingElement)-this.draggableElement.offsetWidth,0)}),this.draggableElement.offsetTop>=ui(this.boundingElement)&&this.changeDraggablePosition({top:Math.max(ui(this.boundingElement)-this.draggableElement.offsetHeight,0),left:Math.max(this.draggableElement.offsetLeft,0)})},getBGColor:function(e){return"rgba(".concat(this.spinnerColor.rgb.r,",").concat(this.spinnerColor.rgb.g,",").concat(this.spinnerColor.rgb.b,", ").concat(e,")")},mapSizeChangedListener:function(e){var t=this;if(e&&"changelayout"===e.type)return e.align&&this.setWindowSide(e.align),this.updateCorrectedPosition(),void this.$nextTick(function(){t.changeDraggablePosition({left:t.hasContext?"left"===t.windowSide?t.defaultLeft:t.getRightLeft():t.getCenteredLeft(),top:t.defaultTop},!1)});this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop},this.checkWhereWasDragged()},spinnerDoubleClickListener:function(){this.hide()},updateCorrectedPosition:function(){var e=document.querySelector(".kapp-header-container"),t=document.querySelector(".kapp-left-container aside"),n=e?ui(e):0,i=t?li(t):0;this.correctedPosition={top:n,left:i},this.defaultTop=di.top+n,this.defaultLeft=di.left+i,this.centeredLeft=this.getCenteredLeft()},updateDraggable:function(){this.updateCorrectedPosition(),this.draggableElement=document.querySelector(".kexplorer-main-container .mc-q-card"),this.draggableElementWidth=li(this.draggableElement),this.dragMCConfig.handle=document.querySelector(".kexplorer-main-container .mc-q-card-title"),this.boundingElement=document.querySelector(".kexplorer-container"),this.centeredLeft=this.getCenteredLeft(),this.dragMCConfig.initialPosition={left:this.centeredLeft,top:this.defaultTop}},focusSearch:function(e){this.moved||e&&e.target.classList&&(e.target.classList.contains("mcm-button")||e.target.classList.contains("q-icon")||e.target.classList.contains("q-btn")||e.target.classList.contains("q-btn-inner"))||(this.searchIsActive?this.searchIsFocused||this.searchFocus({focused:!0}):this.searchStart(""))}}),watch:{hasContext:function(){var e=this;this.setLargeMode(0),this.$nextTick(function(){e.changeDraggablePosition({top:e.defaultTop,left:e.hasContext?"left"===e.windowSide?e.defaultLeft:e.getRightLeft():e.getCenteredLeft()},!1)})},largeMode:function(){var e=this;this.hasContext||this.$nextTick(function(){var t=c["g"].SEARCHBAR_INCREMENT*e.largeMode/2;if(t>=0){var n=parseFloat(e.draggableElement.style.left),i=n-e.getCenteredLeft();i%(c["g"].SEARCHBAR_INCREMENT/2)===0&&e.changeDraggablePosition({top:parseFloat(e.draggableElement.style.top),left:e.getCenteredLeft()-t},!1)}})}},created:function(){this.defaultTop=di.top,this.defaultLeft=di.left,this.VIEWERS=c["L"]},mounted:function(){this.updateDraggable(),this.$eventBus.$on(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$on(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SPINNER_DOUBLE_CLICK,this.spinnerDoubleClickListener),this.$eventBus.$off(c["h"].MAP_SIZE_CHANGED,this.mapSizeChangedListener)}},pi=hi,fi=(n("96fa"),Object(y["a"])(pi,Me,we,!1,null,null,null));fi.options.__file="KlabMainControl.vue";var mi=fi.exports,gi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"no-padding relative-position full-width"},e._l(e.dataViewers,function(t){return n("div",{key:t.idx,class:["no-padding",t.main?"absolute-top full-height full-width":"absolute thumb-view"],style:e.viewerStyle(t),attrs:{id:"dv-viewer-"+t.idx}},[t.main?e._e():n("div",{staticClass:"thumb-viewer-title absolute-top"},[n("div",{staticClass:"relative-position"},[n("div",{staticClass:"thumb-viewer-label float-left q-ma-sm",class:[t.type.hideable?"thumb-closable":""]},[e._v("\n "+e._s(e.capitalize(t.label))+"\n ")]),n("div",{staticClass:"float-right q-ma-xs thumb-viewer-button"},[n("q-btn",{staticClass:"shadow-1",attrs:{round:"",color:"mc-main",size:"xs",icon:"mdi-chevron-up"},on:{click:function(n){e.setMain(t.idx)}}}),t.type.hideable?n("q-btn",{staticClass:"shadow-1 thumb-close",attrs:{round:"",color:"black",size:"xs",icon:"mdi-close"},on:{click:function(n){e.closeViewer(t)}}}):e._e()],1)])]),n(t.type.component,{tag:"component",attrs:{idx:t.idx}})],1)}))},vi=[];gi._withStripped=!0;var bi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"upload-files",rawName:"v-upload-files",value:e.uploadConfig,expression:"uploadConfig"}],staticClass:"fit no-padding map-viewer"},[n("div",{ref:"map"+e.idx,staticClass:"fit",class:{"mv-exploring":e.exploreMode||null!==e.topLayer},attrs:{id:"map"+e.idx}}),n("q-icon",{staticClass:"map-selection-marker",attrs:{name:e.mapSelection.locked?"mdi-image-filter-center-focus":"mdi-crop-free",id:"msm-"+e.idx}}),n("q-resize-observable",{on:{resize:e.handleResize}}),e.isDrawMode?n("map-drawer",{attrs:{map:e.map},on:{drawend:e.sendSpatialLocation}}):e._e(),n("q-modal",{attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":"","content-classes":["gl-msg-content"]},model:{value:e.waitingGeolocation,callback:function(t){e.waitingGeolocation=t},expression:"waitingGeolocation"}},[n("div",{staticClass:"bg-opaque-white"},[n("div",{staticClass:"q-pa-xs"},[n("h5",[e._v(e._s(e.$t("messages.geolocationWaitingTitle")))]),n("p",{domProps:{innerHTML:e._s(e.$t("messages.geolocationWaitingText"))}}),n("p",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],staticClass:"gl-incidence"},[e._v(e._s(e.geolocationIncidence))]),n("div",{staticClass:"gl-btn-container"},[n("q-btn",{directives:[{name:"show",rawName:"v-show",value:null!==e.geolocationIncidence,expression:"geolocationIncidence !== null"}],attrs:{label:e.$t("label.appRetry"),color:"primary"},on:{click:e.retryGeolocation}}),n("q-btn",{attrs:{label:e.$t("label.appCancel"),color:"mc-main"},on:{click:function(t){e.stopGeolocation(!0)}}})],1)])])]),n("q-modal",{attrs:{"no-route-dismiss":!0,"no-esc-dismiss":!0,"no-backdrop-dismiss":!0},model:{value:e.progressBarVisible,callback:function(t){e.progressBarVisible=t},expression:"progressBarVisible"}},[n("q-progress",{attrs:{percentage:e.uploadProgress,color:"mc-main",stripe:!0,animate:!0,height:"1em"}})],1),n("div",{ref:"mv-popup",staticClass:"ol-popup",attrs:{id:"mv-popup"}},[n("q-btn",{staticClass:"ol-popup-closer",attrs:{icon:"mdi-close",color:"grey-8",size:"xs",flat:"",round:""},on:{click:e.closePopup}}),n("div",{staticClass:"ol-popup-content",attrs:{id:"mv-popup-content"},domProps:{innerHTML:e._s(e.popupContent)}})],1),n("observation-context-menu",{attrs:{"observation-id":e.contextMenuObservationId},on:{hide:function(t){e.contextMenuObservationId=null}}}),n("div",{staticClass:"mv-extent-map",class:{"mv-extent-map-hide":!e.hasExtentMap},attrs:{id:"mv-extent-map"}}),e.hasContext||null===e.proposedContext?e._e():n("q-btn",{staticClass:"mv-remove-proposed-context",style:null!==e.proposedContextCenter?e.proposedContextCenter:{},attrs:{icon:"mdi-close",size:"lg",round:""},nativeOn:{click:function(t){e.sendSpatialLocation(null)}}})],1)},yi=[];bi._withStripped=!0;var _i="".concat("").concat(T["c"].REST_UPLOAD),Mi="1024MB",wi=Mi.substr(Mi.length-2),Ci="KB"===wi?1:"MB"===wi?2:"GB"===wi?3:"PB"===wi?4:0,Si=parseInt(Mi.substring(0,Mi.length-2),10)*Math.pow(1024,Ci);function Ai(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}var Ei=He["a"].directive("upload",{inserted:function(e,t){if(Ai()){var n=t.value&&t.value.onUploadProgress&&"function"===typeof t.value.onUploadProgress?t.value.onUploadProgress:function(){},i=t.value&&t.value.onUploadEnd&&"function"===typeof t.value.onUploadEnd?t.value.onUploadEnd:function(){console.debug("Upload complete")},o=t.value&&t.value.onUploadError&&"function"===typeof t.value.onUploadError?t.value.onUploadError:function(e){console.error(JSON.stringify(e,null,4))};["drag","dragstart","dragend","dragover","dragenter","dragleave","drop"].forEach(function(t){e.addEventListener(t,function(e){e.preventDefault(),e.stopPropagation()},!1)}),e.addEventListener("drop",function(e){var r=e.dataTransfer.files;if(null!==r&&0!==r.length){for(var s=new FormData,a=[],c=0;cSi?o("File is too large, max sixe is ".concat(Mi)):(s.append("files[]",r[c]),a.push(r[c].name));"undefined"!==typeof t.value.refId&&null!==t.value.refId&&s.append("refId",t.value.refId||null),L["a"].post(_i,s,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){n(parseInt(Math.round(100*e.loaded/e.total),10))}}).then(function(){i(null!==r&&a.length>0?a.join(", "):null)}).catch(function(e){o(e,null!==r&&a.length>0?a.join(", "):null)})}})}}}),Oi=n("256f"),Li=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragDCConfig,expression:"dragDCConfig"}],staticClass:"md-draw-controls"},[n("div",{staticClass:"md-title"},[e._v("Draw mode")]),n("div",{staticClass:"md-controls"},[n("q-icon",{staticClass:"md-control md-ok",attrs:{name:"mdi-check-circle-outline"},nativeOn:{click:function(t){e.drawOk()}}}),n("q-icon",{staticClass:"md-control md-erase",class:[e.hasCustomContextFeatures?"":"disabled"],attrs:{name:"mdi-delete-variant"},nativeOn:{click:function(t){e.hasCustomContextFeatures&&e.drawErase()}}}),n("q-icon",{staticClass:"md-control md-cancel",attrs:{name:"mdi-close-circle-outline"},nativeOn:{click:function(t){e.drawCancel()}}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.selectors,expression:"selectors"}],staticClass:"md-selector"},[n("q-btn-toggle",{attrs:{"toggle-color":"mc-main",size:"md",options:[{tabindex:1,icon:"mdi-vector-point",value:"Point",disable:!0},{tabindex:2,icon:"mdi-vector-line",value:"LineString",disable:!0},{tabindex:3,icon:"mdi-vector-polygon",value:"Polygon"},{tabindex:4,icon:"mdi-vector-circle-variant",value:"Circle"}]},model:{value:e.drawType,callback:function(t){e.drawType=t},expression:"drawType"}})],1)])},Ti=[];Li._withStripped=!0;var xi=n("a27f"),Ri=n("3e6b"),ki=n("5831"),zi=n("6c77"),Pi=n("83a6"),Ni=n("8682"),Ii=n("ce2c"),Di=n("ac29"),Bi=n("c807"),qi=n("4cdf"),ji=n("f822"),Wi=n("5bc3"),Fi={name:"MapDrawer",props:{map:{type:Object,required:!0},selectors:{type:Boolean,required:!1,default:!0},fillColor:{type:String,required:!1,default:"rgba(17, 170, 187, 0.3)"},strokeColor:{type:String,required:!1,default:"rgb(17, 170, 187)"},strokeWidth:{type:Number,required:!1,default:2},pointRadius:{type:Number,required:!1,default:5}},data:function(){return{drawerLayer:void 0,drawer:void 0,drawerModify:void 0,dragDCConfig:{resetInitialPos:!0},drawType:"Polygon"}},computed:{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0}},methods:s()({},Object(a["b"])("view",["setDrawMode"]),{drawOk:function(){var e=this.drawerLayer.getSource().getFeatures().filter(function(e){return null!==e.getGeometry()}),t=e.length,n=[];if(0!==t){for(var i=null,o=0;o0&&e.pop(),this.drawerLayer.getSource().clear(!0),this.drawerLayer.getSource().addFeatures(e)},drawCancel:function(){this.$emit("drawcancel"),this.drawerLayer.getSource().clear(),this.setDrawMode(!1)},setDrawer:function(){var e=this;this.drawer=new Di["a"]({source:this.drawerLayer.getSource(),type:this.drawType}),this.drawer.on("drawend",function(t){var n=Object(Xe["j"])(t.feature.getGeometry());Object(Xe["i"])(n)||(e.$q.notify({message:e.$t("messages.invalidGeometry"),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),t.feature.setGeometry(null))}),this.map.addInteraction(this.drawer)}}),watch:{drawType:function(){this.map.removeInteraction(this.drawer),this.setDrawer()}},directives:{Draggable:xi["Draggable"]},mounted:function(){var e=new ki["a"];this.drawerModify=new Bi["a"]({source:e}),this.drawerLayer=new Ri["a"]({id:"DrawerLayer",source:e,visible:!0,style:new zi["c"]({fill:new Pi["a"]({color:this.fillColor}),stroke:new Ni["a"]({color:this.strokeColor,width:this.strokeWidth}),image:new Ii["a"]({radius:this.pointRadius,fill:new Pi["a"]({color:this.strokeColor})})})}),this.dragDCConfig.boundingElement=document.getElementById(this.map.get("target")),this.map.addLayer(this.drawerLayer),this.map.addInteraction(this.drawerModify),this.setDrawer()},beforeDestroy:function(){this.map.removeInteraction(this.drawer),this.map.removeInteraction(this.drawerModify),this.drawerLayer.getSource().clear(!0)}},Hi=Fi,Xi=(n("37a9"),Object(y["a"])(Hi,Li,Ti,!1,null,null,null));Xi.options.__file="MapDrawer.vue";var Ui=Xi.exports,Vi=n("e300"),Gi=n("9c78"),Ki=n("c810"),$i=n("592d"),Yi=n("e269"),Ji={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},Qi=n("cd7e"),Zi=n("0999"),eo=n("1e8d"),to=n("0af5"),no={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},io=function(e){function t(t){e.call(this),this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+Qi["d"],this.element.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.autoPanAnimation=t.autoPanAnimation||{},this.autoPanMargin=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},this.mapPostrenderListenerKey=null,Object(eo["a"])(this,Object(Yi["b"])(no.ELEMENT),this.handleElementChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.MAP),this.handleMapChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.OFFSET),this.handleOffsetChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.POSITION),this.handlePositionChanged,this),Object(eo["a"])(this,Object(Yi["b"])(no.POSITIONING),this.handlePositioningChanged,this),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(void 0!==t.positioning?t.positioning:Ji.TOP_LEFT),void 0!==t.position&&this.setPosition(t.position)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getElement=function(){return this.get(no.ELEMENT)},t.prototype.getId=function(){return this.id},t.prototype.getMap=function(){return this.get(no.MAP)},t.prototype.getOffset=function(){return this.get(no.OFFSET)},t.prototype.getPosition=function(){return this.get(no.POSITION)},t.prototype.getPositioning=function(){return this.get(no.POSITIONING)},t.prototype.handleElementChanged=function(){Object(Zi["d"])(this.element);var e=this.getElement();e&&this.element.appendChild(e)},t.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(Zi["e"])(this.element),Object(eo["e"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var e=this.getMap();if(e){this.mapPostrenderListenerKey=Object(eo["a"])(e,$i["a"].POSTRENDER,this.render,this),this.updatePixelPosition();var t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element)}},t.prototype.render=function(){this.updatePixelPosition()},t.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},t.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(no.POSITION)&&this.autoPan&&this.panIntoView()},t.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},t.prototype.setElement=function(e){this.set(no.ELEMENT,e)},t.prototype.setMap=function(e){this.set(no.MAP,e)},t.prototype.setOffset=function(e){this.set(no.OFFSET,e)},t.prototype.setPosition=function(e){this.set(no.POSITION,e)},t.prototype.panIntoView=function(){var e=this.getMap();if(e&&e.getTargetElement()){var t=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),i=this.getRect(n,[Object(Zi["c"])(n),Object(Zi["b"])(n)]),o=this.autoPanMargin;if(!Object(to["g"])(t,i)){var r=i[0]-t[0],s=t[2]-i[2],a=i[1]-t[1],c=t[3]-i[3],l=[0,0];if(r<0?l[0]=r-o:s<0&&(l[0]=Math.abs(s)+o),a<0?l[1]=a-o:c<0&&(l[1]=Math.abs(c)+o),0!==l[0]||0!==l[1]){var u=e.getView().getCenter(),d=e.getPixelFromCoordinate(u),h=[d[0]+l[0],d[1]+l[1]];e.getView().animate({center:e.getCoordinateFromPixel(h),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},t.prototype.getRect=function(e,t){var n=e.getBoundingClientRect(),i=n.left+window.pageXOffset,o=n.top+window.pageYOffset;return[i,o,i+t[0],o+t[1]]},t.prototype.setPositioning=function(e){this.set(no.POSITIONING,e)},t.prototype.setVisible=function(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)},t.prototype.updatePixelPosition=function(){var e=this.getMap(),t=this.getPosition();if(e&&e.isRendered()&&t){var n=e.getPixelFromCoordinate(t),i=e.getSize();this.updateRenderedPosition(n,i)}else this.setVisible(!1)},t.prototype.updateRenderedPosition=function(e,t){var n=this.element.style,i=this.getOffset(),o=this.getPositioning();this.setVisible(!0);var r=i[0],s=i[1];if(o==Ji.BOTTOM_RIGHT||o==Ji.CENTER_RIGHT||o==Ji.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=n.left="");var a=Math.round(t[0]-e[0]-r)+"px";this.rendered.right_!=a&&(this.rendered.right_=n.right=a)}else{""!==this.rendered.right_&&(this.rendered.right_=n.right=""),o!=Ji.BOTTOM_CENTER&&o!=Ji.CENTER_CENTER&&o!=Ji.TOP_CENTER||(r-=this.element.offsetWidth/2);var c=Math.round(e[0]+r)+"px";this.rendered.left_!=c&&(this.rendered.left_=n.left=c)}if(o==Ji.BOTTOM_LEFT||o==Ji.BOTTOM_CENTER||o==Ji.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=n.top="");var l=Math.round(t[1]-e[1]-s)+"px";this.rendered.bottom_!=l&&(this.rendered.bottom_=n.bottom=l)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=n.bottom=""),o!=Ji.CENTER_LEFT&&o!=Ji.CENTER_CENTER&&o!=Ji.CENTER_RIGHT||(s-=this.element.offsetHeight/2);var u=Math.round(e[1]+s)+"px";this.rendered.top_!=u&&(this.rendered.top_=n.top=u)}},t.prototype.getOptions=function(){return this.options},t}(Yi["a"]),oo=io,ro=n("b2da"),so=n.n(ro),ao=n("64d9"),co=n("f403"),lo=n("01d4"),uo=n("3900"),ho="projection",po="coordinateFormat",fo=function(e){function t(t){var n=t||{},i=document.createElement("div");i.className=void 0!==n.className?n.className:"ol-mouse-position",e.call(this,{element:i,render:n.render||mo,target:n.target}),Object(eo["a"])(this,Object(Yi["b"])(ho),this.handleProjectionChanged_,this),n.coordinateFormat&&this.setCoordinateFormat(n.coordinateFormat),n.projection&&this.setProjection(n.projection),this.undefinedHTML_=void 0!==n.undefinedHTML?n.undefinedHTML:" ",this.renderOnMouseOut_=!!this.undefinedHTML_,this.renderedHTML_=i.innerHTML,this.mapProjection_=null,this.transform_=null,this.lastMouseMovePixel_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.handleProjectionChanged_=function(){this.transform_=null},t.prototype.getCoordinateFormat=function(){return this.get(po)},t.prototype.getProjection=function(){return this.get(ho)},t.prototype.handleMouseMove=function(e){var t=this.getMap();this.lastMouseMovePixel_=t.getEventPixel(e),this.updateHTML_(this.lastMouseMovePixel_)},t.prototype.handleMouseOut=function(e){this.updateHTML_(null),this.lastMouseMovePixel_=null},t.prototype.setMap=function(t){if(e.prototype.setMap.call(this,t),t){var n=t.getViewport();this.listenerKeys.push(Object(eo["a"])(n,lo["a"].MOUSEMOVE,this.handleMouseMove,this),Object(eo["a"])(n,lo["a"].TOUCHSTART,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(eo["a"])(n,lo["a"].MOUSEOUT,this.handleMouseOut,this),Object(eo["a"])(n,lo["a"].TOUCHEND,this.handleMouseOut,this))}},t.prototype.setCoordinateFormat=function(e){this.set(po,e)},t.prototype.setProjection=function(e){this.set(ho,Object(Oi["g"])(e))},t.prototype.updateHTML_=function(e){var t=this.undefinedHTML_;if(e&&this.mapProjection_){if(!this.transform_){var n=this.getProjection();this.transform_=n?Object(Oi["j"])(this.mapProjection_,n):Oi["k"]}var i=this.getMap(),o=i.getCoordinateFromPixel(e);if(o){this.transform_(o,o);var r=this.getCoordinateFormat();t=r?r(o):o.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)},t}(uo["default"]);function mo(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}var go=fo,vo=n("a568"),bo=(n("c58e"),{name:"MapViewer",components:{MapDrawer:Ui,ObservationContextMenu:un},props:{idx:{type:Number,required:!0}},directives:{UploadFiles:Ei},data:function(){var e=this;return{center:this.$mapDefaults.center,zoom:this.$mapDefaults.zoom,map:null,extentMap:null,hasExtentMap:!1,view:null,movedWithContext:!1,noNewRegion:!1,layers:new Vi["a"],zIndexCounter:0,baseLayers:null,layerSwitcher:null,visibleBaseLayer:null,mapSelectionMarker:void 0,wktInstance:new ao["a"],geolocationId:null,geolocationIncidence:null,popupContent:"",popupOverlay:void 0,contextLayer:null,proposedContextLayer:null,proposedContextCenter:null,uploadConfig:{refId:null,onUploadProgress:function(t){e.uploadProgress=t},onUploadEnd:function(t){e.$q.notify({message:e.$t("messages.uploadComplete",{fileName:t}),type:"info",icon:"mdi-information",timeout:1e3}),e.uploadProgress=null},onUploadError:function(t,n){e.$q.notify({message:"".concat(e.$t("errors.uploadError",{fileName:n}),"\n").concat(t.response.data.message),type:"negative",icon:"mdi-alert-circle",timeout:1e3}),e.uploadProgress=null}},uploadProgress:null,storedZoom:null,clicksOnMap:0,bufferingLayers:!1,lastModificationLoaded:null,previousTopLayer:null,lockedObservations:[],contextMenuObservationId:null,coordinatesControl:void 0}},computed:s()({observations:function(){return this.$store.getters["data/observationsOfViewer"](this.idx)},lockedObservationsIds:function(){return this.lockedObservations.map(function(e){return e.id})}},Object(a["c"])("data",["proposedContext","hasContext","contextId","contextLabel","session","timestamp","scaleReference","timeEvents","timeEventsOfObservation"]),Object(a["c"])("view",["contextGeometry","observationInfo","exploreMode","mapSelection","isDrawMode","topLayer","mainViewer","viewCoordinates"]),Object(a["d"])("view",["saveLocation"]),{hasCustomContextFeatures:function(){return this.drawerLayer&&this.drawerLayer.getSource().getFeatures().length>0},progressBarVisible:function(){return null!==this.uploadProgress},waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}}}),methods:s()({},Object(a["b"])("data",["setCrossingIDL","putObservationOnTop"]),Object(a["b"])("view",["addToKexplorerLog","setSpinner","setMapSelection","setDrawMode","setTopLayer","setShowSettings"]),{handleResize:function(){null!==this.map&&(this.map.updateSize(),this.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED))},onMoveEnd:function(){this.hasContext?this.movedWithContext=!0:this.isDrawMode||this.noNewRegion?this.noNewRegion=!1:this.sendRegionOfInterest()},sendRegionOfInterest:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.waitingGeolocation){var e=null,t=Object(Oi["l"])(this.view.getCenter(),Lt["d"].PROJ_EPSG_3857,Lt["d"].PROJ_EPSG_4326);Math.abs(t[0])>180&&(t[0]%=180,this.view.animate({center:Object(Oi["l"])(t,Lt["d"].PROJ_EPSG_4326,Lt["d"].PROJ_EPSG_3857),duration:500}));try{var n=Object(Oi["m"])(this.map.getView().calculateExtent(this.map.getSize()),"EPSG:3857","EPSG:4326");if(n[0]<-180||n[1]<-90||n[2]>180||n[3]>90)return void this.setCrossingIDL(!0);this.setCrossingIDL(!1),e=l["a"].REGION_OF_INTEREST(n,this.session)}catch(e){console.error(e),this.addToKexplorerLog({type:c["v"].TYPE_ERROR,payload:{message:e.message,attach:e}})}e&&e.body&&(this.sendStompMessage(e.body),this.saveLocation&&V["a"].set(c["O"].COOKIE_MAPDEFAULT,{center:this.view.getCenter(),zoom:this.view.getZoom()},{expires:30,path:"/",secure:!0}))}},findExistingLayerById:function(e){if(this.layers&&null!==this.layers){var t=this.layers.getArray();return t.filter(function(t){return null===t.get("id")?null===e:t.get("id").startsWith(e)})}return[]},findModificationTimestamp:function(e,t){if(-1!==t){var n=null===e?this.timeEvents:this.timeEventsOfObservation(e);return n.length>0?n.reduce(function(e,n){var i=t-n.timestamp;return i<=0?e:-1===e||i0)){e.next=7;break}if(c="".concat(n.id,"T").concat(o),l=a.find(function(e){return e.get("id")===c}),!l){e.next=7;break}return e.abrupt("return",{founds:a,layer:l});case 7:return e.prev=7,console.debug("Creating layer: ".concat(n.label," with timestamp ").concat(o)),e.next=11,Object(Ue["k"])(n,{projection:this.proj,timestamp:o,realTimestamp:s?o:this.timestamp});case 11:return u=e.sent,a&&a.length>0?u.setZIndex(n.zIndex):(this.zIndexCounter+=2,n.zIndex=this.zIndexCounter+n.zIndexOffset,u.setZIndex(n.zIndex)),this.layers.push(u),a.push(u),e.abrupt("return",{founds:a,layer:u});case 18:return e.prev=18,e.t0=e["catch"](7),console.error(e.t0.message),this.$q.notify({message:e.t0.message,type:"negative",icon:"mdi-alert-circle",timeout:3e3}),e.abrupt("return",null);case 23:case"end":return e.stop()}},e,this,[[7,18]])}));return function(t){return e.apply(this,arguments)}}(),bufferLayerImages:function(e){var t=this;e.stop>=this.scaleReference.end&&(e.stop=this.scaleReference.end-1),console.debug("Ask preload from ".concat(e.start," to ").concat(e.stop));var n=this.timeEvents.filter(function(t){return t.timestamp>e.start&&t.timestamp<=e.stop}),i=n.length;if(i>0){var o=function e(o){var r=t.observations.find(function(e){return e.id===n[o].id});r&&t.findLayerById({observation:r,timestamp:n[o].timestamp,isBuffer:!0}).then(function(t){var n=t.layer,r=n.getSource().image_;r&&0===r.state?(r.load(),n.getSource().on("imageloadend",function(t){t.image;++o125&&(this.hasExtentMap=!0,this.$nextTick(function(){e.extentMap.addLayer(e.proposedContextLayer),e.extentMap.getView().fit(e.proposedContext,{padding:[10,10,10,10],constrainResolution:!1})}))}},drawContext:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t&&(this.layers.clear(),this.lockedObservations=[],this.previousTopLayer=null,null!==this.contextLayer?(this.map.removeLayer(this.contextLayer),this.contextLayer=null):this.baseLayers.removeMask()),null===this.contextGeometry)return console.debug("No context, send region of interest"),void this.sendRegionOfInterest();this.contextGeometry instanceof Array?(this.contextLayer=new Ri["a"]({id:this.contextId,source:new ki["a"]({features:[new qi["a"]({geometry:new co["a"](this.contextGeometry),name:this.contextLabel,id:this.contextId})]}),style:Object(Xe["d"])(Lt["e"].POINT_CONTEXT_SVG_PARAM,this.contextLabel)}),this.map.addLayer(this.contextLayer),this.view.setCenter(this.contextGeometry)):(this.baseLayers.setMask(this.contextGeometry),this.view.fit(this.contextGeometry,{padding:[10,10,10,10],constrainResolution:!1}))},drawObservations:function(){var e=W()(regeneratorRuntime.mark(function e(){var t,n,i=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.observations&&this.observations.length>0&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.visible}),t=this.observations.find(function(e){return e.top&&Object(Ue["n"])(e)}),t&&(this.previousTopLayer&&this.previousTopLayer.visible?t.id!==this.previousTopLayer.id&&(this.lockedObservations=this.lockedObservations.filter(function(e){return e.id!==t.id}),this.lockedObservations.push(this.previousTopLayer),this.previousTopLayer=t):this.previousTopLayer=t),n="undefined"!==typeof this.observations.find(function(e){return e.visible&&e.loading}),this.observations.forEach(function(e){if(!e.isContainer){var t=i.findModificationTimestamp(e.id,i.timestamp);i.findLayerById({observation:e,timestamp:t}).then(function(o){if(null!==o){var r=o.founds,s=o.layer;s.setOpacity(e.layerOpacity),s.setVisible(e.visible);var a=e.zIndex;if(e.top?a=e.zIndexOffset+Lt["d"].ZINDEX_TOP:i.lockedObservationsIds.length>0&&i.lockedObservationsIds.includes(e.id)&&(a=Math.max(s.get("zIndex")-10,1)),n||(s.setZIndex(a),e.visible&&e.top&&Object(Ue["n"])(e)&&(null===i.topLayer||i.topLayer.id!=="".concat(e.id,"T").concat(t))?i.setTopLayer({id:"".concat(e.id,"T").concat(t),desc:e.label}):e.visible&&e.top||null===i.topLayer||i.topLayer.id!=="".concat(e.id,"T").concat(t)||i.setTopLayer(null)),r.length>0)if(e.visible){if(-1===t||-1!==e.tsImages.indexOf("T".concat(t))){var c=[];r.forEach(function(n,i){n.get("id")==="".concat(e.id,"T").concat(t)?n.setVisible(!0):n.getVisible()&&c.push(i)}),c.length>0&&c.forEach(function(e){i.$nextTick(function(){r[e].setVisible(!1)})})}}else r.forEach(function(e){e.setVisible(!1)});else console.debug("No multiple layer for observation ".concat(e.id,", refreshing")),s.setVisible(e.visible)}})}}),null===this.topLayer&&this.closePopup());case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),sendSpatialLocation:function(e){if(e){var t=this.wktInstance.writeFeaturesText(e,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});this.sendStompMessage(l["a"].SPATIAL_LOCATION({wktShape:t},this.session).body),this.setCrossingIDL(!1)}else this.sendStompMessage(l["a"].SPATIAL_LOCATION({wktShape:""},this.session).body)},doGeolocation:function(){var e=this;null!==this.geolocationId&&navigator.geolocation.clearWatch(this.geolocationId),this.geolocationId=navigator.geolocation.watchPosition(function(t){e.center=Object(Oi["l"])([t.coords.longitude,t.coords.latitude],Lt["d"].PROJ_EPSG_4326,Lt["d"].PROJ_EPSG_3857),e.stopGeolocation()},function(t){switch(t.code){case t.PERMISSION_DENIED:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.POSITION_UNAVAILABLE:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;case t.TIMEOUT:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break;default:e.geolocationIncidence=e.$t("messages.geolocationErrorPermissionDenied");break}},{enableHighAccuracy:!0,maximumAge:3e4,timeout:6e4})},retryGeolocation:function(){this.geolocationIncidence=null,this.doGeolocation()},stopGeolocation:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];navigator.geolocation.clearWatch(this.geolocationId),this.$nextTick(function(){e.waitingGeolocation=!1,t&&e.sendRegionOfInterest()})},closePopup:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&this.mapSelection.locked||(this.setMapSelection(c["g"].EMPTY_MAP_SELECTION),this.popupOverlay.setPosition(void 0))},setMapInfoPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,n=void 0===t?null:t,i=e.locked,o=void 0!==i&&i,r=e.layer,a=void 0===r?null:r;if(this.exploreMode||null!==this.topLayer){var l,u;if(null!==n?(l=n.coordinate,o&&(n.preventDefault(),n.stopPropagation())):(o=this.mapSelection.locked,l=this.mapSelection.pixelSelected),null===a){u=this.exploreMode?"".concat(this.observationInfo.id,"T").concat(this.findModificationTimestamp(this.observationInfo.id,this.timestamp)):this.topLayer.id;var d=this.findExistingLayerById(u),h=Fe()(d,1);a=h[0]}else u=a.get("id");var p=new Ki["a"]({id:"cl_".concat(u),source:a.getSource()});this.setMapSelection(s()({pixelSelected:l,timestamp:this.timestamp,layerSelected:p},!this.exploreMode&&{observationId:this.getObservationIdFromLayerId(u)},{locked:o}))}else this.$eventBus.$emit(c["h"].VIEWER_CLICK,n)},needFitMapListener:function(e){var t=this,n=e.mainIdx,i=void 0===n?null:n,o=e.geometry,r=void 0===o?null:o,s=e.withPadding,a=void 0===s||s;null===r&&this.mainViewer.name===c["L"].DATA_VIEWER.name&&this.contextGeometry&&null!==this.contextGeometry&&(r=this.contextGeometry),null!==r?(null!==i&&this.idx===i||(this.storedZoom=this.view.getZoom()),setTimeout(function(){r instanceof Array&&2===r.length?t.view.setCenter(r):t.view.fit(r,{padding:a?[10,10,10,10]:[0,0,0,0],constrainResolution:!1,callback:function(){t.movedWithContext=!1}})},200)):null!==this.storedZoom&&(this.view.setZoom(this.storedZoom),this.storedZoom=null)},observationInfoClosedListener:function(){this.mapSelection.locked||this.closePopup()},sendRegionOfInterestListener:function(){this.sendRegionOfInterest()},findTopLayerFromClick:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[],i=[];return this.map.forEachLayerAtPixel(e.pixel,function(e){i[e.getType()]&&i[e.getType()]>e.get("zIndex")||(i[e.getType()]=e.get("zIndex"),n.push({layer:e,type:e.getType()}))},{layerFilter:function(e){return"TILE"!==e.getType()&&(!t||"VECTOR"!==e.getType())}}),n},getObservationIdFromLayerId:function(e){return e&&""!==e?e.substr(0,e.indexOf("T")):e},copyCoordinates:function(e){var t=this.coordinatesControl.element.innerText,n=document.createElement("textarea");n.value=t,n.style.top="0",n.style.left="0",n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy");this.$q.notify({message:this.$t("messages.copiedToClipboard"),type:"info",icon:"mdi-information",timeout:1e3})}catch(e){console.error("Oops, unable to copy",e)}document.body.removeChild(n)},setCoordinatesControl:function(){var e=document.querySelector(".ol-mouse-position");this.viewCoordinates?this.map.addControl(this.coordinatesControl):e&&this.map.removeControl(this.coordinatesControl),V["a"].set(c["O"].COOKIE_VIEW_COORDINATES,this.viewCoordinates,{expires:365,path:"/",secure:!0})}}),watch:{contextGeometry:function(e,t){this.drawContext(e,t),null!==e||this.movedWithContext||this.needFitMapListener({geometry:t,withPadding:!1}),this.movedWithContext=!1},observations:{handler:function(){var e=this;this.$nextTick(function(){return e.drawObservations()})},deep:!0},timestamp:function(e){var t=this.findModificationTimestamp(null,e);t!==this.lastModificationLoaded&&(this.lastModificationLoaded=t,this.drawObservations())},center:function(){this.view.setCenter(this.center)},mapSelection:function(e){if("undefined"!==typeof e&&null!==e&&null!==e.pixelSelected){if(this.mapSelectionMarker.setPosition(e.pixelSelected),null!==this.topLayer){var t=Object(Oi["l"])(e.pixelSelected,"EPSG:3857","EPSG:4326");this.popupContent="

".concat(this.topLayer.desc,'

\n
\n

').concat(e.value,'

\n
\n

').concat(t[1].toFixed(6),", ").concat(t[0].toFixed(6),"

"),this.popupOverlay.setPosition(e.pixelSelected)}}else this.closePopup(),this.mapSelectionMarker.setPosition(void 0)},hasContext:function(e){this.uploadConfig.refId=this.contextId,e?this.setDrawMode(!1):(this.sendRegionOfInterest(),this.popupOverlay.setPosition(void 0))},proposedContext:function(e){var t=this;this.drawProposedContext(),this.$nextTick(function(){t.setSpinner(s()({},c["G"].SPINNER_STOPPED,{owner:"KlabSearch"}))})},topLayer:function(e){null!==e&&this.mapSelection.locked?this.setMapInfoPoint():this.closePopup()},hasExtentMap:function(){var e=this;this.hasExtentMap&&this.$nextTick(function(){e.extentMap.updateSize()}),this.setShowSettings(!this.hasExtentMap)},viewCoordinates:function(){this.setCoordinatesControl()}},created:function(){this.waitingGeolocation="geolocation"in navigator&&!V["a"].has(c["O"].COOKIE_MAPDEFAULT)},mounted:function(){var e=this;this.baseLayers=Lt["a"],this.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t);var n=t;n.on("propertychange",function(t){e.visibleBaseLayer=n,"propertychange"===t.type&&"visible"===t.key&&t.target.get(t.key)&&V["a"].set(c["O"].COOKIE_BASELAYER,n.get("name"),{expires:30,path:"/",secure:!0})})});var t=Lt["c"].MAPBOX_GOT;t.setVisible(!0);var n=new Gi["default"]({title:"BaseLayers",layers:this.baseLayers.layers});this.map=new yn["a"]({view:new _n["a"]({center:this.center,zoom:this.zoom}),layers:n,target:"map".concat(this.idx),loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0}),this.map.on("moveend",this.onMoveEnd),this.map.on("click",function(i){if(e.viewCoordinates&&i.originalEvent.ctrlKey&&!i.originalEvent.altKey)e.copyCoordinates(i);else{if(e.isDrawMode)return i.preventDefault(),void i.stopPropagation();if(i.originalEvent.ctrlKey&&i.originalEvent.altKey&&i.originalEvent.shiftKey){var o=n.getLayersArray().slice(-1)[0];o&&"mapbox_got"===o.get("name")?(n.getLayers().pop(),e.baseLayers.layers.forEach(function(t){t.get("name")===e.$baseLayer&&(t.setVisible(!0),e.visibleBaseLayer=t)})):(n.getLayers().push(t),e.$q.notify({message:e.$t("messages.youHaveGOT"),type:"info",icon:"mdi-information",timeout:1500}))}e.clicksOnMap+=1,setTimeout(W()(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:1===e.clicksOnMap&&(n=e.findTopLayerFromClick(i,!1),n.length>0&&n.forEach(function(t){var o=t.layer.get("id");"VECTOR"===t.type?(e.putObservationOnTop(e.getObservationIdFromLayerId(o)),1===n.length&&e.closePopup()):e.topLayer&&o===e.topLayer.id?e.setMapInfoPoint({event:i}):(e.putObservationOnTop(e.getObservationIdFromLayerId(o)),e.setMapInfoPoint({event:i,layer:t.layer}))}),e.clicksOnMap=0);case 1:case"end":return t.stop()}},t)})),300)}}),this.map.on("dblclick",function(t){if(e.isDrawMode)return t.preventDefault(),void t.stopPropagation();var n=e.findTopLayerFromClick(t);if(1===n.length){var i=n[0].layer.get("id");e.topLayer&&i===e.topLayer.id?e.setMapInfoPoint({event:t,locked:!0}):(e.putObservationOnTop(e.getObservationIdFromLayerId(i)),e.setMapInfoPoint({event:t,locked:!0,layer:n[0].layer})),e.clicksOnMap=0}else console.warn("Multiple layer but must be one")}),this.map.on("contextmenu",function(t){var n=e.findTopLayerFromClick(t,!1);n.length>0&&(e.contextMenuObservationId=e.getObservationIdFromLayerId(n[0].layer.get("id")),t.preventDefault())}),this.view=this.map.getView(),this.proj=this.view.getProjection(),this.map.addLayer(new Gi["default"]({layers:this.layers})),this.layerSwitcher=new so.a,this.map.addControl(this.layerSwitcher),this.mapSelectionMarker=new oo({element:document.getElementById("msm-".concat(this.idx)),positioning:"center-center"}),this.map.addOverlay(this.mapSelectionMarker),this.popupOverlay=new oo({element:document.getElementById("mv-popup"),autoPan:!0,autoPanAnimation:{duration:250}}),this.map.addOverlay(this.popupOverlay),this.extentMap=new yn["a"]({view:new _n["a"]({center:[0,0],zoom:12}),target:"mv-extent-map",layers:[Lt["c"].OSM_LAYER],controls:[]}),this.coordinatesControl=new go({coordinateFormat:Object(vo["c"])(6),projection:Lt["d"].PROJ_EPSG_4326,undefinedHTML:"..."}),this.setCoordinatesControl(),this.drawContext(),this.drawObservations(),this.drawProposedContext(),this.waitingGeolocation&&this.doGeolocation(),this.setShowSettings(!this.hasExtentMap),this.$eventBus.$on(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$on(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$on(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$on(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_FIT_MAP,this.needFitMapListener),this.$eventBus.$off(c["h"].OBSERVATION_INFO_CLOSED,this.observationInfoClosedListener),this.$eventBus.$off(c["h"].SEND_REGION_OF_INTEREST,this.sendRegionOfInterestListener),this.$eventBus.$off(c["h"].NEED_LAYER_BUFFER,this.bufferLayerImages)}}),yo=bo,_o=(n("c612"),Object(y["a"])(yo,bi,yi,!1,null,null,null));_o.options.__file="MapViewer.vue";var Mo=_o.exports,wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fit gv-container",on:{wheel:e.changeForce}},[0===e.nodes.length?n("q-spinner",{attrs:{color:"mc-main",size:40}}):e._e(),n("q-resize-observable",{on:{resize:e.resize}}),n("d3-network",{ref:"gv-graph-"+e.idx,attrs:{"net-nodes":e.nodes,"net-links":e.links,options:e.options}})],1)},Co=[];wo._withStripped=!0;var So=n("a5b7"),Ao=n.n(So),Eo={name:"GraphViewer",components:{D3Network:Ao.a},props:{idx:{type:Number,required:!0}},data:function(){var e=Object.assign({},c["P"]);return e},computed:{observation:function(){var e=this.$store.getters["data/observationsOfViewer"](this.idx);return e.length>0?e[0]:null}},methods:{loadGraph:function(){var e=this,t="".concat("").concat(T["c"].REST_SESSION_VIEW,"data/").concat(this.observation.id);Object(Ue["h"])("gr_".concat(this.observation.id),t,{params:{format:"NETWORK",outputFormat:"json"}},function(t,n){if(t&&"undefined"!==typeof t.data){var i=t.data,o=i.nodes,r=i.edges;e.nodes=o.map(function(e){return{id:e.id,name:e.label,nodeSym:"~assets/klab-spinner.svg"}}),e.links=r.map(function(e){return{id:e.id,name:e.label,sid:e.source,tid:e.target}}),e.resize()}n()})},resize:function(){var e={w:this.$el.clientWidth,h:this.$el.clientHeight};this.updateOptions("size",e)},changeForce:function(e){if(e.preventDefault(),e&&e.deltaY){var t=this.options.force;if(e.deltaY<0&&t<5e3)t+=50;else{if(!(e.deltaY>0&&t>50))return;t-=50}this.updateOptions("force",t)}},updateOptions:function(e,t){this.options=s()({},this.options,p()({},e,t))},reset:function(){this.selected={},this.linksSelected={},this.nodes=[],this.links=[],this.$set(this.$data,"options",c["P"].options)},viewerClosedListener:function(e){var t=e.idx;t===this.idx&&this.$eventBus.$emit(c["h"].SHOW_NODE,{nodeId:this.observation.id,state:!1})}},watch:{observation:function(e){null!==e&&0===this.nodes.length?this.loadGraph():null===e&&this.reset()}},mounted:function(){this.options.size.w=this.$el.clientWidth,this.options.size.h=this.$el.clientHeight,this.$eventBus.$on(c["h"].VIEWER_CLOSED,this.viewerClosedListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].VIEWER_CLOSED,this.viewerClosedListener)}},Oo=Eo,Lo=(n("6420"),n("9198"),Object(y["a"])(Oo,wo,Co,!1,null,null,null));Lo.options.__file="GraphViewer.vue";var To=Lo.exports,xo=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},Ro=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fit uv-container"},[n("h4",[e._v("Under construction")])])}];xo._withStripped=!0;var ko={name:"UnknownViewer",props:{idx:{type:Number,required:!0}}},zo=ko,Po=(n("1fac"),Object(y["a"])(zo,xo,Ro,!1,null,null,null));Po.options.__file="UnknownViewer.vue";var No=Po.exports,Io=[],Do={components:{MapViewer:Mo,GraphViewer:To,UnknownViewer:No},computed:s()({},Object(a["c"])("view",["dataViewers","mainDataViewerIdx","dataViewers"])),methods:s()({},Object(a["b"])("view",["setMainDataViewer"]),{setMain:function(e){this.setMainDataViewer({viewerIdx:e}),this.$eventBus.$emit(c["h"].VIEWER_SELECTED,{idx:e})},closeViewer:function(e){this.setMainDataViewer({viewerIdx:e.idx,viewerType:e.type,visible:!1}),this.$eventBus.$emit(c["h"].VIEWER_CLOSED,{idx:e.idx})},viewerStyle:function(e){return e.main?"":e.type.hideable&&!e.visible?"display: none":(Io.push(e),0===Io.length?"left: 0":"left: ".concat(200*(Io.length-1)+10*(Io.length-1),"px"))},capitalize:function(e){return Object(Xe["a"])(e)}}),watch:{mainDataViewerIdx:function(){Io=[]},dataViewers:{handler:function(e){var t=this,n=e.length>0?e.find(function(e){return e.main}):null;this.$nextTick(function(){t.$eventBus.$emit(c["h"].NEED_FIT_MAP,s()({},null!==n&&"undefined"!==typeof n&&{idx:n.idx}))})},deep:!0}},beforeUpdate:function(){Io=[]},mounted:function(){Io=[]}},Bo=Do,qo=(n("f164"),Object(y["a"])(Bo,gi,vi,!1,null,"216658d8",null));qo.options.__file="DataViewer.vue";var jo=qo.exports,Wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-layout",{staticClass:"kd-main-container print-hide",style:{width:e.containerStyle.width+"px",height:e.containerStyle.height+"px"},attrs:{view:"hHh Lpr fFf",container:""}},[n("q-layout-header",[n("documentation-header")],1),n("q-layout-drawer",{attrs:{side:"left",breakpoint:0,"content-class":["klab-left","no-scroll"],width:e.LEFTMENU_CONSTANTS.LEFTMENU_DOCUMENTATION_SIZE,overlay:!1},model:{value:e.leftMenu,callback:function(t){e.leftMenu=t},expression:"leftMenu"}},[n("documentation-tree")],1),n("q-page-container",[n("q-page",{staticClass:"column"},[n("div",{staticClass:"col row full-height kd-container"},[n("documentation-viewer")],1)])],1),n("q-modal",{staticClass:"kd-modal",attrs:{"no-backdrop-dismiss":"","no-esc-dismiss":""},on:{show:e.launchPrint},model:{value:e.print,callback:function(t){e.print=t},expression:"print"}},[n("documentation-viewer",{attrs:{"for-printing":!0}}),n("q-btn",{staticClass:"dv-print-hide print-hide",attrs:{icon:"mdi-close",round:"",flat:"",size:"sm",color:"mc-main"},on:{click:function(t){e.print=!1}}})],1)],1)},Fo=[];Wo._withStripped=!0;var Ho=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dh-container full-width row items-center"},[n("div",{staticClass:"dh-tabs col justify-start"},[n("q-tabs",{attrs:{color:"mc-main","underline-color":"mc-main"},model:{value:e.selectedTab,callback:function(t){e.selectedTab=t},expression:"selectedTab"}},[n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.REPORT,icon:"mdi-text-box-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.REPORT)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.TABLES,icon:"mdi-table",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.TABLES)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.FIGURES,icon:"mdi-image",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.FIGURES)},slot:"title"}),n("q-tab",{staticClass:"klab-tab",attrs:{slot:"title",name:e.DOCUMENTATION_VIEWS.RESOURCES,icon:"mdi-database-outline",alert:-1!==e.reloadViews.indexOf(e.DOCUMENTATION_VIEWS.RESOURCES)},slot:"title"})],1)],1),n("div",{staticClass:"dh-actions justify-end"},[n("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-refresh",flat:"",color:"mc-main"},on:{click:e.forceReload}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appReload")))])],1),n("q-btn",{staticClass:"dh-button",attrs:{icon:"mdi-printer",flat:"",color:"mc-main"},on:{click:e.print}},[n("q-tooltip",{attrs:{offset:[0,8],self:"bottom middle",anchor:"top middle",delay:1e3}},[e._v(e._s(e.$t("label.appPrint")))])],1),e.selectedTab===e.DOCUMENTATION_VIEWS.TABLES?[n("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize-1<8,flat:"",icon:"mdi-format-font-size-decrease",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(-1)}}}),n("q-btn",{staticClass:"dh-button",attrs:{disable:e.tableFontSize+1>50,flat:"",icon:"mdi-format-font-size-increase",color:"mc-main"},on:{click:function(t){e.tableFontSizeChange(1)}}})]:e._e()],2),e.hasSpinner?n("div",{staticClass:"dh-spinner col-1 justify-end"},[n("transition",{attrs:{appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut"}},[n("div",{staticClass:"klab-spinner-div item-center",attrs:{id:"kd-spinner"}},[n("klab-spinner",{attrs:{id:"spinner-documentation","store-controlled":!0,size:30,ball:22,wrapperId:"kd-spinner"}})],1)])],1):e._e()])},Xo=[];Ho._withStripped=!0;var Uo={name:"DocumentationHeader",components:{KlabSpinner:M},data:function(){return{DOCUMENTATION_VIEWS:c["n"]}},computed:s()({},Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["leftMenuState","hasHeader","reloadViews","tableFontSize"]),{hasSpinner:function(){return!(this.leftMenuState!==c["t"].LEFTMENU_HIDDEN&&!this.hasHeader)},selectedTab:{get:function(){return this.$store.getters["view/documentationView"]},set:function(e){this.$store.dispatch("view/setDocumentationView",e,{root:!0}),this.setDocumentationSelected(null)}}}),methods:s()({},Object(a["b"])("view",["setTableFontSize","setDocumentationSelected"]),{tableFontSizeChange:function(e){this.setTableFontSize(this.tableFontSize+e),this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table")},forceReload:function(){this.$eventBus.$emit(c["h"].REFRESH_DOCUMENTATION,{force:!0})},print:function(){this.$eventBus.$emit(c["h"].PRINT_DOCUMENTATION)}})},Vo=Uo,Go=(n("d18c"),Object(y["a"])(Vo,Ho,Xo,!1,null,null,null));Go.options.__file="DocumentationHeader.vue";var Ko=Go.exports,$o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dt-container relative-position klab-menu-component"},[n("div",{staticClass:"dt-doc-container simplebar-vertical-only"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.tree.length,expression:"tree.length === 0"}],staticClass:"dt-tree-empty"},[e._v(e._s(e.$t("label.noDocumentation")))]),n("klab-q-tree",{attrs:{nodes:e.tree,"node-key":"id","check-click":!1,selected:e.selected,expanded:e.expanded,ticked:e.ticked,"text-color":"white","control-color":"white",color:"white",dark:!0,"no-nodes-label":e.$t("label.noNodes"),"no-results-label":e.$t("label.noNodes"),filter:e.documentationView,"filter-method":e.filter},on:{"update:selected":function(t){e.selected=t},"update:expanded":function(t){e.expanded=t},"update:ticked":function(t){e.ticked=t}}})],1),n("q-resize-observable",{on:{resize:function(t){e.$emit("resized")}}})],1)},Yo=[];$o._withStripped=!0;var Jo={name:"DocumentationTree",components:{KlabQTree:on},data:function(){return{expanded:[],selected:null,ticked:[],DOCUMENTATION_VIEWS:c["n"]}},computed:s()({},Object(a["c"])("data",["documentationTrees"]),Object(a["c"])("view",["documentationView","documentationSelected"]),{tree:function(){var e=this,t=this.documentationTrees.find(function(t){return t.view===e.documentationView}).tree||[];return t}}),methods:s()({},Object(a["b"])("view",["setDocumentationSelected"]),{filter:function(e,t){return t!==c["n"].REPORT||e.type!==c["l"].PARAGRAPH&&e.type!==c["l"].CITATION}}),watch:{selected:function(e){this.setDocumentationSelected(e)},documentationSelected:function(){this.selected=this.documentationSelected}},mounted:function(){this.selected=this.documentationSelected}},Qo=Jo,Zo=(n("5823"),Object(y["a"])(Qo,$o,Yo,!1,null,null,null));Zo.options.__file="DocumentationTree.vue";var er=Zo.exports,tr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-documentation"},[n("div",{staticClass:"dv-documentation-wrapper"},[0===e.content.length?[n("div",{staticClass:"dv-empty-documentation"},[e._v(e._s(e.$t("messages.noDocumentation")))])]:[n("div",{staticClass:"dv-content"},e._l(e.content,function(t){return n("div",{key:t.id,staticClass:"dv-item"},[t.type===e.DOCUMENTATION_TYPES.SECTION?[n("h1",{attrs:{id:e.getId(t.id)}},[e._v(e._s(t.idx)+" "+e._s(t.title))]),t.subtitle?n("h4",[e._v(e._s(t.subtitle))]):e._e()]:t.type===e.DOCUMENTATION_TYPES.PARAGRAPH?n("div",{staticClass:"dv-paragraph",domProps:{innerHTML:e._s(t.bodyText)}}):t.type===e.DOCUMENTATION_TYPES.REFERENCE?n("div",{staticClass:"dv-reference",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(t.bodyText)},on:{click:function(n){e.selectElement(".link-"+t.id)}}}):t.type===e.DOCUMENTATION_TYPES.CITATION?n("span",{staticClass:"dv-citation"},[n("a",{attrs:{href:"#",title:t.bodyText}},[e._v(e._s(t.bodyText))])]):t.type===e.DOCUMENTATION_TYPES.TABLE?n("div",{staticClass:"dv-table-container"},[n("div",{staticClass:"dv-table-title",attrs:{id:e.getId(t.id)}},[e._v(e._s(e.$t("label.reportTable")+" "+t.idx+". "+t.title))]),n("div",{staticClass:"dv-table",style:{"font-size":e.tableFontSize+"px"},attrs:{id:e.getId(t.id)+"-table"}}),n("div",{staticClass:"dv-table-bottom text-right print-hide"},[n("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-content-copy"},on:{click:function(n){e.tableCopy(t.id)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableCopy")))])],1),n("q-btn",{staticClass:"dv-button",attrs:{flat:"",color:"mc-main",icon:"mdi-download"},on:{click:function(n){e.tableDownload(t.id)}}},[n("q-tooltip",{attrs:{anchor:"bottom middle",self:"top middle",offset:[0,5]}},[e._v(e._s(e.$t("label.tableDownloadAsXSLX")))])],1)],1)]):t.type===e.DOCUMENTATION_TYPES.FIGURE?n("div",{staticClass:"dv-figure-container",attrs:{id:e.getId(t.id)}},[n("div",{staticClass:"dv-figure-wrapper col"},[n("div",{staticClass:"content-center row"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{staticClass:"dv-figure-caption-wrapper row items-end"},[n("div",{staticClass:"dv-figure-caption col"},[e._v(e._s(e.$t("label.reportFigure")+" "+t.idx+(""!==t.figure.caption?". "+t.figure.caption:"")))]),t.figure.timeString&&""!==t.figure.timeString?n("div",{staticClass:"dv-figure-timestring col"},[e._v(e._s(t.figure.timeString))]):e._e()])]),n("div",{staticClass:"dv-col-fill col"})]),n("div",{staticClass:"row content-center"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.loadingImages.includes(t.id),expression:"loadingImages.includes(doc.id)"}],staticClass:"dv-figure-wait row items-center",style:{height:e.waitHeight+"px"}},[n("q-spinner",{staticClass:"col",attrs:{size:"3em"}})],1),n("div",{staticClass:"dv-figure-image col",class:"dv-figure-"+e.documentationView.toLowerCase()},[n("img",{staticClass:"dv-figure-img",class:[e.forPrinting?"dv-figure-print":"dv-figure-display"],attrs:{src:"",id:"figimg-"+e.documentationView+"-"+e.getId(t.id),alt:t.figure.caption}})])]),n("div",{staticClass:"dv-figure-legend col"},[n("histogram-viewer",{staticClass:"dv-figure-colormap",attrs:{dataSummary:t.figure.dataSummary,colormap:t.figure.colormap,id:e.getId(t.observationId),direction:"vertical",tooltips:!1,legend:!0}})],1)]),n("div",{staticClass:"row content-center"},[n("div",{staticClass:"dv-figure-content col"},[n("div",{staticClass:"dv-figure-time col"},[n("figure-timeline",{attrs:{start:t.figure.startTime,end:t.figure.endTime,"raw-slices":t.figure.timeSlices,observationId:t.figure.observationId},on:{timestampchange:function(n){e.changeTime(n,t.id)}}})],1)]),n("div",{staticClass:"dv-col-fill col"})])])]):t.type===e.DOCUMENTATION_TYPES.MODEL?n("div",{staticClass:"dv-model-container"},[n("div",{staticClass:"dv-model-code",attrs:{id:e.getId(t.id)},domProps:{innerHTML:e._s(e.getModelCode(t.bodyText))}})]):t.type===e.DOCUMENTATION_TYPES.RESOURCE?n("div",{staticClass:"dv-resource-container",attrs:{id:e.getId(t.id)}},[n("div",{staticClass:"dv-resource-title-container"},[n("div",{staticClass:"dv-resource-title"},[e._v(e._s(t.title))]),n("div",{staticClass:"dv-resource-originator"},[e._v(e._s(t.resource.originatorDescription))]),t.resource.keywords.length>0?n("div",{staticClass:"dv-resource-keywords text-right"},e._l(t.resource.keywords,function(i,o){return n("div",{key:o,staticClass:"dv-resource-keyword"},[n("span",{staticClass:"dv-resource-keyword"},[e._v(e._s(i))]),o0?n("div",{staticClass:"dv-resource-authors"},e._l(t.resource.authors,function(i,o){return n("div",{key:o,staticClass:"dv-resource-author-wrapper"},[n("span",{staticClass:"dv-resource-author"},[e._v(e._s(i))]),o0&&void 0!==arguments[0]?arguments[0]:{},t=e.view,n=void 0===t?null:t,i=e.force,o=void 0!==i&&i;null===n&&(n=this.documentationView),(-1!==this.reloadViews.indexOf(n)||o)&&this.loadDocumentation(n)},printDocumentation:function(){this.print=!0},closePrint:function(){this.print=!1},launchPrint:function(){this.$eventBus.$emit(c["h"].FONT_SIZE_CHANGE,"table"),setTimeout(function(){window.print()},600)}}),watch:{documentationView:function(){var e=this;this.$nextTick(function(){e.load()})},reloadViews:function(){var e=this;this.$nextTick(function(){e.load()})}},activated:function(){this.load()},mounted:function(){this.$eventBus.$on(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$on(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.addEventListener("afterprint",this.closePrint)},beforeDestroy:function(){this.$eventBus.$off(c["h"].REFRESH_DOCUMENTATION,this.load),this.$eventBus.$off(c["h"].PRINT_DOCUMENTATION,this.printDocumentation),window.removeEventListener("afterprint",this.closePrint)}},cr=ar,lr=(n("7bbc"),Object(y["a"])(cr,Wo,Fo,!1,null,null,null));lr.options.__file="KlabDocumentation.vue";var ur=lr.exports,dr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dfv-wrapper"},[n("div",{staticClass:"fit no-padding with-background dfv-container",class:{"dfv-with-info":e.dataflowInfoOpen}},[n("div",{attrs:{id:"sprotty"}}),n("q-resize-observable",{attrs:{debounce:300},on:{resize:e.resize}})],1),e.dataflowInfoOpen?n("div",{staticClass:"dfv-info-container"},[n("dataflow-info",{attrs:{width:"infoWidth"}})],1):e._e()])},hr=[];dr._withStripped=!0;n("98db");var pr=n("970b"),fr=n.n(pr),mr=n("5bc30"),gr=n.n(mr),vr=n("8449"),br=n("42d6"),yr=n("e1c6"),_r=0,Mr=200,wr=!1,Cr=function(){function e(){fr()(this,e)}return gr()(e,[{key:"handle",value:function(e){switch(e.kind){case br["SelectCommand"].KIND:wr=!1,_r=setTimeout(function(){wr||vr["b"].$emit(c["h"].GRAPH_NODE_SELECTED,e),wr=!1},Mr);break;case br["SetViewportCommand"].KIND:clearTimeout(_r),wr=!0;break;default:console.warn("Unknow action: ".concat(e.kind));break}}},{key:"initialize",value:function(e){e.register(br["SelectCommand"].KIND,this),e.register(br["SetViewportCommand"].KIND,this)}}]),e}();function Sr(e){return void 0!==e.source&&void 0!==e.target}function Ar(e){return void 0!==e.sources&&void 0!==e.targets}yr.decorate(yr.injectable(),Cr);var Er=function(){function e(){this.nodeIds=new Set,this.edgeIds=new Set,this.portIds=new Set,this.labelIds=new Set,this.sectionIds=new Set,this.isRestored=!1}return e.prototype.transform=function(e){var t,n,i=this,o={type:"graph",id:e.id||"root",children:[]};if(e.restored&&(this.isRestored=!0),e.children){var r=e.children.map(function(e){return i.transformElkNode(e)});(t=o.children).push.apply(t,r)}if(e.edges){var s=e.edges.map(function(e){return i.transformElkEdge(e)});(n=o.children).push.apply(n,s)}return o},e.prototype.transformElkNode=function(e){var t,n,i,o,r=this;this.checkAndRememberId(e,this.nodeIds);var s={type:"node",id:e.id,nodeType:e.id.split(".")[0],position:this.pos(e),size:this.size(e),status:this.isRestored?"processed":"waiting",children:[]};if(e.children){var a=e.children.map(function(e){return r.transformElkNode(e)});(t=s.children).push.apply(t,a)}if(e.ports){var c=e.ports.map(function(e){return r.transformElkPort(e)});(n=s.children).push.apply(n,c)}if(e.labels){var l=e.labels.map(function(e){return r.transformElkLabel(e)});(i=s.children).push.apply(i,l)}if(e.edges){var u=e.edges.map(function(e){return r.transformElkEdge(e)});(o=s.children).push.apply(o,u)}return s},e.prototype.transformElkPort=function(e){this.checkAndRememberId(e,this.portIds);var t={type:"port",id:e.id,position:this.pos(e),size:this.size(e),children:[]};return t},e.prototype.transformElkLabel=function(e){return this.checkAndRememberId(e,this.labelIds),{type:"label",id:e.id,text:e.text,position:this.pos(e),size:this.size(e)}},e.prototype.transformElkEdge=function(e){var t,n,i=this;this.checkAndRememberId(e,this.edgeIds);var o={type:"edge",id:e.id,sourceId:"",targetId:"",routingPoints:[],children:[]};if(Sr(e)?(o.sourceId=e.source,o.targetId=e.target,e.sourcePoint&&o.routingPoints.push(e.sourcePoint),e.bendPoints&&(t=o.routingPoints).push.apply(t,e.bendPoints),e.targetPoint&&o.routingPoints.push(e.targetPoint)):Ar(e)&&(o.sourceId=e.sources[0],o.targetId=e.targets[0],e.sections&&e.sections.forEach(function(e){var t;i.checkAndRememberId(e,i.sectionIds),o.routingPoints.push(e.startPoint),e.bendPoints&&(t=o.routingPoints).push.apply(t,e.bendPoints),o.routingPoints.push(e.endPoint)})),e.junctionPoints&&e.junctionPoints.forEach(function(t,n){var i={type:"junction",id:e.id+"_j"+n,position:t};o.children.push(i)}),e.labels){var r=e.labels.map(function(e){return i.transformElkLabel(e)});(n=o.children).push.apply(n,r)}return o},e.prototype.pos=function(e){return{x:e.x||0,y:e.y||0}},e.prototype.size=function(e){return{width:e.width||0,height:e.height||0}},e.prototype.checkAndRememberId=function(e,t){if(void 0==e.id)throw Error("An element is missing an id.");if(t.has(e.id))throw Error("Duplicate id: "+e.id+".");t.add(e.id)},e}(),Or=n("e1c6"),Lr=n("393a"),Tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xr=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Rr={createElement:Lr["svg"]},kr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.render=function(e,t){var n="elknode "+(e.hoverFeedback?"mouseover ":"")+(e.selected?"selected ":"")+e.status+" elk-"+e.nodeType;return Rr.createElement("g",null,Rr.createElement("rect",{classNames:n,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(br["RectangularNodeView"]),zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.render=function(e,t){return Rr.createElement("g",null,Rr.createElement("rect",{"class-elkport":!0,"class-mouseover":e.hoverFeedback,"class-selected":e.selected,x:"0",y:"0",width:e.bounds.width,height:e.bounds.height}),t.renderChildren(e))},t}(br["RectangularNodeView"]),Pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(t,e),t.prototype.renderLine=function(e,t,n){for(var i=t[0],o="M "+i.x+","+i.y,r=1;r=o||t.mouseModel&&t.mouseModel>=o,exselected:t.mouseModel&&t.model>=o&&t.mouseModel0&&void 0!==arguments[0]?arguments[0]:null;this.sendStompMessage(l["a"].DATAFLOW_NODE_RATING({nodeId:this.dataflowInfo.elementId,contextId:this.contextId,rating:this.dataflowInfo.rating,comment:e},this.session).body)},commentOk:function(){this.changeDataflowRating(this.commentContent),this.$q.notify({message:this.$t("messages.thankComment"),type:"info",icon:"mdi-information",timeout:1e3})},closePanel:function(){this.setDataflowInfoOpen(!1)}}),watch:{commentOpen:function(e){this.setModalMode(e)}}},Qr=Jr,Zr=(n("75c1"),Object(y["a"])(Qr,Ur,Vr,!1,null,null,null));Zr.options.__file="DataflowInfoPane.vue";var es=Zr.exports,ts={name:"DataflowViewer",components:{DataflowInfo:es},data:function(){return{graph:null,modelSource:null,actionDispatcher:null,interval:null,processing:!1,visible:!1,needsUpdate:!0}},computed:s()({},Object(a["c"])("data",["dataflow","dataflowInfo","dataflowStatuses","contextId","session","context"]),Object(a["c"])("view",["leftMenuState","dataflowInfoOpen"]),{reloadDataflow:{get:function(){return this.$store.state.view.reloadDataflow},set:function(e){this.$store.state.view.reloadDataflow=e}}}),methods:s()({},Object(a["b"])("data",["addDataflow"]),Object(a["b"])("view",["setDataflowInfoOpen"]),{loadDataflow:function(){var e=this;console.info("Ask for dataflow"),this.$axios.get("".concat("").concat(T["c"].REST_SESSION_OBSERVATION,"dataflow/").concat(this.contextId),{}).then(function(t){var n=t.data;if("undefined"!==typeof n.jsonElkLayout&&null!==n.jsonElkLayout)try{var i=JSON.parse(n.jsonElkLayout);i.restored=e.context.restored,e.addDataflow(i)}catch(e){console.error("Error in dataflow layout for the context ".concat(n.taskId,": ").concat(e))}else console.error("Dataflow in task ".concat(n.taskId," has no layout"))})},doGraph:function(){if(null!==this.dataflow)if(this.processing)setTimeout(this.doGraph(),100);else if(this.visible){var e=JSON.parse(JSON.stringify(this.dataflow));this.processing=!0,this.graph=(new Er).transform(e),this.modelSource.setModel(this.graph),this.actionDispatcher.dispatch(new br["FitToScreenAction"]([],40)),this.processing=!1,this.reloadDataflow=!1}else this.needsUpdate=!0},updateStatuses:function(){if(this.visible){if(0!==this.dataflowStatuses.length)for(var e=this.dataflowStatuses.length,t=0;t=0;n-=1)this.sendStompMessage(l["a"].DATAFLOW_NODE_DETAILS({nodeId:e.selectedElementsIDs[n],contextId:this.context.id},this.session).body)}},closePanel:function(){this.setDataflowInfoOpen(!1)},resize:function(){var e=this;this.$nextTick(function(){var t=document.getElementById("sprotty");if(null!==t){var n=t.getBoundingClientRect();e.actionDispatcher.dispatch(new br["InitializeCanvasBoundsAction"]({x:n.left,y:n.top,width:n.width,height:n.height})),e.actionDispatcher.dispatch(new br["FitToScreenAction"](e.dataflow?e.dataflow.children.map(function(e){return e.id}):[],40))}})}}),watch:{dataflow:function(){null!==this.dataflow&&this.doGraph()},dataflowStatuses:{handler:function(){null!==this.dataflow&&this.updateStatuses()},deep:!0},dataflowInfo:function(e,t){null===e?this.setDataflowInfoOpen(!1):null===t?this.setDataflowInfoOpen(!0):e.elementId===t.elementId&&this.dataflowInfoOpen?this.setDataflowInfoOpen(!1):this.setDataflowInfoOpen(!0)},dataflowInfoOpen:function(){this.resize()}},mounted:function(){var e=Xr({needsClientLayout:!1,needsServerLayout:!0},"info");e.bind(br["TYPES"].IActionHandlerInitializer).to(Cr),this.modelSource=e.get(br["TYPES"].ModelSource),this.actionDispatcher=e.get(br["TYPES"].IActionDispatcher),this.$eventBus.$on(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)},activated:function(){this.visible=!0,null===this.dataflow?this.loadDataflow():this.needsUpdate&&(this.doGraph(),this.updateStatuses(),this.needsUpdate=!1)},deactivated:function(){this.visible=!1},beforeDestroy:function(){this.$eventBus.$off(c["h"].GRAPH_NODE_SELECTED,this.graphNodeSelectedListener)}},ns=ts,is=(n("7890"),Object(y["a"])(ns,dr,hr,!1,null,null,null));is.options.__file="DataflowViewer.vue";var os=is.exports,rs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-modal",{ref:"irm-modal-container",attrs:{"no-esc-dismiss":!0,"no-backdrop-dismiss":!0,"content-classes":["irm-container"]},on:{hide:e.cleanInputRequest},model:{value:e.opened,callback:function(t){e.opened=t},expression:"opened"}},[n("q-tabs",{class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{swipeable:"",animated:"",color:"white"},model:{value:e.selectedRequest,callback:function(t){e.selectedRequest=t},expression:"selectedRequest"}},[e._l(e.inputRequests,function(t){return n("q-tab",{key:t.messageId,class:{"irm-tabs-hidden":e.inputRequests.length<=1},attrs:{slot:"title",name:"request-"+t.messageId},slot:"title"})}),e._l(e.inputRequests,function(t){return n("q-tab-pane",{key:t.messageId,attrs:{name:"request-"+t.messageId}},[n("div",{staticClass:"irm-group"},[n("div",{staticClass:"irm-global-description"},[n("h4",[e._v(e._s(null!==t.sectionTitle?t.sectionTitle:e.$t("label.noInputSectionTitle")))]),n("p",[e._v(e._s(t.description))])]),n("div",{staticClass:"irm-fields-container",attrs:{"data-simplebar":""}},[n("div",{staticClass:"irm-fields-wrapper"},e._l(t.fields,function(i){return n("div",{key:e.getFieldId(i,t.messageId),staticClass:"irm-field"},[e.checkSectionTitle(i.sectionTitle)?n("div",{staticClass:"irm-section-description"},[n("h5",[e._v(e._s(i.sectionTitle))]),n("p",[e._v(e._s(i.sectionDescription))])]):e._e(),n("q-field",{attrs:{label:null!==i.label?i.label:i.id,helper:i.description}},[n(e.capitalizeFirstLetter(i.type)+"InputRequest",{tag:"component",attrs:{name:e.getFieldId(i,t.messageId),initialValue:i.initialValue,values:i.values,range:i.range,numericPrecision:i.numericPrecision,regexp:i.regexp},on:{change:function(n){e.updateForm(e.getFieldId(i,t.messageId),n)}}})],1)],1)}))]),n("div",{staticClass:"irm-buttons"},[n("q-btn",{attrs:{color:"primary",label:e.$t("label.cancelInputRequest")},on:{click:function(n){e.cancelRequest(t)}}}),n("q-btn",{attrs:{color:"mc-main",disable:e.formDataIsEmpty,label:e.$t("label.resetInputRequest")},on:{click:function(n){e.send(t.messageId,!0)}}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.submitInputRequest")},on:{click:function(n){e.send(t.messageId,!1)}}})],1)])])})],2)],1)},ss=[];rs._withStripped=!0;var as=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-input",{attrs:{color:"mc-main",type:"text",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},cs=[];as._withStripped=!0;var ls={name:"TextField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{value:""}},computed:{hasError:function(){return this.value,!1}},methods:{emitInput:function(e){this.$emit("change",e)}}},us=ls,ds=(n("9d14"),Object(y["a"])(us,as,cs,!1,null,null,null));ds.options.__file="TextField.vue";var hs=ds.exports,ps=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-input",{attrs:{color:"mc-main",type:"number",placeholder:e.initialValue,name:e.name,error:e.hasError,clearable:!0,"clear-value":e.initialValue},on:{input:e.emitInput},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},fs=[];ps._withStripped=!0;var ms={name:"NumberField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0},numericPrecision:{type:Number,default:5},range:{type:String}},data:function(){return{value:""}},computed:{hasError:function(){return this.range,!1}},methods:{emitInput:function(e){var t=this;this.fitValue(),this.$nextTick(function(){t.$emit("change",e)})},fitValue:function(){0!==this.numericPrecision&&(this.value=this.value.toFixed(this.numericPrecision))}}},gs=ms,vs=(n("d6e2"),Object(y["a"])(gs,ps,fs,!1,null,null,null));vs.options.__file="NumberField.vue";var bs=vs.exports,ys=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-checkbox",{attrs:{color:"mc-main",name:e.name},on:{input:e.emitInput},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})},_s=[];ys._withStripped=!0;var Ms={name:"BooleanField",props:{initialValue:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{checked:"true"===this.initialValue}},methods:{emitInput:function(e){var t=this;this.$nextTick(function(){t.$emit("change",e)})}}},ws=Ms,Cs=(n("bb33"),Object(y["a"])(ws,ys,_s,!1,null,null,null));Cs.options.__file="BooleanField.vue";var Ss=Cs.exports,As={name:"InputRequestModal",components:{TextInputRequest:hs,NumberInputRequest:bs,BooleanInputRequest:Ss},sectionTitle:void 0,data:function(){return{formData:{},simpleBars:[],selectedRequest:null}},computed:s()({},Object(a["c"])("data",["session"]),Object(a["c"])("view",["hasInputRequests","inputRequests"]),{opened:{set:function(){},get:function(){return this.hasInputRequests}},formDataIsEmpty:function(){return 0===Object.keys(this.formData).length}}),methods:s()({},Object(a["b"])("view",["removeInputRequest"]),{send:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.inputRequests.find(function(t){return t.messageId===e});if("undefined"!==typeof i){var o=i.fields.reduce(function(e,o){if(n)e[t.getFieldId(o)]=o.initialValue;else{var r=t.formData[t.getFieldId(o,i.messageId)];e[t.getFieldId(o)]="undefined"===typeof r||null===r||""===r?o.initialValue:r.toString()}return e},{});this.sendStompMessage(l["a"].USER_INPUT_RESPONSE({messageId:i.messageId,requestId:i.requestId,values:o},this.session).body),this.removeInputRequest(i.messageId)}},cancelRequest:function(e){this.sendStompMessage(l["a"].USER_INPUT_RESPONSE({messageId:e.messageId,requestId:e.requestId,cancelRun:!0,values:{}},this.session).body),this.removeInputRequest(e.messageId)},updateForm:function(e,t){null===t?this.$delete(this.formData,e):this.$set(this.formData,e,t)},capitalizeFirstLetter:function(e){return Object(Xe["a"])(e)},getFieldId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===t?"".concat(e.functionId,"/").concat(e.id):"".concat(t,"-").concat(e.functionId,"/").concat(e.id)},checkSectionTitle:function(e){return this.$options.sectionTitle!==e&&(this.$options.sectionTitle=e,!0)},cleanInputRequest:function(){this.formData={},this.removeInputRequest(null)}}),watch:{inputRequests:function(){this.inputRequests.length>0&&(this.selectedRequest="request-".concat(this.inputRequests[0].messageId))}}},Es=As,Os=(n("2b54"),Object(y["a"])(Es,rs,ss,!1,null,null,null));Os.options.__file="InputRequestModal.vue";var Ls=Os.exports,Ts=function(){var e=this,t=e.$createElement,n=e._self._c||t;return null!==e.scaleReference?n("q-dialog",{attrs:{title:e.$t("label.titleChangeScale",{type:e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?e.$t("label.labelSpatial"):e.$t("label.labelTemporal")}),color:"info",cancel:!0,ok:!1},on:{show:e.initValues},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-btn",{attrs:{color:"mc-main",outline:"",label:e.$t("label.appCancel")},on:{click:t.cancel}}),n("q-btn",{attrs:{color:"mc-main",label:e.$t("label.appOK")},on:{click:function(n){e.choose(t.ok)}}})]}}]),model:{value:e.scaleEditing,callback:function(t){e.scaleEditing=t},expression:"scaleEditing"}},[n("div",{attrs:{slot:"body"},slot:"body"},[e.scaleEditingType===e.SCALE_TYPE.ST_SPACE?[n("q-input",{attrs:{type:"number",min:"0",color:"info",autofocus:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"stack-label":e.resolutionError?e.$t("messages.changeScaleResolutionError"):e.$t("label.resolutionLabel")},model:{value:e.resolution,callback:function(t){e.resolution=t},expression:"resolution"}})]:e._e(),n("q-select",{attrs:{"float-label":e.$t("label.unitLabel"),color:"info",options:e.typedUnits(e.scaleEditingType)},on:{input:function(t){e.scaleEditingType===e.SCALE_TYPE.ST_TIME&&e.setStartDate()}},model:{value:e.unit,callback:function(t){e.unit=t},expression:"unit"}}),e.scaleEditingType===e.SCALE_TYPE.ST_TIME?[n("div",{staticClass:"row"},[e.unit===e.SCALE_VALUES.DECADE?n("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitDecade"),type:"number",min:"0",max:"90",step:10,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.decade,callback:function(t){e.$set(e.unitInputs,"decade",t)},expression:"unitInputs.decade"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE?n("q-input",{class:["col",e.unit===e.SCALE_VALUES.CENTURY?"col-8":"col-4"],attrs:{"float-label":e.$t("label.unitCentury"),type:"number",min:"1",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.century,callback:function(t){e.$set(e.unitInputs,"century",t)},expression:"unitInputs.century"}}):e._e(),e.unit===e.SCALE_VALUES.MONTH?n("q-select",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitMonth"),type:"number",min:"0",color:"mc-main",options:e.monthOptions,autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.month,callback:function(t){e.$set(e.unitInputs,"month",t)},expression:"unitInputs.month"}}):e._e(),e.unit===e.SCALE_VALUES.WEEK?n("q-input",{staticClass:"col col-4",attrs:{"float-label":e.$t("label.unitWeek"),type:"number",min:"1",max:"53",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate(t)}},model:{value:e.unitInputs.week,callback:function(t){e.$set(e.unitInputs,"week",t)},expression:"unitInputs.week"}}):e._e(),e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?n("q-input",{class:{col:e.unit===e.SCALE_VALUES.YEAR,"col-8":e.unit===e.SCALE_VALUES.YEAR,"col-4":e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK},attrs:{"float-label":e.$t("label.unitYear"),type:"number",min:"0",step:1,color:"mc-main",autofocus:""},on:{input:function(t){e.setStartDate()}},model:{value:e.unitInputs.year,callback:function(t){e.$set(e.unitInputs,"year",t)},expression:"unitInputs.year"}}):e._e(),e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR||e.unit===e.SCALE_VALUES.MONTH||e.unit===e.SCALE_VALUES.WEEK?n("q-input",{staticClass:"col col-4",class:{"scd-inactive-multiplier":e.timeEndModified},attrs:{"float-label":e.$t("label.timeResolutionMultiplier"),type:"number",min:"1",step:1,color:"mc-main"},model:{value:e.timeResolutionMultiplier,callback:function(t){e.timeResolutionMultiplier=t},expression:"timeResolutionMultiplier"}},[e.timeEndModified?n("q-tooltip",{attrs:{offset:[0,15],self:"top middle",anchor:"bottom middle"}},[e._v(e._s(e.$t("messages.timeEndModified")))]):e._e()],1):e._e()],1),n("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeStart"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"","default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{focus:function(t){e.manualInputChange=!0},blur:function(t){e.manualInputChange=!1},input:function(t){e.manualInputChange&&e.initUnitInputs()&&e.calculateEnd()}},model:{value:e.timeStart,callback:function(t){e.timeStart=t},expression:"timeStart"}}),n("q-datetime",{attrs:{color:"mc-main","float-label":e.$t("label.labelTimeEnd"),format:e.getFormat(),type:e.unit===e.SCALE_VALUES.HOUR||e.unit===e.SCALE_VALUES.MINUTE||e.unit===e.SCALE_VALUES.SECOND?"datetime":"date",minimal:"",format24h:"",after:[{icon:"warning",error:!0,condition:e.resolutionError}],"default-view":e.unit===e.SCALE_VALUES.CENTURY||e.unit===e.SCALE_VALUES.DECADE||e.unit===e.SCALE_VALUES.YEAR?"year":"day"},on:{input:e.checkEnd},model:{value:e.timeEnd,callback:function(t){e.timeEnd=t},expression:"timeEnd"}})]:e._e()],2)]):e._e()},xs=[];Ts._withStripped=!0;var Rs=n("7f45"),ks=n.n(Rs),zs={name:"ScaleChangeDialog",data:function(){return{resolution:null,timeResolutionMultiplier:1,timeStart:null,timeEnd:null,timeEndMod:!1,unit:null,units:c["B"],resolutionError:!1,SCALE_TYPE:c["A"],SCALE_VALUES:c["C"],unitInputs:{century:null,year:null,month:null,week:null},monthOptions:[],timeEndModified:!1,manualInputChange:!1}},computed:s()({},Object(a["c"])("data",["scaleReference","nextScale","hasContext"]),Object(a["c"])("view",["scaleEditingType"]),{scaleEditing:{get:function(){return this.$store.getters["view/isScaleEditing"]},set:function(e){this.$store.dispatch("view/setScaleEditing",{active:e,type:this.scaleEditingType})}},typedUnits:function(){var e=this;return function(t){return e.units.filter(function(e){return e.type===t&&e.selectable}).map(function(t){return s()({},t,{label:e.$t("label.".concat(t.i18nlabel))})})}}}),methods:s()({},Object(a["b"])("data",["updateScaleReference","setNextScale"]),{choose:function(e){if(this.scaleEditingType===c["A"].ST_SPACE&&(""===this.resolution||this.resolution<=0))this.resolutionError=!0;else if(this.scaleEditingType!==c["A"].ST_TIME||this.checkEnd){if(e(),this.resolutionError=!1,this.scaleEditingType===c["A"].ST_SPACE&&(null===this.nextScale&&this.resolution===this.scaleReference.spaceResolutionConverted&&this.unit===this.scaleReference.spaceUnit||null!==this.nextScale&&this.resolution===this.nextScale.spaceResolutionConverted&&this.unit===this.nextScale.spaceUnit)||this.scaleEditingType===c["A"].ST_TIME&&(null===this.nextScale&&this.timeResolutionMultiplier===this.scaleReference.timeResolutionMultiplier&&this.unit===this.scaleReference.timeUnit&&this.timeStart===this.scaleReference.start&&this.timeEnd===this.scaleReference.end||null!==this.nextScale&&this.timeResolutionMultiplier===this.nextScale.timeResolutionMultiplier&&this.unit===this.nextScale.timeUnit&&this.timeStart===this.nextScale.start&&this.timeEnd===this.nextScale.end))return;var t=new Date(this.timeStart.getTime()),n=new Date(this.timeEnd.getTime());[c["C"].MILLENNIUM,c["C"].CENTURY,c["C"].DECADE,c["C"].YEAR,c["C"].MONTH,c["C"].WEEK,c["C"].DAY].includes(this.unit)&&(t.setUTCHours(0,0,0,0),n.setUTCHours(0,0,0,0)),this.hasContext||this.sendStompMessage(l["a"].SCALE_REFERENCE(s()({scaleReference:this.scaleReference},this.scaleEditingType===c["A"].ST_SPACE&&{spaceResolution:this.resolution,spaceUnit:this.unit},this.scaleEditingType===c["A"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,timeUnit:this.unit,start:t.getTime(),end:n.getTime()}),this.$store.state.data.session).body),this.updateScaleReference(s()({type:this.scaleEditingType,unit:this.unit},this.scaleEditingType===c["A"].ST_SPACE&&{spaceResolution:this.resolution,spaceResolutionConverted:this.resolution},this.scaleEditingType===c["A"].ST_TIME&&{timeResolutionMultiplier:this.timeResolutionMultiplier,start:t.getTime(),end:n.getTime()},{next:this.hasContext})),this.$q.notify({message:this.$t(this.hasContext?"messages.updateNextScale":"messages.updateScale",{type:this.scaleEditingType.charAt(0).toUpperCase()+this.scaleEditingType.slice(1)}),type:"info",icon:"mdi-information",timeout:2e3})}else this.resolutionError=!0},setStartDate:function(e){var t=new Date;switch(this.unit){case c["C"].CENTURY:t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1));break;case c["C"].DECADE:this.unitInputs.decade=this.unitInputs.decade-this.unitInputs.decade%10,t.setUTCDate(1),t.setUTCMonth(0),t.setUTCFullYear(100*(this.unitInputs.century-1)+this.unitInputs.decade);break;case c["C"].YEAR:t.setUTCFullYear(this.unitInputs.year,0,1);break;case c["C"].MONTH:t.setUTCDate(1),t.setUTCMonth(this.unitInputs.month),t.setUTCFullYear(this.unitInputs.year);break;case c["C"].WEEK:if(e>53)return void(this.unitInputs.week=ks()(this.timeStart).week());t.setUTCMonth(0),t.setUTCDate(1+7*(this.unitInputs.week-1)),t.setUTCFullYear(this.unitInputs.year);break;default:return}this.timeStart=t,this.initUnitInputs(),this.calculateEnd()},calculateEnd:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=c["B"].find(function(t){return t.value===e.unit});this.timeEnd=ks()(this.timeStart).add(this.timeResolutionMultiplier*n.momentMultiplier-(1!==n.momentMultiplier?1:0),n.momentShorthand).toDate(),this.$nextTick(function(){e.timeEndModified=t})},checkEnd:function(){this.timeEnd<=this.timeStart?this.$q.notify({message:this.$t("messages.timeEndBeforeTimeStart"),type:"info",icon:"mdi-information",timeout:2e3}):this.calculateEnd(!0)},getFormat:function(){switch(this.unit){case c["C"].MILLENNIUM:case c["C"].CENTURY:case c["C"].DECADE:case c["C"].YEAR:case c["C"].MONTH:case c["C"].WEEK:case c["C"].DAY:return"DD/MM/YYYY";case c["C"].HOUR:return"DD/MM/YYYY HH:mm";case c["C"].MINUTE:case c["C"].SECOND:return"DD/MM/YYYY HH:mm:ss";case c["C"].MILLISECOND:return"DD/MM/YYYY HH:mm:ss:SSS";default:return"DD/MM/YYYY HH:mm:ss"}},formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dddd, MMMM Do YYYY, h:mm:ss a";return e&&null!==e?ks()(e).format(t):""},initValues:function(){var e=null!==this.nextScale?this.nextScale:null!==this.scaleReference?this.scaleReference:null;null!==e&&(this.resolution=e.spaceResolutionConverted,this.unit=this.scaleEditingType===c["A"].ST_SPACE?e.spaceUnit:null!==e.timeUnit?e.timeUnit:c["C"].YEAR,this.timeResolutionMultiplier=0!==e.timeResolutionMultiplier?e.timeResolutionMultiplier:1,this.timeStart=0!==e.start?new Date(e.start):new Date,this.calculateEnd()),this.initUnitInputs()},initUnitInputs:function(){var e=this.timeStart?ks()(this.timeStart):ks()();this.unitInputs.century=Math.floor(e.year()/100)+1,this.unitInputs.decade=10*Math.floor(e.year()/10)-100*Math.floor(e.year()/100),this.unitInputs.year=e.year(),this.unitInputs.month=e.month(),this.unitInputs.week=e.week()}}),watch:{timeResolutionMultiplier:function(e,t){e<1?this.timeResolutionMultiplier=t:this.calculateEnd()}},created:function(){for(var e=0;e<12;e++)this.monthOptions.push({label:this.$t("label.months.m".concat(e)),value:e})}},Ps=zs,Ns=(n("c998"),Object(y["a"])(Ps,Ts,xs,!1,null,null,null));Ns.options.__file="ScaleChangeDialog.vue";var Is=Ns.exports,Ds=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-height",attrs:{id:"lm-container"}},[n("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-actions"}},[n("div",{attrs:{id:"spinner-leftmenu-container"}},[n("div",{style:{"border-color":e.hasTasks()?e.spinnerColor.color:"white"},attrs:{id:"spinner-leftmenu-div"}},[n("klab-spinner",{attrs:{id:"spinner-leftmenu","store-controlled":!0,size:40,ball:22,wrapperId:"spinner-leftmenu-div"},nativeOn:{touchstart:function(t){e.handleTouch(t,e.askForSuggestion)}}})],1)]),e.hasContext?[n("div",{staticClass:"lm-separator"}),n("main-actions-buttons",{attrs:{orientation:"vertical","separator-class":"lm-separator"}}),n("div",{staticClass:"lm-separator"})]:e._e(),n("div",{staticClass:"klab-button klab-action",class:[{active:e.logShowed}],on:{click:e.logAction}},[n("q-icon",{attrs:{name:"mdi-console"}},[n("q-tooltip",{attrs:{delay:600,offset:[0,8],self:"top left",anchor:"bottom left"}},[e._v(e._s(e.logShowed?e.$t("tooltips.hideLogPane"):e.$t("tooltips.showLogPane")))])],1)],1),n("div",{staticClass:"lm-separator"}),n("div",{style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-bottom-menu"}},[n("div",{staticClass:"lm-separator"}),n("scale-buttons",{attrs:{docked:!0}}),n("div",{staticClass:"lm-separator"}),n("div",{staticClass:"lm-bottom-buttons"},[n("stop-actions-buttons")],1)],1)],2),e.maximized?n("div",{staticClass:"full-height klab-lm-panel",style:{width:e.LEFTMENU_VISIBILITY.LEFTMENU_MAXSIZE-e.LEFTMENU_VISIBILITY.LEFTMENU_MINSIZE+"px"},attrs:{id:"lm-content"}},[n("div",{staticClass:"full-height",attrs:{id:"lm-content-container"}},[n("keep-alive",[n("transition",{attrs:{name:"component-fade",mode:"out-in"}},[n(e.leftMenuContent,{tag:"component",staticClass:"lm-component"})],1)],1)],1)]):e._e()])},Bs=[];Ds._withStripped=!0;var qs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-height",class:{"dmc-dragging":e.dragging,"dmc-large-mode":e.searchIsFocused&&e.largeMode>0},attrs:{id:"dmc-container"}},[n("klab-breadcrumbs"),n("klab-search-bar",{directives:[{name:"draggable",rawName:"v-draggable",value:e.dragMCConfig,expression:"dragMCConfig"}],ref:"klab-search-bar-docked"}),e.isTreeVisible?n("div",{staticClass:"q-card-main full-height",class:{"dmc-dragging":e.dragging,"dmc-loading":e.taskOfContextIsAlive},attrs:{id:"dmc-tree"}},[n("klab-tree-pane")],1):e._e(),e.contextHasTime?n("observations-timeline",{staticClass:"dmc-timeline"}):e._e()],1)},js=[];qs._withStripped=!0;var Ws=G["b"].width,Fs={name:"KlabDockedMainControl",components:{KlabSearchBar:It,KlabBreadcrumbs:Ft,ObservationsTimeline:Hn,KlabTreePane:Tn},directives:{Draggable:U},data:function(){var e=this;return{dragMCConfig:{onPositionChange:Object(Ce["a"])(function(t,n){e.onDebouncedPositionChanged(n)},100),onDragStart:function(){e.dragging=!0},onDragEnd:this.checkUndock,fingers:2,noMove:!0},askForUndocking:!1,draggableElementWidth:0,dragging:!1}},computed:s()({},Object(a["c"])("data",["contextHasTime"]),Object(a["c"])("view",["largeMode","isTreeVisible"]),Object(a["c"])("stomp",["taskOfContextIsAlive"])),methods:s()({},Object(a["b"])("view",["searchIsFocused","setMainViewer"]),{onDebouncedPositionChanged:function(e){this.dragging&&(e&&e.left>this.undockLimit?this.askForUndocking=!0:this.askForUndocking=!1,this.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,this.askForUndocking))},checkUndock:function(){var e=this;this.$nextTick(function(){e.askForUndocking&&(e.askForUndocking=!1,e.setMainViewer(c["L"].DATA_VIEWER)),e.$eventBus.$emit(c["h"].ASK_FOR_UNDOCK,!1),e.dragging=!1})}}),mounted:function(){this.undockLimit=Ws(document.getElementById("dmc-container"))/3}},Hs=Fs,Xs=(n("c7c3"),Object(y["a"])(Hs,qs,js,!1,null,null,null));Xs.options.__file="KlabDockedMainControl.vue";var Us=Xs.exports,Vs={name:"KlabLeftMenu",components:{KlabSpinner:M,MainActionsButtons:Te,StopActionsButtons:Ie,DockedMainControl:Us,DocumentationTree:er,KlabLogPane:Yn,ScaleButtons:ni,KnowledgeViewsSelector:ci},mixins:[rt],data:function(){return{}},computed:s()({},Object(a["c"])("data",["hasContext"]),Object(a["c"])("stomp",["hasTasks"]),Object(a["c"])("view",["spinnerColor","mainViewer","leftMenuContent","leftMenuState"]),{logShowed:function(){return this.leftMenuContent===c["t"].LOG_COMPONENT},maximized:function(){return this.leftMenuState===c["t"].LEFTMENU_MAXIMIZED&&this.leftMenuContent}}),methods:s()({},Object(a["b"])("view",["setLeftMenuState","setLeftMenuContent"]),{logAction:function(){this.logShowed?(this.setLeftMenuContent(this.mainViewer.leftMenuContent),this.setLeftMenuState(this.mainViewer.leftMenuState)):(this.setLeftMenuContent(c["t"].LOG_COMPONENT),this.setLeftMenuState(c["t"].LEFTMENU_MAXIMIZED))},askForSuggestion:function(e){this.$eventBus.$emit(c["h"].ASK_FOR_SUGGESTIONS,e)}}),created:function(){this.LEFTMENU_VISIBILITY=c["t"]}},Gs=Vs,Ks=(n("6283"),Object(y["a"])(Gs,Ds,Bs,!1,null,null,null));Ks.options.__file="KlabLeftMenu.vue";var $s=Ks.exports,Ys=(n("5bc0"),{name:"KExplorer",components:{KlabMainControl:mi,DataViewer:jo,KlabDocumentation:ur,DataflowViewer:os,InputRequestModal:Ls,ScaleChangeDialog:Is,ObservationTime:Bn,KlabLeftMenu:$s},props:{mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{askForUndocking:!1,LEFTMENU_CONSTANTS:c["t"]}},computed:s()({},Object(a["c"])("data",["session","hasActiveTerminal"]),Object(a["c"])("stomp",["connectionDown"]),Object(a["c"])("view",["searchIsActive","searchIsFocused","searchInApp","mainViewerName","mainViewer","isTreeVisible","isInModalMode","spinnerErrorMessage","isMainControlDocked","admitSearch","isHelpShown","mainViewer","leftMenuState","largeMode","hasHeader","layout"]),{waitingGeolocation:{get:function(){return this.$store.state.view.waitingGeolocation},set:function(e){this.$store.state.view.waitingGeolocation=e}},logVisible:function(){return this.$logVisibility===c["O"].PARAMS_LOG_VISIBLE},leftMenuVisible:{get:function(){return this.leftMenuState!==c["t"].LEFTMENU_HIDDEN&&!this.hasHeader},set:function(e){this.setLeftMenuState(e)}},leftMenuWidth:function(){return(this.leftMenuState===c["t"].LEFTMENU_MAXIMIZED?c["t"].LEFTMENU_MAXSIZE:this.leftMenuState===c["t"].LEFTMENU_MINIMIZED?c["t"].LEFTMENU_MINSIZE:0)-(this.hasHeader?c["t"].LEFTMENU_MINSIZE:0)}}),methods:s()({},Object(a["b"])("view",["searchStart","searchStop","searchFocus","setMainViewer","setLeftMenuState"]),{setChildrenToAskFor:function(){var e=Math.floor(window.innerHeight*parseInt(getComputedStyle(document.documentElement).getPropertyValue("--main-control-max-height"),10)/100),t=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--q-tree-no-child-min-height"),10),n=Math.floor(e/t);console.info("Set max children to ".concat(n)),this.$store.state.data.childrenToAskFor=n},askForUndockListener:function(e){this.askForUndocking=e},keydownListener:function(e){if(!(this.connectionDown||this.isInModalMode||!this.admitSearch||this.isHelpShown||this.searchInApp||this.hasActiveTerminal))return 27===e.keyCode&&this.searchIsActive?(this.searchStop(),void e.preventDefault()):void((38===e.keyCode||40===e.keyCode||32===e.keyCode||this.isAcceptedKey(e.key))&&(this.searchIsActive?this.searchIsFocused||(this.searchFocus({char:e.key,focused:!0}),e.preventDefault()):(this.searchStart(e.key),e.preventDefault())))},showDocumentation:function(){this.setMainViewer(c["L"].DOCUMENTATION_VIEWER)}}),watch:{spinnerErrorMessage:function(e,t){null!==e&&e!==t&&(console.error(this.spinnerErrorMessage),this.$q.notify({message:this.spinnerErrorMessage,type:"negative",icon:"mdi-alert-circle",timeout:1e3}))},leftMenuVisible:function(){var e=this;this.$nextTick(function(){e.$eventBus.$emit(c["h"].NEED_FIT_MAP,{})})}},created:function(){"undefined"===typeof this.mainViewer&&this.setMainViewer(c["L"].DATA_VIEWER)},mounted:function(){window.addEventListener("keydown",this.keydownListener),this.setChildrenToAskFor(),this.$eventBus.$on(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$on(c["h"].SHOW_DOCUMENTATION,this.showDocumentation),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["F"].INTERACTIVE_MODE,value:!1},this.session).body),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["F"].LOCK_SPACE,value:!1},this.session).body),this.sendStompMessage(l["a"].SETTING_CHANGE_REQUEST({setting:c["F"].LOCK_TIME,value:!1},this.session).body)},beforeDestroy:function(){window.removeEventListener("keydown",this.keydownListener),this.$eventBus.$off(c["h"].ASK_FOR_UNDOCK,this.askForUndockListener),this.$eventBus.$off(c["h"].SHOW_DOCUMENTATION,this.showDocumentation)}}),Js=Ys,Qs=(n("f913"),Object(y["a"])(Js,ye,_e,!1,null,null,null));Qs.options.__file="KExplorer.vue";var Zs=Qs.exports,ea=n("0388"),ta=n("7d43"),na=n("9541"),ia=n("768b"),oa=n("fb40"),ra=n("bd60"),sa="q:collapsible:close",aa={name:"QCollapsible",mixins:[oa["a"],ra["a"],{props:ra["b"]}],modelToggle:{history:!1},props:{disable:Boolean,popup:Boolean,indent:Boolean,group:String,iconToggle:Boolean,collapseIcon:String,opened:Boolean,duration:Number,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},computed:{classes:function(){return{"q-collapsible-opened":this.showing,"q-collapsible-closed":!this.showing,"q-collapsible-popup-opened":this.popup&&this.showing,"q-collapsible-popup-closed":this.popup&&!this.showing,"q-collapsible-cursor-pointer":!this.separateToggle,"q-item-dark":this.dark,"q-item-separator":this.separator,"q-item-inset-separator":this.insetSeparator,disabled:this.disable}},separateToggle:function(){return this.iconToggle||void 0!==this.to}},watch:{showing:function(e){e&&this.group&&this.$root.$emit(sa,this)}},methods:{__toggleItem:function(){this.separateToggle||this.toggle()},__toggleIcon:function(e){this.separateToggle&&(e&&Object(Gr["g"])(e),this.toggle())},__eventHandler:function(e){this.group&&this!==e&&e.group===this.group&&this.hide()},__getToggleSide:function(e,t){return[e(na["a"],{slot:t?"right":void 0,staticClass:"cursor-pointer transition-generic relative-position q-collapsible-toggle-icon",class:{"rotate-180":this.showing,invisible:this.disable},nativeOn:{click:this.__toggleIcon},props:{icon:this.collapseIcon||this.$q.icon.collapsible.icon}})]},__getItemProps:function(e){return{props:e?{cfg:this.$props}:this.$props,style:this.headerStyle,class:this.headerClass,nativeOn:{click:this.__toggleItem}}}},created:function(){this.$root.$on(sa,this.__eventHandler),(this.opened||this.value)&&this.show()},beforeDestroy:function(){this.$root.$off(sa,this.__eventHandler)},render:function(e){return e(this.tag,{staticClass:"q-collapsible q-item-division relative-position",class:this.classes},[e("div",{staticClass:"q-collapsible-inner"},[this.$slots.header?e(Ye["a"],this.__getItemProps(),[this.$slots.header,e(ta["a"],{props:{right:!0},staticClass:"relative-position"},this.__getToggleSide(e))]):e(ia["a"],this.__getItemProps(!0),this.__getToggleSide(e,!0)),e(en["a"],{props:{duration:this.duration}},[e("div",{directives:[{name:"show",value:this.showing}]},[e("div",{staticClass:"q-collapsible-sub-item relative-position",class:{indent:this.indent}},this.$slots.default)])])])])}},ca=n("dd1f"),la=n("5d8b"),ua=n("5931"),da=n("482e"),ha={LAYOUT:function(e){return He["a"].component("KAppLayout",{render:function(t){return t(La,{props:{layout:e}})}})},ALERT:function(e){return He["a"].component("KAppAlert",{render:function(t){return t(ea["a"],{props:{value:!0,title:e.title,message:e.content},class:{"kcv-alert":!0}})}})},MAIN:function(e){return He["a"].component("KAppMain",{render:function(t){return t("div",s()({class:["kcv-main-container","kcv-dir-".concat(e.direction)],attrs:{id:"".concat(e.applicationId,"-").concat(e.id),ref:"main-container"},style:s()({},e.style,e.mainPanelStyle)},e.name&&{ref:e.name}),this.$slots.default)}})},PANEL:function(e){return He["a"].component("KAppPanel",{render:function(t){return t("div",s()({class:["kcv-panel-container","kcv-dir-".concat(e.direction)],attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.name&&{ref:e.name}),this.$slots.default)}})},GROUP:function(e){return He["a"].component("KAppGroup",{data:function(){return{}},render:function(t){return t("div",{staticClass:"kcv-group",class:{"text-app-alt-color":e.attributes.altfg,"bg-app-alt-background":e.attributes.altbg,"kcv-wrapper":1===e.components.length,"kcv-group-bottom":e.attributes.bottom},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:e.attributes.hfill?{width:"100%"}:{}},e.attributes.shelf||e.attributes.parentId?[t("div",s()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)]:[t("div",{staticClass:"kcv-group-container",class:{"kcv-group-no-label":!e.name}},[e.name?t("div",{class:"kcv-group-legend"},e.name):null,t("div",s()({class:"kcv-group-content",style:Object(c["k"])(e)},e.attributes.scroll&&{attrs:{"data-simplebar":"data-simplebar"}}),this.$slots.default)])])}})},SHELF:function(e){return e.attributes.opened||(e.attributes.opened=!1),He["a"].component("KAppShelf",{data:function(){return{opened:e.attributes.opened}},render:function(t){var n=this;return t(aa,{class:"kcv-collapsible",props:s()({opened:n.opened,headerClass:"kcv-collapsible-header",collapseIcon:"mdi-dots-vertical",separator:!1},!e.attributes.parentAttributes.multiple&&{group:e.attributes.parentId},{label:e.name}),on:{hide:function(){e.attributes.opened=!1},show:function(){e.attributes.opened=!0}}},this.$slots.default)}})},SEPARATOR:function(e){return He["a"].component("KAppSeparator",{render:function(t){var n=this;return t("div",{class:"kcv-separator",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},[e.attributes.iconname?t(Qe["a"],{class:"kcv-separator-icon",props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.title?t("div",{class:"kcv-separator-title"},e.title):null,e.attributes.iconbutton?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-".concat(e.attributes.iconbutton),color:"app-main-color"},nativeOn:{click:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!0})}}}):null,e.attributes.info?t(Qe["a"],{class:"kcv-separator-right",props:{name:"mdi-information-outline",color:"app-main-color"},nativeOn:{mouseover:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!0})},mouseleave:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:!1})}}}):null])}})},TREE:function(e){var t=[];if(e.tree){var n=e.tree;e.tree.status||(e.tree.status={ticked:[],expanded:[],selected:{}});var i=function i(o){var r=n.values[o],s=Object(Ue["f"])(t,"".concat(e.id,"-").concat(r.id,"-").concat(o));if(!s){s={id:"".concat(e.id,"-").concat(r.id,"-").concat(o),label:r.label,type:r.type,observable:r.id,children:[]};var a=n.links.find(function(e){return e.first===o}).second;if(a===n.rootId)t.push(s);else{var c=i(a);c.children.push(s)}}return s};n.links.forEach(function(e){i(e.first)})}return He["a"].component("KAppTree",{data:function(){return{ticked:e.tree.status.ticked,expanded:e.tree.status.expanded,selected:e.tree.status.selected}},render:function(n){var i=this;return n("div",{class:"kcv-tree-container",style:Object(c["k"])(e)},[e.name?n("div",{class:"kcv-tree-legend"},e.name):null,n(Zt["a"],{class:"kcv-tree",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{nodes:t,nodeKey:"id",tickStrategy:e.attributes.check?"leaf":"none",ticked:i.ticked,selected:i.selected,expanded:i.expanded,color:"app-main-color",controlColor:"app-main-color",textColor:"app-main-color",dense:!0},on:{"update:ticked":function(t){i.ticked=t,e.tree.status.ticked=t,i.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),listValue:t})},"update:selected":function(t){i.selected=t,e.tree.status.selected=t},"update:expanded":function(t){i.expanded=t,e.tree.status.expanded=t}}})])}})},LABEL:function(e){return e.attributes.width||(e.attributes.width=c["b"].LABEL_MIN_WIDTH),He["a"].component("KAppText",{data:function(){return{editable:!1,doneFunc:null,result:null,value:null,searchRequestId:0,searchContextId:null,searchTimeout:null,selected:null}},computed:{searchResult:function(){return this.$store.getters["data/searchResult"]},isSearch:function(){return"search"===e.attributes.tag&&this.editable}},methods:{search:function(e,t){var n=this;this.searchRequestId+=1,this.sendStompMessage(l["a"].SEARCH_REQUEST({requestId:this.searchRequestId,contextId:this.searchContextId,maxResults:-1,cancelSearch:!1,defaultResults:""===e,searchMode:c["D"].FREETEXT,queryString:e},this.$store.state.data.session).body),this.doneFunc=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){n.$q.notify({message:n.$t("errors.searchTimeout"),type:"warning",icon:"mdi-alert",timeout:2e3}),n.doneFunc&&n.doneFunc([])},"4000")},autocompleteSelected:function(e){e&&(this.selected=e)},sendSelected:function(){this.sendStompMessage(l["a"].SEARCH_MATCH({contextId:this.searchContextId,matchIndex:this.selected.matchIndex,matchId:this.selected.id,added:!0},this.$store.state.data.session).body)},init:function(){this.doneFunc=null,this.result=null,this.value=null,this.searchRequestId=0,this.searchContextId=null,this.searchTimeout=null,this.selected=null}},watch:{searchResult:function(e){var t=this;if(this.isSearch){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null);var n=e.requestId,i=e.contextId;if(null===this.searchContextId)this.searchContextId=i;else if(i!==this.searchContextId)return;if(this.searchRequestId===n){var o;null!==this.result&&this.result.requestId===n&&(o=e.matches).push.apply(o,q()(this.result.matches)),this.result=e;var r=this.result,s=r.matches,a=r.error,l=r.errorMessage;if(a)this.$q.notify({message:l,type:"error",icon:"mdi-alert",timeout:2e3});else{var u=[];s.forEach(function(e){var t=c["u"][e.matchType];if("undefined"!==typeof t){var n=t;if(null!==e.mainSemanticType){var i=c["E"][e.mainSemanticType];"undefined"!==typeof i&&(n=i)}u.push({value:e.name,label:e.name,labelLines:1,sublabel:e.description,sublabelLines:4,letter:n.symbol,leftInverted:!0,leftColor:n.color,rgb:n.rgb,id:e.id,matchIndex:e.index,selected:!1,disable:e.state&&"FORTHCOMING"===e.state,separator:!1})}else console.warn("Unknown type: ".concat(e.matchType))}),0===u.length&&this.$q.notify({message:this.$t("messages.noSearchResults"),type:"info",icon:"mdi-information",timeout:1e3}),He["a"].nextTick(function(){t.doneFunc(u)})}}else console.warn("Result discarded for bad request id: actual: ".concat(this.searchRequestId," / received: ").concat(n,"\n"))}}},render:function(t){var n=this,i=this;return this.isSearch?t(la["a"],{class:["kcv-text-input","kcv-form-element","kcv-search"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:i.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:i.type,autofocus:!0},on:{keydown:function(e){27===e.keyCode&&(n.editable=!1,n.doneFunc&&(n.doneFunc(),n.doneFunc=null),n.$store.dispatch("view/searchInApp",!1),e.stopPropagation(),i.init()),13===e.keyCode&&n.selected&&(n.$store.dispatch("view/searchInApp",!1),n.editable=!1,i.sendSelected(),i.init())},input:function(e){i.value=e},blur:function(){n.$store.dispatch("view/searchInApp",!1),n.editable=!1},focus:function(){n.$store.dispatch("view/searchInApp",!0)}}},[t(Ve["a"],{props:{debounce:400,"min-characters":4},on:{search:function(e,t){i.search(e,t)},selected:function(e,t){i.autocompleteSelected(e,t)}}},"Cacca")]):t("div",s()({staticClass:"kcv-label",class:{"kcv-title":e.attributes.tag&&("title"===e.attributes.tag||"search"===e.attributes.tag),"kcv-clickable":"true"!==e.attributes.disabled&&"search"===e.attributes.tag,"kcv-ellipsis":e.attributes.ellipsis,"kcv-with-icon":e.attributes.iconname},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},"true"!==e.attributes.disabled&&"search"===e.attributes.tag&&{on:{click:function(){n.editable=!0,n.$store.dispatch("view/searchInApp",!0)}}}),[e.attributes.iconname?t(Qe["a"],{class:["kcv-label-icon",e.attributes.toggle?"kcv-label-toggle":""],props:{name:"mdi-".concat(e.attributes.iconname),color:"app-main-color"}}):null,e.content,e.attributes.tooltip?t(Ze["a"],{props:{anchor:"bottom left",self:"top left",offset:[-10,0]}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},TEXT_INPUT:function(e){return He["a"].component("KAppTextInput",{data:function(){return{component:e,value:e.content,type:"number"}},render:function(t){var n=this;return t(la["a"],{class:["kcv-text-input","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:n.value,color:"app-main-color",hideUnderline:!0,dense:!0,type:n.type,disable:"true"===e.attributes.disabled},on:{keydown:function(e){e.stopPropagation()},input:function(t){n.value=t,e.content=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),stringValue:t})}}})}})},COMBO:function(e){return He["a"].component("KAppCombo",{data:function(){return{component:e,value:e.attributes.selected?e.choices.find(function(t){return t.first===e.attributes.selected}).first:e.choices[0].first}},render:function(t){var n=this;return t(ua["a"],{class:["kcv-combo","kcv-form-element"],style:Object(c["k"])(e),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:{value:n.value,options:e.choices.map(function(e){return{label:e.first,value:e.second,className:"kcv-combo-option"}}),color:"app-text-color",popupCover:!1,dense:!0,disable:"true"===e.attributes.disabled},on:{change:function(t){n.value=t,e.attributes.selected=n.value,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),stringValue:t})}}})}})},PUSH_BUTTON:function(e){return He["a"].component("KAppPushButton",{data:function(){return{state:null}},watch:{state:function(){var t=this;e.attributes.timeout&&setTimeout(function(){delete e.attributes.error,delete e.attributes.waiting,delete e.attributes.done,t.state=null},e.attributes.timeout)}},render:function(t){var n=this,i=e.attributes.iconname&&!e.name;this.state=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null;var o=e.attributes.waiting?"app-background-color":e.attributes.computing?"app-alt-color":e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-background-color";return t("div",{},[t(da["a"],{class:[i?"kcv-roundbutton":"kcv-pushbutton","kcv-form-element","breset"===e.attributes.tag?"kcv-reset-button":""],style:s()({},Object(c["k"])(e),e.attributes.timeout&&{"--button-icon-color":"app-background-color","--flash-color":e.attributes.error?"var(--app-negative-color)":e.attributes.done?"var(--app-positive-color)":"var(--app-main-color)",animation:"flash-button ".concat(e.attributes.timeout,"ms")}||{"--button-icon-color":"var(--".concat(o,")")}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},props:s()({},e.name&&{label:e.name,"text-color":"app-control-text-color"},{color:e.attributes.color?e.attributes.color:"app-main-color"},i&&{round:!0,dense:!0,flat:!0},{noCaps:!0,disable:"true"===e.attributes.disabled},"error"===this.state&&{icon:"mdi-alert-circle"}||"done"===this.state&&{icon:"mdi-check-circle"}||e.attributes.iconname&&{icon:"mdi-".concat(e.attributes.iconname)},"waiting"===this.state&&{loading:!0}),on:{click:function(){n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]})})}}}),e.attributes.tooltip?t(Ze["a"],{props:{anchor:"bottom left",self:"top left",offset:[-10,0],delay:600}},"true"===e.attributes.tooltip?e.content:e.attributes.tooltip):null])}})},CHECK_BUTTON:function(e){return He["a"].component("KAppCheckButton",{data:function(){return{value:!!e.attributes.checked,component:e}},render:function(t){var n=this,i=e.attributes.waiting?"waiting":e.attributes.computing?"computing":e.attributes.error?"error":e.attributes.done?"done":null,o=e.attributes.error?"app-negative-color":e.attributes.done?"app-positive-color":"app-main-color";return t("div",{class:["kcv-checkbutton","kcv-form-element","text-".concat(o),"kcv-check-".concat(i),""===e.name?"kcv-check-only":"kcv-check-with-label"],style:Object(c["k"])(e)},[t(nn["a"],{props:s()({value:n.value,color:o,keepColor:!0,label:e.name,disable:"true"===e.attributes.disabled},e.attributes.waiting&&{"checked-icon":"mdi-loading","unchecked-icon":"mdi-loading",readonly:!0},e.attributes.computing&&{"checked-icon":"mdi-cog-outline","unchecked-icon":"mdi-cog-outline",readonly:!0}),attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){n.value=t,e.attributes.checked=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}}}),e.attributes.error&&"true"!==e.attributes.error?t(Ze["a"],{class:"kcv-error-tooltip",props:{anchor:"bottom left",self:"top left",offset:[-10,0]}},e.attributes.error):null])}})},RADIO_BUTTON:function(e){return He["a"].component("KAppRadioButton",{data:function(){return{value:null,component:e}},render:function(t){var n=this;return t("div",{class:["kcv-checkbutton","kcv-form-element"],style:Object(c["k"])(e)},[t(ca["a"],{props:{val:!1,value:!1,color:"app-main-color",label:e.name},attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},on:{input:function(t){n.value=t,n.$eventBus.$emit(c["h"].COMPONENT_ACTION,{operation:c["c"].USER_ACTION,component:s()({},e,{components:[]}),booleanValue:t})}}})])}})},TEXT:function(e){return He["a"].component("KAppText",{data:function(){return{collapsed:!1}},render:function(t){var n=this;return t("div",{staticClass:"kcv-text",class:{"kcv-collapse":e.attributes.collapse,"kcv-collapsed":n.collapsed},attrs:{"data-simplebar":"data-simplebar"},style:Object(c["k"])(e)},[t("div",{staticClass:"kcv-internal-text",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},domProps:{innerHTML:e.content}}),e.attributes.collapse?t("div",{staticClass:"kcv-collapse-button",on:{click:function(){n.collapsed=!n.collapsed}}},[t(Qe["a"],{staticClass:"kcv-collapse-icon",props:{name:n.collapsed?"mdi-arrow-down":"mdi-arrow-up",color:"app-main-color",size:"sm"}})]):null])}})},BROWSER:function(e){return He["a"].component("KBrowswer",{mounted:function(){},render:function(t){var n=e.content.startsWith("http")?e.content:"".concat("").concat("/modeler").concat(e.content);return t("iframe",{class:"kcv-browser",attrs:{id:"".concat(e.applicationId,"-").concat(e.id),width:e.attributes.width||"100%",height:e.attributes.height||"100%",frameBorder:"0",src:n},style:s()({},Object(c["k"])(e),{position:"absolute",top:0,bottom:0,left:0,right:0})})}})},UNKNOWN:function(e){return He["a"].component("KAppUnknown",{render:function(t){return t("div",{class:"kcv-unknown",attrs:{id:"".concat(e.applicationId,"-").concat(e.id)},style:Object(c["k"])(e)},e.type)}})}};function pa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return[];if(e.type===c["a"].VIEW)return t(ha.LAYOUT);var i,o=null;switch(e.attributes.parentAttributes&&e.attributes.parentAttributes.shelf&&(o=ha.SHELF(e)),e.type){case null:var r=n.mainPanelStyle,a=void 0===r?{}:r,l=n.direction,u=void 0===l?"vertical":l;i=ha.MAIN(s()({},e,{mainPanelStyle:a,direction:u}));break;case c["a"].PANEL:i=ha.PANEL(e);break;case c["a"].SEPARATOR:i=ha.SEPARATOR(e);break;case c["a"].LABEL:i=ha.LABEL(e);break;case c["a"].TEXT_INPUT:i=ha.TEXT_INPUT(e);break;case c["a"].PUSH_BUTTON:i=ha.PUSH_BUTTON(e);break;case c["a"].CHECK_BUTTON:i=ha.CHECK_BUTTON(e);break;case c["a"].RADIO_BUTTON:i=ha.RADIO_BUTTON(e);break;case c["a"].TREE:i=ha.TREE(e);break;case c["a"].GROUP:i=ha.GROUP(e),e.components&&e.components.length>0&&e.components.forEach(function(t){t.attributes.parentId=e.id,t.attributes.parentAttributes=e.attributes});break;case c["a"].TEXT:i=ha.TEXT(e);break;case c["a"].COMBO:i=ha.COMBO(e);break;case c["a"].BROWSER:i=ha.BROWSER(e);break;default:i=ha.UNKNOWN(e)}var d=[];return e.components&&e.components.length>0&&e.components.forEach(function(e){d.push(pa(e,t))}),o?t(o,{},[t(i,{},d)]):t(i,{},d)}var fa,ma,ga=G["b"].height,va={name:"KlabAppViewer",props:{component:{type:Object,required:!0},props:{type:Object,default:null},direction:{type:String,validator:function(e){return["horizontal","vertical"].includes(e)},default:"vertical"},mainPanelStyle:{type:Object,default:function(){return{}}}},data:function(){return{mainContainerHeight:void 0}},computed:{},methods:{calculateMinHeight:function(){this.$nextTick(function(){for(var e=document.querySelectorAll(".kcv-group-bottom"),t=0,n=0;n0},set:function(){}},showRightPanel:{get:function(){return this.layout&&this.layout.rightPanels.length>0},set:function(){}},leftPanelWidth:function(){return this.layout&&this.layout.leftPanels&&this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):512},rightPanelWidth:function(){return this.layout&&this.layout.rightPanels&&this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):512},mainPanelStyle:function(){return{width:this.header.width-this.leftPanel.width-this.rightPanel.width,height:this.leftPanel.height}},idSuffix:function(){return null!==this.layout?this.layout.applicationId:"default"},modalDimensions:function(){return this.isModal?{width:this.modalWidth,height:this.modalHeight,"min-height":this.modalHeight}:{}}}),methods:{setLogoImage:function(){this.layout&&this.layout.logo?this.logoImage="".concat("").concat(T["c"].REST_GET_PROJECT_RESOURCE,"/").concat(this.layout.projectId,"/").concat(this.layout.logo.replace("/",":")):this.logoImage=c["b"].DEFAULT_LOGO},setStyle:function(){var e=this,t=null;if(null===this.layout)t=c["j"].default;else{if(t=s()({},this.layout.style&&c["j"][this.layout.style]?c["j"][this.layout.style]:c["j"].default),this.layout.styleSpecs)try{var n=JSON.parse(this.layout.styleSpecs);t=s()({},t,n)}catch(e){console.error("Error parsing style specs",e)}var i=(this.layout.leftPanels.length>0&&this.layout.leftPanels[0].attributes.width?parseInt(this.layout.leftPanels[0].attributes.width,10):0)+(this.layout.rightPanels.length>0&&this.layout.rightPanels[0].attributes.width?parseInt(this.layout.rightPanels[0].attributes.width,10):0);0!==i&&document.documentElement.style.setProperty("--body-min-width","calc(640px + ".concat(i,"px)"))}null!==t&&Object.keys(t).forEach(function(n){var i=t[n];if("density"===n)switch(n="line-height",t.density){case"default":i=1;break;case"confortable":i=1.5;break;case"compact":i=.5;break;default:i=1}if(document.documentElement.style.setProperty("--app-".concat(n),i),n.includes("color"))try{var o=Object(Xe["e"])(i);if(o&&o.rgb){var r=e.layout&&"dark"===e.layout.style?-1:1;document.documentElement.style.setProperty("--app-rgb-".concat(n),"".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b)),document.documentElement.style.setProperty("--app-highlight-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-15*r)),document.documentElement.style.setProperty("--app-darklight-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-5*r)),document.documentElement.style.setProperty("--app-darken-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),-20*r)),document.documentElement.style.setProperty("--app-lighten-".concat(n),Ma("rgb(".concat(o.rgb.r,",").concat(o.rgb.g,",").concat(o.rgb.b,")"),20*r))}}catch(e){console.warn("Error trying to parse a color from the layout style: ".concat(n,": ").concat(i))}}),this.$nextTick(function(){var e=document.querySelector(".kapp-left-inner-container");e&&new be(e);var t=document.querySelector(".kapp-right-inner-container");t&&new be(t)})},updateLayout:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setLogoImage();var n=document.querySelector(".kapp-main.kapp-header-container");this.header.height=n?Ca(n):0,this.header.width=window.innerWidth,this.leftPanel.height=window.innerHeight-this.header.height;var i=document.querySelector(".kapp-main.kapp-left-container aside");this.leftPanel.width=i?wa(i):0,this.rightPanel.height=window.innerHeight-this.header.height;var o=document.querySelector(".kapp-main.kapp-right-container aside");this.rightPanel.width=o?wa(o):0,this.$nextTick(function(){e.$eventBus.$emit(c["h"].MAP_SIZE_CHANGED,{type:"changelayout",align:e.layout&&e.layout.leftPanels.length>0?"right":"left"})}),this.setStyle(),t&&this.$eventBus.$emit(c["h"].SHOW_NOTIFICATIONS,{apps:null!==this.layout?[this.layout.name]:[],groups:this.sessionReference&&this.sessionReference.owner&&this.sessionReference.owner.groups?this.sessionReference.owner.groups.map(function(e){return e.id}):[]})},downloadListener:function(e){var t=e.url,n=e.parameters;this.$axios.get("".concat("").concat("/modeler").concat(t),{params:{format:"RAW"},responseType:"blob"}).then(function(e){var t=document.createElement("a");t.href=URL.createObjectURL(e.data),t.setAttribute("download",n.filename||"output_".concat((new Date).getTime())),document.body.appendChild(t),t.click(),t.remove(),setTimeout(function(){return URL.revokeObjectURL(t.href)},5e3)}).catch(function(e){console.error(e)})},clickOnMenu:function(e){if(this.layout){var t=this.layout,n=t.applicationId,i=t.identity;this.sendStompMessage(l["a"].MENU_ACTION({identity:i,applicationId:n,menuId:e},this.$store.state.data.session).body)}},resetContextListener:function(){var e=this;null!==this.resetTimeout&&(clearTimeout(this.resetTimeout),this.resetTimeout=null),this.blockApp=!0,this.resetTimeout=setTimeout(function(){e.blockApp=!1,e.resetTimeout=null},1e3)},viewActionListener:function(){null!==this.resetTimeout&&this.resetContextListener()},updateListeners:function(){null!==this.layout?this.isRootLayout&&(this.$eventBus.$on(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$on(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$on(c["h"].COMPONENT_ACTION,this.componentClickedListener)):(this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener),this.$eventBus.$off(c["h"].COMPONENT_ACTION,this.componentClickedListener))},componentClickedListener:function(e){delete e.component.attributes.parentAttributes,delete e.component.attributes.parentId,this.sendStompMessage(l["a"].VIEW_ACTION(s()({},Sa,e),this.$store.state.data.session).body)}},watch:{layout:function(e,t){var n=this,i=null===t||e.applicationId!==t.applicationId;if(!this.isApp&&i&&(this.$nextTick(function(){n.updateLayout(!0)}),null!==t&&null!==t.name)){this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:t.name,stop:!0},this.$store.state.data.session).body);var o=localStorage.getItem(c["O"].LOCAL_STORAGE_APP_ID);o&&o===t.name&&localStorage.removeItem(c["O"].LOCAL_STORAGE_APP_ID)}null===t&&this.updateListeners()}},created:function(){},mounted:function(){this.updateLayout(!0),this.updateListeners(),this.$eventBus.$on(c["h"].DOWNLOAD_URL,this.downloadListener)},beforeDestroy:function(){this.$eventBus.$off(c["h"].DOWNLOAD_URL,this.downloadListener),this.$eventBus.$off(c["h"].RESET_CONTEXT,this.resetContextListener),this.$eventBus.$off(c["h"].VIEW_ACTION,this.viewActionListener)}},Ea=Aa,Oa=(n("4b0d"),Object(y["a"])(Ea,re,se,!1,null,null,null));Oa.options.__file="KlabLayout.vue";var La=Oa.exports,Ta=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-modal",{attrs:{"content-classes":"km-main-container","no-esc-dismiss":"","no-backdrop-dismiss":""},model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[n("q-modal-layout",[e.modal.label?n("q-toolbar",{staticClass:"km-title",attrs:{slot:"header"},slot:"header"},[n("q-toolbar-title",[e._v(e._s(e.modal.label))]),e.modal.subtitle?n("span",{staticClass:"km-subtitle",attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.modal.subtitle))]):e._e()],1):e._e(),n("klab-layout",{staticClass:"km-content",attrs:{layout:e.modal,isModal:!0,"modal-width":e.width,"modal-height":e.height}}),n("div",{staticClass:"km-buttons justify-end row"},[n("q-btn",{staticClass:"klab-button",attrs:{label:e.$t("label.appClose")},on:{click:e.close}})],1)],1)],1)},xa=[];Ta._withStripped=!0;var Ra={name:"KlabModalWindow",props:{modal:{type:Object,required:!0}},components:{KlabLayout:La},data:function(){return{instance:void 0}},computed:{open:{get:function(){return null!==this.modal},set:function(e){e||this.close()}},width:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.width,"px")||!1)},height:function(){return this.modal&&("".concat(this.modal.panels[0].attributes.height,"px")||!1)}},methods:s()({},Object(a["b"])("view",["setModalWindow"]),{close:function(){this.setModalWindow(null)}})},ka=Ra,za=(n("a4c5"),Object(y["a"])(ka,Ta,xa,!1,null,null,null));za.options.__file="KlabModalWindow.vue";var Pa=za.exports,Na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelp,expression:"showHelp"}],staticClass:"modal fullscreen",attrs:{id:"modal-show-help"}},[n("div",{staticClass:"modal-backdrop absolute-full"}),n("div",{ref:"kp-help-container",staticClass:"klab-modal-container",style:{width:e.modalSize.width+"px",height:e.modalSize.height+"px",transform:"translate(-50%, -50%) scale("+e.scale+", "+e.scale+") !important"}},[n("div",{ref:"kp-help-inner",staticClass:"klab-modal-inner"},[n("div",{staticClass:"klab-modal-content full-height"},[n("div",{staticClass:"kp-help-titlebar"},e._l(e.presentations,function(t,i){return n("div",{key:"kp-pres-"+i,staticClass:"kp-link",class:{"kp-link-current":i===e.activeSectionIndex},attrs:{id:"kp-pres-"+i},on:{click:function(t){i!==e.activeSectionIndex&&e.loadPresentation(i)}}},[n("span",[e._v(e._s(t.linkTitle))])])})),e.presentationBlocked?e._e():n("q-carousel",{ref:"kp-carousel",staticClass:"kp-carousel full-height",attrs:{color:"white","no-swipe":""},on:{"slide-trigger":e.initStack}},e._l(e.activePresentation,function(t,i){return n("q-carousel-slide",{key:"kp-slide-"+i,staticClass:"kp-slide full-height"},[n("div",{staticClass:"kp-main-content"},[t.stack.layers&&t.stack.layers.length>0?n("klab-stack",{ref:"kp-stack",refInFor:!0,attrs:{presentation:e.presentations[e.activeSectionIndex],"owner-index":i,maxOwnerIndex:e.activePresentation.length,stack:t.stack,"on-top":e.currentSlide===i},on:{stackend:e.stackEnd}}):n("div",[e._v("No slides")]),t.title?n("div",{staticClass:"kp-main-title",domProps:{innerHTML:e._s(t.title)}}):e._e()],1)])}))],1),n("div",{staticClass:"kp-nav-tooltip",class:{visible:""!==e.tooltipTitle},domProps:{innerHTML:e._s(e.tooltipTitle)}}),n("div",{staticClass:"kp-navigation"},[n("div",{staticClass:"kp-nav-container"},e._l(e.activePresentation,function(t,i){return n("div",{key:"kp-nav-"+i,staticClass:"kp-navnumber-container",on:{click:function(t){e.goTo(i,0)},mouseover:function(n){e.showTitle(t.title)},mouseleave:function(t){e.showTitle("")}}},[n("div",{staticClass:"kp-nav-number",class:{"kp-nav-current":e.currentSlide===i}},[e._v(e._s(i+1))])])}))]),n("div",{staticClass:"kp-btn-container"},[n("q-checkbox",{staticClass:"kp-checkbox",attrs:{"keep-color":!0,color:"grey-8",label:e.$t("label.rememberDecision"),"left-label":!0},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}})],1),n("q-btn",{directives:[{name:"show",rawName:"v-show",value:1!==e.scale,expression:"scale !== 1"}],staticClass:"kp-icon-refresh-size",attrs:{icon:"mdi-refresh",color:"mc-main",size:"md",title:e.$t("label.refreshSize"),round:"",flat:""},on:{click:e.refreshSize}}),n("q-btn",{staticClass:"kp-icon-close-popover",attrs:{icon:"mdi-close-circle-outline",color:"grey-8",size:"md",title:e.$t("label.appClose"),round:"",flat:""},on:{click:e.hideHelp}})],1),e.waitForPresentation||e.presentationBlocked?n("div",{staticClass:"kp-help-inner",class:{"modal-backdrop":!e.presentationBlocked&&e.waitForPresentation}},[e.presentationBlocked?n("div",{staticClass:" kp-no-presentation"},[n("div",{staticClass:"fixed-center text-center"},[n("div",{staticClass:"kp-np-content",domProps:{innerHTML:e._s(e.$t("messages.presentationBlocked"))}}),n("q-btn",{attrs:{flat:"","no-caps":"",icon:"mdi-refresh",label:e.$t("label.appRetry")},on:{click:e.initPresentation}})],1)]):e.waitForPresentation?n("q-spinner",{staticClass:"fixed-center",attrs:{color:"mc-yellow",size:40}}):e._e()],1):e._e()])])},Ia=[];Na._withStripped=!0;n("55dd"),n("28a5");var Da=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.layers.length>0?n("div",{ref:"ks-stack-container",staticClass:"ks-stack-container"},[e._l(e.layers,function(t,i){return n("div",{key:"ks-layer-"+i,ref:"ks-layer",refInFor:!0,staticClass:"ks-layer",class:{"ks-top-layer":e.selectedLayer===i,"ks-hide-layer":e.selectedLayer!==i},style:{"z-index":e.selectedLayer===i?9999:e.layers.length-i},attrs:{id:"ks-layer-"+e.ownerIndex+"-"+i}},[t.image?n("div",{staticClass:"ks-layer-image",class:e.elementClasses(t.image),style:e.elementStyle(t.image)},[n("img",{style:{width:t.image.width||"auto",height:t.image.height||"auto","max-width":e.imgMaxSize.width,"max-height":e.imgMaxSize.height},attrs:{src:e.getImage(t),alt:t.image.alt||t.title||t.text,title:t.image.alt||t.title||t.text,id:"ks-image-"+e.ownerIndex+"-"+i}})]):e._e(),t.title||t.text?n("div",{staticClass:"ks-layer-caption",class:e.elementClasses(t.textDiv),style:e.elementStyle(t.textDiv)},[t.title?n("div",{staticClass:"ks-caption-title",domProps:{innerHTML:e._s(e.rewriteImageUrl(t.title))}}):e._e(),t.text?n("div",{staticClass:"ks-caption-text",style:{"text-align":t.textAlign||"left"},domProps:{innerHTML:e._s(e.rewriteImageUrl(t.text))}}):e._e()]):e._e()])}),n("div",{staticClass:"ks-navigation",class:{"ks-navigation-transparent":null!==e.animation}},[n("q-btn",{attrs:{id:"ks-prev",disable:!e.hasPrevious,"text-color":"grey-8",icon:"mdi-chevron-left",round:"",flat:"",dense:"",title:e.$t("label.appPrevious")},on:{click:e.previous}}),n("q-btn",{attrs:{id:"ks-play-stop",disable:!e.hasNext,"text-color":"grey-8",icon:null===e.animation?"mdi-play":"mdi-pause",round:"",flat:"",dense:"",title:null===e.animation?e.$t("label.appPlay"):e.$t("label.appPause")},on:{click:function(t){null===e.animation?e.playStack():e.stopStack()}}}),n("q-btn",{attrs:{id:"ks-replay",disable:!e.isGif,"text-color":"grey-8",icon:"mdi-reload",round:"",flat:"",dense:"",title:e.$t("label.appReplay")},on:{click:function(t){e.refreshLayer(e.layers[e.selectedLayer])}}}),n("q-btn",{attrs:{id:"ks-next",disable:!e.hasNext,"text-color":"grey-8",icon:"mdi-chevron-right",round:"",flat:"",dense:"",title:e.$t("label.appNext")},on:{click:e.next}})],1)],2):e._e()},Ba=[];Da._withStripped=!0;n("aef6");var qa={name:"KlabStack",props:{presentation:{type:Object,required:!0},ownerIndex:{type:Number,required:!0},maxOwnerIndex:{type:Number,required:!0},stack:{type:Object,required:!0},onTop:{type:Boolean,default:!1}},data:function(){return{selectedLayer:0,animation:null,layers:this.stack.layers,animated:"undefined"!==typeof this.stack.animated&&this.stack.animated,autostart:"undefined"!==typeof this.stack.autostart?this.stack.autostart:0===this.ownerIndex,duration:this.stack.duration||5e3,infinite:"undefined"!==typeof this.stack.infinite&&this.stack.infinite,initialSize:{},scale:1,imgMaxSize:{width:"auto",height:"auto"}}},computed:{hasPrevious:function(){return this.selectedLayer>0||this.ownerIndex>0||this.infinite},hasNext:function(){return this.selectedLayer0?this.goTo(this.selectedLayer-1):this.infinite?this.goTo(this.layers.length-1):this.$emit("stackend",{index:this.ownerIndex,direction:-1})},reloadGif:function(e){var t=document.getElementById("ks-image-".concat(this.ownerIndex,"-").concat(this.selectedLayer));t&&(t.src=this.getImage(e))},setAnimation:function(e){if(this.hasNext){var t=this;null!==this.animation&&(clearTimeout(this.animation),this.animation=null),this.animation=setTimeout(function(){t.next()},e)}},getImage:function(e){return e.image?"".concat(this.baseUrl,"/").concat(e.image.url,"?t=").concat(Math.random()):""},rewriteImageUrl:function(e){return e&&e.length>0&&-1!==e.indexOf("0?t0&&this.goTo(t-1,"last")},refreshSize:function(){this.initialSize=void 0,this.onResize()},onResize:function(){var e=this;setTimeout(function(){if("undefined"===typeof e.initialSize){var t=window.innerWidth,n=window.innerHeight;e.initialSize={width:t,height:n}}if(e.scale=Math.min(window.innerWidth/e.initialSize.width,window.innerHeight/e.initialSize.height),1===e.scale){var i=window.innerWidth*c["r"].DEFAULT_WIDTH_PERCENTAGE/100,o=i/c["r"].DEFAULT_PROPORTIONS.width*c["r"].DEFAULT_PROPORTIONS.height,r=window.innerHeight*c["r"].DEFAULT_HEIGHT_PERCENTAGE/100,s=r/c["r"].DEFAULT_PROPORTIONS.height*c["r"].DEFAULT_PROPORTIONS.width;i0){var r=0;o.forEach(function(n,i){r+=1,Xa()("".concat(e.helpBaseUrl,"/index.php?sec=").concat(n.id),{param:"callback"},function(o,s){o?console.error(o.message):t.presentations.push({id:n.id,baseFolder:n.baseFolder,linkTitle:n.name,linkDescription:n.description,slides:s,index:i}),r-=1,0===r&&(e.presentationsLoading=!1,e.presentations.sort(function(e,t){return e.index-t.index}))})})}}})}catch(e){console.error("Error loading presentation: ".concat(e.message)),this.presentationsLoading=!1,this.presentationBlocked=e}}}),watch:{showHelp:function(e){this.$store.state.view.helpShown=e,e&&!this.presentationsLoading&&this.loadPresentation(0)},presentationsLoading:function(e){!e&&this.showHelp&&this.loadPresentation(0)},remember:function(e){e?V["a"].set(c["O"].COOKIE_HELP_ON_START,!1,{expires:30,path:"/",secure:!0}):V["a"].remove(c["O"].COOKIE_HELP_ON_START)}},created:function(){this.initPresentation()},mounted:function(){this.needHelp=!V["a"].has(c["O"].COOKIE_HELP_ON_START),this.remember=!this.needHelp,this.$eventBus.$on(c["h"].NEED_HELP,this.helpNeededEvent),window.addEventListener("resize",this.onResize)},beforeDestroy:function(){this.$eventBus.$off(c["h"].NEED_HELP,this.helpNeededEvent),window.removeEventListener("resize",this.onResize)}},Va=Ua,Ga=(n("edad"),Object(y["a"])(Va,Na,Ia,!1,null,null,null));Ga.options.__file="KlabPresentation.vue";var Ka=Ga.exports,$a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-dialog",{staticClass:"kn-modal-container",attrs:{"prevent-close":""},scopedSlots:e._u([{key:"buttons",fn:function(t){return[n("q-checkbox",{staticClass:"kn-checkbox",attrs:{"keep-color":!0,color:"app-main-color",label:e.$t("label.rememberDecision")},model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}}),n("q-btn",{attrs:{color:"app-main-color",label:e.$t("label.appAccept")},on:{click:e.onOk}})]}}]),model:{value:e.showNotifications,callback:function(t){e.showNotifications=t},expression:"showNotifications"}},[n("div",{staticClass:"kn-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.actualNotification.title)},slot:"title"}),n("div",{staticClass:"kn-content",attrs:{slot:"message"},domProps:{innerHTML:e._s(e.actualNotification.content)},slot:"message"})])},Ya=[];$a._withStripped=!0;var Ja={name:"KlabNotifications",data:function(){return{notifications:[],actualNotificationIndex:-1,remember:!1,cooked:[]}},computed:s()({},Object(a["c"])("stomp",["connectionUp"]),Object(a["c"])("view",["isInModalMode"]),{showNotifications:{get:function(){return-1!==this.actualNotificationIndex&&!this.actualNotificationIndex.read},set:function(){}},actualNotification:function(){return-1===this.actualNotificationIndex?{id:-1,title:"",content:""}:this.notifications[this.actualNotificationIndex]}}),methods:s()({},Object(a["b"])("view",["setModalMode"]),{onOk:function(){var e=this,t=this.notifications[this.actualNotificationIndex];t.read=!0,this.remember&&(this.cooked.findIndex(function(e){return e===t.id})&&this.cooked.push(t.id),V["a"].set(c["O"].COOKIE_NOTIFICATIONS,this.cooked,{expires:365,path:"/",secure:!0}),this.remember=!1),this.$nextTick(function(){do{e.actualNotificationIndex+=1}while(e.actualNotificationIndex0&&void 0!==arguments[0]?arguments[0]:{};this.notificationsLoading=!0,V["a"].has(c["O"].COOKIE_NOTIFICATIONS)&&(this.cooked=V["a"].get(c["O"].COOKIE_NOTIFICATIONS)),this.notifications.splice(0,this.notifications.length);try{var n="";if(t){var i=t.groups,o=t.apps;n=q()(i.map(function(e){return"groups[]=".concat(e)})).concat(q()(o.map(function(e){return"apps[]=".concat(e)}))).join("&")}var r=this;Xa()("".concat(c["d"].NOTIFICATIONS_URL).concat(""!==n?"?".concat(n):""),{param:"callback",timeout:5e3},function(t,n){t?console.error("Error loading notifications: ".concat(t.message)):n.length>0?n.forEach(function(e,t){var n=-1!==r.cooked.findIndex(function(t){return t==="".concat(e.id)});r.notifications.push(s()({},e,{read:n})),-1!==r.actualNotificationIndex||n||(r.actualNotificationIndex=t)}):console.debug("No notification"),e.presentationsLoading=!1})}catch(e){console.error("Error loading notifications: ".concat(e.message)),this.presentationsLoading=!1}}}),mounted:function(){this.$eventBus.$on(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_NOTIFICATIONS,this.initNotifications)}},Qa=Ja,Za=(n("e0d9"),Object(y["a"])(Qa,$a,Ya,!1,null,null,null));Za.options.__file="KlabNotifications.vue";var ec=Za.exports,tc=(n("8195"),{name:"LayoutDefault",components:{KlabLayout:La,KlabModalWindow:Pa,ConnectionStatus:A,KlabSettings:P,KlabTerminal:Q,AppDialogs:oe,KlabPresentation:Ka,KlabNotifications:ec},data:function(){return{errorLoading:!1,waitApp:!1}},computed:s()({},Object(a["c"])("data",["hasContext","terminals","isDeveloper"]),Object(a["c"])("stomp",["connectionDown"]),Object(a["c"])("view",["layout","isApp","klabApp","modalWindow"]),{wait:{get:function(){return this.waitApp||this.errorLoading},set:function(){}}}),methods:{reload:function(){document.location.reload()}},created:function(){},mounted:function(){var e=this;this.sendStompMessage(l["a"].RESET_CONTEXT(this.$store.state.data.session).body);var t=localStorage.getItem(c["O"].LOCAL_STORAGE_APP_ID);t&&(this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:t,stop:!0},this.$store.state.data.session).body),localStorage.removeItem(c["O"].LOCAL_STORAGE_APP_ID)),this.isApp&&this.sendStompMessage(l["a"].RUN_APPLICATION({applicationId:this.$store.state.view.klabApp},this.$store.state.data.session).body),this.isApp&&null===this.layout&&(this.waitApp=!0,setTimeout(function(){e.isApp&&null===e.layout&&(e.errorLoading=!0)},7e3)),window.addEventListener("beforeunload",function(t){e.hasContext&&!e.isDeveloper&&(t.preventDefault(),t.returnValue=e.$t("messages.confirmExitPage"))})},watch:{layout:function(e){this.waitApp&&e&&(this.waitApp=!1),this.errorLoading&&e&&(this.errorLoading=!1)}}}),nc=tc,ic=(n("7521"),Object(y["a"])(nc,i,o,!1,null,null,null));ic.options.__file="default.vue";t["default"]=ic.exports},"7bae":function(e,t,n){},"7bae3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("064a"),o=n("e1c6"),r=n("7f73"),s=n("755f"),a=n("6923"),c=n("e576"),l=new o.ContainerModule(function(e,t,n){i.configureModelElement({bind:e,isBound:n},"marker",r.SIssueMarker,s.IssueMarkerView),e(c.DecorationPlacer).toSelf().inSingletonScope(),e(a.TYPES.IVNodePostprocessor).toService(c.DecorationPlacer)});t.default=l},"7bbc":function(e,t,n){"use strict";var i=n("fcf8"),o=n.n(i);o.a},"7d36":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.fadeFeature)&&void 0!==e["opacity"]}Object.defineProperty(t,"__esModule",{value:!0}),t.fadeFeature=Symbol("fadeFeature"),t.isFadeable=i},"7d72":function(e,t,n){"use strict";var i=n("8707").Buffer,o=i.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=r(e);if("string"!==typeof t&&(i.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function l(e,t,n){var i=t.length-1;if(i=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function f(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n0,d=u?l.length:n.length,f=h(i,t,s,c,d),m=p(e,n),g=f.concat(m);return g}function d(e,t,n,s,a){var l=a[e.toString()]||[],u=m(l),d=!0!==u.unmanaged,h=s[e],p=u.inject||u.multiInject;if(h=p||h,h instanceof i.LazyServiceIdentifer&&(h=h.unwrap()),d){var f=h===Object,g=h===Function,v=void 0===h,b=f||g||v;if(!t&&b){var y=o.MISSING_INJECT_ANNOTATION+" argument "+e+" in class "+n+".";throw new Error(y)}var _=new c.Target(r.TargetTypeEnum.ConstructorArgument,u.targetName,h);return _.metadata=l,_}return null}function h(e,t,n,i,o){for(var r=[],s=0;s0?l:f(e,n)}return 0}function m(e){var t={};return e.forEach(function(e){t[e.key.toString()]=e.value}),{inject:t[s.INJECT_TAG],multiInject:t[s.MULTI_INJECT_TAG],targetName:t[s.NAME_TAG],unmanaged:t[s.UNMANAGED_TAG]}}t.getDependencies=l,t.getBaseClassDependencyCount=f},"7f45":function(e,t,n){var i=e.exports=n("0efb");i.tz.load(n("6cd2"))},"7f73":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("e4f0"),r=n("66f9");function s(e){return e.hasFeature(t.decorationFeature)}t.decorationFeature=Symbol("decorationFeature"),t.isDecoration=s;var a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.DEFAULT_FEATURES=[t.decorationFeature,r.boundsFeature,o.hoverFeedbackFeature,o.popupFeature],n}(r.SShapeElement);t.SDecoration=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(a);t.SIssueMarker=c;var l=function(){function e(){}return e}();t.SIssue=l},"7faf":function(e,t,n){"use strict";function i(e){return e.hasFeature(t.exportFeature)}Object.defineProperty(t,"__esModule",{value:!0}),t.exportFeature=Symbol("exportFeature"),t.isExportable=i},"80b5":function(e,t,n){"use strict";function i(e){return e instanceof HTMLElement?{x:e.offsetLeft,y:e.offsetTop}:e}Object.defineProperty(t,"__esModule",{value:!0}),t.toAnchor=i},8122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("33b2"),s=n("9e2e"),a=n("0fb6"),c=n("be02"),l=n("160b"),u=n("302f"),d=n("538c"),h=n("29fa"),p=n("65d1"),f=n("3b4c"),m=n("1417"),g=n("a190"),v=n("064a"),b=n("8794"),y=n("0d7a"),_=n("b093"),M=n("842c"),w=n("cd10"),C=n("ddee"),S=n("1590"),A=n("3f0a"),E=n("6176"),O=n("c661"),L=new i.ContainerModule(function(e,t,n){e(o.TYPES.ILogger).to(s.NullLogger).inSingletonScope(),e(o.TYPES.LogLevel).toConstantValue(s.LogLevel.warn),e(o.TYPES.SModelRegistry).to(u.SModelRegistry).inSingletonScope(),e(c.ActionHandlerRegistry).toSelf().inSingletonScope(),e(o.TYPES.ActionHandlerRegistryProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(c.ActionHandlerRegistry))})}}),e(o.TYPES.ViewRegistry).to(v.ViewRegistry).inSingletonScope(),e(o.TYPES.IModelFactory).to(u.SModelFactory).inSingletonScope(),e(o.TYPES.IActionDispatcher).to(a.ActionDispatcher).inSingletonScope(),e(o.TYPES.IActionDispatcherProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(o.TYPES.IActionDispatcher))})}}),e(o.TYPES.IDiagramLocker).to(O.DefaultDiagramLocker).inSingletonScope(),e(o.TYPES.IActionHandlerInitializer).to(M.CommandActionHandlerInitializer),e(o.TYPES.ICommandStack).to(l.CommandStack).inSingletonScope(),e(o.TYPES.ICommandStackProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(o.TYPES.ICommandStack))})}}),e(o.TYPES.CommandStackOptions).toConstantValue({defaultDuration:250,undoHistoryLimit:50}),e(h.ModelViewer).toSelf().inSingletonScope(),e(h.HiddenModelViewer).toSelf().inSingletonScope(),e(h.PopupModelViewer).toSelf().inSingletonScope(),e(o.TYPES.ModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(o.TYPES.IViewer).toService(h.ModelViewer),t.bind(b.ViewerCache).toSelf(),t.get(b.ViewerCache)}).inSingletonScope(),e(o.TYPES.PopupModelViewer).toDynamicValue(function(e){var t=e.container.createChild();return t.bind(o.TYPES.IViewer).toService(h.PopupModelViewer),t.bind(b.ViewerCache).toSelf(),t.get(b.ViewerCache)}).inSingletonScope(),e(o.TYPES.HiddenModelViewer).toService(h.HiddenModelViewer),e(o.TYPES.IViewerProvider).toDynamicValue(function(e){return{get modelViewer(){return e.container.get(o.TYPES.ModelViewer)},get hiddenModelViewer(){return e.container.get(o.TYPES.HiddenModelViewer)},get popupModelViewer(){return e.container.get(o.TYPES.PopupModelViewer)}}}),e(o.TYPES.ViewerOptions).toConstantValue(p.defaultViewerOptions()),e(o.TYPES.PatcherProvider).to(h.PatcherProvider).inSingletonScope(),e(o.TYPES.DOMHelper).to(y.DOMHelper).inSingletonScope(),e(o.TYPES.ModelRendererFactory).toFactory(function(e){return function(t,n){var i=e.container.get(o.TYPES.ViewRegistry);return new h.ModelRenderer(i,t,n)}}),e(_.IdPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(_.IdPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(_.IdPostprocessor),e(w.CssClassPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(w.CssClassPostprocessor),e(o.TYPES.HiddenVNodePostprocessor).toService(w.CssClassPostprocessor),e(f.MouseTool).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(f.MouseTool),e(m.KeyTool).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(m.KeyTool),e(g.FocusFixPostprocessor).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(g.FocusFixPostprocessor),e(o.TYPES.PopupVNodePostprocessor).toService(_.IdPostprocessor),e(f.PopupMouseTool).toSelf().inSingletonScope(),e(o.TYPES.PopupVNodePostprocessor).toService(f.PopupMouseTool),e(o.TYPES.AnimationFrameSyncer).to(d.AnimationFrameSyncer).inSingletonScope();var i={bind:e,isBound:n};M.configureCommand(i,r.InitializeCanvasBoundsCommand),e(r.CanvasBoundsInitializer).toSelf().inSingletonScope(),e(o.TYPES.IVNodePostprocessor).toService(r.CanvasBoundsInitializer),M.configureCommand(i,A.SetModelCommand),e(o.TYPES.IToolManager).to(C.ToolManager).inSingletonScope(),e(o.TYPES.KeyListener).to(C.DefaultToolsEnablingKeyListener),e(C.ToolManagerActionHandler).toSelf().inSingletonScope(),c.configureActionHandler(i,S.EnableDefaultToolsAction.KIND,C.ToolManagerActionHandler),c.configureActionHandler(i,S.EnableToolsAction.KIND,C.ToolManagerActionHandler),e(o.TYPES.UIExtensionRegistry).to(E.UIExtensionRegistry).inSingletonScope(),M.configureCommand(i,E.SetUIExtensionVisibilityCommand),e(f.MousePositionTracker).toSelf().inSingletonScope(),e(o.TYPES.MouseListener).toService(f.MousePositionTracker)});t.default=L},8195:function(e,t,n){},"81aa":function(e,t,n){"use strict";function i(e,t,n,i,o){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:i,elm:o,key:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.vnode=i,t.default=i},8336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3"),o=n("155f"),r=n("0fd9"),s=n("2cac"),a=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=o.BindingTypeEnum.Instance,this._binding.implementationType=e,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!==typeof this._binding.serviceIdentifier)throw new Error(""+i.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=o.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=o.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new r.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=o.BindingTypeEnum.Constructor,this._binding.implementationType=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!==typeof e)throw new Error(i.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=o.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=function(t){var n=function(){return t.container.get(e)};return n},new s.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=o.BindingTypeEnum.Provider,this._binding.provider=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},e}();t.BindingToSyntax=a},"842c":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("7b39"),c=n("6923"),l=function(){function e(e){this.commandRegistration=e}return e.prototype.handle=function(e){return this.commandRegistration.factory(e)},e}();t.CommandActionHandler=l;var u=function(){function e(e){this.registrations=e}return e.prototype.initialize=function(e){this.registrations.forEach(function(t){return e.register(t.kind,new l(t))})},e=i([s.injectable(),r(0,s.multiInject(c.TYPES.CommandRegistration)),r(0,s.optional()),o("design:paramtypes",[Array])],e),e}();function d(e,t){if(!a.isInjectable(t))throw new Error("Commands should be @injectable: "+t.name);e.isBound(t)||e.bind(t).toSelf(),e.bind(c.TYPES.CommandRegistration).toDynamicValue(function(e){return{kind:t.KIND,factory:function(n){var i=new s.Container;return i.parent=e.container,i.bind(c.TYPES.Action).toConstantValue(n),i.get(t)}}})}t.CommandActionHandlerInitializer=u,t.configureCommand=d},"84a2":function(e,t,n){(function(t){var n="Expected a function",i=NaN,o="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),p=Object.prototype,f=p.toString,m=Math.max,g=Math.min,v=function(){return h.Date.now()};function b(e,t,i){var o,r,s,a,c,l,u=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function f(t){var n=o,i=r;return o=r=void 0,u=t,a=e.apply(i,n),a}function b(e){return u=e,c=setTimeout(w,t),d?f(e):a}function y(e){var n=e-l,i=e-u,o=t-n;return h?g(o,s-i):o}function M(e){var n=e-l,i=e-u;return void 0===l||n>=t||n<0||h&&i>=s}function w(){var e=v();if(M(e))return S(e);c=setTimeout(w,y(e))}function S(e){return c=void 0,p&&o?f(e):(o=r=void 0,a)}function A(){void 0!==c&&clearTimeout(c),u=0,o=l=r=c=void 0}function E(){return void 0===c?a:S(v())}function O(){var e=v(),n=M(e);if(o=arguments,r=this,l=e,n){if(void 0===c)return b(l);if(h)return c=setTimeout(w,t),f(l)}return void 0===c&&(c=setTimeout(w,t)),a}return t=C(t)||0,_(i)&&(d=!!i.leading,h="maxWait"in i,s=h?m(C(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),O.cancel=A,O.flush=E,O}function y(e,t,i){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError(n);return _(i)&&(o="leading"in i?!!i.leading:o,r="trailing"in i?!!i.trailing:r),b(e,t,{leading:o,maxWait:t,trailing:r})}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function M(e){return!!e&&"object"==typeof e}function w(e){return"symbol"==typeof e||M(e)&&f.call(e)==o}function C(e){if("number"==typeof e)return e;if(w(e))return i;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=a.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?i:+e}e.exports=y}).call(this,n("c8ba"))},"84b1":function(e,t,n){(function(t,n){e.exports=n()})(0,function(){"use strict";function e(e){var t,n,i=document,o=i.createElement("div"),r=o.style,s=navigator.userAgent,a=-1!==s.indexOf("Firefox")&&-1!==s.indexOf("Mobile"),c=e.debounceWaitMs||0,l=e.preventSubmit||!1,u=a?"input":"keyup",d=[],h="",p=2,f=e.showOnFocus,m=0;if(void 0!==e.minLength&&(p=e.minLength),!e.input)throw new Error("input undefined");var g=e.input;function v(){var e=o.parentNode;e&&e.removeChild(o)}function b(){n&&window.clearTimeout(n)}function y(){o.parentNode||i.body.appendChild(o)}function _(){return!!o.parentNode}function M(){m++,d=[],h="",t=void 0,v()}function w(){if(_()){r.height="auto",r.width=g.offsetWidth+"px";var t=g.getBoundingClientRect(),n=t.top+g.offsetHeight,i=window.innerHeight-n;i<0&&(i=0),r.top=n+"px",r.bottom="",r.left=t.left+"px",r.maxHeight=i+"px",e.customize&&e.customize(g,t,o,i)}}function C(){while(o.firstChild)o.removeChild(o.firstChild);var n=function(e,t){var n=i.createElement("div");return n.textContent=e.label||"",n};e.render&&(n=e.render);var r=function(e,t){var n=i.createElement("div");return n.textContent=e,n};e.renderGroup&&(r=e.renderGroup);var s=i.createDocumentFragment(),a="#9?$";if(d.forEach(function(i){if(i.group&&i.group!==a){a=i.group;var o=r(i.group,h);o&&(o.className+=" group",s.appendChild(o))}var c=n(i,h);c&&(c.addEventListener("click",function(t){e.onSelect(i,g),M(),t.preventDefault(),t.stopPropagation()}),i===t&&(c.className+=" selected"),s.appendChild(c))}),o.appendChild(s),d.length<1){if(!e.emptyMsg)return void M();var c=i.createElement("div");c.className="empty",c.textContent=e.emptyMsg,o.appendChild(c)}y(),w(),L()}function S(){_()&&C()}function A(){S()}function E(e){e.target!==o?S():e.preventDefault()}function O(e){for(var t=e.which||e.keyCode||0,n=[38,13,27,39,37,16,17,18,20,91,9],i=0,o=n;i0){var t=e[0],n=t.previousElementSibling;if(n&&-1!==n.className.indexOf("group")&&!n.previousElementSibling&&(t=n),t.offsetTopr&&(o.scrollTop+=i-r)}}}function T(){if(d.length<1)t=void 0;else if(t===d[0])t=d[d.length-1];else for(var e=d.length-1;e>0;e--)if(t===d[e]||1===e){t=d[e-1];break}}function x(){if(d.length<1&&(t=void 0),t&&t!==d[d.length-1]){for(var e=0;e=p||1===i?(b(),n=window.setTimeout(function(){e.fetch(r,function(e){m===o&&e&&(d=e,h=r,t=d.length>0?d[0]:void 0,C())},0)},0===i?c:0)):M()}function P(){setTimeout(function(){i.activeElement!==g&&M()},200)}function N(){g.removeEventListener("focus",k),g.removeEventListener("keydown",R),g.removeEventListener(u,O),g.removeEventListener("blur",P),window.removeEventListener("resize",A),i.removeEventListener("scroll",E,!0),b(),M(),m++}return o.className="autocomplete "+(e.className||""),r.position="fixed",o.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),g.addEventListener("keydown",R),g.addEventListener(u,O),g.addEventListener("blur",P),g.addEventListener("focus",k),window.addEventListener("resize",A),i.addEventListener("scroll",E,!0),{destroy:N}}return e})},"84fd":function(e,t,n){},"85ed":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=a.LogLevel.error&&this.forward(e,t,a.LogLevel.error,n)},e.prototype.warn=function(e,t){for(var n=[],i=2;i=a.LogLevel.warn&&this.forward(e,t,a.LogLevel.warn,n)},e.prototype.info=function(e,t){for(var n=[],i=2;i=a.LogLevel.info&&this.forward(e,t,a.LogLevel.info,n)},e.prototype.log=function(e,t){for(var n=[],i=2;i=a.LogLevel.log)try{var o="object"===typeof e?e.constructor.name:String(e);console.log.apply(e,r([o+": "+t],n))}catch(e){}},e.prototype.forward=function(e,t,n,i){var o=new Date,r=new l(a.LogLevel[n],o.toLocaleTimeString(),"object"===typeof e?e.constructor.name:String(e),t,i.map(function(e){return JSON.stringify(e)}));this.modelSourceProvider().then(function(n){try{n.handle(r)}catch(n){try{console.log.apply(e,[t,r,n])}catch(e){}}})},i([s.inject(c.TYPES.ModelSourceProvider),o("design:type",Function)],e.prototype,"modelSourceProvider",void 0),i([s.inject(c.TYPES.LogLevel),o("design:type",Number)],e.prototype,"logLevel",void 0),e=i([s.injectable()],e),e}();t.ForwardingLogger=u},"861d":function(e,t,n){var i=/(?:|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,o=n("c4ec"),r=Object.create?Object.create(null):{};function s(e,t,n,i,o){var r=t.indexOf("<",i),s=t.slice(i,-1===r?void 0:r);/^\s*$/.test(s)&&(s=" "),(!o&&r>-1&&n+e.length>=0||" "!==s)&&e.push({type:"text",content:s})}e.exports=function(e,t){t||(t={}),t.components||(t.components=r);var n,a=[],c=-1,l=[],u={},d=!1;return e.replace(i,function(i,r){if(d){if(i!=="")return;d=!1}var h,p="/"!==i.charAt(1),f=0===i.indexOf("\x3c!--"),m=r+i.length,g=e.charAt(m);p&&!f&&(c++,n=o(i),"tag"===n.type&&t.components[n.name]&&(n.type="component",d=!0),n.voidElement||d||!g||"<"===g||s(n.children,e,c,m,t.ignoreWhitespace),u[n.tagName]=n,0===c&&a.push(n),h=l[c-1],h&&h.children.push(n),l[c]=n),(f||!p||n.voidElement)&&(f||c--,!d&&"<"!==g&&g&&(h=-1===c?a:l[c].children,s(h,e,c,m,t.ignoreWhitespace)))}),!a.length&&e.length&&s(a,e,0,0,t.ignoreWhitespace),a}},8622:function(e,t,n){"use strict";var i=n("bc63"),o=n.n(i);o.a},"869e":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3864");t.DIAMOND_ANCHOR_KIND="diamond",t.ELLIPTIC_ANCHOR_KIND="elliptic",t.RECTANGULAR_ANCHOR_KIND="rectangular";var u=function(e){function n(t){var n=e.call(this)||this;return t.forEach(function(e){return n.register(e.kind,e)}),n}return i(n,e),Object.defineProperty(n.prototype,"defaultAnchorKind",{get:function(){return t.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),n.prototype.get=function(t,n){return e.prototype.get.call(this,t+":"+(n||this.defaultAnchorKind))},n=o([a.injectable(),s(0,a.multiInject(c.TYPES.IAnchorComputer)),r("design:paramtypes",[Array])],n),n}(l.InstanceRegistry);t.AnchorComputerRegistry=u},8707:function(e,t,n){var i=n("b639"),o=i.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=s),s.prototype=Object.create(o.prototype),r(o,s),s.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},8794:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=n("538c"),c=function(){function e(){}return e.prototype.update=function(e,t){if(void 0!==t)this.delegate.update(e,t),this.cachedModel=void 0;else{var n=void 0===this.cachedModel;this.cachedModel=e,n&&this.scheduleUpdate()}},e.prototype.scheduleUpdate=function(){var e=this;this.syncer.onEndOfNextFrame(function(){e.cachedModel&&(e.delegate.update(e.cachedModel),e.cachedModel=void 0)})},i([r.inject(s.TYPES.IViewer),o("design:type",Object)],e.prototype,"delegate",void 0),i([r.inject(s.TYPES.AnimationFrameSyncer),o("design:type",a.AnimationFrameSyncer)],e.prototype,"syncer",void 0),e=i([r.injectable()],e),e}();t.ViewerCache=c},"87b3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("7685"),o=n("30e3"),r=n("155f"),s=n("c5f4"),a=n("a8af"),c=n("ba33"),l=n("a32f"),u=n("1979"),d=n("c8c0"),h=n("7dba"),p=n("c622"),f=n("757d");function m(e){return e._bindingDictionary}function g(e,t,n,i,o,r){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,c=new u.Metadata(a,n),l=new f.Target(t,i,n,c);if(void 0!==o){var d=new u.Metadata(o,r);l.metadata.push(d)}return l}function v(e,t,n,o,r){var s=_(n.container,r.serviceIdentifier),a=[];return s.length===i.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"===typeof r.serviceIdentifier&&e.getConstructorMetadata(r.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(r.serviceIdentifier).toSelf(),s=_(n.container,r.serviceIdentifier)),a=t?s:s.filter(function(e){var t=new p.Request(e.serviceIdentifier,n,o,e,r);return e.constraint(t)}),b(r.serviceIdentifier,a,r,n.container),a}function b(e,t,n,r){switch(t.length){case i.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=c.getServiceIdentifierAsString(e),a=o.NOT_REGISTERED;throw a+=c.listMetadataForTarget(s,n),a+=c.listRegisteredBindingsForServiceIdentifier(r,s,_),new Error(a);case i.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case i.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;s=c.getServiceIdentifierAsString(e),a=o.AMBIGUOUS_MATCH+" "+s;throw a+=c.listRegisteredBindingsForServiceIdentifier(r,s,_),new Error(a)}}function y(e,t,n,i,s,a){var c,l;if(null===s){c=v(e,t,i,null,a),l=new p.Request(n,i,null,c,a);var u=new d.Plan(i,l);i.addPlan(u)}else c=v(e,t,i,s,a),l=s.addChildRequest(a.serviceIdentifier,c,a);c.forEach(function(t){var n=null;if(a.isArray())n=l.addChildRequest(t.serviceIdentifier,t,a);else{if(t.cache)return;n=l}if(t.type===r.BindingTypeEnum.Instance&&null!==t.implementationType){var s=h.getDependencies(e,t.implementationType);if(!i.container.options.skipBaseClassChecks){var c=h.getBaseClassDependencyCount(e,t.implementationType);if(s.length=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("dd7b"),r=n("e1c6"),s=function(){function e(){}return e.prototype.render=function(e,t){var n=this;return o.h(this.selector(e),{key:e.id,hook:{init:this.init.bind(this),prepatch:this.prepatch.bind(this)},fn:function(){return n.renderAndDecorate(e,t)},args:this.watchedArgs(e),thunk:!0})},e.prototype.renderAndDecorate=function(e,t){var n=this.doRender(e,t);return t.decorate(n,e),n},e.prototype.copyToThunk=function(e,t){t.elm=e.elm,e.data.fn=t.data.fn,e.data.args=t.data.args,t.data=e.data,t.children=e.children,t.text=e.text,t.elm=e.elm},e.prototype.init=function(e){var t=e.data,n=t.fn.apply(void 0,t.args);this.copyToThunk(n,e)},e.prototype.prepatch=function(e,t){var n=e.data,i=t.data;this.equals(n.args,i.args)?this.copyToThunk(e,t):this.copyToThunk(i.fn.apply(void 0,i.args),t)},e.prototype.equals=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("3585"),s=function(){function e(){}return e.prototype.isVisible=function(e,t,n){if("hidden"===n.targetKind)return!0;if(0===t.length)return!0;var i=r.getAbsoluteRouteBounds(e,t),o=e.root.canvasBounds;return i.x<=o.width&&i.x+i.width>=0&&i.y<=o.height&&i.y+i.height>=0},e=i([o.injectable()],e),e}();t.RoutableView=s},"8e08":function(e,t,n){},"8e65":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("842c"),r=n("6923"),s=n("42be"),a=n("26ad"),c=new i.ContainerModule(function(e,t,n){e(r.TYPES.ModelSourceProvider).toProvider(function(e){return function(){return new Promise(function(t){t(e.container.get(r.TYPES.ModelSource))})}}),o.configureCommand({bind:e,isBound:n},s.CommitModelCommand),e(r.TYPES.IActionHandlerInitializer).toService(r.TYPES.ModelSource),e(a.ComputedBoundsApplicator).toSelf().inSingletonScope()});t.default=c},"8e97":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("dd02"),s=n("66f9"),a=function(){function e(){}return e.prototype.isVisible=function(e,t){if("hidden"===t.targetKind)return!0;if(!r.isValidDimension(e.bounds))return!0;var n=s.getAbsoluteBounds(e),i=e.root.canvasBounds;return n.x<=i.width&&n.x+n.width>=0&&n.y<=i.height&&n.y+n.height>=0},e=i([o.injectable()],e),e}();t.ShapeView=a},"8ef3":function(e,t,n){},9016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,o=function(e){i(function(){i(e)})},r=!1;function s(e,t,n){o(function(){e[t]=n})}function a(e,t){var n,i,o=t.elm,r=e.data.style,a=t.data.style;if((r||a)&&r!==a){r=r||{},a=a||{};var c="delayed"in r;for(i in r)a[i]||("-"===i[0]&&"-"===i[1]?o.style.removeProperty(i):o.style[i]="");for(i in a)if(n=a[i],"delayed"===i&&a.delayed)for(var l in a.delayed)n=a.delayed[l],c&&n===r.delayed[l]||s(o.style,l,n);else"remove"!==i&&n!==r[i]&&("-"===i[0]&&"-"===i[1]?o.style.setProperty(i,n):o.style[i]=n)}}function c(e){var t,n,i=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)i.style[n]=t[n]}function l(e,t){var n=e.data.style;if(n&&n.remove){r||(getComputedStyle(document.body).transform,r=!0);var i,o,s=e.elm,a=0,c=n.remove,l=0,u=[];for(i in c)u.push(i),s.style[i]=c[i];o=getComputedStyle(s);for(var d=o["transition-property"].split(", ");a=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=n("21a6"),c=n("e1c6"),l=n("3f0a"),u=n("6923"),d=n("42f7"),h=n("4741"),p=n("5d19"),f=n("f4cb"),m=n("b485"),g=n("cf61"),v=n("26ad");function b(e){return void 0!==e&&e.hasOwnProperty("action")}t.isActionMessage=b;var y=function(){function e(){this.kind=e.KIND}return e.KIND="serverStatus",e}();t.ServerStatusAction=y;var _="__receivedFromServer",M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentRoot={type:"NONE",id:"ROOT"},t}return i(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),t.register(d.ComputedBoundsAction.KIND,this),t.register(d.RequestBoundsCommand.KIND,this),t.register(f.RequestPopupModelAction.KIND,this),t.register(h.CollapseExpandAction.KIND,this),t.register(h.CollapseExpandAllAction.KIND,this),t.register(m.OpenAction.KIND,this),t.register(y.KIND,this),this.clientId||(this.clientId=this.viewerOptions.baseDiv)},t.prototype.handle=function(e){var t=this.handleLocally(e);t&&this.forwardToServer(e)},t.prototype.forwardToServer=function(e){var t={clientId:this.clientId,action:e};this.logger.log(this,"sending",t),this.sendMessage(t)},t.prototype.messageReceived=function(e){var t=this,n="string"===typeof e?JSON.parse(e):e;b(n)&&n.action?n.clientId&&n.clientId!==this.clientId||(n.action[_]=!0,this.logger.log(this,"receiving",n),this.actionDispatcher.dispatch(n.action).then(function(){t.storeNewModel(n.action)})):this.logger.error(this,"received data is not an action message",n)},t.prototype.handleLocally=function(e){switch(this.storeNewModel(e),e.kind){case d.ComputedBoundsAction.KIND:return this.handleComputedBounds(e);case l.RequestModelAction.KIND:return this.handleRequestModel(e);case d.RequestBoundsCommand.KIND:return!1;case p.ExportSvgAction.KIND:return this.handleExportSvgAction(e);case y.KIND:return this.handleServerStateAction(e)}return!e[_]},t.prototype.storeNewModel=function(e){if(e.kind===l.SetModelCommand.KIND||e.kind===g.UpdateModelCommand.KIND||e.kind===d.RequestBoundsCommand.KIND){var t=e.newRoot;t&&(this.currentRoot=t,e.kind!==l.SetModelCommand.KIND&&e.kind!==g.UpdateModelCommand.KIND||(this.lastSubmittedModelType=t.type))}},t.prototype.handleRequestModel=function(e){var t=o({needsClientLayout:this.viewerOptions.needsClientLayout,needsServerLayout:this.viewerOptions.needsServerLayout},e.options),n=o(o({},e),{options:t});return this.forwardToServer(n),!1},t.prototype.handleComputedBounds=function(e){if(this.viewerOptions.needsServerLayout)return!0;var t=this.currentRoot;return this.computedBoundsApplicator.apply(t,e),t.type===this.lastSubmittedModelType?this.actionDispatcher.dispatch(new g.UpdateModelAction(t)):this.actionDispatcher.dispatch(new l.SetModelAction(t)),this.lastSubmittedModelType=t.type,!1},t.prototype.handleExportSvgAction=function(e){var t=new Blob([e.svg],{type:"text/plain;charset=utf-8"});return a.saveAs(t,"diagram.svg"),!1},t.prototype.handleServerStateAction=function(e){return!1},t.prototype.commitModel=function(e){var t=this.currentRoot;return this.currentRoot=e,t},r([c.inject(u.TYPES.ILogger),s("design:type",Object)],t.prototype,"logger",void 0),r([c.inject(v.ComputedBoundsApplicator),s("design:type",v.ComputedBoundsApplicator)],t.prototype,"computedBoundsApplicator",void 0),t=r([c.injectable()],t),t}(v.ModelSource);t.DiagramServer=M},"966d":function(e,t,n){"use strict";(function(t){function n(e,n,i,o){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var r,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,i)});case 4:return t.nextTick(function(){e.call(null,n,i,o)});default:r=new Array(a-1),s=0;while(s=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=function(){function e(){}return e=o([r.injectable()],e),e}();t.Command=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.merge=function(e,t){return!1},t=o([r.injectable()],t),t}(s);t.MergeableCommand=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.undo=function(e){return e.logger.error(this,"Cannot undo a hidden command"),e.root},t.prototype.redo=function(e){return e.logger.error(this,"Cannot redo a hidden command"),e.root},t=o([r.injectable()],t),t}(s);t.HiddenCommand=c;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.PopupCommand=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.SystemCommand=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t=o([r.injectable()],t),t}(s);t.ResetCommand=d},9811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("e7fa"),s=new i.ContainerModule(function(e){e(o.TYPES.IVNodePostprocessor).to(r.ElementFader).inSingletonScope()});t.default=s},"987d":function(e,t,n){"use strict";function i(e){return e<.5?e*e*2:1-(1-e)*(1-e)*2}Object.defineProperty(t,"__esModule",{value:!0}),t.easeInOut=i},"98ab":function(e,t,n){},"98db":function(e,t,n){(function(e,t){ +/*! ***************************************************************************** +Copyright (C) Microsoft. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +var n;(function(n){(function(e){var i="object"===typeof t?t:"object"===typeof self?self:"object"===typeof this?this:Function("return this;")(),o=r(n);function r(e,t){return function(n,i){"function"!==typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:i}),t&&t(n,i)}}"undefined"===typeof i.Reflect?i.Reflect=n:o=r(i.Reflect,o),e(o)})(function(t){var n=Object.prototype.hasOwnProperty,i="function"===typeof Symbol,o=i&&"undefined"!==typeof Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",r=i&&"undefined"!==typeof Symbol.iterator?Symbol.iterator:"@@iterator",s="function"===typeof Object.create,a={__proto__:[]}instanceof Array,c=!s&&!a,l={create:s?function(){return re(Object.create(null))}:a?function(){return re({__proto__:null})}:function(){return re({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d="object"===typeof e&&Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.21.01",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API_LOGOUT:"/modeler/api/v2/users/log-out",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"})&&"true"===Object({NODE_ENV:"production",CLIENT:!0,SERVER:!1,DEV:!1,PROD:!0,THEME:"mat",MODE:"spa",WS_BASE_URL:"",STOMP_CLIENT_DEBUG:!1,KEXPLORER_DEBUG:!1,ROUTER_BASE:"/modeler/ui",WEB_BASE_URL:"https://integratedmodelling.org",PACKAGE_VERSION:"0.21.01",PACKAGE_BUILD:"",ENGINE_URL:"/modeler",ENGINE_SHARED:"/modeler/shared/",ENGINE_LOGIN:"/modeler",API_LOGOUT:"/modeler/api/v2/users/log-out",WS_URL:"/modeler/message",WS_SUBSCRIBE:"/message",WS_MESSAGE_DESTINATION:"/klab/message",REST_UPLOAD_MAX_SIZE:"1024MB",SEARCH_TIMEOUT_MS:"4000",VUE_ROUTER_MODE:"hash",VUE_ROUTER_BASE:"",APP_URL:"undefined"})["REFLECT_METADATA_USE_MAP_POLYFILL"],h=d||"function"!==typeof Map||"function"!==typeof Map.prototype.entries?ne():Map,p=d||"function"!==typeof Set||"function"!==typeof Set.prototype.entries?ie():Set,f=d||"function"!==typeof WeakMap?oe():WeakMap,m=new f;function g(e,t,n,i){if(D(n)){if(!V(e))throw new TypeError;if(!K(t))throw new TypeError;return E(e,t)}if(!V(e))throw new TypeError;if(!j(t))throw new TypeError;if(!j(i)&&!D(i)&&!B(i))throw new TypeError;return B(i)&&(i=void 0),n=U(n),O(e,t,n,i)}function v(e,t){function n(n,i){if(!j(n))throw new TypeError;if(!D(i)&&!$(i))throw new TypeError;z(e,t,n,i)}return n}function b(e,t,n,i){if(!j(n))throw new TypeError;return D(i)||(i=U(i)),z(e,t,n,i)}function y(e,t,n){if(!j(t))throw new TypeError;return D(n)||(n=U(n)),T(e,t,n)}function _(e,t,n){if(!j(t))throw new TypeError;return D(n)||(n=U(n)),x(e,t,n)}function M(e,t,n){if(!j(t))throw new TypeError;return D(n)||(n=U(n)),R(e,t,n)}function w(e,t,n){if(!j(t))throw new TypeError;return D(n)||(n=U(n)),k(e,t,n)}function C(e,t){if(!j(e))throw new TypeError;return D(t)||(t=U(t)),P(e,t)}function S(e,t){if(!j(e))throw new TypeError;return D(t)||(t=U(t)),N(e,t)}function A(e,t,n){if(!j(t))throw new TypeError;D(n)||(n=U(n));var i=L(t,n,!1);if(D(i))return!1;if(!i.delete(e))return!1;if(i.size>0)return!0;var o=m.get(t);return o.delete(n),o.size>0||(m.delete(t),!0)}function E(e,t){for(var n=e.length-1;n>=0;--n){var i=e[n],o=i(t);if(!D(o)&&!B(o)){if(!K(o))throw new TypeError;t=o}}return t}function O(e,t,n,i){for(var o=e.length-1;o>=0;--o){var r=e[o],s=r(t,n,i);if(!D(s)&&!B(s)){if(!j(s))throw new TypeError;i=s}}return i}function L(e,t,n){var i=m.get(e);if(D(i)){if(!n)return;i=new h,m.set(e,i)}var o=i.get(t);if(D(o)){if(!n)return;o=new h,i.set(t,o)}return o}function T(e,t,n){var i=x(e,t,n);if(i)return!0;var o=te(t);return!B(o)&&T(e,o,n)}function x(e,t,n){var i=L(t,n,!1);return!D(i)&&H(i.has(e))}function R(e,t,n){var i=x(e,t,n);if(i)return k(e,t,n);var o=te(t);return B(o)?void 0:R(e,o,n)}function k(e,t,n){var i=L(t,n,!1);if(!D(i))return i.get(e)}function z(e,t,n,i){var o=L(n,i,!0);o.set(e,t)}function P(e,t){var n=N(e,t),i=te(e);if(null===i)return n;var o=P(i,t);if(o.length<=0)return n;if(n.length<=0)return o;for(var r=new p,s=[],a=0,c=n;a=0&&e=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var i=this._keys.length,o=n+1;o=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("dd02"),r=n("869e"),s=n("46cc"),a=n("e1c6"),c=function(){function e(){}var t;return t=e,Object.defineProperty(e.prototype,"kind",{get:function(){return t.KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,n){var i=e.bounds;if(i.width<=0||i.height<=0)return i;var r={x:i.x-n,y:i.y-n,width:i.width+2*n,height:i.height+2*n};return t.x>=r.x&&r.x+r.width>=t.x?t.y=r.y&&r.y+r.height>=t.y?t.x=r.x&&t.x<=r.x+r.width?r.x+.5*r.width>=t.x?(c=new o.PointToPointLine(t,{x:t.x,y:s.y}),a=t.y=r.y&&t.y<=r.y+r.height&&(r.y+.5*r.height>=t.y?(c=new o.PointToPointLine(t,{x:s.x,y:t.y}),a=t.x=r.x&&r.x+r.width>=t.x){c+=a.x;var u=.5*r.height*Math.sqrt(1-a.x*a.x/(.25*r.width*r.width));a.y<0?l-=u:l+=u}else if(t.y>=r.y&&r.y+r.height>=t.y){l+=a.y;var d=.5*r.width*Math.sqrt(1-a.y*a.y/(.25*r.height*r.height));a.x<0?c-=d:c+=d}return{x:c,y:l}},e.KIND=s.ManhattanEdgeRouter.KIND+":"+r.ELLIPTIC_ANCHOR_KIND,e=t=i([a.injectable()],e),e}();t.ManhattanEllipticAnchor=u},"9ad4":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("393a"),a=n("ee16"),c=n("e45b"),l=n("8e97"),u=n("87fa"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(e,t){if(!(e instanceof u.ShapedPreRenderedElement)||this.isVisible(e,t)){var n=a.default(e.code);return this.correctNamespace(n),n}},t.prototype.correctNamespace=function(e){"svg"!==e.sel&&"g"!==e.sel||c.setNamespace(e,"http://www.w3.org/2000/svg")},t=o([r.injectable()],t),t}(l.ShapeView);t.PreRenderedView=d;var h=function(){function e(){}return e.prototype.render=function(e,t){var n=a.default(e.code),i=s.svg("g",null,s.svg("foreignObject",{requiredFeatures:"http://www.w3.org/TR/SVG11/feature#Extensibility",height:e.bounds.height,width:e.bounds.width,x:0,y:0},n),t.renderChildren(e));return c.setAttr(i,"class",e.type),c.setNamespace(n,e.namespace),i},e=o([r.injectable()],e),e}();t.ForeignObjectView=h},"9bc6":function(e,t,n){"use strict";var i=n("232d"),o=n.n(i);o.a},"9d14":function(e,t,n){"use strict";var i=n("a5de"),o=n.n(i);o.a},"9d6c":function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("3a92"),c=n("e45b"),l=n("47b7"),u=n("dd02"),d=n("66f9"),h=n("779b"),p=n("168d"),f=function(){function e(){}return e.prototype.decorate=function(e,t){if(h.isEdgeLayoutable(t)&&t.parent instanceof l.SEdge&&t.bounds!==u.EMPTY_BOUNDS){var n=this.getEdgePlacement(t),i=t.parent,o=Math.min(1,Math.max(0,n.position)),r=this.edgeRouterRegistry.get(i.routerKind),s=r.pointAt(i,o),a=r.derivativeAt(i,o),d="";if(s&&a){d+="translate("+s.x+", "+s.y+")";var p=u.toDegrees(Math.atan2(a.y,a.x));if(n.rotate){var f=p;Math.abs(p)>90&&(p<0?f+=180:p>0&&(f-=180)),d+=" rotate("+f+")";var m=this.getRotatedAlignment(t,n,f!==p);d+=" translate("+m.x+", "+m.y+")"}else{m=this.getAlignment(t,n,p);d+=" translate("+m.x+", "+m.y+")"}c.setAttr(e,"transform",d)}}return e},e.prototype.getRotatedAlignment=function(e,t,n){var i=d.isAlignable(e)?e.alignment.x:0,o=d.isAlignable(e)?e.alignment.y:0,r=e.bounds;if("on"===t.side)return{x:i-.5*r.height,y:o-.5*r.height};if(n)switch(t.position<.3333333?i-=r.width+t.offset:t.position<.6666666?i-=.5*r.width:i+=t.offset,t.side){case"left":case"bottom":o-=t.offset+r.height;break;case"right":case"top":o+=t.offset}else switch(t.position<.3333333?i+=t.offset:t.position<.6666666?i-=.5*r.width:i-=r.width+t.offset,t.side){case"right":case"bottom":o+=-t.offset-r.height;break;case"left":case"top":o+=t.offset}return{x:i,y:o}},e.prototype.getEdgePlacement=function(e){var t=e,n=[];while(void 0!==t){var o=t.edgePlacement;if(void 0!==o&&n.push(o),!(t instanceof a.SChildElement))break;t=t.parent}return n.reverse().reduce(function(e,t){return i(i({},e),t)},h.DEFAULT_EDGE_PLACEMENT)},e.prototype.getAlignment=function(e,t,n){var i=e.bounds,o=d.isAlignable(e)?e.alignment.x-i.width:0,r=d.isAlignable(e)?e.alignment.y-i.height:0;if("on"===t.side)return{x:o+.5*i.height,y:r+.5*i.height};var s=this.getQuadrant(n),a={x:t.offset,y:r+.5*i.height},c={x:t.offset,y:r+i.height+t.offset},l={x:-i.width-t.offset,y:r+i.height+t.offset},h={x:-i.width-t.offset,y:r+.5*i.height},p={x:-i.width-t.offset,y:r-t.offset},f={x:t.offset,y:r-t.offset};switch(t.side){case"left":switch(s.orientation){case"west":return u.linear(c,l,s.position);case"north":return u.linear(l,p,s.position);case"east":return u.linear(p,f,s.position);case"south":return u.linear(f,c,s.position)}break;case"right":switch(s.orientation){case"west":return u.linear(p,f,s.position);case"north":return u.linear(f,c,s.position);case"east":return u.linear(c,l,s.position);case"south":return u.linear(l,p,s.position)}break;case"top":switch(s.orientation){case"west":return u.linear(p,f,s.position);case"north":return this.linearFlip(f,a,h,p,s.position);case"east":return u.linear(p,f,s.position);case"south":return this.linearFlip(f,a,h,p,s.position)}break;case"bottom":switch(s.orientation){case"west":return u.linear(c,l,s.position);case"north":return this.linearFlip(l,h,a,c,s.position);case"east":return u.linear(c,l,s.position);case"south":return this.linearFlip(l,h,a,c,s.position)}break}return{x:0,y:0}},e.prototype.getQuadrant=function(e){return Math.abs(e)>135?{orientation:"west",position:(e>0?e-135:e+225)/90}:e<-45?{orientation:"north",position:(e+135)/90}:e<45?{orientation:"east",position:(e+45)/90}:{orientation:"south",position:(e-45)/90}},e.prototype.linearFlip=function(e,t,n,i,o){return o<.5?u.linear(e,t,2*o):u.linear(n,i,2*o-1)},e.prototype.postUpdate=function(){},o([s.inject(p.EdgeRouterRegistry),r("design:type",p.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),e=o([s.injectable()],e),e}();t.EdgeLayoutPostprocessor=f},"9e2e":function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=s.error)try{console.error.apply(e,this.consoleArguments(e,t,n))}catch(e){}},e.prototype.warn=function(e,t){for(var n=[],i=2;i=s.warn)try{console.warn.apply(e,this.consoleArguments(e,t,n))}catch(e){}},e.prototype.info=function(e,t){for(var n=[],i=2;i=s.info)try{console.info.apply(e,this.consoleArguments(e,t,n))}catch(e){}},e.prototype.log=function(e,t){for(var n=[],i=2;i=s.log)try{console.log.apply(e,this.consoleArguments(e,t,n))}catch(e){}},e.prototype.consoleArguments=function(e,t,n){var i;i="object"===typeof e?e.constructor.name:e;var o=new Date;return r([o.toLocaleTimeString()+" "+this.viewOptions.baseDiv+" "+i+": "+t],n)},i([a.inject(c.TYPES.LogLevel),o("design:type",Number)],e.prototype,"logLevel",void 0),i([a.inject(c.TYPES.ViewerOptions),o("design:type",Object)],e.prototype,"viewOptions",void 0),e=i([a.injectable()],e),e}();t.ConsoleLogger=u},"9f62":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c5f4"),o=n("1979"),r=n("66d7");function s(){return function(e,t,n){var s=new o.Metadata(i.UNMANAGED_TAG,!0);r.tagParameter(e,t,n,s)}}t.unmanaged=s},"9f8d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("1cd9"),s=n("5d19"),a=n("842c"),c=new i.ContainerModule(function(e,t,n){e(o.TYPES.KeyListener).to(r.ExportSvgKeyListener).inSingletonScope(),e(o.TYPES.HiddenVNodePostprocessor).to(r.ExportSvgPostprocessor).inSingletonScope(),a.configureCommand({bind:e,isBound:n},r.ExportSvgCommand),e(o.TYPES.SvgExporter).to(s.SvgExporter).inSingletonScope()});t.default=c},a0af:function(e,t,n){"use strict";function i(e){return void 0!==e["position"]}function o(e){return e.hasFeature(t.moveFeature)&&i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.moveFeature=Symbol("moveFeature"),t.isLocateable=i,t.isMoveable=o},a16f:function(e,t,n){},a190:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("e45b"),s=function(){function e(){}return e.prototype.decorate=function(e,t){return e.sel&&e.sel.startsWith("svg")&&r.setAttr(e,"tabindex",0),e},e.prototype.postUpdate=function(){},e=i([o.injectable()],e),e}();t.FocusFixPostprocessor=s},a1a5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c5f4"),o=n("1979"),r=n("66d7");function s(e){return function(t,n,s){var a=new o.Metadata(i.NAME_TAG,e);r.tagParameter(t,n,s,a)}}t.targetName=s},a27f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("bcc9");t.Draggable=i.Draggable},a2e1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("dd02"),o=n("3a92"),r=n("66f9"),s=function(){function e(){}return e.prototype.layout=function(e,t){var n=t.getBoundsData(e),i=this.getLayoutOptions(e),o=this.getChildrenSize(e,i,t),r=i.paddingFactor*(i.resizeContainer?o.width:Math.max(0,this.getFixedContainerBounds(e,i,t).width)-i.paddingLeft-i.paddingRight),s=i.paddingFactor*(i.resizeContainer?o.height:Math.max(0,this.getFixedContainerBounds(e,i,t).height)-i.paddingTop-i.paddingBottom);if(r>0&&s>0){var a=this.layoutChildren(e,t,i,r,s);n.bounds=this.getFinalContainerBounds(e,a,i,r,s),n.boundsChanged=!0}},e.prototype.getFinalContainerBounds=function(e,t,n,i,o){return{x:e.bounds.x,y:e.bounds.y,width:Math.max(n.minWidth,i+n.paddingLeft+n.paddingRight),height:Math.max(n.minHeight,o+n.paddingTop+n.paddingBottom)}},e.prototype.getFixedContainerBounds=function(e,t,n){var s=e;while(1){if(r.isBoundsAware(s)){var a=s.bounds;if(r.isLayoutContainer(s)&&t.resizeContainer&&n.log.error(s,"Resizable container found while detecting fixed bounds"),i.isValidDimension(a))return a}if(!(s instanceof o.SChildElement))return n.log.error(s,"Cannot detect fixed bounds"),i.EMPTY_BOUNDS;s=s.parent}},e.prototype.layoutChildren=function(e,t,n,o,s){var a=this,c={x:n.paddingLeft+.5*(o-o/n.paddingFactor),y:n.paddingTop+.5*(s-s/n.paddingFactor)};return e.children.forEach(function(e){if(r.isLayoutableChild(e)){var l=t.getBoundsData(e),u=l.bounds,d=a.getChildLayoutOptions(e,n);void 0!==u&&i.isValidDimension(u)&&(c=a.layoutChild(e,l,u,d,n,c,o,s))}}),c},e.prototype.getDx=function(e,t,n){switch(e){case"left":return 0;case"center":return.5*(n-t.width);case"right":return n-t.width}},e.prototype.getDy=function(e,t,n){switch(e){case"top":return 0;case"center":return.5*(n-t.height);case"bottom":return n-t.height}},e.prototype.getChildLayoutOptions=function(e,t){var n=e.layoutOptions;return void 0===n?t:this.spread(t,n)},e.prototype.getLayoutOptions=function(e){var t=this,n=e,i=[];while(void 0!==n){var r=n.layoutOptions;if(void 0!==r&&i.push(r),!(n instanceof o.SChildElement))break;n=n.parent}return i.reverse().reduce(function(e,n){return t.spread(e,n)},this.getDefaultLayoutOptions())},e}();t.AbstractLayout=s},a32f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("77d3"),o=function(){function e(e){this.id=i.id(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=o},a406:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("510b"),c=n("6923"),l=n("e629"),u=n("e1cb"),d=n("bcbd"),h=n("ed4f"),p=function(){function e(e){void 0===e&&(e=[]),this.actionProviders=e}return e.prototype.getActions=function(e,t,n,i){var o=this.actionProviders.map(function(o){return o.getActions(e,t,n,i)});return Promise.all(o).then(function(e){return e.reduce(function(e,t){return void 0!==t?e.concat(t):e})})},e=i([s.injectable(),r(0,s.multiInject(c.TYPES.ICommandPaletteActionProvider)),r(0,s.optional()),o("design:paramtypes",[Array])],e),e}();t.CommandPaletteActionProviderRegistry=p;var f=function(){function e(e){this.logger=e}return e.prototype.getActions=function(e,t,n,i){return void 0!==i&&i%2===0?Promise.resolve(this.createSelectActions(e)):Promise.resolve([new a.LabeledAction("Select all",[new d.SelectAllAction])])},e.prototype.createSelectActions=function(e){var t=l.toArray(e.index.all().filter(function(e){return u.isNameable(e)}));return t.map(function(e){return new a.LabeledAction("Reveal "+u.name(e),[new d.SelectAction([e.id]),new h.CenterAction([e.id])],"fa-eye")})},e=i([s.injectable(),r(0,s.inject(c.TYPES.ILogger)),o("design:paramtypes",[Object])],e),e}();t.RevealNamedElementActionProvider=f},a4c5:function(e,t,n){"use strict";var i=n("7364"),o=n.n(i);o.a},a5b7:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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="fb15")}({"014b":function(e,t,n){"use strict";var i=n("e53d"),o=n("07e3"),r=n("8e60"),s=n("63b6"),a=n("9138"),c=n("ebfd").KEY,l=n("294c"),u=n("dbdb"),d=n("45f2"),h=n("62a0"),p=n("5168"),f=n("ccb9"),m=n("6718"),g=n("47ee"),v=n("9003"),b=n("e4ae"),y=n("f772"),_=n("36c3"),M=n("1bc3"),w=n("aebd"),C=n("a159"),S=n("0395"),A=n("bf0b"),E=n("d9f6"),O=n("c3a1"),L=A.f,T=E.f,x=S.f,R=i.Symbol,k=i.JSON,z=k&&k.stringify,P="prototype",N=p("_hidden"),I=p("toPrimitive"),D={}.propertyIsEnumerable,B=u("symbol-registry"),q=u("symbols"),j=u("op-symbols"),W=Object[P],F="function"==typeof R,H=i.QObject,X=!H||!H[P]||!H[P].findChild,U=r&&l(function(){return 7!=C(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=L(W,t);i&&delete W[t],T(e,t,n),i&&e!==W&&T(W,t,i)}:T,V=function(e){var t=q[e]=C(R[P]);return t._k=e,t},G=F&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},K=function(e,t,n){return e===W&&K(j,t,n),b(e),t=M(t,!0),b(n),o(q,t)?(n.enumerable?(o(e,N)&&e[N][t]&&(e[N][t]=!1),n=C(n,{enumerable:w(0,!1)})):(o(e,N)||T(e,N,w(1,{})),e[N][t]=!0),U(e,t,n)):T(e,t,n)},$=function(e,t){b(e);var n,i=g(t=_(t)),o=0,r=i.length;while(r>o)K(e,n=i[o++],t[n]);return e},Y=function(e,t){return void 0===t?C(e):$(C(e),t)},J=function(e){var t=D.call(this,e=M(e,!0));return!(this===W&&o(q,e)&&!o(j,e))&&(!(t||!o(this,e)||!o(q,e)||o(this,N)&&this[N][e])||t)},Q=function(e,t){if(e=_(e),t=M(t,!0),e!==W||!o(q,t)||o(j,t)){var n=L(e,t);return!n||!o(q,t)||o(e,N)&&e[N][t]||(n.enumerable=!0),n}},Z=function(e){var t,n=x(_(e)),i=[],r=0;while(n.length>r)o(q,t=n[r++])||t==N||t==c||i.push(t);return i},ee=function(e){var t,n=e===W,i=x(n?j:_(e)),r=[],s=0;while(i.length>s)!o(q,t=i[s++])||n&&!o(W,t)||r.push(q[t]);return r};F||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(j,n),o(this,N)&&o(this[N],e)&&(this[N][e]=!1),U(this,e,w(1,n))};return r&&X&&U(W,e,{configurable:!0,set:t}),V(e)},a(R[P],"toString",function(){return this._k}),A.f=Q,E.f=K,n("6abf").f=S.f=Z,n("355d").f=J,n("9aa9").f=ee,r&&!n("b8e3")&&a(W,"propertyIsEnumerable",J,!0),f.f=function(e){return V(p(e))}),s(s.G+s.W+s.F*!F,{Symbol:R});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var ie=O(p.store),oe=0;ie.length>oe;)m(ie[oe++]);s(s.S+s.F*!F,"Symbol",{for:function(e){return o(B,e+="")?B[e]:B[e]=R(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),s(s.S+s.F*!F,"Object",{create:Y,defineProperty:K,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),k&&s(s.S+s.F*(!F||l(function(){var e=R();return"[null]"!=z([e])||"{}"!=z({a:e})||"{}"!=z(Object(e))})),"JSON",{stringify:function(e){var t,n,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(n=t=i[1],(y(t)||void 0!==e)&&!G(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),i[1]=t,z.apply(k,i)}}),R[P][I]||n("35e8")(R[P],I,R[P].valueOf),d(R,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"01f9":function(e,t,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,b,y,_){c(n,t,v);var M,w,C,S=function(e){if(!h&&e in L)return L[e];switch(e){case f:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",E=b==m,O=!1,L=e.prototype,T=L[d]||L[p]||b&&L[b],x=T||S(b),R=b?E?S("entries"):x:void 0,k="Array"==t&&L.entries||T;if(k&&(C=u(k.call(new e)),C!==Object.prototype&&C.next&&(l(C,A,!0),i||"function"==typeof C[d]||s(C,d,g))),E&&T&&T.name!==m&&(O=!0,x=function(){return T.call(this)}),i&&!_||!h&&!O&&L[d]||s(L,d,x),a[t]=x,a[A]=g,b)if(M={values:E?x:S(m),keys:y?x:S(f),entries:R},_)for(w in M)w in L||r(L,w,M[w]);else o(o.P+o.F*(h||O),t,M);return M}},"0395":function(e,t,n){var i=n("36c3"),o=n("6abf").f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return o(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?a(e):o(i(e))}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"09fa":function(e,t,n){var i=n("4588"),o=n("9def");e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},"0a49":function(e,t,n){var i=n("9b43"),o=n("626a"),r=n("4bf8"),s=n("9def"),a=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,d=6==e,h=5==e||d,p=t||a;return function(t,a,f){for(var m,g,v=r(t),b=o(v),y=i(a,f,3),_=s(b.length),M=0,w=n?p(t,_):c?p(t,0):void 0;_>M;M++)if((h||M in b)&&(m=b[M],g=y(m,M,v),e))if(n)w[M]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return M;case 2:w.push(m)}else if(u)return!1;return d?-1:l||u?u:w}}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},"0f88":function(e,t,n){var i,o=n("7726"),r=n("32e9"),s=n("ca5a"),a=s("typed_array"),c=s("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,d=0,h=9,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(dl)r.call(s,n=a[l++])&&u.push(e?[n,s[n]]:s[n]);return u}}},1495:function(e,t,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);var n,s=r(t),a=s.length,c=0;while(a>c)i.f(e,n=s[c++],t[n]);return e}},1654:function(e,t,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var i=n("63b6");i(i.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var i=n("f772");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var i=n("f772"),o=n("e53d").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"20fd":function(e,t,n){"use strict";var i=n("d9f6"),o=n("aebd");e.exports=function(e,t,n){t in e?i.f(e,t,o(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";var i=n("32e9"),o=n("2aba"),r=n("79e5"),s=n("be13"),a=n("2b4c");e.exports=function(e,t,n){var c=a(e),l=n(s,c,""[e]),u=l[0],d=l[1];r(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,u),i(RegExp.prototype,c,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},"230e":function(e,t,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},"241e":function(e,t,n){var i=n("25eb");e.exports=function(e){return Object(i(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"27ee":function(e,t,n){var i=n("23c6"),o=n("2b4c")("iterator"),r=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},"28a5":function(e,t,n){n("214f")("split",2,function(e,t,i){"use strict";var o=n("aae3"),r=i,s=[].push,a="split",c="length",l="lastIndex";if("c"=="abbc"[a](/(b)*/)[1]||4!="test"[a](/(?:)/,-1)[c]||2!="ab"[a](/(?:ab)*/)[c]||4!="."[a](/(.?)(.?)/)[c]||"."[a](/()()/)[c]>1||""[a](/.?/)[c]){var u=void 0===/()??/.exec("")[1];i=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!o(e))return r.call(n,e,t);var i,a,d,h,p,f=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=void 0===t?4294967295:t>>>0,b=new RegExp(e.source,m+"g");u||(i=new RegExp("^"+b.source+"$(?!\\s)",m));while(a=b.exec(n)){if(d=a.index+a[0][c],d>g&&(f.push(n.slice(g,a.index)),!u&&a[c]>1&&a[0].replace(i,function(){for(p=1;p1&&a.index=v))break;b[l]===a.index&&b[l]++}return g===n[c]?!h&&b.test("")||f.push(""):f.push(n.slice(g)),f[c]>v?f.slice(0,v):f}}else"0"[a](void 0,0)[c]&&(i=function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)});return[function(n,o){var r=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,r,o):i.call(String(r),n,o)},i]})},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a="toString",c=Function[a],l=(""+c).split(a);n("8378").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(r(n,s)||o(n,s,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[s]||c.call(this)})},"2aeb":function(e,t,n){var i=n("cb7c"),o=n("1495"),r=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},c="prototype",l=function(){var e,t=n("230e")("iframe"),i=r.length,o="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),l=e.F;while(i--)delete l[c][r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=i(e),n=new a,a[c]=null,n[s]=e):n=l(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r,a=e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))};a.store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"30f1":function(e,t,n){"use strict";var i=n("b8e3"),o=n("63b6"),r=n("9138"),s=n("35e8"),a=n("481b"),c=n("8f60"),l=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,b,y,_){c(n,t,v);var M,w,C,S=function(e){if(!h&&e in L)return L[e];switch(e){case f:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",E=b==m,O=!1,L=e.prototype,T=L[d]||L[p]||b&&L[b],x=T||S(b),R=b?E?S("entries"):x:void 0,k="Array"==t&&L.entries||T;if(k&&(C=u(k.call(new e)),C!==Object.prototype&&C.next&&(l(C,A,!0),i||"function"==typeof C[d]||s(C,d,g))),E&&T&&T.name!==m&&(O=!0,x=function(){return T.call(this)}),i&&!_||!h&&!O&&L[d]||s(L,d,x),a[t]=x,a[A]=g,b)if(M={values:E?x:S(m),keys:y?x:S(f),entries:R},_)for(w in M)w in L||r(L,w,M[w]);else o(o.P+o.F*(h||O),t,M);return M}},"32e9":function(e,t,n){var i=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var i=n("e53d").document;e.exports=i&&i.documentElement},"335c":function(e,t,n){var i=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},"33a4":function(e,t,n){var i=n("84f2"),o=n("2b4c")("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[o]===e)}},"33cb":function(e,t,n){},"34ef":function(e,t,n){n("ec30")("Uint8",1,function(e){return function(t,n,i){return e(this,t,n,i)}})},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var i=n("d9f6"),o=n("aebd");e.exports=n("8e60")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"36bd":function(e,t,n){"use strict";var i=n("4bf8"),o=n("77f1"),r=n("9def");e.exports=function(e){var t=i(this),n=r(t.length),s=arguments.length,a=o(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);while(l>a)t[a++]=e;return t}},"36c3":function(e,t,n){var i=n("335c"),o=n("25eb");e.exports=function(e){return i(o(e))}},3702:function(e,t,n){var i=n("481b"),o=n("5168")("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[o]===e)}},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"386b":function(e,t,n){var i=n("5ca1"),o=n("79e5"),r=n("be13"),s=/"/g,a=function(e,t,n,i){var o=String(r(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(i).replace(s,""")+'"'),a+">"+o+""};e.exports=function(e,t){var n={};n[e]=t(a),i(i.P+i.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},"38fd":function(e,t,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"3a38":function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},"3d11":function(e,t,n){"use strict";var i=n("33cb"),o=n.n(i);o.a},"40c3":function(e,t,n){var i=n("6b4c"),o=n("5168")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},"45f2":function(e,t,n){var i=n("d9f6").f,o=n("07e3"),r=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"47ee":function(e,t,n){var i=n("c3a1"),o=n("9aa9"),r=n("355d");e.exports=function(e){var t=i(e),n=o.f;if(n){var s,a=n(e),c=r.f,l=0;while(a.length>l)c.call(e,s=a[l++])&&t.push(s)}return t}},"481b":function(e,t){e.exports={}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},"4ee1":function(e,t,n){var i=n("5168")("iterator"),o=!1;try{var r=[7][i]();r["return"]=function(){o=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:n=!0}},r[i]=function(){return s},e(r)}catch(e){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5168:function(e,t,n){var i=n("dbdb")("wks"),o=n("62a0"),r=n("e53d").Symbol,s="function"==typeof r,a=e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))};a.store=i},5176:function(e,t,n){e.exports=n("51b6")},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53e2":function(e,t,n){var i=n("07e3"),o=n("241e"),r=n("5559")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"549b":function(e,t,n){"use strict";var i=n("d864"),o=n("63b6"),r=n("241e"),s=n("b0dc"),a=n("3702"),c=n("b447"),l=n("20fd"),u=n("7cd6");o(o.S+o.F*!n("4ee1")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,d,h=r(e),p="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m,v=0,b=u(h);if(g&&(m=i(m,f>2?arguments[2]:void 0,2)),void 0==b||p==Array&&a(b))for(t=c(h.length),n=new p(t);t>v;v++)l(n,v,g?m(h[v],v):h[v]);else for(d=b.call(h),n=new p;!(o=d.next()).done;v++)l(n,v,g?s(d,m,[o.value,v],!0):o.value);return n.length=v,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var i=n("dbdb")("keys"),o=n("62a0");e.exports=function(e){return i[e]||(i[e]=o(e))}},"584a":function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"59a0":function(e,t,n){"use strict";var i=n("9257"),o=n.n(i);o.a},"5b4e":function(e,t,n){var i=n("36c3"),o=n("b447"),r=n("0fc9");e.exports=function(e){return function(t,n,s){var a,c=i(t),l=o(c.length),u=r(s,l);if(e&&n!=n){while(l>u)if(a=c[u++],a!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},"5ca1":function(e,t,n){var i=n("7726"),o=n("8378"),r=n("32e9"),s=n("2aba"),a=n("9b43"),c="prototype",l=function(e,t,n){var u,d,h,p,f=e&l.F,m=e&l.G,g=e&l.S,v=e&l.P,b=e&l.B,y=m?i:g?i[t]||(i[t]={}):(i[t]||{})[c],_=m?o:o[t]||(o[t]={}),M=_[c]||(_[c]={});for(u in m&&(n=t),n)d=!f&&y&&void 0!==y[u],h=(d?y:n)[u],p=b&&d?a(h,i):v&&"function"==typeof h?a(Function.call,h):h,y&&s(y,u,h,e&l.U),_[u]!=h&&r(_,u,p),v&&M[u]!=h&&(M[u]=h)};i.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5cc5":function(e,t,n){var i=n("2b4c")("iterator"),o=!1;try{var r=[7][i]();r["return"]=function(){o=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:n=!0}},r[i]=function(){return s},e(r)}catch(e){}return n}},"5d58":function(e,t,n){e.exports=n("d8d6")},"5d6b":function(e,t,n){var i=n("e53d").parseInt,o=n("a1ce").trim,r=n("e692"),s=/^[-+]?0[xX]/;e.exports=8!==i(r+"08")||22!==i(r+"0x16")?function(e,t){var n=o(String(e),3);return i(n,t>>>0||(s.test(n)?16:10))}:i},"5d73":function(e,t,n){e.exports=n("469f")},"613b":function(e,t,n){var i=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return i[e]||(i[e]=o(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},"63b6":function(e,t,n){var i=n("e53d"),o=n("584a"),r=n("d864"),s=n("35e8"),a=n("07e3"),c="prototype",l=function(e,t,n){var u,d,h,p=e&l.F,f=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,b=e&l.W,y=f?o:o[t]||(o[t]={}),_=y[c],M=f?i:m?i[t]:(i[t]||{})[c];for(u in f&&(n=t),n)d=!p&&M&&void 0!==M[u],d&&a(y,u)||(h=d?M[u]:n[u],y[u]=f&&"function"!=typeof M[u]?n[u]:v&&d?r(h,i):b&&M[u]==h?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[c]=e[c],t}(h):g&&"function"==typeof h?r(Function.call,h):h,g&&((y.virtual||(y.virtual={}))[u]=h,e&l.R&&_&&!_[u]&&s(_,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},6718:function(e,t,n){var i=n("e53d"),o=n("584a"),r=n("b8e3"),s=n("ccb9"),a=n("d9f6").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=r?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},"67bb":function(e,t,n){e.exports=n("f921")},6821:function(e,t,n){var i=n("626a"),o=n("be13");e.exports=function(e){return i(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,n){var i=n("e6f3"),o=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6b54":function(e,t,n){"use strict";n("3846");var i=n("cb7c"),o=n("0bfb"),r=n("9e1e"),s="toString",a=/./[s],c=function(e){n("2aba")(RegExp.prototype,s,e,!0)};n("79e5")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?o.call(e):void 0)}):a.name!=s&&c(function(){return a.call(this)})},"6c1c":function(e,t,n){n("c367");for(var i=n("e53d"),o=n("35e8"),r=n("481b"),s=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c=l?e?"":void 0:(r=a.charCodeAt(c),r<55296||r>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):r:e?a.slice(c,c+2):s-56320+(r-55296<<10)+65536)}}},7445:function(e,t,n){var i=n("63b6"),o=n("5d6b");i(i.G+i.F*(parseInt!=o),{parseInt:o})},"765d":function(e,t,n){n("6718")("observable")},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var i=n("4588"),o=Math.max,r=Math.min;e.exports=function(e,t){return e=i(e),e<0?o(e+t,0):r(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7a56":function(e,t,n){"use strict";var i=n("7726"),o=n("86cc"),r=n("9e1e"),s=n("2b4c")("species");e.exports=function(e){var t=i[e];r&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},"7cd6":function(e,t,n){var i=n("40c3"),o=n("5168")("iterator"),r=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},"7d6d":function(e,t,n){var i=n("63b6"),o=n("13c8")(!1);i(i.S,"Object",{values:function(e){return o(e)}})},"7d7b":function(e,t,n){var i=n("e4ae"),o=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},"7e90":function(e,t,n){var i=n("d9f6"),o=n("e4ae"),r=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){o(e);var n,s=r(t),a=s.length,c=0;while(a>c)i.f(e,n=s[c++],t[n]);return e}},"7f20":function(e,t,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var i=n("86cc").f,o=Function.prototype,r=/^\s*function ([^ (]*)/,s="name";s in o||n("9e1e")&&i(o,s,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},8378:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8e60":function(e,t,n){e.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(e,t,n){"use strict";var i=n("a159"),o=n("aebd"),r=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},9003:function(e,t,n){var i=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==i(e)}},9093:function(e,t,n){var i=n("ce10"),o=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},9138:function(e,t,n){e.exports=n("35e8")},9257:function(e,t,n){},9306:function(e,t,n){"use strict";var i=n("c3a1"),o=n("9aa9"),r=n("355d"),s=n("241e"),a=n("335c"),c=Object.assign;e.exports=!c||n("294c")(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i})?function(e,t){var n=s(e),c=arguments.length,l=1,u=o.f,d=r.f;while(c>l){var h,p=a(arguments[l++]),f=u?i(p).concat(u(p)):i(p),m=f.length,g=0;while(m>g)d.call(p,h=f[g++])&&(n[h]=p[h])}return n}:c},"95d5":function(e,t,n){var i=n("40c3"),o=n("5168")("iterator"),r=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||r.hasOwnProperty(i(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[i]&&n("32e9")(o,i,{}),e.exports=function(e){o[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},"9e1c":function(e,t,n){n("7d6d"),e.exports=n("584a").Object.values},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(e,t,n){var i=n("e4ae"),o=n("7e90"),r=n("1691"),s=n("5559")("IE_PROTO"),a=function(){},c="prototype",l=function(){var e,t=n("1ec9")("iframe"),i=r.length,o="<",s=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),l=e.F;while(i--)delete l[c][r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=i(e),n=new a,a[c]=null,n[s]=e):n=l(),void 0===t?n:o(n,t)}},a1ce:function(e,t,n){var i=n("63b6"),o=n("25eb"),r=n("294c"),s=n("e692"),a="["+s+"]",c="​…",l=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),d=function(e,t,n){var o={},a=r(function(){return!!s[e]()||c[e]()!=c}),l=o[e]=a?t(h):s[e];n&&(o[n]=l),i(i.P+i.F*a,"String",o)},h=d.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=d},a3c3:function(e,t,n){var i=n("63b6");i(i.S+i.F,"Object",{assign:n("9306")})},a481:function(e,t,n){n("214f")("replace",2,function(e,t,n){return[function(i,o){"use strict";var r=e(this),s=void 0==i?void 0:i[t];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},n]})},a745:function(e,t,n){e.exports=n("f410")},aae3:function(e,t,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),s=n("7726"),a=n("32e9"),c=n("84f2"),l=n("2b4c"),u=l("iterator"),d=l("toStringTag"),h=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=o(p),m=0;m0?o(i(e),9007199254740991):0}},b54a:function(e,t,n){"use strict";n("386b")("link",function(e){return function(t){return e(this,"a","href",t)}})},b8e3:function(e,t){e.exports=!0},b9e9:function(e,t,n){n("7445"),e.exports=n("584a").parseInt},ba92:function(e,t,n){"use strict";var i=n("4bf8"),o=n("77f1"),r=n("9def");e.exports=[].copyWithin||function(e,t){var n=i(this),s=r(n.length),a=o(e,s),c=o(t,s),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?s:o(l,s))-c,s-a),d=1;c0)c in n?n[a]=n[c]:delete n[a],a+=d,c+=d;return n}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},bf0b:function(e,t,n){var i=n("355d"),o=n("aebd"),r=n("36c3"),s=n("1bc3"),a=n("07e3"),c=n("794b"),l=Object.getOwnPropertyDescriptor;t.f=n("8e60")?l:function(e,t){if(e=r(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(a(e,t))return o(!i.f.call(e,t),e[t])}},c207:function(e,t){},c366:function(e,t,n){var i=n("6821"),o=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,s){var a,c=i(t),l=o(c.length),u=r(s,l);if(e&&n!=n){while(l>u)if(a=c[u++],a!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var i=n("8436"),o=n("50ed"),r=n("481b"),s=n("36c3");e.exports=n("30f1")(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},c3a1:function(e,t,n){var i=n("e6f3"),o=n("1691");e.exports=Object.keys||function(e){return i(e,o)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},cd1c:function(e,t,n){var i=n("e853");e.exports=function(e,t){return new(i(e))(t)}},ce10:function(e,t,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)n!=s&&i(a,n)&&l.push(n);while(t.length>c)i(a,n=t[c++])&&(~r(l,n)||l.push(n));return l}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d864:function(e,t,n){var i=n("79aa");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,n){n("1654"),n("6c1c"),e.exports=n("ccb9").f("iterator")},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var i=n("e4ae"),o=n("794b"),r=n("1bc3"),s=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},db0c:function(e,t,n){e.exports=n("9e1c")},dbdb:function(e,t,n){var i=n("584a"),o=n("e53d"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("b8e3")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},dcbc:function(e,t,n){var i=n("2aba");e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(e,t,n){var i=n("f772");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e692:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},e6f3:function(e,t,n){var i=n("07e3"),o=n("36c3"),r=n("5b4e")(!1),s=n("5559")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)n!=s&&i(a,n)&&l.push(n);while(t.length>c)i(a,n=t[c++])&&(~r(l,n)||l.push(n));return l}},e814:function(e,t,n){e.exports=n("b9e9")},e853:function(e,t,n){var i=n("d3f4"),o=n("1169"),r=n("2b4c")("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&(t=t[r],null===t&&(t=void 0))),void 0===t?Array:t}},ebd6:function(e,t,n){var i=n("cb7c"),o=n("d8e8"),r=n("2b4c")("species");e.exports=function(e,t){var n,s=i(e).constructor;return void 0===s||void 0==(n=i(s)[r])?t:o(n)}},ebfd:function(e,t,n){var i=n("62a0")("meta"),o=n("f772"),r=n("07e3"),s=n("d9f6").f,a=0,c=Object.isExtensible||function(){return!0},l=!n("294c")(function(){return c(Object.preventExtensions({}))}),u=function(e){s(e,i,{value:{i:"O"+ ++a,w:{}}})},d=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,i)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[i].i},h=function(e,t){if(!r(e,i)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[i].w},p=function(e){return l&&f.NEED&&c(e)&&!r(e,i)&&u(e),e},f=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:p}},ec30:function(e,t,n){"use strict";if(n("9e1e")){var i=n("2d00"),o=n("7726"),r=n("79e5"),s=n("5ca1"),a=n("0f88"),c=n("ed0b"),l=n("9b43"),u=n("f605"),d=n("4630"),h=n("32e9"),p=n("dcbc"),f=n("4588"),m=n("9def"),g=n("09fa"),v=n("77f1"),b=n("6a99"),y=n("69a8"),_=n("23c6"),M=n("d3f4"),w=n("4bf8"),C=n("33a4"),S=n("2aeb"),A=n("38fd"),E=n("9093").f,O=n("27ee"),L=n("ca5a"),T=n("2b4c"),x=n("0a49"),R=n("c366"),k=n("ebd6"),z=n("cadf"),P=n("84f2"),N=n("5cc5"),I=n("7a56"),D=n("36bd"),B=n("ba92"),q=n("86cc"),j=n("11e9"),W=q.f,F=j.f,H=o.RangeError,X=o.TypeError,U=o.Uint8Array,V="ArrayBuffer",G="Shared"+V,K="BYTES_PER_ELEMENT",$="prototype",Y=Array[$],J=c.ArrayBuffer,Q=c.DataView,Z=x(0),ee=x(2),te=x(3),ne=x(4),ie=x(5),oe=x(6),re=R(!0),se=R(!1),ae=z.values,ce=z.keys,le=z.entries,ue=Y.lastIndexOf,de=Y.reduce,he=Y.reduceRight,pe=Y.join,fe=Y.sort,me=Y.slice,ge=Y.toString,ve=Y.toLocaleString,be=T("iterator"),ye=T("toStringTag"),_e=L("typed_constructor"),Me=L("def_constructor"),we=a.CONSTR,Ce=a.TYPED,Se=a.VIEW,Ae="Wrong length!",Ee=x(1,function(e,t){return Re(k(e,e[Me]),t)}),Oe=r(function(){return 1===new U(new Uint16Array([1]).buffer)[0]}),Le=!!U&&!!U[$].set&&r(function(){new U(1).set({})}),Te=function(e,t){var n=f(e);if(n<0||n%t)throw H("Wrong offset!");return n},xe=function(e){if(M(e)&&Ce in e)return e;throw X(e+" is not a typed array!")},Re=function(e,t){if(!(M(e)&&_e in e))throw X("It is not a typed array constructor!");return new e(t)},ke=function(e,t){return ze(k(e,e[Me]),t)},ze=function(e,t){var n=0,i=t.length,o=Re(e,i);while(i>n)o[n]=t[n++];return o},Pe=function(e,t,n){W(e,t,{get:function(){return this._d[n]}})},Ne=function(e){var t,n,i,o,r,s,a=w(e),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,h=O(a);if(void 0!=h&&!C(h)){for(s=h.call(a),i=[],t=0;!(r=s.next()).done;t++)i.push(r.value);a=i}for(d&&c>2&&(u=l(u,arguments[2],2)),t=0,n=m(a.length),o=Re(this,n);n>t;t++)o[t]=d?u(a[t],t):a[t];return o},Ie=function(){var e=0,t=arguments.length,n=Re(this,t);while(t>e)n[e]=arguments[e++];return n},De=!!U&&r(function(){ve.call(new U(1))}),Be=function(){return ve.apply(De?me.call(xe(this)):xe(this),arguments)},qe={copyWithin:function(e,t){return B.call(xe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(xe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return D.apply(xe(this),arguments)},filter:function(e){return ke(this,ee(xe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ie(xe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return oe(xe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Z(xe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return se(xe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return re(xe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return pe.apply(xe(this),arguments)},lastIndexOf:function(e){return ue.apply(xe(this),arguments)},map:function(e){return Ee(xe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return de.apply(xe(this),arguments)},reduceRight:function(e){return he.apply(xe(this),arguments)},reverse:function(){var e,t=this,n=xe(t).length,i=Math.floor(n/2),o=0;while(o1?arguments[1]:void 0)},sort:function(e){return fe.call(xe(this),e)},subarray:function(e,t){var n=xe(this),i=n.length,o=v(e,i);return new(k(n,n[Me]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===t?i:v(t,i))-o))}},je=function(e,t){return ke(this,me.call(xe(this),e,t))},We=function(e){xe(this);var t=Te(arguments[1],1),n=this.length,i=w(e),o=m(i.length),r=0;if(o+t>n)throw H(Ae);while(r255?255:255&i),o.v[p](n*t+o.o,i,Oe)},T=function(e,t){W(e,t,{get:function(){return O(this,t)},set:function(e){return L(this,t,e)},enumerable:!0})};y?(f=n(function(e,n,i,o){u(e,f,l,"_d");var r,s,a,c,d=0,p=0;if(M(n)){if(!(n instanceof J||(c=_(n))==V||c==G))return Ce in n?ze(f,n):Ne.call(f,n);r=n,p=Te(i,t);var v=n.byteLength;if(void 0===o){if(v%t)throw H(Ae);if(s=v-p,s<0)throw H(Ae)}else if(s=m(o)*t,s+p>v)throw H(Ae);a=s/t}else a=g(n),s=a*t,r=new J(s);h(e,"_d",{b:r,o:p,l:s,e:a,v:new Q(r)});while(d>1,u=23===t?x(2,-24)-x(2,-77):0,d=0,h=e<0||0===e&&1/e<0?1:0;for(e=T(e),e!=e||e===O?(o=e!=e?1:0,i=c):(i=R(k(e)/z),e*(r=x(2,-i))<1&&(i--,r*=2),e+=i+l>=1?u/r:u*x(2,1-l),e*r>=2&&(i++,r/=2),i+l>=c?(o=0,i=c):i+l>=1?(o=(e*r-1)*x(2,t),i+=l):(o=e*x(2,l-1)*x(2,t),i=0));t>=8;s[d++]=255&o,o/=256,t-=8);for(i=i<0;s[d++]=255&i,i/=256,a-=8);return s[--d]|=128*h,s}function W(e,t,n){var i,o=8*n-t-1,r=(1<>1,a=o-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;a>0;u=256*u+e[c],c--,a-=8);for(i=u&(1<<-a)-1,u>>=-a,a+=t;a>0;i=256*i+e[c],c--,a-=8);if(0===u)u=1-s;else{if(u===r)return i?NaN:l?-O:O;i+=x(2,t),u-=s}return(l?-1:1)*i*x(2,u-t)}function F(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function H(e){return[255&e]}function X(e){return[255&e,e>>8&255]}function U(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function V(e){return j(e,52,8)}function G(e){return j(e,23,4)}function K(e,t,n){m(e[_],t,{get:function(){return this[n]}})}function $(e,t,n,i){var o=+n,r=p(o);if(r+t>e[B])throw E(w);var s=e[D]._b,a=r+e[q],c=s.slice(a,a+t);return i?c:c.reverse()}function Y(e,t,n,i,o,r){var s=+n,a=p(s);if(a+t>e[B])throw E(w);for(var c=e[D]._b,l=a+e[q],u=i(+o),d=0;dee;)(J=Z[ee++])in C||a(C,J,L[J]);r||(Q.constructor=C)}var te=new S(new C(2)),ne=S[_].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||c(S[_],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else C=function(e){u(this,C,b);var t=p(e);this._b=g.call(new Array(t),0),this[B]=t},S=function(e,t,n){u(this,S,y),u(e,C,y);var i=e[B],o=d(t);if(o<0||o>i)throw E("Wrong offset!");if(n=void 0===n?i-o:h(n),o+n>i)throw E(M);this[D]=e,this[q]=o,this[B]=n},o&&(K(C,N,"_l"),K(S,P,"_b"),K(S,N,"_l"),K(S,I,"_o")),c(S[_],{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return F($(this,4,e,arguments[1]))},getUint32:function(e){return F($(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return W($(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return W($(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){Y(this,1,e,H,t)},setUint8:function(e,t){Y(this,1,e,H,t)},setInt16:function(e,t){Y(this,2,e,X,t,arguments[2])},setUint16:function(e,t){Y(this,2,e,X,t,arguments[2])},setInt32:function(e,t){Y(this,4,e,U,t,arguments[2])},setUint32:function(e,t){Y(this,4,e,U,t,arguments[2])},setFloat32:function(e,t){Y(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){Y(this,8,e,V,t,arguments[2])}});v(C,b),v(S,y),a(S[_],s.VIEW,!0),t[b]=C,t[y]=S},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f605:function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";n.r(t);var i,o={};(n.r(o),n.d(o,"forceCenter",function(){return v}),n.d(o,"forceCollide",function(){return X}),n.d(o,"forceLink",function(){return ee}),n.d(o,"forceManyBody",function(){return ze}),n.d(o,"forceRadial",function(){return Pe}),n.d(o,"forceSimulation",function(){return ke}),n.d(o,"forceX",function(){return Ne}),n.d(o,"forceY",function(){return Ie}),"undefined"!==typeof window)&&((i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("7f7f");var r=n("a745"),s=n.n(r);function a(e){if(s()(e)){for(var t=0,n=new Array(e.length);t=(r=(m+v)/2))?m=r:v=r,(u=n>=(s=(g+b)/2))?g=s:b=s,o=p,!(p=p[d=u<<1|l]))return o[d]=f,e;if(a=+e._x.call(null,p.data),c=+e._y.call(null,p.data),t===a&&n===c)return f.next=p,o?o[d]=f:e._root=f,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(l=t>=(r=(m+v)/2))?m=r:v=r,(u=n>=(s=(g+b)/2))?g=s:b=s}while((d=u<<1|l)===(h=(c>=s)<<1|a>=r));return o[h]=p,o[d]=f,e}function w(e){var t,n,i,o,r=e.length,s=new Array(r),a=new Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;nu&&(u=i),od&&(d=o));for(ue||e>o||i>t||t>r))return this;var s,a,c=o-n,l=this._root;switch(a=(t<(i+r)/2)<<1|e<(n+o)/2){case 0:do{s=new Array(4),s[a]=l,l=s}while(c*=2,o=n+c,r=i+c,e>o||t>r);break;case 1:do{s=new Array(4),s[a]=l,l=s}while(c*=2,n=o-c,r=i+c,n>e||t>r);break;case 2:do{s=new Array(4),s[a]=l,l=s}while(c*=2,o=n+c,i=r-c,e>o||i>t);break;case 3:do{s=new Array(4),s[a]=l,l=s}while(c*=2,n=o-c,i=r-c,n>e||i>t);break}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=i,this._x1=o,this._y1=r,this},S=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},A=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},E=function(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o},O=function(e,t,n){var i,o,r,s,a,c,l,u=this._x0,d=this._y0,h=this._x1,p=this._y1,f=[],m=this._root;m&&f.push(new E(m,u,d,h,p)),null==n?n=1/0:(u=e-n,d=t-n,h=e+n,p=t+n,n*=n);while(c=f.pop())if(!(!(m=c.node)||(o=c.x0)>h||(r=c.y0)>p||(s=c.x1)=v)<<1|e>=g)&&(c=f[f.length-1],f[f.length-1]=f[f.length-1-l],f[f.length-1-l]=c)}else{var b=e-+this._x.call(null,m.data),y=t-+this._y.call(null,m.data),_=b*b+y*y;if(_=(a=(f+g)/2))?f=a:g=a,(u=s>=(c=(m+v)/2))?m=c:v=c,t=p,!(p=p[d=u<<1|l]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}while(p.data!==e)if(i=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,i?(o?i.next=o:delete i.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=o,this)};function T(e){for(var t=0,n=e.length;tc+p||ol+p||ra.index){var f=c-s.x-s.vx,m=l-s.y-s.vy,g=f*f+m*m;ge.r&&(e.r=e[t].r)}function a(){if(t){var i,o,r=t.length;for(n=new Array(r),i=0;i=0&&(n=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}function re(e,t){for(var n,i=0,o=e.length;i0)for(var n,i,o=new Array(n),r=0;r=0&&t._call.call(null,e),t=t._next;--ue}function Se(){me=(fe=ve.now())+ge,ue=de=0;try{Ce()}finally{ue=0,Ee(),me=0}}function Ae(){var e=ve.now(),t=e-fe;t>pe&&(ge-=t,fe=e)}function Ee(){var e,t,n=ae,i=1/0;while(n)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:ae=t);ce=e,Oe(i)}function Oe(e){if(!ue){de&&(de=clearTimeout(de));var t=e-me;t>24?(e<1/0&&(de=setTimeout(Se,e-ve.now()-ge)),he&&(he=clearInterval(he))):(he||(fe=ve.now(),he=setInterval(Ae,pe)),ue=1,be(Se))}}Me.prototype=we.prototype={constructor:Me,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?ye():+n)+(null==t?0:+t),this._next||ce===this||(ce?ce._next=this:ae=this,ce=this),this._call=e,this._time=n,Oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Oe())}};function Le(e){return e.x}function Te(e){return e.y}var xe=10,Re=Math.PI*(3-Math.sqrt(5)),ke=function(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),r=0,s=.6,a=K(),c=we(u),l=le("tick","end");function u(){d(),l.call("tick",t),n1?(null==n?a.remove(e):a.set(e,p(n)),t):a.get(e)},find:function(t,n,i){var o,r,s,a,c,l=0,u=e.length;for(null==i?i=1/0:i*=i,l=0;l1?(l.on(e,n),t):l.on(e)}}},ze=function(){var e,t,n,i,o=b(-30),r=1,s=1/0,a=.81;function c(i){var o,r=e.length,s=B(e,Le,Te).visitAfter(u);for(n=i,o=0;o=s)){(e.data!==t||e.next)&&(0===u&&(u=y(),p+=u*u),0===d&&(d=y(),p+=d*d),p=0;n--){var i=e.attributes[n];i&&(t[i.name]=i.value)}var o=e.innerHTML;if(o)return{attrs:t,data:o}}return null},svgElFromString:function(e){var t=this.toDom(e);if(this.isSvgData(t))return t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t},svgDataToUrl:function(e,t){if("object"===Ve(t))for(var n in t){var i=t[n]?t[n]:"";e.setAttribute(n,i)}var o=this.export(e);return o?this.svgToUrl(this.serialize(o)):null},isSvgData:function(e){return!!e.firstChild&&"svg"===e.firstChild.parentNode.nodeName},svgToUrl:function(e){var t=new Blob([e],{type:"image/svg+xml"}),n=URL.createObjectURL(t);return n}},Qe={name:"svg-renderer",props:["size","nodes","noNodes","selected","linksSelected","links","nodeSize","padding","fontSize","strLinks","linkWidth","nodeLabels","linkLabels","labelOffset","nodeSym"],computed:{nodeSvg:function(){return this.nodeSym?Je.toObject(this.nodeSym):null}},methods:{getNodeSize:function(e,t){var n=e._size||this.nodeSize;return t&&(n=e["_"+t]||n),n},svgIcon:function(e){return e.svgObj||this.nodeSvg},emit:function(e,t){this.$emit("action",e,t)},svgScreenShot:function(e,t,n,i){var o=Je.export(this.$refs.svg,i);if(t)e(null,Je.save(o));else{n||(n=this.searchBackground());var r=Je.makeCanvas(this.size.w,this.size.h,n);Je.svgToImg(o,r,function(t,n){t?e(t):e(null,n)})}},linkClass:function(e){var t=["link"];return this.linksSelected.hasOwnProperty(e)&&t.push("selected"),this.strLinks||t.push("curve"),t},linkPath:function(e){var t={M:[0|e.source.x,0|e.source.y],X:[0|e.target.x,0|e.target.y]};return this.strLinks?"M "+t.M.join(" ")+" L"+t.X.join(" "):(t.Q=[e.source.x,e.target.y],"M "+t.M+" Q "+t.Q.join(" ")+" "+t.X)},nodeStyle:function(e){return e._color?"fill: "+e._color:""},linkStyle:function(e){var t={};return e._color&&(t.stroke=e._color),t},nodeClass:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e._cssClass?e._cssClass:[];return s()(n)||(n=[n]),n.push("node"),t.forEach(function(e){return n.push(e)}),this.selected[e.id]&&n.push("selected"),(e.fx||e.fy)&&n.push("pinned"),n},searchBackground:function(){var e=this;while(e.$parent){var t=window.getComputedStyle(e.$el),n=t.getPropertyValue("background-color"),i=n.replace(/[^\d,]/g,"").split(","),o=i.reduce(function(e,t){return je()(e)+je()(t)},0);if(o>0)return n;e=e.$parent}return"white"},spriteSymbol:function(){var e=this.nodeSym;if(e)return Je.toSymbol(e)},linkAttrs:function(e){var t=e._svgAttrs||{};return t["stroke-width"]=t["stroke-width"]||this.linkWidth,t}}},Ze=Qe;function et(e,t,n,i,o,r,s,a){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),s?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}var tt,nt,it=et(Ze,De,Be,!1,null,null,null),ot=it.exports,rt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("canvas",{directives:[{name:"render-canvas",rawName:"v-render-canvas",value:{links:e.links,nodes:e.nodes},expression:"{links, nodes}"}],ref:"canvas",style:e.canvasStyle,attrs:{id:"canvas",width:e.size.w,height:e.size.h},on:{mouseup:function(t){return t.preventDefault(),e.canvasClick(t)},mousedown:function(t){return t.preventDefault(),e.canvasClick(t)},touchstart:function(t){return t.preventDefault(),e.canvasClick(t)},"&touchend":function(t){return e.canvasClick(t)}}})},st=[],at=(n("b54a"),n("6c7b"),{background:{_cssClass:"net-svg",fillStyle:"white"},node:{_cssClass:"node",fillStyle:"green",strokeStyle:"orange",lineWidth:2},link:{_cssClass:"link",strokeStyle:"blue",lineWidth:1},labels:{_cssClass:"node-label",_svgElement:"text",fillStyle:"black",fontFamily:"Arial"},nodeSelected:{_cssClass:"node selected",fillStyle:"red",strokeStyle:"orange",lineWidth:2},linkSelected:{_cssClass:"link selected",strokeStyle:"green",lineWidth:2},nodePinned:{_cssClass:"node pinned",fillStyle:"green",strokeStyle:"red"},nodeSelectedPinned:{_cssClass:"node selected pinned",fillStyle:"green",strokeStyle:"red"}}),ct=(n("6b54"),{randomId:function(){return Math.random().toString(36).substring(7)},fillStyle:function(e,t){var n=null,i="picker-"+this.randomId(),o=this.canvasPicker(e,i);t.appendChild(o);var r={fillStyle:"fill",strokeStyle:"stroke",lineWidth:"stroke-width",fontFamily:"font-family"};return e=this.mapStyle(i,r,e,n),t.removeChild(o),e},mapStyle:function(e,t,n,i,o){var r=window.getComputedStyle(document.getElementById(e),i);for(var s in o=o||["lineWidth"],t){var a=r.getPropertyValue(t[s]);o.indexOf(s)>-1&&(a=je()(a,10)),a&&(n[s]=a)}return n},canvasPicker:function(e,t){var n=e._svgAttrs||{},i=e._svgElement||"circle";if(!e._svgAttrs)switch(i){case"text":n={x:10,y:10,fontSize:20};break;case"circle":n={cx:10,cy:10,r:10};break}return n.class=e._cssClass,n.id=t,this.svgCreate(i,n)},compColor:function(e){var t=document.createElement("div");t.style.backgroundColor=e,document.body.appendChild(t);var n=window.getComputedStyle(t,null).getPropertyValue("background-color");return document.body.removeChild(t),n},svgCreate:function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);for(var i in t)n.setAttributeNS(null,i,t[i]);return n},create:function(e,t,n){n=n||"body";var i=document.createElement(e),o=t||"";return o+=this.randomId(),i.setAttribute("id",o),document[n].appendChild(i),i}}),lt={name:"canvas-renderer",props:["size","offset","padding","nodes","selected","linksSelected","links","nodeSize","fontSize","strLinks","linkWidth","nodeLabels","labelOffset","canvasStyles","nodeSym","noNodes"],data:function(){return{hitCanvas:null,shapes:{},drag:null,stylesReady:!1,CssStyles:!0,styles:at,sprites:{}}},computed:{nodeSvg:function(){return this.nodeSym},canvasStyle:function(){var e=this.padding.x+"px",t=this.padding.y+"px";return{left:e,top:t}}},directives:{renderCanvas:function(e,t,n){var i=t.value.nodes,o=t.value.links;n.context.draw(i,o,e)}},created:function(){if(this.canvasStyles)for(var e in this.canvasStyles)this.styles[e]=this.canvasStyles[e]},mounted:function(){var e=this;this.$nextTick(function(){e.hitCanvas.width=e.size.w,e.hitCanvas.height=e.size.h})},watch:{nodeSize:function(){this.resetSprites()},canvasStyles:function(){this.resetSprites()}},methods:{canvasScreenShot:function(e,t){var n=this.$refs.canvas,i=document.createElement("canvas");i.width=n.width,i.height=n.height;var o=this.styles.background;t&&(o=this.getCssColor(t));var r=i.getContext("2d");r=this.setCtx(r,o),r.fillRect(0,0,i.width,i.height),r.drawImage(n,0,0);var s=i.toDataURL("image/png");s?e(null,s):e(new Error("error generating canvas image"))},emit:function(e,t){this.$emit("action",e,t)},canvasInit:function(){var e=document.createElement("canvas");e.width=this.size.w,e.height=this.size.h,e.top=this.offset.y,e.left=this.offset.x,e.id="hit-canvas",this.hitCanvas=e,this.resetSprites()},resetSprites:function(){this.sprites={};for(var e=["node","nodeSelected","nodePinned","nodeSelectedPinned"],t=0;t0&&e.y>0&&e.x0&&(i.data[r]=255,i.data[r-3]=t.r,i.data[r-2]=t.g,i.data[r-1]=t.b);return n.putImageData(i,0,0),e},newColorIndex:function(){while(1){var e=this.randomColor();if(!this.shapes[e.rgb])return e}},randomColor:function(){var e=Math.round(255*Math.random()),t=Math.round(255*Math.random()),n=Math.round(255*Math.random());return{r:e,g:t,b:n,rgb:"rgb(".concat(e,",").concat(t,",").concat(n,")")}},setCtx:function(e,t){for(var n in t)e[n]=t[n];return e},cloneCanvas:function(e){var t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.width,t.height=e.height,n.drawImage(e,0,0),t},Sprite:function(e,t){return this.sprites[e]||(this.sprites[e]=t()),this.sprites[e]},getCssStyles:function(){var e=ct.create("svg","css-picker");for(var t in this.styles){var n=this.styles[t]||{};n=ct.fillStyle(n,e)}document.body.removeChild(e),this.stylesReady=!0},loadNodeStyle:function(e){var t="node",n=this.selected[e.id];if(n&&(t="nodeSelected"),e.pinned&&(t="nodePinned"),n&&e.pinned&&(t="nodeSelectedPinned"),e._cssClass){var i=t+"-"+e._cssClass;if(!this.styles[i]){var o=g()({},this.styles[t]||{});o._cssClass=o._cssClass||"",o._cssClass+=" "+e._cssClass,this.updateStyle(i,o)}t=i}var r=g()({},this.styles[t]||this.updateStyle(t));return e._color&&(r.fillStyle=e._color,r._cssStyle="fill:"+e._color),e._cssClass&&(r._cssClass+=" "+e._cssClass),r},updateStyle:function(e,t){t=t||this.styles[e]||{};var n=ct.create("svg","css-picker");return t=ct.fillStyle(t,n),this.styles[e]=t,document.body.removeChild(n),t},getCssColor:function(e){var t=ct.create("div","color-picker"),n=t.id;t.setAttribute("style","background-color:"+e);var i=ct.mapStyle(n,{fillStyle:"background-color"},[]);return document.body.removeChild(t),i},labelStyle:function(e){var t=this.styles.labels,n=e._labelClass;if(n){var i="labels-"+n,o=this.styles[i];o||(o=g()({},t),o._cssClass+=" "+n,o=this.updateStyle(i,o)),t=o}return t}}},ut=lt,dt=(n("3d11"),et(ut,rt,st,!1,null,null,null)),ht=dt.exports,pt=(n("34ef"),{save:function(e,t){var n=this;e&&(e=this.dataURIToBlob(e,function(e){var i=URL.createObjectURL(e);n.download(i,t)}))},dataURIToBlob:function(e,t){for(var n=atob(e.split(",")[1]),i=n.length,o=new Uint8Array(i),r=0;r=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("9757"),l=n("3a92"),u=n("6923"),d=n("3585"),h=n("168d"),p=n("cc26"),f=function(){function e(t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.elementsToActivate=t,this.elementsToDeactivate=n,this.kind=e.KIND}return e.KIND="switchEditMode",e}();t.SwitchEditModeAction=f;var m=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.elementsToActivate=[],n.elementsToDeactivate=[],n.handlesToRemove=[],n}return i(t,e),t.prototype.execute=function(e){var t=this,n=e.root.index;return this.action.elementsToActivate.forEach(function(e){var i=n.getById(e);void 0!==i&&t.elementsToActivate.push(i)}),this.action.elementsToDeactivate.forEach(function(e){var i=n.getById(e);if(void 0!==i&&t.elementsToDeactivate.push(i),i instanceof d.SRoutingHandle&&i.parent instanceof d.SRoutableElement){var o=i.parent;t.shouldRemoveHandle(i,o)&&(t.handlesToRemove.push({handle:i,parent:o}),t.elementsToDeactivate.push(o),t.elementsToActivate.push(o))}}),this.doExecute(e)},t.prototype.doExecute=function(e){var t=this;return this.handlesToRemove.forEach(function(e){e.point=e.parent.routingPoints.splice(e.handle.pointIndex,1)[0]}),this.elementsToDeactivate.forEach(function(e){e instanceof d.SRoutableElement?e.removeAll(function(e){return e instanceof d.SRoutingHandle}):e instanceof d.SRoutingHandle&&(e.editMode=!1,e.danglingAnchor&&e.parent instanceof d.SRoutableElement&&e.danglingAnchor.original&&(e.parent.source===e.danglingAnchor?e.parent.sourceId=e.danglingAnchor.original.id:e.parent.target===e.danglingAnchor&&(e.parent.targetId=e.danglingAnchor.original.id),e.danglingAnchor.parent.remove(e.danglingAnchor),e.danglingAnchor=void 0))}),this.elementsToActivate.forEach(function(e){if(p.canEditRouting(e)&&e instanceof l.SParentElement){var n=t.edgeRouterRegistry.get(e.routerKind);n.createRoutingHandles(e)}else e instanceof d.SRoutingHandle&&(e.editMode=!0)}),e.root},t.prototype.shouldRemoveHandle=function(e,t){if("junction"===e.kind){var n=this.edgeRouterRegistry.get(t.routerKind),i=n.route(t);return void 0===i.find(function(t){return t.pointIndex===e.pointIndex})}return!1},t.prototype.undo=function(e){var t=this;return this.handlesToRemove.forEach(function(e){void 0!==e.point&&e.parent.routingPoints.splice(e.handle.pointIndex,0,e.point)}),this.elementsToActivate.forEach(function(e){e instanceof d.SRoutableElement?e.removeAll(function(e){return e instanceof d.SRoutingHandle}):e instanceof d.SRoutingHandle&&(e.editMode=!1)}),this.elementsToDeactivate.forEach(function(e){if(p.canEditRouting(e)){var n=t.edgeRouterRegistry.get(e.routerKind);n.createRoutingHandles(e)}else e instanceof d.SRoutingHandle&&(e.editMode=!0)}),e.root},t.prototype.redo=function(e){return this.doExecute(e)},t.KIND=f.KIND,o([a.inject(h.EdgeRouterRegistry),r("design:type",h.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o([a.injectable(),s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[f])],t),t}(c.Command);t.SwitchEditModeCommand=m},a663:function(e,t,n){"use strict";var i=n("84fd"),o=n.n(i);o.a},a8af:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3");function o(e){return e instanceof RangeError||e.message===i.STACK_OVERFLOW}t.isStackOverflowExeption=o},a8f0:function(e,t,n){var i=n("b639"),o=i.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=s),r(o,s),s.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},ab71:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("869e"),r=n("dd02"),s=n("e1c6"),a=n("d8f5"),c=function(){function e(){}return Object.defineProperty(e.prototype,"kind",{get:function(){return a.PolylineEdgeRouter.KIND+":"+o.ELLIPTIC_ANCHOR_KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,n){void 0===n&&(n=0);var i=e.bounds,o=r.center(i),s=o.x-t.x,a=o.y-t.y,c=Math.sqrt(s*s+a*a),l=s/c||0,u=a/c||0;return{x:o.x-l*(.5*i.width+n),y:o.y-u*(.5*i.height+n)}},e=i([s.injectable()],e),e}();t.EllipseAnchor=c;var l=function(){function e(){}return Object.defineProperty(e.prototype,"kind",{get:function(){return a.PolylineEdgeRouter.KIND+":"+o.RECTANGULAR_ANCHOR_KIND},enumerable:!0,configurable:!0}),e.prototype.getAnchor=function(e,t,n){void 0===n&&(n=0);var i=e.bounds,o=r.center(i),s=new u(o,t);if(!r.almostEquals(o.y,t.y)){var a=this.getXIntersection(i.y,o,t);a>=i.x&&a<=i.x+i.width&&s.addCandidate(a,i.y-n);var c=this.getXIntersection(i.y+i.height,o,t);c>=i.x&&c<=i.x+i.width&&s.addCandidate(c,i.y+i.height+n)}if(!r.almostEquals(o.x,t.x)){var l=this.getYIntersection(i.x,o,t);l>=i.y&&l<=i.y+i.height&&s.addCandidate(i.x-n,l);var d=this.getYIntersection(i.x+i.width,o,t);d>=i.y&&d<=i.y+i.height&&s.addCandidate(i.x+i.width+n,d)}return s.best},e.prototype.getXIntersection=function(e,t,n){var i=(e-t.y)/(n.y-t.y);return(n.x-t.x)*i+t.x},e.prototype.getYIntersection=function(e,t,n){var i=(e-t.x)/(n.x-t.x);return(n.y-t.y)*i+t.y},e=i([s.injectable()],e),e}();t.RectangleAnchor=l;var u=function(){function e(e,t){this.centerPoint=e,this.refPoint=t,this.currentDist=-1}return e.prototype.addCandidate=function(e,t){var n=this.refPoint.x-e,i=this.refPoint.y-t,o=n*n+i*i;(this.currentDist<0||o=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===r["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t),o=!1):this.freehand_&&t.type===r["a"].POINTERDOWN?o=!1:n?(o=t.type===r["a"].POINTERMOVE,o&&this.freehand_?o=this.handlePointerMove_(t):(t.pointerEvent.pointerType==y["b"]||t.type===r["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t)):t.type===r["a"].DBLCLICK&&(o=!1),e.prototype.handleEvent.call(this,t)&&o},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e),!0):!!this.condition_(e)&&(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new s["a"](r["a"].POINTERMOVE,e.map,e.pointerEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0)},t.prototype.handleUpEvent=function(e){var t=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e);var n=this.mode_===O.CIRCLE;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||n?this.finishDrawing():this.atFinish_(e)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e):(this.startDrawing_(e),this.mode_===O.POINT&&this.finishDrawing()),t=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!t&&this.stopClick_&&e.stopPropagation(),t},t.prototype.handlePointerMove_=function(e){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,n=e.pixel,i=t[0]-n[0],o=t[1]-n[1],r=i*i+o*o;if(this.shouldHandle_=this.freehand_?r>this.squaredClickTolerance_:r<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(e):this.createOrUpdateSketchPoint_(e),!0},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var n=!1,i=[this.finishCoordinate_];if(this.mode_===O.LINE_STRING)n=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===O.POLYGON){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,i=[o[0][0],o[0][o[0].length-2]]}if(n)for(var r=e.map,s=0,a=i.length;s=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(i.slice()),this.geometryFunction_(n,o)):this.mode_===O.POLYGON&&(n=this.sketchCoords_[0],n.length>=this.maxPoints_&&(this.freehand_?n.pop():t=!0),n.push(i.slice()),t&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,o)),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t,n=this.sketchFeature_.getGeometry();this.mode_===O.LINE_STRING?(e=this.sketchCoords_,e.splice(-2,1),this.geometryFunction_(e,n),e.length>=2&&(this.finishCoordinate_=e[e.length-2].slice())):this.mode_===O.POLYGON&&(e=this.sketchCoords_[0],e.splice(-2,1),t=this.sketchLine_.getGeometry(),t.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,n)),0===e.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,n=e.getGeometry();this.mode_===O.LINE_STRING?(t.pop(),this.geometryFunction_(t,n)):this.mode_===O.POLYGON&&(t[0].pop(),this.geometryFunction_(t,n),t=n.getCoordinates()),this.type_===f["a"].MULTI_POINT?e.setGeometry(new v["a"]([t])):this.type_===f["a"].MULTI_LINE_STRING?e.setGeometry(new g["a"]([t])):this.type_===f["a"].MULTI_POLYGON&&e.setGeometry(new b["a"]([t])),this.dispatchEvent(new T(L.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return e&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),e},t.prototype.extend=function(e){var t=e.getGeometry(),n=t;this.sketchFeature_=e,this.sketchCoords_=n.getCoordinates();var i=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=i.slice(),this.sketchCoords_.push(i.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new T(L.DRAWSTART,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing_(),this.overlay_.setMap(t?e:null)},t}(w["b"]);function R(){var e=Object(E["b"])();return function(t,n){return e[t.getGeometry().getType()]}}function k(e){var t;return e===f["a"].POINT||e===f["a"].MULTI_POINT?t=O.POINT:e===f["a"].LINE_STRING||e===f["a"].MULTI_LINE_STRING?t=O.LINE_STRING:e===f["a"].POLYGON||e===f["a"].MULTI_POLYGON?t=O.POLYGON:e===f["a"].CIRCLE&&(t=O.CIRCLE),t}t["a"]=x},ac2a:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("9757"),c=n("3a92"),l=n("e1c6"),u=n("6923"),d=function(){function e(t,n){this.containerId=t,this.elementSchema=n,this.kind=e.KIND}return e.KIND="createElement",e}();t.CreateElementAction=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t=e.root.index.getById(this.action.containerId);return t instanceof c.SParentElement&&(this.container=t,this.newElement=e.modelFactory.createElement(this.action.elementSchema),this.container.add(this.newElement)),e.root},t.prototype.undo=function(e){return this.container.remove(this.newElement),e.root},t.prototype.redo=function(e){return this.container.add(this.newElement),e.root},t.KIND=d.KIND,t=o([l.injectable(),s(0,l.inject(u.TYPES.Action)),r("design:paramtypes",[d])],t),t}(a.Command);t.CreateElementCommand=h},ac8e:function(e,t,n){},ad0b:function(e,t,n){"use strict";var i=n("d988"),o=n.n(i);o.a},ad71:function(e,t,n){"use strict";(function(t,i){var o=n("966d");e.exports=w;var r,s=n("e3db");w.ReadableState=M;n("faa1").EventEmitter;var a=function(e,t){return e.listeners(t).length},c=n("429b"),l=n("a8f0").Buffer,u=t.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof u}var p=Object.create(n("3a7c"));p.inherits=n("3fb5");var f=n(2),m=void 0;m=f&&f.debuglog?f.debuglog("stream"):function(){};var g,v=n("5e1a"),b=n("4681");p.inherits(w,c);var y=["error","close","destroy","pause","resume"];function _(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function M(e,t){r=r||n("b19a"),e=e||{};var i=t instanceof r;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||(g=n("7d72").StringDecoder),this.decoder=new g(e.encoding),this.encoding=e.encoding)}function w(e){if(r=r||n("b19a"),!(this instanceof w))return new w(e);this._readableState=new M(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function C(e,t,n,i,o){var r,s=e._readableState;null===t?(s.reading=!1,x(e,s)):(o||(r=A(s,t)),r?e.emit("error",r):s.objectMode||t&&t.length>0?("string"===typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=d(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?S(e,s,t,!1):z(e,s)):S(e,s,t,!1))):i||(s.reading=!1));return E(s)}function S(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&R(e)),z(e,t)}function A(e,t){var n;return h(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function E(e){return!e.ended&&(e.needReadable||e.length=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=L(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,R(e)}}function R(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(k,e):k(e))}function k(e){m("emit readable"),e.emit("readable"),q(e)}function z(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(P,e,t))}function P(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=W(e,t.buffer,t.decoder),n);var n}function W(e,t,n){var i;return er.length?r.length:e;if(s===r.length?o+=r:o+=r.slice(0,e),e-=s,0===e){s===r.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=r.slice(s));break}++i}return t.length-=i,o}function H(e,t){var n=l.allocUnsafe(e),i=t.head,o=1;i.data.copy(n),e-=i.data.length;while(i=i.next){var r=i.data,s=e>r.length?r.length:e;if(r.copy(n,n.length-e,0,s),e-=s,0===e){s===r.length?(++o,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=r.slice(s));break}++o}return t.length-=o,n}function X(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(U,t,e))}function U(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function V(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?X(this):R(this),null;if(e=T(e,t),0===e&&t.ended)return 0===t.length&&X(this),null;var i,o=t.needReadable;return m("need readable",o),(0===t.length||t.length-e0?j(e,t):null,null===i?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&X(this)),null!==i&&this.emit("data",i),i},w.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,m("pipe count=%d opts=%j",r.pipesCount,t);var s=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,c=s?u:M;function l(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function u(){m("onend"),e.end()}r.endEmitted?o.nextTick(c):n.once("end",c),e.on("unpipe",l);var d=N(n);e.on("drain",d);var h=!1;function p(){m("cleanup"),e.removeListener("close",b),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",v),e.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",M),n.removeListener("data",g),h=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||d()}var f=!1;function g(t){m("ondata"),f=!1;var i=e.write(t);!1!==i||f||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==V(r.pipes,e))&&!h&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function v(t){m("onerror",t),M(),e.removeListener("error",v),0===a(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",y),M()}function y(){m("onfinish"),e.removeListener("close",b),M()}function M(){m("unpipe"),n.unpipe(e)}return n.on("data",g),_(e,"error",v),e.once("close",b),e.once("finish",y),e.emit("pipe",n),r.flowing||(m("pipe resume"),n.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var r=0;r=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=n("66f9"),s=function(){function e(){}return Object.defineProperty(e.prototype,"gridX",{get:function(){return 10},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridY",{get:function(){return 10},enumerable:!0,configurable:!0}),e.prototype.snap=function(e,t){return t&&r.isBoundsAware(t)?{x:Math.round((e.x+.5*t.bounds.width)/this.gridX)*this.gridX-.5*t.bounds.width,y:Math.round((e.y+.5*t.bounds.height)/this.gridY)*this.gridY-.5*t.bounds.height}:{x:Math.round(e.x/this.gridX)*this.gridX,y:Math.round(e.y/this.gridY)*this.gridY}},e=i([o.injectable()],e),e}();t.CenterGridSnapper=s},aff7:function(e,t,n){"use strict";var i=n("7bae"),o=n.n(i);o.a},b093:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("6923"),a=n("0d7a"),c=n("e45b"),l=function(){function e(){}return e.prototype.decorate=function(e,t){var n=c.getAttrs(e);return void 0!==n.id&&this.logger.warn(e,"Overriding id of vnode ("+n.id+"). Make sure not to set it manually in view."),n.id=this.domHelper.createUniqueDOMElementId(t),e.key||(e.key=t.id),e},e.prototype.postUpdate=function(){},i([r.inject(s.TYPES.ILogger),o("design:type",Object)],e.prototype,"logger",void 0),i([r.inject(s.TYPES.DOMHelper),o("design:type",a.DOMHelper)],e.prototype,"domHelper",void 0),e=i([r.injectable()],e),e}();t.IdPostprocessor=l},b19a:function(e,t,n){"use strict";var i=n("966d"),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var r=Object.create(n("3a7c"));r.inherits=n("3fb5");var s=n("ad71"),a=n("dc14");r.inherits(d,s);for(var c=o(a.prototype),l=0;lt.getMaxResolution()||v=0?e:"children"}}]),l}(e);return window["ol"]&&window["ol"]["control"]&&(window["ol"]["control"]["LayerSwitcher"]=l),l})},b485:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3b4c"),r=n("3623"),s=n("1f89"),a=function(){function e(t){this.elementId=t,this.kind=e.KIND}return e.KIND="open",e}();t.OpenAction=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.doubleClick=function(e,t){var n=r.findParentByFeature(e,s.isOpenable);return void 0!==n?[new a(n.id)]:[]},t}(o.MouseListener);t.OpenMouseListener=c},b669:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("fba3");function o(e,t){for(var n=[],o=2;o=0)return!1;if(e.metaKey!==n.findIndex(function(e){return"meta"===e||"ctrlCmd"===e})>=0)return!1}else{if(e.ctrlKey!==n.findIndex(function(e){return"ctrl"===e||"ctrlCmd"===e})>=0)return!1;if(e.metaKey!==n.findIndex(function(e){return"meta"===e})>=0)return!1}return e.altKey===n.findIndex(function(e){return"alt"===e})>=0&&e.shiftKey===n.findIndex(function(e){return"shift"===e})>=0}function r(e){if(e.keyCode){var t=s[e.keyCode];if(void 0!==t)return t}return e.code}t.matchesKeystroke=o,t.getActualCode=r;var s=new Array(256);(function(){function e(e,t){void 0===s[t]&&(s[t]=e)}e("Pause",3),e("Backspace",8),e("Tab",9),e("Enter",13),e("ShiftLeft",16),e("ShiftRight",16),e("ControlLeft",17),e("ControlRight",17),e("AltLeft",18),e("AltRight",18),e("CapsLock",20),e("Escape",27),e("Space",32),e("PageUp",33),e("PageDown",34),e("End",35),e("Home",36),e("ArrowLeft",37),e("ArrowUp",38),e("ArrowRight",39),e("ArrowDown",40),e("Insert",45),e("Delete",46),e("Digit1",49),e("Digit2",50),e("Digit3",51),e("Digit4",52),e("Digit5",53),e("Digit6",54),e("Digit7",55),e("Digit8",56),e("Digit9",57),e("Digit0",48),e("KeyA",65),e("KeyB",66),e("KeyC",67),e("KeyD",68),e("KeyE",69),e("KeyF",70),e("KeyG",71),e("KeyH",72),e("KeyI",73),e("KeyJ",74),e("KeyK",75),e("KeyL",76),e("KeyM",77),e("KeyN",78),e("KeyO",79),e("KeyP",80),e("KeyQ",81),e("KeyR",82),e("KeyS",83),e("KeyT",84),e("KeyU",85),e("KeyV",86),e("KeyW",87),e("KeyX",88),e("KeyY",89),e("KeyZ",90),e("OSLeft",91),e("MetaLeft",91),e("OSRight",92),e("MetaRight",92),e("ContextMenu",93),e("Numpad0",96),e("Numpad1",97),e("Numpad2",98),e("Numpad3",99),e("Numpad4",100),e("Numpad5",101),e("Numpad6",102),e("Numpad7",103),e("Numpad8",104),e("Numpad9",105),e("NumpadMultiply",106),e("NumpadAdd",107),e("NumpadSeparator",108),e("NumpadSubtract",109),e("NumpadDecimal",110),e("NumpadDivide",111),e("F1",112),e("F2",113),e("F3",114),e("F4",115),e("F5",116),e("F6",117),e("F7",118),e("F8",119),e("F9",120),e("F10",121),e("F11",122),e("F12",123),e("F13",124),e("F14",125),e("F15",126),e("F16",127),e("F17",128),e("F18",129),e("F19",130),e("F20",131),e("F21",132),e("F22",133),e("F23",134),e("F24",135),e("NumLock",144),e("ScrollLock",145),e("Semicolon",186),e("Equal",187),e("Comma",188),e("Minus",189),e("Period",190),e("Slash",191),e("Backquote",192),e("IntlRo",193),e("BracketLeft",219),e("Backslash",220),e("BracketRight",221),e("Quote",222),e("IntlYen",255)})()},b7b8:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t1)){var n=this.route(e);if(!(n.length<2)){for(var i=[],o=0,r=0;r1e-8&&c>=a){var u=Math.max(0,a-s)/i[r];return{segmentStart:n[r],segmentEnd:n[r+1],lambda:u}}s=c}return{segmentEnd:n.pop(),segmentStart:n.pop(),lambda:1}}}},e.prototype.addHandle=function(e,t,n,i){var o=new u.SRoutingHandle;return o.kind=t,o.pointIndex=i,o.type=n,"target"===t&&e.id===u.edgeInProgressID&&(o.id=u.edgeInProgressTargetHandleID),e.add(o),o},e.prototype.getHandlePosition=function(e,t,n){switch(n.kind){case"source":return e.source instanceof u.SDanglingAnchor?e.source.position:t[0];case"target":return e.target instanceof u.SDanglingAnchor?e.target.position:t[t.length-1];default:var i=this.getInnerHandlePosition(e,t,n);if(void 0!==i)return i;if(n.pointIndex>=0&&n.pointIndexr(i))&&(i=c),l>n&&(void 0===o||l0&&this.applyInnerHandleMoves(e,n),this.cleanupRoutingPoints(e,e.routingPoints,!0,!0)},e.prototype.cleanupRoutingPoints=function(e,t,n,i){var o=new p(e.source,e.parent,"source"),r=new p(e.target,e.parent,"target");this.resetRoutingPointsOnReconnect(e,t,n,o,r)},e.prototype.resetRoutingPointsOnReconnect=function(e,t,n,i,o){if(0===t.length||e.source instanceof u.SDanglingAnchor||e.target instanceof u.SDanglingAnchor){var s=this.getOptions(e),a=this.calculateDefaultCorners(e,i,o,s);if(t.splice.apply(t,r([0,t.length],a)),n){var c=-2;e.children.forEach(function(n){n instanceof u.SRoutingHandle&&("target"===n.kind?n.pointIndex=t.length:"line"===n.kind&&n.pointIndex>=t.length?e.remove(n):c=Math.max(n.pointIndex,c))});for(var l=c;l-1&&(e.routingPoints=[],this.cleanupRoutingPoints(e,e.routingPoints,!0,!0)))},e.prototype.takeSnapshot=function(e){return{routingPoints:e.routingPoints.slice(),routingHandles:e.children.filter(function(e){return e instanceof u.SRoutingHandle}).map(function(e){return e}),routedPoints:this.route(e),router:this,source:e.source,target:e.target}},e.prototype.applySnapshot=function(e,t){e.routingPoints=t.routingPoints,e.removeAll(function(e){return e instanceof u.SRoutingHandle}),e.routerKind=t.router.kind,t.routingHandles.forEach(function(t){return e.add(t)}),t.source&&(e.sourceId=t.source.id),t.target&&(e.targetId=t.target.id),e.root.index.remove(e),e.root.index.add(e)},e.prototype.calculateDefaultCorners=function(e,t,n,i){var o=this.getSelfEdgeIndex(e);if(o>=0){var r=i.standardDistance,a=i.selfEdgeOffset*Math.min(t.bounds.width,t.bounds.height);switch(o%4){case 0:return[{x:t.get(s.RIGHT).x+r,y:t.get(s.RIGHT).y+a},{x:t.get(s.RIGHT).x+r,y:t.get(s.BOTTOM).y+r},{x:t.get(s.BOTTOM).x+a,y:t.get(s.BOTTOM).y+r}];case 1:return[{x:t.get(s.BOTTOM).x-a,y:t.get(s.BOTTOM).y+r},{x:t.get(s.LEFT).x-r,y:t.get(s.BOTTOM).y+r},{x:t.get(s.LEFT).x-r,y:t.get(s.LEFT).y+a}];case 2:return[{x:t.get(s.LEFT).x-r,y:t.get(s.LEFT).y-a},{x:t.get(s.LEFT).x-r,y:t.get(s.TOP).y-r},{x:t.get(s.TOP).x-a,y:t.get(s.TOP).y-r}];case 3:return[{x:t.get(s.TOP).x+a,y:t.get(s.TOP).y-r},{x:t.get(s.RIGHT).x+r,y:t.get(s.TOP).y-r},{x:t.get(s.RIGHT).x+r,y:t.get(s.RIGHT).y-a}]}}return[]},e.prototype.getSelfEdgeIndex=function(e){return e.source&&e.source===e.target?e.source.outgoingEdges.filter(function(t){return t.target===e.source}).indexOf(e):-1},i([a.inject(d.AnchorComputerRegistry),o("design:type",d.AnchorComputerRegistry)],e.prototype,"anchorRegistry",void 0),e=i([a.injectable()],e),e}();t.LinearEdgeRouter=f},b7ca:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("46cc"),s=n("d8f5"),a=n("9a1f"),c=n("ab71"),l=n("869e"),u=n("168d"),d=new i.ContainerModule(function(e){e(u.EdgeRouterRegistry).toSelf().inSingletonScope(),e(l.AnchorComputerRegistry).toSelf().inSingletonScope(),e(r.ManhattanEdgeRouter).toSelf().inSingletonScope(),e(o.TYPES.IEdgeRouter).toService(r.ManhattanEdgeRouter),e(o.TYPES.IAnchorComputer).to(a.ManhattanEllipticAnchor).inSingletonScope(),e(o.TYPES.IAnchorComputer).to(a.ManhattanRectangularAnchor).inSingletonScope(),e(o.TYPES.IAnchorComputer).to(a.ManhattanDiamondAnchor).inSingletonScope(),e(s.PolylineEdgeRouter).toSelf().inSingletonScope(),e(o.TYPES.IEdgeRouter).toService(s.PolylineEdgeRouter),e(o.TYPES.IAnchorComputer).to(c.EllipseAnchor),e(o.TYPES.IAnchorComputer).to(c.RectangleAnchor),e(o.TYPES.IAnchorComputer).to(c.DiamondAnchor)});t.default=d},b7d1:function(e,t,n){(function(t){function n(e,t){if(i("noDeprecation"))return e;var n=!1;function o(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return o}function i(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("c8ba"))},b878:function(e,t,n){},b8c1:function(e,t,n){"use strict";t["a"]={data:function(){return{timer:null,prevent:!1,delay:200}},methods:{onClick:function(e,t){var n=this;this.timer=setTimeout(function(){n.prevent||t(e),n.prevent=!1},this.delay)},onDblClick:function(e,t){clearTimeout(this.timer),this.prevent=!0,t(e)}}}},b967:function(e,t,n){"use strict";var i=n("0505"),o=n.n(i);o.a},ba33:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("30e3");function o(e){if("function"===typeof e){var t=e;return t.name}if("symbol"===typeof e)return e.toString();t=e;return t}function r(e,t,n){var i="",o=n(e,t);return 0!==o.length&&(i="\nRegistered bindings:",o.forEach(function(e){var t="Object";null!==e.implementationType&&(t=u(e.implementationType)),i=i+"\n "+t,e.constraint.metaData&&(i=i+" - "+e.constraint.metaData)})),i}function s(e,t){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===t||s(e.parentRequest,t))}function a(e){function t(e,n){void 0===n&&(n=[]);var i=o(e.serviceIdentifier);return n.push(i),null!==e.parentRequest?t(e.parentRequest,n):n}var n=t(e);return n.reverse().join(" --\x3e ")}function c(e){e.childRequests.forEach(function(e){if(s(e,e.serviceIdentifier)){var t=a(e);throw new Error(i.CIRCULAR_DEPENDENCY+" "+t)}c(e)})}function l(e,t){if(t.isTagged()||t.isNamed()){var n="",i=t.getNamedTag(),o=t.getCustomTags();return null!==i&&(n+=i.toString()+"\n"),null!==o&&o.forEach(function(e){n+=e.toString()+"\n"})," "+e+"\n "+e+" - "+n}return" "+e}function u(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=o,t.listRegisteredBindingsForServiceIdentifier=r,t.circularDependencyToException=c,t.listMetadataForTarget=l,t.getFunctionName=u},ba8b:function(e,t,n){},bab1:function(e,t,n){},bafd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.context||document;if(!e)return null;var i=[],r=u((0,o.default)(e),i,n),s=void 0;return s=r?1===r.length?r[0]:r:d({type:"text",content:e},i,n),t.hooks&&t.hooks.create&&i.forEach(function(e){t.hooks.create(e)}),s};var i=n("861d"),o=c(i),r=n("2eed"),s=c(r),a=n("6592");function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){return e instanceof Array&&e.length>0?e.map(function(e){return d(e,t,n)}):void 0}function d(e,t,n){var i=void 0;return i="text"===e.type?(0,a.createTextVNode)(e.content,n):(0,s.default)(e.name,h(e,n),u(e.children,t,n)),t.push(i),i}function h(e,t){var n={};if(!e.attrs)return n;var i=Object.keys(e.attrs).reduce(function(n,i){if("style"!==i&&"class"!==i){var o=(0,a.unescapeEntities)(e.attrs[i],t);n?n[i]=o:n=l({},i,o)}return n},null);i&&(n.attrs=i);var o=p(e);o&&(n.style=o);var r=f(e);return r&&(n.class=r),n}function p(e){try{return e.attrs.style.split(";").reduce(function(e,t){var n=t.split(":"),i=(0,a.transformName)(n[0].trim());if(i){var o=n[1].replace("!important","").trim();e?e[i]=o:e=l({},i,o)}return e},null)}catch(e){return null}}function f(e){try{return e.attrs.class.split(" ").reduce(function(e,t){return t=t.trim(),t&&(e?e[t]=!0:e=l({},t,!0)),e},null)}catch(e){return null}}},bb33:function(e,t,n){"use strict";var i=n("bee8"),o=n.n(i);o.a},bb59:function(e,t,n){},bc63:function(e,t,n){},bcbd:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("510b"),l=n("9757"),u=n("2f3a"),d=n("3a92"),h=n("3623"),p=n("6923"),f=n("1417"),m=n("3b4c"),g=n("e45b"),v=n("fba3"),b=n("e629"),y=n("b669"),_=n("70d9"),M=n("38e8"),w=n("a5f4"),C=n("3585"),S=n("3585"),A=n("3ada"),E=n("4c18"),O=function(){function e(t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.selectedElementsIDs=t,this.deselectedElementsIDs=n,this.kind=e.KIND}return e.KIND="elementSelected",e}();t.SelectAction=O;var L=function(){function e(t){void 0===t&&(t=!0),this.select=t,this.kind=e.KIND}return e.KIND="allSelected",e}();t.SelectAllAction=L;var T=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(c.generateRequestId())},e.KIND="getSelection",e}();t.GetSelectionAction=T;var x=function(){function e(t,n){void 0===t&&(t=[]),this.selectedElementsIDs=t,this.responseId=n,this.kind=e.KIND}return e.KIND="selectionResult",e}();t.SelectionResult=x;var R=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.selected=[],n.deselected=[],n}return i(t,e),t.prototype.execute=function(e){var t=this,n=e.root;return this.action.selectedElementsIDs.forEach(function(e){var i=n.index.getById(e);i instanceof d.SChildElement&&E.isSelectable(i)&&t.selected.push(i)}),this.action.deselectedElementsIDs.forEach(function(e){var i=n.index.getById(e);i instanceof d.SChildElement&&E.isSelectable(i)&&t.deselected.push(i)}),this.redo(e)},t.prototype.undo=function(e){for(var t=0,n=this.selected;t0&&n.push(new w.SwitchEditModeAction([],s))}else{n.push(new O([],r.map(function(e){return e.id})));s=r.filter(function(e){return e instanceof S.SRoutableElement}).map(function(e){return e.id});s.length>0&&n.push(new w.SwitchEditModeAction([],s))}}}return n},t.prototype.mouseMove=function(e,t){return this.hasDragged=!0,[]},t.prototype.mouseUp=function(e,t){if(0===t.button&&!this.hasDragged){var n=h.findParentByFeature(e,E.isSelectable);if(void 0!==n&&this.wasSelected)return[new O([n.id],[])]}return this.hasDragged=!1,[]},t.prototype.decorate=function(e,t){var n=h.findParentByFeature(t,E.isSelectable);return void 0!==n&&g.setClass(e,"selected",n.selected),e},o([a.inject(_.ButtonHandlerRegistry),a.optional(),r("design:type",_.ButtonHandlerRegistry)],t.prototype,"buttonHandlerRegistry",void 0),t}(m.MouseListener);t.SelectMouseListener=z;var P=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.previousSelection={},n}return i(t,e),t.prototype.retrieveResult=function(e){var t=e.root.index.all().filter(function(e){return E.isSelectable(e)&&e.selected}).map(function(e){return e.id});return new x(b.toArray(t),this.action.requestId)},t.KIND=T.KIND,t=o([a.injectable(),s(0,a.inject(p.TYPES.Action)),r("design:paramtypes",[T])],t),t}(u.ModelRequestCommand);t.GetSelectionCommand=P;var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){return y.matchesKeystroke(t,"KeyA","ctrlCmd")?[new L]:[]},t}(f.KeyListener);t.SelectKeyboardListener=N},bcc9:function(e,t,n){"use strict";var i,o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;nv&&(r.top=v-s),uy&&(r.left=y-a),r}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e["Start"]=1]="Start",e[e["End"]=2]="End",e[e["Move"]=3]="Move"}(i||(i={})),t.Draggable={bind:function(e,n,i,o){t.Draggable.update(e,n,i,o)},update:function(e,t,n,a){if(!t.value||!t.value.stopDragging){var c=t.value&&t.value.handle&&r(t.value.handle)||e;t&&t.value&&t.value.resetInitialPos&&(g(),b()),c.getAttribute("draggable")||(e.removeEventListener("mousedown",e["listener"]),c.addEventListener("mousedown",p),e.removeEventListener("touchstart",e["listener"]),c.addEventListener("touchstart",p,{passive:!1}),c.setAttribute("draggable","true"),e["listener"]=p,g(),b())}function l(n){n.preventDefault();var i=t.value&&t.value.stopDragging;if(!i){var o=y();o.startDragPosition&&o.initialMousePos||(g(n),o=y());var r=f(n),a=r.left-o.initialMousePos.left,c=r.top-o.initialMousePos.top,l={left:o.startDragPosition.left+a,top:o.startDragPosition.top+c},h=u(),p=e.getBoundingClientRect();h&&p&&(l=s(p,h,l.left,l.top,t.value.boundingRectMargin)),v({currentDragPosition:l}),d(),b(n)}}function u(){if(t.value)return t.value.boundingRect||t.value.boundingElement&&t.value.boundingElement.getBoundingClientRect()}function d(){var t=y();t.currentDragPosition&&(e.style.touchAction="none",e.style.position="fixed",e.style.left=t.currentDragPosition.left+"px",e.style.top=t.currentDragPosition.top+"px")}function h(e){e.preventDefault(),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",l),document.removeEventListener("touchend",h);var t=m();v({initialMousePos:void 0,startDragPosition:t,currentDragPosition:t}),b(e,i.End)}function p(e){v({initialMousePos:f(e)}),b(e,i.Start),document.addEventListener("mousemove",l),document.addEventListener("mouseup",h),document.addEventListener("touchmove",l),document.addEventListener("touchend",h)}function f(e){if(e instanceof MouseEvent)return{left:e.clientX,top:e.clientY};if(e instanceof TouchEvent){var t=e.changedTouches[e.changedTouches.length-1];return{left:t.clientX,top:t.clientY}}}function m(){var t=e.getBoundingClientRect();if(t.height&&t.width)return{left:t.left,top:t.top}}function g(e){var n=y(),i=t&&t.value&&t.value.initialPosition,o=n.initialPosition,r=m(),s=i||o||r;v({initialPosition:s,startDragPosition:s,currentDragPosition:s,initialMousePos:f(e)}),d()}function v(e){var t=y(),n=o(o({},t),e);c.setAttribute("draggable-state",JSON.stringify(n))}function b(e,n){var r=y(),s={x:0,y:0};r.currentDragPosition&&r.startDragPosition&&(s.x=r.currentDragPosition.left-r.startDragPosition.left,s.y=r.currentDragPosition.top-r.startDragPosition.top);var a=r.currentDragPosition&&o({},r.currentDragPosition);n===i.End?t.value&&t.value.onDragEnd&&r&&t.value.onDragEnd(s,a,e):n===i.Start?t.value&&t.value.onDragStart&&r&&t.value.onDragStart(s,a,e):t.value&&t.value.onPositionChange&&r&&t.value.onPositionChange(s,a,e)}function y(){return JSON.parse(c.getAttribute("draggable-state"))||{}}}}},be02:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("6923"),l=n("3864"),u=n("7b39"),d=function(e){function t(t,n){var i=e.call(this)||this;return t.forEach(function(e){return i.register(e.actionKind,e.factory())}),n.forEach(function(e){return i.initializeActionHandler(e)}),i}return i(t,e),t.prototype.initializeActionHandler=function(e){e.initialize(this)},t=o([a.injectable(),s(0,a.multiInject(c.TYPES.ActionHandlerRegistration)),s(0,a.optional()),s(1,a.multiInject(c.TYPES.IActionHandlerInitializer)),s(1,a.optional()),r("design:paramtypes",[Array,Array])],t),t}(l.MultiInstanceRegistry);function h(e,t,n){if("function"===typeof n){if(!u.isInjectable(n))throw new Error("Action handlers should be @injectable: "+n.name);e.isBound(n)||e.bind(n).toSelf()}e.bind(c.TYPES.ActionHandlerRegistration).toDynamicValue(function(e){return{actionKind:t,factory:function(){return e.container.get(n)}}})}t.ActionHandlerRegistry=d,t.configureActionHandler=h},bee8:function(e,t,n){},c146:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("987d"),r=function(){function e(e,t){void 0===t&&(t=o.easeInOut),this.context=e,this.ease=t}return e.prototype.start=function(){var e=this;return new Promise(function(t,n){var i=void 0,o=0,r=function(n){var s;o++,void 0===i?(i=n,s=0):s=n-i;var a=Math.min(1,s/e.context.duration),c=e.tween(e.ease(a),e.context);e.context.modelChanged.update(c),1===a?(e.context.logger.log(e,1e3*o/e.context.duration+" fps"),t(c)):e.context.syncer.onNextFrame(r)};if(e.context.syncer.isAvailable())e.context.syncer.onNextFrame(r);else{var s=e.tween(1,e.context);t(s)}})},e}();t.Animation=r;var s=function(e){function t(t,n,i,r){void 0===i&&(i=[]),void 0===r&&(r=o.easeInOut);var s=e.call(this,n,r)||this;return s.model=t,s.context=n,s.components=i,s.ease=r,s}return i(t,e),t.prototype.include=function(e){return this.components.push(e),this},t.prototype.tween=function(e,t){for(var n=0,i=this.components;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("dd02"),c=n("510b"),l=n("9757"),u=n("c146"),d=n("5eb6"),h=n("e1c6"),p=n("6923"),f=n("2f3a"),m=function(){function e(t,n,i){this.elementId=t,this.newViewport=n,this.animate=i,this.kind=e.KIND}return e.KIND="viewport",e}();t.SetViewportAction=m;var g=function(){function e(t){void 0===t&&(t=""),this.requestId=t,this.kind=e.KIND}return e.create=function(){return new e(c.generateRequestId())},e.KIND="getViewport",e}();t.GetViewportAction=g;var v=function(){function e(t,n,i){this.viewport=t,this.canvasBounds=n,this.responseId=i,this.kind=e.KIND}return e.KIND="viewportResult",e}();t.ViewportResult=v;var b=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n.newViewport=t.newViewport,n}var n;return i(t,e),n=t,t.prototype.execute=function(e){var t=e.root,n=t.index.getById(this.action.elementId);if(n&&d.isViewport(n)){if(this.element=n,this.oldViewport={scroll:this.element.scroll,zoom:this.element.zoom},this.action.animate)return new _(this.element,this.oldViewport,this.newViewport,e).start();this.element.scroll=this.newViewport.scroll,this.element.zoom=this.newViewport.zoom}return t},t.prototype.undo=function(e){return new _(this.element,this.newViewport,this.oldViewport,e).start()},t.prototype.redo=function(e){return new _(this.element,this.oldViewport,this.newViewport,e).start()},t.prototype.merge=function(e,t){return!this.action.animate&&e instanceof n&&this.element===e.element&&(this.newViewport=e.newViewport,!0)},t.KIND=m.KIND,t=n=o([h.injectable(),s(0,h.inject(p.TYPES.Action)),r("design:paramtypes",[m])],t),t}(l.MergeableCommand);t.SetViewportCommand=b;var y=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.retrieveResult=function(e){var t,n=e.root;return t=d.isViewport(n)?{scroll:n.scroll,zoom:n.zoom}:{scroll:a.ORIGIN_POINT,zoom:1},new v(t,n.canvasBounds,this.action.requestId)},t.KIND=g.KIND,t=o([s(0,h.inject(p.TYPES.Action)),r("design:paramtypes",[g])],t),t}(f.ModelRequestCommand);t.GetViewportCommand=y;var _=function(e){function t(t,n,i,o){var r=e.call(this,o)||this;return r.element=t,r.oldViewport=n,r.newViewport=i,r.context=o,r.zoomFactor=Math.log(i.zoom/n.zoom),r}return i(t,e),t.prototype.tween=function(e,t){return this.element.scroll={x:(1-e)*this.oldViewport.scroll.x+e*this.newViewport.scroll.x,y:(1-e)*this.oldViewport.scroll.y+e*this.newViewport.scroll.y},this.element.zoom=this.oldViewport.zoom*Math.exp(e*this.zoomFactor),t.root},t}(u.Animation);t.ViewportAnimation=_},c4e6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("bcbd"),s=n("842c"),a=new i.ContainerModule(function(e,t,n){s.configureCommand({bind:e,isBound:n},r.SelectCommand),s.configureCommand({bind:e,isBound:n},r.SelectAllCommand),s.configureCommand({bind:e,isBound:n},r.GetSelectionCommand),e(o.TYPES.KeyListener).to(r.SelectKeyboardListener),e(o.TYPES.MouseListener).to(r.SelectMouseListener)});t.default=a},c4ec:function(e,t,n){var i=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,o=n("4047");e.exports=function(e){var t,n=0,r=!0,s={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(i,function(i){if("="===i)return r=!0,void n++;r?0===n?((o[i]||"/"===e.charAt(e.length-2))&&(s.voidElement=!0),s.name=i):(s.attrs[t]=i.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(s.attrs[t]=t),t=i),n++,r=!1}),s}},c51d:function(e,t,n){},c58e:function(e,t,n){},c5f4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct"},c612:function(e,t,n){"use strict";var i=n("8b1b"),o=n.n(i);o.a},c622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("77d3"),o=function(){function e(e,t,n,o,r){this.id=i.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=r,this.childRequests=[],this.bindings=Array.isArray(o)?o:[o],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,i){var o=new e(t,this.parentContext,this,n,i);return this.childRequests.push(o),o},e}();t.Request=o},c661:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e1c6"),r=function(){function e(){}return e.prototype.isAllowed=function(e){return!0},e=i([o.injectable()],e),e}();t.DefaultDiagramLocker=r},c7c3:function(e,t,n){"use strict";var i=n("3e33"),o=n.n(i);o.a},c807:function(e,t,n){"use strict";var i=n("1300"),o=n("e300"),r=n("183a"),s=n("4cdf"),a=n("0b2d"),c=n("9f5e"),l=n("a568"),u=n("1e8d"),d=n("cef7"),h=n("01d4"),p=n("06f8"),f=n("0af5"),m=n("f623"),g=n("f403"),v=n("4105"),b=n("3e6b"),y=n("5831"),_=n("a43f"),M=n("4a7d"),w=n("6c77"),C=0,S=1,A={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},E=function(e){function t(t,n,i){e.call(this,t),this.features=n,this.mapBrowserEvent=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(d["a"]),O=function(e){function t(t){var n;if(e.call(this,t),this.condition_=t.condition?t.condition:p["h"],this.defaultDeleteCondition_=function(e){return Object(p["a"])(e)&&Object(p["j"])(e)},this.deleteCondition_=t.deleteCondition?t.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:p["c"],this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.modified_=!1,this.rBush_=new M["a"],this.pixelTolerance_=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new b["a"]({source:new y["a"]({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:R(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,Circle:this.writeCircleGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_},this.source_=null,t.source?(this.source_=t.source,n=new o["a"](this.source_.getFeatures()),Object(u["a"])(this.source_,_["a"].ADDFEATURE,this.handleSourceAdd_,this),Object(u["a"])(this.source_,_["a"].REMOVEFEATURE,this.handleSourceRemove_,this)):n=t.features,!n)throw new Error("The modify interaction requires features or a source");this.features_=n,this.features_.forEach(this.addFeature_.bind(this)),Object(u["a"])(this.features_,r["a"].ADD,this.handleFeatureAdd_,this),Object(u["a"])(this.features_,r["a"].REMOVE,this.handleFeatureRemove_,this),this.lastPointerEvent_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.addFeature_=function(e){var t=e.getGeometry();t&&t.getType()in this.SEGMENT_WRITERS_&&this.SEGMENT_WRITERS_[t.getType()].call(this,e,t);var n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),Object(u["a"])(e,h["a"].CHANGE,this.handleFeatureChange_,this)},t.prototype.willModifyFeatures_=function(e){this.modified_||(this.modified_=!0,this.dispatchEvent(new E(A.MODIFYSTART,this.features_,e)))},t.prototype.removeFeature_=function(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),Object(u["c"])(e,h["a"].CHANGE,this.handleFeatureChange_,this)},t.prototype.removeFeatureSegmentData_=function(e){var t=this.rBush_,n=[];t.forEach(function(t){e===t.feature&&n.push(t)});for(var i=n.length-1;i>=0;--i)t.remove(n[i])},t.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.prototype.setActive.call(this,t)},t.prototype.setMap=function(t){this.overlay_.setMap(t),e.prototype.setMap.call(this,t)},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleSourceAdd_=function(e){e.feature&&this.features_.push(e.feature)},t.prototype.handleSourceRemove_=function(e){e.feature&&this.features_.remove(e.feature)},t.prototype.handleFeatureAdd_=function(e){this.addFeature_(e.element)},t.prototype.handleFeatureChange_=function(e){if(!this.changingFeature_){var t=e.target;this.removeFeature_(t),this.addFeature_(t)}},t.prototype.handleFeatureRemove_=function(e){var t=e.element;this.removeFeature_(t)},t.prototype.writePointGeometry_=function(e,t){var n=t.getCoordinates(),i={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),i)},t.prototype.writeMultiPointGeometry_=function(e,t){for(var n=t.getCoordinates(),i=0,o=n.length;i=0;--_)this.insertVertex_.apply(this,o[_])}return!!this.vertexFeature_},t.prototype.handleUpEvent=function(e){for(var t=this.dragSegments_.length-1;t>=0;--t){var n=this.dragSegments_[t][0],i=n.geometry;if(i.getType()===m["a"].CIRCLE){var o=i.getCenter(),r=n.featureSegments[0],s=n.featureSegments[1];r.segment[0]=r.segment[1]=o,s.segment[0]=s.segment[1]=o,this.rBush_.update(Object(f["m"])(o),r),this.rBush_.update(i.getExtent(),s)}else this.rBush_.update(Object(f["b"])(n.segment),n)}return this.modified_&&(this.dispatchEvent(new E(A.MODIFYEND,this.features_,e)),this.modified_=!1),!1},t.prototype.handlePointerMove_=function(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map)},t.prototype.handlePointerAtPixel_=function(e,t){var n=t.getCoordinateFromPixel(e),o=function(e,t){return T(n,e)-T(n,t)},r=Object(f["c"])(Object(f["m"])(n),t.getView().getResolution()*this.pixelTolerance_),s=this.rBush_,a=s.getInExtent(r);if(a.length>0){a.sort(o);var c=a[0],u=c.segment,d=x(n,c),h=t.getPixelFromCoordinate(d),p=Object(l["d"])(e,h);if(p<=this.pixelTolerance_){var g={};if(c.geometry.getType()===m["a"].CIRCLE&&c.index===S)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(d);else{var v=t.getPixelFromCoordinate(u[0]),b=t.getPixelFromCoordinate(u[1]),y=Object(l["h"])(h,v),_=Object(l["h"])(h,b);p=Math.sqrt(Math.min(y,_)),this.snappedToVertex_=p<=this.pixelTolerance_,this.snappedToVertex_&&(d=y>_?u[1]:u[0]),this.createOrUpdateVertexFeature_(d);for(var M=1,w=a.length;M=0;--r)n=h[r],u=n[0],d=Object(i["c"])(u.feature),u.depth&&(d+="-"+u.depth.join("-")),d in p||(p[d]={}),0===n[1]?(p[d].right=u,p[d].index=u.index):1==n[1]&&(p[d].left=u,p[d].index=u.index+1);for(d in p){switch(l=p[d].right,a=p[d].left,s=p[d].index,c=s-1,u=void 0!==a?a:l,c<0&&(c=0),o=u.geometry,t=o.getCoordinates(),e=t,g=!1,o.getType()){case m["a"].MULTI_LINE_STRING:t[u.depth[0]].length>2&&(t[u.depth[0]].splice(s,1),g=!0);break;case m["a"].LINE_STRING:t.length>2&&(t.splice(s,1),g=!0);break;case m["a"].MULTI_POLYGON:e=e[u.depth[1]];case m["a"].POLYGON:e=e[u.depth[0]],e.length>4&&(s==e.length-1&&(s=0),e.splice(s,1),g=!0,0===s&&(e.pop(),e.push(e[0]),c=e.length-1));break;default:}if(g){this.setGeometryCoordinates_(o,t);var v=[];if(void 0!==a&&(this.rBush_.remove(a),v.push(a.segment[0])),void 0!==l&&(this.rBush_.remove(l),v.push(l.segment[1])),void 0!==a&&void 0!==l){var b={depth:u.depth,feature:u.feature,geometry:u.geometry,index:c,segment:v};this.rBush_.insert(Object(f["b"])(b.segment),b)}this.updateSegmentIndices_(o,s,u.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return g},t.prototype.setGeometryCoordinates_=function(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1},t.prototype.updateSegmentIndices_=function(e,t,n,i){this.rBush_.forEachInExtent(e.getExtent(),function(o){o.geometry===e&&(void 0===n||void 0===o.depth||Object(c["b"])(o.depth,n))&&o.index>t&&(o.index+=i)})},t}(v["b"]);function L(e,t){return e.index-t.index}function T(e,t){var n=t.geometry;if(n.getType()===m["a"].CIRCLE){var i=n;if(t.index===S){var o=Object(l["h"])(i.getCenter(),e),r=Math.sqrt(o)-i.getRadius();return r*r}}return Object(l["i"])(e,t.segment)}function x(e,t){var n=t.geometry;return n.getType()===m["a"].CIRCLE&&t.index===S?n.getClosestPoint(e):Object(l["b"])(e,t.segment)}function R(){var e=Object(w["b"])();return function(t,n){return e[m["a"].POINT]}}t["a"]=O},c862:function(e,t,n){},c8c0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.parentContext=e,this.rootRequest=t}return e}();t.Plan=i},c95e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("f4cb"),s=n("0bd8"),a=n("842c"),c=n("be02"),l=n("ed4f"),u=n("c444"),d=n("559d"),h=new i.ContainerModule(function(e,t,n){e(o.TYPES.PopupVNodePostprocessor).to(s.PopupPositionUpdater).inSingletonScope(),e(o.TYPES.MouseListener).to(r.HoverMouseListener),e(o.TYPES.PopupMouseListener).to(r.PopupHoverMouseListener),e(o.TYPES.KeyListener).to(r.HoverKeyListener),e(o.TYPES.HoverState).toConstantValue({mouseOverTimer:void 0,mouseOutTimer:void 0,popupOpen:!1,previousPopupElement:void 0}),e(r.ClosePopupActionHandler).toSelf().inSingletonScope();var i={bind:e,isBound:n};a.configureCommand(i,r.HoverFeedbackCommand),a.configureCommand(i,r.SetPopupModelCommand),c.configureActionHandler(i,r.SetPopupModelCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,l.FitToScreenCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,l.CenterCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,u.SetViewportCommand.KIND,r.ClosePopupActionHandler),c.configureActionHandler(i,d.MoveCommand.KIND,r.ClosePopupActionHandler)});t.default=h},c998:function(e,t,n){"use strict";var i=n("a16f"),o=n.n(i);o.a},cb6e:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,a)}c((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return c([e,t])}}function c(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0})]}})})},t.prototype.getViewport=function(){return s(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:return[4,this.actionDispatcher.request(g.GetViewportAction.create())];case 1:return e=t.sent(),[2,{scroll:e.viewport.scroll,zoom:e.viewport.zoom,canvasBounds:e.canvasBounds}]}})})},t.prototype.submitModel=function(e,t,n){return s(this,void 0,void 0,function(){var i,o;return a(this,function(r){switch(r.label){case 0:return this.viewerOptions.needsClientLayout?[4,this.actionDispatcher.request(m.RequestBoundsAction.create(e))]:[3,3];case 1:return i=r.sent(),o=this.computedBoundsApplicator.apply(this.currentRoot,i),[4,this.doSubmitModel(e,!0,n,o)];case 2:return r.sent(),[3,5];case 3:return[4,this.doSubmitModel(e,t,n)];case 4:r.sent(),r.label=5;case 5:return[2]}})})},t.prototype.doSubmitModel=function(e,t,n,i){return s(this,void 0,void 0,function(){var o,r,s,c,l;return a(this,function(a){switch(a.label){case 0:if(void 0===this.layoutEngine)return[3,6];a.label=1;case 1:return a.trys.push([1,5,,6]),o=this.layoutEngine.layout(e,i),o instanceof Promise?[4,o]:[3,3];case 2:return e=a.sent(),[3,4];case 3:void 0!==o&&(e=o),a.label=4;case 4:return[3,6];case 5:return r=a.sent(),this.logger.error(this,r.toString(),r.stack),[3,6];case 6:return s=this.lastSubmittedModelType,this.lastSubmittedModelType=e.type,n&&n.kind===d.RequestModelAction.KIND&&n.requestId?(c=n,[4,this.actionDispatcher.dispatch(new d.SetModelAction(e,c.requestId))]):[3,8];case 7:return a.sent(),[3,12];case 8:return t&&e.type===s?(l=Array.isArray(t)?t:e,[4,this.actionDispatcher.dispatch(new _.UpdateModelAction(l,!0,n))]):[3,10];case 9:return a.sent(),[3,12];case 10:return[4,this.actionDispatcher.dispatch(new d.SetModelAction(e))];case 11:a.sent(),a.label=12;case 12:return[2]}})})},t.prototype.applyMatches=function(e){var t=this.currentRoot;return y.applyMatches(t,e),this.submitModel(t,e)},t.prototype.addElements=function(e){for(var t=[],n=0,i=e;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("e45b"),r=n("e1c6"),s=n("3623"),a=function(){function e(){}return e.prototype.decorate=function(e,t){if(t.cssClasses)for(var n=0,i=t.cssClasses;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("510b"),l=n("9757"),u=n("6923"),d=n("3b4c"),h=n("1417"),p=n("b669"),f=n("4c18"),m=n("e629"),g=n("cc26"),v=function(){function e(t){this.labelId=t,this.kind=e.KIND}return e.KIND="EditLabel",e}();function b(e){return c.isAction(e)&&e.kind===v.KIND&&"labelId"in e}t.EditLabelAction=v,t.isEditLabelAction=b;var y=function(){function e(t,n){this.labelId=t,this.text=n,this.kind=e.KIND}return e.KIND="applyLabelEdit",e}();t.ApplyLabelEditAction=y;var _=function(){function e(){}return e}();t.ResolvedLabelEdit=_;var M=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t=e.root.index,n=t.getById(this.action.labelId);return n&&g.isEditableLabel(n)&&(this.resolvedLabelEdit={label:n,oldLabel:n.text,newLabel:this.action.text},n.text=this.action.text),e.root},t.prototype.undo=function(e){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.oldLabel),e.root},t.prototype.redo=function(e){return this.resolvedLabelEdit&&(this.resolvedLabelEdit.label.text=this.resolvedLabelEdit.newLabel),e.root},t.KIND=y.KIND,t=o([s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[y])],t),t}(l.Command);t.ApplyLabelEditCommand=M;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.doubleClick=function(e,t){var n=S(e);return n?[new v(n.id)]:[]},t}(d.MouseListener);t.EditLabelMouseListener=w;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){if(p.matchesKeystroke(t,"F2")){var n=m.toArray(e.index.all().filter(function(e){return f.isSelectable(e)&&e.selected})).map(S).filter(function(e){return void 0!==e});if(1===n.length)return[new v(n[0].id)]}return[]},t}(h.KeyListener);function S(e){return g.isEditableLabel(e)?e:g.isWithEditableLabel(e)&&e.editableLabel?e.editableLabel:void 0}t.EditLabelKeyListener=C,t.getEditableLabel=S},ce70:function(e,t,n){},cf13:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.str=e}return e.prototype.startsWith=function(e){return 0===this.str.indexOf(e)},e.prototype.endsWith=function(e){var t="",n=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},n)},e.prototype.contains=function(e){return-1!==this.str.indexOf(e)},e.prototype.equals=function(e){return this.str===e},e.prototype.value=function(){return this.str},e}();t.QueryableString=i},cf61:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("dd02"),l=n("c146"),u=n("9757"),d=n("e7fa"),h=n("3a92"),p=n("559d"),f=n("7d36"),m=n("a0af"),g=n("66f9"),v=n("3b62"),b=n("4c18"),y=n("d084"),_=n("0f4c"),M=n("6923"),w=n("5eb6"),C=n("168d"),S=n("3585"),A=function(){function e(t,n,i){void 0===n&&(n=!0),this.animate=n,this.cause=i,this.kind=e.KIND,void 0!==t.id?this.newRoot=t:this.matches=t}return e.KIND="updateModel",e}();t.UpdateModelAction=A;var E=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t;return void 0!==this.action.newRoot?t=e.modelFactory.createRoot(this.action.newRoot):(t=e.modelFactory.createRoot(e.root),void 0!==this.action.matches&&this.applyMatches(t,this.action.matches,e)),this.oldRoot=e.root,this.newRoot=t,this.performUpdate(this.oldRoot,this.newRoot,e)},t.prototype.performUpdate=function(e,t,n){if(void 0!==this.action.animate&&!this.action.animate||e.id!==t.id)return e.type===t.type&&c.isValidDimension(e.canvasBounds)&&(t.canvasBounds=e.canvasBounds),w.isViewport(e)&&w.isViewport(t)&&(t.zoom=e.zoom,t.scroll=e.scroll),t;var i=void 0;if(void 0===this.action.matches){var o=new y.ModelMatcher;i=o.match(e,t)}else i=this.convertToMatchResult(this.action.matches,e,t);var r=this.computeAnimation(t,i,n);return r instanceof l.Animation?r.start():r},t.prototype.applyMatches=function(e,t,n){for(var i=e.index,o=0,r=t;o=2?new l.CompoundAnimation(e,n,r):1===r.length?r[0]:e},t.prototype.updateElement=function(e,t,n){if(m.isLocateable(e)&&m.isLocateable(t)){var i=e.position,o=t.position;c.almostEquals(i.x,o.x)&&c.almostEquals(i.y,o.y)||(void 0===n.moves&&(n.moves=[]),n.moves.push({element:t,fromPosition:i,toPosition:o}),t.position=i)}g.isSizeable(e)&&g.isSizeable(t)&&(c.isValidDimension(t.bounds)?c.almostEquals(e.bounds.width,t.bounds.width)&&c.almostEquals(e.bounds.height,t.bounds.height)||(void 0===n.resizes&&(n.resizes=[]),n.resizes.push({element:t,fromDimension:{width:e.bounds.width,height:e.bounds.height},toDimension:{width:t.bounds.width,height:t.bounds.height}})):t.bounds={x:t.bounds.x,y:t.bounds.y,width:e.bounds.width,height:e.bounds.height}),e instanceof S.SRoutableElement&&t instanceof S.SRoutableElement&&this.edgeRouterRegistry&&(void 0===n.edgeMementi&&(n.edgeMementi=[]),n.edgeMementi.push({edge:t,before:this.takeSnapshot(e),after:this.takeSnapshot(t)})),b.isSelectable(e)&&b.isSelectable(t)&&(t.selected=e.selected),e instanceof h.SModelRoot&&t instanceof h.SModelRoot&&(t.canvasBounds=e.canvasBounds),e instanceof v.ViewportRootElement&&t instanceof v.ViewportRootElement&&(t.scroll=e.scroll,t.zoom=e.zoom)},t.prototype.takeSnapshot=function(e){var t=this.edgeRouterRegistry.get(e.routerKind);return t.takeSnapshot(e)},t.prototype.createAnimations=function(e,t,n){var i=[];if(e.fades.length>0&&i.push(new d.FadeAnimation(t,e.fades,n,!0)),void 0!==e.moves&&e.moves.length>0){for(var o=new Map,r=0,s=e.moves;r0){for(var c=new Map,l=0,u=e.resizes;l0&&i.push(new p.MorphEdgesAnimation(t,e.edgeMementi,n,!1)),i},t.prototype.undo=function(e){return this.performUpdate(this.newRoot,this.oldRoot,e)},t.prototype.redo=function(e){return this.performUpdate(this.oldRoot,this.newRoot,e)},t.KIND=A.KIND,o([a.inject(C.EdgeRouterRegistry),a.optional(),r("design:type",C.EdgeRouterRegistry)],t.prototype,"edgeRouterRegistry",void 0),t=o([a.injectable(),s(0,a.inject(M.TYPES.Action)),r("design:paramtypes",[A])],t),t}(u.Command);t.UpdateModelCommand=E},cf611:function(e,t,n){"use strict";var i=n("8e08"),o=n.n(i);o.a},cf81:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e34e"),o=n("451f"),r=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new i.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=o.namedConstraint(e),new i.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){var t=null!==e.target&&!e.target.isNamed()&&!e.target.isTagged();return t},new i.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=o.taggedConstraint(e)(t),new i.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return o.typeConstraint(e)(t.parentRequest)},new i.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return o.namedConstraint(e)(t.parentRequest)},new i.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(n){return o.taggedConstraint(e)(t)(n.parentRequest)},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.typeConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.typeConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,o.namedConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,o.namedConstraint(e))},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(n){return o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(n){return!o.traverseAncerstors(n,o.taggedConstraint(e)(t))},new i.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return o.traverseAncerstors(t,e)},new i.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!o.traverseAncerstors(t,e)},new i.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=r},cf98:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("3a92"),r=n("3b4c"),s=n("3623"),a=n("c444"),c=n("5eb6"),l=n("a0af"),u=n("3585");function d(e){return"scroll"in e}t.isScrollable=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.mouseDown=function(e,t){var n=s.findParentByFeature(e,l.isMoveable);if(void 0===n&&!(e instanceof u.SRoutingHandle)){var i=s.findParentByFeature(e,c.isViewport);this.lastScrollPosition=i?{x:t.pageX,y:t.pageY}:void 0}return[]},t.prototype.mouseMove=function(e,t){if(0===t.buttons)this.mouseUp(e,t);else if(this.lastScrollPosition){var n=s.findParentByFeature(e,c.isViewport);if(n){var i=(t.pageX-this.lastScrollPosition.x)/n.zoom,o=(t.pageY-this.lastScrollPosition.y)/n.zoom,r={scroll:{x:n.scroll.x-i,y:n.scroll.y-o},zoom:n.zoom};return this.lastScrollPosition={x:t.pageX,y:t.pageY},[new a.SetViewportAction(n.id,r,!1)]}}return[]},t.prototype.mouseEnter=function(e,t){return e instanceof o.SModelRoot&&0===t.buttons&&this.mouseUp(e,t),[]},t.prototype.mouseUp=function(e,t){return this.lastScrollPosition=void 0,[]},t}(r.MouseListener);t.ScrollMouseListener=h},d084:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("3a92");function o(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}t.forEachMatch=o;var r=function(){function e(){}return e.prototype.match=function(e,t){var n={};return this.matchLeft(e,n),this.matchRight(t,n),n},e.prototype.matchLeft=function(e,t,n){var o=t[e.id];if(void 0!==o?(o.left=e,o.leftParentId=n):(o={left:e,leftParentId:n},t[e.id]=o),i.isParent(e))for(var r=0,s=e.children;r=0&&(void 0!==s.right&&s.leftParentId===s.rightParentId?(c.children.splice(l,1,s.right),a=!0):c.children.splice(l,1)),n.remove(s.left)}}if(!a&&void 0!==s.right&&void 0!==s.rightParentId){var u=n.getById(s.rightParentId);void 0!==u&&(void 0===u.children&&(u.children=[]),u.children.push(s.right))}}}t.ModelMatcher=r,t.applyMatches=s},d14a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("e1c6"),o=n("6923"),r=n("a406"),s=n("0a28"),a=new i.ContainerModule(function(e){e(s.CommandPalette).toSelf().inSingletonScope(),e(o.TYPES.IUIExtension).toService(s.CommandPalette),e(o.TYPES.KeyListener).to(s.CommandPaletteKeyListener),e(r.CommandPaletteActionProviderRegistry).toSelf().inSingletonScope(),e(o.TYPES.ICommandPaletteActionProviderRegistry).toService(r.CommandPaletteActionProviderRegistry)});t.default=a},d17b:function(e,t,n){e.exports=n("e372").Transform},d18c:function(e,t,n){"use strict";var i=n("943d"),o=n.n(i);o.a},d204:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("1979"),o=n("66d7");function r(e,t){return function(n,r,s){var a=new i.Metadata(e,t);"number"===typeof s?o.tagParameter(n,r,s,a):o.tagProperty(n,r,a)}}t.tagged=r},d485:function(e,t,n){e.exports=r;var i=n("faa1").EventEmitter,o=n("3fb5");function r(){i.call(this)}o(r,i),r.Readable=n("e372"),r.Writable=n("2c63"),r.Duplex=n("0960"),r.Transform=n("d17b"),r.PassThrough=n("c2ae"),r.Stream=r,r.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function r(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",r),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",c));var s=!1;function a(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(u(),0===i.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",o),e.removeListener("drain",r),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},d60a:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},d675:function(e,t,n){},d6e2:function(e,t,n){"use strict";var i=n("bab1"),o=n.n(i);o.a},d741:function(e,t,n){},d752:function(e,t,n){var i=n("7726").parseFloat,o=n("aa77").trim;e.exports=1/i(n("fdef")+"-0")!==-1/0?function(e){var t=o(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},d8f5:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("dd02"),c=n("3585"),l=n("869e"),u=n("b7b8"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return i(t,e),n=t,Object.defineProperty(t.prototype,"kind",{get:function(){return n.KIND},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(e){return{minimalPointDistance:2,removeAngleThreshold:.1,standardDistance:20,selfEdgeOffset:.25}},t.prototype.route=function(e){var t,n,i=e.source,o=e.target;if(void 0===i||void 0===o)return[];var r=this.getOptions(e),s=e.routingPoints.length>0?e.routingPoints:[];this.cleanupRoutingPoints(e,s,!1,!1);var c=void 0!==s?s.length:0;if(0===c){var l=a.center(o.bounds);t=this.getTranslatedAnchor(i,l,o.parent,e,e.sourceAnchorCorrection);var u=a.center(i.bounds);n=this.getTranslatedAnchor(o,u,i.parent,e,e.targetAnchorCorrection)}else{var d=s[0];t=this.getTranslatedAnchor(i,d,e.parent,e,e.sourceAnchorCorrection);var h=s[c-1];n=this.getTranslatedAnchor(o,h,e.parent,e,e.targetAnchorCorrection)}var p=[];p.push({kind:"source",x:t.x,y:t.y});for(var f=0;f0&&f=r.minimalPointDistance+(e.sourceAnchorCorrection||0)||f===c-1&&a.maxDistance(m,n)>=r.minimalPointDistance+(e.targetAnchorCorrection||0))&&p.push({kind:"linear",x:m.x,y:m.y,pointIndex:f})}return p.push({kind:"target",x:n.x,y:n.y}),this.filterEditModeHandles(p,e,r)},t.prototype.filterEditModeHandles=function(e,t,n){if(0===t.children.length)return e;var i=0,o=function(){var o=e[i];if(void 0!==o.pointIndex){var r=t.children.find(function(e){return e instanceof c.SRoutingHandle&&"junction"===e.kind&&e.pointIndex===o.pointIndex});if(void 0!==r&&r.editMode&&i>0&&ir)&&e.pointIndex++}),n.addHandle(e,"line","volatile-routing-point",r),n.addHandle(e,"line","volatile-routing-point",r+1),r++),r>=0&&r-1?setImmediate:o.nextTick;y.WritableState=b;var c=Object.create(n("3a7c"));c.inherits=n("3fb5");var l={deprecate:n("b7d1")},u=n("429b"),d=n("a8f0").Buffer,h=i.Uint8Array||function(){};function p(e){return d.from(e)}function f(e){return d.isBuffer(e)||e instanceof h}var m,g=n("4681");function v(){}function b(e,t){s=s||n("b19a"),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,a=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(a||0===a)?a:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function y(e){if(s=s||n("b19a"),!m.call(y,this)&&!(this instanceof s))return new y(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),u.call(this)}function _(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}function M(e,t,n,i){var r=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(i,s),r=!1),r}function w(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,n)),t}function C(e,t,n,i,o,r){if(!n){var s=w(t,i,o);i!==s&&(n=!0,o="buffer",i=s)}var a=t.objectMode?1:i.length;t.length+=a;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var i=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||N(this,i,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("4362"),n("c8ba"))},dd02:function(e,t,n){"use strict";function i(e,t){return{x:e.x+t.x,y:e.y+t.y}}function o(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r(e){return e.width>=0&&e.height>=0}function s(e){return"x"in e&&"y"in e&&"width"in e&&"height"in e}function a(e,n){if(!r(e))return r(n)?n:t.EMPTY_BOUNDS;if(!r(n))return e;var i=Math.min(e.x,n.x),o=Math.min(e.y,n.y),s=Math.max(e.x+(e.width>=0?e.width:0),n.x+(n.width>=0?n.width:0)),a=Math.max(e.y+(e.height>=0?e.height:0),n.y+(n.height>=0?n.height:0));return{x:i,y:o,width:s-i,height:a-o}}function c(e,t){return{x:e.x+t.x,y:e.y+t.y,width:e.width,height:e.height}}function l(e){return{x:e.x+(e.width>=0?.5*e.width:0),y:e.y+(e.height>=0?.5*e.height:0)}}function u(e,t){var n={x:e.x>t.x?t.x:e.x,y:e.y>t.y?t.y:e.y,width:Math.abs(t.x-e.x),height:Math.abs(t.y-e.y)};return l(n)}function d(e,t){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}function h(e,t){var n=t.x-e.x,i=t.y-e.y;return Math.sqrt(n*n+i*i)}function p(e,t){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)}function f(e,t){return Math.max(Math.abs(t.x-e.x),Math.abs(t.y-e.y))}function m(e){return Math.atan2(e.y,e.x)}function g(e,t){var n=Math.sqrt((e.x*e.x+e.y*e.y)*(t.x*t.x+t.y*t.y));if(isNaN(n)||0===n)return NaN;var i=e.x*t.x+e.y*t.y;return Math.acos(i/n)}function v(e,t,n){var r=o(t,e),s=b(r),a={x:s.x*n,y:s.y*n};return i(e,a)}function b(e){var n=y(e);return 0===n||1===n?t.ORIGIN_POINT:{x:e.x/n,y:e.y/n}}function y(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function _(e){return 180*e/Math.PI}function M(e){return e*Math.PI/180}function w(e,t){return Math.abs(e-t)<.001}function C(e,t,n){return{x:(1-n)*e.x+n*t.x,y:(1-n)*e.y+n*t.y}}Object.defineProperty(t,"__esModule",{value:!0}),t.ORIGIN_POINT=Object.freeze({x:0,y:0}),t.add=i,t.subtract=o,t.EMPTY_DIMENSION=Object.freeze({width:-1,height:-1}),t.isValidDimension=r,t.EMPTY_BOUNDS=Object.freeze({x:0,y:0,width:-1,height:-1}),t.isBounds=s,t.combine=a,t.translate=c,t.center=l,t.centerOfLine=u,t.includes=d,function(e){e[e["left"]=0]="left",e[e["right"]=1]="right",e[e["up"]=2]="up",e[e["down"]=3]="down"}(t.Direction||(t.Direction={})),t.euclideanDistance=h,t.manhattanDistance=p,t.maxDistance=f,t.angleOfPoint=m,t.angleBetweenPoints=g,t.shiftTowards=v,t.normalize=b,t.magnitude=y,t.toDegrees=_,t.toRadians=M,t.almostEquals=w,t.linear=C;var S=function(){function e(e){this.bounds=e}return Object.defineProperty(e.prototype,"topPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightPoint",{get:function(){return{x:this.bounds.x+this.bounds.width,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomPoint",{get:function(){return{x:this.bounds.x+this.bounds.width/2,y:this.bounds.y+this.bounds.height}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftPoint",{get:function(){return{x:this.bounds.x,y:this.bounds.y+this.bounds.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topRightSideLine",{get:function(){return new A(this.topPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topLeftSideLine",{get:function(){return new A(this.topPoint,this.leftPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomRightSideLine",{get:function(){return new A(this.bottomPoint,this.rightPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomLeftSideLine",{get:function(){return new A(this.bottomPoint,this.leftPoint)},enumerable:!0,configurable:!0}),e.prototype.closestSideLine=function(e){var t=l(this.bounds);return e.x>t.x?e.y>t.y?this.bottomRightSideLine:this.topRightSideLine:e.y>t.y?this.bottomLeftSideLine:this.topLeftSideLine},e}();t.Diamond=S;var A=function(){function e(e,t){this.p1=e,this.p2=t}return Object.defineProperty(e.prototype,"a",{get:function(){return this.p1.y-this.p2.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.p2.x-this.p1.x},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.p2.x*this.p1.y-this.p1.x*this.p2.y},enumerable:!0,configurable:!0}),e}();function E(e,t){return{x:(e.c*t.b-t.c*e.b)/(e.a*t.b-t.a*e.b),y:(e.a*t.c-t.a*e.c)/(e.a*t.b-t.a*e.b)}}t.PointToPointLine=A,t.intersection=E},dd7b:function(e,t,n){"use strict";function i(e,t,n,i,o){var r=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:i,elm:o,key:r}}n.r(t);var o=i,r=Array.isArray;function s(e){return"string"===typeof e||"number"===typeof e}function a(e){return document.createElement(e)}function c(e,t){return document.createElementNS(e,t)}function l(e){return document.createTextNode(e)}function u(e){return document.createComment(e)}function d(e,t,n){e.insertBefore(t,n)}function h(e,t){e.removeChild(t)}function p(e,t){e.appendChild(t)}function f(e){return e.parentNode}function m(e){return e.nextSibling}function g(e){return e.tagName}function v(e,t){e.textContent=t}function b(e){return e.textContent}function y(e){return 1===e.nodeType}function _(e){return 3===e.nodeType}function M(e){return 8===e.nodeType}var w={createElement:a,createElementNS:c,createTextNode:l,createComment:u,insertBefore:d,removeChild:h,appendChild:p,parentNode:f,nextSibling:m,tagName:g,setTextContent:v,getTextContent:b,isElement:y,isText:_,isComment:M},C=w;function S(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(var i=0;i0?u:l.length,f=d>0?d:l.length,m=-1!==u||-1!==d?l.slice(0,Math.min(p,f)):l,g=e.elm=R(i)&&R(n=i.ns)?c.createElementNS(n,m):c.createElement(m);for(p0&&g.setAttribute("class",l.slice(f+1).replace(/\./g," ")),n=0;nd?(a=null==n[b+1]?null:n[b+1].elm,p(e,a,n,u,b,i)):m(e,t,l,d))}function v(e,t,n){var i,o;R(i=t.data)&&R(o=i.hook)&&R(i=o.prepatch)&&i(e,t);var r=t.elm=e.elm,s=e.children,l=t.children;if(e!==t){if(void 0!==t.data){for(i=0;i=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n("e1c6"),a=n("6923"),c=n("1590"),l=n("1417"),u=n("b669"),d=function(){function e(){this.tools=[],this.defaultTools=[],this.actives=[]}return Object.defineProperty(e.prototype,"managedTools",{get:function(){return this.defaultTools.concat(this.tools)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTools",{get:function(){return this.actives},enumerable:!0,configurable:!0}),e.prototype.disableActiveTools=function(){this.actives.forEach(function(e){return e.disable()}),this.actives.splice(0,this.actives.length)},e.prototype.enableDefaultTools=function(){this.enable(this.defaultTools.map(function(e){return e.id}))},e.prototype.enable=function(e){var t=this;this.disableActiveTools();var n=e.map(function(e){return t.tool(e)});n.forEach(function(e){void 0!==e&&(e.enable(),t.actives.push(e))})},e.prototype.tool=function(e){return this.managedTools.find(function(t){return t.id===e})},e.prototype.registerDefaultTools=function(){for(var e=[],t=0;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("302f"),a=n("3a92"),c=n("3623"),l=n("47b7"),u=n("38e8"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultGraphFeatures=s.createFeatureSet(l.SGraph.DEFAULT_FEATURES),t.defaultNodeFeatures=s.createFeatureSet(l.SNode.DEFAULT_FEATURES),t.defaultPortFeatures=s.createFeatureSet(l.SPort.DEFAULT_FEATURES),t.defaultEdgeFeatures=s.createFeatureSet(l.SEdge.DEFAULT_FEATURES),t.defaultLabelFeatures=s.createFeatureSet(l.SLabel.DEFAULT_FEATURES),t.defaultCompartmentFeatures=s.createFeatureSet(l.SCompartment.DEFAULT_FEATURES),t.defaultButtonFeatures=s.createFeatureSet(u.SButton.DEFAULT_FEATURES),t}return i(t,e),t.prototype.createElement=function(e,t){var n;if(this.registry.hasKey(e.type)){var i=this.registry.get(e.type,void 0);if(!(i instanceof a.SChildElement))throw new Error("Element with type "+e.type+" was expected to be an SChildElement.");n=i}else this.isNodeSchema(e)?(n=new l.SNode,n.features=this.defaultNodeFeatures):this.isPortSchema(e)?(n=new l.SPort,n.features=this.defaultPortFeatures):this.isEdgeSchema(e)?(n=new l.SEdge,n.features=this.defaultEdgeFeatures):this.isLabelSchema(e)?(n=new l.SLabel,n.features=this.defaultLabelFeatures):this.isCompartmentSchema(e)?(n=new l.SCompartment,n.features=this.defaultCompartmentFeatures):this.isButtonSchema(e)?(n=new u.SButton,n.features=this.defaultButtonFeatures):n=new a.SChildElement;return this.initializeChild(n,e,t)},t.prototype.createRoot=function(e){var t;if(this.registry.hasKey(e.type)){var n=this.registry.get(e.type,void 0);if(!(n instanceof a.SModelRoot))throw new Error("Element with type "+e.type+" was expected to be an SModelRoot.");t=n}else this.isGraphSchema(e)?(t=new l.SGraph,t.features=this.defaultGraphFeatures):t=new a.SModelRoot;return this.initializeRoot(t,e)},t.prototype.isGraphSchema=function(e){return"graph"===c.getBasicType(e)},t.prototype.isNodeSchema=function(e){return"node"===c.getBasicType(e)},t.prototype.isPortSchema=function(e){return"port"===c.getBasicType(e)},t.prototype.isEdgeSchema=function(e){return"edge"===c.getBasicType(e)},t.prototype.isLabelSchema=function(e){return"label"===c.getBasicType(e)},t.prototype.isCompartmentSchema=function(e){return"comp"===c.getBasicType(e)},t.prototype.isButtonSchema=function(e){return"button"===c.getBasicType(e)},t=o([r.injectable()],t),t}(s.SModelFactory);t.SGraphFactory=d},e00b:function(e,t,n){"use strict";var i=function(){var e,t,n=this,i=n.$createElement,o=n._self._c||i;return null!==n.dataSummary?o("div",{staticClass:"hv-histogram-container",class:"hv-histogram-"+n.direction,style:(e={},e["min-"+n.colormapStyle]=Math.max(4*n.dataSummary.histogram.length,256)+"px",e),on:{mouseleave:function(e){n.tooltips&&n.setInfoShowed(null)}}},[n.isHorizontal?[n.hasHistogram?o("div",{staticClass:"hv-histogram",class:[null!==n.colormap?"k-with-colormap":""]},n._l(n.dataSummary.histogram,function(e,t){return o("div",{key:t,staticClass:"hv-histogram-col",style:{width:n.histogramWidth+"%"},on:{mouseover:function(e){n.infoShowed={index:t,categories:n.dataSummary.categories,values:n.dataSummary.histogram}}}},[o("q-tooltip",{attrs:{offset:[0,10],delay:500}},[n._v(n._s(n.infoShowed.values[n.infoShowed.index]))]),o("div",{staticClass:"hv-histogram-val",style:{height:n.getHistogramDataHeight(e)+"%"}})],1)})):o("div",{staticClass:"hv-histogram-nodata"},[n._v(n._s(n.$t("label.noHistogramData")))])]:n._e(),n.dataSummary.categories.length>0?o("div",{staticClass:"hv-colormap-container",class:["hv-colormap-container-"+n.direction]},[null!==n.colormap?o("div",{staticClass:"hv-colormap",class:["hv-colormap-"+n.direction],style:(t={},t["min-"+n.colormapStyle]=Math.min(n.colormap.colors.length,256)+"px",t)},n._l(n.colormap.colors,function(e,t){var i;return o("div",{key:t,staticClass:"hv-colormap-col",style:(i={},i[n.colormapStyle]=n.colormapWidth+"%",i["background-color"]=e,i),on:{mouseover:function(e){n.tooltips&&(n.infoShowed={index:t,categories:[],values:n.colormap.labels})}}})})):n._e(),n.legend&&n.dataSummary.categories.length>0?o("div",{staticClass:"hv-legend hv-categories full-height"},[n._l(n.dataSummary.categories,function(e,t){return o("div",{key:t,staticClass:"hv-category",style:{"line-height":n.calculateFontSize()+"px","font-size":n.calculateFontSize()+"px"}},[n.dataSummary.categorized?o("span",[n._v(n._s(e))]):o("span",[n._v(n._s(e.split(" ")[0]))])])}),n.dataSummary.categorized?n._e():o("div",{staticClass:"hv-category"},[n._v(n._s(n.histogramMax))])],2):n._e()]):n._e(),n.tooltips?o("div",{staticClass:"hv-data-details-container",class:{"hv-details-nodata":!n.hasHistogram&&null==n.colormap}},[o("div",{staticClass:"hv-histogram-min hv-data-details",on:{mouseover:function(e){n.tooltipIt(e,"q-hmin"+n.id+"-"+n.infoShowed.index)}}},[n._v(n._s(n.histogramMin)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:n.needTooltip("q-hmin"+n.id+"-"+n.infoShowed.index),expression:"needTooltip(`q-hmin${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip"},[n._v(n._s(n.histogramMin))])],1),-1===n.infoShowed.index?[o("div",{staticClass:"hv-data-nodetail hv-data-details"},[n._v(n._s(n.$t("label.noInfoValues")))])]:[o("div",{staticClass:"hv-data-value hv-data-details",on:{mouseover:function(e){n.tooltipIt(e,"q-hdata"+n.id+"-"+n.infoShowed.index)}}},[n._v("\n "+n._s(n.infoShowedText)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:n.needTooltip("q-hdata"+n.id+"-"+n.infoShowed.index),expression:"needTooltip(`q-hdata${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip",attrs:{anchor:"center right",self:"center left",offset:[10,10]}},[n._v("\n "+n._s(n.infoShowedText)+"\n ")])],1)],o("div",{staticClass:"hv-histogram-max hv-data-details",on:{mouseover:function(e){n.tooltipIt(e,"q-hmax"+n.id+"-"+n.infoShowed.index)}}},[n._v(n._s(n.histogramMax)+"\n "),o("q-tooltip",{directives:[{name:"show",rawName:"v-show",value:n.needTooltip("q-hmax"+n.id+"-"+n.infoShowed.index),expression:"needTooltip(`q-hmax${id}-${infoShowed.index}`)"}],staticClass:"hv-tooltip"},[n._v(n._s(n.histogramMax))])],1)],2):n._e()],2):n._e()},o=[];i._withStripped=!0;var r=n("3156"),s=n.n(r),a=(n("ac6a"),n("cadf"),n("2cee")),c=n("7cca"),l=n("abcf"),u=l["b"].height,d={name:"HistogramViewer",props:{dataSummary:{type:Object,required:!0},colormap:Object,id:{type:String,default:""},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},tooltips:{type:Boolean,default:!0},legend:{type:Boolean,default:!1}},mixins:[a["a"]],data:function(){return{infoShowed:{index:-1,categories:[],values:[]}}},computed:{hasHistogram:function(){return this.dataSummary.histogram.length>0},isHorizontal:function(){return"horizontal"===this.direction},maxHistogramValue:function(){return Math.max.apply(null,this.dataSummary.histogram)},histogramWidth:function(){return 100/this.dataSummary.histogram.length},histogramMin:function(){return"NaN"===this.dataSummary.minValue||this.dataSummary.categorized?"":Math.round(100*this.dataSummary.minValue)/100},histogramMax:function(){return"NaN"===this.dataSummary.maxValue||this.dataSummary.categorized?"":Math.round(100*this.dataSummary.maxValue)/100},colormapWidth:function(){return 100/this.colormap.colors.length},infoShowedText:function(){var e;return this.infoShowed.categories.length>0&&(e=this.infoShowed.categories[this.infoShowed.index],"undefined"!==typeof e&&null!==e&&""!==e)?e:this.infoShowed.values.length>0&&(e=this.infoShowed.values[this.infoShowed.index],"undefined"!==typeof e&&null!==e&&""!==e)?e:""},colormapStyle:function(){return"horizontal"===this.direction?"width":"height"},categoryHeight:function(){return console.warn(100/this.dataSummary.categories.length+(this.dataSummary.categorized?0:2)),100/(this.dataSummary.categories.length+(this.dataSummary.categorized?0:2))}},methods:{getHistogramDataHeight:function(e){return 100*e/this.maxHistogramValue},setInfoShowed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.infoShowed=null===e?{index:-1,categories:[],values:[]}:s()({},e)},calculateFontSize:function(){var e=document.querySelector(".hv-categories");if(e){var t=u(e);return Math.min(Math.max(t/this.dataSummary.categories.length,6),12)}return 12}},mounted:function(){this.$eventBus.$on(c["h"].SHOW_DATA_INFO,this.setInfoShowed)},beforeDestroy:function(){this.$eventBus.$off(c["h"].SHOW_DATA_INFO,this.setInfoShowed)}},h=d,p=(n("4c12"),n("2877")),f=Object(p["a"])(h,i,o,!1,null,null,null);f.options.__file="HistogramViewer.vue";t["a"]=f.exports},e0d9:function(e,t,n){"use strict";var i=n("ce70"),o=n.n(i);o.a},e1c6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c5f4");t.METADATA_KEY=i;var o=n("f457");t.Container=o.Container;var r=n("155f");t.BindingScopeEnum=r.BindingScopeEnum,t.BindingTypeEnum=r.BindingTypeEnum,t.TargetTypeEnum=r.TargetTypeEnum;var s=n("771c");t.AsyncContainerModule=s.AsyncContainerModule,t.ContainerModule=s.ContainerModule;var a=n("719e");t.injectable=a.injectable;var c=n("d204");t.tagged=c.tagged;var l=n("6730");t.named=l.named;var u=n("624f");t.inject=u.inject,t.LazyServiceIdentifer=u.LazyServiceIdentifer;var d=n("8d8c");t.optional=d.optional;var h=n("9f62");t.unmanaged=h.unmanaged;var p=n("8c88");t.multiInject=p.multiInject;var f=n("a1a5");t.targetName=f.targetName;var m=n("4a4f");t.postConstruct=m.postConstruct;var g=n("c278");t.MetadataReader=g.MetadataReader;var v=n("77d3");t.id=v.id;var b=n("66d7");t.decorate=b.decorate;var y=n("451f");t.traverseAncerstors=y.traverseAncerstors,t.taggedConstraint=y.taggedConstraint,t.namedConstraint=y.namedConstraint,t.typeConstraint=y.typeConstraint;var _=n("ba33");t.getServiceIdentifierAsString=_.getServiceIdentifierAsString;var M=n("efc5");t.multiBindToService=M.multiBindToService},e1cb:function(e,t,n){"use strict";function i(e){return e.hasFeature(t.nameFeature)}function o(e){return i(e)?e.name:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.nameFeature=Symbol("nameableFeature"),t.isNameable=i,t.name=o},e2d7:function(e,t,n){"use strict";var i=n("8ef3"),o=n.n(i);o.a},e325:function(t,n,o){"use strict";var r="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};Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");var i=arguments[1],o=0;while(o>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");var i=arguments[1],o=0;while(o>>0;if(0===i)return!1;var o=0|t,r=Math.max(o>=0?o:i-Math.abs(o),0);function s(e,t){return e===t||"number"===typeof e&&"number"===typeof t&&isNaN(e)&&isNaN(t)}while(rn?(t=e-n,this.element.style.marginLeft=-t+"px"):this.element.style.marginLeft=0,this.scrollLeft=e,this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.scrollHorizontal()},s.prototype.generateColumnsFromRowData=function(e){var t,n,i=[],o=this.table.options.autoColumnsDefinitions;if(e&&e.length){for(var s in t=e[0],t){var a={field:s,title:s},c=t[s];switch("undefined"===typeof c?"undefined":r(c)){case"undefined":n="string";break;case"boolean":n="boolean";break;case"object":n=Array.isArray(c)?"array":"string";break;default:n=isNaN(c)||""===c?c.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?"alphanum":"string":"number";break}a.sorter=n,i.push(a)}if(o)switch("undefined"===typeof o?"undefined":r(o)){case"function":this.table.options.columns=o.call(this.table,i);break;case"object":Array.isArray(o)?i.forEach(function(e){var t=o.find(function(t){return t.field===e.field});t&&Object.assign(e,t)}):i.forEach(function(e){o[e.field]&&Object.assign(e,o[e.field])}),this.table.options.columns=i;break}else this.table.options.columns=i;this.setColumns(this.table.options.columns)}},s.prototype.setColumns=function(e,t){var n=this;while(n.headersElement.firstChild)n.headersElement.removeChild(n.headersElement.firstChild);n.columns=[],n.columnsByIndex=[],n.columnsByField={},n.table.modExists("frozenColumns")&&n.table.modules.frozenColumns.reset(),e.forEach(function(e,t){n._addColumn(e)}),n._reIndexColumns(),n.table.options.responsiveLayout&&n.table.modExists("responsiveLayout",!0)&&n.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!1,!0),n.redraw(!0)},s.prototype._addColumn=function(e,t,n){var i=new c(e,this),o=i.getElement(),r=n?this.findColumnIndex(n):n;if(n&&r>-1){var s=this.columns.indexOf(n.getTopColumn()),a=n.getElement();t?(this.columns.splice(s,0,i),a.parentNode.insertBefore(o,a)):(this.columns.splice(s+1,0,i),a.parentNode.insertBefore(o,a.nextSibling))}else t?(this.columns.unshift(i),this.headersElement.insertBefore(i.getElement(),this.headersElement.firstChild)):(this.columns.push(i),this.headersElement.appendChild(i.getElement())),i.columnRendered();return i},s.prototype.registerColumnField=function(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)},s.prototype.registerColumnPosition=function(e){this.columnsByIndex.push(e)},s.prototype._reIndexColumns=function(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})},s.prototype._verticalAlignHeaders=function(){var e=this,t=0;e.columns.forEach(function(e){var n;e.clearVerticalAlign(),n=e.getHeight(),n>t&&(t=n)}),e.columns.forEach(function(n){n.verticalAlign(e.table.options.columnHeaderVertAlign,t)}),e.rowManager.adjustTableSize()},s.prototype.findColumn=function(e){var t=this;if("object"!=("undefined"===typeof e?"undefined":r(e)))return this.columnsByField[e]||!1;if(e instanceof c)return e;if(e instanceof a)return e._getSelf()||!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement){var n=t.columns.find(function(t){return t.element===e});return n||!1}return!1},s.prototype.getColumnByField=function(e){return this.columnsByField[e]},s.prototype.getColumnsByFieldRoot=function(e){var t=this,n=[];return Object.keys(this.columnsByField).forEach(function(i){var o=i.split(".")[0];o===e&&n.push(t.columnsByField[i])}),n},s.prototype.getColumnByIndex=function(e){return this.columnsByIndex[e]},s.prototype.getFirstVisibileColumn=function(e){e=this.columnsByIndex.findIndex(function(e){return e.visible});return e>-1&&this.columnsByIndex[e]},s.prototype.getColumns=function(){return this.columns},s.prototype.findColumnIndex=function(e){return this.columnsByIndex.findIndex(function(t){return e===t})},s.prototype.getRealColumns=function(){return this.columnsByIndex},s.prototype.traverse=function(e){var t=this;t.columnsByIndex.forEach(function(t,n){e(t,n)})},s.prototype.getDefinitions=function(e){var t=this,n=[];return t.columnsByIndex.forEach(function(t){(!e||e&&t.visible)&&n.push(t.getDefinition())}),n},s.prototype.getDefinitionTree=function(){var e=this,t=[];return e.columns.forEach(function(e){t.push(e.getDefinition(!0))}),t},s.prototype.getComponents=function(e){var t=this,n=[],i=e?t.columns:t.columnsByIndex;return i.forEach(function(e){n.push(e.getComponent())}),n},s.prototype.getWidth=function(){var e=0;return this.columnsByIndex.forEach(function(t){t.visible&&(e+=t.getWidth())}),e},s.prototype.moveColumn=function(e,t,n){this.moveColumnActual(e,t,n),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),t.element.parentNode.insertBefore(e.element,t.element),n&&t.element.parentNode.insertBefore(t.element,e.element),this._verticalAlignHeaders(),this.table.rowManager.reinitialize()},s.prototype.moveColumnActual=function(e,t,n){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,n):this._moveColumnInArray(this.columns,e,t,n),this._moveColumnInArray(this.columnsByIndex,e,t,n,!0),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitialize(!0),this.table.options.columnMoved&&this.table.options.columnMoved.call(this.table,e.getComponent(),this.table.columnManager.getComponents()),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns")},s.prototype._moveColumnInArray=function(e,t,n,i,o){var r,s=this,a=e.indexOf(t),c=[];a>-1&&(e.splice(a,1),r=e.indexOf(n),r>-1?i&&(r+=1):r=a,e.splice(r,0,t),o&&(this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.rowManager.rows.forEach(function(e){c=c.concat(s.table.modules.dataTree.getTreeChildren(e,!1,!0))}),c=c.concat(this.table.rowManager.rows),c.forEach(function(e){if(e.cells.length){var t=e.cells.splice(a,1)[0];e.cells.splice(r,0,t)}})))},s.prototype.scrollToColumn=function(e,t,n){var i=this,o=0,r=0,s=0,a=e.getElement();return new Promise(function(c,l){if("undefined"===typeof t&&(t=i.table.options.scrollToColumnPosition),"undefined"===typeof n&&(n=i.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":s=-i.element.clientWidth/2;break;case"right":s=a.clientWidth-i.headersElement.clientWidth;break}if(!n&&(r=a.offsetLeft,r>0&&r+a.offsetWidthe.rowManager.element.clientHeight&&(t-=e.rowManager.element.offsetWidth-e.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(i){var o,r,s;i.visible&&(o=i.definition.width||0,r="undefined"==typeof i.minWidth?e.table.options.columnMinWidth:parseInt(i.minWidth),s="string"==typeof o?o.indexOf("%")>-1?t/100*parseInt(o):parseInt(o):o,n+=s>r?s:r)}),n},s.prototype.addColumn=function(e,t,n){var i=this;return new Promise(function(o,r){var s=i._addColumn(e,t,n);i._reIndexColumns(),i.table.options.responsiveLayout&&i.table.modExists("responsiveLayout",!0)&&i.table.modules.responsiveLayout.initialize(),i.table.modExists("columnCalcs")&&i.table.modules.columnCalcs.recalc(i.table.rowManager.activeRows),i.redraw(!0),"fitColumns"!=i.table.modules.layout.getMode()&&s.reinitializeWidth(),i._verticalAlignHeaders(),i.table.rowManager.reinitialize(),i.table.options.virtualDomHoz&&i.table.vdomHoz.reinitialize(),o(s)})},s.prototype.deregisterColumn=function(e){var t,n=e.getField();n&&delete this.columnsByField[n],t=this.columnsByIndex.indexOf(e),t>-1&&this.columnsByIndex.splice(t,1),t=this.columns.indexOf(e),t>-1&&this.columns.splice(t,1),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this._verticalAlignHeaders(),this.redraw()},s.prototype.redraw=function(e){e&&(g.prototype.helpers.elVisible(this.element)&&this._verticalAlignHeaders(),this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),["fitColumns","fitDataStretch"].indexOf(this.table.modules.layout.getMode())>-1?this.table.modules.layout.layout():e?this.table.modules.layout.layout():this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout(),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),e&&(this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save("columns"),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.redraw()),this.table.footerManager.redraw()};var a=function(e){this._column=e,this.type="ColumnComponent"};a.prototype.getElement=function(){return this._column.getElement()},a.prototype.getDefinition=function(){return this._column.getDefinition()},a.prototype.getField=function(){return this._column.getField()},a.prototype.getCells=function(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e},a.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._column.visible},a.prototype.isVisible=function(){return this._column.visible},a.prototype.show=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()},a.prototype.hide=function(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()},a.prototype.toggle=function(){this._column.visible?this.hide():this.show()},a.prototype.delete=function(){return this._column.delete()},a.prototype.getSubColumns=function(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e},a.prototype.getParentColumn=function(){return this._column.parent instanceof c&&this._column.parent.getComponent()},a.prototype._getSelf=function(){return this._column},a.prototype.scrollTo=function(){return this._column.table.columnManager.scrollToColumn(this._column)},a.prototype.getTable=function(){return this._column.table},a.prototype.headerFilterFocus=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterFocus(this._column)},a.prototype.reloadHeaderFilter=function(){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.reloadHeaderFilter(this._column)},a.prototype.getHeaderFilterValue=function(){if(this._column.table.modExists("filter",!0))return this._column.table.modules.filter.getHeaderFilterValue(this._column)},a.prototype.setHeaderFilterValue=function(e){this._column.table.modExists("filter",!0)&&this._column.table.modules.filter.setHeaderFilterValue(this._column,e)},a.prototype.move=function(e,t){var n=this._column.table.columnManager.findColumn(e);n?this._column.table.columnManager.moveColumn(this._column,n,t):console.warn("Move Error - No matching column found:",n)},a.prototype.getNextColumn=function(){var e=this._column.nextColumn();return!!e&&e.getComponent()},a.prototype.getPrevColumn=function(){var e=this._column.prevColumn();return!!e&&e.getComponent()},a.prototype.updateDefinition=function(e){return this._column.updateDefinition(e)},a.prototype.getWidth=function(){return this._column.getWidth()},a.prototype.setWidth=function(e){var t;return t=!0===e?this._column.reinitializeWidth(!0):this._column.setWidth(e),this._column.table.options.virtualDomHoz&&this._column.table.vdomHoz.reinitialize(!0),t},a.prototype.validate=function(){return this._column.validate()};var c=function e(t,n){var i=this;this.table=n.table,this.definition=t,this.parent=n,this.type="column",this.columns=[],this.cells=[],this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.isGroup=!1,this.tooltip=!1,this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleFormatterRendered=!1,this.setField(this.definition.field),this.table.options.invalidOptionWarnings&&this.checkDefinition(),this.modules={},this.cellEvents={cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this._mapDepricatedFunctionality(),t.columns?(this.isGroup=!0,t.columns.forEach(function(t,n){var o=new e(t,i);i.attachColumn(o)}),i.checkColumnVisibility()):n.registerColumnField(this),t.rowHandle&&!1!==this.table.options.movableRows&&this.table.modExists("moveRow")&&this.table.modules.moveRow.setHandle(!0),this._buildHeader(),this.bindModuleColumns()};c.prototype.createElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),e},c.prototype.createGroupElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e},c.prototype.checkDefinition=function(){var e=this;Object.keys(this.definition).forEach(function(t){-1===e.defaultOptionList.indexOf(t)&&console.warn("Invalid column definition option in '"+(e.field||e.definition.title)+"' column:",t)})},c.prototype.setField=function(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData},c.prototype.registerColumnPosition=function(e){this.parent.registerColumnPosition(e)},c.prototype.registerColumnField=function(e){this.parent.registerColumnField(e)},c.prototype.reRegisterPosition=function(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)},c.prototype._mapDepricatedFunctionality=function(){"undefined"!==typeof this.definition.hideInHtml&&(this.definition.htmlOutput=!this.definition.hideInHtml,console.warn("hideInHtml column definition property is deprecated, you should now use htmlOutput")),"undefined"!==typeof this.definition.align&&(this.definition.hozAlign=this.definition.align,console.warn("align column definition property is deprecated, you should now use hozAlign")),"undefined"!==typeof this.definition.downloadTitle&&(this.definition.titleDownload=this.definition.downloadTitle,console.warn("downloadTitle definition property is deprecated, you should now use titleDownload"))},c.prototype.setTooltip=function(){var e=this,t=e.definition,n=t.headerTooltip||!1===t.tooltip?t.headerTooltip:e.table.options.tooltipsHeader;n?!0===n?t.field?e.table.modules.localize.bind("columns|"+t.field,function(n){e.element.setAttribute("title",n||t.title)}):e.element.setAttribute("title",t.title):("function"==typeof n&&(n=n(e.getComponent()),!1===n&&(n="")),e.element.setAttribute("title",n)):e.element.setAttribute("title","")},c.prototype._buildHeader=function(){var e=this,t=e.definition;while(e.element.firstChild)e.element.removeChild(e.element.firstChild);t.headerVertical&&(e.element.classList.add("tabulator-col-vertical"),"flip"===t.headerVertical&&e.element.classList.add("tabulator-col-vertical-flip")),e.contentElement=e._bindEvents(),e.contentElement=e._buildColumnHeaderContent(),e.element.appendChild(e.contentElement),e.isGroup?e._buildGroupHeader():e._buildColumnHeader(),e.setTooltip(),e.table.options.resizableColumns&&e.table.modExists("resizeColumns")&&e.table.modules.resizeColumns.initializeColumn("header",e,e.element),t.headerFilter&&e.table.modExists("filter")&&e.table.modExists("edit")&&("undefined"!==typeof t.headerFilterPlaceholder&&t.field&&e.table.modules.localize.setHeaderFilterColumnPlaceholder(t.field,t.headerFilterPlaceholder),e.table.modules.filter.initializeColumn(e)),e.table.modExists("frozenColumns")&&e.table.modules.frozenColumns.initializeColumn(e),e.table.options.movableColumns&&!e.isGroup&&e.table.modExists("moveColumn")&&e.table.modules.moveColumn.initializeColumn(e),(t.topCalc||t.bottomCalc)&&e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.initializeColumn(e),e.table.modExists("persistence")&&e.table.modules.persistence.config.columns&&e.table.modules.persistence.initializeColumn(e),e.element.addEventListener("mouseenter",function(t){e.setTooltip()})},c.prototype._bindEvents=function(){var e,t,n,i=this,o=i.definition;"function"==typeof o.headerClick&&i.element.addEventListener("click",function(e){o.headerClick(e,i.getComponent())}),"function"==typeof o.headerDblClick&&i.element.addEventListener("dblclick",function(e){o.headerDblClick(e,i.getComponent())}),"function"==typeof o.headerContext&&i.element.addEventListener("contextmenu",function(e){o.headerContext(e,i.getComponent())}),"function"==typeof o.headerTap&&(n=!1,i.element.addEventListener("touchstart",function(e){n=!0},{passive:!0}),i.element.addEventListener("touchend",function(e){n&&o.headerTap(e,i.getComponent()),n=!1})),"function"==typeof o.headerDblTap&&(e=null,i.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,o.headerDblTap(t,i.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),"function"==typeof o.headerTapHold&&(t=null,i.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,n=!1,o.headerTapHold(e,i.getComponent())},1e3)},{passive:!0}),i.element.addEventListener("touchend",function(e){clearTimeout(t),t=null})),"function"==typeof o.cellClick&&(i.cellEvents.cellClick=o.cellClick),"function"==typeof o.cellDblClick&&(i.cellEvents.cellDblClick=o.cellDblClick),"function"==typeof o.cellContext&&(i.cellEvents.cellContext=o.cellContext),"function"==typeof o.cellMouseEnter&&(i.cellEvents.cellMouseEnter=o.cellMouseEnter),"function"==typeof o.cellMouseLeave&&(i.cellEvents.cellMouseLeave=o.cellMouseLeave),"function"==typeof o.cellMouseOver&&(i.cellEvents.cellMouseOver=o.cellMouseOver),"function"==typeof o.cellMouseOut&&(i.cellEvents.cellMouseOut=o.cellMouseOut),"function"==typeof o.cellMouseMove&&(i.cellEvents.cellMouseMove=o.cellMouseMove),"function"==typeof o.cellTap&&(i.cellEvents.cellTap=o.cellTap),"function"==typeof o.cellDblTap&&(i.cellEvents.cellDblTap=o.cellDblTap),"function"==typeof o.cellTapHold&&(i.cellEvents.cellTapHold=o.cellTapHold),"function"==typeof o.cellEdited&&(i.cellEvents.cellEdited=o.cellEdited),"function"==typeof o.cellEditing&&(i.cellEvents.cellEditing=o.cellEditing),"function"==typeof o.cellEditCancelled&&(i.cellEvents.cellEditCancelled=o.cellEditCancelled)},c.prototype._buildColumnHeader=function(){var e=this,t=this.definition,n=this.table;if(n.modExists("sort")&&n.modules.sort.initializeColumn(this,this.titleHolderElement),(t.headerContextMenu||t.headerClickMenu||t.headerMenu)&&n.modExists("menu")&&n.modules.menu.initializeColumnHeader(this),n.modExists("format")&&n.modules.format.initializeColumn(this),"undefined"!=typeof t.editor&&n.modExists("edit")&&n.modules.edit.initializeColumn(this),"undefined"!=typeof t.validator&&n.modExists("validate")&&n.modules.validate.initializeColumn(this),n.modExists("mutator")&&n.modules.mutator.initializeColumn(this),n.modExists("accessor")&&n.modules.accessor.initializeColumn(this),r(n.options.responsiveLayout)&&n.modExists("responsiveLayout")&&n.modules.responsiveLayout.initializeColumn(this),"undefined"!=typeof t.visible&&(t.visible?this.show(!0):this.hide(!0)),t.cssClass){var i=t.cssClass.split(" ");i.forEach(function(t){e.element.classList.add(t)})}t.field&&this.element.setAttribute("tabulator-field",t.field),this.setMinWidth("undefined"==typeof t.minWidth?this.table.options.columnMinWidth:parseInt(t.minWidth)),(t.maxWidth||this.table.options.columnMaxWidth)&&!1!==t.maxWidth&&this.setMaxWidth("undefined"==typeof t.maxWidth?this.table.options.columnMaxWidth:parseInt(t.maxWidth)),this.reinitializeWidth(),this.tooltip=this.definition.tooltip||!1===this.definition.tooltip?this.definition.tooltip:this.table.options.tooltips,this.hozAlign="undefined"==typeof this.definition.hozAlign?this.table.options.cellHozAlign:this.definition.hozAlign,this.vertAlign="undefined"==typeof this.definition.vertAlign?this.table.options.cellVertAlign:this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign},c.prototype._buildColumnHeaderContent=function(){this.definition,this.table;var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e},c.prototype._buildColumnHeaderTitle=function(){var e=this,t=e.definition,n=e.table,i=document.createElement("div");if(i.classList.add("tabulator-col-title"),t.editableTitle){var o=document.createElement("input");o.classList.add("tabulator-title-editor"),o.addEventListener("click",function(e){e.stopPropagation(),o.focus()}),o.addEventListener("change",function(){t.title=o.value,n.options.columnTitleChanged.call(e.table,e.getComponent())}),i.appendChild(o),t.field?n.modules.localize.bind("columns|"+t.field,function(e){o.value=e||t.title||" "}):o.value=t.title||" "}else t.field?n.modules.localize.bind("columns|"+t.field,function(n){e._formatColumnHeaderTitle(i,n||t.title||" ")}):e._formatColumnHeaderTitle(i,t.title||" ");return i},c.prototype._formatColumnHeaderTitle=function(e,t){var n,i,o,s,a,c=this;if(this.definition.titleFormatter&&this.table.modExists("format"))switch(n=this.table.modules.format.getFormatter(this.definition.titleFormatter),a=function(e){c.titleFormatterRendered=e},s={getValue:function(){return t},getElement:function(){return e}},o=this.definition.titleFormatterParams||{},o="function"===typeof o?o():o,i=n.call(this.table.modules.format,s,o,a),"undefined"===typeof i?"undefined":r(i)){case"object":i instanceof Node?e.appendChild(i):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));break;case"undefined":case"null":e.innerHTML="";break;default:e.innerHTML=i}else e.innerHTML=t},c.prototype._buildGroupHeader=function(){var e=this;if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var t=this.definition.cssClass.split(" ");t.forEach(function(t){e.element.classList.add(t)})}(this.definition.headerContextMenu||this.definition.headerMenu)&&this.table.modExists("menu")&&this.table.modules.menu.initializeColumnHeader(this),this.titleElement.style.textAlign=this.definition.headerHozAlign||this.table.options.headerHozAlign,this.element.appendChild(this.groupElement)},c.prototype._getFlatData=function(e){return e[this.field]},c.prototype._getNestedData=function(e){for(var t,n=e,i=this.fieldStructure,o=i.length,r=0;r-1&&this.columns.splice(t,1),this.columns.length||this.delete()},c.prototype.setWidth=function(e){this.widthFixed=!0,this.setWidthActual(e)},c.prototype.setWidthActual=function(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(e){e.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()},c.prototype.checkCellHeights=function(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(null!==t.row.getElement().offsetParent?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()})},c.prototype.getWidth=function(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e},c.prototype.getHeight=function(){return this.element.offsetHeight},c.prototype.setMinWidth=function(e){this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(e){e.setMinWidth()})},c.prototype.setMaxWidth=function(e){this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(e){e.setMaxWidth()})},c.prototype.delete=function(){var e=this;return new Promise(function(t,n){e.isGroup&&e.columns.forEach(function(e){e.delete()}),e.table.modExists("edit")&&e.table.modules.edit.currentCell.column===e&&e.table.modules.edit.cancelEdit();for(var i=e.cells.length,o=0;o-1&&this._nextVisibleColumn(e+1)},c.prototype._nextVisibleColumn=function(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)},c.prototype.prevColumn=function(){var e=this.table.columnManager.findColumnIndex(this);return e>-1&&this._prevVisibleColumn(e-1)},c.prototype._prevVisibleColumn=function(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)},c.prototype.reinitializeWidth=function(e){this.widthFixed=!1,"undefined"===typeof this.definition.width||e||this.setWidth(this.definition.width),this.table.modExists("filter")&&this.table.modules.filter.hideHeaderFilterElements(),this.fitToData(),this.table.modExists("filter")&&this.table.modules.filter.showHeaderFilterElements()},c.prototype.fitToData=function(){var e=this;this.widthFixed||(this.element.style.width="",e.cells.forEach(function(e){e.clearWidth()}));var t=this.element.offsetWidth;e.width&&this.widthFixed||(e.cells.forEach(function(e){var n=e.getWidth();n>t&&(t=n)}),t&&e.setWidthActual(t+1))},c.prototype.updateDefinition=function(e){var t=this;return new Promise(function(n,i){var o;t.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),i("Column Update Error - The updateDefinition function is only available on columns, not column groups")):t.parent.isGroup?(console.warn("Column Update Error - The updateDefinition function is only available on ungrouped columns"),i("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(o=Object.assign({},t.getDefinition()),o=Object.assign(o,e),t.table.columnManager.addColumn(o,!1,t).then(function(e){o.field==t.field&&(t.field=!1),t.delete().then(function(){n(e.getComponent())}).catch(function(e){i(e)})}).catch(function(e){i(e)}))})},c.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},c.prototype.defaultOptionList=["title","field","columns","visible","align","hozAlign","vertAlign","width","minWidth","maxWidth","widthGrow","widthShrink","resizable","frozen","responsive","tooltip","cssClass","rowHandle","hideInHtml","print","htmlOutput","sorter","sorterParams","formatter","formatterParams","variableHeight","editable","editor","editorParams","validator","mutator","mutatorParams","mutatorData","mutatorDataParams","mutatorEdit","mutatorEditParams","mutatorClipboard","mutatorClipboardParams","accessor","accessorParams","accessorData","accessorDataParams","accessorDownload","accessorDownloadParams","accessorClipboard","accessorClipboardParams","accessorPrint","accessorPrintParams","accessorHtmlOutput","accessorHtmlOutputParams","clipboard","download","downloadTitle","topCalc","topCalcParams","topCalcFormatter","topCalcFormatterParams","bottomCalc","bottomCalcParams","bottomCalcFormatter","bottomCalcFormatterParams","cellClick","cellDblClick","cellContext","cellTap","cellDblTap","cellTapHold","cellMouseEnter","cellMouseLeave","cellMouseOver","cellMouseOut","cellMouseMove","cellEditing","cellEdited","cellEditCancelled","headerSort","headerSortStartingDir","headerSortTristate","headerClick","headerDblClick","headerContext","headerTap","headerDblTap","headerTapHold","headerTooltip","headerVertical","headerHozAlign","editableTitle","titleFormatter","titleFormatterParams","headerFilter","headerFilterPlaceholder","headerFilterParams","headerFilterEmptyCheck","headerFilterFunc","headerFilterFuncParams","headerFilterLiveFilter","print","headerContextMenu","headerMenu","contextMenu","clickMenu","formatterPrint","formatterPrintParams","formatterClipboard","formatterClipboardParams","formatterHtmlOutput","formatterHtmlOutputParams","titlePrint","titleClipboard","titleHtmlOutput","titleDownload"],c.prototype.getComponent=function(){return this.component||(this.component=new a(this)),this.component};var l=function(e){this.table=e,this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.columnManager=null,this.height=0,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[],this.rowNumColumn=!1,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRederInPosition=!1};l.prototype.createHolderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-tableHolder"),e.setAttribute("tabindex",0),e},l.prototype.createTableElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e},l.prototype.getElement=function(){return this.element},l.prototype.getTableElement=function(){return this.tableElement},l.prototype.getRowPosition=function(e,t){return t?this.activeRows.indexOf(e):this.rows.indexOf(e)},l.prototype.setColumnManager=function(e){this.columnManager=e},l.prototype.initialize=function(){var e=this;e.setRenderMode(),e.element.appendChild(e.tableElement),e.firstRender=!0,e.element.addEventListener("scroll",function(){var t=e.element.scrollLeft;e.scrollLeft!=t&&(e.columnManager.scrollHorizontal(t),e.table.options.groupBy&&e.table.modules.groupRows.scrollHeaders(t),e.table.modExists("columnCalcs")&&e.table.modules.columnCalcs.scrollHorizontal(t),e.table.options.scrollHorizontal(t)),e.scrollLeft=t}),"virtual"===this.renderMode&&e.element.addEventListener("scroll",function(){var t=e.element.scrollTop,n=e.scrollTop>t;e.scrollTop!=t?(e.scrollTop=t,e.scrollVertical(n),"scroll"==e.table.options.ajaxProgressiveLoad&&e.table.modules.ajax.nextPage(e.element.scrollHeight-e.element.clientHeight-t),e.table.options.scrollVertical(t)):e.scrollTop=t})},l.prototype.findRow=function(e){var t=this;if("object"!=("undefined"===typeof e?"undefined":r(e))){if("undefined"==typeof e||null===e)return!1;var n=t.rows.find(function(n){return n.data[t.table.options.index]==e});return n||!1}if(e instanceof h)return e;if(e instanceof d)return e._getSelf()||!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement){var i=t.rows.find(function(t){return t.getElement()===e});return i||!1}return!1},l.prototype.getRowFromDataObject=function(e){var t=this.rows.find(function(t){return t.data===e});return t||!1},l.prototype.getRowFromPosition=function(e,t){return t?this.activeRows[e]:this.rows[e]},l.prototype.scrollToRow=function(e,t,n){var i,o=this,r=this.getDisplayRows().indexOf(e),s=e.getElement(),a=0;return new Promise(function(e,c){if(r>-1){if("undefined"===typeof t&&(t=o.table.options.scrollToRowPosition),"undefined"===typeof n&&(n=o.table.options.scrollToRowIfVisible),"nearest"===t)switch(o.renderMode){case"classic":i=g.prototype.helpers.elOffset(s).top,t=Math.abs(o.element.scrollTop-i)>Math.abs(o.element.scrollTop+o.element.clientHeight-i)?"bottom":"top";break;case"virtual":t=Math.abs(o.vDomTop-r)>Math.abs(o.vDomBottom-r)?"bottom":"top";break}if(!n&&g.prototype.helpers.elVisible(s)&&(a=g.prototype.helpers.elOffset(s).top-g.prototype.helpers.elOffset(o.element).top,a>0&&a-1&&this.activeRows.splice(i,1),n>-1&&this.rows.splice(n,1),this.setActiveRows(this.activeRows),this.displayRowIterator(function(t){var n=t.indexOf(e);n>-1&&t.splice(n,1)}),t||this.reRenderInPosition(),this.regenerateRowNumbers(),this.table.options.rowDeleted.call(this.table,e.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.groupRows.updateGroupRows(!0):this.table.options.pagination&&this.table.modExists("page")?this.refreshActiveData(!1,!1,!0):this.table.options.pagination&&this.table.modExists("page")&&this.refreshActiveData("page")},l.prototype.addRow=function(e,t,n,i){var o=this.addRowActual(e,t,n,i);return this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowAdd",o,{data:e,pos:t,index:n}),o},l.prototype.addRows=function(e,t,n){var i=this,o=this,r=[];return new Promise(function(s,a){t=i.findAddRowPos(t),Array.isArray(e)||(e=[e]),e.length-1,("undefined"==typeof n&&t||"undefined"!==typeof n&&!t)&&e.reverse(),e.forEach(function(e,i){var s=o.addRow(e,t,n,!0);r.push(s)}),i.table.options.groupBy&&i.table.modExists("groupRows")?i.table.modules.groupRows.updateGroupRows(!0):i.table.options.pagination&&i.table.modExists("page")?i.refreshActiveData(!1,!1,!0):i.reRenderInPosition(),i.table.modExists("columnCalcs")&&i.table.modules.columnCalcs.recalc(i.table.rowManager.activeRows),i.regenerateRowNumbers(),s(r)})},l.prototype.findAddRowPos=function(e){return"undefined"===typeof e&&(e=this.table.options.addRowPos),"pos"===e&&(e=!0),"bottom"===e&&(e=!1),e},l.prototype.addRowActual=function(e,t,n,i){var o,r,s=e instanceof h?e:new h(e||{},this),a=this.findAddRowPos(t),c=-1;if(!n&&this.table.options.pagination&&"page"==this.table.options.paginationAddRow&&(r=this.getDisplayRows(),a?r.length?n=r[0]:this.activeRows.length&&(n=this.activeRows[this.activeRows.length-1],a=!1):r.length&&(n=r[r.length-1],a=!(r.length1&&(!n||n&&-1==l.indexOf(n)?a?l[0]!==s&&(n=l[0],this._moveRowInArray(s.getGroup().rows,s,n,!a)):l[l.length-1]!==s&&(n=l[l.length-1],this._moveRowInArray(s.getGroup().rows,s,n,!a)):this._moveRowInArray(s.getGroup().rows,s,n,!a))}return n&&(c=this.rows.indexOf(n)),n&&c>-1?(o=this.activeRows.indexOf(n),this.displayRowIterator(function(e){var t=e.indexOf(n);t>-1&&e.splice(a?t:t+1,0,s)}),o>-1&&this.activeRows.splice(a?o:o+1,0,s),this.rows.splice(a?c:c+1,0,s)):a?(this.displayRowIterator(function(e){e.unshift(s)}),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator(function(e){e.push(s)}),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.activeRows),this.table.options.rowAdded.call(this.table,s.getComponent()),this.table.options.dataChanged&&this.table.options.dataChanged.call(this.table,this.getData()),i||this.reRenderInPosition(),s},l.prototype.moveRow=function(e,t,n){this.table.options.history&&this.table.modExists("history")&&this.table.modules.history.action("rowMove",e,{posFrom:this.getRowPosition(e),posTo:this.getRowPosition(t),to:t,after:n}),this.moveRowActual(e,t,n),this.regenerateRowNumbers(),this.table.options.rowMoved.call(this.table,e.getComponent())},l.prototype.moveRowActual=function(e,t,n){var i=this;if(this._moveRowInArray(this.rows,e,t,n),this._moveRowInArray(this.activeRows,e,t,n),this.displayRowIterator(function(o){i._moveRowInArray(o,e,t,n)}),this.table.options.groupBy&&this.table.modExists("groupRows")){!n&&t instanceof I&&(t=this.table.rowManager.prevDisplayRow(e)||t);var o=t.getGroup(),r=e.getGroup();o===r?this._moveRowInArray(o.rows,e,t,n):(r&&r.removeRow(e),o.insertRow(e,t,n))}},l.prototype._moveRowInArray=function(e,t,n,i){var o,r,s,a;if(t!==n&&(o=e.indexOf(t),o>-1&&(e.splice(o,1),r=e.indexOf(n),r>-1?i?e.splice(r+1,0,t):e.splice(r,0,t):e.splice(o,0,t)),e===this.getDisplayRows())){s=oo?r:o+1;for(var c=s;c<=a;c++)e[c]&&this.styleRow(e[c],c)}},l.prototype.clearData=function(){this.setData([])},l.prototype.getRowIndex=function(e){return this.findRowIndex(e,this.rows)},l.prototype.getDisplayRowIndex=function(e){var t=this.getDisplayRows().indexOf(e);return t>-1&&t},l.prototype.nextDisplayRow=function(e,t){var n=this.getDisplayRowIndex(e),i=!1;return!1!==n&&n-1))&&n},l.prototype.getData=function(e,t){var n=[],i=this.getRows(e);return i.forEach(function(e){"row"==e.type&&n.push(e.getData(t||"data"))}),n},l.prototype.getComponents=function(e){var t=[],n=this.getRows(e);return n.forEach(function(e){t.push(e.getComponent())}),t},l.prototype.getDataCount=function(e){var t=this.getRows(e);return t.length},l.prototype._genRemoteRequest=function(){var e=this,t=this.table,n=t.options,i={};if(t.modExists("page")){if(n.ajaxSorting){var o=this.table.modules.sort.getSort();o.forEach(function(e){delete e.column}),i[this.table.modules.page.paginationDataSentNames.sorters]=o}if(n.ajaxFiltering){var r=this.table.modules.filter.getFilters(!0,!0);i[this.table.modules.page.paginationDataSentNames.filters]=r}this.table.modules.ajax.setParams(i,!0)}t.modules.ajax.sendRequest().then(function(t){e._setDataActual(t,!0)}).catch(function(e){})},l.prototype.filterRefresh=function(){var e=this.table,t=e.options,n=this.scrollLeft;t.ajaxFiltering?"remote"==t.pagination&&e.modExists("page")?(e.modules.page.reset(!0),e.modules.page.setPage(1).then(function(){}).catch(function(){})):t.ajaxProgressiveLoad?e.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData("filter"),this.scrollHorizontal(n)},l.prototype.sorterRefresh=function(e){var t=this.table,n=this.table.options,i=this.scrollLeft;n.ajaxSorting?("remote"==n.pagination||n.progressiveLoad)&&t.modExists("page")?(t.modules.page.reset(!0),t.modules.page.setPage(1).then(function(){}).catch(function(){})):n.ajaxProgressiveLoad?t.modules.ajax.loadData().then(function(){}).catch(function(){}):this._genRemoteRequest():this.refreshActiveData(e?"filter":"sort"),this.scrollHorizontal(i)},l.prototype.scrollHorizontal=function(e){this.scrollLeft=e,this.element.scrollLeft=e,this.table.options.groupBy&&this.table.modules.groupRows.scrollHeaders(e),this.table.modExists("columnCalcs")&&this.table.modules.columnCalcs.scrollHorizontal(e)},l.prototype.refreshActiveData=function(e,t,n){var i,o=this,r=this.table,s=["all","filter","sort","display","freeze","group","tree","page"];if(this.redrawBlock)(!this.redrawBlockRestoreConfig||s.indexOf(e)=0))break;r=a}else if(t-s[a].getElement().offsetTop>=0)o=a;else{if(i=!0,!(n-s[a].getElement().offsetTop>=0))break;r=a}}else o=this.vDomTop,r=this.vDomBottom;return s.slice(o,r+1)},l.prototype.displayRowIterator=function(e){this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length},l.prototype.getRows=function(e){var t;switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!0);break;case"selected":t=this.table.modules.selectRow.selectedRows;break;default:t=this.rows}return t},l.prototype.reRenderInPosition=function(e){if("virtual"==this.getRenderMode())if(this.redrawBlock)e?e():this.redrawBlockRederInPosition=!0;else{for(var t=this.element.scrollTop,n=!1,i=!1,o=this.scrollLeft,r=this.getDisplayRows(),s=this.vDomTop;s<=this.vDomBottom;s++)if(r[s]){var a=t-r[s].getElement().offsetTop;if(!(!1===i||Math.abs(a)this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*m),"group"!==f.type&&(u=!1),i.vDomBottom++,l++}e?(i.vDomTopPad=t?i.vDomRowHeight*this.vDomTop+n:i.scrollTop-c,i.vDomBottomPad=i.vDomBottom==i.displayRowsCount-1?0:Math.max(i.vDomScrollHeight-i.vDomTopPad-a-c,0)):(this.vDomTopPad=0,i.vDomRowHeight=Math.floor((a+c)/l),i.vDomBottomPad=i.vDomRowHeight*(i.displayRowsCount-i.vDomBottom-1),i.vDomScrollHeight=c+a+i.vDomBottomPad-i.height),o.style.paddingTop=i.vDomTopPad+"px",o.style.paddingBottom=i.vDomBottomPad+"px",t&&(this.scrollTop=i.vDomTopPad+c+n-(this.element.scrollWidth>this.element.clientWidth?this.element.offsetHeight-this.element.clientHeight:0)),this.scrollTop=Math.min(this.scrollTop,this.element.scrollHeight-this.height),this.element.scrollWidth>this.element.offsetWidth&&t&&(this.scrollTop+=this.element.offsetHeight-this.element.clientHeight),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,r.scrollTop=this.scrollTop,o.style.minWidth=u?i.table.columnManager.getWidth()+"px":"",i.table.options.groupBy&&"fitDataFill"!=i.table.modules.layout.getMode()&&i.displayRowsCount==i.table.modules.groupRows.countGroups()&&(i.tableElement.style.minWidth=i.table.columnManager.getWidth())}else this.renderEmptyScroll();this.fixedHeight||this.adjustTableSize()},l.prototype.scrollVertical=function(e){var t=this.scrollTop-this.vDomScrollPosTop,n=this.scrollTop-this.vDomScrollPosBottom,i=2*this.vDomWindowBuffer;if(-t>i||n>i){var o=this.scrollLeft;this._virtualRenderFill(Math.floor(this.element.scrollTop/this.element.scrollHeight*this.displayRowsCount)),this.scrollHorizontal(o)}else e?(t<0&&this._addTopRow(-t),n<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(-n):this.vDomScrollPosBottom=this.scrollTop)):(t>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(t):this.vDomScrollPosTop=this.scrollTop),n>=0&&this._addBottomRow(n))},l.prototype._addTopRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.tableElement,i=this.getDisplayRows();if(this.vDomTop){var o=this.vDomTop-1,r=i[o],s=r.getHeight()||this.vDomRowHeight;e>=s&&(this.styleRow(r,o),n.insertBefore(r.getElement(),n.firstChild),r.initialized&&r.heightInitialized||(this.vDomTopNewRows.push(r),r.heightInitialized||r.clearCellHeight()),r.initialize(),this.vDomTopPad-=s,this.vDomTopPad<0&&(this.vDomTopPad=o*this.vDomRowHeight),o||(this.vDomTopPad=0),n.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=s,this.vDomTop--),e=-(this.scrollTop-this.vDomScrollPosTop),r.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*r.getHeight()),t=(i[this.vDomTop-1].getHeight()||this.vDomRowHeight)?this._addTopRow(e,t+1):this._quickNormalizeRowHeight(this.vDomTopNewRows)}},l.prototype._removeTopRow=function(e){var t=this.tableElement,n=this.getDisplayRows()[this.vDomTop],i=n.getHeight()||this.vDomRowHeight;if(e>=i){var o=n.getElement();o.parentNode.removeChild(o),this.vDomTopPad+=i,t.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?i:i+this.vDomWindowBuffer,this.vDomTop++,e=this.scrollTop-this.vDomScrollPosTop,this._removeTopRow(e)}},l.prototype._addBottomRow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.tableElement,i=this.getDisplayRows();if(this.vDomBottom=s&&(this.styleRow(r,o),n.appendChild(r.getElement()),r.initialized&&r.heightInitialized||(this.vDomBottomNewRows.push(r),r.heightInitialized||r.clearCellHeight()),r.initialize(),this.vDomBottomPad-=s,(this.vDomBottomPad<0||o==this.displayRowsCount-1)&&(this.vDomBottomPad=0),n.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=s,this.vDomBottom++),e=this.scrollTop-this.vDomScrollPosBottom,r.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*r.getHeight()),t=(i[this.vDomBottom+1].getHeight()||this.vDomRowHeight)?this._addBottomRow(e,t+1):this._quickNormalizeRowHeight(this.vDomBottomNewRows)}},l.prototype._removeBottomRow=function(e){var t=this.tableElement,n=this.getDisplayRows()[this.vDomBottom],i=n.getHeight()||this.vDomRowHeight;if(e>=i){var o=n.getElement();o.parentNode&&o.parentNode.removeChild(o),this.vDomBottomPad+=i,this.vDomBottomPad<0&&(this.vDomBottomPad=0),t.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=i,this.vDomBottom--,e=-(this.scrollTop-this.vDomScrollPosBottom),this._removeBottomRow(e)}},l.prototype._quickNormalizeRowHeight=function(e){e.forEach(function(e){e.calcHeight()}),e.forEach(function(e){e.setCellHeight()}),e.length=0},l.prototype.normalizeHeight=function(){this.activeRows.forEach(function(e){e.normalizeHeight()})},l.prototype.adjustTableSize=function(){var e,t=this.element.clientHeight;if("virtual"===this.renderMode){var n=Math.floor(this.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));this.fixedHeight?(this.element.style.minHeight="calc(100% - "+n+"px)",this.element.style.height="calc(100% - "+n+"px)",this.element.style.maxHeight="calc(100% - "+n+"px)"):(this.element.style.height="",this.element.style.height=this.table.element.clientHeight-n+"px",this.element.scrollTop=this.scrollTop),this.height=this.element.clientHeight,this.vDomWindowBuffer=this.table.options.virtualDomBuffer||this.height,this.fixedHeight||t==this.element.clientHeight||(e=this.table.modExists("resizeTable"),(e&&!this.table.modules.resizeTable.autoResize||!e)&&this.redraw())}},l.prototype.reinitialize=function(){this.rows.forEach(function(e){e.reinitialize(!0)})},l.prototype.blockRedraw=function(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1},l.prototype.restoreRedraw=function(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.stage,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRederInPosition&&this.reRenderInPosition(),this.redrawBlockRederInPosition=!1},l.prototype.redraw=function(e){var t=this.scrollLeft;this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():("classic"==this.renderMode?this.table.options.groupBy?this.refreshActiveData("group",!1,!1):this._simpleRender():(this.reRenderInPosition(),this.scrollHorizontal(t)),this.displayRowsCount||this.table.options.placeholder&&this.getElement().appendChild(this.table.options.placeholder))},l.prototype.resetScroll=function(){if(this.element.scrollLeft=0,this.element.scrollTop=0,"ie"===this.table.browser){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))};var u=function(e){this.table=e,this.element=this.table.rowManager.tableElement,this.holderEl=this.table.rowManager.element,this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.window=200,this.initialized=!1,this.columns=[],this.compatabilityCheck()&&this.initialize()};u.prototype.compatabilityCheck=function(){var e=this.table.options,t=!1,n=!0;return"fitDataTable"==e.layout&&(console.warn("Horizontal Vitrual DOM is not compatible with fitDataTable layout mode"),n=!1),e.responsiveLayout&&(console.warn("Horizontal Vitrual DOM is not compatible with responsive columns"),n=!1),this.table.rtl&&(console.warn("Horizontal Vitrual DOM is not currently compatible with RTL text direction"),n=!1),e.columns&&(t=e.columns.find(function(e){return e.frozen}),t&&(console.warn("Horizontal Vitrual DOM is not compatible with frozen columns"),n=!1)),n||(e.virtualDomHoz=!1),n},u.prototype.initialize=function(){var e=this;this.holderEl.addEventListener("scroll",function(){var t=e.holderEl.scrollLeft;e.scrollLeft!=t&&(e.scrollLeft=t,e.scroll(t-(e.vDomScrollPosLeft+e.window)))})},u.prototype.deinitialize=function(){this.initialized=!1},u.prototype.clear=function(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0},u.prototype.dataChange=function(){var e,t,n,i=!1,o=0,r=0;if("fitData"===this.table.options.layout){if(this.table.columnManager.columnsByIndex.forEach(function(e){!e.definition.width&&e.visible&&(i=!0)}),i&&i&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.holderEl.clientWidth+this.window,this.table.options.groupBy?(e=this.table.modules.groupRows.getGroups(!1)[0],t=e.getRows(!1)[0]):t=this.table.rowManager.getDisplayRows()[0],t)){n=t.getElement(),t.generateCells(),this.element.appendChild(n);for(r=0;rthis.vDomScrollPosRight)break}for(n.parentNode.removeChild(n),this.fitDataColAvg=Math.floor(o/(r+1)),r;rn.vDomScrollPosLeft&&o.8*this.holderEl.clientWidth?this.reinitialize():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())},u.prototype.colPositionAdjust=function(e,t,n){for(var i=e;i=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=i.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.addColRight())},u.prototype.addColLeft=function(){var e=this.columns[this.leftCol-1];if(e&&e.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){var t=this.table.rowManager.getVisibleRows();t.forEach(function(t){if("group"!==t.type){var n=t.getCell(e);t.getElement().prepend(n.getElement()),n.cellRendered()}}),this.leftCol?this.vDomPadLeft-=e.getWidth():this.vDomPadLeft=0,this.element.style.paddingLeft=this.vDomPadLeft+"px",this.leftCol--,this.addColLeft()}},u.prototype.removeColRight=function(e){var t;e=this.columns[this.rightCol];e&&e.modules.vdomHoz.leftPos>this.vDomScrollPosRight&&(t=this.table.rowManager.getVisibleRows(),e.modules.vdomHoz.visible=!1,t.forEach(function(t){if("group"!==t.type){var n=t.getCell(e);t.getElement().removeChild(n.getElement())}}),this.vDomPadRight+=e.getWidth(),this.element.style.paddingRight=this.vDomPadRight+"px",this.rightCol--,this.removeColRight())},u.prototype.removeColLeft=function(){var e,t=this.columns[this.leftCol];t&&t.modules.vdomHoz.rightPos-1}return!1},d.prototype.treeCollapse=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.collapseRow(this._row)},d.prototype.treeExpand=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.expandRow(this._row)},d.prototype.treeToggle=function(){this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.toggleRow(this._row)},d.prototype.getTreeParent=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeParent(this._row)},d.prototype.getTreeChildren=function(){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.getTreeChildren(this._row,!0)},d.prototype.addTreeChild=function(e,t,n){return!!this._row.table.modExists("dataTree",!0)&&this._row.table.modules.dataTree.addTreeChildRow(this._row,e,t,n)},d.prototype.reformat=function(){return this._row.reinitialize()},d.prototype.getGroup=function(){return this._row.getGroup().getComponent()},d.prototype.getTable=function(){return this._row.table},d.prototype.getNextRow=function(){var e=this._row.nextRow();return e?e.getComponent():e},d.prototype.getPrevRow=function(){var e=this._row.prevRow();return e?e.getComponent():e};var h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"row";this.table=t.table,this.parent=t,this.data={},this.type=n,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.component=null,this.created=!1,this.setData(e)};h.prototype.create=function(){this.created||(this.created=!0,this.generateElement())},h.prototype.createElement=function(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e},h.prototype.getElement=function(){return this.create(),this.element},h.prototype.detachElement=function(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},h.prototype.generateElement=function(){var e,t,n,i=this;this.createElement(),!1!==i.table.options.selectable&&i.table.modExists("selectRow")&&i.table.modules.selectRow.initializeRow(this),!1!==i.table.options.movableRows&&i.table.modExists("moveRow")&&i.table.modules.moveRow.initializeRow(this),!1!==i.table.options.dataTree&&i.table.modExists("dataTree")&&i.table.modules.dataTree.initializeRow(this),"collapse"===i.table.options.responsiveLayout&&i.table.modExists("responsiveLayout")&&i.table.modules.responsiveLayout.initializeRow(this),(i.table.options.rowContextMenu||i.table.options.rowClickMenu)&&this.table.modExists("menu")&&i.table.modules.menu.initializeRow(this),i.table.options.rowClick&&i.element.addEventListener("click",function(e){i.table.options.rowClick(e,i.getComponent())}),i.table.options.rowDblClick&&i.element.addEventListener("dblclick",function(e){i.table.options.rowDblClick(e,i.getComponent())}),i.table.options.rowContext&&i.element.addEventListener("contextmenu",function(e){i.table.options.rowContext(e,i.getComponent())}),i.table.options.rowMouseEnter&&i.element.addEventListener("mouseenter",function(e){i.table.options.rowMouseEnter(e,i.getComponent())}),i.table.options.rowMouseLeave&&i.element.addEventListener("mouseleave",function(e){i.table.options.rowMouseLeave(e,i.getComponent())}),i.table.options.rowMouseOver&&i.element.addEventListener("mouseover",function(e){i.table.options.rowMouseOver(e,i.getComponent())}),i.table.options.rowMouseOut&&i.element.addEventListener("mouseout",function(e){i.table.options.rowMouseOut(e,i.getComponent())}),i.table.options.rowMouseMove&&i.element.addEventListener("mousemove",function(e){i.table.options.rowMouseMove(e,i.getComponent())}),i.table.options.rowTap&&(n=!1,i.element.addEventListener("touchstart",function(e){n=!0},{passive:!0}),i.element.addEventListener("touchend",function(e){n&&i.table.options.rowTap(e,i.getComponent()),n=!1})),i.table.options.rowDblTap&&(e=null,i.element.addEventListener("touchend",function(t){e?(clearTimeout(e),e=null,i.table.options.rowDblTap(t,i.getComponent())):e=setTimeout(function(){clearTimeout(e),e=null},300)})),i.table.options.rowTapHold&&(t=null,i.element.addEventListener("touchstart",function(e){clearTimeout(t),t=setTimeout(function(){clearTimeout(t),t=null,n=!1,i.table.options.rowTapHold(e,i.getComponent())},1e3)},{passive:!0}),i.element.addEventListener("touchend",function(e){clearTimeout(t),t=null}))},h.prototype.generateCells=function(){this.cells=this.table.columnManager.generateCells(this)},h.prototype.initialize=function(e){var t=this;if(this.create(),!this.initialized||e){this.deleteCells();while(this.element.firstChild)this.element.removeChild(this.element.firstChild);this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layoutRow(this),this.generateCells(),this.table.options.virtualDomHoz&&this.table.vdomHoz.initialized?this.table.vdomHoz.initializeRow(this):this.cells.forEach(function(e){t.element.appendChild(e.getElement()),e.cellRendered()}),e&&this.normalizeHeight(),this.table.options.dataTree&&this.table.modExists("dataTree")&&this.table.modules.dataTree.layoutRow(this),"collapse"===this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout")&&this.table.modules.responsiveLayout.layoutRow(this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.table.options.resizableRows&&this.table.modExists("resizeRows")&&this.table.modules.resizeRows.initializeRow(this),this.initialized=!0}else this.table.options.virtualDomHoz&&this.table.vdomHoz.reinitializeRow(this)},h.prototype.reinitializeHeight=function(){this.heightInitialized=!1,this.element&&null!==this.element.offsetParent&&this.normalizeHeight(!0)},h.prototype.reinitialize=function(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&null!==this.element.offsetParent&&this.initialize(!0),this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.getTreeChildren(this,!1,!0).forEach(function(e){e.reinitialize(!0)})},h.prototype.calcHeight=function(e){var t=0,n=this.table.options.resizableRows?this.element.clientHeight:0;this.cells.forEach(function(e){var n=e.getHeight();n>t&&(t=n)}),this.height=e?Math.max(t,n):this.manualHeight?this.height:Math.max(t,n),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight},h.prototype.setCellHeight=function(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0},h.prototype.clearCellHeight=function(){this.cells.forEach(function(e){e.clearHeight()})},h.prototype.normalizeHeight=function(e){e&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()},h.prototype.setHeight=function(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight)},h.prototype.getHeight=function(){return this.outerHeight},h.prototype.getWidth=function(){return this.element.offsetWidth},h.prototype.deleteCell=function(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)},h.prototype.setData=function(e){this.table.modExists("mutator")&&(e=this.table.modules.mutator.transformRow(e,"data")),this.data=e,this.table.options.reactiveData&&this.table.modExists("reactiveData",!0)&&this.table.modules.reactiveData.watchRow(this)},h.prototype.updateData=function(e){var t,n=this,i=this.element&&g.prototype.helpers.elVisible(this.element),o={};return new Promise(function(r,s){for(var a in"string"===typeof e&&(e=JSON.parse(e)),n.table.options.reactiveData&&n.table.modExists("reactiveData",!0)&&n.table.modules.reactiveData.block(),n.table.modExists("mutator")?(o=Object.assign(o,n.data),o=Object.assign(o,e),t=n.table.modules.mutator.transformRow(o,"data",e)):t=e,t)n.data[a]=t[a];for(var a in n.table.options.reactiveData&&n.table.modExists("reactiveData",!0)&&n.table.modules.reactiveData.unblock(),e){var c=n.table.columnManager.getColumnsByFieldRoot(a);c.forEach(function(e){var o=n.getCell(e.getField());if(o){var r=e.getFieldValue(t);o.getValue()!=r&&(o.setValueProcessData(r),i&&o.cellRendered())}})}n.table.options.groupUpdateOnCellEdit&&n.table.options.groupBy&&n.table.modExists("groupRows")&&n.table.modules.groupRows.reassignRowToGroup(n.row),i?(n.normalizeHeight(!0),n.table.options.rowFormatter&&n.table.options.rowFormatter(n.getComponent())):(n.initialized=!1,n.height=0,n.heightStyled=""),!1!==n.table.options.dataTree&&n.table.modExists("dataTree")&&n.table.modules.dataTree.redrawNeeded(e)&&(n.table.modules.dataTree.initializeRow(n),i&&(n.table.modules.dataTree.layoutRow(n),n.table.rowManager.refreshActiveData("tree",!1,!0))),n.table.options.rowUpdated.call(n.table,n.getComponent()),n.table.options.dataChanged&&n.table.options.dataChanged.call(n.table,n.table.rowManager.getData()),r()})},h.prototype.getData=function(e){return e&&this.table.modExists("accessor")?this.table.modules.accessor.transformRow(this,e):this.data},h.prototype.getCell=function(e){var t=!1;return e=this.table.columnManager.findColumn(e),t=this.cells.find(function(t){return t.column===e}),t},h.prototype.getCellIndex=function(e){return this.cells.findIndex(function(t){return t===e})},h.prototype.findNextEditableCell=function(e){var t=!1;if(e0)for(var n=e-1;n>=0;n--){var i=this.cells[n],o=!0;if(i.column.modules.edit&&g.prototype.helpers.elVisible(i.getElement())&&("function"==typeof i.column.modules.edit.check&&(o=i.column.modules.edit.check(i.getComponent())),o)){t=i;break}}return t},h.prototype.getCells=function(){return this.cells},h.prototype.nextRow=function(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1},h.prototype.prevRow=function(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1},h.prototype.moveToRow=function(e,t){var n=this.table.rowManager.findRow(e);n?(this.table.rowManager.moveRowActual(this,n,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)},h.prototype.validate=function(){var e=[];return this.cells.forEach(function(t){t.validate()||e.push(t.getComponent())}),!e.length||e},h.prototype.delete=function(){var e=this;return new Promise(function(t,n){var i,o;e.table.options.history&&e.table.modExists("history")&&(e.table.options.groupBy&&e.table.modExists("groupRows")?(o=e.getGroup().rows,i=o.indexOf(e),i&&(i=o[i-1])):(i=e.table.rowManager.getRowIndex(e),i&&(i=e.table.rowManager.rows[i-1])),e.table.modules.history.action("rowDelete",e,{data:e.getData(),pos:!i,index:i})),e.deleteActual(),t()})},h.prototype.deleteActual=function(e){this.table.rowManager.getRowIndex(this);this.detatchModules(),this.table.options.reactiveData&&this.table.modExists("reactiveData",!0),this.modules.group&&this.modules.group.removeRow(this),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.table.options.dataTree&&this.table.modExists("dataTree",!0)&&this.table.modules.dataTree.rowDelete(this),this.table.modExists("columnCalcs")&&(this.table.options.groupBy&&this.table.modExists("groupRows")?this.table.modules.columnCalcs.recalcRowGroup(this):this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows))},h.prototype.detatchModules=function(){this.table.modExists("selectRow")&&this.table.modules.selectRow._deselectRow(this,!0),this.table.modExists("edit")&&this.table.modules.edit.currentCell.row===this&&this.table.modules.edit.cancelEdit(),this.table.modExists("frozenRows")&&this.table.modules.frozenRows.detachRow(this)},h.prototype.deleteCells=function(){for(var e=this.cells.length,t=0;t",footerElement:!1,index:"id",textDirection:"auto",keybindings:[],tabEndNewRow:!1,invalidOptionWarnings:!0,clipboard:!1,clipboardCopyStyled:!0,clipboardCopyConfig:!1,clipboardCopyFormatter:!1,clipboardCopyRowRange:"active",clipboardPasteParser:"table",clipboardPasteAction:"insert",clipboardCopied:function(){},clipboardPasted:function(){},clipboardPasteError:function(){},downloadDataFormatter:!1,downloadReady:function(e,t){return t},downloadComplete:!1,downloadConfig:{},downloadRowRange:"active",dataTree:!1,dataTreeFilter:!0,dataTreeSort:!0,dataTreeElementColumn:!1,dataTreeBranchElement:!0,dataTreeChildIndent:9,dataTreeChildField:"_children",dataTreeCollapseElement:!1,dataTreeExpandElement:!1,dataTreeStartExpanded:!1,dataTreeRowExpanded:function(){},dataTreeRowCollapsed:function(){},dataTreeChildColumnCalcs:!1,dataTreeSelectPropagate:!1,printAsHtml:!1,printFormatter:!1,printHeader:!1,printFooter:!1,printCopyStyle:!0,printStyled:!0,printVisibleRows:!0,printRowRange:"visible",printConfig:{},addRowPos:"bottom",selectable:"highlight",selectableRangeMode:"drag",selectableRollingSelection:!0,selectablePersistence:!0,selectableCheck:function(e,t){return!0},headerFilterLiveFilterDelay:300,headerFilterPlaceholder:!1,headerVisible:!0,history:!1,locale:!1,langs:{},virtualDom:!0,virtualDomBuffer:0,virtualDomHoz:!1,persistentLayout:!1,persistentSort:!1,persistentFilter:!1,persistenceID:"",persistenceMode:!0,persistenceReaderFunc:!1,persistenceWriterFunc:!1,persistence:!1,responsiveLayout:!1,responsiveLayoutCollapseStartOpen:!0,responsiveLayoutCollapseUseFormatters:!0,responsiveLayoutCollapseFormatter:!1,pagination:!1,paginationSize:!1,paginationInitialPage:1,paginationButtonCount:5,paginationSizeSelector:!1,paginationElement:!1,paginationDataSent:{},paginationDataReceived:{},paginationAddRow:"page",ajaxURL:!1,ajaxURLGenerator:!1,ajaxParams:{},ajaxConfig:"get",ajaxContentType:"form",ajaxRequestFunc:!1,ajaxLoader:!0,ajaxLoaderLoading:!1,ajaxLoaderError:!1,ajaxFiltering:!1,ajaxSorting:!1,ajaxProgressiveLoad:!1,ajaxProgressiveLoadDelay:0,ajaxProgressiveLoadScrollMargin:0,groupBy:!1,groupStartOpen:!0,groupValues:!1,groupUpdateOnCellEdit:!1,groupHeader:!1,groupHeaderPrint:null,groupHeaderClipboard:null,groupHeaderHtmlOutput:null,groupHeaderDownload:null,htmlOutputConfig:!1,movableColumns:!1,movableRows:!1,movableRowsConnectedTables:!1,movableRowsConnectedElements:!1,movableRowsSender:!1,movableRowsReceiver:"insert",movableRowsSendingStart:function(){},movableRowsSent:function(){},movableRowsSentFailed:function(){},movableRowsSendingStop:function(){},movableRowsReceivingStart:function(){},movableRowsReceived:function(){},movableRowsReceivedFailed:function(){},movableRowsReceivingStop:function(){},movableRowsElementDrop:function(){},scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,placeholder:!1,tableBuilding:function(){},tableBuilt:function(){},renderStarted:function(){},renderComplete:function(){},rowClick:!1,rowDblClick:!1,rowContext:!1,rowTap:!1,rowDblTap:!1,rowTapHold:!1,rowMouseEnter:!1,rowMouseLeave:!1,rowMouseOver:!1,rowMouseOut:!1,rowMouseMove:!1,rowContextMenu:!1,rowClickMenu:!1,rowAdded:function(){},rowDeleted:function(){},rowMoved:function(){},rowUpdated:function(){},rowSelectionChanged:function(){},rowSelected:function(){},rowDeselected:function(){},rowResized:function(){},cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1,cellEditing:function(){},cellEdited:function(){},cellEditCancelled:function(){},columnMoved:!1,columnResized:function(){},columnTitleChanged:function(){},columnVisibilityChanged:function(){},htmlImporting:function(){},htmlImported:function(){},dataLoading:function(){},dataLoaded:function(){},dataEdited:!1,dataChanged:!1,ajaxRequesting:function(){},ajaxResponse:!1,ajaxError:function(){},dataFiltering:!1,dataFiltered:!1,dataSorting:function(){},dataSorted:function(){},groupToggleElement:"arrow",groupClosedShowCalcs:!1,dataGrouping:function(){},dataGrouped:!1,groupVisibilityChanged:function(){},groupClick:!1,groupDblClick:!1,groupContext:!1,groupContextMenu:!1,groupClickMenu:!1,groupTap:!1,groupDblTap:!1,groupTapHold:!1,columnCalcs:!0,pageLoaded:function(){},localized:function(){},validationMode:"blocking",validationFailed:function(){},historyUndo:function(){},historyRedo:function(){},scrollHorizontal:function(){},scrollVertical:function(){}},g.prototype.initializeOptions=function(e){if(!1!==e.invalidOptionWarnings)for(var t in e)"undefined"===typeof this.defaultOptions[t]&&console.warn("Invalid table constructor option:",t);for(var t in this.defaultOptions)t in e?this.options[t]=e[t]:Array.isArray(this.defaultOptions[t])?this.options[t]=Object.assign([],this.defaultOptions[t]):"object"===r(this.defaultOptions[t])&&null!==this.defaultOptions[t]?this.options[t]=Object.assign({},this.defaultOptions[t]):this.options[t]=this.defaultOptions[t]},g.prototype.initializeElement=function(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement?(this.element=e,!0):"string"===typeof e?(this.element=document.querySelector(e),!!this.element||(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)},g.prototype.rtlCheck=function(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if("rtl"!==e.direction)break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}},g.prototype._mapDepricatedFunctionality=function(){(this.options.persistentLayout||this.options.persistentSort||this.options.persistentFilter)&&(this.options.persistence||(this.options.persistence={})),this.options.dataEdited&&(console.warn("DEPRECATION WARNING - dataEdited option has been deprecated, please use the dataChanged option instead"),this.options.dataChanged=this.options.dataEdited),this.options.downloadDataFormatter&&console.warn("DEPRECATION WARNING - downloadDataFormatter option has been deprecated"),"undefined"!==typeof this.options.clipboardCopyHeader&&(this.options.columnHeaders=this.options.clipboardCopyHeader,console.warn("DEPRECATION WARNING - clipboardCopyHeader option has been deprecated, please use the columnHeaders property on the clipboardCopyConfig option")),!0!==this.options.printVisibleRows&&(console.warn("printVisibleRows option is deprecated, you should now use the printRowRange option"),this.options.persistence.printRowRange="active"),!0!==this.options.printCopyStyle&&(console.warn("printCopyStyle option is deprecated, you should now use the printStyled option"),this.options.persistence.printStyled=this.options.printCopyStyle),this.options.persistentLayout&&(console.warn("persistentLayout option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.columns&&(this.options.persistence.columns=!0)),this.options.persistentSort&&(console.warn("persistentSort option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.sort&&(this.options.persistence.sort=!0)),this.options.persistentFilter&&(console.warn("persistentFilter option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&"undefined"===typeof this.options.persistence.filter&&(this.options.persistence.filter=!0)),this.options.columnVertAlign&&(console.warn("columnVertAlign option is deprecated, you should now use the columnHeaderVertAlign option"),this.options.columnHeaderVertAlign=this.options.columnVertAlign)},g.prototype._clearSelection=function(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")},g.prototype._create=function(){this._clearObjectPointers(),this._mapDepricatedFunctionality(),this.bindModules(),this.rtlCheck(),"TABLE"===this.element.tagName&&this.modExists("htmlTableImport",!0)&&this.modules.htmlTableImport.parseTable(),this.columnManager=new s(this),this.rowManager=new l(this),this.footerManager=new m(this),this.columnManager.setRowManager(this.rowManager),this.rowManager.setColumnManager(this.columnManager),this.options.virtualDomHoz&&(this.vdomHoz=new u(this)),this._buildElement(),this._loadInitialData()},g.prototype._clearObjectPointers=function(){this.options.columns=this.options.columns.slice(0),this.options.reactiveData||(this.options.data=this.options.data.slice(0))},g.prototype._buildElement=function(){var e=this,t=this.element,n=this.modules,i=this.options;i.tableBuilding.call(this),t.classList.add("tabulator"),t.setAttribute("role","grid");while(t.firstChild)t.removeChild(t.firstChild);for(var o in i.height&&(i.height=isNaN(i.height)?i.height:i.height+"px",t.style.height=i.height),!1!==i.minHeight&&(i.minHeight=isNaN(i.minHeight)?i.minHeight:i.minHeight+"px",t.style.minHeight=i.minHeight),!1!==i.maxHeight&&(i.maxHeight=isNaN(i.maxHeight)?i.maxHeight:i.maxHeight+"px",t.style.maxHeight=i.maxHeight),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modExists("layout",!0)&&n.layout.initialize(i.layout),n.localize.initialize(),!1!==i.headerFilterPlaceholder&&n.localize.setHeaderFilterPlaceholder(i.headerFilterPlaceholder),i.langs)n.localize.installLang(o,i.langs[o]);if(n.localize.setLocale(i.locale),"string"==typeof i.placeholder){var r=document.createElement("div");r.classList.add("tabulator-placeholder");var s=document.createElement("span");s.innerHTML=i.placeholder,r.appendChild(s),i.placeholder=r}if(t.appendChild(this.columnManager.getElement()),t.appendChild(this.rowManager.getElement()),i.footerElement&&this.footerManager.activate(),i.persistence&&this.modExists("persistence",!0)&&n.persistence.initialize(),i.movableRows&&this.modExists("moveRow")&&n.moveRow.initialize(),i.autoColumns&&this.options.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modExists("columnCalcs")&&n.columnCalcs.initialize(),this.columnManager.setColumns(i.columns),i.dataTree&&this.modExists("dataTree",!0)&&n.dataTree.initialize(),this.modExists("frozenRows")&&this.modules.frozenRows.initialize(),(i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.sort||i.initialSort)&&this.modExists("sort",!0)){var a=[];i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.sort?(a=n.persistence.load("sort"),!1===a&&i.initialSort&&(a=i.initialSort)):i.initialSort&&(a=i.initialSort),n.sort.setSort(a)}if((i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.filter||i.initialFilter)&&this.modExists("filter",!0)){var c=[];i.persistence&&this.modExists("persistence",!0)&&n.persistence.config.filter?(c=n.persistence.load("filter"),!1===c&&i.initialFilter&&(c=i.initialFilter)):i.initialFilter&&(c=i.initialFilter),n.filter.setFilter(c)}i.initialHeaderFilter&&this.modExists("filter",!0)&&i.initialHeaderFilter.forEach(function(t){var i=e.columnManager.findColumn(t.field);if(!i)return console.warn("Column Filter Error - No matching column found:",t.field),!1;n.filter.setHeaderFilterValue(i,t.value)}),this.modExists("ajax")&&n.ajax.initialize(),i.pagination&&this.modExists("page",!0)&&n.page.initialize(),i.groupBy&&this.modExists("groupRows",!0)&&n.groupRows.initialize(),this.modExists("keybindings")&&n.keybindings.initialize(),this.modExists("selectRow")&&n.selectRow.clearSelectionData(!0),i.autoResize&&this.modExists("resizeTable")&&n.resizeTable.initialize(),this.modExists("clipboard")&&n.clipboard.initialize(),i.printAsHtml&&this.modExists("print")&&n.print.initialize(),i.tableBuilt.call(this)},g.prototype._loadInitialData=function(){var e=this;if(e.options.pagination&&e.modExists("page"))if(e.modules.page.reset(!0,!0),"local"==e.options.pagination){if(e.options.data.length)e.rowManager.setData(e.options.data,!1,!0);else{if((e.options.ajaxURL||e.options.ajaxURLGenerator)&&e.modExists("ajax"))return void e.modules.ajax.loadData(!1,!0).then(function(){}).catch(function(){e.options.paginationInitialPage&&e.modules.page.setPage(e.options.paginationInitialPage)});e.rowManager.setData(e.options.data,!1,!0)}e.options.paginationInitialPage&&e.modules.page.setPage(e.options.paginationInitialPage)}else e.options.ajaxURL?e.modules.page.setPage(e.options.paginationInitialPage).then(function(){}).catch(function(){}):e.rowManager.setData([],!1,!0);else e.options.data.length?e.rowManager.setData(e.options.data):(e.options.ajaxURL||e.options.ajaxURLGenerator)&&e.modExists("ajax")?e.modules.ajax.loadData(!1,!0).then(function(){}).catch(function(){}):e.rowManager.setData(e.options.data,!1,!0)},g.prototype.destroy=function(){var e=this.element;g.prototype.comms.deregister(this),this.options.reactiveData&&this.modExists("reactiveData",!0)&&this.modules.reactiveData.unwatchData(),this.rowManager.rows.forEach(function(e){e.wipe()}),this.rowManager.rows=[],this.rowManager.activeRows=[],this.rowManager.displayRows=[],this.options.autoResize&&this.modExists("resizeTable")&&this.modules.resizeTable.clearBindings(),this.modExists("keybindings")&&this.modules.keybindings.clearBindings();while(e.firstChild)e.removeChild(e.firstChild);e.classList.remove("tabulator")},g.prototype._detectBrowser=function(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))},g.prototype.blockRedraw=function(){return this.rowManager.blockRedraw()},g.prototype.restoreRedraw=function(){return this.rowManager.restoreRedraw()},g.prototype.setDataFromLocalFile=function(e){var t=this;return new Promise(function(n,i){var o=document.createElement("input");o.type="file",o.accept=e||".json,application/json",o.addEventListener("change",function(e){var r,s=o.files[0],a=new FileReader;a.readAsText(s),a.onload=function(e){try{r=JSON.parse(a.result)}catch(e){return console.warn("File Load Error - File contents is invalid JSON",e),void i(e)}t.setData(r).then(function(e){n(e)}).catch(function(e){n(e)})},a.onerror=function(e){console.warn("File Load Error - Unable to read file"),i()}}),o.click()})},g.prototype.setData=function(e,t,n){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,n,!1,!0)},g.prototype._setData=function(e,t,n,i,o){var r=this;return"string"!==typeof e?e?r.rowManager.setData(e,i,o):r.modExists("ajax")&&(r.modules.ajax.getUrl||r.options.ajaxURLGenerator)?"remote"==r.options.pagination&&r.modExists("page",!0)?(r.modules.page.reset(!0,!0),r.modules.page.setPage(1)):r.modules.ajax.loadData(i,o):r.rowManager.setData([],i,o):0==e.indexOf("{")||0==e.indexOf("[")?r.rowManager.setData(JSON.parse(e),i,o):r.modExists("ajax",!0)?(t&&r.modules.ajax.setParams(t),n&&r.modules.ajax.setConfig(n),r.modules.ajax.setUrl(e),"remote"==r.options.pagination&&r.modExists("page",!0)?(r.modules.page.reset(!0,!0),r.modules.page.setPage(1)):r.modules.ajax.loadData(i,o)):void 0},g.prototype.clearData=function(){this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this.rowManager.clearData()},g.prototype.getData=function(e){return!0===e&&(console.warn("passing a boolean to the getData function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getData(e)},g.prototype.getDataCount=function(e){return!0===e&&(console.warn("passing a boolean to the getDataCount function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getDataCount(e)},g.prototype.searchRows=function(e,t,n){if(this.modExists("filter",!0))return this.modules.filter.search("rows",e,t,n)},g.prototype.searchData=function(e,t,n){if(this.modExists("filter",!0))return this.modules.filter.search("data",e,t,n)},g.prototype.getHtml=function(e,t,n){if(this.modExists("export",!0))return this.modules.export.getHtml(e,t,n)},g.prototype.print=function(e,t,n){if(this.modExists("print",!0))return this.modules.print.printFullscreen(e,t,n)},g.prototype.getAjaxUrl=function(){if(this.modExists("ajax",!0))return this.modules.ajax.getUrl()},g.prototype.replaceData=function(e,t,n){return this.modExists("ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(e,t,n,!0)},g.prototype.updateData=function(e){var t=this,n=this,i=0;return new Promise(function(o,r){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=n.rowManager.findRow(e[n.options.index]);t&&(i++,t.updateData(e).then(function(){i--,i||o()}))}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})},g.prototype.addData=function(e,t,n){var i=this;return new Promise(function(o,r){i.modExists("ajax")&&i.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?i.rowManager.addRows(e,t,n).then(function(e){var t=[];e.forEach(function(e){t.push(e.getComponent())}),o(t)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})},g.prototype.updateOrAddData=function(e){var t=this,n=this,i=[],o=0;return new Promise(function(r,s){t.modExists("ajax")&&t.modules.ajax.blockActiveRequest(),"string"===typeof e&&(e=JSON.parse(e)),e?e.forEach(function(e){var t=n.rowManager.findRow(e[n.options.index]);o++,t?t.updateData(e).then(function(){o--,i.push(t.getComponent()),o||r(i)}):n.rowManager.addRows(e).then(function(e){o--,i.push(e[0].getComponent()),o||r(i)})}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})},g.prototype.getRow=function(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},g.prototype.getRowFromPosition=function(e,t){var n=this.rowManager.getRowFromPosition(e,t);return n?n.getComponent():(console.warn("Find Error - No matching row found:",e),!1)},g.prototype.deleteRow=function(e){var t=this;return new Promise(function(n,i){var o=t,r=0,s=0,a=[];function c(){r++,r==e.length&&s&&(o.rowManager.reRenderInPosition(),n())}Array.isArray(e)||(e=[e]),e.forEach(function(e){var n=t.rowManager.findRow(e,!0);n?a.push(n):(console.warn("Delete Error - No matching row found:",e),i("Delete Error - No matching row found"),c())}),a.sort(function(e,n){return t.rowManager.rows.indexOf(e)>t.rowManager.rows.indexOf(n)?1:-1}),a.forEach(function(e){e.delete().then(function(){s++,c()}).catch(function(e){c(),i(e)})})})},g.prototype.addRow=function(e,t,n){var i=this;return new Promise(function(o,r){"string"===typeof e&&(e=JSON.parse(e)),i.rowManager.addRows(e,t,n).then(function(e){i.modExists("columnCalcs")&&i.modules.columnCalcs.recalc(i.rowManager.activeRows),o(e[0].getComponent())})})},g.prototype.updateOrAddRow=function(e,t){var n=this;return new Promise(function(i,o){var r=n.rowManager.findRow(e);"string"===typeof t&&(t=JSON.parse(t)),r?r.updateData(t).then(function(){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),i(r.getComponent())}).catch(function(e){o(e)}):r=n.rowManager.addRows(t).then(function(e){n.modExists("columnCalcs")&&n.modules.columnCalcs.recalc(n.rowManager.activeRows),i(e[0].getComponent())}).catch(function(e){o(e)})})},g.prototype.updateRow=function(e,t){var n=this;return new Promise(function(i,o){var r=n.rowManager.findRow(e);"string"===typeof t&&(t=JSON.parse(t)),r?r.updateData(t).then(function(){i(r.getComponent())}).catch(function(e){o(e)}):(console.warn("Update Error - No matching row found:",e),o("Update Error - No matching row found"))})},g.prototype.scrollToRow=function(e,t,n){var i=this;return new Promise(function(o,r){var s=i.rowManager.findRow(e);s?i.rowManager.scrollToRow(s,t,n).then(function(){o()}).catch(function(e){r(e)}):(console.warn("Scroll Error - No matching row found:",e),r("Scroll Error - No matching row found"))})},g.prototype.moveRow=function(e,t,n){var i=this.rowManager.findRow(e);i?i.moveToRow(t,n):console.warn("Move Error - No matching row found:",e)},g.prototype.getRows=function(e){return!0===e&&(console.warn("passing a boolean to the getRows function is deprecated, you should now pass the string 'active'"),e="active"),this.rowManager.getComponents(e)},g.prototype.getRowPosition=function(e,t){var n=this.rowManager.findRow(e);return n?this.rowManager.getRowPosition(n,t):(console.warn("Position Error - No matching row found:",e),!1)},g.prototype.copyToClipboard=function(e){this.modExists("clipboard",!0)&&this.modules.clipboard.copy(e)},g.prototype.setColumns=function(e){this.columnManager.setColumns(e)},g.prototype.getColumns=function(e){return this.columnManager.getComponents(e)},g.prototype.getColumn=function(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)},g.prototype.getColumnDefinitions=function(){return this.columnManager.getDefinitionTree()},g.prototype.getColumnLayout=function(){if(this.modExists("persistence",!0))return this.modules.persistence.parseColumns(this.columnManager.getColumns())},g.prototype.setColumnLayout=function(e){return!!this.modExists("persistence",!0)&&(this.columnManager.setColumns(this.modules.persistence.mergeDefinition(this.options.columns,e)),!0)},g.prototype.showColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Show Error - No matching column found:",e),!1;t.show(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},g.prototype.hideColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Hide Error - No matching column found:",e),!1;t.hide(),this.options.responsiveLayout&&this.modExists("responsiveLayout",!0)&&this.modules.responsiveLayout.update()},g.prototype.toggleColumn=function(e){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1;t.visible?t.hide():t.show()},g.prototype.addColumn=function(e,t,n){var i=this;return new Promise(function(o,r){var s=i.columnManager.findColumn(n);i.columnManager.addColumn(e,t,s).then(function(e){o(e.getComponent())}).catch(function(e){r(e)})})},g.prototype.deleteColumn=function(e){var t=this;return new Promise(function(n,i){var o=t.columnManager.findColumn(e);o?o.delete().then(function(){n()}).catch(function(e){i(e)}):(console.warn("Column Delete Error - No matching column found:",e),i())})},g.prototype.updateColumnDefinition=function(e,t){var n=this;return new Promise(function(i,o){var r=n.columnManager.findColumn(e);r?r.updateDefinition(t).then(function(e){i(e)}).catch(function(e){o(e)}):(console.warn("Column Update Error - No matching column found:",e),o())})},g.prototype.moveColumn=function(e,t,n){var i=this.columnManager.findColumn(e),o=this.columnManager.findColumn(t);i?o?this.columnManager.moveColumn(i,o,n):console.warn("Move Error - No matching column found:",o):console.warn("Move Error - No matching column found:",e)},g.prototype.scrollToColumn=function(e,t,n){var i=this;return new Promise(function(o,r){var s=i.columnManager.findColumn(e);s?i.columnManager.scrollToColumn(s,t,n).then(function(){o()}).catch(function(e){r(e)}):(console.warn("Scroll Error - No matching column found:",e),r("Scroll Error - No matching column found"))})},g.prototype.setLocale=function(e){this.modules.localize.setLocale(e)},g.prototype.getLocale=function(){return this.modules.localize.getLocale()},g.prototype.getLang=function(e){return this.modules.localize.getLang(e)},g.prototype.redraw=function(e){this.columnManager.redraw(e),this.rowManager.redraw(e)},g.prototype.setHeight=function(e){"classic"!==this.rowManager.renderMode?(this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.setRenderMode(),this.rowManager.redraw()):console.warn("setHeight function is not available in classic render mode")},g.prototype.setSort=function(e,t){this.modExists("sort",!0)&&(this.modules.sort.setSort(e,t),this.rowManager.sorterRefresh())},g.prototype.getSorters=function(){if(this.modExists("sort",!0))return this.modules.sort.getSort()},g.prototype.clearSort=function(){this.modExists("sort",!0)&&(this.modules.sort.clear(),this.rowManager.sorterRefresh())},g.prototype.setFilter=function(e,t,n,i){this.modExists("filter",!0)&&(this.modules.filter.setFilter(e,t,n,i),this.rowManager.filterRefresh())},g.prototype.refreshFilter=function(){this.modExists("filter",!0)&&this.rowManager.filterRefresh()},g.prototype.addFilter=function(e,t,n,i){this.modExists("filter",!0)&&(this.modules.filter.addFilter(e,t,n,i),this.rowManager.filterRefresh())},g.prototype.getFilters=function(e){if(this.modExists("filter",!0))return this.modules.filter.getFilters(e)},g.prototype.setHeaderFilterFocus=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(!t)return console.warn("Column Filter Focus Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterFocus(t)}},g.prototype.getHeaderFilterValue=function(e){if(this.modExists("filter",!0)){var t=this.columnManager.findColumn(e);if(t)return this.modules.filter.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}},g.prototype.setHeaderFilterValue=function(e,t){if(this.modExists("filter",!0)){var n=this.columnManager.findColumn(e);if(!n)return console.warn("Column Filter Error - No matching column found:",e),!1;this.modules.filter.setHeaderFilterValue(n,t)}},g.prototype.getHeaderFilters=function(){if(this.modExists("filter",!0))return this.modules.filter.getHeaderFilters()},g.prototype.removeFilter=function(e,t,n){this.modExists("filter",!0)&&(this.modules.filter.removeFilter(e,t,n),this.rowManager.filterRefresh())},g.prototype.clearFilter=function(e){this.modExists("filter",!0)&&(this.modules.filter.clearFilter(e),this.rowManager.filterRefresh())},g.prototype.clearHeaderFilter=function(){this.modExists("filter",!0)&&(this.modules.filter.clearHeaderFilter(),this.rowManager.filterRefresh())},g.prototype.selectRow=function(e){this.modExists("selectRow",!0)&&(!0===e&&(console.warn("passing a boolean to the selectRowselectRow function is deprecated, you should now pass the string 'active'"),e="active"),this.modules.selectRow.selectRows(e))},g.prototype.deselectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.deselectRows(e)},g.prototype.toggleSelectRow=function(e){this.modExists("selectRow",!0)&&this.modules.selectRow.toggleRow(e)},g.prototype.getSelectedRows=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedRows()},g.prototype.getSelectedData=function(){if(this.modExists("selectRow",!0))return this.modules.selectRow.getSelectedData()},g.prototype.getInvalidCells=function(){if(this.modExists("validate",!0))return this.modules.validate.getInvalidCells()},g.prototype.clearCellValidation=function(e){var t=this;this.modExists("validate",!0)&&(e||(e=this.modules.validate.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach(function(e){t.modules.validate.clearValidation(e._getSelf())}))},g.prototype.validate=function(e){var t=[];return this.rowManager.rows.forEach(function(e){var n=e.validate();!0!==n&&(t=t.concat(n))}),!t.length||t},g.prototype.setMaxPage=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setMaxPage(e)},g.prototype.setPage=function(e){return this.options.pagination&&this.modExists("page")?this.modules.page.setPage(e):new Promise(function(e,t){t()})},g.prototype.setPageToRow=function(e){var t=this;return new Promise(function(n,i){t.options.pagination&&t.modExists("page")?(e=t.rowManager.findRow(e),e?t.modules.page.setPageToRow(e).then(function(){n()}).catch(function(){i()}):i()):i()})},g.prototype.setPageSize=function(e){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.setPageSize(e),this.modules.page.setPage(1).then(function(){}).catch(function(){})},g.prototype.getPageSize=function(){if(this.options.pagination&&this.modExists("page",!0))return this.modules.page.getPageSize()},g.prototype.previousPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.previousPage()},g.prototype.nextPage=function(){if(!this.options.pagination||!this.modExists("page"))return!1;this.modules.page.nextPage()},g.prototype.getPage=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPage()},g.prototype.getPageMax=function(){return!(!this.options.pagination||!this.modExists("page"))&&this.modules.page.getPageMax()},g.prototype.setGroupBy=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupBy=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},g.prototype.setGroupValues=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupValues=e,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData("display"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")},g.prototype.setGroupStartOpen=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupStartOpen=e,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},g.prototype.setGroupHeader=function(e){if(!this.modExists("groupRows",!0))return!1;this.options.groupHeader=e,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData("group"),this.options.persistence&&this.modExists("persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save("group")):console.warn("Grouping Update - cant refresh view, no groups have been set")},g.prototype.getGroups=function(e){return!!this.modExists("groupRows",!0)&&this.modules.groupRows.getGroups(!0)},g.prototype.getGroupedData=function(){if(this.modExists("groupRows",!0))return this.options.groupBy?this.modules.groupRows.getGroupedData():this.getData()},g.prototype.getEditedCells=function(){if(this.modExists("edit",!0))return this.modules.edit.getEditedCells()},g.prototype.clearCellEdited=function(e){var t=this;this.modExists("edit",!0)&&(e||(e=this.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach(function(e){t.modules.edit.clearEdited(e._getSelf())}))},g.prototype.getCalcResults=function(){return!!this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.getResults()},g.prototype.recalc=function(){this.modExists("columnCalcs",!0)&&this.modules.columnCalcs.recalcAll(this.rowManager.activeRows)},g.prototype.navigatePrev=function(){var e=!1;return!(!this.modExists("edit",!0)||(e=this.modules.edit.currentCell,!e))&&e.nav().prev()},g.prototype.navigateNext=function(){var e=!1;return!(!this.modExists("edit",!0)||(e=this.modules.edit.currentCell,!e))&&e.nav().next()},g.prototype.navigateLeft=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().left())},g.prototype.navigateRight=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().right())},g.prototype.navigateUp=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().up())},g.prototype.navigateDown=function(){var t=!1;return!(!this.modExists("edit",!0)||(t=this.modules.edit.currentCell,!t))&&(e.preventDefault(),t.nav().down())},g.prototype.undo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.undo()},g.prototype.redo=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.redo()},g.prototype.getHistoryUndoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryUndoSize()},g.prototype.getHistoryRedoSize=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.getHistoryRedoSize()},g.prototype.clearHistory=function(){return!(!this.options.history||!this.modExists("history",!0))&&this.modules.history.clear()},g.prototype.download=function(e,t,n,i){this.modExists("download",!0)&&this.modules.download.download(e,t,n,i)},g.prototype.downloadToTab=function(e,t,n,i){this.modExists("download",!0)&&this.modules.download.download(e,t,n,i,!0)},g.prototype.tableComms=function(e,t,n,i){this.modules.comms.receive(e,t,n,i)},g.prototype.moduleBindings={},g.prototype.extendModule=function(e,t,n){if(g.prototype.moduleBindings[e]){var i=g.prototype.moduleBindings[e].prototype[t];if(i)if("object"==("undefined"===typeof n?"undefined":r(n)))for(var o in n)i[o]=n[o];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)},g.prototype.registerModule=function(e,t){g.prototype.moduleBindings[e]=t},g.prototype.bindModules=function(){for(var e in this.modules={},g.prototype.moduleBindings)this.modules[e]=new g.prototype.moduleBindings[e](this)},g.prototype.modExists=function(e,t){return!!this.modules[e]||(t&&console.error("Tabulator Module Not Installed: "+e),!1)},g.prototype.helpers={elVisible:function(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)},elOffset:function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}},deepClone:function(e){var t=Object.assign(Array.isArray(e)?[]:{},e);for(var n in e)null!=e[n]&&"object"===r(e[n])&&(e[n]instanceof Date?t[n]=new Date(e[n]):t[n]=this.deepClone(e[n]));return t}},g.prototype.comms={tables:[],register:function(e){g.prototype.comms.tables.push(e)},deregister:function(e){var t=g.prototype.comms.tables.indexOf(e);t>-1&&g.prototype.comms.tables.splice(t,1)},lookupTable:function(e,t){var n,i,o=[];if("string"===typeof e){if(n=document.querySelectorAll(e),n.length)for(var r=0;r0?r.setWidth(o):r.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:function(e){var t=this,n=t.table.element.clientWidth,i=0,o=0,r=0,s=0,a=[],c=[],l=0,u=0,d=0;function h(e){var t;return t="string"==typeof e?e.indexOf("%")>-1?n/100*parseInt(e):parseInt(e):e,t}function p(e,t,n,i){var o=[],s=0,a=0,c=0,l=r,u=0,d=0,f=[];function m(e){return n*(e.column.definition.widthGrow||1)}function g(e){return h(e.width)-n*(e.column.definition.widthShrink||0)}return e.forEach(function(e,r){var s=i?g(e):m(e);e.column.minWidth>=s?o.push(e):e.column.maxWidth&&e.column.maxWidththis.table.rowManager.element.clientHeight&&(n-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),e.forEach(function(e){var t,n,o;e.visible&&(t=e.definition.width,n=parseInt(e.minWidth),t?(o=h(t),i+=o>n?o:n,e.definition.widthShrink&&(c.push({column:e,width:o>n?o:n}),l+=e.definition.widthShrink)):(a.push({column:e,width:0}),r+=e.definition.widthGrow||1))}),o=n-i,s=Math.floor(o/r);d=p(a,o,s,!1);a.length&&d>0&&(a[a.length-1].width+=+d),a.forEach(function(e){o-=e.width}),u=Math.abs(d)+o,u>0&&l&&(d=p(c,u,Math.floor(u/l),!0)),c.length&&(c[c.length-1].width-=d),a.forEach(function(e){e.column.setWidth(e.width)}),c.forEach(function(e){e.column.setWidth(e.width)})}},g.prototype.registerModule("layout",v);var b=function(e){this.table=e,this.locale="default",this.lang=!1,this.bindings={},this.langList={}};b.prototype.initialize=function(){this.langList=g.prototype.helpers.deepClone(this.langs)},b.prototype.setHeaderFilterPlaceholder=function(e){this.langList.default.headerFilters.default=e},b.prototype.setHeaderFilterColumnPlaceholder=function(e,t){this.langList.default.headerFilters.columns[e]=t,this.lang&&!this.lang.headerFilters.columns[e]&&(this.lang.headerFilters.columns[e]=t)},b.prototype.installLang=function(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t},b.prototype._setLangProp=function(e,t){for(var n in t)e[n]&&"object"==r(e[n])?this._setLangProp(e[n],t[n]):e[n]=t[n]},b.prototype.setLocale=function(e){var t=this;function n(e,t){for(var i in e)"object"==r(e[i])?(t[i]||(t[i]={}),n(e[i],t[i])):t[i]=e[i]}if(e=e||"default",!0===e&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!t.langList[e]){var i=e.split("-")[0];t.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}t.locale=e,t.lang=g.prototype.helpers.deepClone(t.langList.default||{}),"default"!=e&&n(t.langList[e],t.lang),t.table.options.localized.call(t.table,t.locale,t.lang),t._executeBindings()},b.prototype.getLocale=function(e){return self.locale},b.prototype.getLang=function(e){return e?this.langList[e]:this.lang},b.prototype.getText=function(e,t){e=t?e+"|"+t:e;var n=e.split("|"),i=this._getLangElement(n,this.locale);return i||""},b.prototype._getLangElement=function(e,t){var n=this,i=n.lang;return e.forEach(function(e){var t;i&&(t=i[e],i="undefined"!=typeof t&&t)}),i},b.prototype.bind=function(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)},b.prototype._executeBindings=function(){var e=this,t=function(t){e.bindings[t].forEach(function(n){n(e.getText(t),e.lang)})};for(var n in e.bindings)t(n)},b.prototype.langs={default:{groups:{item:"item",items:"items"},columns:{},ajax:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All"},headerFilters:{default:"filter column...",columns:{}}}},g.prototype.registerModule("localize",b);var y=function(e){this.table=e};y.prototype.getConnections=function(e){var t,n=this,i=[];return t=g.prototype.comms.lookupTable(e),t.forEach(function(e){n.table!==e&&i.push(e)}),i},y.prototype.send=function(e,t,n,i){var o=this,r=this.getConnections(e);r.forEach(function(e){e.tableComms(o.table.element,t,n,i)}),!r.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)},y.prototype.receive=function(e,t,n,i){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,n,i);console.warn("Inter-table Comms Error - no such module:",t)},g.prototype.registerModule("comms",y);var _=function(e){this.table=e,this.allowedTypes=["","data","download","clipboard","print","htmlOutput"]};_.prototype.initializeColumn=function(e){var t=this,n=!1,i={};this.allowedTypes.forEach(function(o){var r,s="accessor"+(o.charAt(0).toUpperCase()+o.slice(1));e.definition[s]&&(r=t.lookupAccessor(e.definition[s]),r&&(n=!0,i[s]={accessor:r,params:e.definition[s+"Params"]||{}}))}),n&&(e.modules.accessor=i)},_.prototype.lookupAccessor=function(e){var t=!1;switch("undefined"===typeof e?"undefined":r(e)){case"string":this.accessors[e]?t=this.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t},_.prototype.transformRow=function(e,t){var n="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),i=e.getComponent(),o=g.prototype.helpers.deepClone(e.data||{});return this.table.columnManager.traverse(function(e){var r,s,a,c;e.modules.accessor&&(s=e.modules.accessor[n]||e.modules.accessor.accessor||!1,s&&(r=e.getFieldValue(o),"undefined"!=r&&(c=e.getComponent(),a="function"===typeof s.params?s.params(r,o,t,c,i):s.params,e.setFieldValue(o,s.accessor(r,o,t,a,c,i)))))}),o},_.prototype.accessors={},g.prototype.registerModule("accessor",_);var M=function(e){this.table=e,this.config=!1,this.url="",this.urlGenerator=!1,this.params=!1,this.loaderElement=this.createLoaderElement(),this.msgElement=this.createMsgElement(),this.loadingElement=!1,this.errorElement=!1,this.loaderPromise=!1,this.progressiveLoad=!1,this.loading=!1,this.requestOrder=0};M.prototype.initialize=function(){var e;this.loaderElement.appendChild(this.msgElement),this.table.options.ajaxLoaderLoading&&("string"==typeof this.table.options.ajaxLoaderLoading?(e=document.createElement("template"),e.innerHTML=this.table.options.ajaxLoaderLoading.trim(),this.loadingElement=e.content.firstChild):this.loadingElement=this.table.options.ajaxLoaderLoading),this.loaderPromise=this.table.options.ajaxRequestFunc||this.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||this.defaultURLGenerator,this.table.options.ajaxLoaderError&&("string"==typeof this.table.options.ajaxLoaderError?(e=document.createElement("template"),e.innerHTML=this.table.options.ajaxLoaderError.trim(),this.errorElement=e.content.firstChild):this.errorElement=this.table.options.ajaxLoaderError),this.table.options.ajaxParams&&this.setParams(this.table.options.ajaxParams),this.table.options.ajaxConfig&&this.setConfig(this.table.options.ajaxConfig),this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.table.options.ajaxProgressiveLoad&&(this.table.options.pagination?(this.progressiveLoad=!1,console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time")):this.table.modExists("page")?(this.progressiveLoad=this.table.options.ajaxProgressiveLoad,this.table.modules.page.initializeProgressive(this.progressiveLoad)):console.error("Pagination plugin is required for progressive ajax loading"))},M.prototype.createLoaderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader"),e},M.prototype.createMsgElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-loader-msg"),e.setAttribute("role","alert"),e},M.prototype.setParams=function(e,t){if(t)for(var n in this.params=this.params||{},e)this.params[n]=e[n];else this.params=e},M.prototype.getParams=function(){return this.params||{}},M.prototype.setConfig=function(e){if(this._loadDefaultConfig(),"string"==typeof e)this.config.method=e;else for(var t in e)this.config[t]=e[t]},M.prototype._loadDefaultConfig=function(e){var t=this;if(!t.config||e)for(var n in t.config={},t.defaultConfig)t.config[n]=t.defaultConfig[n]},M.prototype.setUrl=function(e){this.url=e},M.prototype.getUrl=function(){return this.url},M.prototype.loadData=function(e,t){return this.progressiveLoad?this._loadDataProgressive():this._loadDataStandard(e,t)},M.prototype.nextPage=function(e){var t;this.loading||(t=this.table.options.ajaxProgressiveLoadScrollMargin||2*this.table.rowManager.getElement().clientHeight,ei||null===i)&&(i=e)}),null!==i?!1!==o?i.toFixed(o):i:""},min:function(e,t,n){var i=null,o="undefined"!==typeof n.precision&&n.precision;return e.forEach(function(e){e=Number(e),(e"),n.dataTreeExpandElement?"string"===typeof n.dataTreeExpandElement?(e=document.createElement("div"),e.innerHTML=n.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=n.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="
"),r(n.dataTreeStartExpanded)){case"boolean":this.startOpen=function(e,t){return n.dataTreeStartExpanded};break;case"function":this.startOpen=n.dataTreeStartExpanded;break;default:this.startOpen=function(e,t){return n.dataTreeStartExpanded[t]};break}},A.prototype.initializeRow=function(e){var t=e.getData()[this.field],n=Array.isArray(t),i=n||!n&&"object"===("undefined"===typeof t?"undefined":r(t))&&null!==t;!i&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!i&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:!!i&&(e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0)),controlEl:!(!e.modules.dataTree||!i)&&e.modules.dataTree.controlEl,branchEl:!(!e.modules.dataTree||!i)&&e.modules.dataTree.branchEl,parent:!!e.modules.dataTree&&e.modules.dataTree.parent,children:i}},A.prototype.layoutRow=function(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],n=t.getElement(),i=e.modules.dataTree;i.branchEl&&(i.branchEl.parentNode&&i.branchEl.parentNode.removeChild(i.branchEl),i.branchEl=!1),i.controlEl&&(i.controlEl.parentNode&&i.controlEl.parentNode.removeChild(i.controlEl),i.controlEl=!1),this.generateControlElement(e,n),e.getElement().classList.add("tabulator-tree-level-"+i.index),i.index&&(this.branchEl?(i.branchEl=this.branchEl.cloneNode(!0),n.insertBefore(i.branchEl,n.firstChild),this.table.rtl?i.branchEl.style.marginRight=(i.branchEl.offsetWidth+i.branchEl.style.marginLeft)*(i.index-1)+i.index*this.indent+"px":i.branchEl.style.marginLeft=(i.branchEl.offsetWidth+i.branchEl.style.marginRight)*(i.index-1)+i.index*this.indent+"px"):this.table.rtl?n.style.paddingRight=parseInt(window.getComputedStyle(n,null).getPropertyValue("padding-right"))+i.index*this.indent+"px":n.style.paddingLeft=parseInt(window.getComputedStyle(n,null).getPropertyValue("padding-left"))+i.index*this.indent+"px")},A.prototype.generateControlElement=function(e,t){var n=this,i=e.modules.dataTree,o=(t=t||e.getCells()[0].getElement(),i.controlEl);!1!==i.children&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",function(t){t.stopPropagation(),n.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",function(t){t.stopPropagation(),n.expandRow(e)})),i.controlEl.addEventListener("mousedown",function(e){e.stopPropagation()}),o&&o.parentNode===t?o.parentNode.replaceChild(i.controlEl,o):t.insertBefore(i.controlEl,t.firstChild))},A.prototype.setDisplayIndex=function(e){this.displayIndex=e},A.prototype.getDisplayIndex=function(){return this.displayIndex},A.prototype.getRows=function(e){var t=this,n=[];return e.forEach(function(e,i){var o,r;n.push(e),e instanceof h&&(e.create(),o=e.modules.dataTree.children,o.index||!1===o.children||(r=t.getChildren(e),r.forEach(function(e){e.create(),n.push(e)})))}),n},A.prototype.getChildren=function(e,t){var n=this,i=e.modules.dataTree,o=[],r=[];return!1!==i.children&&(i.open||t)&&(Array.isArray(i.children)||(i.children=this.generateChildren(e)),o=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(i.children):i.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(o),o.forEach(function(e){r.push(e);var t=n.getChildren(e);t.forEach(function(e){r.push(e)})})),r},A.prototype.generateChildren=function(e){var t=this,n=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(function(i){var o=new h(i||{},t.table.rowManager);o.create(),o.modules.dataTree.index=e.modules.dataTree.index+1,o.modules.dataTree.parent=e,o.modules.dataTree.children&&(o.modules.dataTree.open=t.startOpen(o.getComponent(),o.modules.dataTree.index)),n.push(o)}),n},A.prototype.expandRow=function(e,t){var n=e.modules.dataTree;!1!==n.children&&(n.open=!0,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowExpanded(e.getComponent(),e.modules.dataTree.index))},A.prototype.collapseRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open=!1,e.reinitialize(),this.table.rowManager.refreshActiveData("tree",!1,!0),this.table.options.dataTreeRowCollapsed(e.getComponent(),e.modules.dataTree.index))},A.prototype.toggleRow=function(e){var t=e.modules.dataTree;!1!==t.children&&(t.open?this.collapseRow(e):this.expandRow(e))},A.prototype.getTreeParent=function(e){return!!e.modules.dataTree.parent&&e.modules.dataTree.parent.getComponent()},A.prototype.getFilteredTreeChildren=function(e){var t,n=e.modules.dataTree,i=[];return n.children&&(Array.isArray(n.children)||(n.children=this.generateChildren(e)),t=this.table.modExists("filter")&&this.table.options.dataTreeFilter?this.table.modules.filter.filter(n.children):n.children,t.forEach(function(e){e instanceof h&&i.push(e)})),i},A.prototype.rowDelete=function(e){var t,n=e.modules.dataTree.parent;n&&(t=this.findChildIndex(e,n),!1!==t&&n.data[this.field].splice(t,1),n.data[this.field].length||delete n.data[this.field],this.initializeRow(n),this.layoutRow(n)),this.table.rowManager.refreshActiveData("tree",!1,!0)},A.prototype.addTreeChildRow=function(e,t,n,i){var o=!1;"string"===typeof t&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),"undefined"!==typeof i&&(o=this.findChildIndex(i,e),!1!==o&&e.data[this.field].splice(n?o:o+1,0,t)),!1===o&&(n?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)},A.prototype.findChildIndex=function(e,t){var n=this,i=!1;return"object"==("undefined"===typeof e?"undefined":r(e))?e instanceof h?i=e.data:e instanceof d?i=e._getSelf().data:"undefined"!==typeof HTMLElement&&e instanceof HTMLElement&&t.modules.dataTree&&(i=t.modules.dataTree.children.find(function(t){return t instanceof h&&t.element===e}),i&&(i=i.data)):i="undefined"!=typeof e&&null!==e&&t.data[this.field].find(function(t){return t.data[n.table.options.index]==e}),i&&(Array.isArray(t.data[this.field])&&(i=t.data[this.field].indexOf(i)),-1==i&&(i=!1)),i},A.prototype.getTreeChildren=function(e,t,n){var i=this,o=e.modules.dataTree,r=[];return o.children&&(Array.isArray(o.children)||(o.children=this.generateChildren(e)),o.children.forEach(function(e){e instanceof h&&(r.push(t?e.getComponent():e),n&&(r=r.concat(i.getTreeChildren(e,t,n))))})),r},A.prototype.checkForRestyle=function(e){e.row.cells.indexOf(e)||e.row.reinitialize()},A.prototype.getChildField=function(){return this.field},A.prototype.redrawNeeded=function(e){return!!this.field&&"undefined"!==typeof e[this.field]||!!this.elementField&&"undefined"!==typeof e[this.elementField]},g.prototype.registerModule("dataTree",A);var E=function(e){this.table=e};E.prototype.download=function(e,t,n,i,o){var r=this,s=!1;function a(n,i){o?!0===o?r.triggerDownload(n,i,e,t,!0):o(n):r.triggerDownload(n,i,e,t)}if("function"==typeof e?s=e:r.downloaders[e]?s=r.downloaders[e]:console.warn("Download Error - No such download type found: ",e),s){var c=this.generateExportList(i);s.call(this.table,c,n||{},a)}},E.prototype.generateExportList=function(e){var t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,e||this.table.options.downloadRowRange,"download"),n=this.table.options.groupHeaderDownload;return n&&!Array.isArray(n)&&(n=[n]),t.forEach(function(e){var t;"group"===e.type&&(t=e.columns[0],n&&n[e.indent]&&(t.value=n[e.indent](t.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)))}),t},E.prototype.triggerDownload=function(e,t,n,i,o){var r=document.createElement("a"),s=new Blob([e],{type:t});i=i||"Tabulator."+("function"===typeof n?"txt":n);s=this.table.options.downloadReady.call(this.table,e,s),s&&(o?window.open(window.URL.createObjectURL(s)):navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(s,i):(r.setAttribute("href",window.URL.createObjectURL(s)),r.setAttribute("download",i),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)),this.table.options.downloadComplete&&this.table.options.downloadComplete())},E.prototype.commsReceived=function(e,t,n){switch(t){case"intercept":this.download(n.type,"",n.options,n.active,n.intercept);break}},E.prototype.downloaders={csv:function(e,t,n){var i=t&&t.delimiter?t.delimiter:",",o=[],s=[];e.forEach(function(e){var t=[];switch(e.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":e.columns.forEach(function(e,t){e&&1===e.depth&&(s[t]="undefined"==typeof e.value||null===e.value?"":'"'+String(e.value).split('"').join('""')+'"')});break;case"row":e.columns.forEach(function(e){if(e){switch(r(e.value)){case"object":e.value=JSON.stringify(e.value);break;case"undefined":case"null":e.value="";break}t.push('"'+String(e.value).split('"').join('""')+'"')}}),o.push(t.join(i));break}}),s.length&&o.unshift(s.join(i)),o=o.join("\n"),t.bom&&(o="\ufeff"+o),n(o,"text/csv")},json:function(e,t,n){var i=[];e.forEach(function(e){var t={};switch(e.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":e.columns.forEach(function(e){e&&(t[e.component.getField()]=e.value)}),i.push(t);break}}),i=JSON.stringify(i,null,"\t"),n(i,"application/json")},pdf:function(e,t,n){var i=[],o=[],s={},a=t.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},c=t.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},l=t.jsPDF||{},u=t&&t.title?t.title:"";function d(e,t){var n=[];return e.columns.forEach(function(e){var i;if(e){switch(r(e.value)){case"object":e.value=JSON.stringify(e.value);break;case"undefined":case"null":e.value="";break}i={content:e.value,colSpan:e.width,rowSpan:e.height},t&&(i.styles=t),n.push(i)}else n.push("")}),n}l.orientation||(l.orientation=t.orientation||"landscape"),l.unit||(l.unit="pt"),e.forEach(function(e){switch(e.type){case"header":i.push(d(e));break;case"group":o.push(d(e,a));break;case"calc":o.push(d(e,c));break;case"row":o.push(d(e));break}});var h=new jsPDF(l);t&&t.autoTable&&(s="function"===typeof t.autoTable?t.autoTable(h)||{}:t.autoTable),u&&(s.addPageContent=function(e){h.text(u,40,30)}),s.head=i,s.body=o,h.autoTable(s),t&&t.documentProcessing&&t.documentProcessing(h),n(h.output("arraybuffer"),"application/pdf")},xlsx:function(e,t,n){var i,o=this,s=t.sheetName||"Sheet1",a=XLSX.utils.book_new();function c(){var t=[],n=[],i={},o={s:{c:0,r:0},e:{c:e[0]?e[0].columns.reduce(function(e,t){return e+(t&&t.width?t.width:1)},0):0,r:e.length}};return e.forEach(function(e,i){var o=[];e.columns.forEach(function(e,t){e?(o.push(e.value instanceof Date||"object"!==r(e.value)?e.value:JSON.stringify(e.value)),(e.width>1||e.height>-1)&&n.push({s:{r:i,c:t},e:{r:i+e.height-1,c:t+e.width-1}})):o.push("")}),t.push(o)}),XLSX.utils.sheet_add_aoa(i,t),i["!ref"]=XLSX.utils.encode_range(o),n.length&&(i["!merges"]=n),i}if(a.SheetNames=[],a.Sheets={},t.sheetOnly)n(c());else{if(t.sheets)for(var l in t.sheets)!0===t.sheets[l]?(a.SheetNames.push(l),a.Sheets[l]=c()):(a.SheetNames.push(l),this.modules.comms.send(t.sheets[l],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:o.active,intercept:function(e){a.Sheets[l]=e}}));else a.SheetNames.push(s),a.Sheets[s]=c();t.documentProcessing&&(a=t.documentProcessing(a)),i=XLSX.write(a,{bookType:"xlsx",bookSST:!0,type:"binary"}),n(u(i),"application/octet-stream")}function u(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i!=e.length;++i)n[i]=255&e.charCodeAt(i);return t}},html:function(e,t,n){this.modExists("export",!0)&&n(this.modules.export.genereateHTMLTable(e),"text/html")}},g.prototype.registerModule("download",E);var O=function(e){this.table=e,this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[]};O.prototype.initializeColumn=function(e){var t=this,n={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{}};switch(r(e.definition.editor)){case"string":"tick"===e.definition.editor&&(e.definition.editor="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),t.editors[e.definition.editor]?n.editor=t.editors[e.definition.editor]:console.warn("Editor Error - No such editor found: ",e.definition.editor);break;case"function":n.editor=e.definition.editor;break;case"boolean":!0===e.definition.editor&&("function"!==typeof e.definition.formatter?("tick"===e.definition.formatter&&(e.definition.formatter="tickCross",console.warn("DEPRECATION WARNING - the tick editor has been deprecated, please use the tickCross editor")),t.editors[e.definition.formatter]?n.editor=t.editors[e.definition.formatter]:n.editor=t.editors["input"]):console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",e.definition.formatter));break}n.editor&&(e.modules.edit=n)},O.prototype.getCurrentCell=function(){return!!this.currentCell&&this.currentCell.getComponent()},O.prototype.clearEditor=function(e){var t,n=this.currentCell;if(this.invalidEdit=!1,n){this.currentCell=!1,t=n.getElement(),e?n.validate():t.classList.remove("tabulator-validation-fail"),t.classList.remove("tabulator-editing");while(t.firstChild)t.removeChild(t.firstChild);n.row.getElement().classList.remove("tabulator-row-editing")}},O.prototype.cancelEdit=function(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),("textarea"==e.column.definition.editor||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.cellEvents.cellEditCancelled&&e.column.cellEvents.cellEditCancelled.call(this.table,t),this.table.options.cellEditCancelled.call(this.table,t)}},O.prototype.bindEditor=function(e){var t=this,n=e.getElement(!0);n.setAttribute("tabindex",0),n.addEventListener("click",function(e){n.classList.contains("tabulator-editing")||n.focus({preventScroll:!0})}),n.addEventListener("mousedown",function(e){2===e.button?e.preventDefault():t.mouseClick=!0}),n.addEventListener("focus",function(n){t.recursionBlock||t.edit(e,n,!1)})},O.prototype.focusCellNoEvent=function(e,t){this.recursionBlock=!0,t&&"ie"===this.table.browser||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1},O.prototype.editCell=function(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)},O.prototype.focusScrollAdjust=function(e){if("virtual"==this.table.rowManager.getRenderMode()){var t=this.table.rowManager.element.scrollTop,n=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,i=e.row.getElement();i.offsetTop;i.offsetTopn&&(this.table.rowManager.element.scrollTop+=i.offsetTop+i.offsetHeight-n);var o=this.table.rowManager.element.scrollLeft,r=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,s=e.getElement();s.offsetLeft;this.table.modExists("frozenColumns")&&(o+=parseInt(this.table.modules.frozenColumns.leftMargin),r-=parseInt(this.table.modules.frozenColumns.rightMargin)),this.table.options.virtualDomHoz&&(o-=parseInt(this.table.vdomHoz.vDomPadLeft),r-=parseInt(this.table.vdomHoz.vDomPadLeft)),s.offsetLeftr&&(this.table.rowManager.element.scrollLeft+=s.offsetLeft+s.offsetWidth-r)}},O.prototype.edit=function(e,t,n){var i,o,s,a=this,c=!0,l=function(){},u=e.getElement();if(!this.currentCell){if(e.column.modules.edit.blocked)return this.mouseClick=!1,u.blur(),!1;switch(t&&t.stopPropagation(),r(e.column.modules.edit.check)){case"function":c=e.column.modules.edit.check(e.getComponent());break;case"boolean":c=e.column.modules.edit.check;break}if(c||n){if(a.cancelEdit(),a.currentCell=e,this.focusScrollAdjust(e),o=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.cellEvents.cellClick&&e.column.cellEvents.cellClick.call(this.table,t,o)),e.column.cellEvents.cellEditing&&e.column.cellEvents.cellEditing.call(this.table,o),a.table.options.cellEditing.call(this.table,o),s="function"===typeof e.column.modules.edit.params?e.column.modules.edit.params(o):e.column.modules.edit.params,i=e.column.modules.edit.editor.call(a,o,m,p,f,s),!1===i)return u.blur(),!1;if(!(i instanceof Node))return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",i),u.blur(),!1;u.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-row-editing");while(u.firstChild)u.removeChild(u.firstChild);u.appendChild(i),l();for(var d=u.children,h=0;h46){if(s>=n.length)return t.preventDefault(),t.stopPropagation(),!1,!1;switch(n[s]){case i:if(a.toUpperCase()==a.toLowerCase())return t.preventDefault(),t.stopPropagation(),!1,!1;break;case o:if(isNaN(a))return t.preventDefault(),t.stopPropagation(),!1,!1;break;case r:break;default:if(a!==n[s])return t.preventDefault(),t.stopPropagation(),!1,!1}!0}}),e.addEventListener("keyup",function(n){n.keyCode>46&&t.maskAutoFill&&s(e.value.length)}),e.placeholder||(e.placeholder=n),t.maskAutoFill&&s(e.value.length)},O.prototype.getEditedCells=function(){var e=[];return this.editedCells.forEach(function(t){e.push(t.getComponent())}),e},O.prototype.clearEdited=function(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,e.modules.validate&&(e.modules.validate.invalid=!1)),t=this.editedCells.indexOf(e),t>-1&&this.editedCells.splice(t,1)},O.prototype.editors={input:function(e,t,n,i,o){var s=e.getValue(),a=document.createElement("input");if(a.setAttribute("type",o.search?"search":"text"),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var c in o.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),a.setAttribute(c,a.getAttribute(c)+o.elementAttributes["+"+c])):a.setAttribute(c,o.elementAttributes[c]);function l(e){(null===s||"undefined"===typeof s)&&""!==a.value||a.value!==s?n(a.value)&&(s=a.value):i()}return a.value="undefined"!==typeof s?s:"",t(function(){a.focus({preventScroll:!0}),a.style.height="100%"}),a.addEventListener("change",l),a.addEventListener("blur",l),a.addEventListener("keydown",function(e){switch(e.keyCode){case 13:l(e);break;case 27:i();break;case 35:case 36:e.stopPropagation();break}}),o.mask&&this.table.modules.edit.maskInput(a,o),a},textarea:function(e,t,n,i,o){var s=e.getValue(),a=o.verticalNavigation||"hybrid",c=String(null!==s&&"undefined"!==typeof s?s:""),l=((c.match(/(?:\r\n|\r|\n)/g)||[]).length,document.createElement("textarea")),u=0;if(l.style.display="block",l.style.padding="2px",l.style.height="100%",l.style.width="100%",l.style.boxSizing="border-box",l.style.whiteSpace="pre-wrap",l.style.resize="none",o.elementAttributes&&"object"==r(o.elementAttributes))for(var d in o.elementAttributes)"+"==d.charAt(0)?(d=d.slice(1),l.setAttribute(d,l.getAttribute(d)+o.elementAttributes["+"+d])):l.setAttribute(d,o.elementAttributes[d]);function h(t){(null===s||"undefined"===typeof s)&&""!==l.value||l.value!==s?(n(l.value)&&(s=l.value),setTimeout(function(){e.getRow().normalizeHeight()},300)):i()}return l.value=c,t(function(){l.focus({preventScroll:!0}),l.style.height="100%",l.scrollHeight,l.style.height=l.scrollHeight+"px",e.getRow().normalizeHeight()}),l.addEventListener("change",h),l.addEventListener("blur",h),l.addEventListener("keyup",function(){l.style.height="";var t=l.scrollHeight;l.style.height=t+"px",t!=u&&(u=t,e.getRow().normalizeHeight())}),l.addEventListener("keydown",function(e){switch(e.keyCode){case 27:i();break;case 38:("editor"==a||"hybrid"==a&&l.selectionStart)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 40:("editor"==a||"hybrid"==a&&l.selectionStart!==l.value.length)&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation();break}}),o.mask&&this.table.modules.edit.maskInput(l,o),l},number:function(e,t,n,i,o){var s=e.getValue(),a=o.verticalNavigation||"editor",c=document.createElement("input");if(c.setAttribute("type","number"),"undefined"!=typeof o.max&&c.setAttribute("max",o.max),"undefined"!=typeof o.min&&c.setAttribute("min",o.min),"undefined"!=typeof o.step&&c.setAttribute("step",o.step),c.style.padding="4px",c.style.width="100%",c.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var l in o.elementAttributes)"+"==l.charAt(0)?(l=l.slice(1),c.setAttribute(l,c.getAttribute(l)+o.elementAttributes["+"+l])):c.setAttribute(l,o.elementAttributes[l]);c.value=s;var u=function(e){d()};function d(){var e=c.value;isNaN(e)||""===e||(e=Number(e)),e!==s?n(e)&&(s=e):i()}return t(function(){c.removeEventListener("blur",u),c.focus({preventScroll:!0}),c.style.height="100%",c.addEventListener("blur",u)}),c.addEventListener("keydown",function(e){switch(e.keyCode){case 13:d();break;case 27:i();break;case 38:case 40:"editor"==a&&(e.stopImmediatePropagation(),e.stopPropagation());break;case 35:case 36:e.stopPropagation();break}}),o.mask&&this.table.modules.edit.maskInput(c,o),c},range:function(e,t,n,i,o){var s=e.getValue(),a=document.createElement("input");if(a.setAttribute("type","range"),"undefined"!=typeof o.max&&a.setAttribute("max",o.max),"undefined"!=typeof o.min&&a.setAttribute("min",o.min),"undefined"!=typeof o.step&&a.setAttribute("step",o.step),a.style.padding="4px",a.style.width="100%",a.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var c in o.elementAttributes)"+"==c.charAt(0)?(c=c.slice(1),a.setAttribute(c,a.getAttribute(c)+o.elementAttributes["+"+c])):a.setAttribute(c,o.elementAttributes[c]);function l(){var e=a.value;isNaN(e)||""===e||(e=Number(e)),e!=s?n(e)&&(s=e):i()}return a.value=s,t(function(){a.focus({preventScroll:!0}),a.style.height="100%"}),a.addEventListener("blur",function(e){l()}),a.addEventListener("keydown",function(e){switch(e.keyCode){case 13:l();break;case 27:i();break}}),a},select:function(e,t,n,i,o){var s=this,a=this,c=e.getElement(),l=e.getValue(),u=o.verticalNavigation||"editor",d="undefined"!==typeof l||null===l?Array.isArray(l)?l:[l]:"undefined"!==typeof o.defaultValue?o.defaultValue:[],h=document.createElement("input"),p=document.createElement("div"),f=o.multiselect,m=[],v={},b=[],y=[],_=!0,M=!1,w="",C=null;function S(t){var n,i={},o=a.table.getData();return n=t?a.table.columnManager.getColumnByField(t):e.getColumn()._getSelf(),n?o.forEach(function(e){var t=n.getFieldValue(e);null!==t&&"undefined"!==typeof t&&""!==t&&(i[t]=!0)}):console.warn("unable to find matching column to create select lookup list:",t),Object.keys(i)}function A(t,n){var i=[],s=[];function a(e){e={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1};return n.indexOf(e.value)>-1&&L(e),i.push(e),s.push(e),e}if("function"==typeof t&&(t=t(e)),Array.isArray(t))t.forEach(function(e){var t;"object"===("undefined"===typeof e?"undefined":r(e))?e.options?(t={label:e.label,group:!0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1},s.push(t),e.options.forEach(function(e){a(e)})):a(e):(t={label:e,value:e,element:!1},n.indexOf(t.value)>-1&&L(t),i.push(t),s.push(t))});else for(var c in t){var l={label:t[c],value:c,element:!1};n.indexOf(l.value)>-1&&L(l),i.push(l),s.push(l)}o.sortValuesList&&(i.sort(function(e,t){return e.labelt.label?1:0}),s.sort(function(e,t){return e.labelt.label?1:0}),"asc"!==o.sortValuesList&&(i.reverse(),s.reverse())),m=i,b=s,E()}function E(){while(p.firstChild)p.removeChild(p.firstChild);b.forEach(function(t){var n=t.element;if(!n){if(n=document.createElement("div"),t.label=o.listItemFormatter?o.listItemFormatter(t.value,t.label,e,n,t.itemParams):t.label,t.group?(n.classList.add("tabulator-edit-select-list-group"),n.tabIndex=0,n.innerHTML=""===t.label?" ":t.label):(n.classList.add("tabulator-edit-select-list-item"),n.tabIndex=0,n.innerHTML=""===t.label?" ":t.label,n.addEventListener("click",function(){M=!0,setTimeout(function(){M=!1},10),f?(x(t),h.focus()):R(t)}),y.indexOf(t)>-1&&n.classList.add("active")),t.elementAttributes&&"object"==r(t.elementAttributes))for(var i in t.elementAttributes)"+"==i.charAt(0)?(i=i.slice(1),n.setAttribute(i,h.getAttribute(i)+t.elementAttributes["+"+i])):n.setAttribute(i,t.elementAttributes[i]);n.addEventListener("mousedown",function(){_=!1,setTimeout(function(){_=!0},10)}),t.element=n}p.appendChild(n)})}function O(e,t){!f&&v&&v.element&&v.element.classList.remove("active"),v&&v.element&&v.element.classList.remove("focused"),v=e,e.element&&(e.element.classList.add("focused"),t&&e.element.classList.add("active")),e&&e.element&&e.element.scrollIntoView&&e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function L(e){var t=y.indexOf(e);-1==t&&(y.push(e),O(e,!0)),z()}function T(e){var t=y[e];e>-1&&(y.splice(e,1),t.element&&t.element.classList.remove("active"))}function x(e){e||(e=v);var t=y.indexOf(e);t>-1?T(t):(!0!==f&&y.length>=f&&T(0),L(e)),z()}function R(e){D(),e||(e=v),e&&(h.value=e.label,n(e.value)),d=[e.value]}function k(e){e||D();var t=[];y.forEach(function(e){t.push(e.value)}),d=t,n(t)}function z(){var e=[];y.forEach(function(t){e.push(t.label)}),h.value=e.join(", "),!1===a.currentCell&&k(!0)}function P(){for(var e=y.length,t=0;t0&&O(m[t-1],!f));break;case 40:t=m.indexOf(v),("editor"==u||"hybrid"==u&&t=38&&e.keyCode<=90&&q(e.keyCode)}}),h.addEventListener("blur",function(e){_&&(f?k():N())}),h.addEventListener("focus",function(e){M||I()}),p=document.createElement("div"),p.classList.add("tabulator-edit-select-list"),t(function(){h.style.height="100%",h.focus({preventScroll:!0})}),setTimeout(function(){s.table.rowManager.element.addEventListener("scroll",N)},10),h},autocomplete:function(e,t,n,i,o){var s=this,a=this,c=e.getElement(),l=e.getValue(),u=o.verticalNavigation||"editor",d="undefined"!==typeof l||null===l?l:"undefined"!==typeof o.defaultValue?o.defaultValue:"",h=document.createElement("input"),p=document.createElement("div"),f=[],m=!1,v=!0,b=!1;if(h.setAttribute("type","search"),h.style.padding="4px",h.style.width="100%",h.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var y in o.elementAttributes)"+"==y.charAt(0)?(y=y.slice(1),h.setAttribute(y,h.getAttribute(y)+o.elementAttributes["+"+y])):h.setAttribute(y,o.elementAttributes[y]);function _(){!0===o.values?b=M():"string"===typeof o.values&&(b=M(o.values))}function M(t){var n,i={},r=a.table.getData();return n=t?a.table.columnManager.getColumnByField(t):e.getColumn()._getSelf(),n?(r.forEach(function(e){var t=n.getFieldValue(e);null!==t&&"undefined"!==typeof t&&""!==t&&(i[t]=!0)}),i=o.sortValuesList?"asc"==o.sortValuesList?Object.keys(i).sort():Object.keys(i).sort().reverse():Object.keys(i)):console.warn("unable to find matching column to create autocomplete lookup list:",t),i}function w(e,t){var n,i,r=[];n=b||(o.values||[]),o.searchFunc?(r=o.searchFunc(e,n),r instanceof Promise?(C("undefined"!==typeof o.searchingPlaceholder?o.searchingPlaceholder:"Searching..."),r.then(function(e){E(S(e),t)}).catch(function(e){console.err("error in autocomplete search promise:",e)})):E(S(r),t)):(i=S(n),""===e?o.showListOnEmpty&&(r=i):i.forEach(function(t){null===t.value&&"undefined"===typeof t.value||(String(t.value).toLowerCase().indexOf(String(e).toLowerCase())>-1||String(t.title).toLowerCase().indexOf(String(e).toLowerCase())>-1)&&r.push(t)}),E(r,t))}function C(e){var t=document.createElement("div");A(),!1!==e&&(t.classList.add("tabulator-edit-select-list-notice"),t.tabIndex=0,e instanceof Node?t.appendChild(e):t.innerHTML=e,p.appendChild(t))}function S(e){var t=[];if(Array.isArray(e))e.forEach(function(e){var n={};"object"===("undefined"===typeof e?"undefined":r(e))?(n.title=o.listItemFormatter?o.listItemFormatter(e.value,e.label):e.label,n.value=e.value):(n.title=o.listItemFormatter?o.listItemFormatter(e,e):e,n.value=e),t.push(n)});else for(var n in e){var i={title:o.listItemFormatter?o.listItemFormatter(n,e[n]):e[n],value:n};t.push(i)}return t}function A(){while(p.firstChild)p.removeChild(p.firstChild)}function E(e,t){e.length?O(e,t):o.emptyPlaceholder&&C(o.emptyPlaceholder)}function O(e,t){var n=!1;A(),f=e,f.forEach(function(e){var i=e.element;i||(i=document.createElement("div"),i.classList.add("tabulator-edit-select-list-item"),i.tabIndex=0,i.innerHTML=e.title,i.addEventListener("click",function(t){x(e),L()}),i.addEventListener("mousedown",function(e){v=!1,setTimeout(function(){v=!0},10)}),e.element=i,t&&e.value==l&&(h.value=e.title,e.element.classList.add("active"),n=!0),e===m&&(e.element.classList.add("active"),n=!0)),p.appendChild(i)}),n||x(!1)}function L(){R(),m?l!==m.value?(l=m.value,h.value=m.title,n(m.value)):i():o.freetext?(l=h.value,n(h.value)):o.allowEmpty&&""===h.value?(l=h.value,n(h.value)):i()}function T(){if(!p.parentNode){console.log("show",d);while(p.firstChild)p.removeChild(p.firstChild);var e=g.prototype.helpers.elOffset(c);p.style.minWidth=c.offsetWidth+"px",p.style.top=e.top+c.offsetHeight+"px",p.style.left=e.left+"px",document.body.appendChild(p)}}function x(e,t){m&&m.element&&m.element.classList.remove("active"),m=e,e&&e.element&&e.element.classList.add("active"),e&&e.element&&e.element.scrollIntoView&&e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}function R(){p.parentNode&&p.parentNode.removeChild(p),z()}function k(){R(),i()}function z(){a.table.rowManager.element.removeEventListener("scroll",k)}return p.classList.add("tabulator-edit-select-list"),p.addEventListener("mousedown",function(e){v=!1,setTimeout(function(){v=!0},10)}),h.addEventListener("keydown",function(e){var t;switch(e.keyCode){case 38:t=f.indexOf(m),("editor"==u||"hybrid"==u&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),x(t>0&&f[t-1]));break;case 40:t=f.indexOf(m),("editor"==u||"hybrid"==u&&t'):("ie"==s.table.browser?t.setAttribute("class","tabulator-star-inactive"):t.classList.replace("tabulator-star-active","tabulator-star-inactive"),t.innerHTML='')})}function m(e){var t=document.createElement("span"),i=p.cloneNode(!0);d.push(i),t.addEventListener("mouseenter",function(t){t.stopPropagation(),t.stopImmediatePropagation(),f(e)}),t.addEventListener("mousemove",function(e){e.stopPropagation(),e.stopImmediatePropagation()}),t.addEventListener("click",function(t){t.stopPropagation(),t.stopImmediatePropagation(),n(e),a.blur()}),t.appendChild(i),h.appendChild(t)}function g(e){c=e,f(e)}if(a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",h.style.verticalAlign="middle",h.style.display="inline-block",h.style.padding="4px",p.setAttribute("width",u),p.setAttribute("height",u),p.setAttribute("viewBox","0 0 512 512"),p.setAttribute("xml:space","preserve"),p.style.padding="0 1px",o.elementAttributes&&"object"==r(o.elementAttributes))for(var v in o.elementAttributes)"+"==v.charAt(0)?(v=v.slice(1),h.setAttribute(v,h.getAttribute(v)+o.elementAttributes["+"+v])):h.setAttribute(v,o.elementAttributes[v]);for(var b=1;b<=l;b++)m(b);return c=Math.min(parseInt(c),l),f(c),h.addEventListener("mousemove",function(e){f(0)}),h.addEventListener("click",function(e){n(0)}),a.addEventListener("blur",function(e){i()}),a.addEventListener("keydown",function(e){switch(e.keyCode){case 39:g(c+1);break;case 37:g(c-1);break;case 13:n(c);break;case 27:i();break}}),h},progress:function(e,t,n,i,o){var s,a,c=e.getElement(),l="undefined"===typeof o.max?c.getElementsByTagName("div")[0].getAttribute("max")||100:o.max,u="undefined"===typeof o.min?c.getElementsByTagName("div")[0].getAttribute("min")||0:o.min,d=(l-u)/100,h=e.getValue()||0,p=document.createElement("div"),f=document.createElement("div");function m(){var e=window.getComputedStyle(c,null),t=d*Math.round(f.offsetWidth/((c.clientWidth-parseInt(e.getPropertyValue("padding-left"))-parseInt(e.getPropertyValue("padding-right")))/100))+u;n(t),c.setAttribute("aria-valuenow",t),c.setAttribute("aria-label",h)}if(p.style.position="absolute",p.style.right="0",p.style.top="0",p.style.bottom="0",p.style.width="5px",p.classList.add("tabulator-progress-handle"),f.style.display="inline-block",f.style.position="relative",f.style.height="100%",f.style.backgroundColor="#488CE9",f.style.maxWidth="100%",f.style.minWidth="0%",o.elementAttributes&&"object"==r(o.elementAttributes))for(var g in o.elementAttributes)"+"==g.charAt(0)?(g=g.slice(1),f.setAttribute(g,f.getAttribute(g)+o.elementAttributes["+"+g])):f.setAttribute(g,o.elementAttributes[g]);return c.style.padding="4px 4px",h=Math.min(parseFloat(h),l),h=Math.max(parseFloat(h),u),h=Math.round((h-u)/d),f.style.width=h+"%",c.setAttribute("aria-valuemin",u),c.setAttribute("aria-valuemax",l),f.appendChild(p),p.addEventListener("mousedown",function(e){s=e.screenX,a=f.offsetWidth}),p.addEventListener("mouseover",function(){p.style.cursor="ew-resize"}),c.addEventListener("mousemove",function(e){s&&(f.style.width=a+e.screenX-s+"px")}),c.addEventListener("mouseup",function(e){s&&(e.stopPropagation(),e.stopImmediatePropagation(),s=!1,a=!1,m())}),c.addEventListener("keydown",function(e){switch(e.keyCode){case 39:e.preventDefault(),f.style.width=f.clientWidth+c.clientWidth/100+"px";break;case 37:e.preventDefault(),f.style.width=f.clientWidth-c.clientWidth/100+"px";break;case 9:case 13:m();break;case 27:i();break}}),c.addEventListener("blur",function(){i()}),f},tickCross:function(e,t,n,i,o){var s=e.getValue(),a=document.createElement("input"),c=o.tristate,l="undefined"===typeof o.indeterminateValue?null:o.indeterminateValue,u=!1;if(a.setAttribute("type","checkbox"),a.style.marginTop="5px",a.style.boxSizing="border-box",o.elementAttributes&&"object"==r(o.elementAttributes))for(var d in o.elementAttributes)"+"==d.charAt(0)?(d=d.slice(1),a.setAttribute(d,a.getAttribute(d)+o.elementAttributes["+"+d])):a.setAttribute(d,o.elementAttributes[d]);function h(e){return c?e?u?l:a.checked:a.checked&&!u?(a.checked=!1,a.indeterminate=!0,u=!0,l):(u=!1,a.checked):a.checked}return a.value=s,!c||"undefined"!==typeof s&&s!==l&&""!==s||(u=!0,a.indeterminate=!0),"firefox"!=this.table.browser&&t(function(){a.focus({preventScroll:!0})}),a.checked=!0===s||"true"===s||"True"===s||1===s,t(function(){a.focus()}),a.addEventListener("change",function(e){n(h())}),a.addEventListener("blur",function(e){n(h(!0))}),a.addEventListener("keydown",function(e){13==e.keyCode&&n(h()),27==e.keyCode&&i()}),a}},g.prototype.registerModule("edit",O);var L=function(e,t,n,i){this.type=e,this.columns=t,this.component=n||!1,this.indent=i||0},T=function(e,t,n,i,o){this.value=e,this.component=t||!1,this.width=n,this.height=i,this.depth=o},x=function(e){this.table=e,this.config={},this.cloneTableStyle=!0,this.colVisProp=""};x.prototype.generateExportList=function(e,t,n,i){this.cloneTableStyle=t,this.config=e||{},this.colVisProp=i;var o=!1!==this.config.columnHeaders?this.headersToExportRows(this.generateColumnGroupHeaders()):[],r=this.bodyToExportRows(this.rowLookup(n));return o.concat(r)},x.prototype.genereateTable=function(e,t,n,i){var o=this.generateExportList(e,t,n,i);return this.genereateTableElement(o)},x.prototype.rowLookup=function(e){var t=this,n=[];if("function"==typeof e)e.call(this.table).forEach(function(e){e=t.table.rowManager.findRow(e),e&&n.push(e)});else switch(e){case!0:case"visible":n=this.table.rowManager.getVisibleRows(!0);break;case"all":n=this.table.rowManager.rows;break;case"selected":n=this.table.modules.selectRow.selectedRows;break;case"active":default:n=this.table.options.pagination?this.table.rowManager.getDisplayRows(this.table.rowManager.displayRows.length-2):this.table.rowManager.getDisplayRows()}return Object.assign([],n)},x.prototype.generateColumnGroupHeaders=function(){var e=this,t=[],n=!1!==this.config.columnGroups?this.table.columnManager.columns:this.table.columnManager.columnsByIndex;return n.forEach(function(n){var i=e.processColumnGroup(n);i&&t.push(i)}),t},x.prototype.processColumnGroup=function(e){var t=this,n=e.columns,i=0,o=e.definition["title"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))]||e.definition.title,r={title:o,column:e,depth:1};if(n.length){if(r.subGroups=[],r.width=0,n.forEach(function(e){var n=t.processColumnGroup(e);n&&(r.width+=n.width,r.subGroups.push(n),n.depth>i&&(i=n.depth))}),r.depth+=i,!r.width)return!1}else{if(!this.columnVisCheck(e))return!1;r.width=1}return r},x.prototype.columnVisCheck=function(e){return!1!==e.definition[this.colVisProp]&&(e.visible||!e.visible&&e.definition[this.colVisProp])},x.prototype.headersToExportRows=function(e){var t=[],n=0,i=[];function o(e,i){var r=n-i;if("undefined"===typeof t[i]&&(t[i]=[]),e.height=e.subGroups?1:r-e.depth+1,t[i].push(e),e.height>1)for(var s=1;s1)for(var a=1;an&&(n=e.depth)}),e.forEach(function(e){o(e,0)}),t.forEach(function(e){var t=[];e.forEach(function(e){e?t.push(new T(e.title,e.column.getComponent(),e.width,e.height,e.depth)):t.push(null)}),i.push(new L("header",t))}),i},x.prototype.bodyToExportRows=function(e){var t=this,n=[],i=[];return this.table.columnManager.columnsByIndex.forEach(function(e){t.columnVisCheck(e)&&n.push(e.getComponent())}),!1!==this.config.columnCalcs&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),e=e.filter(function(e){switch(e.type){case"group":return!1!==t.config.rowGroups;case"calc":return!1!==t.config.columnCalcs;case"row":return!(t.table.options.dataTree&&!1===t.config.dataTree&&e.modules.dataTree.parent)}return!0}),e.forEach(function(e,o){var r=e.getData(t.colVisProp),s=[],a=0;switch(e.type){case"group":a=e.level,s.push(new T(e.key,e.getComponent(),n.length,1));break;case"calc":case"row":n.forEach(function(e){s.push(new T(e._column.getFieldValue(r),e,1,1))}),t.table.options.dataTree&&!1!==t.config.dataTree&&(a=e.modules.dataTree.index);break}i.push(new L(e.type,s,e.getComponent(),a))}),i},x.prototype.genereateTableElement=function(e){var t=this,n=document.createElement("table"),i=document.createElement("thead"),o=document.createElement("tbody"),r=this.lookupTableStyles(),s=this.table.options["rowFormatter"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],a={};return a.rowFormatter=null!==s?s:this.table.options.rowFormatter,this.table.options.dataTree&&!1!==this.config.dataTree&&this.table.modExists("columnCalcs")&&(a.treeElementField=this.table.modules.dataTree.elementField),a.groupHeader=this.table.options["groupHeader"+(this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1))],a.groupHeader&&!Array.isArray(a.groupHeader)&&(a.groupHeader=[a.groupHeader]),n.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),i,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach(function(e,n){switch(e.type){case"header":i.appendChild(t.genereateHeaderElement(e,a,r));break;case"group":o.appendChild(t.genereateGroupElement(e,a,r));break;case"calc":o.appendChild(t.genereateCalcElement(e,a,r));break;case"row":var s=t.genereateRowElement(e,a,r);t.mapElementStyles(n%2&&r.evenRow?r.evenRow:r.oddRow,s,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),o.appendChild(s);break}}),i.innerHTML&&n.appendChild(i),n.appendChild(o),this.mapElementStyles(this.table.element,n,["border-top","border-left","border-right","border-bottom"]),n},x.prototype.lookupTableStyles=function(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e},x.prototype.genereateHeaderElement=function(e,t,n){var i=this,o=document.createElement("tr");return e.columns.forEach(function(e){if(e){var t=document.createElement("th"),n=e.component._column.definition.cssClass?e.component._column.definition.cssClass.split(" "):[];t.colSpan=e.width,t.rowSpan=e.height,t.innerHTML=e.value,i.cloneTableStyle&&(t.style.boxSizing="border-box"),n.forEach(function(e){t.classList.add(e)}),i.mapElementStyles(e.component.getElement(),t,["text-align","border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),i.mapElementStyles(e.component._column.contentElement,t,["padding-top","padding-left","padding-right","padding-bottom"]),e.component._column.visible?i.mapElementStyles(e.component.getElement(),t,["width"]):e.component._column.definition.width&&(t.style.width=e.component._column.definition.width+"px"),e.component._column.parent&&i.mapElementStyles(e.component._column.parent.groupElement,t,["border-top"]),o.appendChild(t)}}),o},x.prototype.genereateGroupElement=function(e,t,n){var i=document.createElement("tr"),o=document.createElement("td"),r=e.columns[0];return i.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?r.value=t.groupHeader[e.indent](r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):!1===t.groupHeader?r.value=r.value:r.value=e.component._group.generator(r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component),o.colSpan=r.width,o.innerHTML=r.value,i.classList.add("tabulator-print-table-group"),i.classList.add("tabulator-group-level-"+e.indent),r.component.isVisible()&&i.classList.add("tabulator-group-visible"),this.mapElementStyles(n.firstGroup,i,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(n.firstGroup,o,["padding-top","padding-left","padding-right","padding-bottom"]),i.appendChild(o),i},x.prototype.genereateCalcElement=function(e,t,n){var i=this.genereateRowElement(e,t,n);return i.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(n.calcRow,i,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),i},x.prototype.genereateRowElement=function(e,t,n){var o=this,s=document.createElement("tr");return s.classList.add("tabulator-print-table-row"),e.columns.forEach(function(a){if(a){var c=document.createElement("td"),l=a.component._column,u=a.value,d={modules:{},getValue:function(){return u},getField:function(){return l.definition.field},getElement:function(){return c},getColumn:function(){return l.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getComponent:function(){return d},column:l},h=l.definition.cssClass?l.definition.cssClass.split(" "):[];if(h.forEach(function(e){c.classList.add(e)}),o.table.modExists("format")&&!1!==o.config.formatCells)u=o.table.modules.format.formatExportValue(d,o.colVisProp);else switch("undefined"===typeof u?"undefined":r(u)){case"object":u=JSON.stringify(u);break;case"undefined":case"null":u="";break;default:u=u}u instanceof Node?c.appendChild(u):c.innerHTML=u,n.firstCell&&(o.mapElementStyles(n.firstCell,c,["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size"]),l.definition.align&&(c.style.textAlign=l.definition.align)),o.table.options.dataTree&&!1!==o.config.dataTree&&(t.treeElementField&&t.treeElementField==l.field||!t.treeElementField&&0==i)&&(e.component._row.modules.dataTree.controlEl&&c.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),c.firstChild),e.component._row.modules.dataTree.branchEl&&c.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),c.firstChild)),s.appendChild(c),d.modules.format&&d.modules.format.renderedCallback&&d.modules.format.renderedCallback(),t.rowFormatter&&!1!==o.config.formatCells&&t.rowFormatter(e.component)}}),s},x.prototype.genereateHTMLTable=function(e){var t=document.createElement("div");return t.appendChild(this.genereateTableElement(e)),t.innerHTML},x.prototype.getHtml=function(e,t,n,i){var o=this.generateExportList(n||this.table.options.htmlOutputConfig,t,e,i||"htmlOutput");return this.genereateHTMLTable(o)},x.prototype.mapElementStyles=function(e,t,n){if(this.cloneTableStyle&&e&&t){var i={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var o=window.getComputedStyle(e);n.forEach(function(e){t.style[i[e]]=o.getPropertyValue(e)})}}},g.prototype.registerModule("export",x);var R=function(e){this.table=e,this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1};R.prototype.initializeColumn=function(e,t){var n,i=this,o=e.getField();function s(t){var s,a="input"==e.modules.filter.tagType&&"text"==e.modules.filter.attrType||"textarea"==e.modules.filter.tagType?"partial":"match",c="",l="";if("undefined"===typeof e.modules.filter.prevSuccess||e.modules.filter.prevSuccess!==t){if(e.modules.filter.prevSuccess=t,e.modules.filter.emptyFunc(t))delete i.headerFilters[o];else{switch(e.modules.filter.value=t,r(e.definition.headerFilterFunc)){case"string":i.filters[e.definition.headerFilterFunc]?(c=e.definition.headerFilterFunc,s=function(n){var o=e.definition.headerFilterFuncParams||{},r=e.getFieldValue(n);return o="function"===typeof o?o(t,r,n):o,i.filters[e.definition.headerFilterFunc](t,r,n,o)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":s=function(n){var i=e.definition.headerFilterFuncParams||{},o=e.getFieldValue(n);return i="function"===typeof i?i(t,o,n):i,e.definition.headerFilterFunc(t,o,n,i)},c=s;break}if(!s)switch(a){case"partial":s=function(n){var i=e.getFieldValue(n);return"undefined"!==typeof i&&null!==i&&String(i).toLowerCase().indexOf(String(t).toLowerCase())>-1},c="like";break;default:s=function(n){return e.getFieldValue(n)==t},c="="}i.headerFilters[o]={value:t,func:s,type:c,params:n||{}}}l=JSON.stringify(i.headerFilters),i.prevHeaderFilterChangeCheck!==l&&(i.prevHeaderFilterChangeCheck=l,i.changed=!0,i.table.rowManager.filterRefresh())}return!0}e.modules.filter={success:s,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)},R.prototype.generateHeaderFilterElement=function(e,t,n){var i,o,s,a,c,l,u,d=this,h=this,p=e.modules.filter.success,f=e.getField();function m(){}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),f){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(e){return!e&&"0"!==e&&0!==e},i=document.createElement("div"),i.classList.add("tabulator-header-filter"),r(e.definition.headerFilter)){case"string":h.table.modules.edit.editors[e.definition.headerFilter]?(o=h.table.modules.edit.editors[e.definition.headerFilter],"tick"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":o=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?o=e.modules.edit.editor:e.definition.formatter&&h.table.modules.edit.editors[e.definition.formatter]?(o=h.table.modules.edit.editors[e.definition.formatter],"tick"!==e.definition.formatter&&"tickCross"!==e.definition.formatter||e.definition.headerFilterEmptyCheck||(e.modules.filter.emptyFunc=function(e){return!0!==e&&!1!==e})):o=h.table.modules.edit.editors["input"];break}if(o){if(a={getValue:function(){return"undefined"!==typeof t?t:""},getField:function(){return e.definition.field},getElement:function(){return i},getColumn:function(){return e.getComponent()},getRow:function(){return{normalizeHeight:function(){}}}},u=e.definition.headerFilterParams||{},u="function"===typeof u?u.call(h.table):u,s=o.call(this.table.modules.edit,a,function(){},p,m,u),!s)return void console.warn("Filter Error - Cannot add filter to "+f+" column, editor returned a value of false");if(!(s instanceof Node))return void console.warn("Filter Error - Cannot add filter to "+f+" column, editor should return an instance of Node, the editor returned:",s);f?h.table.modules.localize.bind("headerFilters|columns|"+e.definition.field,function(e){s.setAttribute("placeholder","undefined"!==typeof e&&e?e:h.table.modules.localize.getText("headerFilters|default"))}):h.table.modules.localize.bind("headerFilters|default",function(e){s.setAttribute("placeholder","undefined"!==typeof h.column.definition.headerFilterPlaceholder&&h.column.definition.headerFilterPlaceholder?h.column.definition.headerFilterPlaceholder:e)}),s.addEventListener("click",function(e){e.stopPropagation(),s.focus()}),s.addEventListener("focus",function(e){var t=d.table.columnManager.element.scrollLeft;t!==d.table.rowManager.element.scrollLeft&&(d.table.rowManager.scrollHorizontal(t),d.table.columnManager.scrollHorizontal(t))}),c=!1,l=function(e){c&&clearTimeout(c),c=setTimeout(function(){p(s.value)},h.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=s,e.modules.filter.attrType=s.hasAttribute("type")?s.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=s.tagName.toLowerCase(),!1!==e.definition.headerFilterLiveFilter&&("autocomplete"!==e.definition.headerFilter&&"tickCross"!==e.definition.headerFilter&&("autocomplete"!==e.definition.editor&&"tickCross"!==e.definition.editor||!0!==e.definition.headerFilter)&&(s.addEventListener("keyup",l),s.addEventListener("search",l),"number"==e.modules.filter.attrType&&s.addEventListener("change",function(e){p(s.value)}),"text"==e.modules.filter.attrType&&"ie"!==this.table.browser&&s.setAttribute("type","search")),"input"!=e.modules.filter.tagType&&"select"!=e.modules.filter.tagType&&"textarea"!=e.modules.filter.tagType||s.addEventListener("mousedown",function(e){e.stopPropagation()})),i.appendChild(s),e.contentElement.appendChild(i),n||h.headerFilterColumns.push(e)}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)},R.prototype.hideHeaderFilterElements=function(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")})},R.prototype.showHeaderFilterElements=function(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")})},R.prototype.setHeaderFilterFocus=function(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())},R.prototype.getHeaderFilterValue=function(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.headerElement.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())},R.prototype.setHeaderFilterValue=function(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},R.prototype.reloadHeaderFilter=function(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))},R.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},R.prototype.setFilter=function(e,t,n,i){var o=this;o.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:n,params:i}]),o.addFilter(e)},R.prototype.addFilter=function(e,t,n,i){var o=this;Array.isArray(e)||(e=[{field:e,type:t,value:n,params:i}]),e.forEach(function(e){e=o.findFilter(e),e&&(o.filterList.push(e),o.changed=!0)}),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},R.prototype.findFilter=function(e){var t,n=this;if(Array.isArray(e))return this.findSubFilters(e);var i=!1;return"function"==typeof e.field?i=function(t){return e.field(t,e.type||{})}:n.filters[e.type]?(t=n.table.columnManager.getColumnByField(e.field),i=t?function(i){return n.filters[e.type](e.value,t.getFieldValue(i),i,e.params||{})}:function(t){return n.filters[e.type](e.value,t[e.field],t,e.params||{})}):console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=i,!!e.func&&e},R.prototype.findSubFilters=function(e){var t=this,n=[];return e.forEach(function(e){e=t.findFilter(e),e&&n.push(e)}),!!n.length&&n},R.prototype.getFilters=function(e,t){var n=[];return e&&(n=this.getHeaderFilters()),t&&n.forEach(function(e){"function"==typeof e.type&&(e.type="function")}),n=n.concat(this.filtersToArray(this.filterList,t)),n},R.prototype.filtersToArray=function(e,t){var n=this,i=[];return e.forEach(function(e){var o;Array.isArray(e)?i.push(n.filtersToArray(e,t)):(o={field:e.field,type:e.type,value:e.value},t&&"function"==typeof o.type&&(o.type="function"),i.push(o))}),i},R.prototype.getHeaderFilters=function(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e},R.prototype.removeFilter=function(e,t,n){var i=this;Array.isArray(e)||(e=[{field:e,type:t,value:n}]),e.forEach(function(e){var t=-1;t="object"==r(e.field)?i.filterList.findIndex(function(t){return e===t}):i.filterList.findIndex(function(t){return e.field===t.field&&e.type===t.type&&e.value===t.value}),t>-1?(i.filterList.splice(t,1),i.changed=!0):console.warn("Filter Error - No matching filter type found, ignoring: ",e.type)}),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},R.prototype.clearFilter=function(e){this.filterList=[],e&&this.clearHeaderFilter(),this.changed=!0,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.filter&&this.table.modules.persistence.save("filter")},R.prototype.clearHeaderFilter=function(){var e=this;this.headerFilters={},e.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach(function(t){"undefined"!==typeof t.modules.filter.value&&delete t.modules.filter.value,t.modules.filter.prevSuccess=void 0,e.reloadHeaderFilter(t)}),this.changed=!0},R.prototype.search=function(e,t,n,i){var o=this,r=[],s=[];return Array.isArray(t)||(t=[{field:t,type:n,value:i}]),t.forEach(function(e){e=o.findFilter(e),e&&s.push(e)}),this.table.rowManager.rows.forEach(function(t){var n=!0;s.forEach(function(e){o.filterRecurse(e,t.getData())||(n=!1)}),n&&r.push("data"===e?t.getData("data"):t.getComponent())}),r},R.prototype.filter=function(e,t){var n=this,i=[],o=[];return n.table.options.dataFiltering&&n.table.options.dataFiltering.call(n.table,n.getFilters()),n.table.options.ajaxFiltering||!n.filterList.length&&!Object.keys(n.headerFilters).length?i=e.slice(0):e.forEach(function(e){n.filterRow(e)&&i.push(e)}),n.table.options.dataFiltered&&(i.forEach(function(e){o.push(e.getComponent())}),n.table.options.dataFiltered.call(n.table,n.getFilters(),o)),i},R.prototype.filterRow=function(e,t){var n=this,i=!0,o=e.getData();for(var r in n.filterList.forEach(function(e){n.filterRecurse(e,o)||(i=!1)}),n.headerFilters)n.headerFilters[r].func(o)||(i=!1);return i},R.prototype.filterRecurse=function(e,t){var n=this,i=!1;return Array.isArray(e)?e.forEach(function(e){n.filterRecurse(e,t)&&(i=!0)}):i=e.func(t),i},R.prototype.filters={"=":function(e,t,n,i){return t==e},"<":function(e,t,n,i){return t":function(e,t,n,i){return t>e},">=":function(e,t,n,i){return t>=e},"!=":function(e,t,n,i){return t!=e},regex:function(e,t,n,i){return"string"==typeof e&&(e=new RegExp(e)),e.test(t)},like:function(e,t,n,i){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().indexOf(e.toLowerCase())>-1},keywords:function(e,t,n,i){var o=e.toLowerCase().split("undefined"===typeof i.separator?" ":i.separator),r=String(null===t||"undefined"===typeof t?"":t).toLowerCase(),s=[];return o.forEach(function(e){r.includes(e)&&s.push(!0)}),i.matchAll?s.length===o.length:!!s.length},starts:function(e,t,n,i){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().startsWith(e.toLowerCase())},ends:function(e,t,n,i){return null===e||"undefined"===typeof e?t===e:"undefined"!==typeof t&&null!==t&&String(t).toLowerCase().endsWith(e.toLowerCase())},in:function(e,t,n,i){return Array.isArray(e)?!e.length||e.indexOf(t)>-1:(console.warn("Filter Error - filter value is not an array:",e),!1)}},g.prototype.registerModule("filter",R);var k=function(e){this.table=e};k.prototype.initializeColumn=function(e){e.modules.format=this.lookupFormatter(e,""),"undefined"!==typeof e.definition.formatterPrint&&(e.modules.format.print=this.lookupFormatter(e,"Print")),"undefined"!==typeof e.definition.formatterClipboard&&(e.modules.format.clipboard=this.lookupFormatter(e,"Clipboard")),"undefined"!==typeof e.definition.formatterHtmlOutput&&(e.modules.format.htmlOutput=this.lookupFormatter(e,"HtmlOutput"))},k.prototype.lookupFormatter=function(e,t){var n={params:e.definition["formatter"+t+"Params"]||{}},i=e.definition["formatter"+t];switch("undefined"===typeof i?"undefined":r(i)){case"string":"tick"===i&&(i="tickCross","undefined"==typeof n.params.crossElement&&(n.params.crossElement=!1),console.warn("DEPRECATION WARNING - the tick formatter has been deprecated, please use the tickCross formatter with the crossElement param set to false")),this.formatters[i]?n.formatter=this.formatters[i]:(console.warn("Formatter Error - No such formatter found: ",i),n.formatter=this.formatters.plaintext);break;case"function":n.formatter=i;break;default:n.formatter=this.formatters.plaintext;break}return n},k.prototype.cellRendered=function(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)},k.prototype.formatValue=function(e){var t=e.getComponent(),n="function"===typeof e.column.modules.format.params?e.column.modules.format.params(t):e.column.modules.format.params;function i(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1}return e.column.modules.format.formatter.call(this,t,n,i)},k.prototype.formatExportValue=function(e,t){var n,i=e.column.modules.format[t];if(i){var o=function(t){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=t,e.modules.format.rendered=!1};return n="function"===typeof i.params?i.params(component):i.params,i.formatter.call(this,e.getComponent(),n,o)}return this.formatValue(e)},k.prototype.sanitizeHTML=function(e){if(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}return e},k.prototype.emptyToSpace=function(e){return null===e||"undefined"===typeof e||""===e?" ":e},k.prototype.getFormatter=function(e){switch("undefined"===typeof e?"undefined":r(e)){case"string":this.formatters[e]?e=this.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),e=this.formatters.plaintext);break;case"function":e=e;break;default:e=this.formatters.plaintext;break}return e},k.prototype.formatters={plaintext:function(e,t,n){return this.emptyToSpace(this.sanitizeHTML(e.getValue()))},html:function(e,t,n){return e.getValue()},textarea:function(e,t,n){return e.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(e.getValue()))},money:function(e,t,n){var i,o,r,s,a=parseFloat(e.getValue()),c=t.decimal||".",l=t.thousand||",",u=t.symbol||"",d=!!t.symbolAfter,h="undefined"!==typeof t.precision?t.precision:2;if(isNaN(a))return this.emptyToSpace(this.sanitizeHTML(e.getValue()));i=!1!==h?a.toFixed(h):a,i=String(i).split("."),o=i[0],r=i.length>1?c+i[1]:"",s=/(\d+)(\d{3})/;while(s.test(o))o=o.replace(s,"$1"+l+"$2");return d?o+r+u:u+o+r},link:function(e,t,n){var i,o=e.getValue(),s=t.urlPrefix||"",a=t.download,c=o,l=document.createElement("a");if(t.labelField&&(i=e.getData(),c=i[t.labelField]),t.label)switch(r(t.label)){case"string":c=t.label;break;case"function":c=t.label(e);break}if(c){if(t.urlField&&(i=e.getData(),o=i[t.urlField]),t.url)switch(r(t.url)){case"string":o=t.url;break;case"function":o=t.url(e);break}return l.setAttribute("href",s+o),t.target&&l.setAttribute("target",t.target),t.download&&(a="function"==typeof a?a(e):!0===a?"":a,l.setAttribute("download",a)),l.innerHTML=this.emptyToSpace(this.sanitizeHTML(c)),l}return" "},image:function(e,t,n){var i=document.createElement("img"),o=e.getValue();switch(t.urlPrefix&&(o=t.urlPrefix+e.getValue()),t.urlSuffix&&(o+=t.urlSuffix),i.setAttribute("src",o),r(t.height)){case"number":i.style.height=t.height+"px";break;case"string":i.style.height=t.height;break}switch(r(t.width)){case"number":i.style.width=t.width+"px";break;case"string":i.style.width=t.width;break}return i.addEventListener("load",function(){e.getRow().normalizeHeight()}),i},tickCross:function(e,t,n){var i=e.getValue(),o=e.getElement(),r=t.allowEmpty,s=t.allowTruthy,a="undefined"!==typeof t.tickElement?t.tickElement:'',c="undefined"!==typeof t.crossElement?t.crossElement:'';return s&&i||!0===i||"true"===i||"True"===i||1===i||"1"===i?(o.setAttribute("aria-checked",!0),a||""):!r||"null"!==i&&""!==i&&null!==i&&"undefined"!==typeof i?(o.setAttribute("aria-checked",!1),c||""):(o.setAttribute("aria-checked","mixed"),"")},datetime:function(e,t,n){var i=t.inputFormat||"YYYY-MM-DD hh:mm:ss",o=t.outputFormat||"DD/MM/YYYY hh:mm:ss",r="undefined"!==typeof t.invalidPlaceholder?t.invalidPlaceholder:"",s=e.getValue(),a=moment(s,i);return a.isValid()?t.timezone?a.tz(t.timezone).format(o):a.format(o):!0===r?s:"function"===typeof r?r(s):r},datetimediff:function(e,t,n){var i=t.inputFormat||"YYYY-MM-DD hh:mm:ss",o="undefined"!==typeof t.invalidPlaceholder?t.invalidPlaceholder:"",r="undefined"!==typeof t.suffix&&t.suffix,s="undefined"!==typeof t.unit?t.unit:void 0,a="undefined"!==typeof t.humanize&&t.humanize,c="undefined"!==typeof t.date?t.date:moment(),l=e.getValue(),u=moment(l,i);return u.isValid()?a?moment.duration(u.diff(c)).humanize(r):u.diff(c,s)+(r?" "+r:""):!0===o?l:"function"===typeof o?o(l):o},lookup:function(e,t,n){var i=e.getValue();return"undefined"===typeof t[i]?(console.warn("Missing display value for "+i),i):t[i]},star:function(e,t,n){var i=e.getValue(),o=e.getElement(),r=t&&t.stars?t.stars:5,s=document.createElement("span"),a=document.createElementNS("http://www.w3.org/2000/svg","svg"),c='',l='';s.style.verticalAlign="middle",a.setAttribute("width","14"),a.setAttribute("height","14"),a.setAttribute("viewBox","0 0 512 512"),a.setAttribute("xml:space","preserve"),a.style.padding="0 1px",i=i&&!isNaN(i)?parseInt(i):0,i=Math.max(0,Math.min(i,r));for(var u=1;u<=r;u++){var d=a.cloneNode(!0);d.innerHTML=u<=i?c:l,s.appendChild(d)}return o.style.whiteSpace="nowrap",o.style.overflow="hidden",o.style.textOverflow="ellipsis",o.setAttribute("aria-label",i),s},traffic:function(e,t,n){var i,o,s=this.sanitizeHTML(e.getValue())||0,a=document.createElement("span"),c=t&&t.max?t.max:100,l=t&&t.min?t.min:0,u=t&&"undefined"!==typeof t.color?t.color:["red","orange","green"],d="#666666";if(!isNaN(s)&&"undefined"!==typeof e.getValue()){switch(a.classList.add("tabulator-traffic-light"),o=parseFloat(s)<=c?parseFloat(s):c,o=parseFloat(o)>=l?parseFloat(o):l,i=(c-l)/100,o=Math.round((o-l)/i),"undefined"===typeof u?"undefined":r(u)){case"string":d=u;break;case"function":d=u(s);break;case"object":if(Array.isArray(u)){var h=100/u.length,p=Math.floor(o/h);p=Math.min(p,u.length-1),p=Math.max(p,0),d=u[p];break}}return a.style.backgroundColor=d,a}},progress:function(e,t,n){var i,o,s,a,c,l=this.sanitizeHTML(e.getValue())||0,u=e.getElement(),d=t&&t.max?t.max:100,h=t&&t.min?t.min:0,f=t&&t.legendAlign?t.legendAlign:"center";switch(o=parseFloat(l)<=d?parseFloat(l):d,o=parseFloat(o)>=h?parseFloat(o):h,i=(d-h)/100,o=Math.round((o-h)/i),r(t.color)){case"string":s=t.color;break;case"function":s=t.color(l);break;case"object":if(Array.isArray(t.color)){var m=100/t.color.length,g=Math.floor(o/m);g=Math.min(g,t.color.length-1),g=Math.max(g,0),s=t.color[g];break}default:s="#2DC214"}switch(r(t.legend)){case"string":a=t.legend;break;case"function":a=t.legend(l);break;case"boolean":a=l;break;default:a=!1}switch(r(t.legendColor)){case"string":c=t.legendColor;break;case"function":c=t.legendColor(l);break;case"object":if(Array.isArray(t.legendColor)){m=100/t.legendColor.length,g=Math.floor(o/m);g=Math.min(g,t.legendColor.length-1),g=Math.max(g,0),c=t.legendColor[g]}break;default:c="#000"}u.style.minWidth="30px",u.style.position="relative",u.setAttribute("aria-label",o);var v=document.createElement("div");if(v.style.display="inline-block",v.style.position="relative",v.style.width=o+"%",v.style.backgroundColor=s,v.style.height="100%",v.setAttribute("data-max",d),v.setAttribute("data-min",h),a){var b=document.createElement("div");b.style.position="absolute",b.style.top="4px",b.style.left=0,b.style.textAlign=f,b.style.width="100%",b.style.color=c,b.innerHTML=a}return n(function(){if(!(e instanceof p)){var t=document.createElement("div");t.style.position="absolute",t.style.top="4px",t.style.bottom="4px",t.style.left="4px",t.style.right="4px",u.appendChild(t),u=t}u.appendChild(v),a&&u.appendChild(b)}),""},color:function(e,t,n){return e.getElement().style.backgroundColor=this.sanitizeHTML(e.getValue()),""},buttonTick:function(e,t,n){return''},buttonCross:function(e,t,n){return''},rownum:function(e,t,n){return this.table.rowManager.activeRows.indexOf(e.getRow()._getSelf())+1},handle:function(e,t,n){return e.getElement().classList.add("tabulator-row-handle"),"
"},responsiveCollapse:function(e,t,n){var i=document.createElement("div"),o=e.getRow()._row.modules.responsiveLayout;function r(e){var t=o.element;o.open=e,t&&(o.open?(i.classList.add("open"),t.style.display=""):(i.classList.remove("open"),t.style.display="none"))}return i.classList.add("tabulator-responsive-collapse-toggle"),i.innerHTML="+-",e.getElement().classList.add("tabulator-row-handle"),i.addEventListener("click",function(e){e.stopImmediatePropagation(),r(!o.open)}),r(o.open),i},rowSelection:function(e,t,n){var i=this,o=document.createElement("input");if(o.type="checkbox",this.table.modExists("selectRow",!0))if(o.addEventListener("click",function(e){e.stopPropagation()}),"function"==typeof e.getRow){var r=e.getRow();r instanceof d?(o.addEventListener("change",function(e){r.toggleSelect()}),o.checked=r.isSelected&&r.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(r,o)):o=""}else o.addEventListener("change",function(e){i.table.modules.selectRow.selectedRows.length?i.table.deselectRow():i.table.selectRow(t.rowRange)}),this.table.modules.selectRow.registerHeaderSelectCheckbox(o);return o}},g.prototype.registerModule("format",k);var z=function(e){this.table=e,this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightPadding=0,this.initializationMode="left",this.active=!1,this.scrollEndTimer=!1};z.prototype.reset=function(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.leftMargin=0,this.rightMargin=0,this.rightMargin=0,this.active=!1,this.table.columnManager.headersElement.style.marginLeft=0,this.table.columnManager.element.style.paddingRight=0},z.prototype.initializeColumn=function(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,"left"==this.initializationMode?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")},z.prototype.frozenCheck=function(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen},z.prototype.scrollHorizontal=function(){var e,t=this;this.active&&(clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout(function(){t.layout()},100),e=this.table.rowManager.getVisibleRows(),this.calcMargins(),this.layoutColumnPosition(),this.layoutCalcRows(),e.forEach(function(e){"row"===e.type&&t.layoutRow(e)}),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},z.prototype.calcMargins=function(){this.leftMargin=this._calcSpace(this.leftColumns,this.leftColumns.length)+"px",this.table.columnManager.headersElement.style.marginLeft=this.leftMargin,this.rightMargin=this._calcSpace(this.rightColumns,this.rightColumns.length)+"px",this.table.columnManager.element.style.paddingRight=this.rightMargin,this.rightPadding=this.table.rowManager.element.clientWidth+this.table.columnManager.scrollLeft},z.prototype.layoutCalcRows=function(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow))},z.prototype.layoutColumnPosition=function(e){var t=this,n=[];this.leftColumns.forEach(function(i,o){if(i.modules.frozen.margin=t._calcSpace(t.leftColumns,o)+t.table.columnManager.scrollLeft+"px",o==t.leftColumns.length-1?i.modules.frozen.edge=!0:i.modules.frozen.edge=!1,i.parent.isGroup){var r=t.getColGroupParentElement(i);n.includes(r)||(t.layoutElement(r,i),n.push(r)),i.modules.frozen.edge&&r.classList.add("tabulator-frozen-"+i.modules.frozen.position)}else t.layoutElement(i.getElement(),i);e&&i.cells.forEach(function(e){t.layoutElement(e.getElement(!0),i)})}),this.rightColumns.forEach(function(n,i){n.modules.frozen.margin=t.rightPadding-t._calcSpace(t.rightColumns,i+1)+"px",i==t.rightColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup?t.layoutElement(t.getColGroupParentElement(n),n):t.layoutElement(n.getElement(),n),e&&n.cells.forEach(function(e){t.layoutElement(e.getElement(!0),n)})})},z.prototype.getColGroupParentElement=function(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()},z.prototype.layout=function(){var e=this;e.active&&(this.calcMargins(),e.table.rowManager.getDisplayRows().forEach(function(t){"row"===t.type&&e.layoutRow(t)}),this.layoutCalcRows(),this.layoutColumnPosition(!0),this.table.rowManager.tableElement.style.marginRight=this.rightMargin)},z.prototype.layoutRow=function(e){var t=this,n=e.getElement();n.style.paddingLeft=this.leftMargin,this.leftColumns.forEach(function(n){var i=e.getCell(n);i&&t.layoutElement(i.getElement(!0),n)}),this.rightColumns.forEach(function(n){var i=e.getCell(n);i&&t.layoutElement(i.getElement(!0),n)})},z.prototype.layoutElement=function(e,t){t.modules.frozen&&(e.style.position="absolute",e.style.left=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),t.modules.frozen.edge&&e.classList.add("tabulator-frozen-"+t.modules.frozen.position))},z.prototype._calcSpace=function(e,t){for(var n=0,i=0;i-1&&t.splice(n,1)}),t},P.prototype.freezeRow=function(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.table.rowManager.adjustTableSize(),this.rows.push(e),this.table.rowManager.refreshActiveData("display"),this.styleRows())},P.prototype.unfreezeRow=function(e){this.rows.indexOf(e);e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.table.rowManager.refreshActiveData("display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")},P.prototype.detachRow=function(e){var t=this.rows.indexOf(e);if(t>-1){var n=e.getElement();n.parentNode.removeChild(n),this.rows.splice(t,1)}},P.prototype.styleRows=function(e){var t=this;this.rows.forEach(function(e,n){t.table.rowManager.styleRow(e,n)})},g.prototype.registerModule("frozenRows",P);var N=function(e){this._group=e,this.type="GroupComponent"};N.prototype.getKey=function(){return this._group.key},N.prototype.getField=function(){return this._group.field},N.prototype.getElement=function(){return this._group.element},N.prototype.getRows=function(){return this._group.getRows(!0)},N.prototype.getSubGroups=function(){return this._group.getSubGroups(!0)},N.prototype.getParentGroup=function(){return!!this._group.parent&&this._group.parent.getComponent()},N.prototype.getVisibility=function(){return console.warn("getVisibility function is deprecated, you should now use the isVisible function"),this._group.visible},N.prototype.isVisible=function(){return this._group.visible},N.prototype.show=function(){this._group.show()},N.prototype.hide=function(){this._group.hide()},N.prototype.toggle=function(){this._group.toggleVisibility()},N.prototype._getSelf=function(){return this._group},N.prototype.getTable=function(){return this._group.groupManager.table};var I=function(e,t,n,i,o,r,s){this.groupManager=e,this.parent=t,this.key=i,this.level=n,this.field=o,this.hasSubGroups=n-1?n?this.rows.splice(o+1,0,e):this.rows.splice(o,0,e):n?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)},I.prototype.scrollHeader=function(e){this.arrowElement.style.marginLeft=e,this.groupList.forEach(function(t){t.scrollHeader(e)})},I.prototype.getRowIndex=function(e){},I.prototype.conformRowData=function(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e},I.prototype.removeRow=function(e){var t=this.rows.indexOf(e),n=e.getElement();t>-1&&this.rows.splice(t,1),this.groupManager.table.options.groupValues||this.rows.length?(n.parentNode&&n.parentNode.removeChild(n),this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)):(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0))},I.prototype.removeGroup=function(e){var t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],t=this.groupList.indexOf(e),t>-1&&this.groupList.splice(t,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))},I.prototype.getHeadersAndRows=function(e){var t=[];return t.push(this),this._visSet(),this.visible?this.groupList.length?this.groupList.forEach(function(n){t=t.concat(n.getHeadersAndRows(e))}):(!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top)),t=t.concat(this.rows),!e&&"table"!=this.groupManager.table.options.columnCalcs&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom))):this.groupList.length||"table"==this.groupManager.table.options.columnCalcs||this.groupManager.table.modExists("columnCalcs")&&(!e&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),t.push(this.calcs.top))),!e&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),t.push(this.calcs.bottom)))),t},I.prototype.getData=function(e,t){var n=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach(function(e){n.push(e.getData(t||"data"))}),n},I.prototype.getRowCount=function(){var e=0;return this.groupList.length?this.groupList.forEach(function(t){e+=t.getRowCount()}):e=this.rows.length,e},I.prototype.toggleVisibility=function(){this.visible?this.hide():this.show()},I.prototype.hide=function(){this.visible=!1,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination?this.groupManager.updateGroupRows(!0):(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach(function(e){var t=e.getHeadersAndRows();t.forEach(function(e){e.detachElement()})}):this.rows.forEach(function(e){var t=e.getElement();t.parentNode.removeChild(t)}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()),this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!1)},I.prototype.show=function(){var e=this;if(e.visible=!0,"classic"!=this.groupManager.table.rowManager.getRenderMode()||this.groupManager.table.options.pagination)this.groupManager.updateGroupRows(!0);else{this.element.classList.add("tabulator-group-visible");var t=e.getElement();this.groupList.length?this.groupList.forEach(function(e){var n=e.getHeadersAndRows();n.forEach(function(e){var n=e.getElement();t.parentNode.insertBefore(n,t.nextSibling),e.initialize(),t=n})}):e.rows.forEach(function(e){var n=e.getElement();t.parentNode.insertBefore(n,t.nextSibling),e.initialize(),t=n}),this.groupManager.table.rowManager.setDisplayRows(this.groupManager.updateGroupRows(),this.groupManager.getDisplayIndex()),this.groupManager.table.rowManager.checkClassicModeGroupHeaderWidth()}this.groupManager.table.options.groupVisibilityChanged.call(this.table,this.getComponent(),!0)},I.prototype._visSet=function(){var e=[];"function"==typeof this.visible&&(this.rows.forEach(function(t){e.push(t.getData())}),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))},I.prototype.getRowGroup=function(e){var t=!1;return this.groupList.length?this.groupList.forEach(function(n){var i=n.getRowGroup(e);i&&(t=i)}):this.rows.find(function(t){return t===e})&&(t=this),t},I.prototype.getSubGroups=function(e){var t=[];return this.groupList.forEach(function(n){t.push(e?n.getComponent():n)}),t},I.prototype.getRows=function(e){var t=[];return this.rows.forEach(function(n){t.push(e?n.getComponent():n)}),t},I.prototype.generateGroupHeaderContents=function(){var e=[];this.rows.forEach(function(t){e.push(t.getData())}),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());while(this.element.firstChild)this.element.removeChild(this.element.firstChild);"string"===typeof this.elementContents?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)},I.prototype.getPath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.unshift(this.key),this.parent&&this.parent.getPath(e),e},I.prototype.getElement=function(){this.addBindingsd=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;ei.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),e.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],e.table.modules.localize.bind("groups|item",function(t,n){e.headerGenerator[0]=function(e,i,o){return("undefined"===typeof e?"":e)+"("+i+" "+(1===i?t:n.groups.items)+")"}}),this.groupIDLookups=[],Array.isArray(t)||t)this.table.modExists("columnCalcs")&&"table"!=this.table.options.columnCalcs&&"both"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.removeCalcs();else if(this.table.modExists("columnCalcs")&&"group"!=this.table.options.columnCalcs){var o=this.table.columnManager.getRealColumns();o.forEach(function(t){t.definition.topCalc&&e.table.modules.columnCalcs.initializeTopRow(),t.definition.bottomCalc&&e.table.modules.columnCalcs.initializeBottomRow()})}Array.isArray(t)||(t=[t]),t.forEach(function(t,n){var i,o;"function"==typeof t?i=t:(o=e.table.columnManager.getColumnByField(t),i=o?function(e){return o.getFieldValue(e)}:function(e){return e[t]}),e.groupIDLookups.push({field:"function"!==typeof t&&t,func:i,values:!!e.allowedValues&&e.allowedValues[n]})}),n&&(Array.isArray(n)||(n=[n]),n.forEach(function(e){e="function"==typeof e?e:function(){return!0}}),e.startOpen=n),i&&(e.headerGenerator=Array.isArray(i)?i:[i]),this.initialized=!0},D.prototype.setDisplayIndex=function(e){this.displayIndex=e},D.prototype.getDisplayIndex=function(){return this.displayIndex},D.prototype.getRows=function(e){return this.groupIDLookups.length?(this.table.options.dataGrouping.call(this.table),this.generateGroups(e),this.table.options.dataGrouped&&this.table.options.dataGrouped.call(this.table,this.getGroups(!0)),this.updateGroupRows()):e.slice(0)},D.prototype.getGroups=function(e){var t=[];return this.groupList.forEach(function(n){t.push(e?n.getComponent():n)}),t},D.prototype.getChildGroups=function(e){var t=this,n=[];return e||(e=this),e.groupList.forEach(function(e){e.groupList.length?n=n.concat(t.getChildGroups(e)):n.push(e)}),n},D.prototype.wipe=function(){this.groupList.forEach(function(e){e.wipe()})},D.prototype.pullGroupListData=function(e){var t=this,n=[];return e.forEach(function(e){var i={level:0,rowCount:0,headerContent:""},o=[];e.hasSubGroups?(o=t.pullGroupListData(e.groupList),i.level=e.level,i.rowCount=o.length-e.groupList.length,i.headerContent=e.generator(e.key,i.rowCount,e.rows,e),n.push(i),n=n.concat(o)):(i.level=e.level,i.headerContent=e.generator(e.key,e.rows.length,e.rows,e),i.rowCount=e.getRows().length,n.push(i),e.getRows().forEach(function(e){n.push(e.getData("data"))}))}),n},D.prototype.getGroupedData=function(){return this.pullGroupListData(this.groupList)},D.prototype.getRowGroup=function(e){var t=!1;return this.groupList.forEach(function(n){var i=n.getRowGroup(e);i&&(t=i)}),t},D.prototype.countGroups=function(){return this.groupList.length},D.prototype.generateGroups=function(e){var t=this,n=t.groups;t.groups={},t.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach(function(e){t.createGroup(e,0,n)}),e.forEach(function(e){t.assignRowToExistingGroup(e,n)})):e.forEach(function(e){t.assignRowToGroup(e,n)})},D.prototype.createGroup=function(e,t,n){var i,o=t+"_"+e;n=n||[],i=new I(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],n[o]),this.groups[o]=i,this.groupList.push(i)},D.prototype.assignRowToExistingGroup=function(e,t){var n=this.groupIDLookups[0].func(e.getData()),i="0_"+n;this.groups[i]&&this.groups[i].addRow(e)},D.prototype.assignRowToGroup=function(e,t){var n=this.groupIDLookups[0].func(e.getData()),i=!this.groups["0_"+n];return i&&this.createGroup(n,0,t),this.groups["0_"+n].addRow(e),!i},D.prototype.reassignRowToGroup=function(e){var t=e.getGroup(),n=t.getPath(),i=this.getExpectedPath(e),o=!0;o=n.length==i.length&&n.every(function(e,t){return e===i[t]});o||(t.removeRow(e),this.assignRowToGroup(e,self.groups),this.table.rowManager.refreshActiveData("group",!1,!0))},D.prototype.getExpectedPath=function(e){var t=[],n=e.getData();return this.groupIDLookups.forEach(function(e){t.push(e.func(n))}),t},D.prototype.updateGroupRows=function(e){var t=this,n=[];if(t.groupList.forEach(function(e){n=n.concat(e.getHeadersAndRows())}),e){var i=t.table.rowManager.setDisplayRows(n,this.getDisplayIndex());!0!==i&&this.setDisplayIndex(i),t.table.rowManager.refreshActiveData("group",!0,!0)}return n},D.prototype.scrollHeaders=function(e){this.table.options.virtualDomHoz&&(e-=this.table.vdomHoz.vDomPadLeft),e+="px",this.groupList.forEach(function(t){t.scrollHeader(e)})},D.prototype.removeGroup=function(e){var t,n=e.level+"_"+e.key;this.groups[n]&&(delete this.groups[n],t=this.groupList.indexOf(e),t>-1&&this.groupList.splice(t,1))},g.prototype.registerModule("groupRows",D);var B=function(e){this.table=e,this.history=[],this.index=-1};B.prototype.clear=function(){this.history=[],this.index=-1},B.prototype.action=function(e,t,n){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:n}),this.index++},B.prototype.getHistoryUndoSize=function(){return this.index+1},B.prototype.getHistoryRedoSize=function(){return this.history.length-(this.index+1)},B.prototype.clearComponentHistory=function(e){var t=this.history.findIndex(function(t){return t.component===e});t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))},B.prototype.undo=function(){if(this.index>-1){var e=this.history[this.index];return this.undoers[e.type].call(this,e),this.index--,this.table.options.historyUndo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Undo Error - No more history to undo"),!1},B.prototype.redo=function(){if(this.history.length-1>this.index){this.index++;var e=this.history[this.index];return this.redoers[e.type].call(this,e),this.table.options.historyRedo.call(this.table,e.type,e.component.getComponent(),e.data),!0}return console.warn("History Redo Error - No more history to redo"),!1},B.prototype.undoers={cellEdit:function(e){e.component.setValueProcessData(e.data.oldValue)},rowAdd:function(e){e.component.deleteActual()},rowDelete:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t)},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.posFrom],!e.data.after),this.table.rowManager.redraw()}},B.prototype.redoers={cellEdit:function(e){e.component.setValueProcessData(e.data.newValue)},rowAdd:function(e){var t=this.table.rowManager.addRowActual(e.data.data,e.data.pos,e.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(e.component,t)},rowDelete:function(e){e.component.deleteActual()},rowMove:function(e){this.table.rowManager.moveRowActual(e.component,this.table.rowManager.rows[e.data.posTo],e.data.after),this.table.rowManager.redraw()}},B.prototype._rebindRow=function(e,t){this.history.forEach(function(n){if(n.component instanceof h)n.component===e&&(n.component=t);else if(n.component instanceof f&&n.component.row===e){var i=n.component.column.getField();i&&(n.component=t.getCell(i))}})},g.prototype.registerModule("history",B);var q=function(e){this.table=e,this.fieldIndex=[],this.hasIndex=!1};q.prototype.parseTable=function(){var e=this,t=e.table.element,n=e.table.options,i=(n.columns,t.getElementsByTagName("th")),o=t.getElementsByTagName("tbody")[0],s=[];e.hasIndex=!1,e.table.options.htmlImporting.call(this.table),o=o?o.getElementsByTagName("tr"):[],e._extractOptions(t,n),i.length?e._extractHeaders(i,o):e._generateBlankHeaders(i,o);for(var a=0;a-1&&e.pressedKeys.splice(o,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)},j.prototype.clearBindings=function(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)},j.prototype.checkBinding=function(e,t){var n=this,i=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta&&(t.keys.forEach(function(e){var t=n.pressedKeys.indexOf(e);-1==t&&(i=!1)}),i&&t.action.call(n,e),!0)},j.prototype.bindings={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35,undo:"ctrl + 90",redo:"ctrl + 89",copyToClipboard:"ctrl + 67"},j.prototype.actions={keyBlock:function(e){e.stopPropagation(),e.preventDefault()},scrollPageUp:function(e){var t=this.table.rowManager,n=t.scrollTop-t.height;t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(n>=0?t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(e){var t=this.table.rowManager,n=t.scrollTop+t.height,i=t.element.scrollHeight;e.preventDefault(),t.displayRowsCount&&(n<=i?t.element.scrollTop=n:t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(e){var t=this.table.rowManager;e.preventDefault(),t.displayRowsCount&&t.scrollToRow(t.getDisplayRows()[t.displayRowsCount-1]),this.table.element.focus()},navPrev:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().prev()))},navNext:function(e){var t,n=!1,i=this.table.options.tabEndNewRow;this.table.modExists("edit")&&(n=this.table.modules.edit.currentCell,n&&(e.preventDefault(),t=n.nav(),t.next()||i&&(n.getElement().firstChild.blur(),i=!0===i?this.table.addRow({}):"function"==typeof i?this.table.addRow(i(n.row.getComponent())):this.table.addRow(Object.assign({},i)),i.then(function(){setTimeout(function(){t.next()})}))))},navLeft:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().left()))},navRight:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().right()))},navUp:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().up()))},navDown:function(e){var t=!1;this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t&&(e.preventDefault(),t.nav().down()))},undo:function(e){var t=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t||(e.preventDefault(),this.table.modules.history.undo()))},redo:function(e){var t=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(t=this.table.modules.edit.currentCell,t||(e.preventDefault(),this.table.modules.history.redo()))},copyToClipboard:function(e){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},g.prototype.registerModule("keybindings",j);var W=function(e){this.table=e,this.menuElements=[],this.blurEvent=this.hideMenu.bind(this),this.escEvent=this.escMenu.bind(this),this.nestedMenuBlock=!1,this.positionReversedX=!1};W.prototype.initializeColumnHeader=function(e){var t,n=this;e.definition.headerContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,e.definition.headerContextMenu)),this.tapHold(e,e.definition.headerContextMenu)),e.definition.headerMenu&&(t=document.createElement("span"),t.classList.add("tabulator-header-menu-button"),t.innerHTML="⋮",t.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault(),n.LoadMenuEvent(e,e.definition.headerMenu,t)}),e.titleElement.insertBefore(t,e.titleElement.firstChild))},W.prototype.LoadMenuEvent=function(e,t,n){t="function"==typeof t?t.call(this.table,e.getComponent(),n):t,this.loadMenu(n,e,t)},W.prototype.tapHold=function(e,t){var n=this,i=e.getElement(),o=null,r=!1;i.addEventListener("touchstart",function(i){clearTimeout(o),r=!1,o=setTimeout(function(){clearTimeout(o),o=null,r=!0,n.LoadMenuEvent(e,t,i)},1e3)},{passive:!0}),i.addEventListener("touchend",function(e){clearTimeout(o),o=null,r&&e.preventDefault()})},W.prototype.initializeCell=function(e){e.column.definition.contextMenu&&(e.getElement(!0).addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,e.column.definition.contextMenu)),this.tapHold(e,e.column.definition.contextMenu)),e.column.definition.clickMenu&&e.getElement(!0).addEventListener("click",this.LoadMenuEvent.bind(this,e,e.column.definition.clickMenu))},W.prototype.initializeRow=function(e){this.table.options.rowContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,this.table.options.rowContextMenu)),this.tapHold(e,this.table.options.rowContextMenu)),this.table.options.rowClickMenu&&e.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,e,this.table.options.rowClickMenu))},W.prototype.initializeGroup=function(e){this.table.options.groupContextMenu&&(e.getElement().addEventListener("contextmenu",this.LoadMenuEvent.bind(this,e,this.table.options.groupContextMenu)),this.tapHold(e,this.table.options.groupContextMenu)),this.table.options.groupClickMenu&&e.getElement().addEventListener("click",this.LoadMenuEvent.bind(this,e,this.table.options.groupClickMenu))},W.prototype.loadMenu=function(e,t,n,i){var o=this,r=!(e instanceof MouseEvent),s=document.createElement("div");if(s.classList.add("tabulator-menu"),r||e.preventDefault(),n&&n.length){if(!i){if(this.nestedMenuBlock){if(this.isOpen())return}else this.nestedMenuBlock=setTimeout(function(){o.nestedMenuBlock=!1},100);this.hideMenu(),this.menuElements=[]}n.forEach(function(e){var n=document.createElement("div"),i=e.label,r=e.disabled;e.separator?n.classList.add("tabulator-menu-separator"):(n.classList.add("tabulator-menu-item"),"function"==typeof i&&(i=i.call(o.table,t.getComponent())),i instanceof Node?n.appendChild(i):n.innerHTML=i,"function"==typeof r&&(r=r.call(o.table,t.getComponent())),r?(n.classList.add("tabulator-menu-item-disabled"),n.addEventListener("click",function(e){e.stopPropagation()})):e.menu&&e.menu.length?n.addEventListener("click",function(i){i.stopPropagation(),o.hideOldSubMenus(s),o.loadMenu(i,t,e.menu,n)}):e.action&&n.addEventListener("click",function(n){e.action(n,t.getComponent())}),e.menu&&e.menu.length&&n.classList.add("tabulator-menu-item-submenu")),s.appendChild(n)}),s.addEventListener("click",function(e){o.hideMenu()}),this.menuElements.push(s),this.positionMenu(s,i,r,e)}},W.prototype.hideOldSubMenus=function(e){var t=this.menuElements.indexOf(e);if(t>-1)for(var n=this.menuElements.length-1;n>t;n--){var i=this.menuElements[n];i.parentNode&&i.parentNode.removeChild(i),this.menuElements.pop()}},W.prototype.positionMenu=function(e,t,n,i){var o,r,s,a=this,c=Math.max(document.body.offsetHeight,window.innerHeight);t?(s=g.prototype.helpers.elOffset(t),o=s.left+t.offsetWidth,r=s.top-1):(o=n?i.touches[0].pageX:i.pageX,r=n?i.touches[0].pageY:i.pageY,this.positionReversedX=!1),e.style.top=r+"px",e.style.left=o+"px",setTimeout(function(){a.table.rowManager.element.addEventListener("scroll",a.blurEvent),document.body.addEventListener("click",a.blurEvent),document.body.addEventListener("contextmenu",a.blurEvent),window.addEventListener("resize",a.blurEvent),document.body.addEventListener("keydown",a.escEvent)},100),document.body.appendChild(e),r+e.offsetHeight>=c&&(e.style.top="",e.style.bottom=t?c-s.top-t.offsetHeight-1+"px":c-r+"px"),(o+e.offsetWidth>=document.body.offsetWidth||this.positionReversedX)&&(e.style.left="",e.style.right=t?document.documentElement.offsetWidth-s.left+"px":document.documentElement.offsetWidth-o+"px",this.positionReversedX=!0)},W.prototype.isOpen=function(){return!!this.menuElements.length},W.prototype.escMenu=function(e){27==e.keyCode&&this.hideMenu()},W.prototype.hideMenu=function(){this.menuElements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent)},W.prototype.menus={},g.prototype.registerModule("menu",W);var F=function(e){this.table=e,this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this)};F.prototype.createPlaceholderElement=function(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e},F.prototype.initializeColumn=function(e){var t,n=this,i={};e.modules.frozen||(t=e.getElement(),i.mousemove=function(i){e.parent===n.moving.parent&&((n.touchMove?i.touches[0].pageX:i.pageX)-g.prototype.helpers.elOffset(t).left+n.table.columnManager.element.scrollLeft>e.getWidth()/2?n.toCol===e&&n.toColAfter||(t.parentNode.insertBefore(n.placeholderElement,t.nextSibling),n.moveColumn(e,!0)):(n.toCol!==e||n.toColAfter)&&(t.parentNode.insertBefore(n.placeholderElement,t),n.moveColumn(e,!1)))}.bind(n),t.addEventListener("mousedown",function(t){n.touchMove=!1,1===t.which&&(n.checkTimeout=setTimeout(function(){n.startMove(t,e)},n.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)}),n.bindTouchEvents(e)),e.modules.moveColumn=i},F.prototype.bindTouchEvents=function(e){var t,n,i,o,r,s,a=this,c=e.getElement(),l=!1;c.addEventListener("touchstart",function(c){a.checkTimeout=setTimeout(function(){a.touchMove=!0,e,t=e.nextColumn(),i=t?t.getWidth()/2:0,n=e.prevColumn(),o=n?n.getWidth()/2:0,r=0,s=0,l=!1,a.startMove(c,e)},a.checkPeriod)},{passive:!0}),c.addEventListener("touchmove",function(c){var u,d;a.moving&&(a.moveHover(c),l||(l=c.touches[0].pageX),u=c.touches[0].pageX-l,u>0?t&&u-r>i&&(d=t,d!==e&&(l=c.touches[0].pageX,d.getElement().parentNode.insertBefore(a.placeholderElement,d.getElement().nextSibling),a.moveColumn(d,!0))):n&&-u-s>o&&(d=n,d!==e&&(l=c.touches[0].pageX,d.getElement().parentNode.insertBefore(a.placeholderElement,d.getElement()),a.moveColumn(d,!1))),d&&(d,t=d.nextColumn(),r=i,i=t?t.getWidth()/2:0,n=d.prevColumn(),s=o,o=n?n.getWidth()/2:0))},{passive:!0}),c.addEventListener("touchend",function(e){a.checkTimeout&&clearTimeout(a.checkTimeout),a.moving&&a.endMove(e)})},F.prototype.startMove=function(e,t){var n=t.getElement();this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-g.prototype.helpers.elOffset(n).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.table.columnManager.getElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom="0",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e)},F.prototype._bindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)})},F.prototype._unbindMouseMove=function(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)})},F.prototype.moveColumn=function(e,t){var n=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach(function(e,t){var i=e.getElement(!0);i.parentNode.insertBefore(n[t].getElement(),i.nextSibling)}):e.getCells().forEach(function(e,t){var i=e.getElement(!0);i.parentNode.insertBefore(n[t].getElement(),i)})},F.prototype.endMove=function(e){(1===e.which||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))},F.prototype.moveHover=function(e){var t,n=this,i=n.table.columnManager.getElement(),o=i.scrollLeft,r=(n.touchMove?e.touches[0].pageX:e.pageX)-g.prototype.helpers.elOffset(i).left+o;n.hoverElement.style.left=r-n.startX+"px",r-oe.getHeight()/2){if(t.toRow!==e||!t.toRowAfter){var i=e.getElement();i.parentNode.insertBefore(t.placeholderElement,i.nextSibling),t.moveRow(e,!0)}}else if(t.toRow!==e||t.toRowAfter){i=e.getElement();i.previousSibling&&(i.parentNode.insertBefore(t.placeholderElement,i),t.moveRow(e,!1))}}.bind(t),e.modules.moveRow=n},H.prototype.initializeRow=function(e){var t,n=this,i={};i.mouseup=function(t){n.tableRowDrop(t,e)}.bind(n),i.mousemove=function(t){var i=e.getElement();t.pageY-g.prototype.helpers.elOffset(i).top+n.table.rowManager.element.scrollTop>e.getHeight()/2?n.toRow===e&&n.toRowAfter||(i.parentNode.insertBefore(n.placeholderElement,i.nextSibling),n.moveRow(e,!0)):(n.toRow!==e||n.toRowAfter)&&(i.parentNode.insertBefore(n.placeholderElement,i),n.moveRow(e,!1))}.bind(n),this.hasHandle||(t=e.getElement(),t.addEventListener("mousedown",function(t){1===t.which&&(n.checkTimeout=setTimeout(function(){n.startMove(t,e)},n.checkPeriod))}),t.addEventListener("mouseup",function(e){1===e.which&&n.checkTimeout&&clearTimeout(n.checkTimeout)}),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=i},H.prototype.initializeCell=function(e){var t=this,n=e.getElement(!0);n.addEventListener("mousedown",function(n){1===n.which&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e.row)},t.checkPeriod))}),n.addEventListener("mouseup",function(e){1===e.which&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,n)},H.prototype.bindTouchEvents=function(e,t){var n,i,o,r,s,a,c=this,l=!1;t.addEventListener("touchstart",function(t){c.checkTimeout=setTimeout(function(){c.touchMove=!0,e,n=e.nextRow(),o=n?n.getHeight()/2:0,i=e.prevRow(),r=i?i.getHeight()/2:0,s=0,a=0,l=!1,c.startMove(t,e)},c.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",function(t){var u,d;c.moving&&(t.preventDefault(),c.moveHover(t),l||(l=t.touches[0].pageY),u=t.touches[0].pageY-l,u>0?n&&u-s>o&&(d=n,d!==e&&(l=t.touches[0].pageY,d.getElement().parentNode.insertBefore(c.placeholderElement,d.getElement().nextSibling),c.moveRow(d,!0))):i&&-u-a>r&&(d=i,d!==e&&(l=t.touches[0].pageY,d.getElement().parentNode.insertBefore(c.placeholderElement,d.getElement()),c.moveRow(d,!1))),d&&(d,n=d.nextRow(),s=o,o=n?n.getHeight()/2:0,i=d.prevRow(),a=r,r=i?i.getHeight()/2:0))}),t.addEventListener("touchend",function(e){c.checkTimeout&&clearTimeout(c.checkTimeout),c.moving&&(c.endMove(e),c.touchMove=!1)})},H.prototype._bindMouseMove=function(){var e=this;e.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)})},H.prototype._unbindMouseMove=function(){var e=this;e.table.rowManager.getDisplayRows().forEach(function(e){"row"!==e.type&&"group"!==e.type||!e.modules.moveRow.mousemove||e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)})},H.prototype.startMove=function(e,t){var n=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(n.parentNode.insertBefore(this.placeholderElement,n),n.parentNode.removeChild(n)),this.hoverElement=n.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.moveHover(e)},H.prototype.setStartPosition=function(e,t){var n,i,o=this.touchMove?e.touches[0].pageX:e.pageX,r=this.touchMove?e.touches[0].pageY:e.pageY;n=t.getElement(),this.connection?(i=n.getBoundingClientRect(),this.startX=i.left-o+window.pageXOffset,this.startY=i.top-r+window.pageYOffset):this.startY=r-n.getBoundingClientRect().top},H.prototype.endMove=function(e){e&&1!==e.which&&!this.touchMove||(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow&&this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))},H.prototype.moveRow=function(e,t){this.toRow=e,this.toRowAfter=t},H.prototype.moveHover=function(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)},H.prototype.moveHoverTable=function(e){var t=this.table.rowManager.getElement(),n=t.scrollTop,i=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+n;this.hoverElement.style.top=i-this.startY+"px"},H.prototype.moveHoverConnections=function(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"},H.prototype.elementRowDrop=function(e,t,n){this.table.options.movableRowsElementDrop&&this.table.options.movableRowsElementDrop(e,t,!!n&&n.getComponent())},H.prototype.connectToTables=function(e){var t,n=this;this.connectionSelectorsTables&&(t=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStart.call(this.table,t),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach(function(e){"string"===typeof e?n.connectionElements=n.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(e))):n.connectionElements.push(e)}),this.connectionElements.forEach(function(e){var t=function(t){n.elementRowDrop(t,e,n.moving)};e.addEventListener("mouseup",t),e.tabulatorElementDropEvent=t,e.classList.add("tabulator-movingrow-receiving")}))},H.prototype.disconnectFromTables=function(){var e;this.connectionSelectorsTables&&(e=this.table.modules.comms.getConnections(this.connectionSelectorsTables),this.table.options.movableRowsSendingStop.call(this.table,e),this.table.modules.comms.send(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach(function(e){e.classList.remove("tabulator-movingrow-receiving"),e.removeEventListener("mouseup",e.tabulatorElementDropEvent),delete e.tabulatorElementDropEvent})},H.prototype.connect=function(e,t){var n=this;return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),n.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().addEventListener("mouseup",e.modules.moveRow.mouseup)}),n.tableRowDropEvent=n.tableRowDrop.bind(n),n.table.element.addEventListener("mouseup",n.tableRowDropEvent),this.table.options.movableRowsReceivingStart.call(this.table,t,e),!0)},H.prototype.disconnect=function(e){var t=this;e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),t.table.rowManager.getDisplayRows().forEach(function(e){"row"===e.type&&e.modules.moveRow&&e.modules.moveRow.mouseup&&e.getElement().removeEventListener("mouseup",e.modules.moveRow.mouseup)}),t.table.element.removeEventListener("mouseup",t.tableRowDropEvent),this.table.options.movableRowsReceivingStop.call(this.table,e)):console.warn("Move Row Error - trying to disconnect from non connected table")},H.prototype.dropComplete=function(e,t,n){var i=!1;if(n){switch(r(this.table.options.movableRowsSender)){case"string":i=this.senders[this.table.options.movableRowsSender];break;case"function":i=this.table.options.movableRowsSender;break}i?i.call(this,this.moving.getComponent(),t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.table.options.movableRowsSent.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.table.options.movableRowsSentFailed.call(this.table,this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()},H.prototype.tableRowDrop=function(e,t){var n=!1,i=!1;switch(e.stopImmediatePropagation(),r(this.table.options.movableRowsReceiver)){case"string":n=this.receivers[this.table.options.movableRowsReceiver];break;case"function":n=this.table.options.movableRowsReceiver;break}n?i=n.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),i?this.table.options.movableRowsReceived.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.table.options.movableRowsReceivedFailed.call(this.table,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.table.modules.comms.send(this.connectedTable,"moveRow","dropcomplete",{row:t,success:i})},H.prototype.receivers={insert:function(e,t,n){return this.table.addRow(e.getData(),void 0,t),!0},add:function(e,t,n){return this.table.addRow(e.getData()),!0},update:function(e,t,n){return!!t&&(t.update(e.getData()),!0)},replace:function(e,t,n){return!!t&&(this.table.addRow(e.getData(),void 0,t),t.delete(),!0)}},H.prototype.senders={delete:function(e,t,n){e.delete()}},H.prototype.commsReceived=function(e,t,n){switch(t){case"connect":return this.connect(e,n.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,n.row,n.success)}},g.prototype.registerModule("moveRow",H);var X=function(e){this.table=e,this.allowedTypes=["","data","edit","clipboard"],this.enabled=!0};X.prototype.initializeColumn=function(e){var t=this,n=!1,i={};this.allowedTypes.forEach(function(o){var r,s="mutator"+(o.charAt(0).toUpperCase()+o.slice(1));e.definition[s]&&(r=t.lookupMutator(e.definition[s]),r&&(n=!0,i[s]={mutator:r,params:e.definition[s+"Params"]||{}}))}),n&&(e.modules.mutate=i)},X.prototype.lookupMutator=function(e){var t=!1;switch("undefined"===typeof e?"undefined":r(e)){case"string":this.mutators[e]?t=this.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e;break}return t},X.prototype.transformRow=function(e,t,n){var i,o=this,r="mutator"+(t.charAt(0).toUpperCase()+t.slice(1));return this.enabled&&o.table.columnManager.traverse(function(o){var s,a,c;o.modules.mutate&&(s=o.modules.mutate[r]||o.modules.mutate.mutator||!1,s&&(i=o.getFieldValue("undefined"!==typeof n?n:e),"data"!=t&&"undefined"===typeof i||(c=o.getComponent(),a="function"===typeof s.params?s.params(i,e,t,c):s.params,o.setFieldValue(e,s.mutator(i,e,t,a,c)))))}),e},X.prototype.transformCell=function(e,t){var n=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,i={};return n?(i=Object.assign(i,e.row.getData()),e.column.setFieldValue(i,t),n.mutator(t,i,"edit",n.params,e.getComponent())):t},X.prototype.enable=function(){this.enabled=!0},X.prototype.disable=function(){this.enabled=!1},X.prototype.mutators={},g.prototype.registerModule("mutator",X);var U=function(e){this.table=e,this.mode="local",this.progressiveLoad=!1,this.size=0,this.page=1,this.count=5,this.max=1,this.displayIndex=0,this.initialLoad=!0,this.pageSizes=[],this.dataReceivedNames={},this.dataSentNames={},this.createElements()};U.prototype.createElements=function(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),e=document.createElement("button"),e.classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))},U.prototype.generatePageSizeSelectList=function(){var e=this,t=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))t=this.table.options.paginationSizeSelector,this.pageSizes=t,-1==this.pageSizes.indexOf(this.size)&&t.unshift(this.size);else if(-1==this.pageSizes.indexOf(this.size)){t=[];for(var n=1;n<5;n++)t.push(this.size*n);this.pageSizes=t}else t=this.pageSizes;while(this.pageSizeSelect.firstChild)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);t.forEach(function(t){var n=document.createElement("option");n.value=t,!0===t?e.table.modules.localize.bind("pagination|all",function(e){n.innerHTML=e}):n.innerHTML=t,e.pageSizeSelect.appendChild(n)}),this.pageSizeSelect.value=this.size}},U.prototype.initialize=function(e){var t,n,i,o=this;this.dataSentNames=Object.assign({},this.paginationDataSentNames),this.dataSentNames=Object.assign(this.dataSentNames,this.table.options.paginationDataSent),this.dataReceivedNames=Object.assign({},this.paginationDataReceivedNames),this.dataReceivedNames=Object.assign(this.dataReceivedNames,this.table.options.paginationDataReceived),o.table.modules.localize.bind("pagination|first",function(e){o.firstBut.innerHTML=e}),o.table.modules.localize.bind("pagination|first_title",function(e){o.firstBut.setAttribute("aria-label",e),o.firstBut.setAttribute("title",e)}),o.table.modules.localize.bind("pagination|prev",function(e){o.prevBut.innerHTML=e}),o.table.modules.localize.bind("pagination|prev_title",function(e){o.prevBut.setAttribute("aria-label",e),o.prevBut.setAttribute("title",e)}),o.table.modules.localize.bind("pagination|next",function(e){o.nextBut.innerHTML=e}),o.table.modules.localize.bind("pagination|next_title",function(e){o.nextBut.setAttribute("aria-label",e),o.nextBut.setAttribute("title",e)}),o.table.modules.localize.bind("pagination|last",function(e){o.lastBut.innerHTML=e}),o.table.modules.localize.bind("pagination|last_title",function(e){o.lastBut.setAttribute("aria-label",e),o.lastBut.setAttribute("title",e)}),o.firstBut.addEventListener("click",function(){o.setPage(1).then(function(){}).catch(function(){})}),o.prevBut.addEventListener("click",function(){o.previousPage().then(function(){}).catch(function(){})}),o.nextBut.addEventListener("click",function(){o.nextPage().then(function(){}).catch(function(){})}),o.lastBut.addEventListener("click",function(){o.setPage(o.max).then(function(){}).catch(function(){})}),o.table.options.paginationElement&&(o.element=o.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),o.table.modules.localize.bind("pagination|page_size",function(e){o.pageSizeSelect.setAttribute("aria-label",e),o.pageSizeSelect.setAttribute("title",e),t.innerHTML=e}),o.element.appendChild(t),o.element.appendChild(o.pageSizeSelect),o.pageSizeSelect.addEventListener("change",function(e){o.setPageSize("true"==o.pageSizeSelect.value||o.pageSizeSelect.value),o.setPage(1).then(function(){}).catch(function(){})})),o.element.appendChild(o.firstBut),o.element.appendChild(o.prevBut),o.element.appendChild(o.pagesElement),o.element.appendChild(o.nextBut),o.element.appendChild(o.lastBut),o.table.options.paginationElement||e||o.table.footerManager.append(o.element,o),o.mode=o.table.options.pagination,o.table.options.paginationSize?o.size=o.table.options.paginationSize:(n=document.createElement("div"),n.classList.add("tabulator-row"),n.style.visibility=e,i=document.createElement("div"),i.classList.add("tabulator-cell"),i.innerHTML="Page Row Test",n.appendChild(i),o.table.rowManager.getTableElement().appendChild(n),o.size=Math.floor(o.table.rowManager.getElement().clientHeight/n.offsetHeight),o.table.rowManager.getTableElement().removeChild(n)),o.count=o.table.options.paginationButtonCount,o.generatePageSizeSelectList()},U.prototype.initializeProgressive=function(e){this.initialize(!0),this.mode="progressive_"+e,this.progressiveLoad=!0},U.prototype.setDisplayIndex=function(e){this.displayIndex=e},U.prototype.getDisplayIndex=function(){return this.displayIndex},U.prototype.setMaxRows=function(e){this.max=e?!0===this.size?1:Math.ceil(e/this.size):1,this.page>this.max&&(this.page=this.max)},U.prototype.reset=function(e,t){return("local"==this.mode||e)&&(this.page=1),t&&(this.initialLoad=!0),!0},U.prototype.setMaxPage=function(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())},U.prototype.setPage=function(e){var t=this,n=this;switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return new Promise(function(i,o){e=parseInt(e),e>0&&e<=t.max||"local"!==t.mode?(t.page=e,t.trigger().then(function(){i()}).catch(function(){o()}),n.table.options.persistence&&n.table.modExists("persistence",!0)&&n.table.modules.persistence.config.page&&n.table.modules.persistence.save("page")):(console.warn("Pagination Error - Requested page is out of range of 1 - "+t.max+":",e),o())})},U.prototype.setPageToRow=function(e){var t=this;return new Promise(function(n,i){var o=t.table.rowManager.getDisplayRows(t.displayIndex-1),r=o.indexOf(e);if(r>-1){var s=!0===t.size?1:Math.ceil((r+1)/t.size);t.setPage(s).then(function(){n()}).catch(function(){i()})}else console.warn("Pagination Error - Requested row is not visible"),i()})},U.prototype.setPageSize=function(e){!0!==e&&(e=parseInt(e)),e>0&&(this.size=e),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.page&&this.table.modules.persistence.save("page")},U.prototype._setPageButtons=function(){var e=this,t=Math.floor((this.count-1)/2),n=Math.ceil((this.count-1)/2),i=this.max-this.page+t+10&&r<=e.max&&e.pagesElement.appendChild(e._generatePageButton(r));this.footerRedraw()},U.prototype._generatePageButton=function(e){var t=this,n=document.createElement("button");return n.classList.add("tabulator-page"),e==t.page&&n.classList.add("active"),n.setAttribute("type","button"),n.setAttribute("role","button"),t.table.modules.localize.bind("pagination|page_title",function(t){n.setAttribute("aria-label",t+" "+e),n.setAttribute("title",t+" "+e)}),n.setAttribute("data-page",e),n.textContent=e,n.addEventListener("click",function(n){t.setPage(e).then(function(){}).catch(function(){})}),n},U.prototype.previousPage=function(){var e=this;return new Promise(function(t,n){e.page>1?(e.page--,e.trigger().then(function(){t()}).catch(function(){n()}),e.table.options.persistence&&e.table.modExists("persistence",!0)&&e.table.modules.persistence.config.page&&e.table.modules.persistence.save("page")):(console.warn("Pagination Error - Previous page would be less than page 1:",0),n())})},U.prototype.nextPage=function(){var e=this;return new Promise(function(t,n){e.pageo?i.splice(o,0,e):i.push(e))}),i},V.prototype._findColumn=function(e,t){var n=t.columns?"group":t.field?"field":"object";return e.find(function(e){switch(n){case"group":return e.title===t.title&&e.columns.length===t.columns.length;case"field":return e.field===t.field;case"object":return e===t}})},V.prototype.save=function(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig();break}this.writeFunc&&this.writeFunc(this.id,e,t)},V.prototype.validateSorters=function(e){return e.forEach(function(e){e.column=e.field,delete e.field}),e},V.prototype.getGroupConfig=function(){var e={};return this.config.group&&((!0===this.config.group||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(!0===this.config.group||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(!0===this.config.group||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e},V.prototype.getPageConfig=function(){var e={};return this.config.page&&((!0===this.config.page||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(!0===this.config.page||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e},V.prototype.parseColumns=function(e){var t=this,n=[],i=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach(function(e){var o,r={},s=e.getDefinition();e.isGroup?(r.title=s.title,r.columns=t.parseColumns(e.getColumns())):(r.field=e.getField(),!0===t.config.columns||void 0==t.config.columns?(o=Object.keys(s),o.push("width")):o=t.config.columns,o.forEach(function(t){switch(t){case"width":r.width=e.getWidth();break;case"visible":r.visible=e.visible;break;default:"function"!==typeof s[t]&&-1===i.indexOf(t)&&(r[t]=s[t])}})),n.push(r)}),n},V.prototype.readers={local:function(e,t){var n=localStorage.getItem(e+"-"+t);return!!n&&JSON.parse(n)},cookie:function(e,t){var n,i,o=document.cookie,r=e+"-"+t,s=o.indexOf(r+"=");return s>-1&&(o=o.substr(s),n=o.indexOf(";"),n>-1&&(o=o.substr(0,n)),i=o.replace(r+"=","")),!!i&&JSON.parse(i)}},V.prototype.writers={local:function(e,t,n){localStorage.setItem(e+"-"+t,JSON.stringify(n))},cookie:function(e,t,n){var i=new Date;i.setDate(i.getDate()+1e4),document.cookie=e+"-"+t+"="+JSON.stringify(n)+"; expires="+i.toUTCString()}},g.prototype.registerModule("persistence",V);var G=function(e){this.table=e,this.element=!1,this.manualBlock=!1};G.prototype.initialize=function(){window.addEventListener("beforeprint",this.replaceTable.bind(this)),window.addEventListener("afterprint",this.cleanup.bind(this))},G.prototype.replaceTable=function(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.genereateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))},G.prototype.cleanup=function(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")},G.prototype.printFullscreen=function(e,t,n){var i,o,r=window.scrollX,s=window.scrollY,a=document.createElement("div"),c=document.createElement("div"),l=this.table.modules.export.genereateTable("undefined"!=typeof n?n:this.table.options.printConfig,"undefined"!=typeof t?t:this.table.options.printStyled,e,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(a.classList.add("tabulator-print-header"),i="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader,"string"==typeof i?a.innerHTML=i:a.appendChild(i),this.element.appendChild(a)),this.element.appendChild(l),this.table.options.printFooter&&(c.classList.add("tabulator-print-footer"),o="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter,"string"==typeof o?c.innerHTML=o:c.appendChild(o),this.element.appendChild(c)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,l),window.print(),this.cleanup(),window.scrollTo(r,s),this.manualBlock=!1},g.prototype.registerModule("print",G);var K=function(e){this.table=e,this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0};K.prototype.watchData=function(e){var t,n=this;this.currentVersion++,t=this.currentVersion,n.unwatchData(),n.data=e,n.origFuncs.push=e.push,Object.defineProperty(n.data,"push",{enumerable:!1,configurable:!0,value:function(){var i=Array.from(arguments);return n.blocked||t!==n.currentVersion||i.forEach(function(e){n.table.rowManager.addRowActual(e,!1)}),n.origFuncs.push.apply(e,arguments)}}),n.origFuncs.unshift=e.unshift,Object.defineProperty(n.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var i=Array.from(arguments);return n.blocked||t!==n.currentVersion||i.forEach(function(e){n.table.rowManager.addRowActual(e,!0)}),n.origFuncs.unshift.apply(e,arguments)}}),n.origFuncs.shift=e.shift,Object.defineProperty(n.data,"shift",{enumerable:!1,configurable:!0,value:function(){var i;return n.blocked||t!==n.currentVersion||n.data.length&&(i=n.table.rowManager.getRowFromDataObject(n.data[0]),i&&i.deleteActual()),n.origFuncs.shift.call(e)}}),n.origFuncs.pop=e.pop,Object.defineProperty(n.data,"pop",{enumerable:!1,configurable:!0,value:function(){var i;return n.blocked||t!==n.currentVersion||n.data.length&&(i=n.table.rowManager.getRowFromDataObject(n.data[n.data.length-1]),i&&i.deleteActual()),n.origFuncs.pop.call(e)}}),n.origFuncs.splice=e.splice,Object.defineProperty(n.data,"splice",{enumerable:!1,configurable:!0,value:function(){var i,o=Array.from(arguments),r=o[0]<0?e.length+o[0]:o[0],s=o[1],a=!!o[2]&&o.slice(2);if(!n.blocked&&t===n.currentVersion){if(a&&(i=!!e[r]&&n.table.rowManager.getRowFromDataObject(e[r]),i?a.forEach(function(e){n.table.rowManager.addRowActual(e,!0,i,!0)}):(a=a.slice().reverse(),a.forEach(function(e){n.table.rowManager.addRowActual(e,!0,!1,!0)}))),0!==s){var c=e.slice(r,"undefined"===typeof o[1]?o[1]:r+s);c.forEach(function(e,t){var i=n.table.rowManager.getRowFromDataObject(e);i&&i.deleteActual(t!==c.length-1)})}(a||0!==s)&&n.table.rowManager.reRenderInPosition()}return n.origFuncs.splice.apply(e,arguments)}})},K.prototype.unwatchData=function(){if(!1!==this.data)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})},K.prototype.watchRow=function(e){var t=e.getData();for(var n in this.blocked=!0,t)this.watchKey(e,t,n);this.table.options.dataTree&&this.watchTreeChildren(e),this.blocked=!1},K.prototype.watchTreeChildren=function(e){var t=this,n=e.getData()[this.table.options.dataTreeChildField],i={};function o(){t.table.modules.dataTree.initializeRow(e),t.table.modules.dataTree.layoutRow(e),t.table.rowManager.refreshActiveData("tree",!1,!0)}n&&(i.push=n.push,Object.defineProperty(n,"push",{enumerable:!1,configurable:!0,value:function(){var e=i.push.apply(n,arguments);return o(),e}}),i.unshift=n.unshift,Object.defineProperty(n,"unshift",{enumerable:!1,configurable:!0,value:function(){var e=i.unshift.apply(n,arguments);return o(),e}}),i.shift=n.shift,Object.defineProperty(n,"shift",{enumerable:!1,configurable:!0,value:function(){var e=i.shift.call(n);return o(),e}}),i.pop=n.pop,Object.defineProperty(n,"pop",{enumerable:!1,configurable:!0,value:function(){var e=i.pop.call(n);return o(),e}}),i.splice=n.splice,Object.defineProperty(n,"splice",{enumerable:!1,configurable:!0,value:function(){var e=i.splice.apply(n,arguments);return o(),e}}))},K.prototype.watchKey=function(e,t,n){var i=this,o=Object.getOwnPropertyDescriptor(t,n),r=t[n],s=this.currentVersion;Object.defineProperty(t,n,{set:function(t){if(r=t,!i.blocked&&s===i.currentVersion){var a={};a[n]=t,e.updateData(a)}o.set&&o.set(t)},get:function(){return o.get&&o.get(),r}})},K.prototype.unwatchRow=function(e){var t=e.getData();for(var n in t)Object.defineProperty(t,n,{value:t[n]})},K.prototype.block=function(){this.blocked=!0},K.prototype.unblock=function(){this.blocked=!1},g.prototype.registerModule("reactiveData",K);var $=function(e){this.table=e,this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.handle=null,this.prevHandle=null};$.prototype.initializeColumn=function(e,t,n){var i=this,o=!1,r=this.table.options.resizableColumns;if("header"===e&&(o="textarea"==t.definition.formatter||t.definition.variableHeight,t.modules.resize={variableHeight:o}),!0===r||r==e){var s=document.createElement("div");s.className="tabulator-col-resize-handle";var a=document.createElement("div");a.className="tabulator-col-resize-handle prev",s.addEventListener("click",function(e){e.stopPropagation()});var c=function(e){var n=t.getLastColumn();n&&i._checkResizability(n)&&(i.startColumn=t,i._mouseDown(e,n,s))};s.addEventListener("mousedown",c),s.addEventListener("touchstart",c,{passive:!0}),s.addEventListener("dblclick",function(e){var n=t.getLastColumn();n&&i._checkResizability(n)&&(e.stopPropagation(),n.reinitializeWidth(!0))}),a.addEventListener("click",function(e){e.stopPropagation()});var l=function(e){var n,o,r;n=t.getFirstColumn(),n&&(o=i.table.columnManager.findColumnIndex(n),r=o>0&&i.table.columnManager.getColumnByIndex(o-1),r&&i._checkResizability(r)&&(i.startColumn=t,i._mouseDown(e,r,a)))};a.addEventListener("mousedown",l),a.addEventListener("touchstart",l,{passive:!0}),a.addEventListener("dblclick",function(e){var n,o,r;n=t.getFirstColumn(),n&&(o=i.table.columnManager.findColumnIndex(n),r=o>0&&i.table.columnManager.getColumnByIndex(o-1),r&&i._checkResizability(r)&&(e.stopPropagation(),r.reinitializeWidth(!0)))}),n.appendChild(s),n.appendChild(a)}},$.prototype._checkResizability=function(e){return"undefined"!=typeof e.definition.resizable?e.definition.resizable:this.table.options.resizableColumns},$.prototype._mouseDown=function(e,t,n){var i=this;function o(e){i.table.rtl?t.setWidth(i.startWidth-(("undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX)-i.startX)):t.setWidth(i.startWidth+(("undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX)-i.startX)),i.table.options.virtualDomHoz&&i.table.vdomHoz.reinitialize(!0),!i.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}function r(e){i.startColumn.modules.edit&&(i.startColumn.modules.edit.blocked=!1),i.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",o),n.removeEventListener("touchmove",o),n.removeEventListener("touchend",r),i.table.element.classList.remove("tabulator-block-select"),i.table.options.persistence&&i.table.modExists("persistence",!0)&&i.table.modules.persistence.config.columns&&i.table.modules.persistence.save("columns"),i.table.options.columnResized.call(i.table,t.getComponent())}i.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),i.startColumn.modules.edit&&(i.startColumn.modules.edit.blocked=!0),i.startX="undefined"===typeof e.screenX?e.touches[0].screenX:e.screenX,i.startWidth=t.getWidth(),document.body.addEventListener("mousemove",o),document.body.addEventListener("mouseup",r),n.addEventListener("touchmove",o,{passive:!0}),n.addEventListener("touchend",r)},g.prototype.registerModule("resizeColumns",$);var Y=function(e){this.table=e,this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null};Y.prototype.initializeRow=function(e){var t=this,n=e.getElement(),i=document.createElement("div");i.className="tabulator-row-resize-handle";var o=document.createElement("div");o.className="tabulator-row-resize-handle prev",i.addEventListener("click",function(e){e.stopPropagation()});var r=function(n){t.startRow=e,t._mouseDown(n,e,i)};i.addEventListener("mousedown",r),i.addEventListener("touchstart",r,{passive:!0}),o.addEventListener("click",function(e){e.stopPropagation()});var s=function(n){var i=t.table.rowManager.prevDisplayRow(e);i&&(t.startRow=i,t._mouseDown(n,i,o))};o.addEventListener("mousedown",s),o.addEventListener("touchstart",s,{passive:!0}),n.appendChild(i),n.appendChild(o)},Y.prototype._mouseDown=function(e,t,n){var i=this;function o(e){t.setHeight(i.startHeight+(("undefined"===typeof e.screenY?e.touches[0].screenY:e.screenY)-i.startY))}function r(e){document.body.removeEventListener("mouseup",o),document.body.removeEventListener("mousemove",o),n.removeEventListener("touchmove",o),n.removeEventListener("touchend",r),i.table.element.classList.remove("tabulator-block-select"),i.table.options.rowResized.call(this.table,t.getComponent())}i.table.element.classList.add("tabulator-block-select"),e.stopPropagation(),i.startY="undefined"===typeof e.screenY?e.touches[0].screenY:e.screenY,i.startHeight=t.getHeight(),document.body.addEventListener("mousemove",o),document.body.addEventListener("mouseup",r),n.addEventListener("touchmove",o,{passive:!0}),n.addEventListener("touchend",r)},g.prototype.registerModule("resizeRows",Y);var J=function(e){this.table=e,this.binding=!1,this.observer=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1};J.prototype.initialize=function(e){var t,n=this,i=this.table;this.tableHeight=i.element.clientHeight,this.tableWidth=i.element.clientWidth,i.element.parentNode&&(this.containerHeight=i.element.parentNode.clientHeight,this.containerWidth=i.element.parentNode.clientWidth),"undefined"!==typeof ResizeObserver&&"virtual"===i.rowManager.getRenderMode()?(this.autoResize=!0,this.observer=new ResizeObserver(function(e){if(!i.browserMobile||i.browserMobile&&!i.modules.edit.currentCell){var t=Math.floor(e[0].contentRect.height),o=Math.floor(e[0].contentRect.width);n.tableHeight==t&&n.tableWidth==o||(n.tableHeight=t,n.tableWidth=o,i.element.parentNode&&(n.containerHeight=i.element.parentNode.clientHeight,n.containerWidth=i.element.parentNode.clientWidth),i.options.virtualDomHoz&&i.vdomHoz.reinitialize(!0),i.redraw())}}),this.observer.observe(i.element),t=window.getComputedStyle(i.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver(function(e){if(!i.browserMobile||i.browserMobile&&!i.modules.edit.currentCell){var t=Math.floor(e[0].contentRect.height),o=Math.floor(e[0].contentRect.width);n.containerHeight==t&&n.containerWidth==o||(n.containerHeight=t,n.containerWidth=o,n.tableHeight=i.element.clientHeight,n.tableWidth=i.element.clientWidth),i.options.virtualDomHoz&&i.vdomHoz.reinitialize(!0),i.redraw()}}),this.containerObserver.observe(this.table.element.parentNode))):(this.binding=function(){(!i.browserMobile||i.browserMobile&&!i.modules.edit.currentCell)&&(i.options.virtualDomHoz&&i.vdomHoz.reinitialize(!0),i.redraw())},window.addEventListener("resize",this.binding))},J.prototype.clearBindings=function(e){this.binding&&window.removeEventListener("resize",this.binding),this.observer&&this.observer.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)},g.prototype.registerModule("resizeTable",J);var Q=function(e){this.table=e,this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1};Q.prototype.initialize=function(){var e=this,t=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.table.columnManager.columnsByIndex.forEach(function(n,i){n.modules.responsive&&n.modules.responsive.order&&n.modules.responsive.visible&&(n.modules.responsive.index=i,t.push(n),n.visible||"collapse"!==e.mode||e.hiddenColumns.push(n))}),t=t.reverse(),t=t.sort(function(e,t){var n=t.modules.responsive.order-e.modules.responsive.order;return n||t.modules.responsive.index-e.modules.responsive.index}),this.columns=t,"collapse"===this.mode&&this.generateCollapsedContent();var n=this.table.columnManager.columnsByIndex,i=Array.isArray(n),o=0;for(n=i?n:n[Symbol.iterator]();;){var r;if(i){if(o>=n.length)break;r=n[o++]}else{if(o=n.next(),o.done)break;r=o.value}var s=r;if("responsiveCollapse"==s.definition.formatter){this.collapseHandleColumn=s;break}}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())},Q.prototype.initializeColumn=function(e){var t=e.getDefinition();e.modules.responsive={order:"undefined"===typeof t.responsive?1:t.responsive,visible:!1!==t.visible}},Q.prototype.initializeRow=function(e){var t;"calc"!==e.type&&(t=document.createElement("div"),t.classList.add("tabulator-responsive-collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.collapseStartOpen||(t.style.display="none"))},Q.prototype.layoutRow=function(e){var t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLayout.element),this.generateCollapsedRowContent(e))},Q.prototype.updateColumnVisibility=function(e,t){e.modules.responsive&&(e.modules.responsive.visible=t,this.initialize())},Q.prototype.hideColumn=function(e){var t=this.hiddenColumns.length;e.hide(!1,!0),"collapse"===this.mode&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent(),this.collapseHandleColumn&&!t&&this.collapseHandleColumn.show())},Q.prototype.showColumn=function(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),"collapse"===this.mode&&(t=this.hiddenColumns.indexOf(e),t>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())},Q.prototype.update=function(){var e=this,t=!0;while(t){var n="fitColumns"==e.table.modules.layout.getMode()?e.table.columnManager.getFlexBaseWidth():e.table.columnManager.getWidth(),i=(e.table.options.headerVisible?e.table.columnManager.element.clientWidth:e.table.element.clientWidth)-n;if(i<0){var o=e.columns[e.index];o?(e.hideColumn(o),e.index++):t=!1}else{var r=e.columns[e.index-1];r&&i>0&&i>=r.getWidth()?(e.showColumn(r),e.index--):t=!1}e.table.rowManager.activeRowsCount||e.table.rowManager.renderEmptyScroll()}},Q.prototype.generateCollapsedContent=function(){var e=this,t=this.table.rowManager.getDisplayRows();t.forEach(function(t){e.generateCollapsedRowContent(t)})},Q.prototype.generateCollapsedRowContent=function(e){var t,n;if(e.modules.responsiveLayout){t=e.modules.responsiveLayout.element;while(t.firstChild)t.removeChild(t.firstChild);n=this.collapseFormatter(this.generateCollapsedRowData(e)),n&&t.appendChild(n)}},Q.prototype.generateCollapsedRowData=function(e){var t,n=this,i=e.getData(),o=[];return this.hiddenColumns.forEach(function(r){var s=r.getFieldValue(i);r.definition.title&&r.field&&(r.modules.format&&n.table.options.responsiveLayoutCollapseUseFormatters?(t={value:!1,data:{},getValue:function(){return s},getData:function(){return i},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return r.getComponent()}},o.push({field:r.field,title:r.definition.title,value:r.modules.format.formatter.call(n.table.modules.format,t,r.modules.format.params)})):o.push({field:r.field,title:r.definition.title,value:s}))}),o},Q.prototype.formatCollapsedData=function(e){var t=document.createElement("table");return e.forEach(function(e){var n,i=document.createElement("tr"),o=document.createElement("td"),r=document.createElement("td"),s=document.createElement("strong");o.appendChild(s),this.table.modules.localize.bind("columns|"+e.field,function(t){s.innerText=t||e.title}),e.value instanceof Node?(n=document.createElement("div"),n.appendChild(e.value),r.appendChild(n)):r.innerHTML=e.value,i.appendChild(o),i.appendChild(r),t.appendChild(i)},this),Object.keys(e).length?t:""},g.prototype.registerModule("responsiveLayout",Q);var Z=function(e){this.table=e,this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null};Z.prototype.clearSelectionData=function(e){this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],e||this._rowSelectionChanged()},Z.prototype.initializeRow=function(e){var t=this,n=e.getElement(),i=function e(){setTimeout(function(){t.selecting=!1},50),document.body.removeEventListener("mouseup",e)};e.modules.select={selected:!1},t.table.options.selectableCheck.call(this.table,e.getComponent())?(n.classList.add("tabulator-selectable"),n.classList.remove("tabulator-unselectable"),t.table.options.selectable&&"highlight"!=t.table.options.selectable&&("click"===t.table.options.selectableRangeMode?n.addEventListener("click",function(n){if(n.shiftKey){t.table._clearSelection(),t.lastClickedRow=t.lastClickedRow||e;var i=t.table.rowManager.getDisplayRowIndex(t.lastClickedRow),o=t.table.rowManager.getDisplayRowIndex(e),r=i<=o?i:o,s=i>=o?i:o,a=t.table.rowManager.getDisplayRows().slice(0),c=a.splice(r,s-r+1);n.ctrlKey||n.metaKey?(c.forEach(function(n){n!==t.lastClickedRow&&(!0===t.table.options.selectable||t.isRowSelected(e)?t.toggleRow(n):t.selectedRows.lengtht.table.options.selectable&&(c=c.slice(0,t.table.options.selectable)),t.selectRows(c)),t.table._clearSelection()}else n.ctrlKey||n.metaKey?(t.toggleRow(e),t.lastClickedRow=e):(t.deselectRows(void 0,!0),t.selectRows(e),t.lastClickedRow=e)}):(n.addEventListener("click",function(n){t.table.modExists("edit")&&t.table.modules.edit.getCurrentCell()||t.table._clearSelection(),t.selecting||t.toggleRow(e)}),n.addEventListener("mousedown",function(n){if(n.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",i),document.body.addEventListener("keyup",i),t.toggleRow(e),!1}),n.addEventListener("mouseenter",function(n){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))}),n.addEventListener("mouseout",function(n){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))})))):(n.classList.add("tabulator-unselectable"),n.classList.remove("tabulator-selectable"))},Z.prototype.toggleRow=function(e){this.table.options.selectableCheck.call(this.table,e.getComponent())&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))},Z.prototype.selectRows=function(e){var t,n=this;switch("undefined"===typeof e?"undefined":r(e)){case"undefined":this.table.rowManager.rows.forEach(function(e){n._selectRow(e,!0,!0)}),this._rowSelectionChanged();break;case"string":t=this.table.rowManager.findRow(e),t?this._selectRow(t,!0,!0):this.table.rowManager.getRows(e).forEach(function(e){n._selectRow(e,!0,!0)}),this._rowSelectionChanged();break;default:Array.isArray(e)?(e.forEach(function(e){n._selectRow(e,!0,!0)}),this._rowSelectionChanged()):this._selectRow(e,!1,!0);break}},Z.prototype._selectRow=function(e,t,n){if(!isNaN(this.table.options.selectable)&&!0!==this.table.options.selectable&&!n&&this.selectedRows.length>=this.table.options.selectable){if(!this.table.options.selectableRollingSelection)return!1;this._deselectRow(this.selectedRows[0])}var i=this.table.rowManager.findRow(e);i?-1==this.selectedRows.indexOf(i)&&(i.getElement().classList.add("tabulator-selected"),i.modules.select||(i.modules.select={}),i.modules.select.selected=!0,i.modules.select.checkboxEl&&(i.modules.select.checkboxEl.checked=!0),this.selectedRows.push(i),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(i,!0),t||this.table.options.rowSelected.call(this.table,i.getComponent()),this._rowSelectionChanged(t)):t||console.warn("Selection Error - No such row found, ignoring selection:"+e)},Z.prototype.isRowSelected=function(e){return-1!==this.selectedRows.indexOf(e)},Z.prototype.deselectRows=function(e,t){var n,i=this;if("undefined"==typeof e){n=i.selectedRows.length;for(var o=0;o-1&&(o.getElement().classList.remove("tabulator-selected"),o.modules.select||(o.modules.select={}),o.modules.select.selected=!1,o.modules.select.checkboxEl&&(o.modules.select.checkboxEl.checked=!1),i.selectedRows.splice(n,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(o,!1),t||i.table.options.rowDeselected.call(this.table,o.getComponent()),i._rowSelectionChanged(t))):t||console.warn("Deselection Error - No such row found, ignoring selection:"+e)},Z.prototype.getSelectedData=function(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getData())}),e},Z.prototype.getSelectedRows=function(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getComponent())}),e},Z.prototype._rowSelectionChanged=function(e){this.headerCheckboxElement&&(0===this.selectedRows.length?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),e||this.table.options.rowSelectionChanged.call(this.table,this.getSelectedData(),this.getSelectedRows())},Z.prototype.registerRowSelectCheckbox=function(e,t){e._row.modules.select||(e._row.modules.select={}),e._row.modules.select.checkboxEl=t},Z.prototype.registerHeaderSelectCheckbox=function(e){this.headerCheckboxElement=e},Z.prototype.childRowSelection=function(e,t){var n=this.table.modules.dataTree.getChildren(e,!0);if(t){var i=n,o=Array.isArray(i),r=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(r>=i.length)break;s=i[r++]}else{if(r=i.next(),r.done)break;s=r.value}var a=s;this._selectRow(a,!0)}}else{var c=n,l=Array.isArray(c),u=0;for(c=l?c:c[Symbol.iterator]();;){var d;if(l){if(u>=c.length)break;d=c[u++]}else{if(u=c.next(),u.done)break;d=u.value}var h=d;this._deselectRow(h,!0)}}},g.prototype.registerModule("selectRow",Z);var ee=function(e){this.table=e,this.sortList=[],this.changed=!1};ee.prototype.initializeColumn=function(e,t){var n,i,o=this,s=!1;switch(r(e.definition.sorter)){case"string":o.sorters[e.definition.sorter]?s=o.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":s=e.definition.sorter;break}e.modules.sort={sorter:s,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:"undefined"!==typeof e.definition.headerSortTristate?e.definition.headerSortTristate:this.table.options.headerSortTristate},("undefined"===typeof e.definition.headerSort?!1!==this.table.options.headerSort:!1!==e.definition.headerSort)&&(n=e.getElement(),n.classList.add("tabulator-sortable"),i=document.createElement("div"),i.classList.add("tabulator-col-sorter"),"object"==r(this.table.options.headerSortElement)?i.appendChild(this.table.options.headerSortElement):i.innerHTML=this.table.options.headerSortElement,t.appendChild(i),e.modules.sort.element=i,n.addEventListener("click",function(t){var n="",i=[],r=!1;if(e.modules.sort){if(e.modules.sort.tristate)n="none"==e.modules.sort.dir?e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?"asc"==e.modules.sort.dir?"desc":"asc":"none";else switch(e.modules.sort.dir){case"asc":n="desc";break;case"desc":n="asc";break;default:n=e.modules.sort.startingDir}o.table.options.columnHeaderSortMulti&&(t.shiftKey||t.ctrlKey)?(i=o.getSort(),r=i.findIndex(function(t){return t.field===e.getField()}),r>-1?(i[r].dir=n,r!=i.length-1&&(r=i.splice(r,1)[0],"none"!=n&&i.push(r))):"none"!=n&&i.push({column:e,dir:n}),o.setSort(i)):"none"==n?o.clear():o.setSort(e,n),o.table.rowManager.sorterRefresh(!o.sortList.length)}}))},ee.prototype.hasChanged=function(){var e=this.changed;return this.changed=!1,e},ee.prototype.getSort=function(){var e=this,t=[];return e.sortList.forEach(function(e){e.column&&t.push({column:e.column.getComponent(),field:e.column.getField(),dir:e.dir})}),t},ee.prototype.setSort=function(e,t){var n=this,i=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(e){var t;t=n.table.columnManager.findColumn(e.column),t?(e.column=t,i.push(e),n.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",e.column)}),n.sortList=i,this.table.options.persistence&&this.table.modExists("persistence",!0)&&this.table.modules.persistence.config.sort&&this.table.modules.persistence.save("sort")},ee.prototype.clear=function(){this.setSort([])},ee.prototype.findSorter=function(e){var t,n,i=this.table.rowManager.activeRows[0],o="string";if(i&&(i=i.getData(),t=e.getField(),t))switch(n=e.getFieldValue(i),"undefined"===typeof n?"undefined":r(n)){case"undefined":o="string";break;case"boolean":o="boolean";break;default:isNaN(n)||""===n?n.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(o="alphanum"):o="number";break}return this.sorters[o]},ee.prototype.sort=function(e){var t=this,n=this.table.options.sortOrderReverse?t.sortList.slice().reverse():t.sortList,i=[],o=[];t.table.options.dataSorting&&t.table.options.dataSorting.call(t.table,t.getSort()),t.clearColumnHeaders(),t.table.options.ajaxSorting?n.forEach(function(e,n){t.setColumnHeader(e.column,e.dir)}):(n.forEach(function(e,n){var o=e.column.modules.sort;e.column&&o&&(o.sorter||(o.sorter=t.findSorter(e.column)),e.params="function"===typeof o.params?o.params(e.column.getComponent(),e.dir):o.params,i.push(e)),t.setColumnHeader(e.column,e.dir)}),i.length&&t._sortItems(e,i)),t.table.options.dataSorted&&(e.forEach(function(e){o.push(e.getComponent())}),t.table.options.dataSorted.call(t.table,t.getSort(),o))},ee.prototype.clearColumnHeaders=function(){this.table.columnManager.getRealColumns().forEach(function(e){e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"))})},ee.prototype.setColumnHeader=function(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort",t)},ee.prototype._sortItems=function(e,t){var n=this,i=t.length-1;e.sort(function(e,o){for(var r,s=i;s>=0;s--){var a=t[s];if(r=n._sortRow(e,o,a.column,a.dir,a.params),0!==r)break}return r})},ee.prototype._sortRow=function(e,t,n,i,o){var r,s,a="asc"==i?e:t,c="asc"==i?t:e;return e=n.getFieldValue(a.getData()),t=n.getFieldValue(c.getData()),e="undefined"!==typeof e?e:"",t="undefined"!==typeof t?t:"",r=a.getComponent(),s=c.getComponent(),n.modules.sort.sorter.call(this,e,t,r,s,n.getComponent(),i,o)},ee.prototype.sorters={number:function(e,t,n,i,o,r,s){var a=s.alignEmptyValues,c=s.decimalSeparator,l=s.thousandSeparator,u=0;if(e=String(e),t=String(t),l&&(e=e.split(l).join(""),t=t.split(l).join("")),c&&(e=e.split(c).join("."),t=t.split(c).join(".")),e=parseFloat(e),t=parseFloat(t),isNaN(e))u=isNaN(t)?0:-1;else{if(!isNaN(t))return e-t;u=1}return("top"===a&&"desc"===r||"bottom"===a&&"asc"===r)&&(u*=-1),u},string:function(e,t,n,i,o,s,a){var c,l=a.alignEmptyValues,u=0;if(e){if(t){switch(r(a.locale)){case"boolean":a.locale&&(c=this.table.modules.localize.getLocale());break;case"string":c=a.locale;break}return String(e).toLowerCase().localeCompare(String(t).toLowerCase(),c)}u=1}else u=t?-1:0;return("top"===l&&"desc"===s||"bottom"===l&&"asc"===s)&&(u*=-1),u},date:function(e,t,n,i,o,r,s){return s.format||(s.format="DD/MM/YYYY"),this.sorters.datetime.call(this,e,t,n,i,o,r,s)},time:function(e,t,n,i,o,r,s){return s.format||(s.format="HH:mm"),this.sorters.datetime.call(this,e,t,n,i,o,r,s)},datetime:function(e,t,n,i,o,r,s){var a=s.format||"DD/MM/YYYY HH:mm:ss",c=s.alignEmptyValues,l=0;if("undefined"!=typeof moment){if(e=moment(e,a),t=moment(t,a),e.isValid()){if(t.isValid())return e-t;l=1}else l=t.isValid()?-1:0;return("top"===c&&"desc"===r||"bottom"===c&&"asc"===r)&&(l*=-1),l}console.error("Sort Error - 'datetime' sorter is dependant on moment.js")},boolean:function(e,t,n,i,o,r,s){var a=!0===e||"true"===e||"True"===e||1===e?1:0,c=!0===t||"true"===t||"True"===t||1===t?1:0;return a-c},array:function(e,t,n,i,o,r,s){var a=0,c=0,l=s.type||"length",u=s.alignEmptyValues,d=0;function h(e){switch(l){case"length":return e.length;case"sum":return e.reduce(function(e,t){return e+t});case"max":return Math.max.apply(null,e);case"min":return Math.min.apply(null,e);case"avg":return e.reduce(function(e,t){return e+t})/e.length}}if(Array.isArray(e)){if(Array.isArray(t))return a=e?h(e):0,c=t?h(t):0,a-c;u=1}else u=Array.isArray(t)?-1:0;return("top"===u&&"desc"===r||"bottom"===u&&"asc"===r)&&(d*=-1),d},exists:function(e,t,n,i,o,r,s){var a="undefined"==typeof e?0:1,c="undefined"==typeof t?0:1;return a-c},alphanum:function(e,t,n,i,o,r,s){var a,c,l,u,d,h=0,p=/(\d+)|(\D+)/g,f=/\d/,m=s.alignEmptyValues,g=0;if(e||0===e){if(t||0===t){if(isFinite(e)&&isFinite(t))return e-t;if(a=String(e).toLowerCase(),c=String(t).toLowerCase(),a===c)return 0;if(!f.test(a)||!f.test(c))return a>c?1:-1;a=a.match(p),c=c.match(p),d=a.length>c.length?c.length:a.length;while(hu?1:-1;return a.length>c.length}g=1}else g=t||0===t?-1:0;return("top"===m&&"desc"===r||"bottom"===m&&"asc"===r)&&(g*=-1),g}},g.prototype.registerModule("sort",ee);var te=function(e){this.table=e,this.invalidCells=[]};te.prototype.initializeColumn=function(e){var t,n=this,i=[];e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(function(e){t=n._extractValidator(e),t&&i.push(t)}):(t=this._extractValidator(e.definition.validator),t&&i.push(t)),e.modules.validate=!!i.length&&i)},te.prototype._extractValidator=function(e){var t,n,i;switch("undefined"===typeof e?"undefined":r(e)){case"string":return i=e.indexOf(":"),i>-1?(t=e.substring(0,i),n=e.substring(i+1)):t=e,this._buildValidator(t,n);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}},te.prototype._buildValidator=function(e,t){var n="function"==typeof e?e:this.validators[e];return n?{type:"function"==typeof e?"function":e,func:n,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)},te.prototype.validate=function(e,t,n){var i=this,o=[],r=this.invalidCells.indexOf(t);return e&&e.forEach(function(e){e.func.call(i,t.getComponent(),n,e.params)||o.push({type:e.type,parameters:e.params})}),o=!o.length||o,t.modules.validate||(t.modules.validate={}),!0===o?(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),r>-1&&this.invalidCells.splice(r,1)):(t.modules.validate.invalid=!0,"manual"!==this.table.options.validationMode&&t.getElement().classList.add("tabulator-validation-fail"),-1==r&&this.invalidCells.push(t)),o},te.prototype.getInvalidCells=function(){var e=[];return this.invalidCells.forEach(function(t){e.push(t.getComponent())}),e},te.prototype.clearValidation=function(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,t=this.invalidCells.indexOf(e),t>-1&&this.invalidCells.splice(t,1))},te.prototype.validators={integer:function(e,t,n){return""===t||null===t||"undefined"===typeof t||(t=Number(t),"number"===typeof t&&isFinite(t)&&Math.floor(t)===t)},float:function(e,t,n){return""===t||null===t||"undefined"===typeof t||(t=Number(t),"number"===typeof t&&isFinite(t)&&t%1!==0)},numeric:function(e,t,n){return""===t||null===t||"undefined"===typeof t||!isNaN(t)},string:function(e,t,n){return""===t||null===t||"undefined"===typeof t||isNaN(t)},max:function(e,t,n){return""===t||null===t||"undefined"===typeof t||parseFloat(t)<=n},min:function(e,t,n){return""===t||null===t||"undefined"===typeof t||parseFloat(t)>=n},starts:function(e,t,n){return""===t||null===t||"undefined"===typeof t||String(t).toLowerCase().startsWith(String(n).toLowerCase())},ends:function(e,t,n){return""===t||null===t||"undefined"===typeof t||String(t).toLowerCase().endsWith(String(n).toLowerCase())},minLength:function(e,t,n){return""===t||null===t||"undefined"===typeof t||String(t).length>=n},maxLength:function(e,t,n){return""===t||null===t||"undefined"===typeof t||String(t).length<=n},in:function(e,t,n){return""===t||null===t||"undefined"===typeof t||("string"==typeof n&&(n=n.split("|")),""===t||n.indexOf(t)>-1)},regex:function(e,t,n){if(""===t||null===t||"undefined"===typeof t)return!0;var i=new RegExp(n);return i.test(t)},unique:function(e,t,n){if(""===t||null===t||"undefined"===typeof t)return!0;var i=!0,o=e.getData(),r=e.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(e){var n=e.getData();n!==o&&t==r.getFieldValue(n)&&(i=!1)}),i},required:function(e,t,n){return""!==t&&null!==t&&"undefined"!==typeof t}},g.prototype.registerModule("validate",te),n["a"]=g},e34e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("cf81"),o=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new i.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=o},e372:function(e,t,n){t=e.exports=n("ad71"),t.Stream=t,t.Readable=t,t.Writable=n("dc14"),t.Duplex=n("b19a"),t.Transform=n("27bf"),t.PassThrough=n("780f")},e445:function(e,t,n){},e45b:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("3a92"),a=n("7f73"),c=n("e45b"),l=n("dd02"),u=n("66f9"),d=n("3585"),h=n("168d"),p=function(){function e(){}return e.prototype.decorate=function(e,t){if(a.isDecoration(t)){var n=this.getPosition(t),i="translate("+n.x+", "+n.y+")";c.setAttr(e,"transform",i)}return e},e.prototype.getPosition=function(e){if(e instanceof s.SChildElement&&e.parent instanceof d.SRoutableElement){var t=this.edgeRouterRegistry.get(e.parent.routerKind),n=t.route(e.parent);if(n.length>1){var i=Math.floor(.5*(n.length-1)),o=u.isSizeable(e)?{x:-.5*e.bounds.width,y:-.5*e.bounds.width}:l.ORIGIN_POINT;return{x:.5*(n[i].x+n[i+1].x)+o.x,y:.5*(n[i].y+n[i+1].y)+o.y}}}return u.isSizeable(e)?{x:-.666*e.bounds.width,y:-.666*e.bounds.height}:l.ORIGIN_POINT},e.prototype.postUpdate=function(){},i([r.inject(h.EdgeRouterRegistry),o("design:type",h.EdgeRouterRegistry)],e.prototype,"edgeRouterRegistry",void 0),e=i([r.injectable()],e),e}();t.DecorationPlacer=p},e5a7:function(e,t,n){},e629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.startFn=e,this.nextFn=t}return e.prototype[Symbol.iterator]=function(){var e,t=this,n=(e={state:this.startFn(),next:function(){return t.nextFn(n.state)}},e[Symbol.iterator]=function(){return n},e);return n},e.prototype.filter=function(e){return r(this,e)},e.prototype.map=function(e){return s(this,e)},e.prototype.forEach=function(e){var t,n=this[Symbol.iterator](),i=0;do{t=n.next(),void 0!==t.value&&e(t.value,i),i++}while(!t.done)},e.prototype.indexOf=function(e){var t,n=this[Symbol.iterator](),i=0;do{if(t=n.next(),t.value===e)return i;i++}while(!t.done);return-1},e}();function o(e){if(e.constructor===Array)return e;var t=[];return e.forEach(function(e){return t.push(e)}),t}function r(e,t){return new i(function(){return a(e)},function(e){var n;do{n=e.next()}while(!n.done&&!t(n.value));return n})}function s(e,n){return new i(function(){return a(e)},function(e){var i=e.next(),o=i.done,r=i.value;return o?t.DONE_RESULT:{done:!1,value:n(r)}})}function a(e){var n=e[Symbol.iterator];if("function"===typeof n)return n.call(e);var i=e.length;return"number"===typeof i&&i>=0?new c(e):{next:function(){return t.DONE_RESULT}}}t.FluentIterableImpl=i,t.toArray=o,t.DONE_RESULT=Object.freeze({done:!0,value:void 0}),t.filterIterable=r,t.mapIterable=s;var c=function(){function e(e){this.array=e,this.index=0}return e.prototype.next=function(){return this.index=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1c6"),s=n("c146"),a=n("3a92"),c=n("e45b"),l=n("7d36"),u=function(e){function t(t,n,i,o){void 0===o&&(o=!1);var r=e.call(this,i)||this;return r.model=t,r.elementFades=n,r.removeAfterFadeOut=o,r}return i(t,e),t.prototype.tween=function(e,t){for(var n=0,i=this.elementFades;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("dd02"),c=n("b669"),l=n("3a92"),u=n("9757"),d=n("1417"),h=n("66f9"),p=n("4c18"),f=n("c444"),m=n("5eb6"),g=n("e1c6"),v=n("6923"),b=function(){function e(t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1),this.elementIds=t,this.animate=n,this.retainZoom=i,this.kind=e.KIND}return e.KIND="center",e}();t.CenterAction=b;var y=function(){function e(t,n,i,o){void 0===o&&(o=!0),this.elementIds=t,this.padding=n,this.maxZoom=i,this.animate=o,this.kind=e.KIND}return e.KIND="fit",e}();t.FitToScreenAction=y;var _=function(e){function t(t){var n=e.call(this)||this;return n.animate=t,n}return i(t,e),t.prototype.initialize=function(e){var t=this;if(m.isViewport(e)){this.oldViewport={scroll:e.scroll,zoom:e.zoom};var n=[];if(this.getElementIds().forEach(function(i){var o=e.index.getById(i);o&&h.isBoundsAware(o)&&n.push(t.boundsInViewport(o,o.bounds,e))}),0===n.length&&e.index.all().forEach(function(i){p.isSelectable(i)&&i.selected&&h.isBoundsAware(i)&&n.push(t.boundsInViewport(i,i.bounds,e))}),0===n.length&&e.index.all().forEach(function(i){h.isBoundsAware(i)&&n.push(t.boundsInViewport(i,i.bounds,e))}),0!==n.length){var i=n.reduce(function(e,t){return a.combine(e,t)});a.isValidDimension(i)&&(this.newViewport=this.getNewViewport(i,e))}}},t.prototype.boundsInViewport=function(e,t,n){return e instanceof l.SChildElement&&e.parent!==n?this.boundsInViewport(e.parent,e.parent.localToParent(t),n):t},t.prototype.execute=function(e){return this.initialize(e.root),this.redo(e)},t.prototype.undo=function(e){var t=e.root;if(m.isViewport(t)&&void 0!==this.newViewport&&!this.equal(this.newViewport,this.oldViewport)){if(this.animate)return new f.ViewportAnimation(t,this.newViewport,this.oldViewport,e).start();t.scroll=this.oldViewport.scroll,t.zoom=this.oldViewport.zoom}return t},t.prototype.redo=function(e){var t=e.root;if(m.isViewport(t)&&void 0!==this.newViewport&&!this.equal(this.newViewport,this.oldViewport)){if(this.animate)return new f.ViewportAnimation(t,this.oldViewport,this.newViewport,e).start();t.scroll=this.newViewport.scroll,t.zoom=this.newViewport.zoom}return t},t.prototype.equal=function(e,t){return e.zoom===t.zoom&&e.scroll.x===t.scroll.x&&e.scroll.y===t.scroll.y},t=o([g.injectable(),r("design:paramtypes",[Boolean])],t),t}(u.Command);t.BoundsAwareViewportCommand=_;var M=function(e){function t(t){var n=e.call(this,t.animate)||this;return n.action=t,n}return i(t,e),t.prototype.getElementIds=function(){return this.action.elementIds},t.prototype.getNewViewport=function(e,t){if(a.isValidDimension(t.canvasBounds)){var n=this.action.retainZoom&&m.isViewport(t)?t.zoom:1,i=a.center(e);return{scroll:{x:i.x-.5*t.canvasBounds.width/n,y:i.y-.5*t.canvasBounds.height/n},zoom:n}}},t.KIND=b.KIND,t=o([s(0,g.inject(v.TYPES.Action)),r("design:paramtypes",[b])],t),t}(_);t.CenterCommand=M;var w=function(e){function t(t){var n=e.call(this,t.animate)||this;return n.action=t,n}return i(t,e),t.prototype.getElementIds=function(){return this.action.elementIds},t.prototype.getNewViewport=function(e,t){if(a.isValidDimension(t.canvasBounds)){var n=a.center(e),i=void 0===this.action.padding?0:2*this.action.padding,o=Math.min(t.canvasBounds.width/(e.width+i),t.canvasBounds.height/(e.height+i));return void 0!==this.action.maxZoom&&(o=Math.min(o,this.action.maxZoom)),o===1/0&&(o=1),{scroll:{x:n.x-.5*t.canvasBounds.width/o,y:n.y-.5*t.canvasBounds.height/o},zoom:o}}},t.KIND=y.KIND,t=o([s(0,g.inject(v.TYPES.Action)),r("design:paramtypes",[y])],t),t}(_);t.FitToScreenCommand=w;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){return c.matchesKeystroke(t,"KeyC","ctrlCmd","shift")?[new b([])]:c.matchesKeystroke(t,"KeyF","ctrlCmd","shift")?[new y([])]:[]},t}(d.KeyListener);t.CenterKeyboardListener=C},edad:function(e,t,n){"use strict";var i=n("c51d"),o=n.n(i);o.a},ee16:function(e,t,n){e.exports=n("bafd")},efc5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=function(e){return function(t){return function(){for(var n=[],i=0;i0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__metadata||function(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("e1c6"),c=n("b669"),l=n("dd02"),u=n("6923"),d=n("3a92"),h=n("3b4c"),p=n("510b"),f=n("9757"),m=n("302f"),g=n("1417"),v=n("3623"),b=n("66f9"),y=n("e4f0"),_=function(){function e(t,n){this.mouseoverElement=t,this.mouseIsOver=n,this.kind=e.KIND}return e.KIND="hoverFeedback",e}();t.HoverFeedbackAction=_;var M=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){var t=e.root,n=t.index.getById(this.action.mouseoverElement);return n&&y.isHoverable(n)&&(n.hoverFeedback=this.action.mouseIsOver),this.redo(e)},t.prototype.undo=function(e){return e.root},t.prototype.redo=function(e){return e.root},t.KIND=_.KIND,t=o([a.injectable(),s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[_])],t),t}(f.SystemCommand);t.HoverFeedbackCommand=M;var w=function(){function e(t,n,i){void 0===i&&(i=""),this.elementId=t,this.bounds=n,this.requestId=i,this.kind=e.KIND}return e.create=function(t,n){return new e(t,n,p.generateRequestId())},e.KIND="requestPopupModel",e}();t.RequestPopupModelAction=w;var C=function(){function e(t,n){void 0===n&&(n=""),this.newRoot=t,this.responseId=n,this.kind=e.KIND}return e.KIND="setPopupModel",e}();t.SetPopupModelAction=C;var S=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return i(t,e),t.prototype.execute=function(e){return this.oldRoot=e.root,this.newRoot=e.modelFactory.createRoot(this.action.newRoot),this.newRoot},t.prototype.undo=function(e){return this.oldRoot},t.prototype.redo=function(e){return this.newRoot},t.KIND=C.KIND,t=o([a.injectable(),s(0,a.inject(u.TYPES.Action)),r("design:paramtypes",[C])],t),t}(f.PopupCommand);t.SetPopupModelCommand=S;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.mouseDown=function(e,t){return this.mouseIsDown=!0,[]},t.prototype.mouseUp=function(e,t){return this.mouseIsDown=!1,[]},t.prototype.stopMouseOutTimer=function(){void 0!==this.state.mouseOutTimer&&(window.clearTimeout(this.state.mouseOutTimer),this.state.mouseOutTimer=void 0)},t.prototype.startMouseOutTimer=function(){var e=this;return this.stopMouseOutTimer(),new Promise(function(t){e.state.mouseOutTimer=window.setTimeout(function(){e.state.popupOpen=!1,e.state.previousPopupElement=void 0,t(new C({type:m.EMPTY_ROOT.type,id:m.EMPTY_ROOT.id}))},e.options.popupCloseDelay)})},t.prototype.stopMouseOverTimer=function(){void 0!==this.state.mouseOverTimer&&(window.clearTimeout(this.state.mouseOverTimer),this.state.mouseOverTimer=void 0)},o([a.inject(u.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),o([a.inject(u.TYPES.HoverState),r("design:type",Object)],t.prototype,"state",void 0),t}(h.MouseListener);t.AbstractHoverMouseListener=A;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.computePopupBounds=function(e,t){var n={x:-5,y:20},i=b.getAbsoluteBounds(e),o=e.root.canvasBounds,r=l.translate(i,o),s=r.x+r.width-t.x,a=r.y+r.height-t.y;a<=s&&this.allowSidePosition(e,"below",a)?n={x:-5,y:Math.round(a+5)}:s<=a&&this.allowSidePosition(e,"right",s)&&(n={x:Math.round(s+5),y:-5});var c=t.x+n.x,u=o.x+o.width;c>u&&(c=u);var d=t.y+n.y,h=o.y+o.height;return d>h&&(d=h),{x:c,y:d,width:-1,height:-1}},t.prototype.allowSidePosition=function(e,t,n){return!(e instanceof d.SModelRoot)&&n<=150},t.prototype.startMouseOverTimer=function(e,t){var n=this;return this.stopMouseOverTimer(),new Promise(function(i){n.state.mouseOverTimer=window.setTimeout(function(){var o=n.computePopupBounds(e,{x:t.pageX,y:t.pageY});i(new w(e.id,o)),n.state.popupOpen=!0,n.state.previousPopupElement=e},n.options.popupOpenDelay)})},t.prototype.mouseOver=function(e,t){var n=[];if(!this.mouseIsDown){var i=v.findParent(e,y.hasPopupFeature);this.state.popupOpen&&(void 0===i||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id!==i.id)?n.push(this.startMouseOutTimer()):(this.stopMouseOverTimer(),this.stopMouseOutTimer()),void 0===i||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id===i.id||n.push(this.startMouseOverTimer(i,t)),this.lastHoverFeedbackElementId&&(n.push(new _(this.lastHoverFeedbackElementId,!1)),this.lastHoverFeedbackElementId=void 0);var o=v.findParentByFeature(e,y.isHoverable);void 0!==o&&(n.push(new _(o.id,!0)),this.lastHoverFeedbackElementId=o.id)}return n},t.prototype.mouseOut=function(e,t){var n=[];if(!this.mouseIsDown){var i=document.elementFromPoint(t.x,t.y);if(!this.isSprottyPopup(i)){if(this.state.popupOpen){var o=v.findParent(e,y.hasPopupFeature);void 0!==this.state.previousPopupElement&&void 0!==o&&this.state.previousPopupElement.id===o.id&&n.push(this.startMouseOutTimer())}this.stopMouseOverTimer();var r=v.findParentByFeature(e,y.isHoverable);void 0!==r&&(n.push(new _(r.id,!1)),this.lastHoverFeedbackElementId=void 0)}}return n},t.prototype.isSprottyPopup=function(e){return!!e&&(e.id===this.options.popupDiv||!!e.parentElement&&this.isSprottyPopup(e.parentElement))},t.prototype.mouseMove=function(e,t){var n=[];if(!this.mouseIsDown){void 0!==this.state.previousPopupElement&&this.closeOnMouseMove(this.state.previousPopupElement,t)&&n.push(this.startMouseOutTimer());var i=v.findParent(e,y.hasPopupFeature);void 0===i||void 0!==this.state.previousPopupElement&&this.state.previousPopupElement.id===i.id||n.push(this.startMouseOverTimer(i,t))}return n},t.prototype.closeOnMouseMove=function(e,t){return e instanceof d.SModelRoot},o([a.inject(u.TYPES.ViewerOptions),r("design:type",Object)],t.prototype,"options",void 0),t=o([a.injectable()],t),t}(A);t.HoverMouseListener=E;var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.mouseOut=function(e,t){return[this.startMouseOutTimer()]},t.prototype.mouseOver=function(e,t){return this.stopMouseOutTimer(),this.stopMouseOverTimer(),[]},t=o([a.injectable()],t),t}(A);t.PopupHoverMouseListener=O;var L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.keyDown=function(e,t){return c.matchesKeystroke(t,"Escape")?[new C({type:m.EMPTY_ROOT.type,id:m.EMPTY_ROOT.id})]:[]},t}(g.KeyListener);t.HoverKeyListener=L;var T=function(){function e(){this.popupOpen=!1}return e.prototype.handle=function(e){if(e.kind===S.KIND)this.popupOpen=e.newRoot.type!==m.EMPTY_ROOT.type;else if(this.popupOpen)return new C({id:m.EMPTY_ROOT.id,type:m.EMPTY_ROOT.type})},e=o([a.injectable()],e),e}();t.ClosePopupActionHandler=T},f58f:function(e,t,n){"use strict";var i=n("15f6"),o=n.n(i);o.a},f913:function(e,t,n){"use strict";var i=n("0c4a"),o=n.n(i);o.a},f923:function(e,t,n){"use strict";function i(e,t){var n,i,o=t.elm,r=e.data.class,s=t.data.class;if((r||s)&&r!==s){for(i in r=r||{},s=s||{},r)s[i]||o.classList.remove(i);for(i in s)n=s[i],n!==r[i]&&o.classList[n?"add":"remove"](i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.classModule={create:i,update:i},t.default=t.classModule},faa1:function(e,t,n){"use strict";var i,o="object"===typeof Reflect?Reflect:null,r=o&&"function"===typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function s(e){console&&console.warn&&console.warn(e)}i=o&&"function"===typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function c(){c.init.call(this)}e.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function h(e,t,n,i){var o,r,a;if(u(n),r=e._events,void 0===r?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),a=r[t]),void 0===a)a=r[t]=n,++e._eventsCount;else if("function"===typeof a?a=r[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),o=d(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s(c)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(i);return o.listener=n,i.wrapFn=o,o}function m(e,t,n){var i=e._events;if(void 0===i)return[];var o=i[t];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?y(o):v(o,o.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),i=0;i0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"===typeof c)r(c,this,t);else{var l=c.length,u=v(c,l);for(n=0;n=0;r--)if(n[r]===t||n[r].listener===t){s=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():b(n,o),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,i;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,r=Object.keys(n);for(i=0;i=0;i--)this.removeListener(e,t[i]);return this},c.prototype.listeners=function(e){return m(this,e,!0)},c.prototype.rawListeners=function(e){return m(this,e,!1)},c.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},c.prototype.listenerCount=g,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},fba3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("dd02");function o(e){return r()?e.metaKey:e.ctrlKey}function r(){return-1!==window.navigator.userAgent.indexOf("Mac")}function s(e){if(e&&"undefined"!==typeof window&&window.location){var t="";return window.location.protocol&&(t+=window.location.protocol+"//"),window.location.host&&(t+=window.location.host),t.length>0&&!e.startsWith(t)}return!1}function a(){return"undefined"===typeof window?i.ORIGIN_POINT:{x:window.pageXOffset,y:window.pageYOffset}}t.isCtrlOrCmd=o,t.isMac=r,t.isCrossSite=s,t.getWindowScroll=a},fcf3:function(e,t,n){!function(t,n){e.exports=n()}(self,function(){return(()=>{"use strict";var e={4567:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;var r=n(9042),s=n(6114),a=n(9924),c=n(3656),l=n(844),u=n(5596),d=n(9631),h=function(e){function t(t,n){var i=e.call(this)||this;i._terminal=t,i._renderService=n,i._liveRegionLineCount=0,i._charsToConsume=[],i._charsToAnnounce="",i._accessibilityTreeRoot=document.createElement("div"),i._accessibilityTreeRoot.setAttribute("role","document"),i._accessibilityTreeRoot.classList.add("xterm-accessibility"),i._accessibilityTreeRoot.tabIndex=0,i._rowContainer=document.createElement("div"),i._rowContainer.setAttribute("role","list"),i._rowContainer.classList.add("xterm-accessibility-tree"),i._rowElements=[];for(var o=0;oe;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=r.tooMuchOutput)),s.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,s.isMac&&(0,d.removeElementFromParent)(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},t.prototype._renderRows=function(e,t){for(var n=this._terminal.buffer,i=n.lines.length.toString(),o=e;o<=t;o++){var r=n.translateBufferLineToString(n.ydisp+o,!0),s=(n.ydisp+o+1).toString(),a=this._rowElements[o];a&&(0===r.length?a.innerText=" ":a.textContent=r,a.setAttribute("aria-posinset",s),a.setAttribute("aria-setsize",i))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e{function n(e){return e.replace(/\r?\n/g,"\r")}function i(e,t){return t?"[200~"+e+"[201~":e}function o(e,t,o){e=i(e=n(e),o.decPrivateModes.bracketedPasteMode),o.triggerDataEvent(e,!0),t.value=""}function r(e,t,n){var i=n.getBoundingClientRect(),o=e.clientX-i.left-10,r=e.clientY-i.top-10;t.style.width="20px",t.style.height="20px",t.style.left=o+"px",t.style.top=r+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=n,t.bracketTextForPaste=i,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,n){e.stopPropagation(),e.clipboardData&&o(e.clipboardData.getData("text/plain"),t,n)},t.paste=o,t.moveTextAreaUnderMouseCursor=r,t.rightClickHandler=function(e,t,n,i,o){r(e,t,n),o&&i.rightClickSelect(e),t.value=i.selectionText,t.select()}},4774:(e,t)=>{var n,i,o,r;function s(e){var t=e.toString(16);return t.length<2?"0"+t:t}function a(e,t){return e>>0}}(n=t.channels||(t.channels={})),(i=t.color||(t.color={})).blend=function(e,t){var i=(255&t.rgba)/255;if(1===i)return{css:t.css,rgba:t.rgba};var o=t.rgba>>24&255,r=t.rgba>>16&255,s=t.rgba>>8&255,a=e.rgba>>24&255,c=e.rgba>>16&255,l=e.rgba>>8&255,u=a+Math.round((o-a)*i),d=c+Math.round((r-c)*i),h=l+Math.round((s-l)*i);return{css:n.toCss(u,d,h),rgba:n.toRgba(u,d,h)}},i.isOpaque=function(e){return 255==(255&e.rgba)},i.ensureContrastRatio=function(e,t,n){var i=r.ensureContrastRatio(e.rgba,t.rgba,n);if(i)return r.toColor(i>>24&255,i>>16&255,i>>8&255)},i.opaque=function(e){var t=(255|e.rgba)>>>0,i=r.toChannels(t),o=i[0],s=i[1],a=i[2];return{css:n.toCss(o,s,a),rgba:t}},i.opacity=function(e,t){var i=Math.round(255*t),o=r.toChannels(e.rgba),s=o[0],a=o[1],c=o[2];return{css:n.toCss(s,a,c,i),rgba:n.toRgba(s,a,c,i)}},i.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]},(t.css||(t.css={})).toColor=function(e){switch(e.length){case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(e){function t(e,t,n){var i=e/255,o=t/255,r=n/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(o=t.rgb||(t.rgb={})),function(e){function t(e,t,n){for(var i=e>>24&255,r=e>>16&255,s=e>>8&255,c=t>>24&255,l=t>>16&255,u=t>>8&255,d=a(o.relativeLuminance2(c,u,l),o.relativeLuminance2(i,r,s));d0||l>0||u>0);)c-=Math.max(0,Math.ceil(.1*c)),l-=Math.max(0,Math.ceil(.1*l)),u-=Math.max(0,Math.ceil(.1*u)),d=a(o.relativeLuminance2(c,u,l),o.relativeLuminance2(i,r,s));return(c<<24|l<<16|u<<8|255)>>>0}function i(e,t,n){for(var i=e>>24&255,r=e>>16&255,s=e>>8&255,c=t>>24&255,l=t>>16&255,u=t>>8&255,d=a(o.relativeLuminance2(c,u,l),o.relativeLuminance2(i,r,s));d>>0}e.ensureContrastRatio=function(e,n,r){var s=o.relativeLuminance(e>>8),c=o.relativeLuminance(n>>8);if(a(s,c)>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,i){return{css:n.toCss(e,t,i),rgba:n.toRgba(e,t,i)}}}(r=t.rgba||(t.rgba={})),t.toPaddedHex=s,t.contrastRatio=a},7239:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;var n=function(){function e(){this._color={},this._rgba={}}return e.prototype.clear=function(){this._color={},this._rgba={}},e.prototype.setCss=function(e,t,n){this._rgba[e]||(this._rgba[e]={}),this._rgba[e][t]=n},e.prototype.getCss=function(e,t){return this._rgba[e]?this._rgba[e][t]:void 0},e.prototype.setColor=function(e,t,n){this._color[e]||(this._color[e]={}),this._color[e][t]=n},e.prototype.getColor=function(e,t){return this._color[e]?this._color[e][t]:void 0},e}();t.ColorContrastCache=n},5680:function(e,t,n){var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o{Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(){for(var e,t=[],n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,n,i){e.addEventListener(t,n,i);var o=!1;return{dispose:function(){o||(o=!0,e.removeEventListener(t,n,i))}}}},3551:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var r=n(8460),s=n(2585),a=function(){function e(e,t,n){this._bufferService=e,this._logService=t,this._unicodeService=n,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new r.EventEmitter,this._onHideLinkUnderline=new r.EventEmitter,this._onLinkTooltip=new r.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(e.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),e.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},e.prototype.linkifyRows=function(t,n){var i=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(t,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return i._linkifyRows()},e._timeBeforeLatency))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var n=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,i=Math.ceil(2e3/this._bufferService.cols),o=this._bufferService.buffer.iterator(!1,t,n,i,i);o.hasNext();)for(var r=o.next(),s=0;s=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},e.prototype.deregisterLinkMatcher=function(e){for(var t=0;t>9&511:void 0;n.validationCallback?n.validationCallback(a,function(e){o._rowsTimeoutId||e&&o._addLink(l[1],l[0]-o._bufferService.buffer.ydisp,a,n,h)}):c._addLink(l[1],l[0]-c._bufferService.buffer.ydisp,a,n,h)},c=this;null!==(i=r.exec(t))&&"break"!==a(););},e.prototype._addLink=function(e,t,n,i,o){var r=this;if(this._mouseZoneManager&&this._element){var s=this._unicodeService.getStringCellWidth(n),a=e%this._bufferService.cols,l=t+Math.floor(e/this._bufferService.cols),u=(a+s)%this._bufferService.cols,d=l+Math.floor((a+s)/this._bufferService.cols);0===u&&(u=this._bufferService.cols,d--),this._mouseZoneManager.add(new c(a+1,l+1,u+1,d+1,function(e){if(i.handler)return i.handler(e,n);var t=window.open();t?(t.opener=null,t.location.href=n):console.warn("Opening link blocked as opener could not be cleared")},function(){r._onShowLinkUnderline.fire(r._createLinkHoverEvent(a,l,u,d,o)),r._element.classList.add("xterm-cursor-pointer")},function(e){r._onLinkTooltip.fire(r._createLinkHoverEvent(a,l,u,d,o)),i.hoverTooltipCallback&&i.hoverTooltipCallback(e,n,{start:{x:a,y:l},end:{x:u,y:d}})},function(){r._onHideLinkUnderline.fire(r._createLinkHoverEvent(a,l,u,d,o)),r._element.classList.remove("xterm-cursor-pointer"),i.hoverLeaveCallback&&i.hoverLeaveCallback()},function(e){return!i.willLinkActivate||i.willLinkActivate(e,n)}))}},e.prototype._createLinkHoverEvent=function(e,t,n,i,o){return{x1:e,y1:t,x2:n,y2:i,cols:this._bufferService.cols,fg:o}},e._timeBeforeLatency=200,e=i([o(0,s.IBufferService),o(1,s.ILogService),o(2,s.IUnicodeService)],e)}();t.Linkifier=a;var c=function(e,t,n,i,o,r,s,a,c){this.x1=e,this.y1=t,this.x2=n,this.y2=i,this.clickCallback=o,this.hoverCallback=r,this.tooltipCallback=s,this.leaveCallback=a,this.willLinkActivate=c};t.MouseZone=c},6465:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var a=n(2585),c=n(8460),l=n(844),u=n(3656),d=function(e){function t(t){var n=e.call(this)||this;return n._bufferService=t,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new c.EventEmitter),n._onHideLinkUnderline=n.register(new c.EventEmitter),n.register((0,l.getDisposeArrayDisposable)(n._linkCacheDisposables)),n}return o(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var n=t._linkProviders.indexOf(e);-1!==n&&t._linkProviders.splice(n,1)}}},t.prototype.attachToDom=function(e,t,n){var i=this;this._element=e,this._mouseService=t,this._renderService=n,this.register((0,u.addDisposableDomListener)(this._element,"mouseleave",function(){i._isMouseOut=!0,i._clearCurrentLink()})),this.register((0,u.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"click",this._onClick.bind(this)))},t.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var n=e.composedPath(),i=0;ie?this._bufferService.cols:s.link.range.end.x,l=a;l<=c;l++){if(n.has(l)){o.splice(r--,1);break}n.add(l)}}},t.prototype._checkLinkProviderResult=function(e,t,n){var i,o=this;if(!this._activeProviderReplies)return n;for(var r=this._activeProviderReplies.get(e),s=!1,a=0;a=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,l.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._linkAtPosition(e.link,n)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.pointerCursor},set:function(e){var n,i;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(i=t._element)||void 0===i||i.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.underline},set:function(n){var i,o,r;(null===(i=t._currentLink)||void 0===i?void 0:i.state)&&(null===(r=null===(o=t._currentLink)||void 0===o?void 0:o.state)||void 0===r?void 0:r.decorations.underline)!==n&&(t._currentLink.state.decorations.underline=n,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,n))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(e){var n=0===e.start?0:e.start+1+t._bufferService.buffer.ydisp;t._clearCurrentLink(n,e.end+1+t._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(e,t,n){var i;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(n,t.text)},t.prototype._fireUnderlineEvent=function(e,t){var n=e.range,i=this._bufferService.buffer.ydisp,o=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-i-1,n.end.x,n.end.y-i-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(o)},t.prototype._linkLeave=function(e,t,n){var i;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(n,t.text)},t.prototype._linkAtPosition=function(e,t){var n=e.range.start.y===e.range.end.y,i=e.range.start.yt.y;return(n&&e.range.start.x<=t.x&&e.range.end.x>=t.x||i&&e.range.end.x>=t.x||o&&e.range.start.x<=t.x||i&&o)&&e.range.start.y<=t.y&&e.range.end.y>=t.y},t.prototype._positionFromMouseEvent=function(e,t,n){var i=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(e,t,n,i,o){return{x1:e,y1:t,x2:n,y2:i,cols:this._bufferService.cols,fg:o}},r([s(0,a.IBufferService)],t)}(l.Disposable);t.Linkifier2=d},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var a=n(844),c=n(3656),l=n(4725),u=n(2585),d=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;return a._element=t,a._screenElement=n,a._bufferService=i,a._mouseService=o,a._selectionService=r,a._optionsService=s,a._zones=[],a._areZonesActive=!1,a._lastHoverCoords=[void 0,void 0],a._initialSelectionLength=0,a.register((0,c.addDisposableDomListener)(a._element,"mousedown",function(e){return a._onMouseDown(e)})),a._mouseMoveListener=function(e){return a._onMouseMove(e)},a._mouseLeaveListener=function(e){return a._onMouseLeave(e)},a._clickListener=function(e){return a._onClick(e)},a}return o(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var n=0;ne&&i.y1<=t+1||i.y2>e&&i.y2<=t+1||i.y1t+1)&&(this._currentZone&&this._currentZone===i&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(n--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,n=this._findZoneEventAt(e);n!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),n&&(this._currentZone=n,n.hoverCallback&&n.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);null==t||t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);(null==t?void 0:t.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e),n=this._getSelectionLength();t&&n===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var n=t[0],i=t[1],o=0;o=r.x1&&n=r.x1||i===r.y2&&nr.y1&&i{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0;var n=function(){function e(e){this._renderCallback=e}return e.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.refresh=function(e,t,n){var i=this;this._rowCount=n,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return i._innerRefresh()}))},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(e,t)}},e}();t.RenderDebouncer=n},5596:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;var r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._currentDevicePixelRatio=window.devicePixelRatio,t}return o(t,e),t.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.prototype._updateDpr=function(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},t.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},t}(n(844).Disposable);t.ScreenDprMonitor=r},3236:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var r=n(2950),s=n(1680),a=n(3614),c=n(2584),l=n(5435),u=n(3525),d=n(3551),h=n(9312),p=n(6114),f=n(3656),m=n(9042),g=n(357),v=n(6954),b=n(4567),y=n(1296),_=n(7399),M=n(8460),w=n(8437),C=n(5680),S=n(3230),A=n(4725),E=n(428),O=n(8934),L=n(6465),T=n(5114),x=n(8969),R=n(4774),k=n(4269),z=n(5941),P="undefined"!=typeof window?window.document:null,N=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.browser=p,n._keyDownHandled=!1,n._keyPressHandled=!1,n._unprocessedDeadKey=!1,n._onCursorMove=new M.EventEmitter,n._onKey=new M.EventEmitter,n._onRender=new M.EventEmitter,n._onSelectionChange=new M.EventEmitter,n._onTitleChange=new M.EventEmitter,n._onBell=new M.EventEmitter,n._onFocus=new M.EventEmitter,n._onBlur=new M.EventEmitter,n._onA11yCharEmitter=new M.EventEmitter,n._onA11yTabEmitter=new M.EventEmitter,n._setup(),n.linkifier=n._instantiationService.createInstance(d.Linkifier),n.linkifier2=n.register(n._instantiationService.createInstance(L.Linkifier2)),n.register(n._inputHandler.onRequestBell(function(){return n.bell()})),n.register(n._inputHandler.onRequestRefreshRows(function(e,t){return n.refresh(e,t)})),n.register(n._inputHandler.onRequestSendFocus(function(){return n._reportFocus()})),n.register(n._inputHandler.onRequestReset(function(){return n.reset()})),n.register(n._inputHandler.onRequestWindowsOptionsReport(function(e){return n._reportWindowsOptions(e)})),n.register(n._inputHandler.onColor(function(e){return n._handleColorEvent(e)})),n.register((0,M.forwardEvent)(n._inputHandler.onCursorMove,n._onCursorMove)),n.register((0,M.forwardEvent)(n._inputHandler.onTitleChange,n._onTitleChange)),n.register((0,M.forwardEvent)(n._inputHandler.onA11yChar,n._onA11yCharEmitter)),n.register((0,M.forwardEvent)(n._inputHandler.onA11yTab,n._onA11yTabEmitter)),n.register(n._bufferService.onResize(function(e){return n._afterResize(e.cols,e.rows)})),n}return o(t,e),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),t.prototype._handleColorEvent=function(e){var t,n;if(this._colorManager){for(var i=0,o=e;i4)&&t.coreMouseService.triggerMouseEvent({col:o.x-33,row:o.y-33,button:n,action:i,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var o={mouseup:null,wheel:null,mousedrag:null,mousemove:null},r=function(t){return i(t),t.buttons||(e._document.removeEventListener("mouseup",o.mouseup),o.mousedrag&&e._document.removeEventListener("mousemove",o.mousedrag)),e.cancel(t)},s=function(t){return i(t),e.cancel(t,!0)},a=function(e){e.buttons&&i(e)},l=function(e){e.buttons||i(e)};this.register(this.coreMouseService.onProtocolChange(function(t){t?("debug"===e.optionsService.rawOptions.logLevel&&e._logService.debug("Binding to mouse events:",e.coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?o.mousemove||(n.addEventListener("mousemove",l),o.mousemove=l):(n.removeEventListener("mousemove",o.mousemove),o.mousemove=null),16&t?o.wheel||(n.addEventListener("wheel",s,{passive:!1}),o.wheel=s):(n.removeEventListener("wheel",o.wheel),o.wheel=null),2&t?o.mouseup||(o.mouseup=r):(e._document.removeEventListener("mouseup",o.mouseup),o.mouseup=null),4&t?o.mousedrag||(o.mousedrag=a):(e._document.removeEventListener("mousemove",o.mousedrag),o.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,f.addDisposableDomListener)(n,"mousedown",function(t){if(t.preventDefault(),e.focus(),e.coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return i(t),o.mouseup&&e._document.addEventListener("mouseup",o.mouseup),o.mousedrag&&e._document.addEventListener("mousemove",o.mousedrag),e.cancel(t)})),this.register((0,f.addDisposableDomListener)(n,"wheel",function(t){if(!o.wheel){if(!e.buffer.hasScrollback){var n=e.viewport.getLinesScrolled(t);if(0===n)return;for(var i=c.C0.ESC+(e.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),r="",s=0;s47)},t.prototype._keyUp=function(e){this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)},t.prototype._keyPress=function(e){var t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},t.prototype._inputEvent=function(e){if(e.data&&"insertText"===e.inputType&&!e.composed&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1},t.prototype.bell=function(){var e;this._soundBell()&&(null===(e=this._soundService)||void 0===e||e.playBellSound()),this._onBell.fire()},t.prototype.resize=function(t,n){t!==this.cols||n!==this.rows?e.prototype.resize.call(this,t,n):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},t.prototype._afterResize=function(e,t){var n,i;null===(n=this._charSizeService)||void 0===n||n.measure(),null===(i=this.viewport)||void 0===i||i.syncScrollArea(!0)},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0;var n=function(){function e(e,t){void 0===t&&(t=1e3),this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return e.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},e.prototype.refresh=function(e,t,n){var i=this;this._rowCount=n,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;var o=Date.now();if(o-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=o,this._innerRefresh();else if(!this._additionalRefreshRequested){var r=o-this._lastRefreshMs,s=this._debounceThresholdMS-r;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){i._lastRefreshMs=Date.now(),i._innerRefresh(),i._additionalRefreshRequested=!1,i._refreshTimeoutID=void 0},s)}},e.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},e}();t.TimeBasedDebouncer=n},1680:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var a=n(844),c=n(3656),l=n(4725),u=n(2585),d=function(e){function t(t,n,i,o,r,s,a,l){var u=e.call(this)||this;return u._scrollLines=t,u._viewportElement=n,u._scrollArea=i,u._element=o,u._bufferService=r,u._optionsService=s,u._charSizeService=a,u._renderService=l,u.scrollBarWidth=0,u._currentRowHeight=0,u._currentScaledCellHeight=0,u._lastRecordedBufferLength=0,u._lastRecordedViewportHeight=0,u._lastRecordedBufferHeight=0,u._lastTouchY=0,u._lastScrollTop=0,u._lastHadScrollBar=!1,u._wheelPartialScroll=0,u._refreshAnimationFrame=null,u._ignoreNextScrollEvent=!1,u.scrollBarWidth=u._viewportElement.offsetWidth-u._scrollArea.offsetWidth||15,u._lastHadScrollBar=!0,u.register((0,c.addDisposableDomListener)(u._viewportElement,"scroll",u._onScroll.bind(u))),u._activeBuffer=u._bufferService.buffer,u.register(u._bufferService.buffers.onBufferActivate(function(e){return u._activeBuffer=e.activeBuffer})),u._renderDimensions=u._renderService.dimensions,u.register(u._renderService.onDimensionsChange(function(e){return u._renderDimensions=e})),setTimeout(function(){return u.syncScrollArea()},0),u}return o(t,e),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),0===this._optionsService.rawOptions.scrollback?this.scrollBarWidth=0:this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0;var n=window.getComputedStyle(this._element),i=parseInt(n.paddingLeft)+parseInt(n.paddingRight);this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth+(this._lastHadScrollBar?i:0)).toString()+"px",this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.rawOptions.scrollback>0&&this._refresh(e):this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},t.prototype._bubbleScroll=function(e,t){var n=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&n0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},t.prototype._applyScrollModifier=function(e,t){var n=this._optionsService.rawOptions.fastScrollModifier;return"alt"===n&&t.altKey||"ctrl"===n&&t.ctrlKey||"shift"===n&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},r([s(4,u.IBufferService),s(5,u.IOptionsService),s(6,l.ICharSizeService),s(7,l.IRenderService)],t)}(a.Disposable);t.Viewport=d},2950:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var r=n(4725),s=n(2585),a=function(){function e(e,t,n,i,o,r){this._textarea=e,this._compositionView=t,this._bufferService=n,this._optionsService=i,this._coreService=o,this._renderService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(e.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var e;t._isSendingComposition&&(t._isSendingComposition=!1,n.start+=t._dataAlreadySent.length,(e=t._isComposing?t._textarea.value.substring(n.start,n.end):t._textarea.value.substring(n.start)).length>0&&t._coreService.triggerDataEvent(e,!0))},0)}else{this._isSendingComposition=!1;var i=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(i,!0)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout(function(){if(!e._isComposing){var n=e._textarea.value.replace(t,"");n.length>0&&(e._dataAlreadySent=n,e._coreService.triggerDataEvent(n,!0))}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),i=this._renderService.dimensions.actualCellHeight,o=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,r=n*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=r+"px",this._compositionView.style.top=o+"px",this._compositionView.style.height=i+"px",this._compositionView.style.lineHeight=i+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var s=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=o+"px",this._textarea.style.width=Math.max(s.width,1)+"px",this._textarea.style.height=Math.max(s.height,1)+"px",this._textarea.style.lineHeight=s.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},i([o(2,s.IBufferService),o(3,s.IOptionsService),o(4,s.ICoreService),o(5,r.IRenderService)],e)}();t.CompositionHelper=a},9806:(e,t)=>{function n(e,t){var n=t.getBoundingClientRect();return[e.clientX-n.left,e.clientY-n.top]}Object.defineProperty(t,"__esModule",{value:!0}),t.getRawByteCoords=t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=n,t.getCoords=function(e,t,i,o,r,s,a,c){if(r){var l=n(e,t);if(l)return l[0]=Math.ceil((l[0]+(c?s/2:0))/s),l[1]=Math.ceil(l[1]/a),l[0]=Math.min(Math.max(l[0],1),i+(c?1:0)),l[1]=Math.min(Math.max(l[1],1),o),l}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},9504:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var i=n(2584);function o(e,t,n,i){var o=e-r(n,e),a=t-r(n,t),u=Math.abs(o-a)-function(e,t,n){for(var i=0,o=e-r(n,e),a=t-r(n,t),c=0;c=0&&tt?"A":"B"}function a(e,t,n,i,o,r){for(var s=e,a=t,c="";s!==n||a!==i;)s+=o?1:-1,o&&s>r.cols-1?(c+=r.buffer.translateBufferLineToString(a,!1,e,s),s=0,e=0,a++):!o&&s<0&&(c+=r.buffer.translateBufferLineToString(a,!1,0,e+1),e=s=r.cols-1,a--);return c+r.buffer.translateBufferLineToString(a,!1,e,s)}function c(e,t){var n=t?"O":"[";return i.C0.ESC+n+e}function l(e,t){e=Math.floor(e);for(var n="",i=0;i0?i-r(s,i):t;var h=i,p=function(e,t,n,i,s,a){var c;return c=o(n,i,s,a).length>0?i-r(s,i):t,e=n&&ce?"D":"C",l(Math.abs(u-e),c(s,i));s=d>t?"D":"C";var h=Math.abs(d-t);return l(function(e,t){return t.cols-e}(d>t?e:u,n)+(h-1)*n.cols+1+((d>t?u:e)-1),c(s,i))}},4389:function(e,t,n){var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;var i=n(643),o=n(8803),r=n(1420),s=n(3734),a=n(1752),c=n(4774),l=n(9631),u=n(8978),d=function(){function e(e,t,n,i,o,r,s,a){this._container=e,this._alpha=i,this._colors=o,this._rendererId=r,this._bufferService=s,this._optionsService=a,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=n.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){var e;(0,l.removeElementFromParent)(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},e.prototype._initCanvas=function(){this._ctx=(0,a.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},e.prototype.onOptionsChanged=function(){},e.prototype.onBlur=function(){},e.prototype.onFocus=function(){},e.prototype.onCursorMove=function(){},e.prototype.onGridChanged=function(e,t){},e.prototype.onSelectionChanged=function(e,t,n){void 0===n&&(n=!1)},e.prototype.setColors=function(e){this._refreshCharAtlas(e)},e.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},e.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,r.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},e.prototype.clearTextureAtlas=function(){var e;null===(e=this._charAtlas)||void 0===e||e.clear()},e.prototype._fillCells=function(e,t,n,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight)},e.prototype._fillMiddleLineAtCells=function(e,t,n){void 0===n&&(n=1);var i=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-i-window.devicePixelRatio,n*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillBottomLineAtCells=function(e,t,n){void 0===n&&(n=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,n*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillLeftLineAtCell=function(e,t,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*n,this._scaledCellHeight)},e.prototype._strokeRectAtCell=function(e,t,n,i){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,n*this._scaledCellWidth-window.devicePixelRatio,i*this._scaledCellHeight-window.devicePixelRatio)},e.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype._clearCells=function(e,t,n,i){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight))},e.prototype._fillCharTrueColor=function(e,t,n){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=o.TEXT_BASELINE,this._clipRow(n);var i=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(i=(0,u.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,n*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),i||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},e.prototype._drawChars=function(e,t,n){var r,s,a,c=this._getContrastColor(e);c||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,t,n,c):(e.isInverse()?(s=e.isBgDefault()?o.INVERTED_DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?o.INVERTED_DEFAULT_COLOR:e.getFgColor()):(a=e.isBgDefault()?i.DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?i.DEFAULT_COLOR:e.getFgColor()),s+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||i.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||i.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=s,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),(null===(r=this._charAtlas)||void 0===r?void 0:r.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,n))},e.prototype._drawUncachedChars=function(e,t,n,i){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=o.TEXT_BASELINE,e.isInverse())if(i)this._ctx.fillStyle=i.css;else if(e.isBgDefault())this._ctx.fillStyle=c.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var r=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&r<8&&(r+=8),this._ctx.fillStyle=this._colors.ansi[r].css}else if(i)this._ctx.fillStyle=i.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var a=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(n),e.isDim()&&(this._ctx.globalAlpha=o.DIM_OPACITY);var l=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(l=(0,u.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,n*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),l||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},e.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},e.prototype._getContrastColor=function(e){if(1!==this._optionsService.rawOptions.minimumContrastRatio){var t=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==t)return t||void 0;var n=e.getFgColor(),i=e.getFgColorMode(),o=e.getBgColor(),r=e.getBgColorMode(),s=!!e.isInverse(),a=!!e.isInverse();if(s){var l=n;n=o,o=l;var u=i;i=r,r=u}var d=this._resolveBackgroundRgba(r,o,s),h=this._resolveForegroundRgba(i,n,s,a),p=c.rgba.ensureContrastRatio(d,h,this._optionsService.rawOptions.minimumContrastRatio);if(p){var f={css:c.channels.toCss(p>>24&255,p>>16&255,p>>8&255),rgba:p};return this._colors.contrastCache.setColor(e.bg,e.fg,f),f}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},e.prototype._resolveBackgroundRgba=function(e,t,n){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return n?this._colors.foreground.rgba:this._colors.background.rgba}},e.prototype._resolveForegroundRgba=function(e,t,n,i){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&i&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return n?this._colors.background.rgba:this._colors.foreground.rgba}},e}();t.BaseRenderLayer=d},2512:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;var a=n(1546),c=n(511),l=n(2585),u=n(4725),d=600,h=function(e){function t(t,n,i,o,r,s,a,l,u){var d=e.call(this,t,"cursor",n,!0,i,o,s,a)||this;return d._onRequestRedraw=r,d._coreService=l,d._coreBrowserService=u,d._cell=new c.CellData,d._state={x:0,y:0,isFocused:!1,style:"",width:0},d._cursorRenderers={bar:d._renderBarCursor.bind(d),block:d._renderBlockCursor.bind(d),underline:d._renderUnderlineCursor.bind(d)},d}return o(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var e;this._clearCursor(),null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new p(this._coreBrowserService.isFocused,function(){t._render(!0)})):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation()},t.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=t-this._bufferService.buffer.ydisp;if(n<0||n>=this._bufferService.rows)this._clearCursor();else{var i=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(i,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var o=this._optionsService.rawOptions.cursorStyle;return o&&"block"!==o?this._cursorRenderers[o](i,n,this._cell):this._renderBlurCursor(i,n,this._cell),this._ctx.restore(),this._state.x=i,this._state.y=n,this._state.isFocused=!1,this._state.style=o,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===i&&this._state.y===n&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](i,n,this._cell),this._ctx.restore(),this._state.x=i,this._state.y=n,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,n.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(n,e,t),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,n.getWidth(),1),this._ctx.restore()},r([s(5,l.IBufferService),s(6,l.IOptionsService),s(7,l.ICoreService),s(8,u.ICoreBrowserService)],t)}(a.BaseRenderLayer);t.CursorRenderLayer=h;var p=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=void 0})))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=d),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(t._animationTimeRestarted){var e=d-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0}),t._blinkInterval=window.setInterval(function(){if(t._animationTimeRestarted){var e=d-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})},d)},e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:(e,t,n)=>{var i,o,r,s,a,c,l,u,d,h,p,f,m,g,v,b,y,_,M,w,C,S,A,E,O,L,T,x,R,k,z,P,N,I,D,B,q,j,W,F,H,X,U,V,G,K,$,Y,J,Q,Z,ee,te,ne,ie,oe,re,se,ae,ce,le,ue,de,he,pe,fe,me,ge,ve,be,ye,_e,Me,we,Ce,Se,Ae,Ee,Oe,Le,Te,xe,Re,ke,ze,Pe,Ne,Ie,De,Be,qe,je,We,Fe,He,Xe,Ue,Ve,Ge,Ke,$e,Ye,Je,Qe,Ze,et,tt,nt,it,ot,rt,st,at,ct,lt,ut,dt,ht,pt,ft,mt,gt,vt,bt,yt,_t,Mt,wt;Object.defineProperty(t,"__esModule",{value:!0}),t.tryDrawCustomChar=t.boxDrawingDefinitions=t.blockElementDefinitions=void 0;var Ct=n(1752);t.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:9,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var St={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};t.boxDrawingDefinitions={"─":(i={},i[1]="M0,.5 L1,.5",i),"━":(o={},o[3]="M0,.5 L1,.5",o),"│":(r={},r[1]="M.5,0 L.5,1",r),"┃":(s={},s[3]="M.5,0 L.5,1",s),"┌":(a={},a[1]="M0.5,1 L.5,.5 L1,.5",a),"┏":(c={},c[3]="M0.5,1 L.5,.5 L1,.5",c),"┐":(l={},l[1]="M0,.5 L.5,.5 L.5,1",l),"┓":(u={},u[3]="M0,.5 L.5,.5 L.5,1",u),"└":(d={},d[1]="M.5,0 L.5,.5 L1,.5",d),"┗":(h={},h[3]="M.5,0 L.5,.5 L1,.5",h),"┘":(p={},p[1]="M.5,0 L.5,.5 L0,.5",p),"┛":(f={},f[3]="M.5,0 L.5,.5 L0,.5",f),"├":(m={},m[1]="M.5,0 L.5,1 M.5,.5 L1,.5",m),"┣":(g={},g[3]="M.5,0 L.5,1 M.5,.5 L1,.5",g),"┤":(v={},v[1]="M.5,0 L.5,1 M.5,.5 L0,.5",v),"┫":(b={},b[3]="M.5,0 L.5,1 M.5,.5 L0,.5",b),"┬":(y={},y[1]="M0,.5 L1,.5 M.5,.5 L.5,1",y),"┳":(_={},_[3]="M0,.5 L1,.5 M.5,.5 L.5,1",_),"┴":(M={},M[1]="M0,.5 L1,.5 M.5,.5 L.5,0",M),"┻":(w={},w[3]="M0,.5 L1,.5 M.5,.5 L.5,0",w),"┼":(C={},C[1]="M0,.5 L1,.5 M.5,0 L.5,1",C),"╋":(S={},S[3]="M0,.5 L1,.5 M.5,0 L.5,1",S),"╴":(A={},A[1]="M.5,.5 L0,.5",A),"╸":(E={},E[3]="M.5,.5 L0,.5",E),"╵":(O={},O[1]="M.5,.5 L.5,0",O),"╹":(L={},L[3]="M.5,.5 L.5,0",L),"╶":(T={},T[1]="M.5,.5 L1,.5",T),"╺":(x={},x[3]="M.5,.5 L1,.5",x),"╷":(R={},R[1]="M.5,.5 L.5,1",R),"╻":(k={},k[3]="M.5,.5 L.5,1",k),"═":(z={},z[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},z),"║":(P={},P[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},P),"╒":(N={},N[1]=function(e,t){return"M.5,1 L.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},N),"╓":(I={},I[1]=function(e,t){return"M"+(.5-e)+",1 L"+(.5-e)+",.5 L1,.5 M"+(.5+e)+",.5 L"+(.5+e)+",1"},I),"╔":(D={},D[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},D),"╕":(B={},B[1]=function(e,t){return"M0,"+(.5-t)+" L.5,"+(.5-t)+" L.5,1 M0,"+(.5+t)+" L.5,"+(.5+t)},B),"╖":(q={},q[1]=function(e,t){return"M"+(.5+e)+",1 L"+(.5+e)+",.5 L0,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1"},q),"╗":(j={},j[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",1"},j),"╘":(W={},W[1]=function(e,t){return"M.5,0 L.5,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5-t)+" L1,"+(.5-t)},W),"╙":(F={},F[1]=function(e,t){return"M1,.5 L"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},F),"╚":(H={},H[1]=function(e,t){return"M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0 M1,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",0"},H),"╛":(X={},X[1]=function(e,t){return"M0,"+(.5+t)+" L.5,"+(.5+t)+" L.5,0 M0,"+(.5-t)+" L.5,"+(.5-t)},X),"╜":(U={},U[1]=function(e,t){return"M0,.5 L"+(.5+e)+",.5 L"+(.5+e)+",0 M"+(.5-e)+",.5 L"+(.5-e)+",0"},U),"╝":(V={},V[1]=function(e,t){return"M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M0,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",0"},V),"╞":(G={},G[1]=function(e,t){return"M.5,0 L.5,1 M.5,"+(.5-t)+" L1,"+(.5-t)+" M.5,"+(.5+t)+" L1,"+(.5+t)},G),"╟":(K={},K[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1 M"+(.5+e)+",.5 L1,.5"},K),"╠":($={},$[1]=function(e,t){return"M"+(.5-e)+",0 L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},$),"╡":(Y={},Y[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L.5,"+(.5-t)+" M0,"+(.5+t)+" L.5,"+(.5+t)},Y),"╢":(J={},J[1]=function(e,t){return"M0,.5 L"+(.5-e)+",.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},J),"╣":(Q={},Q[1]=function(e,t){return"M"+(.5+e)+",0 L"+(.5+e)+",1 M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0"},Q),"╤":(Z={},Z[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)+" M.5,"+(.5+t)+" L.5,1"},Z),"╥":(ee={},ee[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",1 M"+(.5+e)+",.5 L"+(.5+e)+",1"},ee),"╦":(te={},te[1]=function(e,t){return"M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1"},te),"╧":(ne={},ne[1]=function(e,t){return"M.5,0 L.5,"+(.5-t)+" M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},ne),"╨":(ie={},ie[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",.5 L"+(.5-e)+",0 M"+(.5+e)+",.5 L"+(.5+e)+",0"},ie),"╩":(oe={},oe[1]=function(e,t){return"M0,"+(.5+t)+" L1,"+(.5+t)+" M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},oe),"╪":(re={},re[1]=function(e,t){return"M.5,0 L.5,1 M0,"+(.5-t)+" L1,"+(.5-t)+" M0,"+(.5+t)+" L1,"+(.5+t)},re),"╫":(se={},se[1]=function(e,t){return"M0,.5 L1,.5 M"+(.5-e)+",0 L"+(.5-e)+",1 M"+(.5+e)+",0 L"+(.5+e)+",1"},se),"╬":(ae={},ae[1]=function(e,t){return"M0,"+(.5+t)+" L"+(.5-e)+","+(.5+t)+" L"+(.5-e)+",1 M1,"+(.5+t)+" L"+(.5+e)+","+(.5+t)+" L"+(.5+e)+",1 M0,"+(.5-t)+" L"+(.5-e)+","+(.5-t)+" L"+(.5-e)+",0 M1,"+(.5-t)+" L"+(.5+e)+","+(.5-t)+" L"+(.5+e)+",0"},ae),"╱":(ce={},ce[1]="M1,0 L0,1",ce),"╲":(le={},le[1]="M0,0 L1,1",le),"╳":(ue={},ue[1]="M1,0 L0,1 M0,0 L1,1",ue),"╼":(de={},de[1]="M.5,.5 L0,.5",de[3]="M.5,.5 L1,.5",de),"╽":(he={},he[1]="M.5,.5 L.5,0",he[3]="M.5,.5 L.5,1",he),"╾":(pe={},pe[1]="M.5,.5 L1,.5",pe[3]="M.5,.5 L0,.5",pe),"╿":(fe={},fe[1]="M.5,.5 L.5,1",fe[3]="M.5,.5 L.5,0",fe),"┍":(me={},me[1]="M.5,.5 L.5,1",me[3]="M.5,.5 L1,.5",me),"┎":(ge={},ge[1]="M.5,.5 L1,.5",ge[3]="M.5,.5 L.5,1",ge),"┑":(ve={},ve[1]="M.5,.5 L.5,1",ve[3]="M.5,.5 L0,.5",ve),"┒":(be={},be[1]="M.5,.5 L0,.5",be[3]="M.5,.5 L.5,1",be),"┕":(ye={},ye[1]="M.5,.5 L.5,0",ye[3]="M.5,.5 L1,.5",ye),"┖":(_e={},_e[1]="M.5,.5 L1,.5",_e[3]="M.5,.5 L.5,0",_e),"┙":(Me={},Me[1]="M.5,.5 L.5,0",Me[3]="M.5,.5 L0,.5",Me),"┚":(we={},we[1]="M.5,.5 L0,.5",we[3]="M.5,.5 L.5,0",we),"┝":(Ce={},Ce[1]="M.5,0 L.5,1",Ce[3]="M.5,.5 L1,.5",Ce),"┞":(Se={},Se[1]="M0.5,1 L.5,.5 L1,.5",Se[3]="M.5,.5 L.5,0",Se),"┟":(Ae={},Ae[1]="M.5,0 L.5,.5 L1,.5",Ae[3]="M.5,.5 L.5,1",Ae),"┠":(Ee={},Ee[1]="M.5,.5 L1,.5",Ee[3]="M.5,0 L.5,1",Ee),"┡":(Oe={},Oe[1]="M.5,.5 L.5,1",Oe[3]="M.5,0 L.5,.5 L1,.5",Oe),"┢":(Le={},Le[1]="M.5,.5 L.5,0",Le[3]="M0.5,1 L.5,.5 L1,.5",Le),"┥":(Te={},Te[1]="M.5,0 L.5,1",Te[3]="M.5,.5 L0,.5",Te),"┦":(xe={},xe[1]="M0,.5 L.5,.5 L.5,1",xe[3]="M.5,.5 L.5,0",xe),"┧":(Re={},Re[1]="M.5,0 L.5,.5 L0,.5",Re[3]="M.5,.5 L.5,1",Re),"┨":(ke={},ke[1]="M.5,.5 L0,.5",ke[3]="M.5,0 L.5,1",ke),"┩":(ze={},ze[1]="M.5,.5 L.5,1",ze[3]="M.5,0 L.5,.5 L0,.5",ze),"┪":(Pe={},Pe[1]="M.5,.5 L.5,0",Pe[3]="M0,.5 L.5,.5 L.5,1",Pe),"┭":(Ne={},Ne[1]="M0.5,1 L.5,.5 L1,.5",Ne[3]="M.5,.5 L0,.5",Ne),"┮":(Ie={},Ie[1]="M0,.5 L.5,.5 L.5,1",Ie[3]="M.5,.5 L1,.5",Ie),"┯":(De={},De[1]="M.5,.5 L.5,1",De[3]="M0,.5 L1,.5",De),"┰":(Be={},Be[1]="M0,.5 L1,.5",Be[3]="M.5,.5 L.5,1",Be),"┱":(qe={},qe[1]="M.5,.5 L1,.5",qe[3]="M0,.5 L.5,.5 L.5,1",qe),"┲":(je={},je[1]="M.5,.5 L0,.5",je[3]="M0.5,1 L.5,.5 L1,.5",je),"┵":(We={},We[1]="M.5,0 L.5,.5 L1,.5",We[3]="M.5,.5 L0,.5",We),"┶":(Fe={},Fe[1]="M.5,0 L.5,.5 L0,.5",Fe[3]="M.5,.5 L1,.5",Fe),"┷":(He={},He[1]="M.5,.5 L.5,0",He[3]="M0,.5 L1,.5",He),"┸":(Xe={},Xe[1]="M0,.5 L1,.5",Xe[3]="M.5,.5 L.5,0",Xe),"┹":(Ue={},Ue[1]="M.5,.5 L1,.5",Ue[3]="M.5,0 L.5,.5 L0,.5",Ue),"┺":(Ve={},Ve[1]="M.5,.5 L0,.5",Ve[3]="M.5,0 L.5,.5 L1,.5",Ve),"┽":(Ge={},Ge[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Ge[3]="M.5,.5 L0,.5",Ge),"┾":(Ke={},Ke[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Ke[3]="M.5,.5 L1,.5",Ke),"┿":($e={},$e[1]="M.5,0 L.5,1",$e[3]="M0,.5 L1,.5",$e),"╀":(Ye={},Ye[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Ye[3]="M.5,.5 L.5,0",Ye),"╁":(Je={},Je[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Je[3]="M.5,.5 L.5,1",Je),"╂":(Qe={},Qe[1]="M0,.5 L1,.5",Qe[3]="M.5,0 L.5,1",Qe),"╃":(Ze={},Ze[1]="M0.5,1 L.5,.5 L1,.5",Ze[3]="M.5,0 L.5,.5 L0,.5",Ze),"╄":(et={},et[1]="M0,.5 L.5,.5 L.5,1",et[3]="M.5,0 L.5,.5 L1,.5",et),"╅":(tt={},tt[1]="M.5,0 L.5,.5 L1,.5",tt[3]="M0,.5 L.5,.5 L.5,1",tt),"╆":(nt={},nt[1]="M.5,0 L.5,.5 L0,.5",nt[3]="M0.5,1 L.5,.5 L1,.5",nt),"╇":(it={},it[1]="M.5,.5 L.5,1",it[3]="M.5,.5 L.5,0 M0,.5 L1,.5",it),"╈":(ot={},ot[1]="M.5,.5 L.5,0",ot[3]="M0,.5 L1,.5 M.5,.5 L.5,1",ot),"╉":(rt={},rt[1]="M.5,.5 L1,.5",rt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",rt),"╊":(st={},st[1]="M.5,.5 L0,.5",st[3]="M.5,0 L.5,1 M.5,.5 L1,.5",st),"╌":(at={},at[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",at),"╍":(ct={},ct[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ct),"┄":(lt={},lt[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",lt),"┅":(ut={},ut[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ut),"┈":(dt={},dt[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",dt),"┉":(ht={},ht[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",ht),"╎":(pt={},pt[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",pt),"╏":(ft={},ft[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",ft),"┆":(mt={},mt[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",mt),"┇":(gt={},gt[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",gt),"┊":(vt={},vt[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",vt),"┋":(bt={},bt[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",bt),"╭":(yt={},yt[1]="C.5,1,.5,.5,1,.5",yt),"╮":(_t={},_t[1]="C.5,1,.5,.5,0,.5",_t),"╯":(Mt={},Mt[1]="C.5,0,.5,.5,0,.5",Mt),"╰":(wt={},wt[1]="C.5,0,.5,.5,1,.5",wt)},t.tryDrawCustomChar=function(e,n,i,o,r,s){var a=t.blockElementDefinitions[n];if(a)return function(e,t,n,i,o,r){for(var s=0;s7&&parseInt(c.substr(7,2),16)||1;else{if(!c.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+c+'" when drawing pattern glyph');m=(s=c.substring(5,c.length-1).split(",").map(function(e){return parseFloat(e)}))[0],g=s[1],v=s[2],b=s[3]}for(var y=0;y{Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0;var n=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var n=0;n=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;var a=n(1546),c=n(8803),l=n(2040),u=n(2585),d=function(e){function t(t,n,i,o,r,s,a,c){var l=e.call(this,t,"link",n,!0,i,o,a,c)||this;return r.onShowLinkUnderline(function(e){return l._onShowLinkUnderline(e)}),r.onHideLinkUnderline(function(e){return l._onHideLinkUnderline(e)}),s.onShowLinkUnderline(function(e){return l._onShowLinkUnderline(e)}),s.onHideLinkUnderline(function(e){return l._onHideLinkUnderline(e)}),l}return o(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(e){if(e.fg===c.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,l.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var a=n(9596),c=n(4149),l=n(2512),u=n(5098),d=n(844),h=n(4725),p=n(2585),f=n(1420),m=n(8460),g=1,v=function(e){function t(t,n,i,o,r,s,d,h){var p=e.call(this)||this;p._colors=t,p._screenElement=n,p._bufferService=s,p._charSizeService=d,p._optionsService=h,p._id=g++,p._onRequestRedraw=new m.EventEmitter;var f=p._optionsService.rawOptions.allowTransparency;return p._renderLayers=[r.createInstance(a.TextRenderLayer,p._screenElement,0,p._colors,f,p._id),r.createInstance(c.SelectionRenderLayer,p._screenElement,1,p._colors,p._id),r.createInstance(u.LinkRenderLayer,p._screenElement,2,p._colors,p._id,i,o),r.createInstance(l.CursorRenderLayer,p._screenElement,3,p._colors,p._id,p._onRequestRedraw)],p.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},p._devicePixelRatio=window.devicePixelRatio,p._updateDimensions(),p.onOptionsChanged(),p}return o(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){for(var t=0,n=this._renderLayers;t{Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e}},4149:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;var a=n(1546),c=n(2585),l=function(e){function t(t,n,i,o,r,s){var a=e.call(this,t,"selection",n,!0,i,o,r,s)||this;return a._clearState(),a}return o(t,e),t.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._clearState()},t.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},t.prototype.onSelectionChanged=function(e,t,n){if(this._didStateChange(e,t,n,this._bufferService.buffer.ydisp))if(this._clearAll(),e&&t){var i=e[1]-this._bufferService.buffer.ydisp,o=t[1]-this._bufferService.buffer.ydisp,r=Math.max(i,0),s=Math.min(o,this._bufferService.rows-1);if(r>=this._bufferService.rows||s<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,n){var a=e[0],c=t[0]-a,l=s-r+1;this._fillCells(a,r,c,l)}else{a=i===r?e[0]:0;var u=r===o?t[0]:this._bufferService.cols;this._fillCells(a,r,u-a,1);var d=Math.max(s-r-1,0);if(this._fillCells(0,r+1,this._bufferService.cols,d),r!==s){var h=o===s?t[0]:this._bufferService.cols;this._fillCells(0,s,h,1)}}this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=n,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},t.prototype._didStateChange=function(e,t,n,i){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||n!==this._state.columnSelectMode||i!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},r([s(4,c.IBufferService),s(5,c.IOptionsService)],t)}(a.BaseRenderLayer);t.SelectionRenderLayer=l},9596:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;var a=n(3700),c=n(1546),l=n(3734),u=n(643),d=n(511),h=n(2585),p=n(4725),f=n(4269),m=function(e){function t(t,n,i,o,r,s,c,l){var u=e.call(this,t,"text",n,o,i,r,s,c)||this;return u._characterJoinerService=l,u._characterWidth=0,u._characterFont="",u._characterOverlapCache={},u._workCell=new d.CellData,u._state=new a.GridCache,u}return o(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t);var n=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===n||(this._characterWidth=t.scaledCharWidth,this._characterFont=n,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},t.prototype.reset=function(){this._state.clear(),this._clearAll()},t.prototype._forEachCell=function(e,t,n){for(var i=e;i<=t;i++)for(var o=i+this._bufferService.buffer.ydisp,r=this._bufferService.buffer.lines.get(o),s=this._characterJoinerService.getJoinedCharacters(o),a=0;a0&&a===s[0][0]){l=!0;var h=s.shift();c=new f.JoinedCellData(this._workCell,r.translateToString(!0,h[0],h[1]),h[1]-h[0]),d=h[1]-1}!l&&this._isOverlapping(c)&&dthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=n,n},r([s(5,h.IBufferService),s(6,h.IOptionsService),s(7,p.ICharacterJoinerService)],t)}(c.BaseRenderLayer);t.TextRenderLayer=m},9616:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseCharAtlas=void 0;var n=function(){function e(){this._didWarmUp=!1}return e.prototype.dispose=function(){},e.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},e.prototype._doWarmUp=function(){},e.prototype.clear=function(){},e.prototype.beginFrame=function(){},e}();t.BaseCharAtlas=n},1420:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireCharAtlas=void 0;var i=n(2040),o=n(1906),r=[];t.acquireCharAtlas=function(e,t,n,s,a){for(var c=(0,i.generateConfig)(s,a,e,n),l=0;l=0){if((0,i.configEquals)(d.config,c))return d.atlas;1===d.ownedBy.length?(d.atlas.dispose(),r.splice(l,1)):d.ownedBy.splice(u,1);break}}for(l=0;l{Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;var i=n(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=i.isFirefox||i.isLegacyEdge?"bottom":"ideographic",t.CHAR_ATLAS_CELL_SPACING=1},1906:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.NoneCharAtlas=t.DynamicCharAtlas=t.getGlyphCacheKey=void 0;var r=n(8803),s=n(9616),a=n(5680),c=n(7001),l=n(6114),u=n(1752),d=n(4774),h=1024,p=1024,f={css:"rgba(0, 0, 0, 0)",rgba:0};function m(e){return e.code<<21|e.bg<<12|e.fg<<3|(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1)}t.getGlyphCacheKey=m;var g=function(e){function t(t,n){var i=e.call(this)||this;i._config=n,i._drawToCacheCount=0,i._glyphsWaitingOnBitmap=[],i._bitmapCommitTimeout=null,i._bitmap=null,i._cacheCanvas=t.createElement("canvas"),i._cacheCanvas.width=h,i._cacheCanvas.height=p,i._cacheCtx=(0,u.throwIfFalsy)(i._cacheCanvas.getContext("2d",{alpha:!0}));var o=t.createElement("canvas");o.width=i._config.scaledCharWidth,o.height=i._config.scaledCharHeight,i._tmpCtx=(0,u.throwIfFalsy)(o.getContext("2d",{alpha:i._config.allowTransparency})),i._width=Math.floor(h/i._config.scaledCharWidth),i._height=Math.floor(p/i._config.scaledCharHeight);var r=i._width*i._height;return i._cacheMap=new c.LRUMap(r),i._cacheMap.prealloc(r),i}return o(t,e),t.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},t.prototype.beginFrame=function(){this._drawToCacheCount=0},t.prototype.clear=function(){if(this._cacheMap.size>0){var e=this._width*this._height;this._cacheMap=new c.LRUMap(e),this._cacheMap.prealloc(e)}this._cacheCtx.clearRect(0,0,h,p),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},t.prototype.draw=function(e,t,n,i){if(32===t.code)return!0;if(!this._canCache(t))return!1;var o=m(t),r=this._cacheMap.get(o);if(null!=r)return this._drawFromCache(e,r,n,i),!0;if(this._drawToCacheCount<100){var s;s=this._cacheMap.size>>24,o=t.rgba>>>16&255,r=t.rgba>>>8&255,s=0;s{Object.defineProperty(t,"__esModule",{value:!0}),t.LRUMap=void 0;var n=function(){function e(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return e.prototype._unlinkNode=function(e){var t=e.prev,n=e.next;e===this._head&&(this._head=n),e===this._tail&&(this._tail=t),null!==t&&(t.next=n),null!==n&&(n.prev=t)},e.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},e.prototype.prealloc=function(e){for(var t=this._nodePool,n=0;n=this.capacity)n=this._head,this._unlinkNode(n),delete this._map[n.key],n.key=e,n.value=t,this._map[e]=n;else{var i=this._nodePool;i.length>0?((n=i.pop()).key=e,n.value=t):n={prev:null,next:null,key:e,value:t},this._map[e]=n,this.size++}this._appendNode(n)},e}();t.LRUMap=n},1296:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var a=n(3787),c=n(8803),l=n(844),u=n(4725),d=n(2585),h=n(8460),p=n(4774),f=n(9631),m="xterm-dom-renderer-owner-",g="xterm-fg-",v="xterm-bg-",b="xterm-focus",y=1,_=function(e){function t(t,n,i,o,r,s,c,l,u,d){var h=e.call(this)||this;return h._colors=t,h._element=n,h._screenElement=i,h._viewportElement=o,h._linkifier=r,h._linkifier2=s,h._charSizeService=l,h._optionsService=u,h._bufferService=d,h._terminalClass=y++,h._rowElements=[],h._rowContainer=document.createElement("div"),h._rowContainer.classList.add("xterm-rows"),h._rowContainer.style.lineHeight="normal",h._rowContainer.setAttribute("aria-hidden","true"),h._refreshRowElements(h._bufferService.cols,h._bufferService.rows),h._selectionContainer=document.createElement("div"),h._selectionContainer.classList.add("xterm-selection"),h._selectionContainer.setAttribute("aria-hidden","true"),h.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},h._updateDimensions(),h._injectCss(),h._rowFactory=c.createInstance(a.DomRendererRowFactory,document,h._colors),h._element.classList.add(m+h._terminalClass),h._screenElement.appendChild(h._rowContainer),h._screenElement.appendChild(h._selectionContainer),h._linkifier.onShowLinkUnderline(function(e){return h._onLinkHover(e)}),h._linkifier.onHideLinkUnderline(function(e){return h._onLinkLeave(e)}),h._linkifier2.onShowLinkUnderline(function(e){return h._onLinkHover(e)}),h._linkifier2.onHideLinkUnderline(function(e){return h._onLinkLeave(e)}),h}return o(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return(new h.EventEmitter).event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._element.classList.remove(m+this._terminalClass),(0,f.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),e.prototype.dispose.call(this)},t.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var e=0,t=this._rowElements;et;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove(b)},t.prototype.onFocus=function(){this._rowContainer.classList.add(b)},t.prototype.onSelectionChanged=function(e,t,n){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var i=e[1]-this._bufferService.buffer.ydisp,o=t[1]-this._bufferService.buffer.ydisp,r=Math.max(i,0),s=Math.min(o,this._bufferService.rows-1);if(!(r>=this._bufferService.rows||s<0)){var a=document.createDocumentFragment();if(n)a.appendChild(this._createSelectionElement(r,e[0],t[0],s-r+1));else{var c=i===r?e[0]:0,l=r===o?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(r,c,l));var u=s-r-1;if(a.appendChild(this._createSelectionElement(r+1,0,this._bufferService.cols,u)),r!==s){var d=o===s?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(s,0,d))}}this._selectionContainer.appendChild(a)}}},t.prototype._createSelectionElement=function(e,t,n,i){void 0===i&&(i=1);var o=document.createElement("div");return o.style.height=i*this.dimensions.actualCellHeight+"px",o.style.top=e*this.dimensions.actualCellHeight+"px",o.style.left=t*this.dimensions.actualCellWidth+"px",o.style.width=this.dimensions.actualCellWidth*(n-t)+"px",o},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},t.prototype.clear=function(){for(var e=0,t=this._rowElements;e=o&&(e=0,n++)}},r([s(6,d.IInstantiationService),s(7,u.ICharSizeService),s(8,d.IOptionsService),s(9,d.IBufferService)],t)}(l.Disposable);t.DomRenderer=_},3787:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.STRIKETHROUGH_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var r=n(8803),s=n(643),a=n(511),c=n(2585),l=n(4774),u=n(4725),d=n(4269);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.STRIKETHROUGH_CLASS="xterm-strikethrough",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var h=function(){function e(e,t,n,i,o){this._document=e,this._colors=t,this._characterJoinerService=n,this._optionsService=i,this._coreService=o,this._workCell=new a.CellData}return e.prototype.setColors=function(e){this._colors=e},e.prototype.createRow=function(e,n,i,o,a,c,u,h){for(var f=this._document.createDocumentFragment(),m=this._characterJoinerService.getJoinedCharacters(n),g=0,v=Math.min(e.length,h)-1;v>=0;v--)if(e.loadCell(v,this._workCell).getCode()!==s.NULL_CELL_CODE||i&&v===a){g=v+1;break}for(v=0;v0&&v===m[0][0]){y=!0;var w=m.shift();M=new d.JoinedCellData(this._workCell,e.translateToString(!0,w[0],w[1]),w[1]-w[0]),_=w[1]-1,b=M.getWidth()}var C=this._document.createElement("span");if(b>1&&(C.style.width=u*b+"px"),y&&(C.style.display="inline",a>=v&&a<=_&&(a=v)),!this._coreService.isCursorHidden&&i&&v===a)switch(C.classList.add(t.CURSOR_CLASS),c&&C.classList.add(t.CURSOR_BLINK_CLASS),o){case"bar":C.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":C.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:C.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}M.isBold()&&C.classList.add(t.BOLD_CLASS),M.isItalic()&&C.classList.add(t.ITALIC_CLASS),M.isDim()&&C.classList.add(t.DIM_CLASS),M.isUnderline()&&C.classList.add(t.UNDERLINE_CLASS),M.isInvisible()?C.textContent=s.WHITESPACE_CELL_CHAR:C.textContent=M.getChars()||s.WHITESPACE_CELL_CHAR,M.isStrikethrough()&&C.classList.add(t.STRIKETHROUGH_CLASS);var S=M.getFgColor(),A=M.getFgColorMode(),E=M.getBgColor(),O=M.getBgColorMode(),L=!!M.isInverse();if(L){var T=S;S=E,E=T;var x=A;A=O,O=x}switch(A){case 16777216:case 33554432:M.isBold()&&S<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(S+=8),this._applyMinimumContrast(C,this._colors.background,this._colors.ansi[S])||C.classList.add("xterm-fg-"+S);break;case 50331648:var R=l.rgba.toColor(S>>16&255,S>>8&255,255&S);this._applyMinimumContrast(C,this._colors.background,R)||this._addStyle(C,"color:#"+p(S.toString(16),"0",6));break;default:this._applyMinimumContrast(C,this._colors.background,this._colors.foreground)||L&&C.classList.add("xterm-fg-"+r.INVERTED_DEFAULT_COLOR)}switch(O){case 16777216:case 33554432:C.classList.add("xterm-bg-"+E);break;case 50331648:this._addStyle(C,"background-color:#"+p(E.toString(16),"0",6));break;default:L&&C.classList.add("xterm-bg-"+r.INVERTED_DEFAULT_COLOR)}f.appendChild(C),v=_}}return f},e.prototype._applyMinimumContrast=function(e,t,n){if(1===this._optionsService.rawOptions.minimumContrastRatio)return!1;var i=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===i&&(i=l.color.ensureContrastRatio(t,n,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=i?i:null)),!!i&&(this._addStyle(e,"color:"+i.css),!0)},e.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},i([o(2,u.ICharacterJoinerService),o(3,c.IOptionsService),o(4,c.ICoreService)],e)}();function p(e,t,n){for(;e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0;var n=function(){function e(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}return e.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=n},428:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var r=n(2585),s=n(8460),a=function(){function e(e,t,n){this._optionsService=n,this.width=0,this.height=0,this._onCharSizeChange=new s.EventEmitter,this._measureStrategy=new c(e,t,this._optionsService)}return Object.defineProperty(e.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),e.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},i([o(2,r.IOptionsService)],e)}();t.CharSizeService=a;var c=function(){function e(e,t,n){this._document=e,this._parentElement=t,this._optionsService=n,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return e.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},e}()},4269:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;var a=n(3734),c=n(643),l=n(511),u=n(2585),d=function(e){function t(t,n,i){var o=e.call(this)||this;return o.content=0,o.combinedData="",o.fg=t.fg,o.bg=t.bg,o.combinedData=n,o._width=i,o}return o(t,e),t.prototype.isCombined=function(){return 2097152},t.prototype.getWidth=function(){return this._width},t.prototype.getChars=function(){return this.combinedData},t.prototype.getCode=function(){return 2097151},t.prototype.setFromCharData=function(e){throw new Error("not implemented")},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(a.AttributeData);t.JoinedCellData=d;var h=function(){function e(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new l.CellData}return e.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},e.prototype.deregister=function(e){for(var t=0;t1)for(var d=this._getJoinedRanges(i,s,r,t,o),h=0;h1)for(d=this._getJoinedRanges(i,s,r,t,o),h=0;h{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;var n=function(){function e(e){this._textarea=e}return Object.defineProperty(e.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),e}();t.CoreBrowserService=n},8934:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var r=n(4725),s=n(9806),a=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,n,i,o){return(0,s.getCoords)(e,t,n,i,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,o)},e.prototype.getRawByteCoords=function(e,t,n,i){var o=this.getCoords(e,t,n,i);return(0,s.getRawByteCoords)(o)},i([o(0,r.IRenderService),o(1,r.ICharSizeService)],e)}();t.MouseService=a},3230:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var a=n(6193),c=n(8460),l=n(844),u=n(5596),d=n(3656),h=n(2585),p=n(4725),f=function(e){function t(t,n,i,o,r,s){var l=e.call(this)||this;if(l._renderer=t,l._rowCount=n,l._charSizeService=r,l._isPaused=!1,l._needsFullRefresh=!1,l._isNextRenderRedrawOnly=!0,l._needsSelectionRefresh=!1,l._canvasWidth=0,l._canvasHeight=0,l._selectionState={start:void 0,end:void 0,columnSelectMode:!1},l._onDimensionsChange=new c.EventEmitter,l._onRender=new c.EventEmitter,l._onRefreshRequest=new c.EventEmitter,l.register({dispose:function(){return l._renderer.dispose()}}),l._renderDebouncer=new a.RenderDebouncer(function(e,t){return l._renderRows(e,t)}),l.register(l._renderDebouncer),l._screenDprMonitor=new u.ScreenDprMonitor,l._screenDprMonitor.setListener(function(){return l.onDevicePixelRatioChange()}),l.register(l._screenDprMonitor),l.register(s.onResize(function(e){return l._fullRefresh()})),l.register(o.onOptionChange(function(){return l._renderer.onOptionsChanged()})),l.register(l._charSizeService.onCharSizeChange(function(){return l.onCharSizeChanged()})),l._renderer.onRequestRedraw(function(e){return l.refreshRows(e.start,e.end,!0)}),l.register((0,d.addDisposableDomListener)(window,"resize",function(){return l.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var h=new IntersectionObserver(function(e){return l._onIntersectionChange(e[e.length-1])},{threshold:0});h.observe(i),l.register({dispose:function(){return h.disconnect()}})}return l}return o(t,e),Object.defineProperty(t.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),t.prototype._onIntersectionChange=function(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},t.prototype.refreshRows=function(e,t,n){void 0===n&&(n=!1),this._isPaused?this._needsFullRefresh=!0:(n||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))},t.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0},t.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},t.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},t.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRedraw(function(e){return t.refreshRows(e.start,e.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},t.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},t.prototype.clearTextureAtlas=function(){var e,t;null===(t=null===(e=this._renderer)||void 0===e?void 0:e.clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh()},t.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},t.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},t.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()},t.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},t.prototype.onBlur=function(){this._renderer.onBlur()},t.prototype.onFocus=function(){this._renderer.onFocus()},t.prototype.onSelectionChanged=function(e,t,n){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=n,this._renderer.onSelectionChanged(e,t,n)},t.prototype.onCursorMove=function(){this._renderer.onCursorMove()},t.prototype.clear=function(){this._renderer.clear()},r([s(3,h.IOptionsService),s(4,p.ICharSizeService),s(5,h.IBufferService)],t)}(l.Disposable);t.RenderService=f},9312:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var a=n(6114),c=n(456),l=n(511),u=n(8460),d=n(4725),h=n(2585),p=n(9806),f=n(9504),m=n(844),g=n(4841),v=String.fromCharCode(160),b=new RegExp(v,"g"),y=function(e){function t(t,n,i,o,r,s,a,d){var h=e.call(this)||this;return h._element=t,h._screenElement=n,h._linkifier=i,h._bufferService=o,h._coreService=r,h._mouseService=s,h._optionsService=a,h._renderService=d,h._dragScrollAmount=0,h._enabled=!0,h._workCell=new l.CellData,h._mouseDownTimeStamp=0,h._oldHasSelection=!1,h._oldSelectionStart=void 0,h._oldSelectionEnd=void 0,h._onLinuxMouseSelection=h.register(new u.EventEmitter),h._onRedrawRequest=h.register(new u.EventEmitter),h._onSelectionChange=h.register(new u.EventEmitter),h._onRequestScrollLines=h.register(new u.EventEmitter),h._mouseMoveListener=function(e){return h._onMouseMove(e)},h._mouseUpListener=function(e){return h._onMouseUp(e)},h._coreService.onUserInput(function(){h.hasSelection&&h.clearSelection()}),h._trimListener=h._bufferService.buffer.lines.onTrim(function(e){return h._onTrim(e)}),h.register(h._bufferService.buffers.onBufferActivate(function(e){return h._onBufferActivate(e)})),h.enable(),h._model=new c.SelectionModel(h._bufferService),h._activeSelectionMode=0,h}return o(t,e),Object.defineProperty(t.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._removeMouseDownListeners()},t.prototype.reset=function(){this.clearSelection()},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var n=this._bufferService.buffer,i=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var o=e[1];o<=t[1];o++){var r=n.translateBufferLineToString(o,!0,e[0],t[0]);i.push(r)}}else{var s=e[1]===t[1]?t[0]:void 0;for(i.push(n.translateBufferLineToString(e[1],!0,e[0],s)),o=e[1]+1;o<=t[1]-1;o++){var c=n.lines.get(o);r=n.translateBufferLineToString(o,!0),(null==c?void 0:c.isWrapped)?i[i.length-1]+=r:i.push(r)}e[1]!==t[1]&&(c=n.lines.get(t[1]),r=n.translateBufferLineToString(t[1],!0,0,t[0]),c&&c.isWrapped?i[i.length-1]+=r:i.push(r))}return i.map(function(e){return e.replace(b," ")}).join(a.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},t.prototype.refresh=function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),a.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},t.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},t.prototype._isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!!(n&&i&&t)&&this._areCoordsInSelection(t,n,i)},t.prototype._areCoordsInSelection=function(e,t,n){return e[1]>t[1]&&e[1]=t[0]&&e[0]=t[0]},t.prototype._selectWordAtCursor=function(e,t){var n,i,o=null===(i=null===(n=this._linkifier.currentLink)||void 0===n?void 0:n.link)||void 0===i?void 0:i.range;if(o)return this._model.selectionStart=[o.start.x-1,o.start.y-1],this._model.selectionStartLength=(0,g.getRangeLength)(o,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var r=this._getMouseBufferCoords(e);return!!r&&(this._selectWordAt(r,t),this._model.selectionEnd=void 0,!0)},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},t.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t},t.prototype._getMouseEventScrollAmount=function(e){var t=(0,p.getCoordsRelativeToElement)(e,this._screenElement)[1],n=this._renderService.dimensions.canvasHeight;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return a.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return e._dragScroll()},50)},t.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(a.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var n=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var n=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(n&&void 0!==n[0]&&void 0!==n[1]){var i=(0,f.moveToCellSequence)(n[0]-1,n[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(i,!0)}}}else this._fireEventIfSelectionChanged()},t.prototype._fireEventIfSelectionChanged=function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,n=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);n?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,n)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,n)},t.prototype._fireOnSelectionChange=function(e,t,n){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=n,this._onSelectionChange.fire()},t.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(function(e){return t._onTrim(e)})},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var n=t[0],i=0;t[0]>=i;i++){var o=e.loadCell(i,this._workCell).getChars().length;0===this._workCell.getWidth()?n--:o>1&&t[0]!==i&&(n+=o-1)}return n},t.prototype.setSelection=function(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh()},t.prototype.rightClickSelect=function(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},t.prototype._getWordAt=function(e,t,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!0),!(e[0]>=this._bufferService.cols)){var o=this._bufferService.buffer,r=o.lines.get(e[1]);if(r){var s=o.translateBufferLineToString(e[1],!1),a=this._convertViewportColToCharacterIndex(r,e),c=a,l=e[0]-a,u=0,d=0,h=0,p=0;if(" "===s.charAt(a)){for(;a>0&&" "===s.charAt(a-1);)a--;for(;c1&&(p+=g-1,c+=g-1);f>0&&a>0&&!this._isCharWordSeparator(r.loadCell(f-1,this._workCell));){r.loadCell(f-1,this._workCell);var v=this._workCell.getChars().length;0===this._workCell.getWidth()?(u++,f--):v>1&&(h+=v-1,a-=v-1),a--,f--}for(;m1&&(p+=b-1,c+=b-1),c++,m++}}c++;var y=a+l-u+h,_=Math.min(this._bufferService.cols,c-a+u+d-h-p);if(t||""!==s.slice(a,c).trim()){if(n&&0===y&&32!==r.getCodePoint(0)){var M=o.lines.get(e[1]-1);if(M&&r.isWrapped&&32!==M.getCodePoint(this._bufferService.cols-1)){var w=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(w){var C=this._bufferService.cols-w.start;y-=C,_+=C}}}if(i&&y+_===this._bufferService.cols&&32!==r.getCodePoint(this._bufferService.cols-1)){var S=o.lines.get(e[1]+1);if((null==S?void 0:S.isWrapped)&&32!==S.getCodePoint(0)){var A=this._getWordAt([0,e[1]+1],!1,!1,!0);A&&(_+=A.length)}}return{start:y,length:_}}}}},t.prototype._selectWordAt=function(e,t){var n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var n=e[1];t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}},t.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0},t.prototype._selectLineAt=function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,t.first],this._model.selectionEnd=[this._bufferService.cols,t.last],this._model.selectionStartLength=0},r([s(3,h.IBufferService),s(4,h.ICoreService),s(5,d.IMouseService),s(6,h.IOptionsService),s(7,d.IRenderService)],t)}(m.Disposable);t.SelectionService=y},4725:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ICharacterJoinerService=t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var i=n(8343);t.ICharSizeService=(0,i.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,i.createDecorator)("CoreBrowserService"),t.IMouseService=(0,i.createDecorator)("MouseService"),t.IRenderService=(0,i.createDecorator)("RenderService"),t.ISelectionService=(0,i.createDecorator)("SelectionService"),t.ISoundService=(0,i.createDecorator)("SoundService"),t.ICharacterJoinerService=(0,i.createDecorator)("CharacterJoinerService")},357:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var r=n(2585),s=function(){function e(e){this._optionsService=e}return Object.defineProperty(e,"audioContext",{get:function(){if(!e._audioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;e._audioContext=new t}return e._audioContext},enumerable:!1,configurable:!0}),e.prototype.playBellSound=function(){var t=e.audioContext;if(t){var n=t.createBufferSource();t.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(e){n.buffer=e,n.connect(t.destination),n.start(0)})}},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),n=t.length,i=new Uint8Array(n),o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var i=n(8460),o=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new i.EventEmitter,this.onInsertEmitter=new i.EventEmitter,this.onTrimEmitter=new i.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),n=0;nthis._length)for(var t=this._length;t=e;o--)this._array[this._getCyclicIndex(o+n.length)]=this._array[this._getCyclicIndex(o)];for(o=0;othis._maxLength){var r=this._length+n.length-this._maxLength;this._startIndex+=r,this._length=this._maxLength,this.onTrimEmitter.fire(r)}else this._length+=n.length},e.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},e.prototype.shiftElements=function(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(n>0){for(var i=t-1;i>=0;i--)this.set(e+i+n,this.get(e+i));var o=e+t+n-this._length;if(o>0)for(this._length+=o;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,n){if(void 0===n&&(n=5),"object"!=typeof t)return t;var i=Array.isArray(t)?[]:{};for(var o in t)i[o]=n<=1?t[o]:t[o]&&e(t[o],n-1);return i}},8969:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var r=n(844),s=n(2585),a=n(4348),c=n(7866),l=n(744),u=n(7302),d=n(6975),h=n(8460),p=n(1753),f=n(3730),m=n(1480),g=n(7994),v=n(9282),b=n(5435),y=n(5981),_=!1,M=function(e){function t(t){var n=e.call(this)||this;return n._onBinary=new h.EventEmitter,n._onData=new h.EventEmitter,n._onLineFeed=new h.EventEmitter,n._onResize=new h.EventEmitter,n._onScroll=new h.EventEmitter,n._instantiationService=new a.InstantiationService,n.optionsService=new u.OptionsService(t),n._instantiationService.setService(s.IOptionsService,n.optionsService),n._bufferService=n.register(n._instantiationService.createInstance(l.BufferService)),n._instantiationService.setService(s.IBufferService,n._bufferService),n._logService=n._instantiationService.createInstance(c.LogService),n._instantiationService.setService(s.ILogService,n._logService),n.coreService=n.register(n._instantiationService.createInstance(d.CoreService,function(){return n.scrollToBottom()})),n._instantiationService.setService(s.ICoreService,n.coreService),n.coreMouseService=n._instantiationService.createInstance(p.CoreMouseService),n._instantiationService.setService(s.ICoreMouseService,n.coreMouseService),n._dirtyRowService=n._instantiationService.createInstance(f.DirtyRowService),n._instantiationService.setService(s.IDirtyRowService,n._dirtyRowService),n.unicodeService=n._instantiationService.createInstance(m.UnicodeService),n._instantiationService.setService(s.IUnicodeService,n.unicodeService),n._charsetService=n._instantiationService.createInstance(g.CharsetService),n._instantiationService.setService(s.ICharsetService,n._charsetService),n._inputHandler=new b.InputHandler(n._bufferService,n._charsetService,n.coreService,n._dirtyRowService,n._logService,n.optionsService,n.coreMouseService,n.unicodeService),n.register((0,h.forwardEvent)(n._inputHandler.onLineFeed,n._onLineFeed)),n.register(n._inputHandler),n.register((0,h.forwardEvent)(n._bufferService.onResize,n._onResize)),n.register((0,h.forwardEvent)(n.coreService.onData,n._onData)),n.register((0,h.forwardEvent)(n.coreService.onBinary,n._onBinary)),n.register(n.optionsService.onOptionChange(function(e){return n._updateOptions(e)})),n.register(n._bufferService.onScroll(function(e){n._onScroll.fire({position:n._bufferService.buffer.ydisp,source:0}),n._dirtyRowService.markRangeDirty(n._bufferService.buffer.scrollTop,n._bufferService.buffer.scrollBottom)})),n.register(n._inputHandler.onScroll(function(e){n._onScroll.fire({position:n._bufferService.buffer.ydisp,source:0}),n._dirtyRowService.markRangeDirty(n._bufferService.buffer.scrollTop,n._bufferService.buffer.scrollBottom)})),n._writeBuffer=new y.WriteBuffer(function(e,t){return n._inputHandler.parse(e,t)}),n}return o(t,e),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){var e=this;return this._onScrollApi||(this._onScrollApi=new h.EventEmitter,this.register(this._onScroll.event(function(t){var n;null===(n=e._onScrollApi)||void 0===n||n.fire(t.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.optionsService.options},set:function(e){for(var t in e)this.optionsService.options[t]=e[t]},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)},t.prototype.write=function(e,t){this._writeBuffer.write(e,t)},t.prototype.writeSync=function(e,t){this._logService.logLevel<=s.LogLevelEnum.WARN&&!_&&(this._logService.warn("writeSync is unreliable and will be removed soon."),_=!0),this._writeBuffer.writeSync(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,l.MINIMUM_COLS),t=Math.max(t,l.MINIMUM_ROWS),this._bufferService.resize(e,t))},t.prototype.scroll=function(e,t){void 0===t&&(t=!1),this._bufferService.scroll(e,t)},t.prototype.scrollLines=function(e,t,n){this._bufferService.scrollLines(e,t,n)},t.prototype.scrollPages=function(e){this._bufferService.scrollPages(e)},t.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},t.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},t.prototype.scrollToLine=function(e){this._bufferService.scrollToLine(e)},t.prototype.registerEscHandler=function(e,t){return this._inputHandler.registerEscHandler(e,t)},t.prototype.registerDcsHandler=function(e,t){return this._inputHandler.registerDcsHandler(e,t)},t.prototype.registerCsiHandler=function(e,t){return this._inputHandler.registerCsiHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._inputHandler.registerOscHandler(e,t)},t.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},t.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},t.prototype._updateOptions=function(e){var t;switch(e){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)}},t.prototype._enableWindowsMode=function(){var e=this;if(!this._windowsMode){var t=[];t.push(this.onLineFeed(v.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.registerCsiHandler({final:"H"},function(){return(0,v.updateWindowsModeWrappedState)(e._bufferService),!1})),this._windowsMode={dispose:function(){for(var e=0,n=t;e{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var n=function(){function e(){this._listeners=[],this._disposed=!1}return Object.defineProperty(e.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var n=0;n24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(r=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var S=function(){function e(e,t,n,i){this._bufferService=e,this._coreService=t,this._logService=n,this._optionsService=i,this._data=new Uint32Array(0)}return e.prototype.hook=function(e){this._data=new Uint32Array(0)},e.prototype.put=function(e,t,n){this._data=(0,u.concat)(this._data,e.subarray(t,n))},e.prototype.unhook=function(e){if(!e)return this._data=new Uint32Array(0),!0;var t=(0,d.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),t){case'"q':this._coreService.triggerDataEvent(s.C0.ESC+'P1$r0"q'+s.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(s.C0.ESC+'P1$r61;1"p'+s.C0.ESC+"\\");break;case"r":var n=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(s.C0.ESC+"P1$r"+n+s.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(s.C0.ESC+"P1$r0m"+s.C0.ESC+"\\");break;case" q":var i={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];i-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(s.C0.ESC+"P1$r"+i+" q"+s.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(s.C0.ESC+"P0$r"+s.C0.ESC+"\\")}return!0},e}(),A=function(e){function t(t,n,i,o,r,l,u,f,g){void 0===g&&(g=new c.EscapeSequenceParser);var v=e.call(this)||this;v._bufferService=t,v._charsetService=n,v._coreService=i,v._dirtyRowService=o,v._logService=r,v._optionsService=l,v._coreMouseService=u,v._unicodeService=f,v._parser=g,v._parseBuffer=new Uint32Array(4096),v._stringDecoder=new d.StringToUtf32,v._utf8Decoder=new d.Utf8ToUtf32,v._workCell=new m.CellData,v._windowTitle="",v._iconName="",v._windowTitleStack=[],v._iconNameStack=[],v._curAttrData=h.DEFAULT_ATTR_DATA.clone(),v._eraseAttrDataInternal=h.DEFAULT_ATTR_DATA.clone(),v._onRequestBell=new p.EventEmitter,v._onRequestRefreshRows=new p.EventEmitter,v._onRequestReset=new p.EventEmitter,v._onRequestSendFocus=new p.EventEmitter,v._onRequestSyncScrollBar=new p.EventEmitter,v._onRequestWindowsOptionsReport=new p.EventEmitter,v._onA11yChar=new p.EventEmitter,v._onA11yTab=new p.EventEmitter,v._onCursorMove=new p.EventEmitter,v._onLineFeed=new p.EventEmitter,v._onScroll=new p.EventEmitter,v._onTitleChange=new p.EventEmitter,v._onColor=new p.EventEmitter,v._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},v._specialColors=[256,257,258],v.register(v._parser),v._activeBuffer=v._bufferService.buffer,v.register(v._bufferService.buffers.onBufferActivate(function(e){return v._activeBuffer=e.activeBuffer})),v._parser.setCsiHandlerFallback(function(e,t){v._logService.debug("Unknown CSI code: ",{identifier:v._parser.identToString(e),params:t.toArray()})}),v._parser.setEscHandlerFallback(function(e){v._logService.debug("Unknown ESC code: ",{identifier:v._parser.identToString(e)})}),v._parser.setExecuteHandlerFallback(function(e){v._logService.debug("Unknown EXECUTE code: ",{code:e})}),v._parser.setOscHandlerFallback(function(e,t,n){v._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:n})}),v._parser.setDcsHandlerFallback(function(e,t,n){"HOOK"===t&&(n=n.toArray()),v._logService.debug("Unknown DCS code: ",{identifier:v._parser.identToString(e),action:t,payload:n})}),v._parser.setPrintHandler(function(e,t,n){return v.print(e,t,n)}),v._parser.registerCsiHandler({final:"@"},function(e){return v.insertChars(e)}),v._parser.registerCsiHandler({intermediates:" ",final:"@"},function(e){return v.scrollLeft(e)}),v._parser.registerCsiHandler({final:"A"},function(e){return v.cursorUp(e)}),v._parser.registerCsiHandler({intermediates:" ",final:"A"},function(e){return v.scrollRight(e)}),v._parser.registerCsiHandler({final:"B"},function(e){return v.cursorDown(e)}),v._parser.registerCsiHandler({final:"C"},function(e){return v.cursorForward(e)}),v._parser.registerCsiHandler({final:"D"},function(e){return v.cursorBackward(e)}),v._parser.registerCsiHandler({final:"E"},function(e){return v.cursorNextLine(e)}),v._parser.registerCsiHandler({final:"F"},function(e){return v.cursorPrecedingLine(e)}),v._parser.registerCsiHandler({final:"G"},function(e){return v.cursorCharAbsolute(e)}),v._parser.registerCsiHandler({final:"H"},function(e){return v.cursorPosition(e)}),v._parser.registerCsiHandler({final:"I"},function(e){return v.cursorForwardTab(e)}),v._parser.registerCsiHandler({final:"J"},function(e){return v.eraseInDisplay(e)}),v._parser.registerCsiHandler({prefix:"?",final:"J"},function(e){return v.eraseInDisplay(e)}),v._parser.registerCsiHandler({final:"K"},function(e){return v.eraseInLine(e)}),v._parser.registerCsiHandler({prefix:"?",final:"K"},function(e){return v.eraseInLine(e)}),v._parser.registerCsiHandler({final:"L"},function(e){return v.insertLines(e)}),v._parser.registerCsiHandler({final:"M"},function(e){return v.deleteLines(e)}),v._parser.registerCsiHandler({final:"P"},function(e){return v.deleteChars(e)}),v._parser.registerCsiHandler({final:"S"},function(e){return v.scrollUp(e)}),v._parser.registerCsiHandler({final:"T"},function(e){return v.scrollDown(e)}),v._parser.registerCsiHandler({final:"X"},function(e){return v.eraseChars(e)}),v._parser.registerCsiHandler({final:"Z"},function(e){return v.cursorBackwardTab(e)}),v._parser.registerCsiHandler({final:"`"},function(e){return v.charPosAbsolute(e)}),v._parser.registerCsiHandler({final:"a"},function(e){return v.hPositionRelative(e)}),v._parser.registerCsiHandler({final:"b"},function(e){return v.repeatPrecedingCharacter(e)}),v._parser.registerCsiHandler({final:"c"},function(e){return v.sendDeviceAttributesPrimary(e)}),v._parser.registerCsiHandler({prefix:">",final:"c"},function(e){return v.sendDeviceAttributesSecondary(e)}),v._parser.registerCsiHandler({final:"d"},function(e){return v.linePosAbsolute(e)}),v._parser.registerCsiHandler({final:"e"},function(e){return v.vPositionRelative(e)}),v._parser.registerCsiHandler({final:"f"},function(e){return v.hVPosition(e)}),v._parser.registerCsiHandler({final:"g"},function(e){return v.tabClear(e)}),v._parser.registerCsiHandler({final:"h"},function(e){return v.setMode(e)}),v._parser.registerCsiHandler({prefix:"?",final:"h"},function(e){return v.setModePrivate(e)}),v._parser.registerCsiHandler({final:"l"},function(e){return v.resetMode(e)}),v._parser.registerCsiHandler({prefix:"?",final:"l"},function(e){return v.resetModePrivate(e)}),v._parser.registerCsiHandler({final:"m"},function(e){return v.charAttributes(e)}),v._parser.registerCsiHandler({final:"n"},function(e){return v.deviceStatus(e)}),v._parser.registerCsiHandler({prefix:"?",final:"n"},function(e){return v.deviceStatusPrivate(e)}),v._parser.registerCsiHandler({intermediates:"!",final:"p"},function(e){return v.softReset(e)}),v._parser.registerCsiHandler({intermediates:" ",final:"q"},function(e){return v.setCursorStyle(e)}),v._parser.registerCsiHandler({final:"r"},function(e){return v.setScrollRegion(e)}),v._parser.registerCsiHandler({final:"s"},function(e){return v.saveCursor(e)}),v._parser.registerCsiHandler({final:"t"},function(e){return v.windowOptions(e)}),v._parser.registerCsiHandler({final:"u"},function(e){return v.restoreCursor(e)}),v._parser.registerCsiHandler({intermediates:"'",final:"}"},function(e){return v.insertColumns(e)}),v._parser.registerCsiHandler({intermediates:"'",final:"~"},function(e){return v.deleteColumns(e)}),v._parser.setExecuteHandler(s.C0.BEL,function(){return v.bell()}),v._parser.setExecuteHandler(s.C0.LF,function(){return v.lineFeed()}),v._parser.setExecuteHandler(s.C0.VT,function(){return v.lineFeed()}),v._parser.setExecuteHandler(s.C0.FF,function(){return v.lineFeed()}),v._parser.setExecuteHandler(s.C0.CR,function(){return v.carriageReturn()}),v._parser.setExecuteHandler(s.C0.BS,function(){return v.backspace()}),v._parser.setExecuteHandler(s.C0.HT,function(){return v.tab()}),v._parser.setExecuteHandler(s.C0.SO,function(){return v.shiftOut()}),v._parser.setExecuteHandler(s.C0.SI,function(){return v.shiftIn()}),v._parser.setExecuteHandler(s.C1.IND,function(){return v.index()}),v._parser.setExecuteHandler(s.C1.NEL,function(){return v.nextLine()}),v._parser.setExecuteHandler(s.C1.HTS,function(){return v.tabSet()}),v._parser.registerOscHandler(0,new b.OscHandler(function(e){return v.setTitle(e),v.setIconName(e),!0})),v._parser.registerOscHandler(1,new b.OscHandler(function(e){return v.setIconName(e)})),v._parser.registerOscHandler(2,new b.OscHandler(function(e){return v.setTitle(e)})),v._parser.registerOscHandler(4,new b.OscHandler(function(e){return v.setOrReportIndexedColor(e)})),v._parser.registerOscHandler(10,new b.OscHandler(function(e){return v.setOrReportFgColor(e)})),v._parser.registerOscHandler(11,new b.OscHandler(function(e){return v.setOrReportBgColor(e)})),v._parser.registerOscHandler(12,new b.OscHandler(function(e){return v.setOrReportCursorColor(e)})),v._parser.registerOscHandler(104,new b.OscHandler(function(e){return v.restoreIndexedColor(e)})),v._parser.registerOscHandler(110,new b.OscHandler(function(e){return v.restoreFgColor(e)})),v._parser.registerOscHandler(111,new b.OscHandler(function(e){return v.restoreBgColor(e)})),v._parser.registerOscHandler(112,new b.OscHandler(function(e){return v.restoreCursorColor(e)})),v._parser.registerEscHandler({final:"7"},function(){return v.saveCursor()}),v._parser.registerEscHandler({final:"8"},function(){return v.restoreCursor()}),v._parser.registerEscHandler({final:"D"},function(){return v.index()}),v._parser.registerEscHandler({final:"E"},function(){return v.nextLine()}),v._parser.registerEscHandler({final:"H"},function(){return v.tabSet()}),v._parser.registerEscHandler({final:"M"},function(){return v.reverseIndex()}),v._parser.registerEscHandler({final:"="},function(){return v.keypadApplicationMode()}),v._parser.registerEscHandler({final:">"},function(){return v.keypadNumericMode()}),v._parser.registerEscHandler({final:"c"},function(){return v.fullReset()}),v._parser.registerEscHandler({final:"n"},function(){return v.setgLevel(2)}),v._parser.registerEscHandler({final:"o"},function(){return v.setgLevel(3)}),v._parser.registerEscHandler({final:"|"},function(){return v.setgLevel(3)}),v._parser.registerEscHandler({final:"}"},function(){return v.setgLevel(2)}),v._parser.registerEscHandler({final:"~"},function(){return v.setgLevel(1)}),v._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return v.selectDefaultCharset()}),v._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return v.selectDefaultCharset()});var y=function(e){_._parser.registerEscHandler({intermediates:"(",final:e},function(){return v.selectCharset("("+e)}),_._parser.registerEscHandler({intermediates:")",final:e},function(){return v.selectCharset(")"+e)}),_._parser.registerEscHandler({intermediates:"*",final:e},function(){return v.selectCharset("*"+e)}),_._parser.registerEscHandler({intermediates:"+",final:e},function(){return v.selectCharset("+"+e)}),_._parser.registerEscHandler({intermediates:"-",final:e},function(){return v.selectCharset("-"+e)}),_._parser.registerEscHandler({intermediates:".",final:e},function(){return v.selectCharset("."+e)}),_._parser.registerEscHandler({intermediates:"/",final:e},function(){return v.selectCharset("/"+e)})},_=this;for(var M in a.CHARSETS)y(M);return v._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return v.screenAlignmentPattern()}),v._parser.setErrorHandler(function(e){return v._logService.error("Parsing error: ",e),e}),v._parser.registerDcsHandler({intermediates:"$",final:"q"},new S(v._bufferService,v._coreService,v._logService,v._optionsService)),v}return o(t,e),Object.defineProperty(t.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._preserveStack=function(e,t,n,i){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=n,this._parseStack.position=i},t.prototype._logSlowResolvingAsync=function(e){this._logService.logLevel<=v.LogLevelEnum.WARN&&Promise.race([e,new Promise(function(e,t){return setTimeout(function(){return t("#SLOW_TIMEOUT")},5e3)})]).catch(function(e){if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")})},t.prototype.parse=function(e,t){var n,i=this._activeBuffer.x,o=this._activeBuffer.y,r=0,s=this._parseStack.paused;if(s){if(n=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(n),n;i=this._parseStack.cursorStartX,o=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>w&&(r=this._parseStack.position+w)}if(this._logService.logLevel<=v.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?' "'+e+'"':""),"string"==typeof e?e.split("").map(function(e){return e.charCodeAt(0)}):e),this._parseBuffer.lengthw)for(var a=r;a0&&2===h.getWidth(this._activeBuffer.x-1)&&h.setCellFromCodePoint(this._activeBuffer.x-1,0,1,u.fg,u.bg,u.extended);for(var p=t;p=a)if(c){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),h=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=a-1,2===o)continue;if(l&&(h.insertCells(this._activeBuffer.x,o,this._activeBuffer.getNullCell(u),u),2===h.getWidth(a-1)&&h.setCellFromCodePoint(a-1,f.NULL_CELL_CODE,f.NULL_CELL_WIDTH,u.fg,u.bg,u.extended)),h.setCellFromCodePoint(this._activeBuffer.x++,i,o,u.fg,u.bg,u.extended),o>0)for(;--o;)h.setCellFromCodePoint(this._activeBuffer.x++,0,0,u.fg,u.bg,u.extended)}else h.getWidth(this._activeBuffer.x-1)?h.addCodepointToCell(this._activeBuffer.x-1,i):h.addCodepointToCell(this._activeBuffer.x-2,i)}n-t>0&&(h.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&0===h.getWidth(this._activeBuffer.x)&&!h.hasContent(this._activeBuffer.x)&&h.setCellFromCodePoint(this._activeBuffer.x,0,1,u.fg,u.bg,u.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype.registerCsiHandler=function(e,t){var n=this;return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,function(e){return!C(e.params[0],n._optionsService.rawOptions.windowOptions)||t(e)})},t.prototype.registerDcsHandler=function(e,t){return this._parser.registerDcsHandler(e,new y.DcsHandler(t))},t.prototype.registerEscHandler=function(e,t){return this._parser.registerEscHandler(e,t)},t.prototype.registerOscHandler=function(e,t){return this._parser.registerOscHandler(e,new b.OscHandler(t))},t.prototype.bell=function(){return this._onRequestBell.fire(),!0},t.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},t.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},t.prototype.backspace=function(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},t.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0},t.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},t.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},t.prototype._restrictCursor=function(e){void 0===e&&(e=this._bufferService.cols-1),this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},t.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)},t.prototype.cursorUp=function(e){var t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0},t.prototype.cursorDown=function(e){var t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0},t.prototype.cursorForward=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.cursorBackward=function(e){return this._moveCursor(-(e.params[0]||1),0),!0},t.prototype.cursorNextLine=function(e){return this.cursorDown(e),this._activeBuffer.x=0,!0},t.prototype.cursorPrecedingLine=function(e){return this.cursorUp(e),this._activeBuffer.x=0,!0},t.prototype.cursorCharAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.cursorPosition=function(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0},t.prototype.charPosAbsolute=function(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0},t.prototype.hPositionRelative=function(e){return this._moveCursor(e.params[0]||1,0),!0},t.prototype.linePosAbsolute=function(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0},t.prototype.vPositionRelative=function(e){return this._moveCursor(0,e.params[0]||1),!0},t.prototype.hVPosition=function(e){return this.cursorPosition(e),!0},t.prototype.tabClear=function(e){var t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0},t.prototype.cursorForwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},t.prototype.cursorBackwardTab=function(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var t=e.params[0]||1;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},t.prototype._eraseInBufferLine=function(e,t,n,i){void 0===i&&(i=!1);var o=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);o.replaceCells(t,n,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),i&&(o.isWrapped=!1)},t.prototype._resetBufferLine=function(e){var t=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);t.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),t.isWrapped=!1},t.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(t=this._activeBuffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);t=this._bufferService.cols&&(this._activeBuffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowService.markDirty(t-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var n=this._activeBuffer.lines.length-this._bufferService.rows;n>0&&(this._activeBuffer.lines.trimStart(n),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-n,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-n,0),this._onScroll.fire(0))}return!0},t.prototype.eraseInLine=function(e){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},t.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(s.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(s.C0.ESC+"[?6c")),!0},t.prototype.sendDeviceAttributesSecondary=function(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(s.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(s.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(s.C0.ESC+"[>83;40003;0c")),!0},t.prototype._is=function(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)},t.prototype.setMode=function(e){for(var t=0;t=2||2===i[1]&&r+o>=5)break;i[1]&&(o=1)}while(++r+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()},t.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=h.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=h.DEFAULT_ATTR_DATA.bg,!0;for(var t,n=e.length,i=this._curAttrData,o=0;o=30&&t<=37?(i.fg&=-50331904,i.fg|=16777216|t-30):t>=40&&t<=47?(i.bg&=-50331904,i.bg|=16777216|t-40):t>=90&&t<=97?(i.fg&=-50331904,i.fg|=16777224|t-90):t>=100&&t<=107?(i.bg&=-50331904,i.bg|=16777224|t-100):0===t?(i.fg=h.DEFAULT_ATTR_DATA.fg,i.bg=h.DEFAULT_ATTR_DATA.bg):1===t?i.fg|=134217728:3===t?i.bg|=67108864:4===t?(i.fg|=268435456,this._processUnderline(e.hasSubParams(o)?e.getSubParams(o)[0]:1,i)):5===t?i.fg|=536870912:7===t?i.fg|=67108864:8===t?i.fg|=1073741824:9===t?i.fg|=2147483648:2===t?i.bg|=134217728:21===t?this._processUnderline(2,i):22===t?(i.fg&=-134217729,i.bg&=-134217729):23===t?i.bg&=-67108865:24===t?i.fg&=-268435457:25===t?i.fg&=-536870913:27===t?i.fg&=-67108865:28===t?i.fg&=-1073741825:29===t?i.fg&=2147483647:39===t?(i.fg&=-67108864,i.fg|=16777215&h.DEFAULT_ATTR_DATA.fg):49===t?(i.bg&=-67108864,i.bg|=16777215&h.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?o+=this._extractColor(e,o,i):59===t?(i.extended=i.extended.clone(),i.extended.underlineColor=-1,i.updateExtended()):100===t?(i.fg&=-67108864,i.fg|=16777215&h.DEFAULT_ATTR_DATA.fg,i.bg&=-67108864,i.bg|=16777215&h.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t);return!0},t.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(s.C0.ESC+"[0n");break;case 6:var t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent(s.C0.ESC+"["+t+";"+n+"R")}return!0},t.prototype.deviceStatusPrivate=function(e){if(6===e.params[0]){var t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent(s.C0.ESC+"[?"+t+";"+n+"R")}return!0},t.prototype.softReset=function(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=h.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},t.prototype.setCursorStyle=function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var n=t%2==1;return this._optionsService.options.cursorBlink=n,!0},t.prototype.setScrollRegion=function(e){var t,n=e.params[0]||1;return(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>n&&(this._activeBuffer.scrollTop=n-1,this._activeBuffer.scrollBottom=t-1,this._setCursor(0,0)),!0},t.prototype.windowOptions=function(e){if(!C(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;var t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(r.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(r.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(s.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},t.prototype.saveCursor=function(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},t.prototype.restoreCursor=function(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},t.prototype.setTitle=function(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0},t.prototype.setIconName=function(e){return this._iconName=e,!0},t.prototype.setOrReportIndexedColor=function(e){for(var t=[],n=e.split(";");n.length>1;){var i=n.shift(),o=n.shift();if(/^\d+$/.exec(i)){var r=parseInt(i);if(0<=r&&r<256)if("?"===o)t.push({type:0,index:r});else{var s=(0,_.parseColor)(o);s&&t.push({type:1,index:r,color:s})}}}return t.length&&this._onColor.fire(t),!0},t.prototype._setOrReportSpecialColor=function(e,t){for(var n=e.split(";"),i=0;i=this._specialColors.length);++i,++t)if("?"===n[i])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{var o=(0,_.parseColor)(n[i]);o&&this._onColor.fire([{type:1,index:this._specialColors[t],color:o}])}return!0},t.prototype.setOrReportFgColor=function(e){return this._setOrReportSpecialColor(e,0)},t.prototype.setOrReportBgColor=function(e){return this._setOrReportSpecialColor(e,1)},t.prototype.setOrReportCursorColor=function(e){return this._setOrReportSpecialColor(e,2)},t.prototype.restoreIndexedColor=function(e){if(!e)return this._onColor.fire([{type:2}]),!0;for(var t=[],n=e.split(";"),i=0;i=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},t.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},t.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0},t.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},t.prototype.reset=function(){this._curAttrData=h.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=h.DEFAULT_ATTR_DATA.clone()},t.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},t.prototype.setgLevel=function(e){return this._charsetService.setgLevel(e),!0},t.prototype.screenAlignmentPattern=function(){var e=new m.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(var t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.Disposable=void 0;var n=function(){function e(){this._disposables=[],this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed=!0;for(var e=0,t=this._disposables;e{Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isLegacyEdge=t.isFirefox=void 0;var n="undefined"==typeof navigator,i=n?"node":navigator.userAgent,o=n?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(o),t.isIpad="iPad"===o,t.isIphone="iPhone"===o,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(o),t.isLinux=o.indexOf("Linux")>=0},8273:(e,t)=>{function n(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=e.length),n>=e.length)return e;n=(e.length+n)%e.length,i=i>=e.length?e.length:(e.length+i)%e.length;for(var o=n;o{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var i=n(643);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),n=null==t?void 0:t.get(e.cols-1),o=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);o&&n&&(o.isWrapped=n[i.CHAR_DATA_CODE_INDEX]!==i.NULL_CELL_CODE&&n[i.CHAR_DATA_CODE_INDEX]!==i.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var n=function(){function e(){this.fg=0,this.bg=0,this.extended=new i}return e.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},e.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},e.prototype.clone=function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t},e.prototype.isInverse=function(){return 67108864&this.fg},e.prototype.isBold=function(){return 134217728&this.fg},e.prototype.isUnderline=function(){return 268435456&this.fg},e.prototype.isBlink=function(){return 536870912&this.fg},e.prototype.isInvisible=function(){return 1073741824&this.fg},e.prototype.isItalic=function(){return 67108864&this.bg},e.prototype.isDim=function(){return 134217728&this.bg},e.prototype.isStrikethrough=function(){return 2147483648&this.fg},e.prototype.getFgColorMode=function(){return 50331648&this.fg},e.prototype.getBgColorMode=function(){return 50331648&this.bg},e.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},e.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},e.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},e.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},e.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},e.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},e.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},e.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},e.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},e.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},e.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},e.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},e.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},e.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},e.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},e.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},e.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},e}();t.AttributeData=n;var i=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=-1),this.underlineStyle=e,this.underlineColor=t}return e.prototype.clone=function(){return new e(this.underlineStyle,this.underlineColor)},e.prototype.isEmpty=function(){return 0===this.underlineStyle},e}();t.ExtendedAttrs=i},9092:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;var i=n(6349),o=n(8437),r=n(511),s=n(643),a=n(4634),c=n(4863),l=n(7116),u=n(3734);t.MAX_BUFFER_SIZE=4294967295;var d=function(){function e(e,t,n){this._hasScrollback=e,this._optionsService=t,this._bufferService=n,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=o.DEFAULT_ATTR_DATA.clone(),this.savedCharset=l.DEFAULT_CHARSET,this.markers=[],this._nullCell=r.CellData.fromCharData([0,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]),this._whitespaceCell=r.CellData.fromCharData([0,s.WHITESPACE_CELL_CHAR,s.WHITESPACE_CELL_WIDTH,s.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return e.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell},e.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell},e.prototype.getBlankLine=function(e,t){return new o.BufferLine(this._bufferService.cols,this.getNullCell(e),t)},Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:n},e.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=o.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new i.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var n=this.getNullCell(o.DEFAULT_ATTR_DATA),i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,this.ydisp>0&&this.ydisp--):this.lines.push(new o.BufferLine(e,n)));else for(a=this._rows;a>t;a--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i0&&(this.lines.trimStart(c),this.ybase=Math.max(this.ybase-c,0),this.ydisp=Math.max(this.ydisp-c,0),this.savedY=Math.max(this.savedY-c,0)),this.lines.maxLength=i}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),s&&(this.y+=s),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(r=0;rthis._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},e.prototype._reflowLarger=function(e,t){var n=(0,a.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(o.DEFAULT_ATTR_DATA));if(n.length>0){var i=(0,a.reflowLargerCreateNewLayout)(this.lines,n);(0,a.reflowLargerApplyNewLayout)(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,n){for(var i=this.getNullCell(o.DEFAULT_ATTR_DATA),r=n;r-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;s--){var c=this.lines.get(s);if(!(!c||!c.isWrapped&&c.getTrimmedLength()<=e)){for(var l=[c];c.isWrapped&&s>0;)c=this.lines.get(--s),l.unshift(c);var u=this.ybase+this.y;if(!(u>=s&&u0&&(i.push({start:s+l.length+r,newLines:m}),r+=m.length),l.push.apply(l,m);var b=p.length-1,y=p[b];0===y&&(y=p[--b]);for(var _=l.length-f-1,M=h;_>=0;){var w=Math.min(M,y);if(void 0===l[b])break;if(l[b].copyCellsFrom(l[_],M-w,y-w,w,!0),0==(y-=w)&&(y=p[--b]),0==(M-=w)){_--;var C=Math.max(_,0);M=(0,a.getWrappedLineTrimmedLength)(l,C,this._cols)}}for(g=0;g0;)0===this.ybase?this.y0){var A=[],E=[];for(g=0;g=0;g--)if(x&&x.start>L+R){for(var k=x.newLines.length-1;k>=0;k--)this.lines.set(g--,x.newLines[k]);g++,A.push({index:L+1,amount:x.newLines.length}),R+=x.newLines.length,x=i[++T]}else this.lines.set(g,E[L--]);var z=0;for(g=A.length-1;g>=0;g--)A[g].index+=z,this.lines.onInsertEmitter.fire(A[g]),z+=A[g].amount;var P=Math.max(0,O+r-this.lines.maxLength);P>0&&this.lines.onTrimEmitter.fire(P)}},e.prototype.stringIndexToBufferIndex=function(e,t,n){for(void 0===n&&(n=!1);t;){var i=this.lines.get(e);if(!i)return[-1,-1];for(var o=n?i.getTrimmedLength():i.length,r=0;r0&&this.lines.get(t).isWrapped;)t--;for(;n+10;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e},e.prototype.addMarker=function(e){var t=this,n=new c.Marker(e);return this.markers.push(n),n.register(this.lines.onTrim(function(e){n.line-=e,n.line<0&&n.dispose()})),n.register(this.lines.onInsert(function(e){n.line>=e.index&&(n.line+=e.amount)})),n.register(this.lines.onDelete(function(e){n.line>=e.index&&n.linee.index&&(n.line-=e.amount)})),n.register(n.onDispose(function(){return t._removeMarker(n)})),n},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,n,i,o){return new h(this,e,t,n,i,o)},e}();t.Buffer=d;var h=function(){function e(e,t,n,i,o,r){void 0===n&&(n=0),void 0===i&&(i=e.lines.length),void 0===o&&(o=0),void 0===r&&(r=0),this._buffer=e,this._trimRight=t,this._startIndex=n,this._endIndex=i,this._startOverscan=o,this._endOverscan=r,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",n=e.first;n<=e.last;++n)t+=this._buffer.translateBufferLineToString(n,this._trimRight);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=h},8437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;var i=n(482),o=n(643),r=n(511),s=n(3734);t.DEFAULT_ATTR_DATA=Object.freeze(new s.AttributeData);var a=function(){function e(e,t,n){void 0===n&&(n=!1),this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);for(var i=t||r.CellData.fromCharData([0,o.NULL_CELL_CHAR,o.NULL_CELL_WIDTH,o.NULL_CELL_CODE]),s=0;s>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):n]},e.prototype.set=function(e,t){this._data[3*e+1]=t[o.CHAR_DATA_ATTR_INDEX],t[o.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[o.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[o.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[o.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(e){return this._data[3*e+0]>>22},e.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},e.prototype.getFg=function(e){return this._data[3*e+1]},e.prototype.getBg=function(e){return this._data[3*e+2]},e.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},e.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},e.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},e.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,i.stringFromCodePoint)(2097151&t):""},e.prototype.loadCell=function(e,t){var n=3*e;return t.content=this._data[n+0],t.fg=this._data[n+1],t.bg=this._data[n+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t},e.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},e.prototype.setCellFromCodePoint=function(e,t,n,i,o,r){268435456&o&&(this._extendedAttrs[e]=r),this._data[3*e+0]=t|n<<22,this._data[3*e+1]=i,this._data[3*e+2]=o},e.prototype.addCodepointToCell=function(e,t){var n=this._data[3*e+0];2097152&n?this._combined[e]+=(0,i.stringFromCodePoint)(t):(2097151&n?(this._combined[e]=(0,i.stringFromCodePoint)(2097151&n)+(0,i.stringFromCodePoint)(t),n&=-2097152,n|=2097152):n=t|1<<22,this._data[3*e+0]=n)},e.prototype.insertCells=function(e,t,n,i){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==i?void 0:i.fg)||0,(null==i?void 0:i.bg)||0,(null==i?void 0:i.extended)||new s.ExtendedAttrs),t=0;--a)this.setCell(e+t+a,this.loadCell(e+a,o));for(a=0;athis.length){var n=new Uint32Array(3*e);this.length&&(3*e=e&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},e.prototype.fill=function(e){this._combined={},this._extendedAttrs={};for(var t=0;t=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},e.prototype.copyCellsFrom=function(e,t,n,i,o){var r=e._data;if(o)for(var s=i-1;s>=0;s--)for(var a=0;a<3;a++)this._data[3*(n+s)+a]=r[3*(t+s)+a];else for(s=0;s=t&&(this._combined[l-t+n]=e._combined[l])}},e.prototype.translateToString=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===n&&(n=this.length),e&&(n=Math.min(n,this.getTrimmedLength()));for(var r="";t>22||1}return r},e}();t.BufferLine=a},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error("Buffer range end ("+e.end.x+", "+e.end.y+") cannot be before start ("+e.start.x+", "+e.start.y+")");return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function n(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();var i=!e[t].hasContent(n-1)&&1===e[t].getWidth(n-1),o=2===e[t+1].getWidth(0);return i&&o?n-1:n}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,i,o,r){for(var s=[],a=0;a=a&&o0&&(_>d||0===u[_].getTrimmedLength());_--)y++;y>0&&(s.push(a+u.length-y),s.push(y)),a+=u.length-1}}}return s},t.reflowLargerCreateNewLayout=function(e,t){for(var n=[],i=0,o=t[i],r=0,s=0;sl&&(s-=l,a++);var u=2===e[a].getWidth(s-1);u&&s--;var d=u?i-1:i;o.push(d),c+=d}return o},t.getWrappedLineTrimmedLength=n},5295:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var r=n(9092),s=n(8460),a=function(e){function t(t,n){var i=e.call(this)||this;return i._optionsService=t,i._bufferService=n,i._onBufferActivate=i.register(new s.EventEmitter),i.reset(),i}return o(t,e),Object.defineProperty(t.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this._normal=new r.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new r.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},t.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(n(844).Disposable);t.BufferSet=a},511:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;var r=n(482),s=n(643),a=n(3734),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.content=0,t.fg=0,t.bg=0,t.extended=new a.ExtendedAttrs,t.combinedData="",t}return o(t,e),t.fromCharData=function(e){var n=new t;return n.setFromCharData(e),n},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,r.stringFromCodePoint)(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(e){this.fg=e[s.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[s.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[s.CHAR_DATA_CHAR_INDEX].length){var n=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){var i=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=i&&i<=57343?this.content=1024*(n-55296)+i-56320+65536|e[s.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[s.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[s.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[s.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(a.AttributeData);t.CellData=c},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var r=n(8460),s=function(e){function t(n){var i=e.call(this)||this;return i.line=n,i._id=t._nextId++,i.isDisposed=!1,i._onDispose=new r.EventEmitter,i}return o(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),e.prototype.dispose.call(this))},t._nextId=1,t}(n(844).Disposable);t.Marker=s},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.C1=t.C0=void 0,(i=t.C0||(t.C0={})).NUL="\0",i.SOH="",i.STX="",i.ETX="",i.EOT="",i.ENQ="",i.ACK="",i.BEL="",i.BS="\b",i.HT="\t",i.LF="\n",i.VT="\v",i.FF="\f",i.CR="\r",i.SO="",i.SI="",i.DLE="",i.DC1="",i.DC2="",i.DC3="",i.DC4="",i.NAK="",i.SYN="",i.ETB="",i.CAN="",i.EM="",i.SUB="",i.ESC="",i.FS="",i.GS="",i.RS="",i.US="",i.SP=" ",i.DEL="",(n=t.C1||(t.C1={})).PAD="€",n.HOP="",n.BPH="‚",n.NBH="ƒ",n.IND="„",n.NEL="…",n.SSA="†",n.ESA="‡",n.HTS="ˆ",n.HTJ="‰",n.VTS="Š",n.PLD="‹",n.PLU="Œ",n.RI="",n.SS2="Ž",n.SS3="",n.DCS="",n.PU1="‘",n.PU2="’",n.STS="“",n.CCH="”",n.MW="•",n.SPA="–",n.EPA="—",n.SOS="˜",n.SGCI="™",n.SCI="š",n.CSI="›",n.ST="œ",n.OSC="",n.PM="ž",n.APC="Ÿ"},7399:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;var i=n(2584),o={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,n,r){var s={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?s.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?s.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?s.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(s.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B");break;case 8:if(e.shiftKey){s.key=i.C0.BS;break}if(e.altKey){s.key=i.C0.ESC+i.C0.DEL;break}s.key=i.C0.DEL;break;case 9:if(e.shiftKey){s.key=i.C0.ESC+"[Z";break}s.key=i.C0.HT,s.cancel=!0;break;case 13:s.key=e.altKey?i.C0.ESC+i.C0.CR:i.C0.CR,s.cancel=!0;break;case 27:s.key=i.C0.ESC,e.altKey&&(s.key=i.C0.ESC+i.C0.ESC),s.cancel=!0;break;case 37:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"D",s.key===i.C0.ESC+"[1;3D"&&(s.key=i.C0.ESC+(n?"b":"[1;5D"))):s.key=t?i.C0.ESC+"OD":i.C0.ESC+"[D";break;case 39:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"C",s.key===i.C0.ESC+"[1;3C"&&(s.key=i.C0.ESC+(n?"f":"[1;5C"))):s.key=t?i.C0.ESC+"OC":i.C0.ESC+"[C";break;case 38:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"A",n||s.key!==i.C0.ESC+"[1;3A"||(s.key=i.C0.ESC+"[1;5A")):s.key=t?i.C0.ESC+"OA":i.C0.ESC+"[A";break;case 40:if(e.metaKey)break;a?(s.key=i.C0.ESC+"[1;"+(a+1)+"B",n||s.key!==i.C0.ESC+"[1;3B"||(s.key=i.C0.ESC+"[1;5B")):s.key=t?i.C0.ESC+"OB":i.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(s.key=i.C0.ESC+"[2~");break;case 46:s.key=a?i.C0.ESC+"[3;"+(a+1)+"~":i.C0.ESC+"[3~";break;case 36:s.key=a?i.C0.ESC+"[1;"+(a+1)+"H":t?i.C0.ESC+"OH":i.C0.ESC+"[H";break;case 35:s.key=a?i.C0.ESC+"[1;"+(a+1)+"F":t?i.C0.ESC+"OF":i.C0.ESC+"[F";break;case 33:e.shiftKey?s.type=2:s.key=i.C0.ESC+"[5~";break;case 34:e.shiftKey?s.type=3:s.key=i.C0.ESC+"[6~";break;case 112:s.key=a?i.C0.ESC+"[1;"+(a+1)+"P":i.C0.ESC+"OP";break;case 113:s.key=a?i.C0.ESC+"[1;"+(a+1)+"Q":i.C0.ESC+"OQ";break;case 114:s.key=a?i.C0.ESC+"[1;"+(a+1)+"R":i.C0.ESC+"OR";break;case 115:s.key=a?i.C0.ESC+"[1;"+(a+1)+"S":i.C0.ESC+"OS";break;case 116:s.key=a?i.C0.ESC+"[15;"+(a+1)+"~":i.C0.ESC+"[15~";break;case 117:s.key=a?i.C0.ESC+"[17;"+(a+1)+"~":i.C0.ESC+"[17~";break;case 118:s.key=a?i.C0.ESC+"[18;"+(a+1)+"~":i.C0.ESC+"[18~";break;case 119:s.key=a?i.C0.ESC+"[19;"+(a+1)+"~":i.C0.ESC+"[19~";break;case 120:s.key=a?i.C0.ESC+"[20;"+(a+1)+"~":i.C0.ESC+"[20~";break;case 121:s.key=a?i.C0.ESC+"[21;"+(a+1)+"~":i.C0.ESC+"[21~";break;case 122:s.key=a?i.C0.ESC+"[23;"+(a+1)+"~":i.C0.ESC+"[23~";break;case 123:s.key=a?i.C0.ESC+"[24;"+(a+1)+"~":i.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(n&&!r||!e.altKey||e.metaKey)!n||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?s.key=e.key:e.key&&e.ctrlKey&&"_"===e.key&&(s.key=i.C0.US):65===e.keyCode&&(s.type=1);else{var c=o[e.keyCode],l=null==c?void 0:c[e.shiftKey?1:0];if(l)s.key=i.C0.ESC+l;else if(e.keyCode>=65&&e.keyCode<=90){var u=e.ctrlKey?e.keyCode-64:e.keyCode+32;s.key=i.C0.ESC+String.fromCharCode(u)}}else e.keyCode>=65&&e.keyCode<=90?s.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?s.key=i.C0.NUL:e.keyCode>=51&&e.keyCode<=55?s.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?s.key=i.C0.DEL:219===e.keyCode?s.key=i.C0.ESC:220===e.keyCode?s.key=i.C0.FS:221===e.keyCode&&(s.key=i.C0.GS)}return s}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i="",o=t;o65535?(r-=65536,i+=String.fromCharCode(55296+(r>>10))+String.fromCharCode(r%1024+56320)):i+=String.fromCharCode(r)}return i};var n=function(){function e(){this._interim=0}return e.prototype.clear=function(){this._interim=0},e.prototype.decode=function(e,t){var n=e.length;if(!n)return 0;var i=0,o=0;this._interim&&(56320<=(a=e.charCodeAt(o++))&&a<=57343?t[i++]=1024*(this._interim-55296)+a-56320+65536:(t[i++]=this._interim,t[i++]=a),this._interim=0);for(var r=o;r=n)return this._interim=s,i;var a;56320<=(a=e.charCodeAt(r))&&a<=57343?t[i++]=1024*(s-55296)+a-56320+65536:(t[i++]=s,t[i++]=a)}else 65279!==s&&(t[i++]=s)}return i},e}();t.StringToUtf32=n;var i=function(){function e(){this.interim=new Uint8Array(3)}return e.prototype.clear=function(){this.interim.fill(0)},e.prototype.decode=function(e,t){var n=e.length;if(!n)return 0;var i,o,r,s,a=0,c=0,l=0;if(this.interim[0]){var u=!1,d=this.interim[0];d&=192==(224&d)?31:224==(240&d)?15:7;for(var h=0,p=void 0;(p=63&this.interim[++h])&&h<4;)d<<=6,d|=p;for(var f=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,m=f-h;l=n)return 0;if(128!=(192&(p=e[l++]))){l--,u=!0;break}this.interim[h++]=p,d<<=6,d|=63&p}u||(2===f?d<128?l--:t[a++]=d:3===f?d<2048||d>=55296&&d<=57343||65279===d||(t[a++]=d):d<65536||d>1114111||(t[a++]=d)),this.interim.fill(0)}for(var g=n-4,v=l;v=n)return this.interim[0]=i,a;if(128!=(192&(o=e[v++]))){v--;continue}if((c=(31&i)<<6|63&o)<128){v--;continue}t[a++]=c}else if(224==(240&i)){if(v>=n)return this.interim[0]=i,a;if(128!=(192&(o=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=o,a;if(128!=(192&(r=e[v++]))){v--;continue}if((c=(15&i)<<12|(63&o)<<6|63&r)<2048||c>=55296&&c<=57343||65279===c)continue;t[a++]=c}else if(240==(248&i)){if(v>=n)return this.interim[0]=i,a;if(128!=(192&(o=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=o,a;if(128!=(192&(r=e[v++]))){v--;continue}if(v>=n)return this.interim[0]=i,this.interim[1]=o,this.interim[2]=r,a;if(128!=(192&(s=e[v++]))){v--;continue}if((c=(7&i)<<18|(63&o)<<12|(63&r)<<6|63&s)<65536||c>1114111)continue;t[a++]=c}}return a},e}();t.Utf8ToUtf32=i},225:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var i,o=n(8273),r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],s=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],a=function(){function e(){if(this.version="6",!i){i=new Uint8Array(65536),(0,o.fill)(i,1),i[0]=0,(0,o.fill)(i,0,1,32),(0,o.fill)(i,0,127,160),(0,o.fill)(i,2,4352,4448),i[9001]=2,i[9002]=2,(0,o.fill)(i,2,11904,42192),i[12351]=1,(0,o.fill)(i,2,44032,55204),(0,o.fill)(i,2,63744,64256),(0,o.fill)(i,2,65040,65050),(0,o.fill)(i,2,65072,65136),(0,o.fill)(i,2,65280,65377),(0,o.fill)(i,2,65504,65511);for(var e=0;et[o][1])return!1;for(;o>=i;)if(e>t[n=i+o>>1][1])i=n+1;else{if(!(e=131072&&e<=196605||e>=196608&&e<=262141?2:1},e}();t.UnicodeV6=a},5981:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var n="undefined"==typeof queueMicrotask?function(e){Promise.resolve().then(e)}:queueMicrotask,i=function(){function e(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return e.prototype.writeSync=function(e,t){if(void 0!==t&&this._syncCalls>t)this._syncCalls=0;else if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var n;for(this._isSyncWriting=!0;n=this._writeBuffer.shift();){this._action(n);var i=this._callbacks.shift();i&&i()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},e.prototype.write=function(e,t){var n=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return n._innerWrite()})),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},e.prototype._innerWrite=function(e,t){var i=this;void 0===e&&(e=0),void 0===t&&(t=!0);for(var o=e||Date.now();this._writeBuffer.length>this._bufferOffset;){var r=this._writeBuffer[this._bufferOffset],s=this._action(r,t);if(s)return void s.catch(function(e){return n(function(){throw e}),Promise.resolve(!1)}).then(function(e){return Date.now()-o>=12?setTimeout(function(){return i._innerWrite(0,e)}):i._innerWrite(o,e)});var a=this._callbacks[this._bufferOffset];if(a&&a(),this._bufferOffset++,this._pendingData-=r.length,Date.now()-o>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return i._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},e}();t.WriteBuffer=i},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;var n=/^([\da-f]{1})\/([\da-f]{1})\/([\da-f]{1})$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,i=/^[\da-f]+$/;function o(e,t){var n=e.toString(16),i=n.length<2?"0"+n:n;switch(t){case 4:return n[0];case 8:return i;case 12:return(i+i).slice(0,3);default:return i+i}}t.parseColor=function(e){if(e){var t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);var o=n.exec(t);if(o){var r=o[1]?15:o[4]?255:o[7]?4095:65535;return[Math.round(parseInt(o[1]||o[4]||o[7]||o[10],16)/r*255),Math.round(parseInt(o[2]||o[5]||o[8]||o[11],16)/r*255),Math.round(parseInt(o[3]||o[6]||o[9]||o[12],16)/r*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),i.exec(t)&&[3,6,9,12].includes(t.length))){for(var s=t.length/3,a=[0,0,0],c=0;c<3;++c){var l=parseInt(t.slice(s*c,s*c+s),16);a[c]=1===s?l<<4:2===s?l:3===s?l>>4:l>>8}return a}}},t.toRgbString=function(e,t){void 0===t&&(t=16);var n=e[0],i=e[1],r=e[2];return"rgb:"+o(n,t)+"/"+o(i,t)+"/"+o(r,t)}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var i=n(482),o=n(8742),r=n(5770),s=[],a=function(){function e(){this._handlers=Object.create(null),this._active=s,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=s},e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.reset=function(){if(this._active.length)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=s,this._ident=0},e.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||s,this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].hook(t);else this._handlerFb(this._ident,"HOOK",t)},e.prototype.put=function(e,t,n){if(this._active.length)for(var o=this._active.length-1;o>=0;o--)this._active[o].put(e,t,n);else this._handlerFb(this._ident,"PUT",(0,i.utf32ToString)(e,t,n))},e.prototype.unhook=function(e,t){if(void 0===t&&(t=!0),this._active.length){var n=!1,i=this._active.length-1,o=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,n=t,o=this._stack.fallThrough,this._stack.paused=!1),!o&&!1===n){for(;i>=0&&!0!==(n=this._active[i].unhook(e));i--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,n;i--}for(;i>=0;i--)if((n=this._active[i].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,n}else this._handlerFb(this._ident,"UNHOOK",e);this._active=s,this._ident=0},e}();t.DcsParser=a;var c=new o.Params;c.addParam(0);var l=function(){function e(e){this._handler=e,this._data="",this._params=c,this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.length>1||e.params[0]?e.clone():c,this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,n){this._hitLimit||(this._data+=(0,i.utf32ToString)(e,t,n),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t=this,n=!1;if(this._hitLimit)n=!1;else if(e&&(n=this._handler(this._data,this._params))instanceof Promise)return n.then(function(e){return t._params=c,t._data="",t._hitLimit=!1,e});return this._params=c,this._data="",this._hitLimit=!1,n},e}();t.DcsHandler=l},2015:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var r=n(844),s=n(8273),a=n(8742),c=n(6242),l=n(6351),u=function(){function e(e){this.table=new Uint8Array(e)}return e.prototype.setDefault=function(e,t){(0,s.fill)(this.table,e<<4|t)},e.prototype.add=function(e,t,n,i){this.table[t<<8|e]=n<<4|i},e.prototype.addMany=function(e,t,n,i){for(var o=0;o1)throw new Error("only one byte as prefix supported");if((n=e.prefix.charCodeAt(0))&&60>n||n>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var i=0;io||o>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");n<<=8,n|=o}}if(1!==e.final.length)throw new Error("final must be a single byte");var r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return(n<<=8)|r},n.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},n.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},n.prototype.setPrintHandler=function(e){this._printHandler=e},n.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},n.prototype.registerEscHandler=function(e,t){var n=this._identifier(e,[48,126]);void 0===this._escHandlers[n]&&(this._escHandlers[n]=[]);var i=this._escHandlers[n];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},n.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},n.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},n.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},n.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},n.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},n.prototype.registerCsiHandler=function(e,t){var n=this._identifier(e);void 0===this._csiHandlers[n]&&(this._csiHandlers[n]=[]);var i=this._csiHandlers[n];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},n.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},n.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},n.prototype.registerDcsHandler=function(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)},n.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},n.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},n.prototype.registerOscHandler=function(e,t){return this._oscParser.registerHandler(e,t)},n.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},n.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},n.prototype.setErrorHandler=function(e){this._errorHandler=e},n.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},n.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},n.prototype._preserveStack=function(e,t,n,i,o){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=n,this._parseStack.transition=i,this._parseStack.chunkPos=o},n.prototype.parse=function(e,t,n){var i,o=0,r=0,s=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,s=this._parseStack.chunkPos+1;else{if(void 0===n||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var a=this._parseStack.handlers,c=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===n&&c>-1)for(;c>=0&&!0!==(i=a[c](this._params));c--)if(i instanceof Promise)return this._parseStack.handlerPos=c,i;this._parseStack.handlers=[];break;case 4:if(!1===n&&c>-1)for(;c>=0&&!0!==(i=a[c]());c--)if(i instanceof Promise)return this._parseStack.handlerPos=c,i;this._parseStack.handlers=[];break;case 6:if(o=e[this._parseStack.chunkPos],i=this._dcsParser.unhook(24!==o&&26!==o,n))return i;27===o&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(o=e[this._parseStack.chunkPos],i=this._oscParser.end(24!==o&&26!==o,n))return i;27===o&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,s=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var l=s;l>4){case 2:for(var u=l+1;;++u){if(u>=t||(o=e[u])<32||o>126&&o=t||(o=e[u])<32||o>126&&o=t||(o=e[u])<32||o>126&&o=t||(o=e[u])<32||o>126&&o=0&&!0!==(i=a[h](this._params));h--)if(i instanceof Promise)return this._preserveStack(3,a,h,r,l),i;h<0&&this._csiHandlerFb(this._collect<<8|o,this._params),this.precedingCodepoint=0;break;case 8:do{switch(o){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(o-48)}}while(++l47&&o<60);l--;break;case 9:this._collect<<=8,this._collect|=o;break;case 10:for(var p=this._escHandlers[this._collect<<8|o],f=p?p.length-1:-1;f>=0&&!0!==(i=p[f]());f--)if(i instanceof Promise)return this._preserveStack(4,p,f,r,l),i;f<0&&this._escHandlerFb(this._collect<<8|o),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|o,this._params);break;case 13:for(var m=l+1;;++m)if(m>=t||24===(o=e[m])||26===o||27===o||o>127&&o=t||(o=e[g])<32||o>127&&o{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var i=n(5770),o=n(482),r=[],s=function(){function e(){this._state=0,this._active=r,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return e.prototype.registerHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=r},e.prototype.reset=function(){if(2===this._state)for(var e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=r,this._id=-1,this._state=0},e.prototype._start=function(){if(this._active=this._handlers[this._id]||r,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")},e.prototype._put=function(e,t,n){if(this._active.length)for(var i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,n);else this._handlerFb(this._id,"PUT",(0,o.utf32ToString)(e,t,n))},e.prototype.start=function(){this.reset(),this._state=1},e.prototype.put=function(e,t,n){if(3!==this._state){if(1===this._state)for(;t0&&this._put(e,t,n)}},e.prototype.end=function(e,t){if(void 0===t&&(t=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var n=!1,i=this._active.length-1,o=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,n=t,o=this._stack.fallThrough,this._stack.paused=!1),!o&&!1===n){for(;i>=0&&!0!==(n=this._active[i].end(e));i--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,n;i--}for(;i>=0;i--)if((n=this._active[i].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,n}else this._handlerFb(this._id,"END",e);this._active=r,this._id=-1,this._state=0}},e}();t.OscParser=s;var a=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.start=function(){this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,n){this._hitLimit||(this._data+=(0,o.utf32ToString)(e,t,n),this._data.length>i.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t=this,n=!1;if(this._hitLimit)n=!1;else if(e&&(n=this._handler(this._data))instanceof Promise)return n.then(function(e){return t._data="",t._hitLimit=!1,e});return this._data="",this._hitLimit=!1,n},e}();t.OscHandler=a},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;var n=2147483647,i=function(){function e(e,t){if(void 0===e&&(e=32),void 0===t&&(t=32),this.maxLength=e,this.maxSubParamsLength=t,t>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return e.fromArray=function(t){var n=new e;if(!t.length)return n;for(var i=Array.isArray(t[0])?1:0;i>8,i=255&this._subParamsIdx[t];i-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,i))}return e},e.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},e.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>n?n:e}},e.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>n?n:e,this._subParamsIdx[this.length-1]++}},e.prototype.hasSubParams=function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0},e.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,n=255&this._subParamsIdx[e];return n-t>0?this._subParams.subarray(t,n):null},e.prototype.getSubParamsAll=function(){for(var e={},t=0;t>8,i=255&this._subParamsIdx[t];i-n>0&&(e[t]=this._subParams.slice(n,i))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var i=this._digitIsSub?this._subParams:this.params,o=i[t-1];i[t-1]=~o?Math.min(10*o+e,n):e}},e}();t.Params=i},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0;var n=function(){function e(){this._addons=[]}return e.prototype.dispose=function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()},e.prototype.loadAddon=function(e,t){var n=this,i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=function(){return n._wrappedAddonDispose(i)},t.activate(e)},e.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;var i=n(3785),o=n(511),r=function(){function e(e,t){this._buffer=e,this.type=t}return e.prototype.init=function(e){return this._buffer=e,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(e){var t=this._buffer.lines.get(e);if(t)return new i.BufferLineApiView(t)},e.prototype.getNullCell=function(){return new o.CellData},e}();t.BufferApiView=r},3785:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;var i=n(511),o=function(){function e(e){this._line=e}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new i.CellData)},e.prototype.translateToString=function(e,t,n){return this._line.translateToString(e,t,n)},e}();t.BufferLineApiView=o},8285:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;var i=n(8771),o=n(8460),r=function(){function e(e){var t=this;this._core=e,this._onBufferChange=new o.EventEmitter,this._normal=new i.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new i.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return t._onBufferChange.fire(t.active)})}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),e}();t.BufferNamespaceApi=r},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0;var n=function(){function e(e){this._core=e}return e.prototype.registerCsiHandler=function(e,t){return this._core.registerCsiHandler(e,function(e){return t(e.toArray())})},e.prototype.addCsiHandler=function(e,t){return this.registerCsiHandler(e,t)},e.prototype.registerDcsHandler=function(e,t){return this._core.registerDcsHandler(e,function(e,n){return t(e,n.toArray())})},e.prototype.addDcsHandler=function(e,t){return this.registerDcsHandler(e,t)},e.prototype.registerEscHandler=function(e,t){return this._core.registerEscHandler(e,t)},e.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},e.prototype.registerOscHandler=function(e,t){return this._core.registerOscHandler(e,t)},e.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},e}();t.ParserApi=n},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0;var n=function(){function e(e){this._core=e}return e.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!1,configurable:!0}),e}();t.UnicodeApi=n},744:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var a=n(2585),c=n(5295),l=n(8460),u=n(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var d=function(e){function n(n){var i=e.call(this)||this;return i._optionsService=n,i.isUserScrolling=!1,i._onResize=new l.EventEmitter,i._onScroll=new l.EventEmitter,i.cols=Math.max(n.rawOptions.cols||0,t.MINIMUM_COLS),i.rows=Math.max(n.rawOptions.rows||0,t.MINIMUM_ROWS),i.buffers=new c.BufferSet(n,i),i}return o(n,e),Object.defineProperty(n.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},n.prototype.resize=function(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:t})},n.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},n.prototype.scroll=function(e,t){void 0===t&&(t=!1);var n,i=this.buffer;(n=this._cachedBlankLine)&&n.length===this.cols&&n.getFg(0)===e.fg&&n.getBg(0)===e.bg||(n=i.getBlankLine(e,t),this._cachedBlankLine=n),n.isWrapped=t;var o=i.ybase+i.scrollTop,r=i.ybase+i.scrollBottom;if(0===i.scrollTop){var s=i.lines.isFull;r===i.lines.length-1?s?i.lines.recycle().copyFrom(n):i.lines.push(n.clone()):i.lines.splice(r+1,0,n.clone()),s?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{var a=r-o+1;i.lines.shiftElements(o+1,a-1,-1),i.lines.set(r,n.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)},n.prototype.scrollLines=function(e,t,n){var i=this.buffer;if(e<0){if(0===i.ydisp)return;this.isUserScrolling=!0}else e+i.ydisp>=i.ybase&&(this.isUserScrolling=!1);var o=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),o!==i.ydisp&&(t||this._onScroll.fire(i.ydisp))},n.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},n.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},n.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},n.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},r([s(0,a.IOptionsService)],n)}(u.Disposable);t.BufferService=d},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0;var n=function(){function e(){this.glevel=0,this._charsets=[]}return e.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},e.prototype.setgLevel=function(e){this.glevel=e,this.charset=this._charsets[e]},e.prototype.setgCharset=function(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)},e}();t.CharsetService=n},1753:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var r=n(2585),s=n(8460),a={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function c(e,t){var n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(n|=64,n|=e.action):(n|=3&e.button,4&e.button&&(n|=64),8&e.button&&(n|=128),32===e.action?n|=32:0!==e.action||t||(n|=3)),n}var l=String.fromCharCode,u={DEFAULT:function(e){var t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":""+l(t[0])+l(t[1])+l(t[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"[<"+c(e,!0)+";"+e.col+";"+e.row+t}},d=function(){function e(e,t){this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new s.EventEmitter,this._lastEvent=null;for(var n=0,i=Object.keys(a);n=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},e.prototype.explainEvents=function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}},e.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},i([o(0,r.IBufferService),o(1,r.ICoreService)],e)}();t.CoreMouseService=d},6975:function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var a=n(2585),c=n(8460),l=n(1439),u=n(844),d=Object.freeze({insertMode:!1}),h=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),p=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._bufferService=n,r._logService=i,r._optionsService=o,r.isCursorInitialized=!1,r.isCursorHidden=!1,r._onData=r.register(new c.EventEmitter),r._onUserInput=r.register(new c.EventEmitter),r._onBinary=r.register(new c.EventEmitter),r._scrollToBottom=t,r.register({dispose:function(){return r._scrollToBottom=void 0}}),r.modes=(0,l.clone)(d),r.decPrivateModes=(0,l.clone)(h),r}return o(t,e),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.modes=(0,l.clone)(d),this.decPrivateModes=(0,l.clone)(h)},t.prototype.triggerDataEvent=function(e,t){if(void 0===t&&(t=!1),!this._optionsService.rawOptions.disableStdin){var n=this._bufferService.buffer;n.ybase!==n.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onData.fire(e)}},t.prototype.triggerBinaryEvent=function(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onBinary.fire(e))},r([s(1,a.IBufferService),s(2,a.ILogService),s(3,a.IOptionsService)],t)}(u.Disposable);t.CoreService=p},3730:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var r=n(2585),s=function(){function e(e){this._bufferService=e,this.clearRange()}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),e.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},e.prototype.markDirty=function(e){ethis._end&&(this._end=e)},e.prototype.markRangeDirty=function(e,t){if(e>t){var n=e;e=t,t=n}ethis._end&&(this._end=t)},e.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},i([o(0,r.IBufferService)],e)}();t.DirtyRowService=s},4348:function(e,t,n){var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o0?o[0].index:t.length;if(t.length!==d)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(d+1)+" conflicts with "+t.length+" static arguments");return new(e.bind.apply(e,i([void 0],i(i([],t,!0),s,!0),!1)))},e}();t.InstantiationService=a},7866:function(e,t,n){var i=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o{function n(e,t,n){t.di$target===t?t.di$dependencies.push({id:e,index:n}):(t.di$dependencies=[{id:e,index:n}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var i=function(e,t,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(i,e,o)};return i.toString=function(){return e},t.serviceRegistry.set(e,i),i}},2585:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IUnicodeService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.IDirtyRowService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;var i,o=n(8343);t.IBufferService=(0,o.createDecorator)("BufferService"),t.ICoreMouseService=(0,o.createDecorator)("CoreMouseService"),t.ICoreService=(0,o.createDecorator)("CoreService"),t.ICharsetService=(0,o.createDecorator)("CharsetService"),t.IDirtyRowService=(0,o.createDecorator)("DirtyRowService"),t.IInstantiationService=(0,o.createDecorator)("InstantiationService"),(i=t.LogLevelEnum||(t.LogLevelEnum={}))[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.OFF=4]="OFF",t.ILogService=(0,o.createDecorator)("LogService"),t.IOptionsService=(0,o.createDecorator)("OptionsService"),t.IUnicodeService=(0,o.createDecorator)("UnicodeService")},1480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var i=n(8460),o=n(225),r=function(){function e(){this._providers=Object.create(null),this._active="",this._onChange=new i.EventEmitter;var e=new o.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!1,configurable:!0}),e.prototype.register=function(e){this._providers[e.version]=e},e.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},e.prototype.getStringCellWidth=function(e){for(var t=0,n=e.length,i=0;i=n)return t+this.wcwidth(o);var r=e.charCodeAt(i);56320<=r&&r<=57343?o=1024*(o-55296)+r-56320+65536:t+=this.wcwidth(r)}t+=this.wcwidth(o)}return t},e}();t.UnicodeService=r}},t={};return function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}(4389)})()})},fcf8:function(e,t,n){},fd0f:function(e,t,n){},fe37:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("fba3"),r=n("3b4c"),s=n("3623"),a=n("c444"),c=n("5eb6");function l(e){return"zoom"in e}function u(e){var t=1,n=s.findParentByFeature(e,c.isViewport);return n&&(t=n.zoom),t}t.isZoomable=l,t.getZoom=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.wheel=function(e,t){var n=s.findParentByFeature(e,c.isViewport);if(n){var i=this.getZoomFactor(t),o=this.getViewportOffset(e.root,t),r=1/(i*n.zoom)-1/n.zoom,l={scroll:{x:n.scroll.x-r*o.x,y:n.scroll.y-r*o.y},zoom:n.zoom*i};return[new a.SetViewportAction(n.id,l,!1)]}return[]},t.prototype.getViewportOffset=function(e,t){var n=e.canvasBounds,i=o.getWindowScroll();return{x:t.clientX+i.x-n.x,y:t.clientY+i.y-n.y}},t.prototype.getZoomFactor=function(e){return e.deltaMode===e.DOM_DELTA_PAGE?Math.exp(.5*-e.deltaY):e.deltaMode===e.DOM_DELTA_LINE?Math.exp(.05*-e.deltaY):Math.exp(.005*-e.deltaY)},t}(r.MouseListener);t.ZoomMouseListener=d},ff70:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="http://www.w3.org/1999/xlink",o="http://www.w3.org/XML/1998/namespace",r=58,s=120;function a(e,t){var n,a=t.elm,c=e.data.attrs,l=t.data.attrs;if((c||l)&&c!==l){for(n in c=c||{},l=l||{},l){var u=l[n],d=c[n];d!==u&&(!0===u?a.setAttribute(n,""):!1===u?a.removeAttribute(n):n.charCodeAt(0)!==s?a.setAttribute(n,u):n.charCodeAt(3)===r?a.setAttributeNS(o,n,u):n.charCodeAt(5)===r?a.setAttributeNS(i,n,u):a.setAttribute(n,u))}for(n in c)n in l||a.removeAttribute(n)}}t.attributesModule={create:a,update:a},t.default=t.attributesModule}}]); \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/app.07aac4ee.js b/klab.engine/src/main/resources/static/ui/js/app.07aac4ee.js new file mode 100644 index 0000000000..8c8753c872 --- /dev/null +++ b/klab.engine/src/main/resources/static/ui/js/app.07aac4ee.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("2f39")},"034f":function(e,t,n){"use strict";var o=n("fb1c"),a=n.n(o);a.a},1:function(e,t){},1442:function(e,t,n){"use strict";n.d(t,"d",function(){return A}),n.d(t,"f",function(){return I}),n.d(t,"e",function(){return v}),n.d(t,"c",function(){return N}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return R});n("ac6a"),n("7514"),n("48c0"),n("6c7b");var o=n("7cca"),a=n("480c"),i=n("5043"),r=n("d0e9"),s=n("2ef1"),c=n("6c77"),l=n("83a6"),u=n("8682"),d=n("8295"),E=n("6cbf"),f=n("bcf0"),T=n("4cdf"),p=n("ddaa"),S=n("8f3a"),m=n("256f"),O="pk.eyJ1Ijoiay1sYWIiLCJhIjoiY2prd2d2dWNxMHlvcDNxcDVsY3FncDBydiJ9.zMQE3gu-0qPpkLapVfVhnA",b='© Mapbox © OpenStreetMap Improve this map',A={BING_KEY:"",COORD_BC3:[-2.968226,43.332125],PROJ_EPSG_4326:Object(m["g"])("EPSG:4326"),PROJ_EPSG_3857:Object(m["g"])("EPSG:3857"),ZINDEX_TOP:1e4,ZINDEX_BASE:1e3,ZINDEX_MULTIPLIER_RASTER:0,ZINDEX_MULTIPLIER_POLYGONS:1,ZINDEX_MULTIPLIER_LINES:2,ZINDEX_MULTIPLIER_POINTS:3,DEFAULT_BASELAYER:"osm_layer"},_={MARKER_SVG:function(e){var t=e.fill,n=void 0===t?"yellow":t,o=e.stroke,a=void 0===o?"black":o,i=e.strokeWidth,r=void 0===i?"5":i;return'\n ')}},I={POINT_OBSERVATION_ICON:new E["a"]({anchor:[.5,1],src:"statics/maps/marker.png",opacity:.8,scale:.6}),POINT_OBSERVATION_SVG_ICON:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;return new E["a"]({opacity:1,src:"data:image/svg+xml;utf8,".concat(_.MARKER_SVG(e)),scale:t})},POINT_OBSERVATION_TEXT:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.offsetY,n=void 0===t?25:t,o=e.bold,a=void 0!==o&&o,i=e.size,r=void 0===i?"10px":i;return new d["a"]({textAlign:"center",textBaseline:"bottom",offsetY:n,font:"".concat(a?"bold":"normal"," ").concat(r," Roboto, sans-serif")})}},v={POLYGON_CONTEXT_STYLE:new c["c"]({fill:new l["a"]({color:"rgba(38, 166, 154, 0.2)"})}),POLYGON_PROPOSED_CONTEXT:new c["c"]({fill:new l["a"]({color:"rgba(255,255,255,0.5)"}),stroke:new f["a"]({width:8,pattern:"hatch",color:"#3187ca",offset:0,scale:.75,fill:new l["a"]({color:"#FFFFFF"}),size:2,spacing:5,angle:45})}),POLYGON_OBSERVATION_STYLE:new c["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2}),fill:new l["a"]({color:"rgba(255, 102, 0, 0.2)"})}),LNE_OBSERVATION_STYLE:new c["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2})}),POINT_OBSERVATION_SVG_PARAM:{fill:o["e"].MAIN_COLOR,stroke:"rgb(51,51,51)",strokeWidth:"4",scale:.3},POINT_CONTEXT_SVG_PARAM:{fill:"rgb(17, 170, 187)",stroke:"rgb(51,51,51)",strokeWidth:"5",scale:.5,offsetY:35,bold:!0,size:"14px"}},N={OSM_LAYER:new a["a"]({name:"osm_layer",title:"OpenStreetMap",type:"base",source:new r["a"]({attributions:'Map credits ©\n OSM\n contributors.'}),visible:!1}),CLEARMAP_TOPO_LAYER:new a["a"]({name:"clearmap_topo_layer",title:"UN Clear Map",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebTopo/MapServer/export"}),visible:!1}),CLEARMAP_PLAIN_LAYER:new a["a"]({name:"clearmap_plain_layer",title:"UN Clear Map Plain",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebPlain/MapServer/export"}),visible:!1}),CLEARMAP_DARK_LAYER:new a["a"]({name:"clearmap_dark_layer",title:"UN Clear Map Dark",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebDark/MapServer/export"}),visible:!1}),CLEARMAP_GRAY_LAYER:new a["a"]({name:"clearmap_gray_layer",title:"UN Clear Map Gray",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebGray/MapServer/export"}),visible:!1}),GOOGLE_HYBRID:new a["a"]({name:"google_hybrid",title:"Google Hybrid",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_STREET:new a["a"]({name:"google_street",title:"Google Street",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_TERRAIN:new a["a"]({name:"google_terrain",title:"Google Terrain",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"https://mt{0-3}.google.com/vt/lyrs=t&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),MAPBOX_CALI_TERRAIN:new a["a"]({name:"mapbox_cali_terrain",title:"Mapbox Terrain",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjkwh1z9z06ok2rrn9unfpn2n/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_MINIMO:new a["a"]({name:"mapbox_minimo",title:"Mapbox Minimo",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjm0l6i4g7ffj2sqk7xy5dv1m/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_TERRAIN:new a["a"]({name:"mapbox_terrain",title:"Mapbox Terrain",type:"base",source:new s["a"]({crossOrigin:"anonymous",format:"pbf",url:"https://api.mapbox.com/styles/v1/k-lab/cl1dgarpr005f15ntep34yq88/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_GOT:new a["a"]({name:"mapbox_got",title:"k.LAB Mapbox GOT",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjuihteg13toh1fmovvd6r80y/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),EMPTY_LAYER:new a["a"]({name:"empty_layer",title:"No background",type:"base",visible:!1})},h={controls:S["a"]({attribution:!1}).extend([]),target:"map",projection:A.PROJ_EPSG_4326,center:Object(m["l"])(A.COORD_BC3,A.PROJ_EPSG_4326,A.PROJ_EPSG_3857),zoom:13},R={layers:[N.EMPTY_LAYER,N.CLEARMAP_TOPO_LAYER,N.MAPBOX_MINIMO,N.MAPBOX_TERRAIN,N.OSM_LAYER],mask:null,hasMask:function(){return null!==this.mask},getBaseLayer:function(){return this.layers.find(function(e){return"base"===e.get("type")&&e.getVisible()})},setMask:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[38,38,38,.4];null!==this.mask&&this.removeMask(),this.mask=new p["a"]({feature:new T["a"]({geometry:e,name:"Context"}),inner:!1,active:!0,fill:new l["a"]({color:n})}),this.layers.forEach(function(e){e.addFilter(t.mask)})},removeMask:function(){var e=this;null!==this.mask&&this.layers.forEach(function(t){t.removeFilter(e.mask)}),this.mask=null}}},"17dc":function(e,t,n){"use strict";n.d(t,"a",function(){return f});n("ac6a"),n("cadf"),n("6b54"),n("c5f6");var o=n("3156"),a=n.n(o),i=n("278c"),r=n.n(i),s=n("2369"),c=n("c1df"),l=n.n(c),u=n("d247");function d(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=n!==u["b"].PAYLOAD_CLASS_EMPTY?s["b"].validateJsonSchema(o,n):o;return{validated:r,body:{messageClass:e,type:t,payloadClass:n,payload:o,identity:a,timestamp:l()().valueOf(),inResponseTo:i}}}var E={SPATIAL_EXTENT:function(e){var t=r()(e,4),n=t[0],o=t[1],a=t[2],i=t[3];return{south:o,west:n,north:i,east:a}}},f={REGION_OF_INTEREST:function(e,t){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_REGIONOFINTEREST,u["b"].PAYLOAD_CLASS_SPATIALEXTENT,E.SPATIAL_EXTENT(e),t)},SEARCH_REQUEST:function(e,t){var n=e.queryString,o=e.searchMode,i=e.requestId,r=e.contextId,s=void 0===r?null:r,c=e.matchTypes,l=void 0===c?null:c,E=e.cancelSearch,f=void 0!==E&&E,T=e.defaultResults,p=void 0!==T&&T,S=e.maxResults;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_SUBMITSEARCH,u["b"].PAYLOAD_CLASS_SEARCHREQUEST,a()({},null!==s&&{contextId:s},null!==l&&{matchTypes:l},{queryString:n,searchMode:o,requestId:i,cancelSearch:f,defaultResults:p,maxResults:S}),t)},SEARCH_MATCH:function(e,t){var n=e.contextId,o=e.matchId,a=e.matchIndex,i=e.added;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_MATCHACTION,u["b"].PAYLOAD_CLASS_SEARCHMATCHACTION,{contextId:n,matchId:o,matchIndex:a,added:i},t)},OBSERVATION_REQUEST:function(e,t){var n=e.urn,o=e.contextId,i=e.searchContextId,r=void 0===i?null:i,s=e.estimate,c=void 0!==s&&s,l=e.estimatedCost,E=void 0===l?0:l;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_REQUESTOBSERVATION,u["b"].PAYLOAD_CLASS_OBSERVATIONREQUEST,a()({urn:n},null!==o&&{contextId:o},null!==r&&{searchContextId:r},{estimate:c,estimatedCost:E}),t)},RESET_CONTEXT:function(e){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_RESETCONTEXT,u["b"].PAYLOAD_CLASS_EMPTY,"",e)},CONTEXTUALIZATION_REQUEST:function(e,t){var n=e.contextUrn,o=e.contextId,i=e.parentContext,r=e.contextQuery;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_RECONTEXTUALIZE,u["b"].PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST,a()({},"undefined"!==typeof n&&{contextUrn:n},"undefined"!==typeof o&&{contextId:o},"undefined"!==typeof i&&{parentContext:i},"undefined"!==typeof r&&{contextQuery:r}),t)},TASK_INTERRUPTED:function(e,t){var n=e.taskId,o=e.forceInterruption,a=void 0===o||o;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_TASKINTERRUPTED,u["b"].PAYLOAD_CLASS_INTERRUPTTASK,{taskId:n,forceInterruption:a},t)},SCALE_REFERENCE:function(e,t){var n=e.scaleReference,o=e.spaceResolution,i=e.spaceUnit,r=e.timeResolutionMultiplier,s=e.timeUnit,c=e.start,l=e.end,E=e.timeResolutionDescription,f=void 0===E?"":E,T=e.contextId,p=void 0===T?"":T,S=e.shape,m=void 0===S?"":S,O=e.timeType,b=void 0===O?"":O,A=e.timeGeometry,_=void 0===A?"":A,I=e.spaceGeometry,v=void 0===I?"":I;return d(u["b"].CLASS_USERCONTEXTDEFINITION,u["b"].TYPE_SCALEDEFINED,u["b"].PAYLOAD_CLASS_SCALEREFERENCE,a()({},n,{name:"",contextId:p,shape:m,timeType:b,timeGeometry:_,spaceGeometry:v,timeResolutionDescription:null===f?"":f},"undefined"!==typeof o&&{spaceResolution:o},"undefined"!==typeof i&&{spaceUnit:i},"undefined"!==typeof r&&{timeResolutionMultiplier:r},"undefined"!==typeof s&&{timeUnit:s},"undefined"!==typeof c&&{start:c},"undefined"!==typeof l&&{end:l}),t)},SPATIAL_LOCATION:function(e,t){var n=e.wktShape,o=e.contextId,i=void 0===o?null:o;return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_FEATUREADDED,u["b"].PAYLOAD_CLASS_SPATIALLOCATION,a()({easting:Number.MIN_VALUE,northing:Number.MIN_VALUE,wktShape:n},null!==i&&{contextId:i}),t)},DATAFLOW_NODE_DETAILS:function(e,t){var n=e.nodeId,o=e.contextId;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODEDETAIL,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,{nodeId:n,monitorable:!1,rating:-1,progress:0,contextId:o},t)},DATAFLOW_NODE_RATING:function(e,t){var n=e.nodeId,o=e.contextId,i=e.rating,r=e.comment,s=void 0===r?null:r;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODERATING,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,a()({nodeId:n,monitorable:!1,progress:0,rating:i},null!==s&&{comment:s},{contextId:o}),t)},SETTING_CHANGE_REQUEST:function(e,t){var n=e.setting,o=e.value;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CHANGESETTING,u["b"].PAYLOAD_CLASS_SETTINGCHANGEREQUEST,{setting:n,previousValue:(!o).toString(),newValue:o.toString()},t)},USER_INPUT_RESPONSE:function(e,t){var n=e.messageId,o=e.requestId,a=e.cancelRun,i=void 0!==a&&a,r=e.values,s=void 0===r?{}:r;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_USERINPUTPROVIDED,u["b"].PAYLOAD_CLASS_USERINPUTRESPONSE,{requestId:o,cancelRun:i,values:s},t,n)},WATCH_REQUEST:function(e,t){var n=e.active,o=e.eventType,i=e.observationId,r=e.rootContextId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_WATCHOBSERVATION,u["b"].PAYLOAD_CLASS_WATCHREQUEST,a()({active:n,observationId:i,rootContextId:r},o&&{eventType:o}),t)},WATCH_ENGINE_EVENT:function(e,t){var n=e.active,o=e.eventType;return d(u["b"].CLASS_NOTIFICATION,u["b"].TYPE_ENGINEEVENT,u["b"].PAYLOAD_CLASS_WATCHREQUEST,{active:n,eventType:o},t)},VIEW_ACTION:function(e,t){var n=e.component,o=e.componentTag,a=void 0===o?null:o,i=e.applicationId,r=void 0===i?null:i,s=e.booleanValue,c=void 0===s?null:s,l=e.doubleValue,E=void 0===l?null:l,f=e.intValue,T=void 0===f?null:f,p=e.stringValue,S=void 0===p?null:p,m=e.listValue,O=void 0===m?[]:m,b=e.dateValue,A=void 0===b?null:b,_=e.data,I=void 0===_?null:_;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_VIEWACTION,{component:n,componentTag:a,applicationId:r,booleanValue:c,doubleValue:E,intValue:T,stringValue:S,listValue:O,dateValue:A,data:I},t)},MENU_ACTION:function(e,t){var n=e.identity,o=e.applicationId,a=e.menuId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_MENUACTION,{identity:n,applicationId:o,menuId:a},t)},RUN_APPLICATION:function(e,t){var n=e.applicationId,o=e.test,a=void 0!==o&&o,i=e.stop,r=void 0!==i&&i;return d(u["b"].CLASS_RUN,u["b"].TYPE_RUNAPP,u["b"].PAYLOAD_CLASS_LOADAPPLICATIONREQUEST,{behavior:n,test:a,stop:r,parameters:{}},t)},CONSOLE_CREATED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECREATED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},CONSOLE_CLOSED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECLOSED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},COMMAND_REQUEST:function(e,t){var n=e.consoleId,o=e.consoleType,a=e.commandId,i=e.payload;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_COMMANDREQUEST,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o,commandId:a,payload:i},t)}}},"1e5d":function(e,t,n){},2369:function(e,t,n){"use strict";var o=n("278c"),a=n.n(o),i=(n("ffc1"),n("ac6a"),n("cadf"),n("456d"),n("7037")),r=n.n(i),s=n("970b"),c=n.n(s),l=n("5bc30"),u=n.n(l),d=n("be3b"),E=n("3b1b6"),f=n.n(E),T=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{draft:"draft-04"};if(c()(this,e),void 0===t||""===t)throw Error("URL is mandatory");this.djvEnv=new f.a({version:n.draft}),this.initialized=!1,this.url=t,this.initTimeout=null,console.debug("Load schema(s) on creation"),this.initTimeout=setTimeout(this.init(t),2e3)}return u()(e,[{key:"validateJsonSchema",value:function(e,t){if(!this.initialized)return console.info("djvEnv not ready"),!1;if(this.djvEnv.resolve(t)){var n=this.djvEnv.validate(t,e);if("undefined"===typeof n)return!0;if("$ref"===n.keyword)return!0;throw Error(n)}throw Error("Schema not found: ".concat(t))}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;this.initialized||d["a"].get(t,{}).then(function(n){var o=n.data;if("object"!==r()(o))throw Error("Error asking for JsonSchema(s): no data");if(0===Object.keys(o).length)throw Error("Schema on url ".concat(t," is empty, check it"));for(var i=Object.entries(o),s=0;s-1))&&(a.splice(o,1),this.listeners.set(e,a),!0)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Ye()(this,e),!t)throw new Error("Connection url is needed");this.connectionUrl=t,this.connectionHeaders=n;var a=o.stompOptions,i=void 0===a?{debug:!1}:a,r=o.sockJSOptions,s=void 0===r?{}:r,c=o.reconnection,l=void 0!==c&&c,u=o.reconnectionAttempts,d=void 0===u?1/0:u,E=o.reconnectionDelay,f=void 0===E?2e3:E,T=o.debug,p=void 0!==T&&T,S=o.store,m=void 0===S?null:S,O=o.storeNS,b=void 0===O?"":O;this.reconnection=l,this.reconnectionAttempts=d,this.reconnectionDelay=f,this.hasDebug=p,this.reconnectTimeoutId=-1,this.reconnectionCount=0,"undefined"!==typeof m&&null!==m&&(this.store=m,this.storeNS=b),this.stompOptions=i,this.sockJSOptions=s,this.connect()}return We()(e,[{key:"debug",value:function(){var e;this.hasDebug&&(e=console).debug.apply(e,arguments)}},{key:"connect",value:function(){var e=this,t=je()(this.connectionUrl,{},this.sockJSOptions);t.protocol=this.stompOptions.protocol||"",this.StompClient=ze.a.over(t,this.stompOptions),this.StompClient.connect(this.connectionHeaders,function(t){e.doOnEvent("onconnect",t)},function(t){return setTimeout(function(){e.doOnEvent("onerror",t)},1e3)})}},{key:"isConnected",value:function(){return this.StompClient&&this.StompClient.connected}},{key:"reconnect",value:function(){var e=this;this.reconnectionCount<=this.reconnectionAttempts?(this.reconnectionCount+=1,clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout(function(){e.doOnEvent("reconnect",e.reconnectionCount),e.connect()},this.reconnectionDelay)):this.store&&this.passToStore("stomp_onerror","Reconnection error")}},{key:"subscribe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){t.doOnEvent("onmessage",e)};if(e){var a=this.StompClient.subscribe(e,o,n);if(a)return this.doOnEvent("onsubscribe",a),a}return null}},{key:"unsubscribe",value:function(e,t){this.StompClient.unsubscribe(e,t)}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isConnected()?(this.StompClient.send(e,JSON.stringify(t),n),this.doOnEvent("onsend",{headers:n,message:t}),!0):(this.doOnEvent("onerrorsend",{headers:n,message:t}),!1)}},{key:"doOnEvent",value:function(e,t){Ke.emit(e,t)||this.debug("No listener for ".concat(e)),this.store&&this.passToStore("stomp_".concat(e),t),this.reconnection&&"onoconnect"===e&&(this.reconnectionCount=0),this.reconnection&&"onerror"===e&&this.reconnect()}},{key:"passToStore",value:function(e,t){if(e.startsWith("stomp_")){var n="dispatch",o=[this.storeNS||"",e.toLowerCase()].filter(function(e){return!!e}).join("/"),a=t||null;t&&t.data&&(a=JSON.parse(t.data),a.mutation?o=[a.namespace||"",a.mutation].filter(function(e){return!!e}).join("/"):a.action&&(n="dispatch",o=[a.namespace||"",a.action].filter(function(e){return!!e}).join("/"))),this.store[n](o,a)}}},{key:"close",value:function(){this.StompClient&&(this.StompClient.disconnect(),this.doOnEvent("onclose")),this.reconnectTimeoutId&&clearTimeout(this.reconnectTimeoutId)}}]),e}(),Qe={install:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)throw new Error("[vue-stomp-client] cannot locate connection");var a=null;o.connectManually?(e.prototype.$connect=function(){a=new Xe(t,n,o),e.prototype.$stompClient=a.StompClient},e.prototype.$disconnect=function(){a&&a.reconnection&&(a.reconnection=!1),e.prototype.$stompClient&&(a.close(),delete e.prototype.$stompClient)}):(a=new Xe(t,n,o),e.prototype.$stompClient=a.StompClient),e.mixin({methods:{sendStompMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.defaultMessageDestination;a.send(n,e,t)?console.debug("Message sent: ".concat(JSON.stringify(e,null,4))):console.debug("Message not sent, still no connected:\n".concat(JSON.stringify(e,null,4)))},subscribe:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultSubscribeDestination;return a.subscribe("".concat(i,"/").concat(e),t,n)},unsubscribe:function(e){a.unsubscribe(e),console.debug("Unsubscribe the subscription with id ".concat(e))},reconnect:function(){a.StompClient&&!a.StompClient.connected&&(console.debug("Try to reconnect..."),a.reconnect())},disconnect:function(){a&&a.reconnection&&(a.reconnection=!1),a.close()}},created:function(){var e=this;if(this.$options.sockets){var t=this,n=this.$options.sockets;this.$options.sockets=new Proxy({},{set:function(e,n,o){return Ke.addListener(n,o,t),e[n]=o,!0},deleteProperty:function(e,n){return Ke.removeListener(n,t.$options.sockets[n],t),delete e.key,!0}}),n&&Object.keys(n).forEach(function(t){e.$options.sockets[t]=n[t]})}},beforeDestroy:function(){var e=this;if(this.$options.sockets){var t=this.$options.sockets;t&&Object.keys(t).forEach(function(t){console.debug("Remove listener ".concat(t)),Ke.removeListener(t,e.$options.sockets[t],e),delete e.$options.sockets[t]})}}})}},qe=function(e){var t=e.Vue,n=e.store,o=new URLSearchParams(window.location.search).get(Ie["O"].PARAMS_STOMP_DEBUG),a=!1;"true"===o&&(a=!0),t.use(Qe,"/modeler/message",{},{stompOptions:{debug:a,protocol:"v12.stomp"},store:n,storeNS:"stomp",reconnection:!0,reconnectionAttempts:5,debug:a,defaultMessageDestination:"/klab/message",defaultSubscribeDestination:"/message"})},Je=Me(),Ze=Je.app,$e=Je.store,et=Je.router;[ye["a"],xe["b"],ke["a"],Ue["a"],qe].forEach(function(e){e({app:Ze,router:et,store:$e,Vue:o["a"],ssrContext:null})}),new o["a"](Ze)},4360:function(e,t,n){"use strict";var o,a=n("2b0e"),i=n("2f62"),r=(n("ac6a"),n("cadf"),n("f400"),n("7cca")),s=n("d247"),c={kexplorerLog:[],statusTexts:[],klabLog:[],dataViewers:[],mainDataViewerIdx:0,lastViewerId:0,mainViewer:void 0,treeVisible:!0,leftMenuContent:null,leftMenuState:r["t"].LEFTMENU_HIDDEN,mainControlDocked:!1,contextGeometry:null,spinner:r["G"].SPINNER_STOPPED,spinnerOwners:[],searchActive:!1,searchFocus:!1,searchLostChar:"",searchHistory:[],searchInApp:!1,reloadDataflow:!1,dataflowInfoOpen:!1,observationInfo:null,mapSelection:r["g"].EMPTY_MAP_SELECTION,exploreMapMode:!1,treeSelected:null,treeTicked:[],treeExpanded:[],topLayer:null,scaleEditing:{active:!1,type:null},drawMode:!1,customContext:!1,saveLocation:!0,saveDockedStatus:!1,modalMode:!1,inputRequests:[],waitingGeolocation:!0,helpShown:!1,modalSize:r["r"].DEFAULT_MODAL_SIZE,fuzzyMode:!1,largeMode:0,helpBaseUrl:null,timeRunning:!1,layout:null,windowSide:"left",dialogs:[],modalWindow:null,engineEvents:[],klabApp:null,levels:[s["a"].TYPE_INFO,s["a"].TYPE_WARNING,s["a"].TYPE_ERROR],showSettings:!0,notificationsParams:null,reloadViews:[],documentationView:r["n"].REPORT,documentationSelected:null,documentationCache:new Map,tableFontSize:12,textFontSize:10,viewCoordinates:!0},l=(n("7514"),n("7f7f"),n("6762"),n("2fdb"),n("448a")),u=n.n(l),d=n("b12a"),E=n("b0b2"),f={kexplorerLog:function(e){return e.kexplorerLog},lastKexplorerLog:function(e){return function(t){return Object(d["o"])(e.kexplorerLog,t)}},klabLog:function(e){return e.klabLog},lastKlabLog:function(e){return function(t){return Object(d["o"])(e.klabLog,t)}},klabLogReversedAndFiltered:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.klabLog.length)return[];var n=u()(e.klabLog).reverse();return 0===t.length?n:n.filter(function(e){return t.includes(e.type)})}},levels:function(e){return e.levels},statusTexts:function(e){return e.statusTexts},statusTextsLength:function(e){return e.statusTexts.length},statusTextsString:function(e){return e.statusTexts.length>0?e.statusTexts.map(function(e){return e.text}).join(" - "):""},mainViewer:function(e){return e.mainViewer},mainViewerName:function(e){return e.mainViewer?e.mainViewer.name:null},isTreeVisible:function(e){return e.treeVisible},leftMenuContent:function(e){return e.leftMenuContent},leftMenuState:function(e){return e.leftMenuState},isDocked:function(e){return e.leftMenuState!==r["t"].LEFTMENU_HIDDEN},hasMainControl:function(e){return e.mainViewer&&e.mainViewer.mainControl},isMainControlDocked:function(e){return e.mainControlDocked},admitSearch:function(e){return e.mainViewer&&e.mainViewer.hasSearch},contextGeometry:function(e){return e.contextGeometry},dataViewers:function(e){return e.dataViewers},mainDataViewer:function(e){return e.dataViewers.find(function(e){return e.main})},mainDataViewerIdx:function(e){return e.mainDataViewerIdx},lastViewerId:function(e){return e.lastViewerId},viewer:function(e){return function(t){return e.dataViewers.length>0?e.dataViewers.find(function(e){return e.idx===t}):null}},spinnerIsAnimated:function(e){return e.spinner.animated},spinner:function(e){return e.spinner},spinnerOwners:function(e){return e.spinnerOwners},spinnerColor:function(e){return"undefined"!==e.spinner&&null!==e.spinner?Object(E["e"])(e.spinner.color):null},spinnerErrorMessage:function(e){return"undefined"!==e.spinner&&null!==e.spinner?e.spinner.errorMessage:null},searchIsActive:function(e){return e.searchActive},searchIsFocused:function(e){return e.searchFocus},searchLostChar:function(e){return e.searchLostChar},searchHistory:function(e){return e.searchHistory},searchInApp:function(e){return e.searchInApp},dataflowInfoOpen:function(e){return e.dataflowInfoOpen},observationInfo:function(e){return e.observationInfo},mapSelection:function(e){return e.mapSelection},hasObservationInfo:function(e){return null!==e.observationInfo},exploreMode:function(e){return!!(null!==e.observationInfo&&Object(d["n"])(e.observationInfo)&&e.observationInfo.dataSummary.histogram.length>0&&e.observationInfo.visible&&e.observationInfo.top)},isScaleEditing:function(e){return e.scaleEditing.active},scaleEditingType:function(e){return e.scaleEditing.type},isDrawMode:function(e){return e.drawMode},hasCustomContext:function(e){return e.customContext},topLayer:function(e){return e.topLayer},topLayerId:function(e){return null!==e.topLayer?e.topLayer.id:null},inputRequests:function(e){return e.inputRequests},hasInputRequests:function(e){return 0!==e.inputRequests.length},isInModalMode:function(e){return e.modalMode},isHelpShown:function(e){return e.helpShown},modalSize:function(e){return e.modalSize},fuzzyMode:function(e){return e.fuzzyMode},largeMode:function(e){return e.largeMode},isTimeRunning:function(e){return e.timeRunning},layout:function(e){return e.layout},modalWindow:function(e){return e.modalWindow},hasHeader:function(e){return e.layout&&(e.layout.header||e.layout.logo||e.layout.label||e.layout.description)},windowSide:function(e){return e.windowSide},isApp:function(e){return null!==e.klabApp},klabApp:function(e){return e.klabApp},activeDialogs:function(e){return e.dialogs.filter(function(e){return!e.dismiss})},engineEvents:function(e){return e.engineEvents},engineEventsCount:function(e){return e.engineEvents.length},hasShowSettings:function(e){return e.showSettings},notificationsParams:function(e){return e.notificationsParams},reloadViews:function(e){return e.reloadViews},documentationView:function(e){return e.documentationView},documentationSelected:function(e){return e.documentationSelected},documentationCache:function(e){return e.documentationCache},tableFontSize:function(e){return e.tableFontSize},textFontSize:function(e){return e.textFontSize},viewCoordinates:function(e){return e.viewCoordinates}},T=(n("f751"),n("3156")),p=n.n(T),S=(n("20d6"),n("741d")),m={ADD_TO_KEXPLORER_LOG:function(e,t){Object(d["p"])(e.kexplorerLog,t)},ADD_TO_KLAB_LOG:function(e,t){Object(d["p"])(e.klabLog,t)},SET_LEVELS:function(e,t){t&&(e.levels=t)},TOGGLE_LEVEL:function(e,t){var n=e.levels.indexOf(t);-1===n?e.levels.push(t):e.levels.splice(n,1)},ADD_TO_STATUS_TEXTS:function(e,t){var n=t.id,o=t.text;e.statusTexts.push({id:n,text:o})},REMOVE_FROM_STATUS_TEXTS:function(e,t){var n=e.statusTexts.findIndex(function(e){return e.id===t});-1!==n&&e.statusTexts.splice(n,1)},SET_CONTEXT_LAYER:function(e,t){e.dataViewers.splice(0,e.dataViewers.length),e.lastViewerId=0,e.contextGeometry=t,e.treeExpanded=[],e.treeTicked=[],e.statusTexts=[],e.treeSelected=null,e.topLayer=null,e.reloadViews.splice(0,e.reloadViews.length),e.documentationSelected=null,e.modalWindow=null},SET_MAIN_VIEWER:function(e,t){e.mainViewer=t},SET_TREE_VISIBLE:function(e,t){e.treeVisible=t},SET_LEFTMENU_CONTENT:function(e,t){e.leftMenuContent=t},SET_LEFTMENU_STATE:function(e,t){e.leftMenuState=t},SET_MAIN_DATA_VIEWER:function(e,t){var n=t.viewerIdx,o=t.visible;if(o)e.dataViewers.forEach(function(t){t.idx===n?(t.main=!0,e.mainDataViewerIdx=n):t.main=!1,t.visible=!t.type.hideable||t.idx===n||t.visible});else{var a=!1;e.dataViewers.forEach(function(t){a||t.type.hideable&&!t.visible?(t.main=!1,t.type.hideable&&t.idx===n&&(t.visible=!1)):(t.main=!0,e.mainDataViewerIdx=t.idx,a=!0)})}},RESET_MAIN_DATA_VIEWER:function(e){e.dataViewer=[],e.mainDataViewerIdx=0},SET_SAVE_DOCKED_STATUS:function(e,t){e.saveDockedStatus=t},SET_MAIN_CONTROL_DOCKED:function(e,t){e.mainControlDocked=t,e.saveDockedStatus&&S["a"].set(r["O"].COOKIE_DOCKED_STATUS,t,{expires:30,path:"/",secure:!0})},ADD_VIEWER_ELEMENT:function(e,t){var n=t.main,o=t.type,a=t.label,i=t.visible,r=t.callback;0===e.lastViewerId?n=!0:!0===n&&e.dataViewers.forEach(function(e){e.main=!1}),e.lastViewerId+=1,e.dataViewers.push({idx:e.lastViewerId,main:n,type:o,label:a,visible:i,observations:[]}),"function"===typeof r&&r(e.lastViewerId)},SET_SPINNER_ANIMATED:function(e,t){e.spinner.animated=t},SET_SPINNER_COLOR:function(e,t){e.spinner.color=t},SET_SPINNER:function(e,t){var n=t.animated,o=t.color,a=t.errorMessage,i=void 0===a?null:a;e.spinner={animated:n,color:o,errorMessage:i}},ADD_TO_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1===n&&e.spinnerOwners.push(t)},REMOVE_FROM_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1!==n&&e.spinnerOwners.splice(n,1)},SEARCH_ACTIVE:function(e,t){var n=t.active,o=t.char,a=void 0===o?"":o;e.searchActive!==n&&(e.searchLostChar=a,e.searchActive=n)},SEARCH_FOCUS:function(e,t){var n=t.focused,o=t.char,a=void 0===o?"":o;e.searchFocus!==n&&(e.searchLostChar=a,e.searchFocus=n)},SEARCH_INAPP:function(e,t){e.searchInApp=t},RESET_SEARCH_LOST_CHAR:function(e){e.searchLostChar=""},RESET_SEARCH:function(e){e.searchActive=!1,e.searchFocus=!1,e.searchLostChar=""},STORE_SEARCH:function(e,t){e.searchHistory.unshift(t)},SET_RELOAD_DATAFLOW:function(e,t){e.reloadDataflow=t},SET_DATAFLOW_INFO_OPEN:function(e,t){e.dataflowInfoOpen=t},SET_OBSERVATION_INFO:function(e,t){null===t?(e.treeSelected=null,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.observationInfo=null):null!==e.observationInfo&&t.id===e.observationInfo.id||(e.observationInfo=t,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.treeSelected=t.id)},SET_MAP_SELECTION:function(e,t){var n=t.pixelSelected,o=t.layerSelected,a=t.value,i=void 0===a?null:a,s=t.locked,c=void 0!==s&&s;e.mapSelection=null===t||null===n?r["g"].EMPTY_MAP_SELECTION:{pixelSelected:n,layerSelected:o,value:i,locked:c}},SET_SCALE_EDITING:function(e,t){var n=t.active,o=t.type;e.scaleEditing={active:n,type:o}},SET_DRAW_MODE:function(e,t){e.drawMode=t},SET_CUSTOM_CONTEXT:function(e,t){e.customContext=t},SET_SAVE_LOCATION:function(e,t){e.saveLocation=t},SET_TOP_LAYER:function(e,t){e.topLayer=t},SET_MODAL_MODE:function(e,t){e.modalMode=t},SET_INPUT_REQUEST:function(e,t){var n=t.payload,o=t.id;e.inputRequests.push(p()({messageId:o},n))},REMOVE_INPUT_REQUEST:function(e,t){if(e.inputRequests.length>0)if(null===t)e.inputRequests.splice(0,e.inputRequests.length);else{var n=e.inputRequests.findIndex(function(e){return e.messageId===t});-1!==n&&e.inputRequests.splice(n,1)}},SET_MODAL_SIZE:function(e,t){var n=t.width,o=t.height;e.modalSize={width:n,height:o}},SET_FUZZY_MODE:function(e,t){e.fuzzyMode=t},SET_LARGE_MODE:function(e,t){t<0?t=0:t>6&&(t=r["g"].MAX_SEARCHBAR_INCREMENTS),e.largeMode=t},SET_TIME_RUNNING:function(e,t){e.timeRunning=t},SET_LAYOUT:function(e,t){e.layout=t},SET_MODAL_WINDOW:function(e,t){e.modalWindow=t},SET_WINDOW_SIDE:function(e,t){e.windowSide=t},CREATE_VIEW_COMPONENT:function(e,t){if(t.type!==r["a"].ALERT&&t.type!==r["a"].CONFIRM){var n=e.layout&&(Object(d["d"])(e.layout,t.id)||e.modalWindow&&Object(d["d"])(e.modalWindow,t.id));if(n)console.log("Updating component: ",JSON.stringify(n,null,2)),Object.assign(n,t),console.log("Updated component: ",JSON.stringify(n,null,2));else{var o=Object(d["c"])(e.layout,t.parentId)||e.modalWindow&&Object(d["c"])(e.modalWindow,t.id);o&&(o.children.push(t),console.warn("Update parent: ",o))}}else e.dialogs.push(p()({},t,{dismiss:!1}))},SET_ENGINE_EVENT:function(e,t){if(null!==e.engineEvents)switch(t.type){case r["o"].RESOURCE_VALIDATION:var n=e.engineEvents.findIndex(function(e){return e.id===t.id});t.started?-1===n?e.engineEvents.push({id:t.id,timestamp:t.timestamp}):console.debug("Try to start an existing engine event",t):-1!==n?e.engineEvents.splice(n,1):console.debug("Try to stop an unregistered engine event",t),console.debug("Engine event with id ".concat(t.id," ").concat(t.started?"start":"stop"," / total engine events: ").concat(e.engineEvents.length));break;default:break}else console.debug("Receive an engine event before subscription")},VIEW_ACTION:function(e,t){if(null!==t.component){if(e.layout||e.modalWindow){var n=Object(d["d"])(e.layout,t.component.id)||null!==e.modalWindow&&Object(d["d"])(e.modalWindow,t.component.id);n&&Object.assign(n,t.component)}}else console.warn("Action component is null")},SHOW_SETTINGS:function(e,t){e.showSettings=t},SET_NOTIFICATIONS_PARAMS:function(e,t){e.notificationsParams=t},SET_DOCUMENTATION_VIEW:function(e,t){e.documentationView=t},SET_DOCUMENTATION_SELECTED:function(e,t){e.documentationSelected=t},SET_RELOAD_VIEWS:function(e,t){t&&t.forEach(function(t){-1===e.reloadViews.indexOf(t)&&e.reloadViews.push(t)})},REMOVE_RELOAD_VIEW:function(e,t){-1!==e.reloadViews.indexOf(t)&&e.reloadViews.splice(e.reloadViews.indexOf(t),1)},SET_TABLE_FONT_SIZE:function(e,t){e.tableFontSize=t},SET_TEXT_FONT_SIZE:function(e,t){e.textFontSize=t},SET_VIEW_COORDINATES:function(e,t){e.viewCoordinates=t}},O=n("7037"),b=n.n(O),A=(n("551c"),n("c1df")),_=n.n(A),I=n("4328"),v=n.n(I),N=n("8449"),h=n("256f"),R={addToKexplorerLog:function(e,t){var n=e.commit,o=t.type,a=t.payload,i=t.important,r=void 0!==i&&i;n("ADD_TO_KEXPLORER_LOG",{type:o,payload:a,important:r,time:_()()})},addToKlabLog:function(e,t){var n=e.commit,o=t.type,a=t.id,i=t.payload,r=t.timestamp;n("ADD_TO_KLAB_LOG",{type:o,id:a,payload:i,time:_()(r)})},setLevels:function(e,t){var n=e.commit;n("SET_LEVELS",t)},toggleLevel:function(e,t){var n=e.commit;n("TOGGLE_LEVEL",t)},addToStatusTexts:function(e,t){var n=e.commit,o=t.id,a=t.text;n("ADD_TO_STATUS_TEXTS",{id:o,text:a})},removeFromStatusTexts:function(e,t){var n=e.commit;n("REMOVE_FROM_STATUS_TEXTS",t)},setContextLayer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;Object(d["j"])(t).then(function(e){o("SET_CONTEXT_LAYER",e),o("RESET_SEARCH"),a("assignViewer",{observation:t,main:!0}),n.mainViewer.name===r["L"].DATA_VIEWER.name&&n.mainControlDocked&&a("setMainViewer",r["L"].DOCKED_DATA_VIEWER)})},resetContext:function(e){var t=e.commit;t("SET_CONTEXT_LAYER",null),t("RESET_SEARCH"),t("SET_OBSERVATION_INFO",null);var n=r["L"].DATA_VIEWER;t("SET_LEFTMENU_CONTENT",n.leftMenuContent),t("SET_LEFTMENU_STATE",n.leftMenuState),t("SET_MAIN_VIEWER",n),t("RESET_MAIN_DATA_VIEWER",null),t("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION)},setMainViewer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;t&&"undefined"!==typeof n.mainViewer&&(t.leftMenuContent===r["t"].DOCKED_DATA_VIEWER_COMPONENT?o("SET_MAIN_CONTROL_DOCKED",!0):t.leftMenuContent===r["t"].DATA_VIEWER_COMPONENT&&o("SET_MAIN_CONTROL_DOCKED",!1)),o("SET_MAIN_VIEWER",t),t&&(a("setLeftMenuState",t.leftMenuState),a("setLeftMenuContent",t.leftMenuContent))},setTreeVisible:function(e,t){var n=e.commit;n("SET_TREE_VISIBLE",t)},setLeftMenuContent:function(e,t){var n=e.commit;n("SET_LEFTMENU_CONTENT",t)},setLeftMenuState:function(e,t){var n=e.commit;n("SET_LEFTMENU_STATE",t)},setMainDataViewer:function(e,t){var n=e.commit,o=e.getters,a=t.viewerIdx,i=t.viewerType,r=void 0===i?null:i,s=t.visible,c=void 0===s||s;(c&&a!==o.mainDataViewerIdx||!c&&null!==r&&r.hideable)&&n("SET_MAIN_DATA_VIEWER",{viewerIdx:a,visible:c})},assignViewer:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=e.rootGetters,s=t.observation,c=t.main,l=void 0!==c&&c;return new Promise(function(e,t){var c,u=null,E=null;if(s.observationType)switch(s.observationType){case r["x"].TYPE_GROUP:case r["x"].TYPE_VIEW:case r["x"].TYPE_PROCESS:u=null;break;case r["x"].TYPE_STATE:var f;if(1===s.valueCount)u=null;else if(u=r["M"].VIEW_MAP,f=s.parentId===i["data/contextId"]?i["data/context"]:i["data/observations"].find(function(e){return e.id===s.parentId}),"undefined"!==typeof f){s.encodedShape=f.encodedShape;var T=f;E=T.label}else console.warn("Need parent of ".concat(s.id," but doesn't find it. Parent id is ").concat(s.parentId));break;case r["x"].TYPE_INITIAL:case r["x"].TYPE_RELATIONSHIP:u=r["M"].VIEW_MAP;var p=null;if(null!==s.parentId&&(p=Object(d["f"])(i["data/tree"],s.parentId),"undefined"===typeof p&&(console.warn("Observation with id ".concat(s.id," has an invalid unknown parent: ").concat(s.parentId)),p=null)),p){var S=p;E=S.label}else E=s.label;break;case r["x"].TYPE_SUBJECT:u=r["M"].VIEW_MAP;break;case r["x"].TYPE_CONFIGURATION:u=r["M"].VIEW_GRAPH,E=s.label;break;case r["x"].TYPE_EVENT:u=r["M"].VIEW_UNKNOWN;break;default:t(new Error("Unknown observation type in observation labeled ".concat(s.label,": ").concat(s.observationType)));break}null!==u?(console.debug("Need a viewer of type ".concat(u.component)),u.forceNew||(c=o.dataViewers.find(function(e){return e.type.component===u.component})),"undefined"===typeof c?(console.info("Create new viewer of type ".concat(u.component)),n("ADD_VIEWER_ELEMENT",{main:l,type:u,label:E&&null!==E?E:u.label,visible:!u.hideable,callback:function(t){e(t)}})):(l&&a("setMainDataViewer",{viewerIdx:c.idx}),e(c.idx))):e(null)})},setSpinner:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=t.animated,s=t.color,c=t.time,l=void 0===c?null:c,u=t.then,d=void 0===u?null:u,E=t.errorMessage,f=void 0===E?null:E,T=t.owner;return new Promise(function(e){if(!T||null===T)throw new Error("No spinner owner!");i?n("ADD_TO_SPINNER_OWNERS",T):(n("REMOVE_FROM_SPINNER_OWNERS",T),0!==o.spinnerOwners.length&&(i=!0,s!==r["G"].SPINNER_ERROR.color&&(s=r["G"].SPINNER_LOADING.color))),null!==f&&"object"===b()(f)&&(f=JSON.stringify(f)),n("SET_SPINNER",{animated:i,color:s,errorMessage:f}),null!==l&&null!==d&&setTimeout(function(){a("setSpinner",p()({},d,{owner:T}))},1e3*l),e()})},searchStart:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SEARCH_ACTIVE",{active:!0,char:n})},searchStop:function(e){var t=e.commit;t("SEARCH_ACTIVE",{active:!1})},searchFocus:function(e,t){var n=e.commit,o=t.focused,a=t.char,i=void 0===a?null:a;n("SEARCH_FOCUS",{focused:o,char:i})},resetSearchLostChar:function(e){var t=e.commit;t("RESET_SEARCH_LOST_CHAR")},storePreviousSearch:function(e,t){var n=e.commit;n("STORE_SEARCH",t)},searchInApp:function(e,t){var n=e.commit;n("SEARCH_INAPP",t)},setDataflowInfoOpen:function(e,t){var n=e.commit;n("SET_DATAFLOW_INFO_OPEN",t)},setObservationInfo:function(e,t){var n=e.commit;n("SET_OBSERVATION_INFO",t)},setMapSelection:function(e,t){var n=e.commit,o=e.state,a=t.pixelSelected,i=t.timestamp,c=void 0===i?-1:i,l=t.layerSelected,u=void 0===l?null:l,E=t.observationId,f=void 0===E?null:E,T=t.locked,p=void 0!==T&&T;if(null!==a){null===f&&(f=o.observationInfo.id);var S="".concat("").concat(s["c"].REST_SESSION_VIEW,"data/").concat(f),m=Object(h["l"])(a,"EPSG:3857","EPSG:4326"),O=-1!==c?"T1(1){time=".concat(c.toFixed(0),"}"):"";Object(d["h"])("pv_".concat(f),S,{params:{format:"SCALAR",locator:"".concat(O,"S0(1){latlon=[").concat(m[0]," ").concat(m[1],"]}")},paramsSerializer:function(e){return v.a.stringify(e,{arrayFormat:"repeat"})}},function(e,t){var o="No value";e&&"undefined"!==typeof e.data&&(o=e.data),n("SET_MAP_SELECTION",{pixelSelected:a,layerSelected:u,value:o,locked:p}),t()})}else n("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION)},setScaleEditing:function(e,t){var n=e.commit,o=t.active,a=t.type;n("SET_SCALE_EDITING",{active:o,type:a}),n("SET_MODAL_MODE",o)},setDrawMode:function(e,t){var n=e.commit;n("SET_DRAW_MODE",t),n("SET_MODAL_MODE",t)},setCustomContext:function(e,t){var n=e.commit;n("SET_CUSTOM_CONTEXT",t)},setTopLayer:function(e,t){var n=e.commit;n("SET_TOP_LAYER",t)},inputRequest:function(e,t){var n=e.commit;n("SET_INPUT_REQUEST",t),n("SET_MODAL_MODE",!0)},removeInputRequest:function(e,t){var n=e.commit,o=e.getters;n("REMOVE_INPUT_REQUEST",t),o.hasInputRequests||n("SET_MODAL_MODE",!1)},setModalMode:function(e,t){var n=e.commit;n("SET_MODAL_MODE",t)},setModalSize:function(e,t){var n=e.commit,o=t.width,a=t.height;n("SET_MODAL_SIZE",{width:o,height:a})},setFuzzyMode:function(e,t){var n=e.rootGetters,o=e.commit;n["data/hasContext"]||o("SET_FUZZY_MODE",t)},setLargeMode:function(e,t){var n=e.commit;n("SET_LARGE_MODE",t)},setTimeRunning:function(e,t){var n=e.commit;n("SET_TIME_RUNNING",t)},setLayout:function(e,t){var n=e.commit;if(null===t||"DESKTOP"!==t.platform&&"MOBILE"!==t.platform)if(n("SET_LAYOUT",null===t?null:p()({},t)),null!==t)localStorage.setItem(r["O"].LOCAL_STORAGE_APP_ID,t.name);else{var o=localStorage.getItem(r["O"].LOCAL_STORAGE_APP_ID);o&&localStorage.removeItem(r["O"].LOCAL_STORAGE_APP_ID)}else console.info("Received an app for another platform: ".concat(t.platform))},setModalWindow:function(e,t){var n=e.commit;n("SET_MODAL_WINDOW",t)},setWindowSide:function(e,t){var n=e.commit;n("SET_WINDOW_SIDE",t)},setEngineEvent:function(e,t){var n=e.commit;n("SET_ENGINE_EVENT",t)},createViewComponent:function(e,t){var n=e.commit;n("CREATE_VIEW_COMPONENT",t)},viewAction:function(e,t){var n=e.commit;n("VIEW_ACTION",t)},viewSetting:function(e,t){var n=e.getters,o=e.rootGetters,a=e.dispatch;if(t){var i=function(){N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.targetId,selected:t.operation===r["N"].SHOW})};switch(t.target){case r["N"].OBSERVATION:n.mainViewerName!==r["L"].DATA_VIEWER.name&&t.operation===r["N"].SHOW?a("setMainViewer",r["L"].DATA_VIEWER).then(function(){i(),N["b"].$emit(r["h"].MAP_SIZE_CHANGED,{type:"changelayout"})}):i();break;case r["N"].VIEW:i();break;case r["N"].TREE:n.mainViewerName===r["L"].DATA_VIEWER.name&&o["data/hasContext"]&&a("setTreeVisible",t.operation===r["N"].SHOW);break;case r["N"].REPORT:n.mainViewerName===r["L"].REPORT_VIEWER.name&&t.operation===r["N"].HIDE?a("setMainViewer",n.isMainControlDocked?r["L"].DOCKED_DATA_VIEWER:r["L"].DATA_VIEWER):n.mainViewerName!==r["L"].REPORT_VIEWER.name&&o["data/hasObservations"]&&t.operation===r["N"].SHOW&&a("setMainViewer",r["L"].REPORT_VIEWER);break;case r["N"].DATAFLOW:n.mainViewerName===r["L"].DATAFLOW_VIEWER.name&&t.operation===r["N"].HIDE?a("setMainViewer",n.isMainControlDocked?r["L"].DOCKED_DATA_VIEWER:r["L"].DATA_VIEWER):n.mainViewerName!==r["L"].DATAFLOW_VIEWER.name&&o["data/hasContext"]&&t.operation===r["N"].SHOW&&a("setMainViewer",r["L"].DATAFLOW_VIEWER);break;case r["N"].URL:N["b"].$emit(r["h"].DOWNLOAD_URL,{url:t.targetId,parameters:t.parameters});break;default:break}}},setShowSettings:function(e,t){var n=e.commit;n("SHOW_SETTINGS",t)},setNotificationsParams:function(e,t){var n=e.commit;n("SET_NOTIFICATIONS_PARAMS",t)},setDocumentationView:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_VIEW",t)},setDocumentationSelected:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_SELECTED",t)},setDocumentation:function(e,t){var n=e.commit,o=e.rootGetters;if(!t.view){var a=o["data/documentationContent"].get(t.id);if(!a)return void console.debug("Try to show an unknown document: ".concat(t.id));t.view=r["m"][a.type]}n("SET_DOCUMENTATION_VIEW",t.view),n("SET_DOCUMENTATION_SELECTED",t.id),N["b"].$emit(r["h"].SHOW_DOCUMENTATION),N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.id,selected:!0})},changeInDocumentation:function(e,t){var n=e.commit;if(t.viewsAffected){var o=t.viewsAffected.filter(function(e){return e!==r["n"].REFERENCES&&e!==r["n"].MODELS});if(o.length>1&&o.includes(r["n"].TABLES)){var a=o.indexOf(r["n"].REPORT);-1!==a&&o.splice(a,1)}o.length>0&&n("SET_RELOAD_VIEWS",o)}},removeReloadView:function(e,t){var n=e.commit;n("REMOVE_RELOAD_VIEW",t)},setTableFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setTextFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setViewCoordinates:function(e,t){var n=e.commit;n("SET_VIEW_COORDINATES",t)}},C={namespaced:!0,state:c,getters:f,mutations:m,actions:R},g=(n("456d"),n("970b")),L=n.n(g),w=n("5bc30"),P=n.n(w),D=function(){function e(){L()(this,e),this.items=[]}return P()(e,[{key:"push",value:function(e){this.items.push(e)}},{key:"pop",value:function(e){if("undefined"!==typeof e&&e>0){if(e>this.size()-1)throw Error("Stack overflow");return this.items.splice(e+1),this.items.peek()}return this.items.pop()}},{key:"peek",value:function(){return 0===this.items.length?null:this.items[this.items.length-1]}},{key:"previous",value:function(){return this.items.length<=1?null:this.items[this.items.length-2]}},{key:"size",value:function(){return this.items.length}},{key:"findIndex",value:function(e){return this.items.findIndex(e)}},{key:"findItem",value:function(e){return this.items.find(function(t){return t.id===e})}},{key:"map",value:function(e){return this.items.map(e)}},{key:"empty",value:function(){this.items.splice(0)}},{key:"isEmpty",value:function(){return 0===this.items.length}},{key:"toArray",value:function(){return this.items}}]),e}(),M={sessionReference:null,tree:[],userTree:[],lasts:[],contexts:new D,contextCustomLabel:null,scaleReference:null,schedulingResolution:null,proposedContext:null,scaleLocked:{space:!1,time:!1},nextScale:null,observations:[],contextMenuObservationId:null,knowledgeViews:[],timeEvents:[],modificationsTask:null,timestamp:-1,engineTimestamp:-1,dataflow:null,dataflowStatuses:[],dataflowInfo:null,session:null,contextsHistory:[],waitingForReset:null,orphans:[],searchResult:null,childrenToAskFor:r["g"].CHILDREN_TO_ASK_FOR,interactiveMode:!1,crossingIDL:!1,capabilities:{},local:!1,token:null,packageVersion:"0.21.01",packageBuild:"0",terminalsCounter:0,terminals:[],terminalCommands:null!==localStorage.getItem(r["O"].LOCAL_STORAGE_TERMINAL_COMMANDS)?JSON.parse(localStorage.getItem(r["O"].LOCAL_STORAGE_TERMINAL_COMMANDS)):[],documentationTrees:Object.keys(r["n"]).map(function(e){return{view:e,tree:[]}}),documentationContent:new Map},y=(n("55dd"),{sessionReference:function(e){return e.sessionReference},isDeveloper:function(e){return e.sessionReference&&e.sessionReference.owner&&e.sessionReference.owner.groups&&-1!==e.sessionReference.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})},tree:function(e){return e.tree},treeNode:function(e){return function(t){return Object(d["f"])(e.tree,t)}},lasts:function(e){return e.lasts},hasTree:function(e){return e.tree.length>0},mainTreeHasNodes:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return null!==Object(d["e"])(e.tree,"",function(e){return e.userNode||t&&!e.ticked?null:e})}},userTree:function(e){return e.userTree},observations:function(e){return e.observations},observationsOfViewer:function(e){return function(t){return e.observations.filter(function(e){return e.viewerIdx===t})}},hasObservations:function(e){return 0!==e.observations.length},visibleObservations:function(e){return e.observations.filter(function(e){return e.visible})},observationsIdOnTop:function(e){return e.observations.filter(function(e){return e.top}).map(function(e){return e.id})},contextMenuObservationId:function(e){return e.contextMenuObservationId},knowledgeViews:function(e){return e.knowledgeViews},visibleKnowledgeView:function(e){return e.knowledgeViews.find(function(e){return e.show})},timeEvents:function(e){return e.timeEvents},timeEventsOfObservation:function(e){return function(t){return e.timeEvents.filter(function(e){return e.id===t})}},timeEventsUntil:function(e){return function(t){return e.timeEventsEvents.filter(function(e){return e.timestamp<=t})}},modificationsTask:function(e){return e.modificationsTask},visibleEvents:function(e){var t=e.observations.filter(function(e){return e.visible}).map(function(e){return e.id});return e.timeEvents.filter(function(e){return t.includes(e.id)})},timestamp:function(e){return e.timestamp},engineTimestamp:function(e){return e.engineTimestamp},dataflow:function(e){return e.dataflow},hasDataflow:function(e){return null!==e.dataflow},dataflowStatuses:function(e){return e.dataflowStatuses},dataflowInfo:function(e){return e.dataflowInfo},contextsId:function(e){return e.contexts.map(function(e){return e.id})},context:function(e){return e.contexts.peek()},contextsCount:function(e){return e.contexts.size()},previousContext:function(e){return e.contexts.previous()},contextById:function(e){return function(t){return e.contexts.findItem(t)}},proposedContext:function(e){return e.proposedContext},hasContext:function(e,t){return null!==t.context},contextLabel:function(e,t){return null!==t.context?t.context.label:null},contextCustomLabel:function(e){return null!==e.contextCustomLabel?e.contextCustomLabel:null},contextsLabels:function(e,t){return null!==t.context?e.contexts.map(function(e){return{label:e.label,contextId:e.id}}):[]},contextId:function(e,t){return null!==t.context?t.context.id:null},contextEncodedShape:function(e,t){return null!==t.context?"".concat(t.context.spatialProjection," ").concat(t.context.encodedShape):""},contextsHistory:function(e){return e.contextsHistory.length>0&&e.contextsHistory.sort(function(e,t){return e.creationTime===t.creationTime?0:e.creationTime>t.creationTime?-1:1}),e.contextsHistory},contextReloaded:function(e,t){return null!==t.context&&"undefined"!==typeof t.context.restored&&t.context.restored},contextHasTime:function(e,t){return null!==t.context&&t.context.scaleReference&&0!==t.context.scaleReference.end},session:function(e){return e.session},scaleReference:function(e,t){return null!==t.context?t.context.scaleReference:e.scaleReference},schedulingResolution:function(e){return e.schedulingResolution},isScaleLocked:function(e){return e.scaleLocked},nextScale:function(e){return e.nextScale},hasNextScale:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!==e.nextScale&&(null===t||t===r["A"].ST_SPACE&&e.nextScale.spaceChanged||t===r["A"].ST_SPACE&&e.nextScale.spaceChanged)}},capabilities:function(e){return e.capabilities},searchResult:function(e){return e.searchResult},interactiveMode:function(e){return e.interactiveMode},isCrossingIDL:function(e){return e.crossingIDL},isLocal:function(e){return e.local},terminals:function(e){return e.terminals},hasActiveTerminal:function(e){return-1!==e.terminals.findIndex(function(e){return e.active})},terminalCommands:function(e){return e.terminalCommands},documentationTrees:function(e){return e.documentationTrees},documentationContent:function(e){return e.documentationContent}}),x=n("9523"),k=n.n(x),U=n("1442"),V={SET_SESSION_REFERENCE:function(e,t){e.sessionReference=t},SET_CONTEXT:function(e,t){var n=t.context,o=void 0===n?null:n,a=t.isRecontext,i=void 0!==a&&a;if(null===o)e.contexts.empty();else{var s=e.contexts.findIndex(function(e){return e.id===o.id});if(-1===s){if(i){var c=e.contexts.peek();o.scaleReference=c.scaleReference}e.contexts.push(o)}else e.contexts.pop(s)}e.tree=[],e.userTree=[],e.lasts=[],e.observations=[],e.knowledgeViews=[],e.dataflow=null,e.dataflowStatuses=[],e.dataflowInfo=null,e.nodeSelected=null,e.nextScale=null,e.crossingIDL=!1,e.contextCustomLabel=null,e.timeEvents=[],e.timestamp=-1,e.engineTimestamp=-1,e.proposedContext=null,e.documentationTrees.forEach(function(e){e.tree.splice(0,e.tree.length)}),e.documentationContent.clear(),e.documentationView=r["n"].REPORT,null===o?e.contextsHistory=[]:"undefined"===typeof o.restored&&(o.restored=!1),e.schedulingResolution=null},SET_CONTEXT_CUSTOM_LABEL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.contextCustomLabel=t},WAITING_FOR_RESET:function(e,t){e.waitingForReset=t},STORE_CONTEXT:function(e,t){var n=e.contextsHistory.find(function(e){return e.id===t.id});"undefined"===typeof n?(console.debug("Added new context in store with id ".concat(t.id)),e.contextsHistory.push(t)):console.debug("Context with id ".concat(t.id," yet exists in contextHistory"))},ADD_DATAFLOW:function(e,t){e.dataflow=t},SET_DATAFLOW_STATUS:function(e,t){var n=t.id,o=t.status,a=e.dataflowStatuses.find(function(e){return e.id===n});"undefined"!==typeof a?a.status=o:e.dataflowStatuses.push({id:n,status:o})},SET_DATAFLOW_INFO:function(e,t){e.dataflowInfo=t},UPDATE_TIME_EVENTS:function(e,t){t.timeEvents&&t.timeEvents.length>0&&(t.timeEvents.forEach(function(n){e.timeEvents.push({id:t.id,timestamp:n})}),console.debug("Added ".concat(t.timeEvents.length," events")))},ADD_OBSERVATION:function(e,t){var n=t.observation;e.observations.push(n),console.info("Added observation: ".concat(n.label)),console.debug("Observation content: ".concat(JSON.stringify(n,null,2)))},UPDATE_OBSERVATION:function(e,t){var n=t.observationIndex,o=t.newObservation,a=e.observations[n],i=p()({},a,o);e.observations.splice(n,1,i);var r=function(e){e?(e.needUpdate=!i.contextualized,e.dynamic=i.dynamic,e.childrenCount=i.childrenCount,e.children.forEach(function(e){e.siblingsCount=i.childrenCount}),e.tickable=null!==i.viewerIdx&&!i.empty||i.isContainer||i.childrenCount>0,e.exportFormats=i.exportFormats):console.warn("Node of ".concat(i.id," - ").concat(i.label," not found"))},s=Object(d["f"])(e.tree,i.id);r(s),s&&s.userNode&&r(Object(d["f"])(e.userTree,i.id))},SET_CONTEXTMENU_OBSERVATIONID:function(e,t){e.contextMenuObservationId=t},MOD_BRING_FORWARD:function(e,t){var n=e.observations.find(function(e){return e.id===t.id});n||console.warn("Receive a bring forward for an unknown observation: ".concat(t.id," - ").concat(t.label)),n.main=!0,t.main=!0},MOD_STRUCTURE_CHANGE:function(e,t){var n=t.node,o=t.modificationEvent,a=e.observations.find(function(e){return e.id===o.id});a.childrenCount=o.newSize,a.empty=!1,o.exportFormats&&(a.exportFormats=o.exportFormats);var i=function(e){e&&(e.childrenCount=o.newSize,o.exportFormats&&(e.exportFormats=o.exportFormats),e.children.forEach(function(e){e.siblingsCount=o.newSize}),e.tickable=!0,e.disabled=!1,e.empty=!1,e.needUpdate=!0)};i(n),n.userNode&&i(Object(d["f"])(e.userTree,n.id))},MOD_VALUE_CHANGE:function(e,t){if(t.dynamic=!0,t.needUpdate=!1,t.userNode){var n=Object(d["f"])(e.userTree,t.id);n?(n.dynamic=!0,n.needUpdate=!1):console.warn("Node theoretically in user tree but not found: ".concat(t.id," - ").concat(t.label))}},ADD_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.push(p()({},t,{show:!1}))},SHOW_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.forEach(function(e){e.viewId===t&&(e.show=!0)})},ADD_TIME_EVENT:function(e,t){var n=-1!==e.timeEvents.findIndex(function(e){return e.id===t.id&&e.timestamp===t.timestamp&&e.newAttributes===t.newAttributes&&e.newScale===t.newScale&&e.newName===t.newName&&e.newSemantics===t.newSemantics&&e.newSize===t.newSize});n?console.warn("Duplicated time event:\n ".concat(JSON.stringify(t,null,2))):e.timeEvents.push(t)},SET_MODIFICATIONS_TASK:function(e,t){e.modificationsTask=t},SET_TIMESTAMP:function(e,t){e.timestamp=t},SET_ENGINE_TIMESTAMP:function(e,t){e.engineTimestamp=t},SET_SCHEDULING_STATUS:function(e,t){if(null!==e.scaleReference)switch(t.type){case"TIME_ADVANCED":e.engineTimestamp=t.currentTime;break;case"STARTED":e.engineTimestamp=t.currentTime,e.schedulingResolution=t.resolution,N["b"].$emit(r["h"].NEW_SCHEDULING);break;case"FINISHED":e.engineTimestamp=e.scaleReference.end;break;default:console.warn("Unknown scheduling type: ".concat(t.type));break}else console.warn("Try to change scheduling type but no scaleReference")},ADD_NODE:function(e,t){var n=t.node,o=t.parentId,a=t.toUserTreeOnly,i=void 0!==a&&a,r=e.contexts.peek();if(null===r)return console.info("Context is null, it's just set or is a new observation of previous search for this session, so added to orphans. ID: ".concat(n.id)),void e.orphans.push(n);var s=r.id===r.rootContextId;if((s&&n.rootContextId!==r.id||!s&&n.contextId!==r.id)&&console.info("Subcontext or trying to add to tree an observation of other context. Actual: ".concat(r.id," / Node: ").concat(n.rootContextId)),r.id!==n.id)if(r.id===o){if(i||e.tree.push(n),n.userNode){var c=JSON.parse(JSON.stringify(n));e.userTree.push(c)}}else{var l=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=Object(d["f"])(t,o);null!==i?(i.children.length===i.childrenCount&&(i.childrenCount++,i.children.forEach(function(e){e.siblingsCount=i.childrenCount})),i.children.push(p()({},a,{idx:i.children.length,siblingsCount:i.childrenCount})),i.disabled=!1):(console.warn("Orphan founded with id ".concat(n.id)),e.orphans.push(n))};i||l(e.tree),n.userNode&&l(e.userTree,JSON.parse(JSON.stringify(n)))}else console.error("Try to add context to tree, check it!")},REMOVE_NODE:function(e,t){var n=t.id,o=t.fromMainTree,a=void 0!==o&&o,i=a?e.tree:e.userTree,r=function e(t,n){var o=t.findIndex(function(e){return e.id===n});-1===o?t.forEach(function(t){t.children&&0!==t.children.length&&e(t.children,n)}):(t.splice(o,1),console.debug("Find and delete node ".concat(n," from ").concat(a?"main tree":"user tree")))};r(i,n)},UPDATE_USER_NODE:function(e,t){var n=t.node,o=t.userNode,a=function e(t){t.userNode=o,t.children&&t.children.length>0&&t.children.forEach(function(t){return e(t)})};a(n)},SET_FOLDER_VISIBLE:function(e,t){var n=t.nodeId,o=t.visible,a=t.zIndexOffset;if(null!==a){e.observations.forEach(function(e){e.parentArtifactId===n||e.parentId===n?(e.visible=o,e.top=o):o&&e.zIndexOffset===a&&(e.top=!1)});var i=e.observations.find(function(e){return e.id===n});"undefined"!==typeof i&&(i.visible=o)}else console.info("Folder with id ".concat(n," has no loaded elements"));var r=function(e){var t=Object(d["f"])(e,n);"undefined"!==typeof t&&null!==t&&t.children.length>0&&(t.children.forEach(function(e){e.parentArtifactId===t.id&&(e.ticked=o)}),t.ticked=o)};r(e.tree),r(e.userTree)},SET_VISIBLE:function(e,t){var n=t.id,o=t.visible,a=e.observations.findIndex(function(e){return e.id===n}),i=e.observations[a];if("undefined"!==typeof i){var r=i.zIndexOffset;i.visible=o,i.top=o,o&&e.observations.forEach(function(e){e.id!==n&&e.zIndexOffset===r&&(e.top=!1)});var s=function(e){var t=Object(d["f"])(e,n);t&&(t.ticked=o)};s(e.tree),s(e.userTree),e.observations.splice(a,1,i)}else console.warn("Try to change visibility to no existing observations with id ".concat(n))},SET_LOADING_LAYERS:function(e,t){var n=t.loading,o=t.observation;if(o){o.loading=n;var a=Object(d["f"])(e.tree,o.id);if(a&&(a.loading=n,a.userNode)){var i=Object(d["f"])(e.userTree,o.id);i.loading=n}}},STORE_RAW_SEARCH_RESULT:function(e,t){e.searchResult=t},ADD_LAST:function(e,t){var n=t.parentId,o=t.observationId,a=t.offsetToAdd,i=t.total,r=e.lasts.findIndex(function(e){return n===e.parentId});if(-1!==r){var s=e.lasts[r];s.offset+a>=s.total?(e.lasts.splice(r,1),console.info("Folder ".concat(n," fully loaded"))):(s.observationId=o,s.offset+=a,console.info("Loaded more elements in folder ".concat(n,". New offset is ").concat(s.offset," ")))}else{if(a+1===i)return void console.info("Nothing to do in folder ".concat(n,". Offset is ").concat(a," and total is ").concat(i," "));e.lasts.push({parentId:n,observationId:o,offset:a,total:i}),console.debug("Added folder ".concat(n,". Offset is ").concat(a," "))}},SET_SCALE_REFERENCE:function(e,t){null===t.timeUnit&&(t.timeUnit=r["C"].YEAR),e.scaleReference=t,e.context||(null!==e.scaleReference.shape?e.proposedContext=d["a"].readGeometry(e.scaleReference.shape,{dataProjection:U["d"].PROJ_EPSG_4326,featureProjection:U["d"].PROJ_EPSG_3857}):e.proposedContext=null),console.info("Scale reference set: ".concat(JSON.stringify(t,null,2)))},UPDATE_SCALE_REFERENCE:function(e,t){var n,o=t.type,a=t.unit,i=t.timeResolutionMultiplier,s=t.start,c=t.end,l=t.next,u=void 0!==l&&l,d=t.spaceResolution;o===r["A"].ST_SPACE&&0!==d&&Math.round(d)!==d&&(d=d.toFixed(1));var E=p()({},e.scaleReference,(n={},k()(n,"".concat(o,"Unit"),a),k()(n,"".concat(o,"ResolutionDescription"),(d&&0!==d?"".concat(d," "):"")+a),n),o===r["A"].ST_SPACE&&{spaceResolution:d,spaceResolutionConverted:d},o===r["A"].ST_TIME&&{timeResolutionMultiplier:i,start:s,end:c});u?e.nextScale=p()({},E,{spaceChanged:o===r["A"].ST_SPACE,timeChanged:o===r["A"].ST_TIME}):e.scaleReference=E},SET_SCALE_LOCKED:function(e,t){var n=t.scaleType,o=t.scaleLocked;"all"===n?(e.scaleLocked.space=o,e.scaleLocked.time=o):Object.prototype.hasOwnProperty.call(e.scaleLocked,n)?(console.info("Set ".concat(o," to ").concat(n," scale type")),e.scaleLocked[n]=o):console.error("Try to set locked to unknow scale type: ".concat(n))},SET_INTERACTIVE_MODE:function(e,t){e.interactiveMode=t},SET_CROSSING_IDL:function(e,t){e.crossingIDL=t},ADD_TERMINAL:function(e,t){e.terminals.push(t)},REMOVE_TERMINAL:function(e,t){var n=e.terminals.findIndex(function(e){return e.id===t});-1!==n?e.terminals.splice(n,1):console.warn("Trying to remove unknown terminal ".concat(t))},ADD_TERMINAL_COMMAND:function(e,t){e.terminalCommands.push(t),localStorage.setItem(r["O"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},CLEAR_TERMINAL_COMMANDS:function(e){e.terminalCommands.splice(0,e.terminalCommands.length),localStorage.setItem(r["O"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},SET_DOCUMENTATION:function(e,t){var n=t.view,o=t.tree,a=e.documentationTrees.findIndex(function(e){return e.view===n});-1===a?console.warn("Unknown documentation view: ".concat(n)):e.documentationTrees[a].tree=o},ADD_DOCUMENTATION:function(e,t){t.forEach(function(t){e.documentationContent.set(t.id,t)})}},Y=(n("28a5"),n("f559"),n("ffc1"),n("96cf"),n("c973")),F=n.n(Y),W=n("be3b"),G=n("17dc"),j=n("e7d8"),H={loadSessionReference:function(e){var t=e.commit;return new Promise(function(e,n){W["a"].get("".concat("").concat(s["c"].REST_SESSION_INFO),{maxRedirects:0}).then(function(n){var o=n.data;o&&(t("SET_SESSION_REFERENCE",o),e())}).catch(function(e){e.response&&401===e.response.status?n(new Error("Invalid session")):n(new Error("Error retrieving session: ".concat(e)))})})},setContext:function(e,t){var n=t.context,o=t.isRecontext,a=e.commit,i=e.getters,r=e.dispatch;null!==i.context&&i.context.id===n.id||(a("SET_CONTEXT",{context:n,isRecontext:o}),o&&r("view/resetContext",null,{root:!0}),r("view/setContextLayer",n,{root:!0}),console.debug("Send start watch context ".concat(n.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!0,observationId:n.id,rootContextId:n.rootContextId}))},resetContext:function(e){var t=e.commit,n=e.dispatch,o=e.state,a=e.getters,i=a.context;if(null!==i){var c={id:i.id,rootContextId:i.rootContextId};t("SET_CONTEXT",{}),n("getSessionContexts"),n("view/resetContext",null,{root:!0}),null!==o.waitingForReset?(n("loadContext",o.waitingForReset),o.waitingForReset=null):n("addObservation",{observation:r["z"],main:!0}),n("view/addToKlabLog",{type:s["a"].TYPE_INFO,payload:{message:"Context reset",separator:!0}},{root:!0}),console.debug("Send stop watch context ".concat(c.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!1,observationId:c.id,rootContextId:c.rootContextId})}else console.info("Try to reset null context, is initial reset?")},setWaitinForReset:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("WAITING_FOR_RESET",n)},loadContext:function(e,t){var n=e.commit,o=e.dispatch;console.info("Ask for context to restore ".concat(t)),W["a"].get("".concat("").concat(s["c"].REST_SESSION_VIEW,"describe/").concat(t),{params:{childLevel:1}}).then(function(){var e=F()(regeneratorRuntime.mark(function e(a){var i,s,c;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return i=a.data,i.restored=!0,e.next=4,o("setContext",{context:p()({},i,{children:[]})});case 4:if(n("view/SET_RELOAD_DATAFLOW",!0,{root:!0}),console.debug("Context received with id ".concat(i.id)),!(i.children.length>0)){e.next=12;break}return s=[],c=i.children,c.forEach(function(e){null!==e.taskId&&(-1===s.indexOf(e.taskId)&&s.push(e.taskId),o("addObservation",{observation:e,restored:!0}))}),e.next=12,Promise.all(s);case 12:o("view/setSpinner",p()({},r["G"].SPINNER_STOPPED,{owner:t}),{root:!0});case 13:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){throw o("view/setSpinner",p()({},r["G"].SPINNER_ERROR,{owner:t,errorMessage:e}),{root:!0}),e})},getSessionContexts:function(e){var t=e.getters,n=e.commit;return new Promise(function(e,o){if(null!==t.session){var a="".concat("").concat(s["c"].REST_STATUS);Object(d["h"])(t.session,a,{transformRequest:[function(e,t){return delete t.common.Authorization,e}]},function(a,i){var r=a.data;if(console.debug("Contexts history:\n".concat(JSON.stringify(r,null,4))),r&&r.sessions&&r.sessions.length>0){var s=r.sessions.find(function(e){return e.id===t.session});if("undefined"!==typeof s){var c=s.rootObservations;if(null===c||0===Object.keys(c).length&&c.constructor===Object)console.debug("No root observation founded"),e(0);else{console.debug("Find ".concat(Object.keys(c).length," root observations for this session"));var l=0;Object.entries(c).forEach(function(e){n("STORE_CONTEXT",e[1]),l+=1}),e(l)}}else console.warn("No information for session ".concat(t.session,", isn't valid session?")),o(new Error("No information for session ".concat(t.session,", disconnect")))}i()})}else o(new Error("No session established, no useful engine available, disconnect"))})},setContextCustomLabel:function(e,t){var n=e.commit;n("SET_CONTEXT_CUSTOM_LABEL",t)},addObservation:function(e,t){var n=e.commit,o=e.rootGetters,a=e.state,i=e.dispatch,s=t.observation,c=t.toTree,l=void 0===c||c,u=t.visible,E=void 0!==u&&u,f=t.restored,T=void 0!==f&&f,S=t.updated,m=void 0!==S&&S;return new Promise(function(e){var t=a.observations.findIndex(function(e){return e.id===s.id});return-1!==t?(m?(n("UPDATE_OBSERVATION",{observationIndex:t,newObservation:s}),n("UPDATE_TIME_EVENTS",s),console.debug("Observation$ ".concat(s.label," updated"))):i("view/addToKexplorerLog",{type:r["v"].TYPE_WARNING,payload:{message:"Existing observation received: ".concat(s.label)},important:!0},{root:!0}),e()):(i("view/assignViewer",{observation:s},{root:!0}).then(function(t){if(s.viewerIdx=t,s.visible=E,s.top=!1,s.zIndex=0,s.layerOpacity=s.layerOpacity||1,s.colormap=s.colormap||null,s.tsImages=[],s.isContainer=s.observationType===r["x"].TYPE_GROUP||s.observationType===r["x"].TYPE_VIEW,s.singleValue=s.observationType===r["x"].TYPE_STATE&&1===s.valueCount,s.loading=!1,s.loaded=!0,null===s.contextId){var a=o["stomp/tasks"].find(function(e){return s.taskId.startsWith(e.id)});if(a){var c=a.contextId;s.contextId=c}else s.contextId=s.rootContextId}if(n("ADD_OBSERVATION",{observation:p()({},s,{children:[]}),restored:T}),n("UPDATE_TIME_EVENTS",s),s.observationType===r["x"].TYPE_INITIAL)return e();if(s.children.length>0&&(s.disabled=!1,s.children.forEach(function(e){i("addObservation",{observation:e})})),l){var u=Object(d["l"])(s);if(n("ADD_NODE",u),s.childrenCount>0&&0===s.children.length){var f=u.node;i("addStub",f)}}return e()}),null)})},updateObservation:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.observationId,r=t.exportFormats,c=a.observations.findIndex(function(e){return e.id===i});-1!==c?W["a"].get("".concat("").concat(s["c"].REST_SESSION_VIEW,"describe/").concat(i),{params:{childLevel:0}}).then(function(e){var t=e.data;if(t){if(r&&(t.exportFormats=r),n("UPDATE_OBSERVATION",{observationIndex:c,newObservation:t}),t.childrenCount>0){var s=Object(d["f"])(a.tree,t.id),l=s.children,u=l.length>0;u&&1===l.length&&(u=!l[0].id.startsWith("STUB")),u&&o("askForChildren",{parentId:i,count:Math.max(l.length,a.childrenToAskFor),total:t.childrenCount,updated:!0})}}else console.warn("Ask for update observation ".concat(i," but nothing found in engine"))}):console.warn("Try to update a not existing observation: ".concat(i))},addStub:function(e,t){var n=e.commit;n("ADD_NODE",{node:p()({},t,{id:"STUB-".concat(t.id),observable:"",label:"",children:[],childrenCount:0,childrenLoaded:0,siblingsCount:t.childrenCount,parentArtifactId:t.id,tickable:!1,disabled:!0,empty:!0,actions:{},header:"stub",main:!1,isContainer:!1,exportFormats:{},observationType:r["x"].TYPE_INITIAL,noTick:!0,parentId:t.id,dynamic:!1},t.userNode&&{userNode:t.userNode}),parentId:t.id}),n("ADD_LAST",{parentId:t.id,observationId:"STUB-".concat(t.id),offsetToAdd:0,total:t.childrenCount})},addKnowledgeView:function(e,t){var n=e.commit;n("ADD_KNOWLEDGE_VIEW",t)},showKnowledgeView:function(e,t){var n=e.commit;n("SHOW_KNOWLEDGE_VIEW",t)},addModificationEvent:function(e,t){var n=e.rootGetters,o=e.state,a=e.commit,i=e.dispatch,s=Object(d["f"])(o.tree,t.id);if(s)switch(t.type){case r["w"].BRING_FORWARD:a("MOD_BRING_FORWARD",s),i("changeTreeOfNode",{id:t.id,isUserTree:!0});break;case r["w"].VALUE_CHANGE:a("MOD_VALUE_CHANGE",s),a("ADD_TIME_EVENT",t),null===o.modificationsTask&&i("setModificationsTask",n["stomp/lastActiveTask"]());break;case r["w"].STRUCTURE_CHANGE:a("MOD_STRUCTURE_CHANGE",{node:s,modificationEvent:t}),s.childrenCount>0&&0===s.children.length&&i("addStub",s);break;case r["w"].CONTEXTUALIZATION_COMPLETED:i("updateObservation",{observationId:t.id,exportFormats:t.exportFormats});break;default:console.warn("Unknown modification event: ".concat(t.type));break}else t.id!==t.contextId?console.debug("Modification event for a not existing node, probably still not loaded",t):console.debug("Modification event for context",t)},setModificationsTask:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SET_MODIFICATIONS_TASK",n)},setTimestamp:function(e,t){var n=e.commit;t&&-1!==t&&(t=Math.round(t)),n("SET_TIMESTAMP",t)},setScheduling:function(e,t){var n=e.commit,o=e.getters;o.context&&t.contextId===o.context.id?n("SET_SCHEDULING_STATUS",t):console.debug("Received a scheduling of other context: ".concat(t.contextId))},askForChildren:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.parentId,c=t.total,l=t.offset,u=void 0===l?0:l,E=t.count,f=void 0===E?a.childrenToAskFor:E,T=t.toTree,S=void 0===T||T,m=t.visible,O=void 0!==m&&m,b=t.notified,A=void 0===b||b,_=t.updated,I=void 0!==_&&_;return new Promise(function(e){console.debug("Ask for children of node ".concat(i,": count:").concat(f," / offset ").concat(u)),o("view/setSpinner",p()({},r["G"].SPINNER_LOADING,{owner:i}),{root:!0}).then(function(){W["a"].get("".concat("").concat(s["c"].REST_SESSION_VIEW,"children/").concat(i),{params:{count:f,offset:u}}).then(function(t){var s=t.data;s&&s.length>0?s.forEach(function(t,l,u){t.notified=A,t.siblingsCount=c,o("addObservation",{observation:t,toTree:S,visible:O,updated:I}).then(function(){if(l===u.length-1){S&&n("ADD_LAST",{parentId:i,observationId:t.id,offsetToAdd:s.length,total:c});var E=function(e){var t=Object(d["f"])(e,i);t&&null!==t&&(t.childrenLoaded+=s.length)};E(a.tree),E(a.userTree),o("view/setSpinner",p()({},r["G"].SPINNER_STOPPED,{owner:i}),{root:!0}),e()}})}):(o("view/setSpinner",p()({},r["G"].SPINNER_STOPPED,{owner:i}),{root:!0}),e())})})})},addChildrenToTree:function(e,t){var n=e.dispatch,o=e.commit,a=e.state,i=t.parent,r=t.count,s=void 0===r?a.childrenToAskFor:r;if(i&&null!==i)for(var c=a.observations.filter(function(e){return e.parentArtifactId===i.id||e.parentId===i.id}),l=c.length,u=i.children.length,E=u,f=0;E0&&0===T.children.length&&n("addStub",p.node),f!==s-1&&E!==l-1||o("ADD_LAST",{parentId:i.id,observationId:T.id,offsetToAdd:f+1,total:i.childrenLoaded})}},changeTreeOfNode:function(e,t){var n=e.commit,o=e.state,a=t.id,i=t.isUserTree,r=Object(d["f"])(o.tree,a);i?null===Object(d["f"])(o.userTree,a)?(n("UPDATE_USER_NODE",{node:r,userNode:!0}),n("ADD_NODE",{node:r,parentId:r.parentArtifactId||r.parentId,toUserTreeOnly:!0})):console.warn("Try to move to user tree an existing node: ".concat(a," - ").concat(r.label)):(n("UPDATE_USER_NODE",{node:r,userNode:!1}),n("REMOVE_NODE",{id:a}))},setVisibility:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.node,r=t.visible;if(i.isContainer){if(0!==i.childrenCount&&null===i.viewerIdx){var s=a.observations.find(function(e){return e.parentArtifactId===i.id||e.parentId===i.id});if("undefined"!==typeof s){var c=s.viewerIdx,l=s.viewerType,u=s.zIndexOffset;i.viewerIdx=c,i.viewerType=l,i.zIndexOffset=u}else i.zIndexOffset=null}null!==i.viewerIdx&&o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_FOLDER_VISIBLE",{nodeId:i.id,visible:r,zIndexOffset:i.zIndexOffset})}else o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_VISIBLE",{id:i.id,visible:r})},putObservationOnTop:function(e,t){var n=e.commit;n("SET_VISIBLE",{id:t,visible:!0})},setContextMenuObservationId:function(e,t){var n=e.commit;n("SET_CONTEXTMENU_OBSERVATIONID",t)},selectNode:function(e,t){var n=e.dispatch,o=e.state;if(null===t)n("view/setObservationInfo",null,{root:!0});else{var a=o.observations.find(function(e){return e.id===t});a&&(a.visible&&!a.top&&n("setVisibility",{node:a,visible:!0}),n("view/setObservationInfo",a,{root:!0}))}},setLoadingLayers:function(e,t){var n=e.commit,o=t.loading,a=t.observation;a&&n("SET_LOADING_LAYERS",{loading:o,observation:a})},addDataflow:function(e,t){var n=e.commit;"undefined"===typeof t||null===t?console.warn("Try to layout an empty ELK dataflow"):(n("ADD_DATAFLOW",t),n("view/SET_RELOAD_DATAFLOW",!0,{root:!0}))},setDataflowStatus:function(e,t){var n=e.commit,o=t.id,a=t.status;n("SET_DATAFLOW_STATUS",{id:o,status:a})},setDataflowInfo:function(e,t){var n=e.commit;if(null===t)n("SET_DATAFLOW_INFO",null);else{var o=t.id,a=t.html,i=t.rateable,r=t.rating,s=t.averageRating;if(null!==o&&""!==o){var c=o.split("."),l=c[c.length-1],u=c.slice(0,c.length-1);n("SET_DATAFLOW_INFO",{elementId:l,elementTypes:u,html:a,rateable:i,rating:r,averageRating:s})}}},storeSearchResult:function(e,t){var n=e.commit;n("STORE_RAW_SEARCH_RESULT",t)},setScaleReference:function(e,t){var n=e.commit;n("SET_SCALE_REFERENCE",t)},updateScaleReference:function(e,t){var n=e.commit;n("UPDATE_SCALE_REFERENCE",t)},setScaleLocked:function(e,t){var n=e.commit,o=t.scaleType,a=t.scaleLocked;n("SET_SCALE_LOCKED",{scaleType:o,scaleLocked:a})},setInteractiveMode:function(e,t){var n=e.commit;n("SET_INTERACTIVE_MODE",t)},setCrossingIDL:function(e,t){var n=e.commit;n("SET_CROSSING_IDL",t)},addTerminal:function(e,t){var n=e.state,o=e.commit,a=t.id,i=t.active,s=t.type;if(a){var c=n.terminals.findIndex(function(e){return e.id===a});-1!==c?console.warn("Terminal already exists"):n.terminals[c].active=!0}else a="".concat(n.session,"-").concat(++n.terminalsCounter),o("ADD_TERMINAL",{id:a,active:"undefined"===typeof i||i,type:s||r["J"].CONSOLE})},removeTerminal:function(e,t){var n=e.commit;n("REMOVE_TERMINAL",t)},addTerminalCommand:function(e,t){var n=e.commit;n("ADD_TERMINAL_COMMAND",t)},clearTerminalCommands:function(e){var t=e.commit;t("CLEAR_TERMINAL_COMMANDS")},loadDocumentation:function(e){var t=e.dispatch,n=e.getters,o=e.rootGetters,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(e,i){if(null===n.contextId)return console.warn("Ask documentation without context"),void i(new Error("Ask documentation without context"));null===a&&(a=o["view/documentationView"],null===a&&console.warn("No view selected")),W["a"].get("".concat("").concat(s["c"].REST_SESSION_OBSERVATION,"documentation/").concat(a,"/").concat(n.contextId),{}).then(function(n){var o=n.data;""===o?(console.warn("Empty report"),e(!1)):t("refreshDocumentation",{view:a,documentation:o}).then(function(){t("view/removeReloadView",a,{root:!0}).then(function(){e(!0)})})}).catch(function(e){i(e)})})},refreshDocumentation:function(e,t){var n=e.commit,o=t.view,a=t.documentation,i=[],s=[],c=new Map,l=function e(t,n,o,a){var i,l;switch(n.type===r["l"].SECTION?l=null===o?"".concat(a,"."):"".concat(o).concat(a,"."):(l=c.has(n.type)?c.get(n.type)+1:1,c.set(n.type,l)),n.type){case r["l"].SECTION:i="".concat(l," ").concat(n.title);break;case r["l"].TABLE:i="".concat(Object(j["b"])().tc("label.reportTable")," ").concat(l,". ").concat(n.bodyText);break;case r["l"].RESOURCE:i=n.title;break;case r["l"].MODEL:i=n.id;break;case r["l"].REFERENCE:i=n.id;break;case r["l"].FIGURE:i="".concat(Object(j["b"])().tc("label.reportFigure")," ").concat(l,". ").concat(n.figure.label);break;default:i=n.type}var u={type:n.type,id:n.id,idx:l,parentId:n.parentId,previousId:n.previousId,nextId:n.nextId,label:i,children:[]},d=0;n.children.forEach(function(t){var n=-1;t.type===r["l"].SECTION&&(n=++d),e(u.children,t,l,n)}),t.push(u),s.push({id:n.id,idx:l,label:i,type:n.type,title:n.title,subtitle:n.subtitle,bodyText:n.bodyText,model:n.model,section:n.section,resource:n.resource,table:n.table,figure:n.figure,reference:n.reference})},u=0;a.forEach(function(e,t){l(i,e,null,e.type===r["l"].SECTION?++u:t)}),n("SET_DOCUMENTATION",{view:o,tree:i}),n("ADD_DOCUMENTATION",s)}},z={namespaced:!0,state:M,getters:y,mutations:V,actions:H},B={stompClient:null,connectionState:r["f"].CONNECTION_UNKNOWN,reconnectionsAttempt:0,subscriber:null,sentMessages:[],receivedMessages:[],queuedMessage:null,tasks:[],subscriptions:[]},K={connectionDown:function(e){return e.connectionState!==r["f"].CONNECTION_UP},lastError:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["v"].TYPE_ERROR}).slice(-1);return 1===t.length?t[0]:null},lastMessage:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["v"].TYPE_MESSAGE}).slice(-1);return 1===t.length?t[0]:null},lastReceivedMessage:function(e){return e.receivedMessages.length>0?e.receivedMessages.slice(-1)[0]:null},lastSendedMessage:function(e){return e.sentMessages.length>0?e.sentMessages.slice(-1)[0]:null},subscriberId:function(e){return null!==e.subscriber?e.subscriber.id:null},queuedMessage:function(e){return e.queuedMessage},connectionState:function(e){return e.connectionState},connectionUp:function(e){return e.connectionState===r["f"].CONNECTION_UP},tasks:function(e){return e.tasks},taskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.id===t&&e.alive})}},taskOfContextIsAlive:function(e,t,n,o){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===o["data/contextId"]&&e.alive})},contextTaskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===t&&e.alive})}},hasTasks:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return-1!==e.tasks.findIndex(function(e){return e.alive&&(null===t||e.contextId===t)})}},lastActiveTask:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e.tasks.filter(function(e){return e.alive&&(null===t||e.contextId===t)});return n.length>0?n.pop():null}}},X={STOMP_CONNECTION_STATE:function(e,t){e.connectionState=t},STOMP_ERROR:function(e,t){Object(d["p"])(e.receivedMessages,{date:_()().format("HH:mm:ss"),type:r["v"].TYPE_ERROR,message:t})},STOMP_MESSAGE:function(e,t){Object(d["p"])(e.receivedMessages,{date:_()().format("HH:mm:ss"),type:r["v"].TYPE_MESSAGE,message:t})},STOMP_SEND_MESSAGE:function(e,t){Object(d["p"])(e.sentMessages,p()({date:_()().format("HH:mm:ss")},t))},STOMP_SUBSCRIBED:function(e,t){e.subscriber=t},STOMP_RECONNECTIONS_ATTEMPT:function(e,t){e.reconnectionsAttempt=t},STOMP_RECONNECTIONS_ATTEMPT_RESET:function(e){e.reconnectionsAttempt=0},STOMP_QUEUE_MESSAGE:function(e,t){e.queuedMessage=t},STOMP_CLEAN_QUEUE:function(e){e.queuedMessage=null},TASK_START:function(e,t){var n=t.id,o=t.contextId,a=t.description;-1!==e.tasks.findIndex(function(e){return e.id===n})?console.debug("Received duplicated start task id: ".concat(n," - ").concat(a)):e.tasks.push({id:n,contextId:o,description:a,alive:!0})},TASK_END:function(e,t){var n=t.id,o=e.tasks.findIndex(function(e){return e.id===n});if(-1!==o){var a=e.tasks[o];a.alive=!1,e.tasks.splice(o,1,a)}else console.debug("Task with id = ".concat(n," not founded or is not alive"))}};function Q(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e("view/addToKexplorerLog",{type:t,payload:{message:n,attach:o},important:a},{root:!0})}var q=(o={},k()(o,s["a"].TYPE_TASKSTARTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskStart",n,{root:!0}),Q(o,r["v"].TYPE_DEBUG,"Started task with id ".concat(n.id)),o("view/addToStatusTexts",{id:n.id,text:n.description},{root:!0})}),k()(o,s["a"].TYPE_TASKABORTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskAbort",n,{root:!0}),Q(o,r["v"].TYPE_ERROR,"Aborted task with id ".concat(n.id),n),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,s["a"].TYPE_TASKFINISHED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskEnd",n,{root:!0}),Q(o,r["v"].TYPE_DEBUG,"Ended task with id ".concat(n.id)),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,s["a"].TYPE_DATAFLOWCOMPILED,function(e,t){var n=e.payload,o=t.dispatch;if("undefined"!==typeof n.jsonElkLayout&&null!==n.jsonElkLayout)try{var a=JSON.parse(n.jsonElkLayout);Q(o,r["v"].TYPE_DEBUG,"Dataflow compiled in task ".concat(n.taskId)),o("data/addDataflow",a,{root:!0})}catch(e){Q(o,r["v"].TYPE_ERROR,"Error in dataflos layout in task ".concat(n.taskId,": ").concat(e))}else Q(o,r["v"].TYPE_WARN,"Dataflow in task ".concat(n.taskId," has no layout"))}),k()(o,s["a"].TYPE_DATAFLOWSTATECHANGED,function(e,t){var n,o=e.payload,a=t.dispatch;n="STARTED"===o.status?r["i"].PROCESSING:"FINISHED"===o.status?r["i"].PROCESSED:"ABORTED"===o.status?r["i"].ABORTED:r["i"].WAITING,a("data/setDataflowStatus",{id:o.nodeId,status:n},{root:!0})}),k()(o,s["a"].TYPE_DATAFLOWDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;n&&null!==n&&n.dataflowId&&n.htmlDescription?(Q(o,r["v"].TYPE_DEBUG,"Dataflow element info received",n),o("data/setDataflowInfo",{id:n.dataflowId,html:n.htmlDescription,rateable:n.rateable,rating:n.rating,averageRating:n.averageRating},{root:!0})):Q(o,r["v"].TYPE_WARNING,"Strange payload of dataflow element info received",n)}),k()(o,s["a"].TYPE_NEWOBSERVATION,function(e,t){var n=e.payload,o=t.rootState,a=t.rootGetters,i=t.dispatch,s=o.stomp.tasks.find(function(e){return e.id===n.taskId});"undefined"===typeof s&&-1!==o.data.contextsHistory.findIndex(function(e){return e.id===n.contextId})&&(i("stomp/taskStart",{id:n.taskId,description:r["p"].UNKNOWN_SEARCH_OBSERVATION,contextId:n.contextId},{root:!0}),i("view/addToStatusTexts",{id:n.taskId,text:r["p"].UNKNOWN_SEARCH_OBSERVATION},{root:!0}),Q(i,r["v"].TYPE_INFO,"Received an observation of previous context with no task associated. Session was been reloaded?",n)),null===n.parentId?null===a["data/context"]?(Q(i,r["v"].TYPE_DEBUG,"New context received with id ".concat(n.id),n),i("data/setContext",{context:n},{root:!0}),"undefined"!==typeof n.scaleReference&&null!==n.scaleReference&&i("data/setScaleReference",n.scaleReference,{root:!0})):Q(i,r["v"].TYPE_ERROR,"Strange behaviour: observation with no parent in existing context: ".concat(n.id," - ").concat(n.label),n):null!==a["data/context"]&&(a["data/context"].id===n.rootContextId||s&&a["data/context"].id===s.contextId)?(Q(i,r["v"].TYPE_INFO,"New observation received with id ".concat(n.id,", rootContextId ").concat(n.rootContextId," and contextId ").concat(n.contextId),n),n.notified=!0,i("data/addObservation",{observation:n},{root:!0})):Q(i,r["v"].TYPE_INFO,"Received an observation of different context",n,null,4)}),k()(o,s["a"].TYPE_MODIFIEDOBSERVATION,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_DEBUG,"Received a modification event",n),o("data/addModificationEvent",n,{root:!0})}),k()(o,s["a"].TYPE_QUERYRESULT,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_INFO,"Received search results",n),o("data/storeSearchResult",n,{root:!0})}),k()(o,s["a"].TYPE_RESETCONTEXT,function(e,t){var n=t.dispatch;Q(n,r["v"].TYPE_INFO,"Received context reset"),N["b"].$emit(r["h"].RESET_CONTEXT),n("data/resetContext",null,{root:!0})}),k()(o,s["a"].TYPE_SCALEDEFINED,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_INFO,"Received scale reference",n),o("data/setScaleReference",n,{root:!0})}),k()(o,s["a"].TYPE_USERINPUTREQUESTED,function(e,t){var n=t.dispatch;Q(n,r["v"].TYPE_INFO,"Received input request",e.payload),n("view/inputRequest",e,{root:!0})}),k()(o,s["a"].TYPE_SCHEDULEADVANCED,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_INFO,"Received schedule advanced",n),o("data/setScheduling",n,{root:!0})}),k()(o,s["a"].TYPE_SCHEDULINGSTARTED,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_INFO,"Received scheduling started",n),o("data/setScheduling",n,{root:!0})}),k()(o,s["a"].TYPE_SCHEDULINGFINISHED,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_INFO,"Received scheduling finished",n),o("data/setScheduling",n,{root:!0})}),k()(o,s["a"].TYPE_ENGINEEVENT,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_INFO,"Engine event received",n),o("view/setEngineEvent",n,{root:!0})}),k()(o,s["a"].TYPE_DEBUG,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_DEBUG,n)}),k()(o,s["a"].TYPE_INFO,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_INFO,n)}),k()(o,s["a"].TYPE_WARNING,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_WARNING,n)}),k()(o,s["a"].TYPE_ERROR,function(e,t){var n=e.payload,o=t.dispatch;n===r["f"].UNKNOWN_IDENTITY?N["b"].$emit(r["h"].SESSION_CUT):Q(o,r["v"].TYPE_ERROR,n)}),k()(o,s["a"].TYPE_USERPROJECTOPENED,function(e,t){var n=t.dispatch;Q(n,r["v"].TYPE_INFO,"Project opened in k.Modeler")}),k()(o,s["a"].TYPE_NETWORKSTATUS,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_INFO,"Network status received",n)}),k()(o,s["a"].TYPE_AUTHORITYDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;Q(o,r["v"].TYPE_INFO,"Authority documentation message received",n)}),k()(o,s["a"].TYPE_SETUPINTERFACE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setLayout",n,{root:!0}),Q(o,r["v"].TYPE_INFO,"App ".concat(n.name," loaded"),n,!0)}),k()(o,s["a"].TYPE_CREATEMODALWINDOW,function(e,t){var n=e.payload,o=t.dispatch;o("view/setModalWindow",n,{root:!0}),Q(o,r["v"].TYPE_INFO,"Modal ".concat(n.name," loaded"),n)}),k()(o,s["a"].TYPE_CREATEVIEWCOMPONENT,function(e,t){var n=e.payload,o=t.dispatch;o("view/createViewComponent",n,{root:!0}),Q(o,r["v"].TYPE_INFO,"New create view component received",n)}),k()(o,s["a"].TYPE_VIEWACTION,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewAction",n,{root:!0}),N["b"].$emit(r["h"].VIEW_ACTION),Q(o,r["v"].TYPE_INFO,"New view action received",n)}),k()(o,s["a"].TYPE_VIEWSETTING,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewSetting",n,{root:!0}),Q(o,r["v"].TYPE_INFO,"New view setting received",n)}),k()(o,s["a"].TYPE_VIEWAVAILABLE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setDocumentation",{id:n.viewId,view:n.viewClass},{root:!0}),Q(o,r["v"].TYPE_INFO,"New documentation available",n)}),k()(o,s["a"].TYPE_DOCUMENTATIONCHANGED,function(e,t){var n=e.payload,o=t.dispatch;o("view/changeInDocumentation",n,{root:!0}),Q(o,r["v"].TYPE_INFO,"New change in documentation",n)}),k()(o,s["a"].TYPE_COMMANDRESPONSE,function(e,t){var n=e.payload,o=t.dispatch;N["b"].$emit(r["h"].COMMAND_RESPONSE,n),Q(o,r["v"].TYPE_INFO,"Command response received",n)}),o),J=function(e){var t=e.body,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=JSON.parse(t),a=n.dispatch;return o.messageClass===s["a"].CLASS_NOTIFICATION&&a("view/addToKlabLog",o,{root:!0}),Object.prototype.hasOwnProperty.call(q,o.type)?q[o.type](o,n):(console.warn("Unknown parser ".concat(o.type)),!1)},Z={stomp_onconnect:function(e,t){var n=e.commit;n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_UP),n("STOMP_RECONNECTIONS_ATTEMPT_RESET"),n("STOMP_MESSAGE",t)},stomp_onclose:function(e){var t=e.commit;t("STOMP_CONNECTION_STATE",r["f"].CONNECTION_DOWN)},stomp_onerror:function(e,t){var n=e.dispatch;n("setConnectionState",{state:r["f"].CONNECTION_ERROR,message:t})},setConnectionState:function(e,t){var n=e.commit,o=t.state,a=t.message;n("STOMP_CONNECTION_STATE",o),n("STOMP_ERROR",a)},stomp_onmessage:function(e,t){var n=e.commit;n("STOMP_MESSAGE",t),J(t,e)},stomp_onsubscribe:function(e,t){var n=e.commit;n("STOMP_SUBSCRIBED",t)},stomp_reconnect:function(e,t){var n=e.commit;n("STOMP_RECONNECTIONS_ATTEMPT",t),n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_WORKING)},stomp_onsend:function(e,t){var n=e.commit,o=t.message;n("STOMP_SEND_MESSAGE",o)},stomp_onerrorsend:function(e,t){var n=e.commit;n("STOMP_QUEUE_MESSAGE",t)},stomp_cleanqueue:function(e){var t=e.commit;t("STOMP_CLEAN_QUEUE")},taskStart:function(e,t){var n=e.commit,o=e.dispatch;o("view/setSpinner",p()({},r["G"].SPINNER_LOADING,{owner:t.id}),{root:!0}),n("TASK_START",t)},taskAbort:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["G"].SPINNER_STOPPED,{owner:t.id}),{root:!0})},taskEnd:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["G"].SPINNER_STOPPED,{owner:t.id}),{root:!0})}},$={namespaced:!0,state:B,getters:K,mutations:X,actions:Z};a["a"].use(i["a"]);var ee=new i["a"].Store({modules:{view:C,data:z,stomp:$}});t["a"]=ee},4678:function(e,t,n){var o={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d833","./ar-tn.js":"6d833","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(e){var t=i(e);return n(t)}function i(e){var t=o[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id="4678"},"7cca":function(e,t,n){"use strict";n.d(t,"g",function(){return l}),n.d(t,"t",function(){return u}),n.d(t,"L",function(){return d}),n.d(t,"M",function(){return E}),n.d(t,"u",function(){return f}),n.d(t,"E",function(){return T}),n.d(t,"P",function(){return p}),n.d(t,"f",function(){return S}),n.d(t,"v",function(){return m}),n.d(t,"x",function(){return O}),n.d(t,"z",function(){return b}),n.d(t,"q",function(){return A}),n.d(t,"O",function(){return _}),n.d(t,"d",function(){return I}),n.d(t,"e",function(){return v}),n.d(t,"G",function(){return h}),n.d(t,"p",function(){return R}),n.d(t,"i",function(){return C}),n.d(t,"h",function(){return g}),n.d(t,"A",function(){return L}),n.d(t,"C",function(){return w}),n.d(t,"B",function(){return P}),n.d(t,"w",function(){return D}),n.d(t,"K",function(){return M}),n.d(t,"D",function(){return y}),n.d(t,"F",function(){return x}),n.d(t,"r",function(){return k}),n.d(t,"y",function(){return V}),n.d(t,"s",function(){return Y}),n.d(t,"N",function(){return F}),n.d(t,"o",function(){return W}),n.d(t,"a",function(){return G}),n.d(t,"c",function(){return j}),n.d(t,"b",function(){return H}),n.d(t,"k",function(){return B}),n.d(t,"j",function(){return K}),n.d(t,"J",function(){return X}),n.d(t,"I",function(){return Q}),n.d(t,"n",function(){return q}),n.d(t,"l",function(){return J}),n.d(t,"m",function(){return Z}),n.d(t,"H",function(){return $});var o,a=n("9523"),i=n.n(a),r=(n("f559"),n("cadf"),n("456d"),n("ac6a"),n("3156")),s=n.n(r),c=n("e7d8"),l={EMPTY_MAP_SELECTION:{pixelSelected:null,layerSelected:null,value:null,locked:!1},HIST_MAX_LENGTH:50,CHILDREN_TO_ASK_FOR:25,SEARCHBAR_SIZE:512,SEARCHBAR_INCREMENT:128,MAX_SEARCHBAR_INCREMENTS:6},u={LEFTMENU_MAXSIZE:512,LEFTMENU_MINSIZE:80,LEFTMENU_DOCUMENTATION_SIZE:320,LEFTMENU_MAXIMIZED:"max",LEFTMENU_MINIMIZED:"min",LEFTMENU_HIDDEN:"hidden",DATA_VIEWER_COMPONENT:"klab-main-control",DOCKED_DATA_VIEWER_COMPONENT:"docked-main-control",REPORT_VIEWER_COMPONENT:"reports-details",DOCUMENTATION_VIEWER_COMPONENT:"documentation-tree",DATAFLOW_VIEWER_COMPONENT:"dataflow-details",DATAFLOW_INFO_COMPONENT:"dataflow-info",PROVENANCE_VIEWER_COMPONENT:"provenance-details",LOG_COMPONENT:"klab-log-pane"},d={DATA_VIEWER:{name:"DataViewer",leftMenuState:u.LEFTMENU_HIDDEN,leftMenuContent:u.DATA_VIEWER_COMPONENT,mainControl:!0,hasSearch:!0},DOCKED_DATA_VIEWER:{name:"DataViewer",leftMenuState:u.LEFTMENU_MAXIMIZED,leftMenuContent:u.DOCKED_DATA_VIEWER_COMPONENT,mainControl:!1,hasSearch:!0},DOCUMENTATION_VIEWER:{name:"KlabDocumentation",leftMenuState:u.LEFTMENU_MINIMIZED,leftMenuContent:u.DOCUMENTATION_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},REPORT_VIEWER:{name:"ReportViewer",leftMenuState:u.LEFTMENU_MINIMIZED,leftMenuContent:u.REPORT_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},DATAFLOW_VIEWER:{name:"DataflowViewer",leftMenuState:u.LEFTMENU_MINIMIZED,leftMenuContent:u.DATAFLOW_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},PROVENANCE_VIEWER:{name:"ProvenanceViewer",leftMenuState:u.LEFTMENU_MINIMIZED,leftMenuContent:u.PROVENANCE_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1}},E={VIEW_MAP:{component:"MapViewer",label:"Maps",hideable:!1,forceNew:!1},VIEW_CHART:{component:"ChartViewer",label:"Chart",hideable:!0,forceNew:!0},VIEW_GRAPH:{component:"GraphViewer",label:"Graph",hideable:!0,forceNew:!0},VIEW_BLOB:{component:"BlobViewer",label:"Blob",hideable:!1,forceNew:!1},VIEW_UNKNOWN:{component:"UnknownViewer",label:"Under construction",hideable:!1,forceNew:!1}},f={CONCEPT:{label:"Concept",symbol:"C",color:"sem-types",rgb:"rgb(38, 50, 56)"},PREFIX_OPERATOR:{label:"Prefix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},INFIX_OPERATOR:{label:"Infix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},OBSERVATION:{label:"Observation",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODEL:{label:"Model",symbol:"M",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODIFIER:{label:"Modifier",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},PRESET_OBSERVABLE:{label:"Preset observable",symbol:"O",color:"sem-preset-observable",rgb:"rgb(240, 240, 240)"},SEPARATOR:{label:"Separator",symbol:"S",color:"sem-separator",rgb:"rgb(10, 10, 10)"},NEXT_TOKENS:{TOKEN:"TOKEN",TEXT:"TEXT",INTEGER:"INTEGER",DOUBLE:"DOUBLE",BOOLEAN:"BOOLEAN",UNIT:"UNIT",CURRENCY:"CURRENCY"}},T={QUALITY:{label:"Quality",symbol:"Q",color:"sem-quality",rgb:"rgb(0, 153, 0)"},SUBJECT:{label:"Subject",symbol:"S",color:"sem-subject",rgb:"rgb(153, 76, 0)"},IDENTITY:{label:"identity",symbol:"Id",color:"sem-identity",rgb:"rgb(0, 102, 204)"},ATTRIBUTE:{label:"Attribute",symbol:"A",color:"sem-attribute",rgb:"rgb(0, 102, 204)"},REALM:{label:"Realm",symbol:"R",color:"sem-realm",rgb:"rgb(0, 102, 204)"},TRAIT:{label:"Trait",symbol:"T",color:"sem-trait",rgb:"rgb(0, 102, 204)"},EVENT:{label:"Event",symbol:"E",color:"sem-event",rgb:"rgb(53, 153, 0)"},RELATIONSHIP:{label:"Relationship",symbol:"R",color:"sem-relationship",rgb:"rgb(210, 170, 0)"},PROCESS:{label:"Process",symbol:"P",color:"sem-process",rgb:"rgb(204, 0, 0)"},ROLE:{label:"Role",symbol:"R",color:"sem-role",rgb:"rgb(0, 86, 163)"},CONFIGURATION:{label:"Configuration",symbol:"C",color:"sem-configuration",rgb:"rgb(98, 98, 98)"},DOMAIN:{label:"Domain",symbol:"D",color:"sem-domain",rgb:"rgb(240, 240, 240)"}},p={nodes:[],links:[],showMenu:!1,selected:{},showSelection:!1,linksSelected:{},options:{canvas:!1,size:{w:500,h:500},force:350,offset:{x:0,y:0},nodeSize:20,linkWidth:1,nodeLabels:!0,linkLabels:!1,strLinks:!0}},S={CONNECTION_UNKNOWN:"UNKNOWN",CONNECTION_UP:"UP",CONNECTION_DOWN:"DOWN",CONNECTION_WORKING:"WORKING",CONNECTION_ERROR:"ERROR",UNKNOWN_IDENTITY:"UNKNOWN_IDENTITY"},m={TYPE_DEBUG:"debug",TYPE_WARNING:"warning",TYPE_ERROR:"error",TYPE_INFO:"info",TYPE_MESSAGE:"MSG",TYPE_ALL:"ALL"},O={TYPE_PROCESS:"PROCESS",TYPE_STATE:"STATE",TYPE_SUBJECT:"SUBJECT",TYPE_CONFIGURATION:"CONFIGURATION",TYPE_EVENT:"EVENT",TYPE_RELATIONSHIP:"RELATIONSHIP",TYPE_GROUP:"GROUP",TYPE_VIEW:"VIEW",TYPE_INITIAL:"INITIAL"},b={shapeType:"POINT",encodedShape:"POINT (40.299841 9.343971)",id:null,label:"DEFAULT",parentId:-1,visible:!0,spatialProjection:"EPSG:4326",observationType:O.TYPE_INITIAL},A={TYPE_RASTER:"RASTER",TYPE_SHAPE:"SHAPE",TYPE_SCALAR:"SCALAR",TYPE_TIMESERIES:"TIMESERIES",TYPE_NETWORK:"NETWORK",TYPE_PROPORTIONS:"PROPORTIONS",TYPE_COLORMAP:"COLORMAP",SHAPE_POLYGON:"POLYGON",SHAPE_POINT:"POINT",PARAM_VIEWPORT_SIZE:800,PARAM_VIEWPORT_MAX_SIZE:7680,PARAM_VIEWPORT_MULTIPLIER:1},_={PARAMS_MODE:"mode",PARAMS_MODE_IDE:"ide",PARAMS_MODE_STANDALONE:"standalone",PARAMS_SESSION:"session",PARAMS_LOG:"log",PARAMS_LOG_HIDDEN:"hidden",PARAMS_LOG_VISIBLE:"visible",PARAMS_LOCAL_HELP:"localhelp",PARAMS_APP:"app",PARAMS_LOCAL:"local",PARAMS_STOMP_DEBUG:"stomp-debug",PARAMS_TOKEN:"token",COOKIE_LANG:"klab_exp_lang",COOKIE_SESSION:"klab_session",COOKIE_MODE:"klab_mode",COOKIE_LOG:"klab_log",COOKIE_BASELAYER:"klab_baselayer",COOKIE_MAPDEFAULT:"klab_mapdefault",COOKIE_SAVELOCATION:"klab_saveLocation",COOKIE_HELP_ON_START:"klab_helponstart",COOKIE_DOCKED_STATUS:"klab_dockedstatus",COOKIE_NOTIFICATIONS:"klab_notifications",COOKIE_TERMINAL_SIZE:"klab_terminalsize",COOKIE_VIEW_COORDINATES:"klab_coordinates",LOCAL_STORAGE_APP_ID:"klab:appId",LOCAL_STORAGE_TERMINAL_COMMANDS:"klab:terminalCommands"},I={NOTIFICATIONS_URL:"".concat("https://integratedmodelling.org","/statics/notifications/index.php")},v={MAIN_COLOR:"rgb(17, 170, 187)",MAIN_GREEN:"rgb(231,255,219)",MAIN_CYAN:"rgb(228,253,255)",MAIN_YELLOW:"rgb(255, 195, 0)",MAIN_RED_HEX:"#ff6464",MAIN_COLOR_HEX:"#11aabb",MAIN_GREEN_HEX:"#e7ffdb",MAIN_CYAN_HEX:"#e4fdff",MAIN_YELLOW_HEX:"#ffc300",MAIN_RED:"rgb(255, 100, 100)",PRIMARY:"#DA1F26",SECONDARY:"#26A69A",TERTIARY:"#555",NEUTRAL:"#E0E1E2",POSITIVE:"#19A019",NEGATIVE:"#DB2828",INFO:"#1E88CE",WARNING:"#F2C037",PRIMARY_NAME:"primary",SECONDARY_NAME:"secondary",TERTIARY_NAME:"tertiary",POSITIVE_NAME:"positive",NEGATIVE_NAME:"negative",INFO_NAME:"info",WARNING_NAME:"warning"},N={SPINNER_STOPPED_COLOR:v.MAIN_COLOR,SPINNER_LOADING_COLOR:v.MAIN_YELLOW,SPINNER_MC_RED:v.MAIN_RED,SPINNER_ERROR_COLOR:v.NEGATIVE_NAME},h={SPINNER_LOADING:{color:N.SPINNER_LOADING_COLOR,animated:!0},SPINNER_STOPPED:{color:N.SPINNER_STOPPED_COLOR,animated:!1},SPINNER_ERROR:{color:N.SPINNER_ERROR_COLOR,animated:!1,time:2,then:{color:N.SPINNER_STOPPED_COLOR,animated:!1}}},R={UNKNOWN_SEARCH_OBSERVATION:"$$UNKNOWN_SEARCH_OBSERVATION$$"},C={WAITING:"waiting",PROCESSING:"processing",PROCESSED:"processed",ABORTED:"aborted"},g={MAP_SIZE_CHANGED:"mapsizechanged",UPDATE_FOLDER:"updatefolder",GRAPH_NODE_SELECTED:"graphnodeselected",SPINNER_DOUBLE_CLICK:"spinnerdoubleclick",SHOW_NODE:"shownode",ASK_FOR_UNDOCK:"askforundock",ASK_FOR_SUGGESTIONS:"askforsuggestions",NEED_FIT_MAP:"needfitmap",TREE_VISIBLE:"treevisible",VIEWER_CLICK:"viewerclick",VIEWER_SELECTED:"viewerselected",VIEWER_CLOSED:"viewerclosed",OBSERVATION_INFO_CLOSED:"observationinfoclosed",SEND_REGION_OF_INTEREST:"sendregionofinterest",NEED_HELP:"needhelp",OBSERVATION_BY_TIME:"observationbytime",NEED_LAYER_BUFFER:"needlayerbuffer",COMPONENT_ACTION:"componentaction",LAYOUT_CHANGED:"layoutchanged",SELECT_ELEMENT:"selectelement",PROPOSED_CONTEXT_CHANGE:"proposedcontextchange",NEW_SCHEDULING:"newscheduling",SHOW_NOTIFICATIONS:"shownotifications",TERMINAL_FOCUSED:"terminalfocused",COMMAND_RESPONSE:"commandresponse",REFRESH_DOCUMENTATION:"refreshdocumentation",PRINT_DOCUMENTATION:"printdocumentation",SHOW_DOCUMENTATION:"showdowcumentation",FONT_SIZE_CHANGE:"fontsizechange",DOWNLOAD_URL:"downloadurl",RESET_CONTEXT:"resetcontext",VIEW_ACTION:"viewaction",SESSION_CUT:"sessioncut",SHOW_DATA_INFO:"showdatainfo"},L={ST_SPACE:"space",ST_TIME:"time"},w={CENTIMETERS:"cm",METERS:"m",KILOMETERS:"km",MILLENNIUM:"MILLENNIUM",CENTURY:"CENTURY",DECADE:"DECADE",YEAR:"YEAR",MONTH:"MONTH",WEEK:"WEEK",DAY:"DAY",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND"},P=[{i18nlabel:"unitCentimeter",type:L.ST_SPACE,value:w.CENTIMETERS,selectable:!0},{i18nlabel:"unitMeter",type:L.ST_SPACE,value:w.METERS,selectable:!0},{i18nlabel:"unitKilometer",type:L.ST_SPACE,value:w.KILOMETERS,selectable:!0},{i18nlabel:"unitMillennium",type:L.ST_TIME,value:w.MILLENNIUM,selectable:!1,momentShorthand:"y",momentMultiplier:1e3,index:0},{i18nlabel:"unitCentury",type:L.ST_TIME,value:w.CENTURY,selectable:!0,momentShorthand:"y",momentMultiplier:100,index:1},{i18nlabel:"unitDecade",type:L.ST_TIME,value:w.DECADE,selectable:!0,momentShorthand:"y",momentMultiplier:10,index:2},{i18nlabel:"unitYear",type:L.ST_TIME,value:w.YEAR,selectable:!0,momentShorthand:"y",momentMultiplier:1,index:3},{i18nlabel:"unitMonth",type:L.ST_TIME,value:w.MONTH,selectable:!0,momentShorthand:"M",momentMultiplier:1,index:4},{i18nlabel:"unitWeek",type:L.ST_TIME,value:w.WEEK,selectable:!0,momentShorthand:"W",momentMultiplier:1,index:5},{i18nlabel:"unitDay",type:L.ST_TIME,value:w.DAY,selectable:!0,momentShorthand:"d",momentMultiplier:1,index:6},{i18nlabel:"unitHour",type:L.ST_TIME,value:w.HOUR,selectable:!0,momentShorthand:"h",momentMultiplier:1,index:7},{i18nlabel:"unitMinute",type:L.ST_TIME,value:w.MINUTE,selectable:!0,momentShorthand:"m",momentMultiplier:1,index:8},{i18nlabel:"unitSecond",type:L.ST_TIME,value:w.SECOND,selectable:!1,momentShorthand:"s",momentMultiplier:1,index:9},{i18nlabel:"unitMillisecond",type:L.ST_TIME,value:w.MILLISECOND,selectable:!1,momentShorthand:"ms",momentMultiplier:1,index:10}],D={SPATIAL_TRANSLATION:"SpatialTranslation",SPATIAL_CHANGE:"SpatialChange",TERMINATION:"Termination",STRUCTURE_CHANGE:"StructureChange",NAME_CHANGE:"NameChange",ATTRIBUTE_CHANGE:"AttributeChange",VALUE_CHANGE:"ValueChange",BRING_FORWARD:"BringForward",CONTEXTUALIZATION_COMPLETED:"ContextualizationCompleted"},M={DEFAULT_STEP:864e5,DEFAULT_INTERVAL:100,PIXEL_TIME_MULTIPLIER:1,MIN_PLAY_TIME:6e4,MAX_PLAY_TIME:6e4},y={SEMANTIC:"SEMANTIC",FREETEXT:"FREETEXT"},x={INTERACTIVE_MODE:"InteractiveMode",LOCK_SPACE:"LockSpace",LOCK_TIME:"LockTime"},k={DEFAULT_MODAL_SIZE:{width:1024,height:768},DEFAULT_PROPORTIONS:{width:4,height:3},DEFAULT_WIDTH_PERCENTAGE:90,DEFAULT_HEIGHT_PERCENTAGE:90,DEFAULT_HELP_BASE_URL:"https://integratedmodelling.org/statics/help"},U={actionLabel:null,actionId:null,downloadUrl:null,downloadFileExtension:null,enabled:!1,separator:!1,submenu:[]},V={SEPARATOR_ITEM:s()({},U,{enabled:!0,separator:!0}),RECONTEXTUALIZATION_ITEM:s()({},U,{actionId:"Recontextualization",actionLabel:Object(c["b"])().tc("label.recontextualization"),enabled:!0})},Y=[{viewClass:"table",label:Object(c["b"])().tc("label.kwTable"),icon:"mdi-table",exportIcons:[{type:"xlsx",icon:"mdi-file-excel"}]},{viewClass:"chart",label:Object(c["b"])().tc("label.kwChart"),icon:"mdi-chart-bar",exportIcons:[]}],F={OBSERVATION:"Observation",VIEW:"View",TREE:"Tree",REPORT:"Report",DATAFLOW:"Dataflow",SHOW:"Show",HIDE:"Hide",URL:"Url",DOWNLOAD:"Download"},W={RESOURCE_VALIDATION:"ResourceValidation"},G={PANEL:"Panel",ALERT:"Alert",PUSH_BUTTON:"PushButton",CHECK_BUTTON:"CheckButton",RADIO_BUTTON:"RadioButton",TEXT_INPUT:"TextInput",COMBO:"Combo",GROUP:"Group",MAP:"Map",TREE:"Tree",TREE_ITEM:"TreeItem",CONFIRM:"Confirm",VIEW:"View",CONTAINER:"Container",MULTICONTAINER:"MultiContainer",LABEL:"Label",TEXT:"Text",TABLE:"Table",NOTIFICATION:"Notification",INPUT_GROUP:"InputGroup",SEPARATOR:"Separator",MODAL_WINDOW:"ModalWindow",WINDOW:"Window",BROWSER:"Browser",IMAGE:"Image"},j={USER_ACTION:"UserAction",ENABLE:"Enable",HIDE:"Hide",UPDATE:"Update",MENU_ACTION:"MenuAction"},H={LABEL_MIN_WIDTH:"150px",DEFAULT_LOGO:"statics/klab-logo.png"},z=/^\d+\D{1,2}/,B=function(e){var t={};return Object.keys(e.attributes).forEach(function(n){var o=e.attributes[n];switch(n){case"hidden":t.display="none";break;case"width":"content"===o?t["flex-basis"]="0":o.startsWith("col")?t["flex-grow"]=o.substring(3):t.width="".concat(o).concat(z.test(o)?"":"px");break;case"height":t.height="".concat(o).concat(z.test(o)?"":"px");break;case"hfill":e.attributes.hbox&&(t["flex-wrap"]="nowrap"),t.width="100%";break;case"vfill":t["flex-grow"]=1;break;case"top":case"bottom":case"center":e.attributes.parentAttributes&&e.attributes.parentAttributes.hbox?t["align-self"]="top"===n?"flex-start":"bottom"===n?"flex-end":"center":t["vertical-align"]=n;break;case"hbox":case"vbox":t["flex-direction"]="hbox"===n?"row":"column";break;case"left":case"right":t["text-align"]=n;break;default:break}}),t},K={dark:{"main-color":"white","background-color":"black","alt-background":"rgb(99,99,99)","text-color":"white","control-text-color":"black","title-color":"white","alt-color":"rgb(0,138,150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},light:{"main-color":"black","background-color":"white","alt-background":"rgb(233,233,233)","text-color":"black","control-text-color":"white","title-color":"black","alt-color":"rgb(0,138,150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},worst:{"main-color":"green","background-color":"yellow","alt-background":"fuchsia","text-color":"red","control-text-color":"yellow","title-color":"indigo","alt-color":"blue","font-family":"comics","font-size":"1.2em","title-size":"32px","subtitle-size":"20px","line-height":"1.2em"},default:{"main-color":"rgb(0, 92, 129)","background-color":"rgb(250, 250, 250)","alt-background":"rgb(222, 222, 222)","text-color":"rgb(0, 92, 129)","control-text-color":"rgb(250, 250, 250)","title-color":"rgb(0, 92, 129)","alt-color":"rgb(0, 138, 150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"}},X={DEBUGGER:"Debugger",CONSOLE:"Console"},Q=[{value:"80x24",label:"80x24",cols:80,rows:24},{value:"80x43",label:"80x43",cols:80,rows:43},{value:"132x24",label:"132x24",cols:132,rows:24},{value:"132x43",label:"132x43",cols:132,rows:43}],q={REPORT:"REPORT",FIGURES:"FIGURES",TABLES:"TABLES",RESOURCES:"RESOURCES",MODELS:"MODELS",PROVENANCE:"PROVENANCE",REFERENCES:"REFERENCES"},J={REPORT:"Report",SECTION:"Section",PARAGRAPH:"Paragraph",TABLE:"Table",CHART:"Chart",FIGURE:"Figure",RESOURCE:"Resource",MODEL:"Model",REFERENCE:"Reference",CITATION:"Citation",VIEW:"View",LINK:"Link",ANCHOR:"Anchor"},Z=(o={},i()(o,J.REPORT,q.REPORT),i()(o,J.SECTION,q.REPORT),i()(o,J.PARAGRAPH,q.REPORT),i()(o,J.TABLE,q.TABLES),i()(o,J.CHART,q.REPORT),i()(o,J.FIGURE,q.FIGURES),i()(o,J.RESOURCE,q.RESOURCES),i()(o,J.MODEL,q.MODELS),i()(o,J.REFERENCE,q.REPORT),i()(o,J.CITATION,q.REPORT),i()(o,J.VIEW,q.REPORT),i()(o,J.LINK,q.REPORT),i()(o,J.ANCHOR,q.REPORT),o),$={NUMBER:"NUMBER",BOOLEAN:"BOOLEAN",CONCEPT:"CONCEPT",PROCESS:"PROCESS",EVENT:"EVENT",OBJECT:"OBJECT",TEXT:"TEXT",VALUE:"VALUE",RANGE:"RANGE",ENUM:"ENUM",EXTENT:"EXTENT",TEMPORALEXTENT:"TEMPORALEXTENT",SPATIALEXTENT:"SPATIALEXTENT",ANNOTATION:"ANNOTATION",LIST:"LIST",VOID:"VOID",MAP:"MAP",TABLE:"TABLE"}},"7e6d":function(e,t,n){},8449:function(e,t,n){"use strict";n.d(t,"b",function(){return d});n("ac6a"),n("cadf"),n("456d");var o=n("7037"),a=n.n(o),i=(n("386d"),n("7cca")),r=n("1442"),s=n("8fec"),c=n("be3b"),l=n("741d"),u=n("2b0e"),d=new u["a"];t["a"]=function(e){var t=e.store,n=new URLSearchParams(window.location.search),o=n.get(i["O"].PARAMS_SESSION)||l["a"].get(i["O"].COOKIE_SESSION),E=n.get(i["O"].PARAMS_MODE)||l["a"].get(i["O"].COOKIE_MODE)||i["O"].PARAMS_MODE_IDE,f=n.get(i["O"].PARAMS_LOG)||l["a"].get(i["O"].COOKIE_LOG)||i["O"].PARAMS_LOG_HIDDEN,T=l["a"].get(i["O"].COOKIE_BASELAYER)||r["d"].DEFAULT_BASELAYER,p=l["a"].get(i["O"].COOKIE_MAPDEFAULT)||{center:r["b"].center,zoom:r["b"].zoom},S=!l["a"].has(i["O"].COOKIE_SAVELOCATION)||l["a"].get(i["O"].COOKIE_SAVELOCATION),m=l["a"].has(i["O"].COOKIE_DOCKED_STATUS),O=window.location.hostname.toLowerCase(),b=-1===O.indexOf("integratedmodelling.org")&&-1===O.indexOf("klab.officialstatistics.org"),A=n.get(i["O"].PARAMS_TOKEN);u["a"].mixin({methods:{hexToRgbValues:function(e){if("undefined"!==typeof e){var t=s["b"](e);return"".concat(t.r,", ").concat(t.g,", ").concat(t.b)}return"black"},isAcceptedKey:function(e){var t="abcdefghijklmnopqrstuvwxyz0123456789.<>=!()+-*/^";return e=e.toLowerCase(),-1!==t.indexOf(e)}}}),u["a"].prototype.$eventBus=d,t.state.data.session=o,u["a"].prototype.$mode=E,l["a"].set(i["O"].COOKIE_MODE,E,{expires:30,path:"/",secure:!0}),u["a"].prototype.$logVisibility=f,l["a"].set(i["O"].COOKIE_LOG,f,{expires:30,path:"/",secure:!0}),u["a"].prototype.$baseLayer=T,l["a"].set(i["O"].COOKIE_BASELAYER,T,{expires:30,path:"/",secure:!0}),u["a"].prototype.$mapDefaults=p,t.state.view.saveLocation=S,l["a"].set(i["O"].COOKIE_SAVELOCATION,S,{expires:30,path:"/",secure:!0}),t.state.view.saveDockedStatus=m,m&&(t.state.view.mainControlDocked=l["a"].get(i["O"].COOKIE_DOCKED_STATUS)),t.state.view.viewCoordinates=l["a"].has(i["O"].COOKIE_VIEW_COORDINATES)&&l["a"].get(i["O"].COOKIE_VIEW_COORDINATES),t.state.data.local=b,t.state.data.token=A,console.info("Session: ".concat(o," / mode: ").concat(E));var _=n.get(i["O"].PARAMS_LOCAL_HELP);t.state.view.helpBaseUrl=_?"http://".concat(_):i["r"].DEFAULT_HELP_BASE_URL;var I=n.get(i["O"].PARAMS_APP);I&&(t.state.view.klabApp=I),c["a"].get("".concat("").concat("/modeler","/capabilities"),{}).then(function(e){var n=e.data;if("object"!==a()(n))throw Error("Error asking for capabilities: no data");if(0===Object.keys(n).length)throw Error("Capabilities are empty, check it");t.state.data.capabilities=n}).catch(function(e){console.error("Error trying to retrieve capabilities: ".concat(e))})}},"8fec":function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return c});n("c5f6"),n("ee1d"),n("a481"),n("6b54");var o=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function a(e){var t=e.r,n=e.g,o=e.b,a=e.a,i=void 0!==a;if(t=Math.round(t),n=Math.round(n),o=Math.round(o),t>255||n>255||o>255||i&&a>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return a=i?(256|Math.round(255*a/100)).toString(16).slice(1):"","#".concat((o|n<<8|t<<16|1<<24).toString(16).slice(1)).concat(a)}function i(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function r(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=e.replace(/ /g,""),n=o.exec(t);if(null===n)return i(t);var a={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){var r=parseFloat(n[5]);a.a=100*Math.min(1,!0===Number.isNaN(r)?1:r)}return a}function s(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if("number"!==typeof t)throw new TypeError("Expected a numeric percent");var n=r(e),o=t<0?0:255,a=Math.abs(t)/100,i=n.r,s=n.g,c=n.b;return"#".concat((16777216+65536*(Math.round((o-i)*a)+i)+256*(Math.round((o-s)*a)+s)+(Math.round((o-c)*a)+c)).toString(16).slice(1))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if("string"!==typeof e)throw new TypeError("Expected a string as color");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue("--q-color-".concat(e)).trim()||null}},b0b2:function(e,t,n){"use strict";n.d(t,"a",function(){return P}),n.d(t,"h",function(){return M}),n.d(t,"e",function(){return x}),n.d(t,"f",function(){return k}),n.d(t,"g",function(){return U}),n.d(t,"b",function(){return V}),n.d(t,"k",function(){return Y}),n.d(t,"j",function(){return F}),n.d(t,"i",function(){return W}),n.d(t,"l",function(){return G}),n.d(t,"c",function(){return H}),n.d(t,"d",function(){return z});n("4917"),n("28a5"),n("48c0"),n("6c7b"),n("ac6a");var o=n("278c"),a=n.n(o),i=(n("c5f6"),n("ee1d"),n("8fec")),r=n("256f"),s=n("5bc3"),c=n("6c77"),l=n("1442"),u=n("f403"),d=n("7a09"),E=n("9a44"),f=n("47e4"),T=n("88da"),p=n("f822"),S=n("049d"),m=n("c4c8"),O=n("c7e3"),b=n("f384"),A=n("01ae"),_=n("7f68"),I=n("881a"),v=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/,N=i["b"],h=i["a"],R=i["d"],C={topLeft:Object(r["l"])([-180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomLeft:Object(r["l"])([-180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),topRight:Object(r["l"])([180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomRight:Object(r["l"])([180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857)},g=new _["b"],L={left:g.createLineString([new _["a"](C.topLeft[0],C.topLeft[1]),new _["a"](C.bottomLeft[0],C.bottomLeft[1])]),right:g.createLineString([new _["a"](C.topRight[0],C.topRight[1]),new _["a"](C.bottomRight[0],C.bottomRight[1])])},w=g.createPolygon([new _["a"](C.topLeft[0],C.topLeft[1]),new _["a"](C.topRight[0],C.topRight[1]),new _["a"](C.bottomRight[0],C.bottomRight[1]),new _["a"](C.bottomLeft[0],C.bottomLeft[1]),new _["a"](C.topLeft[0],C.topLeft[1])]);function P(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function D(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=v.exec(e);if(t){var n={r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)};return t[4]&&(n.a=parseFloat(t[4])),n}return N(e)}function M(e){return!!Number.isNaN(1*e)&&e===e.toUpperCase()}function y(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"undefined"!==typeof t[e.toLowerCase()]?t[e.toLowerCase()]:null}function x(e){var t,n;if(0===e.indexOf("#"))n=e,t=N(e);else if(-1!==e.indexOf(","))t=D(e),n=R(t);else{if(n=h(e),null===n&&(n=y(e),null===n))throw new Error("Unknown color: ".concat(e));t=N(n)}return{rgb:t,hex:n,color:e}}function k(e,t,n){(null===e||null===t||n<1)&&console.warn("Bad colors: ".concat(e,", ").concat(t));for(var o,a,i,r=x(e).rgb,s=x(t).rgb,c=1/(n-1),l=[],u=0;u2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t,n){return e+(t-e)*n},i=[],r=Number((e.length-1)/(t-1)),s=a()(e,1);i[0]=s[0];for(var c=1;c0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))}var Y=new I["a"];Y.inject(u["a"],d["a"],S["a"],s["a"],E["a"],f["a"],T["a"]);var F=function(e){return e instanceof p["a"]&&(e=Object(s["b"])(e)),Y.read(e)},W=function(e){return new m["a"](e).isValid()},G=function(e,t){return O["a"].union(e,t)};function j(e){var t=[];return O["a"].intersection(e,L.left)&&t.push(L.left),O["a"].intersection(e,L.right)&&t.push(L.right),t}function H(e){var t=j(e);if(0===t.length)return e;var n=e.getExteriorRing();t.forEach(function(e){n=O["a"].union(n,e)});var o=new A["a"];o.add(n);for(var a=o.getPolygons(),i=null,r=a.iterator();r.hasNext();){var s=r.next();if(!b["a"].contains(w,s)){for(var c=[],l=s.getCoordinates(),u=l.length,d=0;d0&&void 0!==arguments[0]?arguments[0]:null;if(null===e)return!1;var t=e.geometryTypes;return t&&"undefined"!==typeof t.find(function(e){return e===l["q"].TYPE_RASTER})},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l["g"].HIST_MAX_LENGTH;e.push(t),e.length>n&&e.shift()},L=function(e,t){if(0===e.length)return null;if(void 0===t)return e[e.length-1];var n=c()(e).reverse().find(function(e){return e.type===t});return"undefined"!==typeof n?n:null},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if(e&&null!==t&&"function"===typeof n){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.children&&i.children.length>0?e(null,i.children):r};return a(null,e)}return null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(e,t,function(e,t){return e.id===t?e:null})},D=function(e){var t=null!==e.parentArtifactId||null!==e.parentId&&e.rootContextId!==e.parentId,n=null!==e.parentArtifactId?e.parentArtifactId:e.parentId,o=e.main;if(!o&&t){var a=P(d["a"].getters["data/tree"],n);null!==a&&(o=o||a.userNode)}return{node:r()({id:e.id,label:e.literalValue||e.label,observable:e.observable,type:e.shapeType,dynamic:e.dynamic||!1,needUpdate:!e.contextualized,viewerIdx:e.viewerIdx,viewerType:null!==e.viewerIdx?d["a"].getters["view/viewer"](e.viewerIdx).type:null,loading:!1,children:[],childrenCount:e.childrenCount,childrenLoaded:0,siblingsCount:e.siblingsCount,parentArtifactId:e.parentArtifactId,tickable:null!==e.viewerIdx&&!e.empty||e.isContainer||e.childrenCount>0,disabled:e.empty&&(!e.isContainer||0===e.childrenCount)||e.singleValue||e.observationType===l["x"].TYPE_PROCESS,empty:e.empty,actions:e.actions,header:e.isContainer?"folder":"default",main:e.main,userNode:o,isContainer:e.isContainer,exportFormats:e.exportFormats,rootContextId:e.rootContextId,contextId:e.contextId,observationType:e.observationType,noTick:e.singleValue||e.observationType===l["x"].TYPE_PROCESS},e.isContainer&&{childrenLoaded:0},e.siblingsCount&&{siblingsCount:e.siblingsCount},{parentId:n}),parentId:n}},M=function(e){return new Promise(function(t,n){var o=null;if(null!==e)if(o=Object(_["g"])(e),null===o){var a=e.substring(5);fetch("https://epsg.io/?format=json&q=".concat(a)).then(function(a){return a.json().then(function(a){var i=a.results;if(i&&i.length>0)for(var r=0,s=i.length;r0&&u&&u.length>0&&d&&4===d.length){var f="EPSG:".concat(l);v["a"].defs(f,u),Object(I["a"])(v["a"]),o=Object(_["g"])(f);var T=Object(_["i"])(E["d"].PROJ_EPSG_4326,o),p=Object(A["a"])([d[1],d[2],d[3],d[0]],T);o.setExtent(p),console.info("New projection registered: ".concat(f)),t(o)}else n(new Error("Some error in projection search result: ".concat(JSON.stringify(c))))}else n(new Error("Some error in projection search result: no results"))}else n(new Error("Unknown projection: ".concat(e)))})})}else t(o);else t(E["d"].PROJ_EPSG_4326)})};function y(e){return x.apply(this,arguments)}function x(){return x=a()(regeneratorRuntime.mark(function e(t){var n,o,a,i,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.spatialProjection,e.next=3,M(n);case 3:if(o=e.sent,a=t.encodedShape,a){e.next=7;break}return e.abrupt("return",null);case 7:return 0===a.indexOf("LINEARRING")&&(a=a.replace("LINEARRING","LINESTRING")),i=null,-1!==a.indexOf("POINT")?(r=R.readFeature(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),null!==r&&null!==r.getGeometry()&&(i=r.getGeometry().getFirstCoordinate())):i=R.readGeometry(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),t.id===t.rootContextId&&(t.zIndexOffset=0),e.abrupt("return",i);case 12:case"end":return e.stop()}},e)})),x.apply(this,arguments)}function k(e){return U.apply(this,arguments)}function U(){return U=a()(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.response?{status:t.response.data.status||t.response.status,message:t.response.data.message||t.response.data.error||t.response.data||(""!==t.response.statusText?t.response.statusText:"Unknown"),axiosError:t}:t.request?{status:t.request.status,message:t.message,axiosError:t}:{status:"UNKNOWN",message:t.message,axiosError:t},!(n instanceof Blob)){e.next=5;break}return e.next=4,n.text();case 4:n=e.sent;case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}},e)})),U.apply(this,arguments)}var V=function(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;d["a"].dispatch("view/setSpinner",r()({},l["G"].SPINNER_LOADING,{owner:e}),{root:!0}),N["a"].get(t,n).then(function(t){t&&o(t,function(){d["a"].dispatch("view/setSpinner",r()({},l["G"].SPINNER_STOPPED,{owner:e}),{root:!0})})}).catch(function(){var t=a()(regeneratorRuntime.mark(function t(n){var o,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,k(n);case 2:if(o=t.sent,a=null,null!=o&&(a=o.message),d["a"].dispatch("view/setSpinner",r()({},l["G"].SPINNER_ERROR,{owner:e,errorMessage:a}),{root:!0}),null===i){t.next=10;break}i(n),t.next=11;break;case 10:throw n;case 11:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())},Y=function(e){if("RAMP"===e.type&&e.colors.length>1&&e.colors.length<256){for(var t=[],n=[],o=e.colors.length,a=Math.floor(256/o),i=a+(256-o*a),r=0;rl["q"].PARAM_VIEWPORT_MAX_SIZE&&(a=l["q"].PARAM_VIEWPORT_MAX_SIZE),P=L.getExtent(),D="".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(t.id),y=new b["a"]({projection:R,imageExtent:P,url:D,style:E["e"].POLYGON_OBSERVATION_STYLE,imageLoadFunction:function(e,n){d["a"].dispatch("view/setSpinner",r()({},l["G"].SPINNER_LOADING,{owner:"".concat(n).concat(s)}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!0,observation:t}),N["a"].get(n,{params:r()({format:l["q"].TYPE_RASTER,viewport:a},-1!==A&&{locator:"T1(1){time=".concat(A,"}")}),responseType:"blob"}).then(function(o){if(o){var a=new FileReader;a.readAsDataURL(o.data),a.onload=function(){var o=e.getImage();o.src=a.result,d["a"].dispatch("view/setSpinner",r()({},l["G"].SPINNER_STOPPED,{owner:"".concat(n).concat(s)}),{root:!0}),t.tsImages.push("T".concat(s)),t.loaded=!0,d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),V("cm_".concat(t.id),D,{params:r()({format:l["q"].TYPE_COLORMAP},-1!==s&&{locator:"T1(1){time=".concat(s,"}")})},function(e,n){e&&e.data&&(t.colormap=Y(e.data)),n()})},a.onerror=function(e){d["a"].dispatch("view/setSpinner",r()({},l["G"].SPINNER_ERROR,{owner:"".concat(n).concat(s),errorMessage:e}),{root:!0})}}}).catch(function(e){throw d["a"].dispatch("view/setSpinner",r()({},l["G"].SPINNER_ERROR,{owner:"".concat(n).concat(s),errorMessage:e.message}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),e})}}),e.abrupt("return",new O["a"]({id:w,source:y}));case 19:return 0===g.indexOf("LINESTRING")||0===g.indexOf("MULTILINESTRING")?(x=E["e"].LNE_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_LINES):0===g.indexOf("POINT")||0===g.indexOf("MULTIPOINT")?(x=Object(f["d"])(E["e"].POINT_OBSERVATION_SVG_PARAM,t.label),t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POINTS):(x=E["e"].POLYGON_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POLYGONS),k=new m["a"]({geometry:L,name:t.label,id:w}),U=new p["a"]({id:w,source:new T["a"]({features:[k]}),style:x}),e.abrupt("return",U);case 23:case"end":return e.stop()}},e)})),W.apply(this,arguments)}function G(e,t){d["a"].$app.sendStompMessage(e(t,d["a"].state.data.session).body)}var j=function(e){switch(e){case"FORTHCOMING":return{icon:"mdi-airplane-landing",tooltip:"forthcoming"};case"EXPERIMENTAL":return{icon:"mdi-flask-outline",tooltip:"experimental"};case"NEW":return{icon:"mdi-new-box",tooltip:"new"};case"STABLE":return{icon:"mdi-check-circle-outline",tooltip:"stable"};case"BETA":return{icon:"mdi-radioactive",tooltip:"beta"};default:return{}}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e.id===t?e:null};if(e&&null!==t){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.components&&i.components.length>0?e(null,i.components):r};return a(null,e)}return null},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return H(c()(e.panels).concat(c()(e.leftPanels),c()(e.rightPanels),[e.header,e.footer]).filter(function(e){return null!==e}),t,n)};function B(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;V("dw_".concat(e),"".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(e),{params:r()({format:t,outputFormat:o.value,adapter:o.adapter},-1!==a&&{locator:"T1(1){time=".concat(a,"}")}),responseType:"blob"},function(e,t){var a=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.href=a,i.setAttribute("download","".concat(n,".").concat(o.extension)),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(a),t()})}function K(e,t){var n=[Object.assign({},e)];return delete n[0][t],e[t]&&e[t].length>0?n.concat(e[t].map(function(e){return K(e,t)}).reduce(function(e,t){return e.concat(t)},[])):n}}).call(this,n("b639").Buffer)},be3b:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var o=n("bc3a"),a=n.n(o),i=a.a.create();t["b"]=function(e){var t=e.Vue,n=e.store;n.state.data.session?i.defaults.headers.common.Authorization=n.state.data.session:console.warn("No session established en axios header, check it"),n.state.data.token&&(i.defaults.headers.common.Authentication=n.state.data.token),t.prototype.$axios=i}},d247:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return i});n("0d6d"),Object.freeze({SEARCH_TYPES:[{enumId:"CONCEPT",name:"CONCEPT",color:"#ff0000"},{enumId:"OPERATOR",name:"OPERATOR",color:"#ffff00"},{enumId:"OBSERVATION",name:"OBSERVATION",color:"#ff00ff"},{enumId:"MODEL",name:"MODEL",color:"#0000ff"}]});var o=Object.freeze({CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_SEARCH:"Search",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_NOTIFICATION:"Notification",CLASS_RUN:"Run",TYPE_REGIONOFINTEREST:"RegionOfInterest",TYPE_FEATUREADDED:"FeatureAdded",TYPE_PERIODOFINTEREST:"PeriodOfInterest",TYPE_SUBMITSEARCH:"SubmitSearch",TYPE_MATCHACTION:"MatchAction",TYPE_REQUESTOBSERVATION:"RequestObservation",TYPE_RESETCONTEXT:"ResetContext",TYPE_RECONTEXTUALIZE:"Recontextualize",TYPE_TASKINTERRUPTED:"TaskInterrupted",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_DATAFLOWNODEDETAIL:"DataflowNodeDetail",TYPE_DATAFLOWNODERATING:"DataflowNodeRating",TYPE_CHANGESETTING:"ChangeSetting",TYPE_USERINPUTPROVIDED:"UserInputProvided",TYPE_WATCHOBSERVATION:"WatchObservation",TYPE_ENGINEEVENT:"EngineEvent",TYPE_VIEWACTION:"ViewAction",TYPE_RUNAPP:"RunApp",TYPE_CONSOLECREATED:"ConsoleCreated",TYPE_CONSOLECLOSED:"ConsoleClosed",TYPE_COMMANDREQUEST:"CommandRequest",PAYLOAD_CLASS_SPATIALEXTENT:"SpatialExtent",PAYLOAD_CLASS_SPATIALLOCATION:"SpatialLocation",PAYLOAD_CLASS_TEMPORALEXTENT:"TemporalExtent",PAYLOAD_CLASS_SEARCHREQUEST:"SearchRequest",PAYLOAD_CLASS_SEARCHMATCHACTION:"SearchMatchAction",PAYLOAD_CLASS_OBSERVATIONREQUEST:"ObservationRequest",PAYLOAD_CLASS_INTERRUPTTASK:"InterruptTask",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST:"ContextualizationRequest",PAYLOAD_CLASS_SETTINGCHANGEREQUEST:"SettingChangeRequest",PAYLOAD_CLASS_USERINPUTRESPONSE:"UserInputResponse",PAYLOAD_CLASS_WATCHREQUEST:"WatchRequest",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_MENUACTION:"MenuAction",PAYLOAD_CLASS_LOADAPPLICATIONREQUEST:"LoadApplicationRequest",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification"}),a=Object.freeze({CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_QUERY:"Query",CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_NOTIFICATION:"Notification",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_AUTHORIZATION:"Authorization",CLASS_VIEWACTOR:"ViewActor",TYPE_DATAFLOWCOMPILED:"DataflowCompiled",TYPE_DATAFLOWSTATECHANGED:"DataflowStateChanged",TYPE_DATAFLOWDOCUMENTATION:"DataflowDocumentation",TYPE_NEWOBSERVATION:"NewObservation",TYPE_MODIFIEDOBSERVATION:"ModifiedObservation",TYPE_QUERYRESULT:"QueryResult",TYPE_RESETCONTEXT:"ResetContext",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_USERINPUTREQUESTED:"UserInputRequested",TYPE_USERPROJECTOPENED:"UserProjectOpened",TYPE_SCHEDULINGSTARTED:"SchedulingStarted",TYPE_SCHEDULINGFINISHED:"SchedulingFinished",TYPE_NETWORKSTATUS:"NetworkStatus",TYPE_CREATEVIEWCOMPONENT:"CreateViewComponent",TYPE_SCHEDULEADVANCED:"ScheduleAdvanced",TYPE_ENGINEEVENT:"EngineEvent",TYPE_SETUPINTERFACE:"SetupInterface",TYPE_VIEWACTION:"ViewAction",TYPE_VIEWAVAILABLE:"ViewAvailable",TYPE_VIEWSETTING:"ViewSetting",TYPE_COMMANDRESPONSE:"CommandResponse",TYPE_DOCUMENTATIONCHANGED:"DocumentationChanged",TYPE_CREATEMODALWINDOW:"CreateModalWindow",TYPE_AUTHORITYDOCUMENTATION:"AuthorityDocumentation",TYPE_TASKSTARTED:"TaskStarted",TYPE_TASKFINISHED:"TaskFinished",TYPE_TASKABORTED:"TaskAborted",TYPE_DEBUG:"Debug",TYPE_INFO:"Info",TYPE_WARNING:"Warning",TYPE_ERROR:"Error",PAYLOAD_CLASS_TASKREFERENCE:"TaskReference",PAYLOAD_CLASS_DATAFLOWREFERENCE:"DataflowReference",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_OBSERVATIONREFERENCE:"ObservationReference",PAYLOAD_CLASS_SEARCHRESPONSE:"SearchResponse",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_USERINPUTREQUEST:"UserInputRequest",PAYLOAD_CLASS_SCHEDULERNOTIFICATION:"SchedulerNotification",PAYLOAD_CLASS_NETWORKREFERENCE:"NetworkReference",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWCOMPONENT:"ViewComponent",PAYLOAD_CLASS_ENGINEEVENT:"EngineEvent",PAYLOAD_CLASS_LAYOUT:"Layout",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_VIEWSETTING:"ViewSetting",PAYLOAD_CLASS_KNOWLEDGEVIEWREFERENCE:"KnowledgeViewReference",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification",PAYLOAD_CLASS_DOCUMENTATIONEVENT:"DocumentationEvent"}),i=Object.freeze({REST_STATUS:"".concat("/modeler","/engine/status"),REST_SESSION_INFO:"".concat("/modeler","/engine/session/info"),REST_SESSION_VIEW:"".concat("/modeler","/engine/session/view/"),REST_SESSION_OBSERVATION:"".concat("/modeler","/engine/session/observation/"),REST_UPLOAD:"".concat("/modeler","/resource/put"),REST_GET_PROJECT_RESOURCE:"".concat("/modeler","/engine/project/resource/get")})},e7d8:function(e,t,n){"use strict";var o=n("2b0e"),a=n("a925"),i={label:{appTitle:"k.LAB Explorer EN",appRunning:"Running on Quasar v{version}",appClose:"Close",appOK:"Ok",appAccept:"Accept",appYES:"Yes",appNO:"No",appCancel:"Cancel",appRetry:"Retry",appNext:"Next",appPrevious:"Previous",appWarning:"Warning",appPlay:"Play",appReplay:"Replay",appPause:"Pause",appReload:"Reload",appPrint:"Print",appSetDefault:"Set as default",klabNoMessage:"No message",klabUnknownError:"Unknown error",klabNoDate:"No date",klabMessagesToSend:"There are one message in queue",modalNoConnection:"No connection, please wait",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observation",reconnect:"Reconnect",unknownLabel:"Unknown",context:"context",noContext:"",noContextPlaceholder:"",contextShape:"context shape",noObservation:"No observations available",searchPlaceholder:"Search knowledge",fuzzySearchPlaceholder:"Free search",askForObservation:"Observing {urn}",noTokenDescription:"No description available",btnContextReset:"Reset context",contextReset:"Context reset",itemCounter:"{loaded} of {total}",logTab:"Log",treeTab:"Tree",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Space & time:",mcMenuContext:"Context",mcMenuOption:"Options",mcMenuSettings:"Settings",mcMenuHelp:"Help",showTutorial:"Show tutorial",showHelp:"Show help",refreshSize:"Refresh window size",titleOutputFormat:"Download observation",askForOuputFormat:"Select format",titleChangeScale:"Change {type} scale",askForNewScale:"Select new scale",resolutionLabel:"Resolution value",unitLabel:"Unit value",clickToEditScale:"Click to edit",clickToLock:"Click to lock scale",clickToUnlock:"Click to unlock scale",scaleLocked:"{type} scale locked",spaceScale:"Space",timeScale:"Time",unitCentimeter:"Centimeters",unitMeter:"Meters",unitKilometer:"Kilometers",unitMillennium:"Millennium",unitCentury:"Century",unitDecade:"Decade",unitYear:"Year",unitMonth:"Month",unitWeek:"Week",unitDay:"Day",unitHour:"Hour",unitMinute:"Minute",unitSecond:"Second",unitMillisecond:"Millisecond",timeOrigin:"Initial time",labelTimeStart:"Start time",labelTimeEnd:"End time",labelSpatial:"spatial",labelTemporal:"temporal",newContext:"New context",previousContexts:"Previous contexts",drawCustomContext:"Draw context",eraseCustomContext:"Erase custom context",addToCustomContext:"Add shape",drawPoint:"Point",drawLineString:"Line",drawPolygon:"Polygon",drawCircle:"Circle",optionShowAll:"Show all",optionSaveLocation:"Remember location",saveDockedStatus:"Remember docked status",noNodes:"No observations",loadShowData:"Load and show data",interactiveMode:"Interactive mode",noInputSectionTitle:"No section title",cancelInputRequest:"Cancel run",resetInputRequest:"Use defaults",submitInputRequest:"Submit",IDLAlertTitle:"Warning!",recontextualization:"Set as context",rememberDecision:"Don't show again",titleCommentResource:"Comment on resource",sendComment:"Send",noTimeSet:"Initial state",timeResolutionMultiplier:"Multiplier",months:{m0:"January",m1:"February",m2:"March",m3:"April",m4:"May",m5:"June",m6:"July",m7:"August",m8:"September",m9:"October",m10:"November",m11:"December"},removeProposedContext:"Remove context",levelDebug:"Debug",levelInfo:"Info",levelWarning:"Warning",levelError:"Error",levelEngineEvent:"Engine event",userDetails:"User details",unknownUser:"Unknown user",userId:"Id:",userEmail:"Email:",userLastLogin:"Last login:",userGroups:"Groups:",appsList:"Available apps",appsClose:"Close app",appsLogout:"Logout",reloadApplications:"Reload applications",noLayoutLabel:"No title",noLayoutDescription:"No description",kwTable:"Table",kwChart:"Chart",openTerminal:"Open terminal",openDebugger:"Open debugger",titleSelectTerminalSize:"Select terminal size",terminalDeleteHistory:"Delete history",terminalResizeWindow:"Resize terminal window",terminalMinimize:"Minimize terminal",terminalMaximize:"Maximize terminal",terminalClose:"Close terminal",noDocumentation:"No elements available for this view",tableDownloadAsXSLX:"Download table as .xslx",tableCopy:"Copy table to clipboard",resettingContext:"Resetting context",reportTable:"Table",reportFigure:"Figure",viewCoordinates:"Show coordinates"},messages:{connectionClosed:"Connection closed",connectionWorking:"Trying to reconnect",connectionUnknown:"Starting...",noSpaceAllowedInSearch:"Spaces cannot be used in the search box",noSearchResults:"No search results",noActionForObservation:"No actions available",noTime:"no time",emptyReport:'
Empty report
',noLoadedReport:"No report loaded",copiedToClipboard:"Copied to clipboard",customCopyToClipboard:"{what} copied to clipboard",changeScaleResolutionError:"Resolution must be positive",updateScale:"{type} scale updated",updateNextScale:"New {type} scale have been stored, press refresh to update",invalidGeometry:"Polygon is not valid",geolocationWaitingTitle:"Enable geolocation?",geolocationWaitingText:"k.Explorer can detect your current location to initialize the geographical viewer.
In order to do so, you need to authorize geolocation.
This is merely for your convenience and does not affect operation.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Geolocation has not been authorized",geolocationErrorPositionUnavailable:"Location information is unavailable",geolocationErrorTimeout:"A request to get the user location timed out",geolocationErrorUnknown:"An unknown error occurred",unknownSearchObservation:"Previous observations results",noLogItems:"Empty log",noLevelSelected:"No levels selected",uploadComplete:"Upload of file {fileName} complete",IDLAlertText:"Actual view crossing the International Date Line. A drawn context is needed",lastTermAlertText:"No more terms allowed",parenthesisAlertText:"You have open parenthesis",emptyFreeTextSearch:"Empty search is not allowed",fuzzyModeOff:"Free search off",fuzzyModeOn:"Free search on",treeNoResult:"No results",treeNoNodes:"No data",treeNoResultUser:"No main observations",treeNoResultUserWaiting:"Computing...",treeNoResultNoUser:"No observations",treeNoMainSummary:"Other observations",thankComment:"Comment has been sent",confirmRescaleContext:"The context will be recreate with new resolution.\nAre you sure?",loadingChildren:"Loading children...",waitingLocation:"Searching for {location}...",waitingObservationInit:"Initializing observation...",availableInFuture:"This feature will be available soon",timeEndBeforeTimeStart:"End time cannot be before start time",timeEndModified:"Multiplier is not used because the end time was manually changed",pressToChangeSpeed:"Press to play
Hold to change speed
Actual speed x{multiplier}",resourcesValidating:"Engine is busy",presentationBlocked:'

Can\'t access online help resources: check your network connection

A browser extension may also be interfering

',noAppsAvailable:"No available apps",noGroupsAssigned:"No groups assigned",appLoading:"Loading app {app}",errorLoadingApp:"Error loading app {app}",reloadApp:"Reload application",errorLoggingOut:"Error logging out, contact support",terminalHello:"Welcome to k.LAB {type}",noDocumentation:"No documentation available",confirmExitPage:"Data will be lost if you leave the page, are you sure?",tableCopied:"Table copied to clipboard",invalidSession:"Invalid session",sessionClosed:"Session closed by server",unknownSessionError:"Problem with session",youHaveGOT:"Winter is coming"},tooltips:{treePane:"View tree",showLogPane:"View log",hideLogPane:"Hide log",resetContext:"Reset context",interruptTask:"Interrupt task {taskDescription}",dataViewer:"View data",reportViewer:"View report",documentationViewer:"View documentation",scenarios:"Scenarios",observers:"Observers",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report not available,\nno observations",noDocumentation:"Documentation not available,\nno observations",noDataflow:"Dataflow not availble",noDataflowInfo:"No details",dataflowViewer:"View data flow",provenanceViewer:"View provenance (will be...)",undock:"Undock",copyEncodedShapeToClipboard:"Copy context shape to clipboard",cancelInputRequest:"Cancel run",resetInputRequest:"Use default values",submitInputRequest:"Submit values",displayMainTree:"Display main tree",hideMainTree:"Hide main tree",rateIt:"Rate resource",commentIt:"Comment on resource",refreshScale:"Refresh context with new scale(s)",clickToEdit:"Click to edit {type} scale",palette:"No palette",unknown:"To be decided",noKnowledgeViews:"No knowledge views",knowledgeViews:"Knowledge views",uploadData:"Upload data (forthcoming)"},errors:{connectionError:"Connection error",searchTimeout:"Search timeout",uploadError:"Upload error for the file {fileName}"},engineEventLabels:{evtResourceValidation:"Resource validation"},langName:"English"},r={label:{appTitle:"k.LAB Explorer ES",appRunning:"Ejecutándose sobre Quasar v{version}",appClose:"Cerrar",appOK:"Ok",appCancel:"Cancelar",appRetry:"Reintentar",appNext:"Siguiente",appPrevious:"Precedente",klabNoMessage:"No hay ningún mensaje",klabUnknownError:"Error desconocido",klabNoDate:"No hay fecha",klabMessagesToSend:"Hay un mensaje en la cola",modalNoConnection:"No hay conexión, esperar",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observaciones",reconnect:"Reconectar",unknownLabel:"Desconocido",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"No hay observaciones",searchPlaceholder:"Buscar in k.LAB",fuzzySearchPlaceholder:"Buscar",askForObservation:"Pidiendo {urn}",noTokenDescription:"No hay descripción",btnContextReset:"Resetear contexto",contextReset:"Contexto reseteado",itemCounter:"{loaded} de {total}",logTab:"Log",treeTab:"Árbol",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Espacio y tiempo:",mcMenuContext:"Contexto",mcMenuOption:"Optciones",titleOutputFormat:"Download observación",askForOuputFormat:"Seleccionar un formato",titleChangeScale:"Cambiar escala",askForNewScale:"Seleccionar nueva escala",resolutionLabel:"Valor de la escala",unitLabel:"Unidad de la escala",clickToEditScale:"Click para modificar",clickToLock:"Click para bloquear la escala",clickToUnlock:"Click para desbloquear la escala",scaleLocked:"{type} escala bloqueada",spaceScale:"Espacio",timeScale:"Tiempo",labelCm:"Centimetros",labelM:"Metros",labelKm:"Kilometros",labelSpatial:"espacial",labelTemporal:"temporal",newContext:"Nuevo contexto",previousContexts:"Contextos prévios",drawCustomContext:"Dibujar contexto",eraseCustomContext:"Borrar contexto",addToCustomContext:"Añadir shape",drawPoint:"Punto",drawLineString:"Línea",drawPolygon:"Polígono",drawCircle:"Circulo",optionShowAll:"Ver todas",optionSaveLocation:"Recordar posición",noNodes:"No results: is waiting?",loadShowData:"Cargar y visualizar datos",interactiveMode:"Modo interactivo",noInputSectionTitle:"No section title",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar defaults",submitInputRequest:"Enviar",IDLAlertTitle:"Cuidado!",recontextualization:"Fijar como contexto",rememberDecision:"Recordar mi elección"},messages:{connectionClosed:"Conexión cerrada",connectionWorking:"Intentando reconectar",connectionUnknown:"Inicializando...",noSpaceAllowedInSearch:"No está permitido utilizar espacios en la búsqueda",noSearchResults:"No hay resultados",noActionForObservation:"No hay acciones disponibles",noTime:"sin información",emptyReport:'',noLoadedReport:"No se ha cargado ningun report",copiedToClipboard:"Copiado",customCopyToClipboard:"{what} copiado",changeScaleResolutionError:"La resolución tiene que ser positiva",updateScale:"Actualizada la escala {type}, nuevo valor {resolution} {unit}",invalidGeometry:"Polígono no válido",geolocationWaitingTitle:"¿Habilitar la geolocalización?",geolocationWaitingText:"k.Explorer puede detectar tu posición actual para inicializar la vista geográfica.
Para hacer eso, hay que autorizar la geolocalización.
Esto es solamente por comodidad yno afecta a la operatividad.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"No se ha autorizado la geolocalización",geolocationErrorPositionUnavailable:"No hay información de posicionamiento",geolocationErrorTimeout:"Se ha superado el tiempo de espera para la geolocalización",geolocationErrorUnknown:"Ha habido un error desconocido",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Resultado de observaciones previas",noLogItems:"No hay elementos en el log",uploadComplete:"Upload del file {fileName} completado",IDLAlertText:"La selección actual cruza la IDL. Sólo está permitido en caso de dibujar un contexto",lastTermAlertText:"No están permitidos mas tokens",parenthesisAlertText:"Parentesis no balanceadas",emptyFreeTextSearch:"Búsqueda vacía",fuzzyModeOff:"Búsqueda libre desactivada",fuzzyModeOn:"Búsqueda libre activada",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Ver árbol",logPane:"Ver log",resetContext:"Reset context",interruptTask:"Interrumpir proceso {taskDescription}",dataViewer:"Ver datos",reportViewer:"Ver report",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report no disponibile,\nno hay observaciones",noDataflow:"Dataflow no disponible",dataflowViewer:"Ver data flow",provenanceViewer:"Ver provenance (will be...)",undock:"Desacoplar",copyEncodedShapeToClipboard:"Copiar el contexto en el portapapeles",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar default",submitInputRequest:"Enviar"},errors:{connectionError:"Error de conexión",searchTimeout:"Tiempo de busqueda terminado",uploadError:"Error durante el upload del file {fileName}"},langName:"Español"},s={label:{appTitle:"k.LAB Explorer IT",appRunning:"Esecutandosi con Quasar v{version}",appClose:"Chiudi",appOK:"Ok",appCancel:"Cancellare",appRetry:"Riprovare",appNext:"Successiva",appPrevious:"Precedente",klabNoMessage:"Nessun messaggio",klabUnknownError:"Errore sconosciuto",klabNoDate:"Nessuna data",klabMessagesToSend:"C'è un messaggio in coda",modalNoConnection:"Non c'è connessione",appFooter:"k.LAB Explorer - 2018",treeTitle:"Osservazioni",reconnect:"Riconnettere",unknownLabel:"Sconosciuto",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"Nessuna osservazione disponibile",searchPlaceholder:"Cerca in k.LAB",fuzzySearchPlaceholder:"Cerca",askForObservation:"Chiedendo {urn}",noTokenDescription:"Descrizione non disponibile",btnContextReset:"Resettare il contesto",contextReset:"Contesto resettato",itemCounter:"{loaded} di {total}",logTab:"Log",treeTab:"Albero",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Spazio e tempo",mcMenuContext:"Contesto",mcMenuOption:"Optziono",titleOutputFormat:"Download osservazione",askForOuputFormat:"Selezionare un formato",titleChangeScale:"Cambiare scala",askForNewScale:"Seleccionar la nueva escala",resolutionLabel:"Valore della scala",unitLabel:"Unità della scala",clickToEditScale:"Click per modificare",clickToLock:"Click per bloccare la scala",clickToUnlock:"Click per sbloccare la scala",scaleLocked:"{type} scala bloccata",spaceScale:"Spacio",timeScale:"Tempo",labelCm:"Centimetri",labelM:"Metri",labelKm:"Kilometri",labelSpatial:"spaziale",labelTemporal:"temporale",newContext:"Constesto nuovo",previousContexts:"Contesti precedenti",drawCustomContext:"Disegnare contesto",eraseCustomContext:"Eliminare contesto",addToCustomContext:"Aggiungere shape",drawPoint:"Punto",drawLineString:"Linea",drawPolygon:"Poligono",drawCircle:"Cerchio",optionShowAll:"Vedere tutte",optionSaveLocation:"Ricordare posizione",noNodes:"No results: is waiting?",loadShowData:"Caricare e visualizzare dati",interactiveMode:"Modo interattivo",noInputSectionTitle:"Sezione senza titolo",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare defaults",submitInputRequest:"Inviare",IDLAlertTitle:"Attenzione!",recontextualization:"Settare come contesto",rememberDecision:"Ricordare la mia decisione"},messages:{connectionClosed:"Connessione chiusa",connectionWorking:"Cercando di riconnettere",connectionUnknown:"Inizializzando...",noSpaceAllowedInSearch:"Non è permesso utilizare spazi nella ricerca",noSearchResults:"Non esistono risultati",noActionForObservation:"Nessuna azione disponibile",noTime:"senza informazione di ora",emptyReport:'',noLoadedReport:"Non si è caricato nessun report",copiedToClipboard:"Copiato",customCopyToClipboard:"{what} copiato",changeScaleResolutionError:"La risoluzione deve essere positiva",updateScale:"Attualizata la scala {type}, nuovo valore {resolution} {unit}",invalidGeometry:"Poligono non valido",geolocationWaitingTitle:"Attivare la geolocalizzazione?",geolocationWaitingText:"k.Explorer può detettare la posizione per inizializzare la vista geografica.
Perché questo sia possibile, è necessario autorizzare la geolocalizzazione.
Quest'ultimo è esclusivamente per comodità e non influenza l'operatività.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Non si ha autorizzato la geolocalizzazione",geolocationErrorPositionUnavailable:"Posizione non disponibile",geolocationErrorTimeout:"Terminato il tempo di attesa per la geolocalizzazione",geolocationErrorUnknown:"Errore imprevisto",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Risultato di osservazioni previe",noLogItems:"Il log è vuoto",uploadComplete:"Upload del file {fileName} completato",IDLAlertText:"La selezione attuale incrocia la IDL. per poterlo fare è necessario disegnare un contesto",lastTermAlertText:"Non sono permessi altri token",parenthesisAlertText:"Paretesi sbilanciate",emptyFreeTextSearch:"Ricerca vuota",fuzzyModeOff:"Ricerca libers disattivata",fuzzyModeOn:"Ricerca libera attivata",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Albero",logPane:"Log",resetContext:"Reset context",interruptTask:"Interrompere processo {taskDescription}",dataViewer:"Vedere dati",reportViewer:"Vedere report",noReportTask:"Report non disponibile,\naspettare",noReportObservation:"Report non disponibile,\nnon ci sono osservazioni",noDataflow:"Dataflow non disponible",dataflowViewer:"Vedere data flow (will be...)",provenanceViewer:"Vedere provenance (will be...)",undock:"Sganciare",copyEncodedShapeToClipboard:"Copia il contesto negli appunti",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare default",submitInputRequest:"Inviare"},errors:{connectionError:"Errore di connessione",searchTimeout:"Tempo di ricerca terminato",uploadError:"Errore durante l'upload del file {fileName}"},langName:"Italiano"},c={en:i,es:r,it:s},l=n("741d"),u=n("7cca");n.d(t,"b",function(){return E});var d=null;function E(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||null===d){o["a"].use(a["a"]);var t="en";l["a"].has(u["O"].COOKIE_LANG)?(t=l["a"].get(u["O"].COOKIE_LANG),console.debug("Locale set from cookie to ".concat(t))):(l["a"].set(u["O"].COOKIE_LANG,t,{expires:30,path:"/",secure:!0}),console.debug("Lang cookie set to ".concat(t))),d=new a["a"]({locale:t,fallbackLocale:"en",messages:c})}return d}t["a"]=function(e){var t=e.app;t.i18n=E()}},fb1c:function(e,t,n){}},[[0,"runtime","vendor"]]]); \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/app.f82436b2.js b/klab.engine/src/main/resources/static/ui/js/app.f82436b2.js deleted file mode 100644 index 7b1b361d1e..0000000000 --- a/klab.engine/src/main/resources/static/ui/js/app.f82436b2.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("2f39")},"034f":function(e,t,n){"use strict";var o=n("fb1c"),a=n.n(o);a.a},1:function(e,t){},1442:function(e,t,n){"use strict";n.d(t,"d",function(){return A}),n.d(t,"f",function(){return I}),n.d(t,"e",function(){return v}),n.d(t,"c",function(){return N}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return R});n("ac6a"),n("7514"),n("48c0"),n("6c7b");var o=n("7cca"),a=n("480c"),i=n("5043"),r=n("d0e9"),s=n("2ef1"),c=n("6c77"),l=n("83a6"),u=n("8682"),d=n("8295"),E=n("6cbf"),f=n("bcf0"),T=n("4cdf"),p=n("ddaa"),S=n("8f3a"),m=n("256f"),O="pk.eyJ1Ijoiay1sYWIiLCJhIjoiY2prd2d2dWNxMHlvcDNxcDVsY3FncDBydiJ9.zMQE3gu-0qPpkLapVfVhnA",b='© Mapbox © OpenStreetMap Improve this map',A={BING_KEY:"",COORD_BC3:[-2.968226,43.332125],PROJ_EPSG_4326:Object(m["g"])("EPSG:4326"),PROJ_EPSG_3857:Object(m["g"])("EPSG:3857"),ZINDEX_TOP:1e4,ZINDEX_BASE:1e3,ZINDEX_MULTIPLIER_RASTER:0,ZINDEX_MULTIPLIER_POLYGONS:1,ZINDEX_MULTIPLIER_LINES:2,ZINDEX_MULTIPLIER_POINTS:3,DEFAULT_BASELAYER:"osm_layer"},_={MARKER_SVG:function(e){var t=e.fill,n=void 0===t?"yellow":t,o=e.stroke,a=void 0===o?"black":o,i=e.strokeWidth,r=void 0===i?"5":i;return'\n ')}},I={POINT_OBSERVATION_ICON:new E["a"]({anchor:[.5,1],src:"statics/maps/marker.png",opacity:.8,scale:.6}),POINT_OBSERVATION_SVG_ICON:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;return new E["a"]({opacity:1,src:"data:image/svg+xml;utf8,".concat(_.MARKER_SVG(e)),scale:t})},POINT_OBSERVATION_TEXT:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.offsetY,n=void 0===t?25:t,o=e.bold,a=void 0!==o&&o,i=e.size,r=void 0===i?"10px":i;return new d["a"]({textAlign:"center",textBaseline:"bottom",offsetY:n,font:"".concat(a?"bold":"normal"," ").concat(r," Roboto, sans-serif")})}},v={POLYGON_CONTEXT_STYLE:new c["c"]({fill:new l["a"]({color:"rgba(38, 166, 154, 0.2)"})}),POLYGON_PROPOSED_CONTEXT:new c["c"]({fill:new l["a"]({color:"rgba(255,255,255,0.5)"}),stroke:new f["a"]({width:8,pattern:"hatch",color:"#3187ca",offset:0,scale:.75,fill:new l["a"]({color:"#FFFFFF"}),size:2,spacing:5,angle:45})}),POLYGON_OBSERVATION_STYLE:new c["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2}),fill:new l["a"]({color:"rgba(255, 102, 0, 0.2)"})}),LNE_OBSERVATION_STYLE:new c["c"]({stroke:new u["a"]({color:"rgb(255, 102, 0)",width:2})}),POINT_OBSERVATION_SVG_PARAM:{fill:o["e"].MAIN_COLOR,stroke:"rgb(51,51,51)",strokeWidth:"4",scale:.3},POINT_CONTEXT_SVG_PARAM:{fill:"rgb(17, 170, 187)",stroke:"rgb(51,51,51)",strokeWidth:"5",scale:.5,offsetY:35,bold:!0,size:"14px"}},N={OSM_LAYER:new a["a"]({name:"osm_layer",title:"OpenStreetMap",type:"base",source:new r["a"]({attributions:'Map credits ©\n OSM\n contributors.'}),visible:!1}),CLEARMAP_TOPO_LAYER:new a["a"]({name:"clearmap_topo_layer",title:"UN Clear Map",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebTopo/MapServer/export"}),visible:!1}),CLEARMAP_PLAIN_LAYER:new a["a"]({name:"clearmap_plain_layer",title:"UN Clear Map Plain",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebPlain/MapServer/export"}),visible:!1}),CLEARMAP_DARK_LAYER:new a["a"]({name:"clearmap_dark_layer",title:"UN Clear Map Dark",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebDark/MapServer/export"}),visible:!1}),CLEARMAP_GRAY_LAYER:new a["a"]({name:"clearmap_gray_layer",title:"UN Clear Map Gray",type:"base",source:new i["a"]({url:"https://geoservices.un.org/arcgis/rest/services/ClearMap_WebGray/MapServer/export"}),visible:!1}),GOOGLE_HYBRID:new a["a"]({name:"google_hybrid",title:"Google Hybrid",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_STREET:new a["a"]({name:"google_street",title:"Google Street",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"http://mt{0-3}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),GOOGLE_TERRAIN:new a["a"]({name:"google_terrain",title:"Google Terrain",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"https://mt{0-3}.google.com/vt/lyrs=t&x={x}&y={y}&z={z}",attribution:"© 2018 Google, Inc"}),visible:!1}),MAPBOX_CALI_TERRAIN:new a["a"]({name:"mapbox_cali_terrain",title:"Mapbox Terrain",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjkwh1z9z06ok2rrn9unfpn2n/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_MINIMO:new a["a"]({name:"mapbox_minimo",title:"Mapbox Minimo",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjm0l6i4g7ffj2sqk7xy5dv1m/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_TERRAIN:new a["a"]({name:"mapbox_terrain",title:"Mapbox Terrain",type:"base",source:new s["a"]({crossOrigin:"anonymous",format:"pbf",url:"https://api.mapbox.com/styles/v1/k-lab/cl1dgarpr005f15ntep34yq88/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),MAPBOX_GOT:new a["a"]({name:"mapbox_got",title:"k.LAB Mapbox GOT",type:"base",source:new s["a"]({crossOrigin:"anonymous",url:"https://api.mapbox.com/styles/v1/k-lab/cjuihteg13toh1fmovvd6r80y/tiles/256/{z}/{x}/{y}?access_token=".concat(O),attribution:b}),visible:!1}),EMPTY_LAYER:new a["a"]({name:"empty_layer",title:"No background",type:"base",visible:!1})},h={controls:S["a"]({attribution:!1}).extend([]),target:"map",projection:A.PROJ_EPSG_4326,center:Object(m["l"])(A.COORD_BC3,A.PROJ_EPSG_4326,A.PROJ_EPSG_3857),zoom:13},R={layers:[N.EMPTY_LAYER,N.CLEARMAP_TOPO_LAYER,N.MAPBOX_MINIMO,N.MAPBOX_TERRAIN,N.OSM_LAYER],mask:null,hasMask:function(){return null!==this.mask},getBaseLayer:function(){return this.layers.find(function(e){return"base"===e.get("type")&&e.getVisible()})},setMask:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[38,38,38,.4];null!==this.mask&&this.removeMask(),this.mask=new p["a"]({feature:new T["a"]({geometry:e,name:"Context"}),inner:!1,active:!0,fill:new l["a"]({color:n})}),this.layers.forEach(function(e){e.addFilter(t.mask)})},removeMask:function(){var e=this;null!==this.mask&&this.layers.forEach(function(t){t.removeFilter(e.mask)}),this.mask=null}}},"17dc":function(e,t,n){"use strict";n.d(t,"a",function(){return f});n("ac6a"),n("cadf"),n("6b54"),n("c5f6");var o=n("3156"),a=n.n(o),i=n("278c"),r=n.n(i),s=n("2369"),c=n("c1df"),l=n.n(c),u=n("d247");function d(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=n!==u["b"].PAYLOAD_CLASS_EMPTY?s["b"].validateJsonSchema(o,n):o;return{validated:r,body:{messageClass:e,type:t,payloadClass:n,payload:o,identity:a,timestamp:l()().valueOf(),inResponseTo:i}}}var E={SPATIAL_EXTENT:function(e){var t=r()(e,4),n=t[0],o=t[1],a=t[2],i=t[3];return{south:o,west:n,north:i,east:a}}},f={REGION_OF_INTEREST:function(e,t){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_REGIONOFINTEREST,u["b"].PAYLOAD_CLASS_SPATIALEXTENT,E.SPATIAL_EXTENT(e),t)},SEARCH_REQUEST:function(e,t){var n=e.queryString,o=e.searchMode,i=e.requestId,r=e.contextId,s=void 0===r?null:r,c=e.matchTypes,l=void 0===c?null:c,E=e.cancelSearch,f=void 0!==E&&E,T=e.defaultResults,p=void 0!==T&&T,S=e.maxResults;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_SUBMITSEARCH,u["b"].PAYLOAD_CLASS_SEARCHREQUEST,a()({},null!==s&&{contextId:s},null!==l&&{matchTypes:l},{queryString:n,searchMode:o,requestId:i,cancelSearch:f,defaultResults:p,maxResults:S}),t)},SEARCH_MATCH:function(e,t){var n=e.contextId,o=e.matchId,a=e.matchIndex,i=e.added;return d(u["b"].CLASS_SEARCH,u["b"].TYPE_MATCHACTION,u["b"].PAYLOAD_CLASS_SEARCHMATCHACTION,{contextId:n,matchId:o,matchIndex:a,added:i},t)},OBSERVATION_REQUEST:function(e,t){var n=e.urn,o=e.contextId,i=e.searchContextId,r=void 0===i?null:i,s=e.estimate,c=void 0!==s&&s,l=e.estimatedCost,E=void 0===l?0:l;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_REQUESTOBSERVATION,u["b"].PAYLOAD_CLASS_OBSERVATIONREQUEST,a()({urn:n},null!==o&&{contextId:o},null!==r&&{searchContextId:r},{estimate:c,estimatedCost:E}),t)},RESET_CONTEXT:function(e){return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_RESETCONTEXT,u["b"].PAYLOAD_CLASS_EMPTY,"",e)},CONTEXTUALIZATION_REQUEST:function(e,t){var n=e.contextUrn,o=e.contextId,i=e.parentContext,r=e.contextQuery;return d(u["b"].CLASS_OBSERVATIONLIFECYCLE,u["b"].TYPE_RECONTEXTUALIZE,u["b"].PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST,a()({},"undefined"!==typeof n&&{contextUrn:n},"undefined"!==typeof o&&{contextId:o},"undefined"!==typeof i&&{parentContext:i},"undefined"!==typeof r&&{contextQuery:r}),t)},TASK_INTERRUPTED:function(e,t){var n=e.taskId,o=e.forceInterruption,a=void 0===o||o;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_TASKINTERRUPTED,u["b"].PAYLOAD_CLASS_INTERRUPTTASK,{taskId:n,forceInterruption:a},t)},SCALE_REFERENCE:function(e,t){var n=e.scaleReference,o=e.spaceResolution,i=e.spaceUnit,r=e.timeResolutionMultiplier,s=e.timeUnit,c=e.start,l=e.end,E=e.timeResolutionDescription,f=void 0===E?"":E,T=e.contextId,p=void 0===T?"":T,S=e.shape,m=void 0===S?"":S,O=e.timeType,b=void 0===O?"":O,A=e.timeGeometry,_=void 0===A?"":A,I=e.spaceGeometry,v=void 0===I?"":I;return d(u["b"].CLASS_USERCONTEXTDEFINITION,u["b"].TYPE_SCALEDEFINED,u["b"].PAYLOAD_CLASS_SCALEREFERENCE,a()({},n,{name:"",contextId:p,shape:m,timeType:b,timeGeometry:_,spaceGeometry:v,timeResolutionDescription:null===f?"":f},"undefined"!==typeof o&&{spaceResolution:o},"undefined"!==typeof i&&{spaceUnit:i},"undefined"!==typeof r&&{timeResolutionMultiplier:r},"undefined"!==typeof s&&{timeUnit:s},"undefined"!==typeof c&&{start:c},"undefined"!==typeof l&&{end:l}),t)},SPATIAL_LOCATION:function(e,t){var n=e.wktShape,o=e.contextId,i=void 0===o?null:o;return d(u["b"].CLASS_USERCONTEXTCHANGE,u["b"].TYPE_FEATUREADDED,u["b"].PAYLOAD_CLASS_SPATIALLOCATION,a()({easting:Number.MIN_VALUE,northing:Number.MIN_VALUE,wktShape:n},null!==i&&{contextId:i}),t)},DATAFLOW_NODE_DETAILS:function(e,t){var n=e.nodeId,o=e.contextId;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODEDETAIL,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,{nodeId:n,monitorable:!1,rating:-1,progress:0,contextId:o},t)},DATAFLOW_NODE_RATING:function(e,t){var n=e.nodeId,o=e.contextId,i=e.rating,r=e.comment,s=void 0===r?null:r;return d(u["b"].CLASS_TASKLIFECYCLE,u["b"].TYPE_DATAFLOWNODERATING,u["b"].PAYLOAD_CLASS_DATAFLOWSTATE,a()({nodeId:n,monitorable:!1,progress:0,rating:i},null!==s&&{comment:s},{contextId:o}),t)},SETTING_CHANGE_REQUEST:function(e,t){var n=e.setting,o=e.value;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CHANGESETTING,u["b"].PAYLOAD_CLASS_SETTINGCHANGEREQUEST,{setting:n,previousValue:(!o).toString(),newValue:o.toString()},t)},USER_INPUT_RESPONSE:function(e,t){var n=e.messageId,o=e.requestId,a=e.cancelRun,i=void 0!==a&&a,r=e.values,s=void 0===r?{}:r;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_USERINPUTPROVIDED,u["b"].PAYLOAD_CLASS_USERINPUTRESPONSE,{requestId:o,cancelRun:i,values:s},t,n)},WATCH_REQUEST:function(e,t){var n=e.active,o=e.eventType,i=e.observationId,r=e.rootContextId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_WATCHOBSERVATION,u["b"].PAYLOAD_CLASS_WATCHREQUEST,a()({active:n,observationId:i,rootContextId:r},o&&{eventType:o}),t)},WATCH_ENGINE_EVENT:function(e,t){var n=e.active,o=e.eventType;return d(u["b"].CLASS_NOTIFICATION,u["b"].TYPE_ENGINEEVENT,u["b"].PAYLOAD_CLASS_WATCHREQUEST,{active:n,eventType:o},t)},VIEW_ACTION:function(e,t){var n=e.component,o=e.componentTag,a=void 0===o?null:o,i=e.applicationId,r=void 0===i?null:i,s=e.booleanValue,c=void 0===s?null:s,l=e.doubleValue,E=void 0===l?null:l,f=e.intValue,T=void 0===f?null:f,p=e.stringValue,S=void 0===p?null:p,m=e.listValue,O=void 0===m?[]:m,b=e.dateValue,A=void 0===b?null:b,_=e.data,I=void 0===_?null:_;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_VIEWACTION,{component:n,componentTag:a,applicationId:r,booleanValue:c,doubleValue:E,intValue:T,stringValue:S,listValue:O,dateValue:A,data:I},t)},MENU_ACTION:function(e,t){var n=e.identity,o=e.applicationId,a=e.menuId;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_VIEWACTION,u["b"].PAYLOAD_CLASS_MENUACTION,{identity:n,applicationId:o,menuId:a},t)},RUN_APPLICATION:function(e,t){var n=e.applicationId,o=e.test,a=void 0!==o&&o,i=e.stop,r=void 0!==i&&i;return d(u["b"].CLASS_RUN,u["b"].TYPE_RUNAPP,u["b"].PAYLOAD_CLASS_LOADAPPLICATIONREQUEST,{behavior:n,test:a,stop:r,parameters:{}},t)},CONSOLE_CREATED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECREATED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},CONSOLE_CLOSED:function(e,t){var n=e.consoleId,o=e.consoleType;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_CONSOLECLOSED,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o},t)},COMMAND_REQUEST:function(e,t){var n=e.consoleId,o=e.consoleType,a=e.commandId,i=e.payload;return d(u["b"].CLASS_USERINTERFACE,u["b"].TYPE_COMMANDREQUEST,u["b"].PAYLOAD_CLASS_CONSOLENOTIFICATION,{consoleId:n,consoleType:o,commandId:a,payload:i},t)}}},"1e5d":function(e,t,n){},2369:function(e,t,n){"use strict";var o=n("278c"),a=n.n(o),i=(n("ffc1"),n("ac6a"),n("cadf"),n("456d"),n("7037")),r=n.n(i),s=n("970b"),c=n.n(s),l=n("5bc30"),u=n.n(l),d=n("be3b"),E=n("3b1b6"),f=n.n(E),T=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{draft:"draft-04"};if(c()(this,e),void 0===t||""===t)throw Error("URL is mandatory");this.djvEnv=new f.a({version:n.draft}),this.initialized=!1,this.url=t,this.initTimeout=null,console.debug("Load schema(s) on creation"),this.initTimeout=setTimeout(this.init(t),2e3)}return u()(e,[{key:"validateJsonSchema",value:function(e,t){if(!this.initialized)return console.info("djvEnv not ready"),!1;if(this.djvEnv.resolve(t)){var n=this.djvEnv.validate(t,e);if("undefined"===typeof n)return!0;if("$ref"===n.keyword)return!0;throw Error(n)}throw Error("Schema not found: ".concat(t))}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;this.initialized||d["a"].get(t,{}).then(function(n){var o=n.data;if("object"!==r()(o))throw Error("Error asking for JsonSchema(s): no data");if(0===Object.keys(o).length)throw Error("Schema on url ".concat(t," is empty, check it"));for(var i=Object.entries(o),s=0;s-1))&&(a.splice(o,1),this.listeners.set(e,a),!0)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Fe()(this,e),!t)throw new Error("Connection url is needed");this.connectionUrl=t,this.connectionHeaders=n;var a=o.stompOptions,i=void 0===a?{debug:!1}:a,r=o.sockJSOptions,s=void 0===r?{}:r,c=o.reconnection,l=void 0!==c&&c,u=o.reconnectionAttempts,d=void 0===u?1/0:u,E=o.reconnectionDelay,f=void 0===E?2e3:E,T=o.debug,p=void 0!==T&&T,S=o.store,m=void 0===S?null:S,O=o.storeNS,b=void 0===O?"":O;this.reconnection=l,this.reconnectionAttempts=d,this.reconnectionDelay=f,this.hasDebug=p,this.reconnectTimeoutId=-1,this.reconnectionCount=0,"undefined"!==typeof m&&null!==m&&(this.store=m,this.storeNS=b),this.stompOptions=i,this.sockJSOptions=s,this.connect()}return We()(e,[{key:"debug",value:function(){var e;this.hasDebug&&(e=console).debug.apply(e,arguments)}},{key:"connect",value:function(){var e=this,t=je()(this.connectionUrl,{},this.sockJSOptions);t.protocol=this.stompOptions.protocol||"",this.StompClient=ze.a.over(t,this.stompOptions),this.StompClient.connect(this.connectionHeaders,function(t){e.doOnEvent("onconnect",t)},function(t){return setTimeout(function(){e.doOnEvent("onerror",t)},1e3)})}},{key:"isConnected",value:function(){return this.StompClient&&this.StompClient.connected}},{key:"reconnect",value:function(){var e=this;this.reconnectionCount<=this.reconnectionAttempts?(this.reconnectionCount+=1,clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout(function(){e.doOnEvent("reconnect",e.reconnectionCount),e.connect()},this.reconnectionDelay)):this.store&&this.passToStore("stomp_onerror","Reconnection error")}},{key:"subscribe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){t.doOnEvent("onmessage",e)};if(e){var a=this.StompClient.subscribe(e,o,n);if(a)return this.doOnEvent("onsubscribe",a),a}return null}},{key:"unsubscribe",value:function(e,t){this.StompClient.unsubscribe(e,t)}},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isConnected()?(this.StompClient.send(e,JSON.stringify(t),n),this.doOnEvent("onsend",{headers:n,message:t}),!0):(this.doOnEvent("onerrorsend",{headers:n,message:t}),!1)}},{key:"doOnEvent",value:function(e,t){Ke.emit(e,t)||this.debug("No listener for ".concat(e)),this.store&&this.passToStore("stomp_".concat(e),t),this.reconnection&&"onoconnect"===e&&(this.reconnectionCount=0),this.reconnection&&"onerror"===e&&this.reconnect()}},{key:"passToStore",value:function(e,t){if(e.startsWith("stomp_")){var n="dispatch",o=[this.storeNS||"",e.toLowerCase()].filter(function(e){return!!e}).join("/"),a=t||null;t&&t.data&&(a=JSON.parse(t.data),a.mutation?o=[a.namespace||"",a.mutation].filter(function(e){return!!e}).join("/"):a.action&&(n="dispatch",o=[a.namespace||"",a.action].filter(function(e){return!!e}).join("/"))),this.store[n](o,a)}}},{key:"close",value:function(){this.StompClient&&(this.StompClient.disconnect(),this.doOnEvent("onclose")),this.reconnectTimeoutId&&clearTimeout(this.reconnectTimeoutId)}}]),e}(),Qe={install:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t)throw new Error("[vue-stomp-client] cannot locate connection");var a=null;o.connectManually?(e.prototype.$connect=function(){a=new Xe(t,n,o),e.prototype.$stompClient=a.StompClient},e.prototype.$disconnect=function(){a&&a.reconnection&&(a.reconnection=!1),e.prototype.$stompClient&&(a.close(),delete e.prototype.$stompClient)}):(a=new Xe(t,n,o),e.prototype.$stompClient=a.StompClient),e.mixin({methods:{sendStompMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.defaultMessageDestination;a.send(n,e,t)?console.debug("Message sent: ".concat(JSON.stringify(e,null,4))):console.debug("Message not sent, still no connected:\n".concat(JSON.stringify(e,null,4)))},subscribe:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultSubscribeDestination;return a.subscribe("".concat(i,"/").concat(e),t,n)},unsubscribe:function(e){a.unsubscribe(e),console.debug("Unsubscribe the subscription with id ".concat(e))},reconnect:function(){a.StompClient&&!a.StompClient.connected&&(console.debug("Try to reconnect..."),a.reconnect())},disconnect:function(){a&&a.reconnection&&(a.reconnection=!1),a.close()}},created:function(){var e=this;if(this.$options.sockets){var t=this,n=this.$options.sockets;this.$options.sockets=new Proxy({},{set:function(e,n,o){return Ke.addListener(n,o,t),e[n]=o,!0},deleteProperty:function(e,n){return Ke.removeListener(n,t.$options.sockets[n],t),delete e.key,!0}}),n&&Object.keys(n).forEach(function(t){e.$options.sockets[t]=n[t]})}},beforeDestroy:function(){var e=this;if(this.$options.sockets){var t=this.$options.sockets;t&&Object.keys(t).forEach(function(t){console.debug("Remove listener ".concat(t)),Ke.removeListener(t,e.$options.sockets[t],e),delete e.$options.sockets[t]})}}})}},qe=function(e){var t=e.Vue,n=e.store,o=new URLSearchParams(window.location.search).get(Ie["P"].PARAMS_STOMP_DEBUG),a=!1;"true"===o&&(a=!0),t.use(Qe,"/modeler/message",{},{stompOptions:{debug:a,protocol:"v12.stomp"},store:n,storeNS:"stomp",reconnection:!0,reconnectionAttempts:5,debug:a,defaultMessageDestination:"/klab/message",defaultSubscribeDestination:"/message"})},Je=ye(),Ze=Je.app,$e=Je.store,et=Je.router;[Me["a"],xe["b"],ke["a"],Ue["a"],qe].forEach(function(e){e({app:Ze,router:et,store:$e,Vue:o["a"],ssrContext:null})}),new o["a"](Ze)},4360:function(e,t,n){"use strict";var o,a=n("2b0e"),i=n("2f62"),r=(n("ac6a"),n("cadf"),n("f400"),n("7cca")),s=n("d247"),c={kexplorerLog:[],statusTexts:[],klabLog:[],dataViewers:[],mainDataViewerIdx:0,lastViewerId:0,mainViewer:void 0,treeVisible:!0,leftMenuContent:null,leftMenuState:r["u"].LEFTMENU_HIDDEN,mainControlDocked:!1,contextGeometry:null,spinner:r["H"].SPINNER_STOPPED,spinnerOwners:[],searchActive:!1,searchFocus:!1,searchLostChar:"",searchHistory:[],searchInApp:!1,flowchartSelected:r["g"].GRAPH_DATAFLOW,dataflowInfoOpen:!1,observationInfo:null,mapSelection:r["g"].EMPTY_MAP_SELECTION,exploreMapMode:!1,treeSelected:null,treeTicked:[],treeExpanded:[],topLayer:null,scaleEditing:{active:!1,type:null},drawMode:!1,customContext:!1,saveLocation:!0,saveDockedStatus:!1,modalMode:!1,inputRequests:[],waitingGeolocation:!0,helpShown:!1,modalSize:r["r"].DEFAULT_MODAL_SIZE,fuzzyMode:!1,largeMode:0,helpBaseUrl:null,timeRunning:!1,layout:null,windowSide:"left",dialogs:[],modalWindow:null,engineEvents:[],klabApp:null,levels:[s["a"].TYPE_INFO,s["a"].TYPE_WARNING,s["a"].TYPE_ERROR],showSettings:!0,notificationsParams:null,reloadViews:[],documentationView:r["n"].REPORT,documentationSelected:null,documentationCache:new Map,tableFontSize:12,textFontSize:10,viewCoordinates:!0},l=(n("7514"),n("7f7f"),n("6762"),n("2fdb"),n("448a")),u=n.n(l),d=n("b12a"),E=n("b0b2"),f={kexplorerLog:function(e){return e.kexplorerLog},lastKexplorerLog:function(e){return function(t){return Object(d["o"])(e.kexplorerLog,t)}},klabLog:function(e){return e.klabLog},lastKlabLog:function(e){return function(t){return Object(d["o"])(e.klabLog,t)}},klabLogReversedAndFiltered:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.klabLog.length)return[];var n=u()(e.klabLog).reverse();return 0===t.length?n:n.filter(function(e){return t.includes(e.type)})}},levels:function(e){return e.levels},statusTexts:function(e){return e.statusTexts},statusTextsLength:function(e){return e.statusTexts.length},statusTextsString:function(e){return e.statusTexts.length>0?e.statusTexts.map(function(e){return e.text}).join(" - "):""},mainViewer:function(e){return e.mainViewer},mainViewerName:function(e){return e.mainViewer?e.mainViewer.name:null},isTreeVisible:function(e){return e.treeVisible},leftMenuContent:function(e){return e.leftMenuContent},leftMenuState:function(e){return e.leftMenuState},isDocked:function(e){return e.leftMenuState!==r["u"].LEFTMENU_HIDDEN},hasMainControl:function(e){return e.mainViewer&&e.mainViewer.mainControl},isMainControlDocked:function(e){return e.mainControlDocked},admitSearch:function(e){return e.mainViewer&&e.mainViewer.hasSearch},contextGeometry:function(e){return e.contextGeometry},dataViewers:function(e){return e.dataViewers},mainDataViewer:function(e){return e.dataViewers.find(function(e){return e.main})},mainDataViewerIdx:function(e){return e.mainDataViewerIdx},lastViewerId:function(e){return e.lastViewerId},viewer:function(e){return function(t){return e.dataViewers.length>0?e.dataViewers.find(function(e){return e.idx===t}):null}},spinnerIsAnimated:function(e){return e.spinner.animated},spinner:function(e){return e.spinner},spinnerOwners:function(e){return e.spinnerOwners},spinnerColor:function(e){return"undefined"!==e.spinner&&null!==e.spinner?Object(E["e"])(e.spinner.color):null},spinnerErrorMessage:function(e){return"undefined"!==e.spinner&&null!==e.spinner?e.spinner.errorMessage:null},searchIsActive:function(e){return e.searchActive},searchIsFocused:function(e){return e.searchFocus},searchLostChar:function(e){return e.searchLostChar},searchHistory:function(e){return e.searchHistory},searchInApp:function(e){return e.searchInApp},flowchartSelected:function(e){return e.flowchartSelected},dataflowInfoOpen:function(e){return e.dataflowInfoOpen},observationInfo:function(e){return e.observationInfo},mapSelection:function(e){return e.mapSelection},hasObservationInfo:function(e){return null!==e.observationInfo},exploreMode:function(e){return!!(null!==e.observationInfo&&Object(d["n"])(e.observationInfo)&&e.observationInfo.dataSummary.histogram.length>0&&e.observationInfo.visible&&e.observationInfo.top)},isScaleEditing:function(e){return e.scaleEditing.active},scaleEditingType:function(e){return e.scaleEditing.type},isDrawMode:function(e){return e.drawMode},hasCustomContext:function(e){return e.customContext},topLayer:function(e){return e.topLayer},topLayerId:function(e){return null!==e.topLayer?e.topLayer.id:null},inputRequests:function(e){return e.inputRequests},hasInputRequests:function(e){return 0!==e.inputRequests.length},isInModalMode:function(e){return e.modalMode},isHelpShown:function(e){return e.helpShown},modalSize:function(e){return e.modalSize},fuzzyMode:function(e){return e.fuzzyMode},largeMode:function(e){return e.largeMode},isTimeRunning:function(e){return e.timeRunning},layout:function(e){return e.layout},appStyle:function(e){return e.layout.style||"default"},modalWindow:function(e){return e.modalWindow},hasHeader:function(e){return e.layout&&(e.layout.header||e.layout.logo||e.layout.label||e.layout.description)},windowSide:function(e){return e.windowSide},isApp:function(e){return null!==e.klabApp},klabApp:function(e){return e.klabApp},activeDialogs:function(e){return e.dialogs.filter(function(e){return!e.dismiss})},engineEvents:function(e){return e.engineEvents},engineEventsCount:function(e){return e.engineEvents.length},hasShowSettings:function(e){return e.showSettings},notificationsParams:function(e){return e.notificationsParams},reloadViews:function(e){return e.reloadViews},documentationView:function(e){return e.documentationView},documentationSelected:function(e){return e.documentationSelected},documentationCache:function(e){return e.documentationCache},tableFontSize:function(e){return e.tableFontSize},textFontSize:function(e){return e.textFontSize},viewCoordinates:function(e){return e.viewCoordinates}},T=(n("f751"),n("3156")),p=n.n(T),S=(n("20d6"),n("741d")),m={ADD_TO_KEXPLORER_LOG:function(e,t){Object(d["p"])(e.kexplorerLog,t)},ADD_TO_KLAB_LOG:function(e,t){Object(d["p"])(e.klabLog,t)},SET_LEVELS:function(e,t){t&&(e.levels=t)},TOGGLE_LEVEL:function(e,t){var n=e.levels.indexOf(t);-1===n?e.levels.push(t):e.levels.splice(n,1)},ADD_TO_STATUS_TEXTS:function(e,t){var n=t.id,o=t.text;e.statusTexts.push({id:n,text:o})},REMOVE_FROM_STATUS_TEXTS:function(e,t){var n=e.statusTexts.findIndex(function(e){return e.id===t});-1!==n&&e.statusTexts.splice(n,1)},SET_CONTEXT_LAYER:function(e,t){e.dataViewers.splice(0,e.dataViewers.length),e.lastViewerId=0,e.contextGeometry=t,e.treeExpanded=[],e.treeTicked=[],e.statusTexts=[],e.treeSelected=null,e.topLayer=null,e.reloadViews.splice(0,e.reloadViews.length),e.documentationSelected=null,e.modalWindow=null},SET_MAIN_VIEWER:function(e,t){e.mainViewer=t},SET_TREE_VISIBLE:function(e,t){e.treeVisible=t},SET_LEFTMENU_CONTENT:function(e,t){e.leftMenuContent=t},SET_LEFTMENU_STATE:function(e,t){e.leftMenuState=t},SET_MAIN_DATA_VIEWER:function(e,t){var n=t.viewerIdx,o=t.visible;if(o)e.dataViewers.forEach(function(t){t.idx===n?(t.main=!0,e.mainDataViewerIdx=n):t.main=!1,t.visible=!t.type.hideable||t.idx===n||t.visible});else{var a=!1;e.dataViewers.forEach(function(t){a||t.type.hideable&&!t.visible?(t.main=!1,t.type.hideable&&t.idx===n&&(t.visible=!1)):(t.main=!0,e.mainDataViewerIdx=t.idx,a=!0)})}},RESET_MAIN_DATA_VIEWER:function(e){e.dataViewer=[],e.mainDataViewerIdx=0},SET_SAVE_DOCKED_STATUS:function(e,t){e.saveDockedStatus=t},SET_MAIN_CONTROL_DOCKED:function(e,t){e.mainControlDocked=t,e.saveDockedStatus&&S["a"].set(r["P"].COOKIE_DOCKED_STATUS,t,{expires:30,path:"/",secure:!0})},ADD_VIEWER_ELEMENT:function(e,t){var n=t.main,o=t.type,a=t.label,i=t.visible,r=t.callback;0===e.lastViewerId?n=!0:!0===n&&e.dataViewers.forEach(function(e){e.main=!1}),e.lastViewerId+=1,e.dataViewers.push({idx:e.lastViewerId,main:n,type:o,label:a,visible:i,observations:[]}),"function"===typeof r&&r(e.lastViewerId)},SET_SPINNER_ANIMATED:function(e,t){e.spinner.animated=t},SET_SPINNER_COLOR:function(e,t){e.spinner.color=t},SET_SPINNER:function(e,t){var n=t.animated,o=t.color,a=t.errorMessage,i=void 0===a?null:a;e.spinner={animated:n,color:o,errorMessage:i}},ADD_TO_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1===n&&e.spinnerOwners.push(t)},REMOVE_FROM_SPINNER_OWNERS:function(e,t){var n=e.spinnerOwners.indexOf(t);-1!==n&&e.spinnerOwners.splice(n,1)},SEARCH_ACTIVE:function(e,t){var n=t.active,o=t.char,a=void 0===o?"":o;e.searchActive!==n&&(e.searchLostChar=a,e.searchActive=n)},SEARCH_FOCUS:function(e,t){var n=t.focused,o=t.char,a=void 0===o?"":o;e.searchFocus!==n&&(e.searchLostChar=a,e.searchFocus=n)},SEARCH_INAPP:function(e,t){e.searchInApp=t},RESET_SEARCH_LOST_CHAR:function(e){e.searchLostChar=""},RESET_SEARCH:function(e){e.searchActive=!1,e.searchFocus=!1,e.searchLostChar=""},STORE_SEARCH:function(e,t){e.searchHistory.unshift(t)},SET_FLOWCHART_SELECTED:function(e,t){e.flowchartSelected=t},SET_DATAFLOW_INFO_OPEN:function(e,t){e.dataflowInfoOpen=t},SET_OBSERVATION_INFO:function(e,t){null===t?(e.treeSelected=null,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.observationInfo=null):null!==e.observationInfo&&t.id===e.observationInfo.id||(e.observationInfo=t,e.mapSelection.locked||(e.mapSelection=r["g"].EMPTY_MAP_SELECTION),e.treeSelected=t.id)},SET_MAP_SELECTION:function(e,t){var n=t.pixelSelected,o=t.layerSelected,a=t.value,i=void 0===a?null:a,s=t.locked,c=void 0!==s&&s;e.mapSelection=null===t||null===n?r["g"].EMPTY_MAP_SELECTION:{pixelSelected:n,layerSelected:o,value:i,locked:c}},SET_SCALE_EDITING:function(e,t){var n=t.active,o=t.type;e.scaleEditing={active:n,type:o}},SET_DRAW_MODE:function(e,t){e.drawMode=t},SET_CUSTOM_CONTEXT:function(e,t){e.customContext=t},SET_SAVE_LOCATION:function(e,t){e.saveLocation=t},SET_TOP_LAYER:function(e,t){e.topLayer=t},SET_MODAL_MODE:function(e,t){e.modalMode=t},SET_INPUT_REQUEST:function(e,t){var n=t.payload,o=t.id;e.inputRequests.push(p()({messageId:o},n))},REMOVE_INPUT_REQUEST:function(e,t){if(e.inputRequests.length>0)if(null===t)e.inputRequests.splice(0,e.inputRequests.length);else{var n=e.inputRequests.findIndex(function(e){return e.messageId===t});-1!==n&&e.inputRequests.splice(n,1)}},SET_MODAL_SIZE:function(e,t){var n=t.width,o=t.height;e.modalSize={width:n,height:o}},SET_FUZZY_MODE:function(e,t){e.fuzzyMode=t},SET_LARGE_MODE:function(e,t){t<0?t=0:t>6&&(t=r["g"].MAX_SEARCHBAR_INCREMENTS),e.largeMode=t},SET_TIME_RUNNING:function(e,t){e.timeRunning=t},SET_LAYOUT:function(e,t){e.layout=t},SET_MODAL_WINDOW:function(e,t){e.modalWindow=t},SET_WINDOW_SIDE:function(e,t){e.windowSide=t},CREATE_VIEW_COMPONENT:function(e,t){if(t.type!==r["a"].ALERT&&t.type!==r["a"].CONFIRM){var n=e.layout&&(Object(d["d"])(e.layout,t.id)||e.modalWindow&&Object(d["d"])(e.modalWindow,t.id));if(n)console.log("Updating component: ",JSON.stringify(n,null,2)),Object.assign(n,t),console.log("Updated component: ",JSON.stringify(n,null,2));else{var o=Object(d["c"])(e.layout,t.parentId)||e.modalWindow&&Object(d["c"])(e.modalWindow,t.id);o&&(o.children.push(t),console.warn("Update parent: ",o))}}else e.dialogs.push(p()({},t,{dismiss:!1}))},SET_ENGINE_EVENT:function(e,t){if(null!==e.engineEvents)switch(t.type){case r["o"].RESOURCE_VALIDATION:var n=e.engineEvents.findIndex(function(e){return e.id===t.id});t.started?-1===n?e.engineEvents.push({id:t.id,timestamp:t.timestamp}):console.debug("Try to start an existing engine event",t):-1!==n?e.engineEvents.splice(n,1):console.debug("Try to stop an unregistered engine event",t),console.debug("Engine event with id ".concat(t.id," ").concat(t.started?"start":"stop"," / total engine events: ").concat(e.engineEvents.length));break;default:break}else console.debug("Receive an engine event before subscription")},VIEW_ACTION:function(e,t){if(null!==t.component){if(e.layout||e.modalWindow){var n=Object(d["d"])(e.layout,t.component.id)||null!==e.modalWindow&&Object(d["d"])(e.modalWindow,t.component.id);n&&(0===t.component.components.length&&0!==n.components.length&&delete t.component.components,Object.assign(n,t.component))}}else console.warn("Action component is null")},SHOW_SETTINGS:function(e,t){e.showSettings=t},SET_NOTIFICATIONS_PARAMS:function(e,t){e.notificationsParams=t},SET_DOCUMENTATION_VIEW:function(e,t){e.documentationView=t},SET_DOCUMENTATION_SELECTED:function(e,t){e.documentationSelected=t},SET_RELOAD_VIEWS:function(e,t){t&&t.forEach(function(t){-1===e.reloadViews.indexOf(t)&&e.reloadViews.push(t)})},REMOVE_RELOAD_VIEW:function(e,t){-1!==e.reloadViews.indexOf(t)&&e.reloadViews.splice(e.reloadViews.indexOf(t),1)},SET_TABLE_FONT_SIZE:function(e,t){e.tableFontSize=t},SET_TEXT_FONT_SIZE:function(e,t){e.textFontSize=t},SET_VIEW_COORDINATES:function(e,t){e.viewCoordinates=t}},O=n("7037"),b=n.n(O),A=(n("551c"),n("c1df")),_=n.n(A),I=n("4328"),v=n.n(I),N=n("8449"),h=n("256f"),R={addToKexplorerLog:function(e,t){var n=e.commit,o=t.type,a=t.payload,i=t.important,r=void 0!==i&&i;n("ADD_TO_KEXPLORER_LOG",{type:o,payload:a,important:r,time:_()()})},addToKlabLog:function(e,t){var n=e.commit,o=t.type,a=t.id,i=t.payload,r=t.timestamp;n("ADD_TO_KLAB_LOG",{type:o,id:a,payload:i,time:_()(r)})},setLevels:function(e,t){var n=e.commit;n("SET_LEVELS",t)},toggleLevel:function(e,t){var n=e.commit;n("TOGGLE_LEVEL",t)},addToStatusTexts:function(e,t){var n=e.commit,o=t.id,a=t.text;n("ADD_TO_STATUS_TEXTS",{id:o,text:a})},removeFromStatusTexts:function(e,t){var n=e.commit;n("REMOVE_FROM_STATUS_TEXTS",t)},setContextLayer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;Object(d["j"])(t).then(function(e){o("SET_CONTEXT_LAYER",e),o("RESET_SEARCH"),a("assignViewer",{observation:t,main:!0}),n.mainViewer.name===r["M"].DATA_VIEWER.name&&n.mainControlDocked&&a("setMainViewer",r["M"].DOCKED_DATA_VIEWER)})},resetContext:function(e){var t=e.commit;t("SET_CONTEXT_LAYER",null),t("RESET_SEARCH"),t("SET_OBSERVATION_INFO",null);var n=r["M"].DATA_VIEWER;t("SET_LEFTMENU_CONTENT",n.leftMenuContent),t("SET_LEFTMENU_STATE",n.leftMenuState),t("SET_MAIN_VIEWER",n),t("RESET_MAIN_DATA_VIEWER",null),t("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION),t("SET_FLOWCHART_SELECTED",r["g"].GRAPH_DATAFLOW)},setMainViewer:function(e,t){var n=e.state,o=e.commit,a=e.dispatch;t&&"undefined"!==typeof n.mainViewer&&(t.leftMenuContent===r["u"].DOCKED_DATA_VIEWER_COMPONENT?o("SET_MAIN_CONTROL_DOCKED",!0):t.leftMenuContent===r["u"].DATA_VIEWER_COMPONENT&&o("SET_MAIN_CONTROL_DOCKED",!1)),o("SET_MAIN_VIEWER",t),t&&(a("setLeftMenuState",t.leftMenuState),a("setLeftMenuContent",t.leftMenuContent))},setTreeVisible:function(e,t){var n=e.commit;n("SET_TREE_VISIBLE",t)},setLeftMenuContent:function(e,t){var n=e.commit;n("SET_LEFTMENU_CONTENT",t)},setLeftMenuState:function(e,t){var n=e.commit;n("SET_LEFTMENU_STATE",t)},setMainDataViewer:function(e,t){var n=e.commit,o=e.getters,a=t.viewerIdx,i=t.viewerType,r=void 0===i?null:i,s=t.visible,c=void 0===s||s;(c&&a!==o.mainDataViewerIdx||!c&&null!==r&&r.hideable)&&n("SET_MAIN_DATA_VIEWER",{viewerIdx:a,visible:c})},assignViewer:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=e.rootGetters,s=t.observation,c=t.main,l=void 0!==c&&c;return new Promise(function(e,t){var c,u=null,E=null;if(s.observationType)switch(s.observationType){case r["y"].TYPE_GROUP:case r["y"].TYPE_VIEW:case r["y"].TYPE_PROCESS:u=null;break;case r["y"].TYPE_STATE:var f;if(1===s.valueCount)u=null;else if(u=r["N"].VIEW_MAP,f=s.parentId===i["data/contextId"]?i["data/context"]:i["data/observations"].find(function(e){return e.id===s.parentId}),"undefined"!==typeof f){s.encodedShape=f.encodedShape;var T=f;E=T.label}else console.warn("Need parent of ".concat(s.id," but doesn't find it. Parent id is ").concat(s.parentId));break;case r["y"].TYPE_INITIAL:case r["y"].TYPE_RELATIONSHIP:u=r["N"].VIEW_MAP;var p=null;if(null!==s.parentId&&(p=Object(d["f"])(i["data/tree"],s.parentId),"undefined"===typeof p&&(console.warn("Observation with id ".concat(s.id," has an invalid unknown parent: ").concat(s.parentId)),p=null)),p){var S=p;E=S.label}else E=s.label;break;case r["y"].TYPE_SUBJECT:u=r["N"].VIEW_MAP;break;case r["y"].TYPE_CONFIGURATION:u=r["N"].VIEW_GRAPH,E=s.label;break;case r["y"].TYPE_EVENT:u=r["N"].VIEW_UNKNOWN;break;default:t(new Error("Unknown observation type in observation labeled ".concat(s.label,": ").concat(s.observationType)));break}null!==u?(console.debug("Need a viewer of type ".concat(u.component)),u.forceNew||(c=o.dataViewers.find(function(e){return e.type.component===u.component})),"undefined"===typeof c?(console.info("Create new viewer of type ".concat(u.component)),n("ADD_VIEWER_ELEMENT",{main:l,type:u,label:E&&null!==E?E:u.label,visible:!u.hideable,callback:function(t){e(t)}})):(l&&a("setMainDataViewer",{viewerIdx:c.idx}),e(c.idx))):e(null)})},setSpinner:function(e,t){var n=e.commit,o=e.getters,a=e.dispatch,i=t.animated,s=t.color,c=t.time,l=void 0===c?null:c,u=t.then,d=void 0===u?null:u,E=t.errorMessage,f=void 0===E?null:E,T=t.owner;return new Promise(function(e){if(!T||null===T)throw new Error("No spinner owner!");i?n("ADD_TO_SPINNER_OWNERS",T):(n("REMOVE_FROM_SPINNER_OWNERS",T),0!==o.spinnerOwners.length&&(i=!0,s!==r["H"].SPINNER_ERROR.color&&(s=r["H"].SPINNER_LOADING.color))),null!==f&&"object"===b()(f)&&(f=JSON.stringify(f)),n("SET_SPINNER",{animated:i,color:s,errorMessage:f}),null!==l&&null!==d&&setTimeout(function(){a("setSpinner",p()({},d,{owner:T}))},1e3*l),e()})},searchStart:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SEARCH_ACTIVE",{active:!0,char:n})},searchStop:function(e){var t=e.commit;t("SEARCH_ACTIVE",{active:!1})},searchFocus:function(e,t){var n=e.commit,o=t.focused,a=t.char,i=void 0===a?null:a;n("SEARCH_FOCUS",{focused:o,char:i})},resetSearchLostChar:function(e){var t=e.commit;t("RESET_SEARCH_LOST_CHAR")},storePreviousSearch:function(e,t){var n=e.commit;n("STORE_SEARCH",t)},searchInApp:function(e,t){var n=e.commit;n("SEARCH_INAPP",t)},setFlowchartSelected:function(e,t){var n=e.commit;n("SET_FLOWCHART_SELECTED",t)},setDataflowInfoOpen:function(e,t){var n=e.commit;n("SET_DATAFLOW_INFO_OPEN",t)},setObservationInfo:function(e,t){var n=e.commit;n("SET_OBSERVATION_INFO",t)},setMapSelection:function(e,t){var n=e.commit,o=e.state,a=t.pixelSelected,i=t.timestamp,c=void 0===i?-1:i,l=t.layerSelected,u=void 0===l?null:l,E=t.observationId,f=void 0===E?null:E,T=t.locked,p=void 0!==T&&T;if(null!==a){null===f&&(f=o.observationInfo.id);var S="".concat("").concat(s["c"].REST_SESSION_VIEW,"data/").concat(f),m=Object(h["l"])(a,"EPSG:3857","EPSG:4326"),O=-1!==c?"T1(1){time=".concat(c.toFixed(0),"}"):"";Object(d["h"])("pv_".concat(f),S,{params:{format:"SCALAR",locator:"".concat(O,"S0(1){latlon=[").concat(m[0]," ").concat(m[1],"]}")},paramsSerializer:function(e){return v.a.stringify(e,{arrayFormat:"repeat"})}},function(e,t){var o="No value";e&&"undefined"!==typeof e.data&&(o=e.data),n("SET_MAP_SELECTION",{pixelSelected:a,layerSelected:u,value:o,locked:p}),t()})}else n("SET_MAP_SELECTION",r["g"].EMPTY_MAP_SELECTION)},setScaleEditing:function(e,t){var n=e.commit,o=t.active,a=t.type;n("SET_SCALE_EDITING",{active:o,type:a}),n("SET_MODAL_MODE",o)},setDrawMode:function(e,t){var n=e.commit;n("SET_DRAW_MODE",t),n("SET_MODAL_MODE",t)},setCustomContext:function(e,t){var n=e.commit;n("SET_CUSTOM_CONTEXT",t)},setTopLayer:function(e,t){var n=e.commit;n("SET_TOP_LAYER",t)},inputRequest:function(e,t){var n=e.commit;n("SET_INPUT_REQUEST",t),n("SET_MODAL_MODE",!0)},removeInputRequest:function(e,t){var n=e.commit,o=e.getters;n("REMOVE_INPUT_REQUEST",t),o.hasInputRequests||n("SET_MODAL_MODE",!1)},setModalMode:function(e,t){var n=e.commit;n("SET_MODAL_MODE",t)},setModalSize:function(e,t){var n=e.commit,o=t.width,a=t.height;n("SET_MODAL_SIZE",{width:o,height:a})},setFuzzyMode:function(e,t){var n=e.rootGetters,o=e.commit;n["data/hasContext"]||o("SET_FUZZY_MODE",t)},setLargeMode:function(e,t){var n=e.commit;n("SET_LARGE_MODE",t)},setTimeRunning:function(e,t){var n=e.commit;n("SET_TIME_RUNNING",t)},setLayout:function(e,t){var n=e.commit;if(null===t||"DESKTOP"!==t.platform&&"MOBILE"!==t.platform)if(n("SET_LAYOUT",null===t?null:p()({},t)),null!==t)localStorage.setItem(r["P"].LOCAL_STORAGE_APP_ID,t.name);else{var o=localStorage.getItem(r["P"].LOCAL_STORAGE_APP_ID);o&&localStorage.removeItem(r["P"].LOCAL_STORAGE_APP_ID)}else console.info("Received an app for another platform: ".concat(t.platform))},setModalWindow:function(e,t){var n=e.commit;n("SET_MODAL_WINDOW",t)},setWindowSide:function(e,t){var n=e.commit;n("SET_WINDOW_SIDE",t)},setEngineEvent:function(e,t){var n=e.commit;n("SET_ENGINE_EVENT",t)},createViewComponent:function(e,t){var n=e.commit;n("CREATE_VIEW_COMPONENT",t)},viewAction:function(e,t){var n=e.commit;n("VIEW_ACTION",t)},viewSetting:function(e,t){var n=e.getters,o=e.rootGetters,a=e.dispatch;if(t){var i=function(){N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.targetId,selected:t.operation===r["O"].SHOW})};switch(t.target){case r["O"].OBSERVATION:n.mainViewerName!==r["M"].DATA_VIEWER.name&&t.operation===r["O"].SHOW?a("setMainViewer",r["M"].DATA_VIEWER).then(function(){i(),N["b"].$emit(r["h"].MAP_SIZE_CHANGED,{type:"changelayout"})}):i();break;case r["O"].VIEW:i();break;case r["O"].TREE:n.mainViewerName===r["M"].DATA_VIEWER.name&&o["data/hasContext"]&&a("setTreeVisible",t.operation===r["O"].SHOW);break;case r["O"].REPORT:n.mainViewerName===r["M"].REPORT_VIEWER.name&&t.operation===r["O"].HIDE?a("setMainViewer",n.isMainControlDocked?r["M"].DOCKED_DATA_VIEWER:r["M"].DATA_VIEWER):n.mainViewerName!==r["M"].REPORT_VIEWER.name&&o["data/hasObservations"]&&t.operation===r["O"].SHOW&&a("setMainViewer",r["M"].REPORT_VIEWER);break;case r["O"].DATAFLOW:n.mainViewerName===r["M"].DATAFLOW_VIEWER.name&&t.operation===r["O"].HIDE?a("setMainViewer",n.isMainControlDocked?r["M"].DOCKED_DATA_VIEWER:r["M"].DATA_VIEWER):n.mainViewerName!==r["M"].DATAFLOW_VIEWER.name&&o["data/hasContext"]&&t.operation===r["O"].SHOW&&a("setMainViewer",r["M"].DATAFLOW_VIEWER);break;case r["O"].URL:N["b"].$emit(r["h"].DOWNLOAD_URL,{url:t.targetId,parameters:t.parameters});break;default:break}}},setShowSettings:function(e,t){var n=e.commit;n("SHOW_SETTINGS",t)},setNotificationsParams:function(e,t){var n=e.commit;n("SET_NOTIFICATIONS_PARAMS",t)},setDocumentationView:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_VIEW",t)},setDocumentationSelected:function(e,t){var n=e.commit;n("SET_DOCUMENTATION_SELECTED",t)},setDocumentation:function(e,t){var n=e.commit,o=e.rootGetters;if(!t.view){var a=o["data/documentationContent"].get(t.id);if(!a)return void console.debug("Try to show an unknown document: ".concat(t.id));t.view=r["m"][a.type]}n("SET_DOCUMENTATION_VIEW",t.view),n("SET_DOCUMENTATION_SELECTED",t.id),N["b"].$emit(r["h"].SHOW_DOCUMENTATION),N["b"].$emit(r["h"].SELECT_ELEMENT,{id:t.id,selected:!0})},changeInDocumentation:function(e,t){var n=e.commit;if(t.viewsAffected){var o=t.viewsAffected.filter(function(e){return e!==r["n"].REFERENCES&&e!==r["n"].MODELS});if(o.length>1&&o.includes(r["n"].TABLES)){var a=o.indexOf(r["n"].REPORT);-1!==a&&o.splice(a,1)}o.length>0&&n("SET_RELOAD_VIEWS",o)}},removeReloadView:function(e,t){var n=e.commit;n("REMOVE_RELOAD_VIEW",t)},setTableFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setTextFontSize:function(e,t){var n=e.commit;n("SET_TABLE_FONT_SIZE",t)},setViewCoordinates:function(e,t){var n=e.commit;n("SET_VIEW_COORDINATES",t)}},C={namespaced:!0,state:c,getters:f,mutations:m,actions:R},g=(n("456d"),n("970b")),w=n.n(g),L=n("5bc30"),P=n.n(L),D=function(){function e(){w()(this,e),this.items=[]}return P()(e,[{key:"push",value:function(e){this.items.push(e)}},{key:"pop",value:function(e){if("undefined"!==typeof e&&e>0){if(e>this.size()-1)throw Error("Stack overflow");return this.items.splice(e+1),this.items.peek()}return this.items.pop()}},{key:"peek",value:function(){return 0===this.items.length?null:this.items[this.items.length-1]}},{key:"previous",value:function(){return this.items.length<=1?null:this.items[this.items.length-2]}},{key:"size",value:function(){return this.items.length}},{key:"findIndex",value:function(e){return this.items.findIndex(e)}},{key:"findItem",value:function(e){return this.items.find(function(t){return t.id===e})}},{key:"map",value:function(e){return this.items.map(e)}},{key:"empty",value:function(){this.items.splice(0)}},{key:"isEmpty",value:function(){return 0===this.items.length}},{key:"toArray",value:function(){return this.items}}]),e}(),y={sessionReference:null,tree:[],userTree:[],lasts:[],contexts:new D,contextCustomLabel:null,scaleReference:null,schedulingResolution:null,proposedContext:null,scaleLocked:{space:!1,time:!1},nextScale:null,observations:[],contextMenuObservationId:null,knowledgeViews:[],timeEvents:[],modificationsTask:null,timestamp:-1,engineTimestamp:-1,flowcharts:r["s"],dataflowStatuses:[],dataflowInfo:null,session:null,contextsHistory:[],waitingForReset:null,orphans:[],searchResult:null,childrenToAskFor:r["g"].CHILDREN_TO_ASK_FOR,interactiveMode:!1,crossingIDL:!1,capabilities:{},local:!1,token:null,packageVersion:"0.22.0",packageBuild:"0",terminalsCounter:0,terminals:[],terminalCommands:null!==localStorage.getItem(r["P"].LOCAL_STORAGE_TERMINAL_COMMANDS)?JSON.parse(localStorage.getItem(r["P"].LOCAL_STORAGE_TERMINAL_COMMANDS)):[],documentationTrees:Object.keys(r["n"]).map(function(e){return{view:e,tree:[]}}),documentationContent:new Map},M=(n("55dd"),{sessionReference:function(e){return e.sessionReference},isDeveloper:function(e){return e.sessionReference&&e.sessionReference.owner&&e.sessionReference.owner.groups&&-1!==e.sessionReference.owner.groups.findIndex(function(e){return"DEVELOPERS"===e.id})},tree:function(e){return e.tree},treeNode:function(e){return function(t){return Object(d["f"])(e.tree,t)}},lasts:function(e){return e.lasts},hasTree:function(e){return e.tree.length>0},mainTreeHasNodes:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return null!==Object(d["e"])(e.tree,"",function(e){return e.userNode||t&&!e.ticked?null:e})}},userTree:function(e){return e.userTree},observations:function(e){return e.observations},observationsOfViewer:function(e){return function(t){return e.observations.filter(function(e){return e.viewerIdx===t})}},hasObservations:function(e){return 0!==e.observations.length},visibleObservations:function(e){return e.observations.filter(function(e){return e.visible})},observationsIdOnTop:function(e){return e.observations.filter(function(e){return e.top}).map(function(e){return e.id})},contextMenuObservationId:function(e){return e.contextMenuObservationId},knowledgeViews:function(e){return e.knowledgeViews},visibleKnowledgeView:function(e){return e.knowledgeViews.find(function(e){return e.show})},timeEvents:function(e){return e.timeEvents},timeEventsOfObservation:function(e){return function(t){return e.timeEvents.filter(function(e){return e.id===t})}},timeEventsUntil:function(e){return function(t){return e.timeEventsEvents.filter(function(e){return e.timestamp<=t})}},modificationsTask:function(e){return e.modificationsTask},visibleEvents:function(e){var t=e.observations.filter(function(e){return e.visible}).map(function(e){return e.id});return e.timeEvents.filter(function(e){return t.includes(e.id)})},timestamp:function(e){return e.timestamp},engineTimestamp:function(e){return e.engineTimestamp},flowcharts:function(e){return e.flowcharts},flowchart:function(e){return function(t){return e.flowcharts.find(function(e){return e.type===t})}},flowchartsUpdatable:function(e){return e.flowcharts.find(function(e){return e.updatable})},flowchartUpdatable:function(e){return function(t){var n=e.flowcharts.find(function(e){return e.type===t});return!!n&&n.updatable}},dataflowStatuses:function(e){return e.dataflowStatuses},dataflowInfo:function(e){return e.dataflowInfo},contextsId:function(e){return e.contexts.map(function(e){return e.id})},context:function(e){return e.contexts.peek()},contextsCount:function(e){return e.contexts.size()},previousContext:function(e){return e.contexts.previous()},contextById:function(e){return function(t){return e.contexts.findItem(t)}},proposedContext:function(e){return e.proposedContext},hasContext:function(e,t){return null!==t.context},contextLabel:function(e,t){return null!==t.context?t.context.label:null},contextCustomLabel:function(e){return null!==e.contextCustomLabel?e.contextCustomLabel:null},contextsLabels:function(e,t){return null!==t.context?e.contexts.map(function(e){return{label:e.label,contextId:e.id}}):[]},contextId:function(e,t){return null!==t.context?t.context.id:null},contextEncodedShape:function(e,t){return null!==t.context?"".concat(t.context.spatialProjection," ").concat(t.context.encodedShape):""},contextsHistory:function(e){return e.contextsHistory.length>0&&e.contextsHistory.sort(function(e,t){return e.creationTime===t.creationTime?0:e.creationTime>t.creationTime?-1:1}),e.contextsHistory},contextReloaded:function(e,t){return null!==t.context&&"undefined"!==typeof t.context.restored&&t.context.restored},contextHasTime:function(e,t){return null!==t.context&&t.context.scaleReference&&0!==t.context.scaleReference.end},session:function(e){return e.session},scaleReference:function(e,t){return null!==t.context?t.context.scaleReference:e.scaleReference},schedulingResolution:function(e){return e.schedulingResolution},isScaleLocked:function(e){return e.scaleLocked},nextScale:function(e){return e.nextScale},hasNextScale:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!==e.nextScale&&(null===t||t===r["B"].ST_SPACE&&e.nextScale.spaceChanged||t===r["B"].ST_SPACE&&e.nextScale.spaceChanged)}},capabilities:function(e){return e.capabilities},searchResult:function(e){return e.searchResult},interactiveMode:function(e){return e.interactiveMode},isCrossingIDL:function(e){return e.crossingIDL},isLocal:function(e){return e.local},terminals:function(e){return e.terminals},hasActiveTerminal:function(e){return-1!==e.terminals.findIndex(function(e){return e.active})},terminalCommands:function(e){return e.terminalCommands},documentationTrees:function(e){return e.documentationTrees},documentationContent:function(e){return e.documentationContent}}),x=n("9523"),k=n.n(x),U=n("1442"),V={SET_SESSION_REFERENCE:function(e,t){e.sessionReference=t},SET_CONTEXT:function(e,t){var n=t.context,o=void 0===n?null:n,a=t.isRecontext,i=void 0!==a&&a;if(null===o)e.contexts.empty();else{var s=e.contexts.findIndex(function(e){return e.id===o.id});if(-1===s){if(i){var c=e.contexts.peek();o.scaleReference=c.scaleReference}e.contexts.push(o)}else e.contexts.pop(s)}e.tree=[],e.userTree=[],e.lasts=[],e.observations=[],e.knowledgeViews=[],e.flowcharts.forEach(function(e){e.flowchart=null,e.graph=null,e.updatable=!1,e.visible=!1}),e.dataflowStatuses=[],e.dataflowInfo=null,e.nodeSelected=null,e.nextScale=null,e.crossingIDL=!1,e.contextCustomLabel=null,e.timeEvents=[],e.timestamp=-1,e.engineTimestamp=-1,e.proposedContext=null,e.documentationTrees.forEach(function(e){e.tree.splice(0,e.tree.length)}),e.documentationContent.clear(),e.documentationView=r["n"].REPORT,null===o?e.contextsHistory=[]:"undefined"===typeof o.restored&&(o.restored=!1),e.schedulingResolution=null},SET_CONTEXT_CUSTOM_LABEL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.contextCustomLabel=t},WAITING_FOR_RESET:function(e,t){e.waitingForReset=t},STORE_CONTEXT:function(e,t){var n=e.contextsHistory.find(function(e){return e.id===t.id});"undefined"===typeof n?(console.debug("Added new context in store with id ".concat(t.id)),e.contextsHistory.push(t)):console.debug("Context with id ".concat(t.id," yet exists in contextHistory"))},SET_RELOAD_FLOWCHART:function(e,t){e.flowcharts.filter(function(e){return null===t||e.target===t}).forEach(function(e){e.updatable=!0,e.visible=!1})},ADD_FLOWCHART:function(e,t){var n=t.flowchart,o=t.target,a=e.flowcharts.find(function(e){return e.type===o});a?(a.flowchart=n,a.updatable=!1):console.warn("Unknown target to add flowchart: ".concat(o))},SET_DATAFLOW_STATUS:function(e,t){var n=t.id,o=t.status,a=e.dataflowStatuses.find(function(e){return e.id===n});"undefined"!==typeof a?a.status=o:e.dataflowStatuses.push({id:n,status:o})},SET_DATAFLOW_INFO:function(e,t){e.dataflowInfo=t},UPDATE_TIME_EVENTS:function(e,t){t.timeEvents&&t.timeEvents.length>0&&(t.timeEvents.forEach(function(n){e.timeEvents.push({id:t.id,timestamp:n})}),console.debug("Added ".concat(t.timeEvents.length," events")))},ADD_OBSERVATION:function(e,t){var n=t.observation;e.observations.push(n),console.info("Added observation: ".concat(n.label)),console.debug("Observation content: ".concat(JSON.stringify(n,null,2)))},UPDATE_OBSERVATION:function(e,t){var n=t.observationIndex,o=t.newObservation,a=e.observations[n],i=p()({},a,o);e.observations.splice(n,1,i);var r=function(e){e?(e.needUpdate=!i.contextualized,e.dynamic=i.dynamic,e.childrenCount=i.childrenCount,e.children.forEach(function(e){e.siblingsCount=i.childrenCount}),e.tickable=null!==i.viewerIdx&&!i.empty||i.isContainer||i.childrenCount>0,e.exportFormats=i.exportFormats):console.warn("Node of ".concat(i.id," - ").concat(i.label," not found"))},s=Object(d["f"])(e.tree,i.id);r(s),s&&s.userNode&&r(Object(d["f"])(e.userTree,i.id))},SET_CONTEXTMENU_OBSERVATIONID:function(e,t){e.contextMenuObservationId=t},MOD_BRING_FORWARD:function(e,t){var n=e.observations.find(function(e){return e.id===t.id});n||console.warn("Receive a bring forward for an unknown observation: ".concat(t.id," - ").concat(t.label)),n.main=!0,t.main=!0},MOD_STRUCTURE_CHANGE:function(e,t){var n=t.node,o=t.modificationEvent,a=e.observations.find(function(e){return e.id===o.id});a.childrenCount=o.newSize,a.empty=!1,o.exportFormats&&(a.exportFormats=o.exportFormats);var i=function(e){e&&(e.childrenCount=o.newSize,o.exportFormats&&(e.exportFormats=o.exportFormats),e.children.forEach(function(e){e.siblingsCount=o.newSize}),e.tickable=!0,e.disabled=!1,e.empty=!1,e.needUpdate=!0)};i(n),n.userNode&&i(Object(d["f"])(e.userTree,n.id))},MOD_VALUE_CHANGE:function(e,t){if(t.dynamic=!0,t.needUpdate=!1,t.userNode){var n=Object(d["f"])(e.userTree,t.id);n?(n.dynamic=!0,n.needUpdate=!1):console.warn("Node theoretically in user tree but not found: ".concat(t.id," - ").concat(t.label))}},ADD_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.push(p()({},t,{show:!1}))},SHOW_KNOWLEDGE_VIEW:function(e,t){e.knowledgeViews.forEach(function(e){e.viewId===t&&(e.show=!0)})},ADD_TIME_EVENT:function(e,t){var n=-1!==e.timeEvents.findIndex(function(e){return e.id===t.id&&e.timestamp===t.timestamp&&e.newAttributes===t.newAttributes&&e.newScale===t.newScale&&e.newName===t.newName&&e.newSemantics===t.newSemantics&&e.newSize===t.newSize});n?console.warn("Duplicated time event:\n ".concat(JSON.stringify(t,null,2))):e.timeEvents.push(t)},SET_MODIFICATIONS_TASK:function(e,t){e.modificationsTask=t},SET_TIMESTAMP:function(e,t){e.timestamp=t},SET_ENGINE_TIMESTAMP:function(e,t){e.engineTimestamp=t},SET_SCHEDULING_STATUS:function(e,t){if(null!==e.scaleReference)switch(t.type){case"TIME_ADVANCED":e.engineTimestamp=t.currentTime;break;case"STARTED":e.engineTimestamp=t.currentTime,e.schedulingResolution=t.resolution,N["b"].$emit(r["h"].NEW_SCHEDULING);break;case"FINISHED":e.engineTimestamp=e.scaleReference.end;break;default:console.warn("Unknown scheduling type: ".concat(t.type));break}else console.warn("Try to change scheduling type but no scaleReference")},ADD_NODE:function(e,t){var n=t.node,o=t.parentId,a=t.toUserTreeOnly,i=void 0!==a&&a,r=e.contexts.peek();if(null===r)return console.info("Context is null, it's just set or is a new observation of previous search for this session, so added to orphans. ID: ".concat(n.id)),void e.orphans.push(n);var s=r.id===r.rootContextId;if((s&&n.rootContextId!==r.id||!s&&n.contextId!==r.id)&&console.info("Subcontext or trying to add to tree an observation of other context. Actual: ".concat(r.id," / Node: ").concat(n.rootContextId)),r.id!==n.id)if(r.id===o){if(i||e.tree.push(n),n.userNode){var c=JSON.parse(JSON.stringify(n));e.userTree.push(c)}}else{var l=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=Object(d["f"])(t,o);null!==i?(i.children.length===i.childrenCount&&(i.childrenCount++,i.children.forEach(function(e){e.siblingsCount=i.childrenCount})),i.children.push(p()({},a,{idx:i.children.length,siblingsCount:i.childrenCount})),i.disabled=!1):(console.warn("Orphan founded with id ".concat(n.id)),e.orphans.push(n))};i||l(e.tree),n.userNode&&l(e.userTree,JSON.parse(JSON.stringify(n)))}else console.error("Try to add context to tree, check it!")},REMOVE_NODE:function(e,t){var n=t.id,o=t.fromMainTree,a=void 0!==o&&o,i=a?e.tree:e.userTree,r=function e(t,n){var o=t.findIndex(function(e){return e.id===n});-1===o?t.forEach(function(t){t.children&&0!==t.children.length&&e(t.children,n)}):(t.splice(o,1),console.debug("Find and delete node ".concat(n," from ").concat(a?"main tree":"user tree")))};r(i,n)},UPDATE_USER_NODE:function(e,t){var n=t.node,o=t.userNode,a=function e(t){t.userNode=o,t.children&&t.children.length>0&&t.children.forEach(function(t){return e(t)})};a(n)},SET_FOLDER_VISIBLE:function(e,t){var n=t.nodeId,o=t.visible,a=t.zIndexOffset;if(null!==a){e.observations.forEach(function(e){e.parentArtifactId===n||e.parentId===n?(e.visible=o,e.top=o):o&&e.zIndexOffset===a&&(e.top=!1)});var i=e.observations.find(function(e){return e.id===n});"undefined"!==typeof i&&(i.visible=o)}else console.info("Folder with id ".concat(n," has no loaded elements"));var r=function(e){var t=Object(d["f"])(e,n);"undefined"!==typeof t&&null!==t&&t.children.length>0&&(t.children.forEach(function(e){e.parentArtifactId===t.id&&(e.ticked=o)}),t.ticked=o)};r(e.tree),r(e.userTree)},SET_VISIBLE:function(e,t){var n=t.id,o=t.visible,a=e.observations.findIndex(function(e){return e.id===n}),i=e.observations[a];if("undefined"!==typeof i){var r=i.zIndexOffset;i.visible=o,i.top=o,o&&e.observations.forEach(function(e){e.id!==n&&e.zIndexOffset===r&&(e.top=!1)});var s=function(e){var t=Object(d["f"])(e,n);t&&(t.ticked=o)};s(e.tree),s(e.userTree),e.observations.splice(a,1,i)}else console.warn("Try to change visibility to no existing observations with id ".concat(n))},SET_LOADING_LAYERS:function(e,t){var n=t.loading,o=t.observation;if(o){o.loading=n;var a=Object(d["f"])(e.tree,o.id);if(a&&(a.loading=n,a.userNode)){var i=Object(d["f"])(e.userTree,o.id);i.loading=n}}},STORE_RAW_SEARCH_RESULT:function(e,t){e.searchResult=t},ADD_LAST:function(e,t){var n=t.parentId,o=t.observationId,a=t.offsetToAdd,i=t.total,r=e.lasts.findIndex(function(e){return n===e.parentId});if(-1!==r){var s=e.lasts[r];s.offset+a>=s.total?(e.lasts.splice(r,1),console.info("Folder ".concat(n," fully loaded"))):(s.observationId=o,s.offset+=a,console.info("Loaded more elements in folder ".concat(n,". New offset is ").concat(s.offset," ")))}else{if(a+1===i)return void console.info("Nothing to do in folder ".concat(n,". Offset is ").concat(a," and total is ").concat(i," "));e.lasts.push({parentId:n,observationId:o,offset:a,total:i}),console.debug("Added folder ".concat(n,". Offset is ").concat(a," "))}},SET_SCALE_REFERENCE:function(e,t){null===t.timeUnit&&(t.timeUnit=r["D"].YEAR),e.scaleReference=t,e.context||(null!==e.scaleReference.shape?e.proposedContext=d["a"].readGeometry(e.scaleReference.shape,{dataProjection:U["d"].PROJ_EPSG_4326,featureProjection:U["d"].PROJ_EPSG_3857}):e.proposedContext=null),console.info("Scale reference set: ".concat(JSON.stringify(t,null,2)))},UPDATE_SCALE_REFERENCE:function(e,t){var n,o=t.type,a=t.unit,i=t.timeResolutionMultiplier,s=t.start,c=t.end,l=t.next,u=void 0!==l&&l,d=t.spaceResolution;o===r["B"].ST_SPACE&&0!==d&&Math.round(d)!==d&&(d=d.toFixed(1));var E=p()({},e.scaleReference,(n={},k()(n,"".concat(o,"Unit"),a),k()(n,"".concat(o,"ResolutionDescription"),(d&&0!==d?"".concat(d," "):"")+a),n),o===r["B"].ST_SPACE&&{spaceResolution:d,spaceResolutionConverted:d},o===r["B"].ST_TIME&&{timeResolutionMultiplier:i,start:s,end:c});u?e.nextScale=p()({},E,{spaceChanged:o===r["B"].ST_SPACE,timeChanged:o===r["B"].ST_TIME}):e.scaleReference=E},SET_SCALE_LOCKED:function(e,t){var n=t.scaleType,o=t.scaleLocked;"all"===n?(e.scaleLocked.space=o,e.scaleLocked.time=o):Object.prototype.hasOwnProperty.call(e.scaleLocked,n)?(console.info("Set ".concat(o," to ").concat(n," scale type")),e.scaleLocked[n]=o):console.error("Try to set locked to unknow scale type: ".concat(n))},SET_INTERACTIVE_MODE:function(e,t){e.interactiveMode=t},SET_CROSSING_IDL:function(e,t){e.crossingIDL=t},ADD_TERMINAL:function(e,t){e.terminals.push(t)},REMOVE_TERMINAL:function(e,t){var n=e.terminals.findIndex(function(e){return e.id===t});-1!==n?e.terminals.splice(n,1):console.warn("Trying to remove unknown terminal ".concat(t))},ADD_TERMINAL_COMMAND:function(e,t){e.terminalCommands.push(t),localStorage.setItem(r["P"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},CLEAR_TERMINAL_COMMANDS:function(e){e.terminalCommands.splice(0,e.terminalCommands.length),localStorage.setItem(r["P"].LOCAL_STORAGE_TERMINAL_COMMANDS,JSON.stringify(e.terminalCommands))},SET_DOCUMENTATION:function(e,t){var n=t.view,o=t.tree,a=e.documentationTrees.findIndex(function(e){return e.view===n});-1===a?console.warn("Unknown documentation view: ".concat(n)):e.documentationTrees[a].tree=o},ADD_DOCUMENTATION:function(e,t){t.forEach(function(t){e.documentationContent.set(t.id,t)})}},F=(n("28a5"),n("f559"),n("ffc1"),n("96cf"),n("c973")),Y=n.n(F),W=n("be3b"),G=n("17dc"),j=n("e7d8"),H=void 0,z={loadSessionReference:function(e){var t=e.commit;return new Promise(function(e,n){W["a"].get("".concat("").concat(s["c"].REST_SESSION_INFO),{maxRedirects:0}).then(function(n){var o=n.data;o&&(t("SET_SESSION_REFERENCE",o),e())}).catch(function(e){e.response&&401===e.response.status?n(new Error("Invalid session")):n(new Error("Error retrieving session: ".concat(e)))})})},setContext:function(e,t){var n=t.context,o=t.isRecontext,a=e.commit,i=e.getters,r=e.dispatch;null!==i.context&&i.context.id===n.id||(a("SET_CONTEXT",{context:n,isRecontext:o}),o&&r("view/resetContext",null,{root:!0}),r("view/setContextLayer",n,{root:!0}),console.debug("Send start watch context ".concat(n.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!0,observationId:n.id,rootContextId:n.rootContextId}))},resetContext:function(e){var t=e.commit,n=e.dispatch,o=e.state,a=e.getters,i=a.context;if(null!==i){var c={id:i.id,rootContextId:i.rootContextId};t("SET_CONTEXT",{}),n("getSessionContexts"),n("view/resetContext",null,{root:!0}),null!==o.waitingForReset?(n("loadContext",o.waitingForReset),o.waitingForReset=null):n("addObservation",{observation:r["A"],main:!0}),n("view/addToKlabLog",{type:s["a"].TYPE_INFO,payload:{message:"Context reset",separator:!0}},{root:!0}),console.debug("Send stop watch context ".concat(c.id)),Object(d["q"])(G["a"].WATCH_REQUEST,{active:!1,observationId:c.id,rootContextId:c.rootContextId})}else console.info("Try to reset null context, is initial reset?")},setWaitinForReset:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("WAITING_FOR_RESET",n)},loadContext:function(e,t){var n=e.commit,o=e.dispatch;console.info("Ask for context to restore ".concat(t)),W["a"].get("".concat("").concat(s["c"].REST_SESSION_VIEW,"describe/").concat(t),{params:{childLevel:1}}).then(function(){var e=Y()(regeneratorRuntime.mark(function e(a){var i,s,c;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return i=a.data,i.restored=!0,e.next=4,o("setContext",{context:p()({},i,{children:[]})});case 4:if(n("data/SET_RELOAD_FLOWCHART",{target:null},{root:!0}),console.debug("Context received with id ".concat(i.id)),!(i.children.length>0)){e.next=12;break}return s=[],c=i.children,c.forEach(function(e){null!==e.taskId&&(-1===s.indexOf(e.taskId)&&s.push(e.taskId),o("addObservation",{observation:e,restored:!0}))}),e.next=12,Promise.all(s);case 12:o("view/setSpinner",p()({},r["H"].SPINNER_STOPPED,{owner:t}),{root:!0});case 13:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){throw o("view/setSpinner",p()({},r["H"].SPINNER_ERROR,{owner:t,errorMessage:e}),{root:!0}),e})},getSessionContexts:function(e){var t=e.getters,n=e.commit;return new Promise(function(e,o){if(null!==t.session){var a="".concat("").concat(s["c"].REST_STATUS);Object(d["h"])(t.session,a,{transformRequest:[function(e,t){return delete t.common.Authorization,e}]},function(a,i){var r=a.data;if(console.debug("Contexts history:\n".concat(JSON.stringify(r,null,4))),r&&r.sessions&&r.sessions.length>0){var s=r.sessions.find(function(e){return e.id===t.session});if("undefined"!==typeof s){var c=s.rootObservations;if(null===c||0===Object.keys(c).length&&c.constructor===Object)console.debug("No root observation founded"),e(0);else{console.debug("Find ".concat(Object.keys(c).length," root observations for this session"));var l=0;Object.entries(c).forEach(function(e){n("STORE_CONTEXT",e[1]),l+=1}),e(l)}}else console.warn("No information for session ".concat(t.session,", isn't valid session?")),o(new Error("No information for session ".concat(t.session,", disconnect")))}i()})}else o(new Error("No session established, no useful engine available, disconnect"))})},setContextCustomLabel:function(e,t){var n=e.commit;n("SET_CONTEXT_CUSTOM_LABEL",t)},addObservation:function(e,t){var n=e.commit,o=e.rootGetters,a=e.state,i=e.dispatch,s=t.observation,c=t.toTree,l=void 0===c||c,u=t.visible,E=void 0!==u&&u,f=t.restored,T=void 0!==f&&f,S=t.updated,m=void 0!==S&&S;return new Promise(function(e){var t=a.observations.findIndex(function(e){return e.id===s.id});return-1!==t?(m?(n("UPDATE_OBSERVATION",{observationIndex:t,newObservation:s}),n("UPDATE_TIME_EVENTS",s),console.debug("Observation$ ".concat(s.label," updated"))):i("view/addToKexplorerLog",{type:r["w"].TYPE_WARNING,payload:{message:"Existing observation received: ".concat(s.label)},important:!0},{root:!0}),e()):(i("view/assignViewer",{observation:s},{root:!0}).then(function(t){if(s.viewerIdx=t,s.visible=E,s.top=!1,s.zIndex=0,s.layerOpacity=s.layerOpacity||1,s.colormap=s.colormap||null,s.tsImages=[],s.isContainer=s.observationType===r["y"].TYPE_GROUP||s.observationType===r["y"].TYPE_VIEW,s.singleValue=s.observationType===r["y"].TYPE_STATE&&1===s.valueCount,s.loading=!1,s.loaded=!0,null===s.contextId){var a=o["stomp/tasks"].find(function(e){return s.taskId.startsWith(e.id)});if(a){var c=a.contextId;s.contextId=c}else s.contextId=s.rootContextId}if(n("ADD_OBSERVATION",{observation:p()({},s,{children:[]}),restored:T}),n("UPDATE_TIME_EVENTS",s),s.observationType===r["y"].TYPE_INITIAL)return e();if(s.children.length>0&&(s.disabled=!1,s.children.forEach(function(e){i("addObservation",{observation:e})})),l){var u=Object(d["l"])(s);if(n("ADD_NODE",u),s.childrenCount>0&&0===s.children.length){var f=u.node;i("addStub",f)}}return e()}),null)})},updateObservation:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.observationId,r=t.exportFormats,c=a.observations.findIndex(function(e){return e.id===i});-1!==c?W["a"].get("".concat("").concat(s["c"].REST_SESSION_VIEW,"describe/").concat(i),{params:{childLevel:0}}).then(function(e){var t=e.data;if(t){if(r&&(t.exportFormats=r),n("UPDATE_OBSERVATION",{observationIndex:c,newObservation:t}),t.childrenCount>0){var s=Object(d["f"])(a.tree,t.id),l=s.children,u=l.length>0;u&&1===l.length&&(u=!l[0].id.startsWith("STUB")),u&&o("askForChildren",{parentId:i,count:Math.max(l.length,a.childrenToAskFor),total:t.childrenCount,updated:!0})}}else console.warn("Ask for update observation ".concat(i," but nothing found in engine"))}):console.warn("Try to update a not existing observation: ".concat(i))},addStub:function(e,t){var n=e.commit;n("ADD_NODE",{node:p()({},t,{id:"STUB-".concat(t.id),observable:"",label:"",children:[],childrenCount:0,childrenLoaded:0,siblingsCount:t.childrenCount,parentArtifactId:t.id,tickable:!1,disabled:!0,empty:!0,actions:{},header:"stub",main:!1,isContainer:!1,exportFormats:{},observationType:r["y"].TYPE_INITIAL,noTick:!0,parentId:t.id,dynamic:!1},t.userNode&&{userNode:t.userNode}),parentId:t.id}),n("ADD_LAST",{parentId:t.id,observationId:"STUB-".concat(t.id),offsetToAdd:0,total:t.childrenCount})},addKnowledgeView:function(e,t){var n=e.commit;n("ADD_KNOWLEDGE_VIEW",t)},showKnowledgeView:function(e,t){var n=e.commit;n("SHOW_KNOWLEDGE_VIEW",t)},addModificationEvent:function(e,t){var n=e.rootGetters,o=e.state,a=e.commit,i=e.dispatch,s=Object(d["f"])(o.tree,t.id);if(s)switch(t.type){case r["x"].BRING_FORWARD:a("MOD_BRING_FORWARD",s),i("changeTreeOfNode",{id:t.id,isUserTree:!0});break;case r["x"].VALUE_CHANGE:a("MOD_VALUE_CHANGE",s),a("ADD_TIME_EVENT",t),null===o.modificationsTask&&i("setModificationsTask",n["stomp/lastActiveTask"]());break;case r["x"].STRUCTURE_CHANGE:a("MOD_STRUCTURE_CHANGE",{node:s,modificationEvent:t}),s.childrenCount>0&&0===s.children.length&&i("addStub",s);break;case r["x"].CONTEXTUALIZATION_COMPLETED:i("updateObservation",{observationId:t.id,exportFormats:t.exportFormats});break;default:console.warn("Unknown modification event: ".concat(t.type));break}else t.id!==t.contextId?console.debug("Modification event for a not existing node, probably still not loaded",t):console.debug("Modification event for context",t)},setModificationsTask:function(e){var t=e.commit,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t("SET_MODIFICATIONS_TASK",n)},setTimestamp:function(e,t){var n=e.commit;t&&-1!==t&&(t=Math.round(t)),n("SET_TIMESTAMP",t)},setScheduling:function(e,t){var n=e.commit,o=e.getters;o.context&&t.contextId===o.context.id?n("SET_SCHEDULING_STATUS",t):console.debug("Received a scheduling of other context: ".concat(t.contextId))},askForChildren:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.parentId,c=t.total,l=t.offset,u=void 0===l?0:l,E=t.count,f=void 0===E?a.childrenToAskFor:E,T=t.toTree,S=void 0===T||T,m=t.visible,O=void 0!==m&&m,b=t.notified,A=void 0===b||b,_=t.updated,I=void 0!==_&&_;return new Promise(function(e){console.debug("Ask for children of node ".concat(i,": count:").concat(f," / offset ").concat(u)),o("view/setSpinner",p()({},r["H"].SPINNER_LOADING,{owner:i}),{root:!0}).then(function(){W["a"].get("".concat("").concat(s["c"].REST_SESSION_VIEW,"children/").concat(i),{params:{count:f,offset:u}}).then(function(t){var s=t.data;s&&s.length>0?s.forEach(function(t,l,u){t.notified=A,t.siblingsCount=c,o("addObservation",{observation:t,toTree:S,visible:O,updated:I}).then(function(){if(l===u.length-1){S&&n("ADD_LAST",{parentId:i,observationId:t.id,offsetToAdd:s.length,total:c});var E=function(e){var t=Object(d["f"])(e,i);t&&null!==t&&(t.childrenLoaded+=s.length)};E(a.tree),E(a.userTree),o("view/setSpinner",p()({},r["H"].SPINNER_STOPPED,{owner:i}),{root:!0}),e()}})}):(o("view/setSpinner",p()({},r["H"].SPINNER_STOPPED,{owner:i}),{root:!0}),e())})})})},addChildrenToTree:function(e,t){var n=e.dispatch,o=e.commit,a=e.state,i=t.parent,r=t.count,s=void 0===r?a.childrenToAskFor:r;if(i&&null!==i)for(var c=a.observations.filter(function(e){return e.parentArtifactId===i.id||e.parentId===i.id}),l=c.length,u=i.children.length,E=u,f=0;E0&&0===T.children.length&&n("addStub",p.node),f!==s-1&&E!==l-1||o("ADD_LAST",{parentId:i.id,observationId:T.id,offsetToAdd:f+1,total:i.childrenLoaded})}},changeTreeOfNode:function(e,t){var n=e.commit,o=e.state,a=t.id,i=t.isUserTree,r=Object(d["f"])(o.tree,a);i?null===Object(d["f"])(o.userTree,a)?(n("UPDATE_USER_NODE",{node:r,userNode:!0}),n("ADD_NODE",{node:r,parentId:r.parentArtifactId||r.parentId,toUserTreeOnly:!0})):console.warn("Try to move to user tree an existing node: ".concat(a," - ").concat(r.label)):(n("UPDATE_USER_NODE",{node:r,userNode:!1}),n("REMOVE_NODE",{id:a}))},setVisibility:function(e,t){var n=e.commit,o=e.dispatch,a=e.state,i=t.node,r=t.visible;if(i.isContainer){if(0!==i.childrenCount&&null===i.viewerIdx){var s=a.observations.find(function(e){return e.parentArtifactId===i.id||e.parentId===i.id});if("undefined"!==typeof s){var c=s.viewerIdx,l=s.viewerType,u=s.zIndexOffset;i.viewerIdx=c,i.viewerType=l,i.zIndexOffset=u}else i.zIndexOffset=null}null!==i.viewerIdx&&o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_FOLDER_VISIBLE",{nodeId:i.id,visible:r,zIndexOffset:i.zIndexOffset})}else o("view/setMainDataViewer",{viewerIdx:i.viewerIdx,visible:r},{root:!0}),n("SET_VISIBLE",{id:i.id,visible:r})},putObservationOnTop:function(e,t){var n=e.commit;n("SET_VISIBLE",{id:t,visible:!0})},setContextMenuObservationId:function(e,t){var n=e.commit;n("SET_CONTEXTMENU_OBSERVATIONID",t)},selectNode:function(e,t){var n=e.dispatch,o=e.state;if(null===t)n("view/setObservationInfo",null,{root:!0});else{var a=o.observations.find(function(e){return e.id===t});a&&(a.visible&&!a.top&&n("setVisibility",{node:a,visible:!0}),n("view/setObservationInfo",a,{root:!0}))}},setLoadingLayers:function(e,t){var n=e.commit,o=t.loading,a=t.observation;a&&n("SET_LOADING_LAYERS",{loading:o,observation:a})},loadFlowchart:function(e){var t=e.commit,n=e.getters,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r["g"].GRAPH_DATAFLOW;return new Promise(function(e,a){console.info("Ask for flowchart ".concat(o)),W["a"].get("".concat("").concat(s["c"].REST_API_EXPORT,"/").concat(o,"/").concat(n.contextId),{headers:{Accept:"application/json"}}).then(function(i){var r=i.data;if("undefined"!==typeof r&&null!==r)try{r.restored=n.context.restored,t("ADD_FLOWCHART",{flowchart:r,target:o}),e()}catch(e){a(new Error("Error in dataflow layout for the context ".concat(H.contextId,": ").concat(e)))}else a(new Error("Dataflow in context ".concat(H.contextId," has no layout")))}).catch(function(e){a(e)})})},setReloadFlowchart:function(e,t){var n=e.commit,o=t.target;n("SET_RELOAD_FLOWCHART",o)},setDataflowStatus:function(e,t){var n=e.commit,o=t.id,a=t.status;n("SET_DATAFLOW_STATUS",{id:o,status:a})},setDataflowInfo:function(e,t){var n=e.commit;if(null===t)n("SET_DATAFLOW_INFO",null);else{var o=t.id,a=t.html,i=t.rateable,r=t.rating,s=t.averageRating;if(null!==o&&""!==o){var c=o.split("."),l=c[c.length-1],u=c.slice(0,c.length-1);n("SET_DATAFLOW_INFO",{elementId:l,elementTypes:u,html:a,rateable:i,rating:r,averageRating:s})}}},storeSearchResult:function(e,t){var n=e.commit;n("STORE_RAW_SEARCH_RESULT",t)},setScaleReference:function(e,t){var n=e.commit;n("SET_SCALE_REFERENCE",t)},updateScaleReference:function(e,t){var n=e.commit;n("UPDATE_SCALE_REFERENCE",t)},setScaleLocked:function(e,t){var n=e.commit,o=t.scaleType,a=t.scaleLocked;n("SET_SCALE_LOCKED",{scaleType:o,scaleLocked:a})},setInteractiveMode:function(e,t){var n=e.commit;n("SET_INTERACTIVE_MODE",t)},setCrossingIDL:function(e,t){var n=e.commit;n("SET_CROSSING_IDL",t)},addTerminal:function(e,t){var n=e.state,o=e.commit,a=t.id,i=t.active,s=t.type;if(a){var c=n.terminals.findIndex(function(e){return e.id===a});-1!==c?console.warn("Terminal already exists"):n.terminals[c].active=!0}else a="".concat(n.session,"-").concat(++n.terminalsCounter),o("ADD_TERMINAL",{id:a,active:"undefined"===typeof i||i,type:s||r["K"].CONSOLE})},removeTerminal:function(e,t){var n=e.commit;n("REMOVE_TERMINAL",t)},addTerminalCommand:function(e,t){var n=e.commit;n("ADD_TERMINAL_COMMAND",t)},clearTerminalCommands:function(e){var t=e.commit;t("CLEAR_TERMINAL_COMMANDS")},loadDocumentation:function(e){var t=e.dispatch,n=e.getters,o=e.rootGetters,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(e,i){if(null===n.contextId)return console.warn("Ask documentation without context"),void i(new Error("Ask documentation without context"));null===a&&(a=o["view/documentationView"],null===a&&console.warn("No view selected")),W["a"].get("".concat("").concat(s["c"].REST_SESSION_OBSERVATION,"documentation/").concat(a,"/").concat(n.contextId),{}).then(function(n){var o=n.data;""===o?(console.warn("Empty report"),e(!1)):t("refreshDocumentation",{view:a,documentation:o}).then(function(){t("view/removeReloadView",a,{root:!0}).then(function(){e(!0)})})}).catch(function(e){i(e)})})},refreshDocumentation:function(e,t){var n=e.commit,o=t.view,a=t.documentation,i=[],s=[],c=new Map,l=function e(t,n,o,a){var i,l;switch(n.type===r["l"].SECTION?l=null===o?"".concat(a,"."):"".concat(o).concat(a,"."):(l=c.has(n.type)?c.get(n.type)+1:1,c.set(n.type,l)),n.type){case r["l"].SECTION:i="".concat(l," ").concat(n.title);break;case r["l"].TABLE:i="".concat(Object(j["b"])().tc("label.reportTable")," ").concat(l,". ").concat(n.bodyText);break;case r["l"].RESOURCE:i=n.title;break;case r["l"].MODEL:i=n.id;break;case r["l"].REFERENCE:i=n.id;break;case r["l"].FIGURE:i="".concat(Object(j["b"])().tc("label.reportFigure")," ").concat(l,". ").concat(n.figure.label);break;default:i=n.type}var u={type:n.type,id:n.id,idx:l,parentId:n.parentId,previousId:n.previousId,nextId:n.nextId,label:i,children:[]},d=0;n.children.forEach(function(t){var n=-1;t.type===r["l"].SECTION&&(n=++d),e(u.children,t,l,n)}),t.push(u),s.push({id:n.id,idx:l,label:i,type:n.type,title:n.title,subtitle:n.subtitle,bodyText:n.bodyText,model:n.model,section:n.section,resource:n.resource,table:n.table,figure:n.figure,reference:n.reference})},u=0;a.forEach(function(e,t){l(i,e,null,e.type===r["l"].SECTION?++u:t)}),n("SET_DOCUMENTATION",{view:o,tree:i}),n("ADD_DOCUMENTATION",s)}},B={namespaced:!0,state:y,getters:M,mutations:V,actions:z},K={stompClient:null,connectionState:r["f"].CONNECTION_UNKNOWN,reconnectionsAttempt:0,subscriber:null,sentMessages:[],receivedMessages:[],queuedMessage:null,tasks:[],subscriptions:[]},X={connectionDown:function(e){return e.connectionState!==r["f"].CONNECTION_UP},lastError:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["w"].TYPE_ERROR}).slice(-1);return 1===t.length?t[0]:null},lastMessage:function(e){var t=e.receivedMessages.filter(function(e){return e.type===r["w"].TYPE_MESSAGE}).slice(-1);return 1===t.length?t[0]:null},lastReceivedMessage:function(e){return e.receivedMessages.length>0?e.receivedMessages.slice(-1)[0]:null},lastSendedMessage:function(e){return e.sentMessages.length>0?e.sentMessages.slice(-1)[0]:null},subscriberId:function(e){return null!==e.subscriber?e.subscriber.id:null},queuedMessage:function(e){return e.queuedMessage},connectionState:function(e){return e.connectionState},connectionUp:function(e){return e.connectionState===r["f"].CONNECTION_UP},tasks:function(e){return e.tasks},taskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.id===t&&e.alive})}},taskOfContextIsAlive:function(e,t,n,o){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===o["data/contextId"]&&e.alive})},contextTaskIsAlive:function(e){return function(t){return"undefined"!==typeof e.tasks.find(function(e){return e.contextId===t&&e.alive})}},hasTasks:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return-1!==e.tasks.findIndex(function(e){return e.alive&&(null===t||e.contextId===t)})}},lastActiveTask:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e.tasks.filter(function(e){return e.alive&&(null===t||e.contextId===t)});return n.length>0?n.pop():null}}},Q={STOMP_CONNECTION_STATE:function(e,t){e.connectionState=t},STOMP_ERROR:function(e,t){Object(d["p"])(e.receivedMessages,{date:_()().format("HH:mm:ss"),type:r["w"].TYPE_ERROR,message:t})},STOMP_MESSAGE:function(e,t){Object(d["p"])(e.receivedMessages,{date:_()().format("HH:mm:ss"),type:r["w"].TYPE_MESSAGE,message:t})},STOMP_SEND_MESSAGE:function(e,t){Object(d["p"])(e.sentMessages,p()({date:_()().format("HH:mm:ss")},t))},STOMP_SUBSCRIBED:function(e,t){e.subscriber=t},STOMP_RECONNECTIONS_ATTEMPT:function(e,t){e.reconnectionsAttempt=t},STOMP_RECONNECTIONS_ATTEMPT_RESET:function(e){e.reconnectionsAttempt=0},STOMP_QUEUE_MESSAGE:function(e,t){e.queuedMessage=t},STOMP_CLEAN_QUEUE:function(e){e.queuedMessage=null},TASK_START:function(e,t){var n=t.id,o=t.contextId,a=t.description;-1!==e.tasks.findIndex(function(e){return e.id===n})?console.debug("Received duplicated start task id: ".concat(n," - ").concat(a)):e.tasks.push({id:n,contextId:o,description:a,alive:!0})},TASK_END:function(e,t){var n=t.id,o=e.tasks.findIndex(function(e){return e.id===n});if(-1!==o){var a=e.tasks[o];a.alive=!1,e.tasks.splice(o,1,a)}else console.debug("Task with id = ".concat(n," not founded or is not alive"))}};function q(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e("view/addToKexplorerLog",{type:t,payload:{message:n,attach:o},important:a},{root:!0})}var J=(o={},k()(o,s["a"].TYPE_TASKSTARTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskStart",n,{root:!0}),q(o,r["w"].TYPE_DEBUG,"Started task with id ".concat(n.id)),o("view/addToStatusTexts",{id:n.id,text:n.description},{root:!0})}),k()(o,s["a"].TYPE_TASKABORTED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskAbort",n,{root:!0}),q(o,r["w"].TYPE_ERROR,"Aborted task with id ".concat(n.id),n),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,s["a"].TYPE_TASKFINISHED,function(e,t){var n=e.payload,o=t.dispatch;o("stomp/taskEnd",n,{root:!0}),q(o,r["w"].TYPE_DEBUG,"Ended task with id ".concat(n.id)),o("view/removeFromStatusTexts",n.id,{root:!0})}),k()(o,s["a"].TYPE_PROVENANCECHANGED,function(e,t){var n=e.payload,o=t.dispatch,a=t.rootGetters;n.contextId&&null!==a["data/context"]&&a["data/context"].id!==n.contextId?(q(o,r["w"].TYPE_INFO,"Provenance of incorrect context received"),console.warn(a["data/context"].id,n.contextId)):(o("data/setReloadFlowchart",{target:n.target},{root:!0}),q(o,r["w"].TYPE_DEBUG,"Provenance available in context ".concat(n.contextId)))}),k()(o,s["a"].TYPE_DATAFLOWCOMPILED,function(e,t){var n=e.payload,o=t.dispatch,a=t.rootGetters;n.contextId&&null!==a["data/context"]&&a["data/context"].id!==n.contextId?(q(o,r["w"].TYPE_INFO,"Dataflow of incorrect context received"),console.warn(a["data/context"].id,n.contextId)):(o("data/setReloadFlowchart",{target:n.target},{root:!0}),q(o,r["w"].TYPE_DEBUG,"Dataflow compiled in context ".concat(n.contextId)))}),k()(o,s["a"].TYPE_DATAFLOWSTATECHANGED,function(e,t){var n,o=e.payload,a=t.dispatch;n="STARTED"===o.status?r["i"].PROCESSING:"FINISHED"===o.status?r["i"].PROCESSED:"ABORTED"===o.status?r["i"].ABORTED:r["i"].WAITING,a("data/setDataflowStatus",{id:o.nodeId,status:n},{root:!0})}),k()(o,s["a"].TYPE_DATAFLOWDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;n&&n.dataflowId&&n.htmlDescription?(q(o,r["w"].TYPE_DEBUG,"Dataflow element info received",n),o("data/setDataflowInfo",{id:n.dataflowId,html:n.htmlDescription,rateable:n.rateable,rating:n.rating,averageRating:n.averageRating},{root:!0})):q(o,r["w"].TYPE_WARNING,"Strange payload of dataflow element info received",n)}),k()(o,s["a"].TYPE_NEWOBSERVATION,function(e,t){var n=e.payload,o=t.rootState,a=t.rootGetters,i=t.dispatch,s=o.stomp.tasks.find(function(e){return e.id===n.taskId});"undefined"===typeof s&&-1!==o.data.contextsHistory.findIndex(function(e){return e.id===n.contextId})&&(i("stomp/taskStart",{id:n.taskId,description:r["p"].UNKNOWN_SEARCH_OBSERVATION,contextId:n.contextId},{root:!0}),i("view/addToStatusTexts",{id:n.taskId,text:r["p"].UNKNOWN_SEARCH_OBSERVATION},{root:!0}),q(i,r["w"].TYPE_INFO,"Received an observation of previous context with no task associated. Session was been reloaded?",n)),null===n.parentId?null===a["data/context"]?(q(i,r["w"].TYPE_DEBUG,"New context received with id ".concat(n.id),n),i("data/setContext",{context:n},{root:!0}),"undefined"!==typeof n.scaleReference&&null!==n.scaleReference&&i("data/setScaleReference",n.scaleReference,{root:!0})):q(i,r["w"].TYPE_ERROR,"Strange behaviour: observation with no parent in existing context: ".concat(n.id," - ").concat(n.label),n):null!==a["data/context"]&&(a["data/context"].id===n.rootContextId||s&&a["data/context"].id===s.contextId)?(q(i,r["w"].TYPE_INFO,"New observation received with id ".concat(n.id,", rootContextId ").concat(n.rootContextId," and contextId ").concat(n.contextId),n),n.notified=!0,i("data/addObservation",{observation:n},{root:!0})):q(i,r["w"].TYPE_INFO,"Received an observation of different context",n,null,4)}),k()(o,s["a"].TYPE_MODIFIEDOBSERVATION,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_DEBUG,"Received a modification event",n),o("data/addModificationEvent",n,{root:!0})}),k()(o,s["a"].TYPE_QUERYRESULT,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_INFO,"Received search results",n),o("data/storeSearchResult",n,{root:!0})}),k()(o,s["a"].TYPE_RESETCONTEXT,function(e,t){var n=t.dispatch;q(n,r["w"].TYPE_INFO,"Received context reset"),N["b"].$emit(r["h"].RESET_CONTEXT),n("data/resetContext",null,{root:!0})}),k()(o,s["a"].TYPE_SCALEDEFINED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_INFO,"Received scale reference",n),o("data/setScaleReference",n,{root:!0})}),k()(o,s["a"].TYPE_USERINPUTREQUESTED,function(e,t){var n=t.dispatch;q(n,r["w"].TYPE_INFO,"Received input request",e.payload),n("view/inputRequest",e,{root:!0})}),k()(o,s["a"].TYPE_SCHEDULEADVANCED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_INFO,"Received schedule advanced",n),o("data/setScheduling",n,{root:!0})}),k()(o,s["a"].TYPE_SCHEDULINGSTARTED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_INFO,"Received scheduling started",n),o("data/setScheduling",n,{root:!0})}),k()(o,s["a"].TYPE_SCHEDULINGFINISHED,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_INFO,"Received scheduling finished",n),o("data/setScheduling",n,{root:!0})}),k()(o,s["a"].TYPE_ENGINEEVENT,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_INFO,"Engine event received",n),o("view/setEngineEvent",n,{root:!0})}),k()(o,s["a"].TYPE_DEBUG,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_DEBUG,n)}),k()(o,s["a"].TYPE_INFO,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_INFO,n)}),k()(o,s["a"].TYPE_WARNING,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_WARNING,n)}),k()(o,s["a"].TYPE_ERROR,function(e,t){var n=e.payload,o=t.dispatch;n===r["f"].UNKNOWN_IDENTITY?N["b"].$emit(r["h"].SESSION_CUT):q(o,r["w"].TYPE_ERROR,n)}),k()(o,s["a"].TYPE_USERPROJECTOPENED,function(e,t){var n=t.dispatch;q(n,r["w"].TYPE_INFO,"Project opened in k.Modeler")}),k()(o,s["a"].TYPE_NETWORKSTATUS,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_INFO,"Network status received",n)}),k()(o,s["a"].TYPE_AUTHORITYDOCUMENTATION,function(e,t){var n=e.payload,o=t.dispatch;q(o,r["w"].TYPE_INFO,"Authority documentation message received",n)}),k()(o,s["a"].TYPE_SETUPINTERFACE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setLayout",n,{root:!0}),q(o,r["w"].TYPE_INFO,"App ".concat(n.name," loaded"),n,!0)}),k()(o,s["a"].TYPE_CREATEMODALWINDOW,function(e,t){var n=e.payload,o=t.dispatch;o("view/setModalWindow",n,{root:!0}),q(o,r["w"].TYPE_INFO,"Modal ".concat(n.name," loaded"),n)}),k()(o,s["a"].TYPE_CREATEVIEWCOMPONENT,function(e,t){var n=e.payload,o=t.dispatch;o("view/createViewComponent",n,{root:!0}),q(o,r["w"].TYPE_INFO,"New create view component received",n)}),k()(o,s["a"].TYPE_VIEWACTION,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewAction",n,{root:!0}),N["b"].$emit(r["h"].VIEW_ACTION),q(o,r["w"].TYPE_INFO,"New view action received",n)}),k()(o,s["a"].TYPE_VIEWSETTING,function(e,t){var n=e.payload,o=t.dispatch;o("view/viewSetting",n,{root:!0}),q(o,r["w"].TYPE_INFO,"New view setting received",n)}),k()(o,s["a"].TYPE_VIEWAVAILABLE,function(e,t){var n=e.payload,o=t.dispatch;o("view/setDocumentation",{id:n.viewId,view:n.viewClass},{root:!0}),q(o,r["w"].TYPE_INFO,"New documentation available",n)}),k()(o,s["a"].TYPE_DOCUMENTATIONCHANGED,function(e,t){var n=e.payload,o=t.dispatch;o("view/changeInDocumentation",n,{root:!0}),q(o,r["w"].TYPE_INFO,"New change in documentation",n)}),k()(o,s["a"].TYPE_COMMANDRESPONSE,function(e,t){var n=e.payload,o=t.dispatch;N["b"].$emit(r["h"].COMMAND_RESPONSE,n),q(o,r["w"].TYPE_INFO,"Command response received",n)}),o),Z=function(e){var t=e.body,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=JSON.parse(t),a=n.dispatch;return o.messageClass===s["a"].CLASS_NOTIFICATION&&a("view/addToKlabLog",o,{root:!0}),Object.prototype.hasOwnProperty.call(J,o.type)?J[o.type](o,n):(console.warn("Unknown parser ".concat(o.type)),!1)},$={stomp_onconnect:function(e,t){var n=e.commit;n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_UP),n("STOMP_RECONNECTIONS_ATTEMPT_RESET"),n("STOMP_MESSAGE",t)},stomp_onclose:function(e){var t=e.commit;t("STOMP_CONNECTION_STATE",r["f"].CONNECTION_DOWN)},stomp_onerror:function(e,t){var n=e.dispatch;n("setConnectionState",{state:r["f"].CONNECTION_ERROR,message:t})},setConnectionState:function(e,t){var n=e.commit,o=t.state,a=t.message;n("STOMP_CONNECTION_STATE",o),n("STOMP_ERROR",a)},stomp_onmessage:function(e,t){var n=e.commit;n("STOMP_MESSAGE",t),Z(t,e)},stomp_onsubscribe:function(e,t){var n=e.commit;n("STOMP_SUBSCRIBED",t)},stomp_reconnect:function(e,t){var n=e.commit;n("STOMP_RECONNECTIONS_ATTEMPT",t),n("STOMP_CONNECTION_STATE",r["f"].CONNECTION_WORKING)},stomp_onsend:function(e,t){var n=e.commit,o=t.message;n("STOMP_SEND_MESSAGE",o)},stomp_onerrorsend:function(e,t){var n=e.commit;n("STOMP_QUEUE_MESSAGE",t)},stomp_cleanqueue:function(e){var t=e.commit;t("STOMP_CLEAN_QUEUE")},taskStart:function(e,t){var n=e.commit,o=e.dispatch;o("view/setSpinner",p()({},r["H"].SPINNER_LOADING,{owner:t.id}),{root:!0}),n("TASK_START",t)},taskAbort:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["H"].SPINNER_STOPPED,{owner:t.id}),{root:!0})},taskEnd:function(e,t){var n=e.commit,o=e.dispatch;n("TASK_END",t),o("view/setSpinner",p()({},r["H"].SPINNER_STOPPED,{owner:t.id}),{root:!0})}},ee={namespaced:!0,state:K,getters:X,mutations:Q,actions:$};a["a"].use(i["a"]);var te=new i["a"].Store({modules:{view:C,data:B,stomp:ee}});t["a"]=te},4678:function(e,t,n){var o={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d833","./ar-tn.js":"6d833","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(e){var t=i(e);return n(t)}function i(e){var t=o[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id="4678"},"7cca":function(e,t,n){"use strict";n.d(t,"g",function(){return l}),n.d(t,"s",function(){return u}),n.d(t,"u",function(){return d}),n.d(t,"M",function(){return E}),n.d(t,"N",function(){return f}),n.d(t,"v",function(){return T}),n.d(t,"F",function(){return p}),n.d(t,"Q",function(){return S}),n.d(t,"f",function(){return m}),n.d(t,"w",function(){return O}),n.d(t,"y",function(){return b}),n.d(t,"A",function(){return A}),n.d(t,"q",function(){return _}),n.d(t,"P",function(){return I}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return N}),n.d(t,"H",function(){return R}),n.d(t,"p",function(){return C}),n.d(t,"i",function(){return g}),n.d(t,"h",function(){return w}),n.d(t,"B",function(){return L}),n.d(t,"D",function(){return P}),n.d(t,"C",function(){return D}),n.d(t,"x",function(){return y}),n.d(t,"L",function(){return M}),n.d(t,"E",function(){return x}),n.d(t,"G",function(){return k}),n.d(t,"r",function(){return U}),n.d(t,"z",function(){return F}),n.d(t,"t",function(){return Y}),n.d(t,"O",function(){return W}),n.d(t,"o",function(){return G}),n.d(t,"a",function(){return j}),n.d(t,"c",function(){return H}),n.d(t,"b",function(){return z}),n.d(t,"k",function(){return K}),n.d(t,"j",function(){return X}),n.d(t,"K",function(){return Q}),n.d(t,"J",function(){return q}),n.d(t,"n",function(){return J}),n.d(t,"l",function(){return Z}),n.d(t,"m",function(){return $}),n.d(t,"I",function(){return ee});var o,a=n("9523"),i=n.n(a),r=(n("f559"),n("cadf"),n("456d"),n("ac6a"),n("3156")),s=n.n(r),c=n("e7d8"),l={EMPTY_MAP_SELECTION:{pixelSelected:null,layerSelected:null,value:null,locked:!1},HIST_MAX_LENGTH:50,CHILDREN_TO_ASK_FOR:25,SEARCHBAR_SIZE:512,SEARCHBAR_INCREMENT:128,MAX_SEARCHBAR_INCREMENTS:6,TARGET_DATAFLOW:"DATAFLOW",TARGET_PROVENANCE:"PROVENANCE",GRAPH_DATAFLOW:"dataflow",GRAPH_PROVENANCE_FULL:"provenance_full",GRAPH_PROVENANCE_SIMPLIFIED:"provenance_simplified"},u=[{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_DATAFLOW,type:l.GRAPH_DATAFLOW,label:"Dataflow"},{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_PROVENANCE,type:l.GRAPH_PROVENANCE_FULL,label:"Provenance full"},{flowchart:null,graph:null,updatable:!1,visible:!1,target:l.TARGET_PROVENANCE,type:l.GRAPH_PROVENANCE_SIMPLIFIED,label:"Provenance simplified"}],d={LEFTMENU_MAXSIZE:512,LEFTMENU_MINSIZE:80,LEFTMENU_DOCUMENTATION_SIZE:320,LEFTMENU_MAXIMIZED:"max",LEFTMENU_MINIMIZED:"min",LEFTMENU_HIDDEN:"hidden",DATA_VIEWER_COMPONENT:"klab-main-control",DOCKED_DATA_VIEWER_COMPONENT:"docked-main-control",REPORT_VIEWER_COMPONENT:"reports-details",DOCUMENTATION_VIEWER_COMPONENT:"documentation-tree",DATAFLOW_VIEWER_COMPONENT:"dataflow-details",DATAFLOW_INFO_COMPONENT:"dataflow-info",PROVENANCE_VIEWER_COMPONENT:"provenance-details",LOG_COMPONENT:"klab-log-pane"},E={DATA_VIEWER:{name:"DataViewer",leftMenuState:d.LEFTMENU_HIDDEN,leftMenuContent:d.DATA_VIEWER_COMPONENT,mainControl:!0,hasSearch:!0},DOCKED_DATA_VIEWER:{name:"DataViewer",leftMenuState:d.LEFTMENU_MAXIMIZED,leftMenuContent:d.DOCKED_DATA_VIEWER_COMPONENT,mainControl:!1,hasSearch:!0},DOCUMENTATION_VIEWER:{name:"KlabDocumentation",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.DOCUMENTATION_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},REPORT_VIEWER:{name:"ReportViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.REPORT_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},DATAFLOW_VIEWER:{name:"DataflowViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.DATAFLOW_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1},PROVENANCE_VIEWER:{name:"ProvenanceViewer",leftMenuState:d.LEFTMENU_MINIMIZED,leftMenuContent:d.PROVENANCE_VIEWER_COMPONENT,mainControl:!1,hasSearch:!1}},f={VIEW_MAP:{component:"MapViewer",label:"Maps",hideable:!1,forceNew:!1},VIEW_CHART:{component:"ChartViewer",label:"Chart",hideable:!0,forceNew:!0},VIEW_GRAPH:{component:"GraphViewer",label:"Graph",hideable:!0,forceNew:!0},VIEW_BLOB:{component:"BlobViewer",label:"Blob",hideable:!1,forceNew:!1},VIEW_UNKNOWN:{component:"UnknownViewer",label:"Under construction",hideable:!1,forceNew:!1}},T={CONCEPT:{label:"Concept",symbol:"C",color:"sem-types",rgb:"rgb(38, 50, 56)"},PREFIX_OPERATOR:{label:"Prefix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},INFIX_OPERATOR:{label:"Infix operator",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},OBSERVATION:{label:"Observation",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODEL:{label:"Model",symbol:"M",color:"sem-types",rgb:"rgb(38, 50, 56)"},MODIFIER:{label:"Modifier",symbol:"O",color:"sem-types",rgb:"rgb(38, 50, 56)"},PRESET_OBSERVABLE:{label:"Preset observable",symbol:"O",color:"sem-preset-observable",rgb:"rgb(240, 240, 240)"},SEPARATOR:{label:"Separator",symbol:"S",color:"sem-separator",rgb:"rgb(10, 10, 10)"},NEXT_TOKENS:{TOKEN:"TOKEN",TEXT:"TEXT",INTEGER:"INTEGER",DOUBLE:"DOUBLE",BOOLEAN:"BOOLEAN",UNIT:"UNIT",CURRENCY:"CURRENCY"}},p={QUALITY:{label:"Quality",symbol:"Q",color:"sem-quality",rgb:"rgb(0, 153, 0)"},SUBJECT:{label:"Subject",symbol:"S",color:"sem-subject",rgb:"rgb(153, 76, 0)"},IDENTITY:{label:"identity",symbol:"Id",color:"sem-identity",rgb:"rgb(0, 102, 204)"},ATTRIBUTE:{label:"Attribute",symbol:"A",color:"sem-attribute",rgb:"rgb(0, 102, 204)"},REALM:{label:"Realm",symbol:"R",color:"sem-realm",rgb:"rgb(0, 102, 204)"},TRAIT:{label:"Trait",symbol:"T",color:"sem-trait",rgb:"rgb(0, 102, 204)"},EVENT:{label:"Event",symbol:"E",color:"sem-event",rgb:"rgb(53, 153, 0)"},RELATIONSHIP:{label:"Relationship",symbol:"R",color:"sem-relationship",rgb:"rgb(210, 170, 0)"},PROCESS:{label:"Process",symbol:"P",color:"sem-process",rgb:"rgb(204, 0, 0)"},ROLE:{label:"Role",symbol:"R",color:"sem-role",rgb:"rgb(0, 86, 163)"},CONFIGURATION:{label:"Configuration",symbol:"C",color:"sem-configuration",rgb:"rgb(98, 98, 98)"},DOMAIN:{label:"Domain",symbol:"D",color:"sem-domain",rgb:"rgb(240, 240, 240)"}},S={nodes:[],links:[],showMenu:!1,selected:{},showSelection:!1,linksSelected:{},options:{canvas:!1,size:{w:500,h:500},force:350,offset:{x:0,y:0},nodeSize:20,linkWidth:1,nodeLabels:!0,linkLabels:!1,strLinks:!0}},m={CONNECTION_UNKNOWN:"UNKNOWN",CONNECTION_UP:"UP",CONNECTION_DOWN:"DOWN",CONNECTION_WORKING:"WORKING",CONNECTION_ERROR:"ERROR",UNKNOWN_IDENTITY:"UNKNOWN_IDENTITY"},O={TYPE_DEBUG:"debug",TYPE_WARNING:"warning",TYPE_ERROR:"error",TYPE_INFO:"info",TYPE_MESSAGE:"MSG",TYPE_ALL:"ALL"},b={TYPE_PROCESS:"PROCESS",TYPE_STATE:"STATE",TYPE_SUBJECT:"SUBJECT",TYPE_CONFIGURATION:"CONFIGURATION",TYPE_EVENT:"EVENT",TYPE_RELATIONSHIP:"RELATIONSHIP",TYPE_GROUP:"GROUP",TYPE_VIEW:"VIEW",TYPE_INITIAL:"INITIAL"},A={shapeType:"POINT",encodedShape:"POINT (40.299841 9.343971)",id:null,label:"DEFAULT",parentId:-1,visible:!0,spatialProjection:"EPSG:4326",observationType:b.TYPE_INITIAL},_={TYPE_RASTER:"RASTER",TYPE_SHAPE:"SHAPE",TYPE_SCALAR:"SCALAR",TYPE_TIMESERIES:"TIMESERIES",TYPE_NETWORK:"NETWORK",TYPE_PROPORTIONS:"PROPORTIONS",TYPE_COLORMAP:"COLORMAP",SHAPE_POLYGON:"POLYGON",SHAPE_POINT:"POINT",PARAM_VIEWPORT_SIZE:800,PARAM_VIEWPORT_MAX_SIZE:7680,PARAM_VIEWPORT_MULTIPLIER:1},I={PARAMS_MODE:"mode",PARAMS_MODE_IDE:"ide",PARAMS_MODE_STANDALONE:"standalone",PARAMS_SESSION:"session",PARAMS_LOG:"log",PARAMS_LOG_HIDDEN:"hidden",PARAMS_LOG_VISIBLE:"visible",PARAMS_LOCAL_HELP:"localhelp",PARAMS_APP:"app",PARAMS_DEBUG_REMOTE:"remote-debug",PARAMS_STOMP_DEBUG:"stomp-debug",PARAMS_TOKEN:"token",COOKIE_LANG:"klab_exp_lang",COOKIE_SESSION:"klab_session",COOKIE_MODE:"klab_mode",COOKIE_LOG:"klab_log",COOKIE_BASELAYER:"klab_baselayer",COOKIE_MAPDEFAULT:"klab_mapdefault",COOKIE_SAVELOCATION:"klab_saveLocation",COOKIE_HELP_ON_START:"klab_helponstart",COOKIE_DOCKED_STATUS:"klab_dockedstatus",COOKIE_NOTIFICATIONS:"klab_notifications",COOKIE_TERMINAL_SIZE:"klab_terminalsize",COOKIE_VIEW_COORDINATES:"klab_coordinates",LOCAL_STORAGE_APP_ID:"klab:appId",LOCAL_STORAGE_TERMINAL_COMMANDS:"klab:terminalCommands"},v={NOTIFICATIONS_URL:"".concat("https://integratedmodelling.org","/statics/notifications/index.php")},N={MAIN_COLOR:"rgb(17, 170, 187)",MAIN_GREEN:"rgb(231,255,219)",MAIN_CYAN:"rgb(228,253,255)",MAIN_YELLOW:"rgb(255, 195, 0)",MAIN_RED_HEX:"#ff6464",MAIN_COLOR_HEX:"#11aabb",MAIN_GREEN_HEX:"#e7ffdb",MAIN_CYAN_HEX:"#e4fdff",MAIN_YELLOW_HEX:"#ffc300",MAIN_RED:"rgb(255, 100, 100)",PRIMARY:"#DA1F26",SECONDARY:"#26A69A",TERTIARY:"#555",NEUTRAL:"#E0E1E2",POSITIVE:"#19A019",NEGATIVE:"#DB2828",INFO:"#1E88CE",WARNING:"#F2C037",PRIMARY_NAME:"primary",SECONDARY_NAME:"secondary",TERTIARY_NAME:"tertiary",POSITIVE_NAME:"positive",NEGATIVE_NAME:"negative",INFO_NAME:"info",WARNING_NAME:"warning"},h={SPINNER_STOPPED_COLOR:N.MAIN_COLOR,SPINNER_LOADING_COLOR:N.MAIN_YELLOW,SPINNER_MC_RED:N.MAIN_RED,SPINNER_ERROR_COLOR:N.NEGATIVE_NAME},R={SPINNER_LOADING:{color:h.SPINNER_LOADING_COLOR,animated:!0},SPINNER_STOPPED:{color:h.SPINNER_STOPPED_COLOR,animated:!1},SPINNER_ERROR:{color:h.SPINNER_ERROR_COLOR,animated:!1,time:2,then:{color:h.SPINNER_STOPPED_COLOR,animated:!1}}},C={UNKNOWN_SEARCH_OBSERVATION:"$$UNKNOWN_SEARCH_OBSERVATION$$"},g={WAITING:"waiting",PROCESSING:"processing",PROCESSED:"processed",ABORTED:"aborted"},w={MAP_SIZE_CHANGED:"mapsizechanged",UPDATE_FOLDER:"updatefolder",GRAPH_NODE_SELECTED:"graphnodeselected",SPINNER_DOUBLE_CLICK:"spinnerdoubleclick",SHOW_NODE:"shownode",ASK_FOR_UNDOCK:"askforundock",ASK_FOR_SUGGESTIONS:"askforsuggestions",NEED_FIT_MAP:"needfitmap",TREE_VISIBLE:"treevisible",VIEWER_CLICK:"viewerclick",VIEWER_SELECTED:"viewerselected",VIEWER_CLOSED:"viewerclosed",OBSERVATION_INFO_CLOSED:"observationinfoclosed",SEND_REGION_OF_INTEREST:"sendregionofinterest",NEED_HELP:"needhelp",OBSERVATION_BY_TIME:"observationbytime",NEED_LAYER_BUFFER:"needlayerbuffer",COMPONENT_ACTION:"componentaction",LAYOUT_CHANGED:"layoutchanged",SELECT_ELEMENT:"selectelement",PROPOSED_CONTEXT_CHANGE:"proposedcontextchange",NEW_SCHEDULING:"newscheduling",SHOW_NOTIFICATIONS:"shownotifications",TERMINAL_FOCUSED:"terminalfocused",COMMAND_RESPONSE:"commandresponse",REFRESH_DOCUMENTATION:"refreshdocumentation",PRINT_DOCUMENTATION:"printdocumentation",SHOW_DOCUMENTATION:"showdowcumentation",FONT_SIZE_CHANGE:"fontsizechange",DOWNLOAD_URL:"downloadurl",RESET_CONTEXT:"resetcontext",VIEW_ACTION:"viewaction",SESSION_CUT:"sessioncut",SHOW_DATA_INFO:"showdatainfo"},L={ST_SPACE:"space",ST_TIME:"time"},P={CENTIMETERS:"cm",METERS:"m",KILOMETERS:"km",MILLENNIUM:"MILLENNIUM",CENTURY:"CENTURY",DECADE:"DECADE",YEAR:"YEAR",MONTH:"MONTH",WEEK:"WEEK",DAY:"DAY",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND"},D=[{i18nlabel:"unitCentimeter",type:L.ST_SPACE,value:P.CENTIMETERS,selectable:!0},{i18nlabel:"unitMeter",type:L.ST_SPACE,value:P.METERS,selectable:!0},{i18nlabel:"unitKilometer",type:L.ST_SPACE,value:P.KILOMETERS,selectable:!0},{i18nlabel:"unitMillennium",type:L.ST_TIME,value:P.MILLENNIUM,selectable:!1,momentShorthand:"y",momentMultiplier:1e3,index:0},{i18nlabel:"unitCentury",type:L.ST_TIME,value:P.CENTURY,selectable:!0,momentShorthand:"y",momentMultiplier:100,index:1},{i18nlabel:"unitDecade",type:L.ST_TIME,value:P.DECADE,selectable:!0,momentShorthand:"y",momentMultiplier:10,index:2},{i18nlabel:"unitYear",type:L.ST_TIME,value:P.YEAR,selectable:!0,momentShorthand:"y",momentMultiplier:1,index:3},{i18nlabel:"unitMonth",type:L.ST_TIME,value:P.MONTH,selectable:!0,momentShorthand:"M",momentMultiplier:1,index:4},{i18nlabel:"unitWeek",type:L.ST_TIME,value:P.WEEK,selectable:!0,momentShorthand:"W",momentMultiplier:1,index:5},{i18nlabel:"unitDay",type:L.ST_TIME,value:P.DAY,selectable:!0,momentShorthand:"d",momentMultiplier:1,index:6},{i18nlabel:"unitHour",type:L.ST_TIME,value:P.HOUR,selectable:!0,momentShorthand:"h",momentMultiplier:1,index:7},{i18nlabel:"unitMinute",type:L.ST_TIME,value:P.MINUTE,selectable:!0,momentShorthand:"m",momentMultiplier:1,index:8},{i18nlabel:"unitSecond",type:L.ST_TIME,value:P.SECOND,selectable:!1,momentShorthand:"s",momentMultiplier:1,index:9},{i18nlabel:"unitMillisecond",type:L.ST_TIME,value:P.MILLISECOND,selectable:!1,momentShorthand:"ms",momentMultiplier:1,index:10}],y={SPATIAL_TRANSLATION:"SpatialTranslation",SPATIAL_CHANGE:"SpatialChange",TERMINATION:"Termination",STRUCTURE_CHANGE:"StructureChange",NAME_CHANGE:"NameChange",ATTRIBUTE_CHANGE:"AttributeChange",VALUE_CHANGE:"ValueChange",BRING_FORWARD:"BringForward",CONTEXTUALIZATION_COMPLETED:"ContextualizationCompleted"},M={DEFAULT_STEP:864e5,DEFAULT_INTERVAL:100,PIXEL_TIME_MULTIPLIER:1,MIN_PLAY_TIME:6e4,MAX_PLAY_TIME:6e4},x={SEMANTIC:"SEMANTIC",FREETEXT:"FREETEXT"},k={INTERACTIVE_MODE:"InteractiveMode",LOCK_SPACE:"LockSpace",LOCK_TIME:"LockTime"},U={DEFAULT_MODAL_SIZE:{width:1024,height:768},DEFAULT_PROPORTIONS:{width:4,height:3},DEFAULT_WIDTH_PERCENTAGE:90,DEFAULT_HEIGHT_PERCENTAGE:90,DEFAULT_HELP_BASE_URL:"https://integratedmodelling.org/statics/help"},V={actionLabel:null,actionId:null,downloadUrl:null,downloadFileExtension:null,enabled:!1,separator:!1,submenu:[]},F={SEPARATOR_ITEM:s()({},V,{enabled:!0,separator:!0}),RECONTEXTUALIZATION_ITEM:s()({},V,{actionId:"Recontextualization",actionLabel:Object(c["b"])().tc("label.recontextualization"),enabled:!0})},Y=[{viewClass:"table",label:Object(c["b"])().tc("label.kwTable"),icon:"mdi-table",exportIcons:[{type:"xlsx",icon:"mdi-file-excel"}]},{viewClass:"chart",label:Object(c["b"])().tc("label.kwChart"),icon:"mdi-chart-bar",exportIcons:[]}],W={OBSERVATION:"Observation",VIEW:"View",TREE:"Tree",REPORT:"Report",DATAFLOW:"Dataflow",SHOW:"Show",HIDE:"Hide",URL:"Url",DOWNLOAD:"Download"},G={RESOURCE_VALIDATION:"ResourceValidation"},j={PANEL:"Panel",ALERT:"Alert",PUSH_BUTTON:"PushButton",CHECK_BUTTON:"CheckButton",RADIO_BUTTON:"RadioButton",TEXT_INPUT:"TextInput",COMBO:"Combo",GROUP:"Group",MAP:"Map",TREE:"Tree",TREE_ITEM:"TreeItem",CONFIRM:"Confirm",VIEW:"View",CONTAINER:"Container",MULTICONTAINER:"MultiContainer",LABEL:"Label",TEXT:"Text",TABLE:"Table",NOTIFICATION:"Notification",INPUT_GROUP:"InputGroup",SEPARATOR:"Separator",MODAL_WINDOW:"ModalWindow",WINDOW:"Window",BROWSER:"Browser",IMAGE:"Image"},H={USER_ACTION:"UserAction",ENABLE:"Enable",HIDE:"Hide",UPDATE:"Update",MENU_ACTION:"MenuAction"},z={LABEL_MIN_WIDTH:"150px",DEFAULT_LOGO:"statics/klab-logo.png"},B=/^\d+\D{1,2}/,K=function(e){var t={};return Object.keys(e.attributes).forEach(function(n){var o=e.attributes[n];switch(n){case"hidden":t.display="none";break;case"width":"content"===o?t["flex-basis"]="0":o.startsWith("col")?t["flex-grow"]=o.substring(3):t.width="".concat(o).concat(B.test(o)?"":"px");break;case"height":t.height="".concat(o).concat(B.test(o)?"":"px");break;case"hfill":e.attributes.hbox&&(t["flex-wrap"]="nowrap"),t.width="100%";break;case"vfill":t["flex-grow"]=1;break;case"top":case"bottom":case"center":e.attributes.parentAttributes&&e.attributes.parentAttributes.hbox?t["align-self"]="top"===n?"flex-start":"bottom"===n?"flex-end":"center":t["vertical-align"]=n;break;case"hbox":case"vbox":t["flex-direction"]="hbox"===n?"row":"column";break;case"left":case"right":t["text-align"]=n;break;default:break}}),t},X={dark:{"main-color":"white","positive-color":"rgb(116, 212, 116)","negative-color":"rgb(250, 117, 117)","background-color":"rgb(18, 18, 18)","alt-background":"rgb(99,99,99)","text-color":"white","control-text-color":"black","title-color":"white","alt-color":"rgb(0, 204, 204)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},light:{"main-color":"black","background-color":"white","alt-background":"rgb(233,233,233)","text-color":"black","control-text-color":"white","title-color":"black","alt-color":"rgb(0,138,150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"},worst:{"main-color":"green","background-color":"yellow","alt-background":"fuchsia","text-color":"red","control-text-color":"yellow","title-color":"indigo","alt-color":"blue","font-family":"comics","font-size":"1.2em","title-size":"32px","subtitle-size":"20px","line-height":"1.2em"},default:{"main-color":"rgb(0, 92, 129)","background-color":"rgb(250, 250, 250)","alt-background":"rgb(222, 222, 222)","text-color":"rgb(0, 92, 129)","control-text-color":"rgb(250, 250, 250)","title-color":"rgb(0, 92, 129)","alt-color":"rgb(0, 138, 150)","font-family":"'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif","font-size":"1em","title-size":"26px","subtitle-size":"16px","line-height":"1em"}},Q={DEBUGGER:"Debugger",CONSOLE:"Console"},q=[{value:"80x24",label:"80x24",cols:80,rows:24},{value:"80x43",label:"80x43",cols:80,rows:43},{value:"132x24",label:"132x24",cols:132,rows:24},{value:"132x43",label:"132x43",cols:132,rows:43}],J={REPORT:"REPORT",FIGURES:"FIGURES",TABLES:"TABLES",RESOURCES:"RESOURCES",MODELS:"MODELS",PROVENANCE:"PROVENANCE",REFERENCES:"REFERENCES"},Z={REPORT:"Report",SECTION:"Section",PARAGRAPH:"Paragraph",TABLE:"Table",CHART:"Chart",FIGURE:"Figure",RESOURCE:"Resource",MODEL:"Model",REFERENCE:"Reference",CITATION:"Citation",VIEW:"View",LINK:"Link",ANCHOR:"Anchor"},$=(o={},i()(o,Z.REPORT,J.REPORT),i()(o,Z.SECTION,J.REPORT),i()(o,Z.PARAGRAPH,J.REPORT),i()(o,Z.TABLE,J.TABLES),i()(o,Z.CHART,J.REPORT),i()(o,Z.FIGURE,J.FIGURES),i()(o,Z.RESOURCE,J.RESOURCES),i()(o,Z.MODEL,J.MODELS),i()(o,Z.REFERENCE,J.REPORT),i()(o,Z.CITATION,J.REPORT),i()(o,Z.VIEW,J.REPORT),i()(o,Z.LINK,J.REPORT),i()(o,Z.ANCHOR,J.REPORT),o),ee={NUMBER:"NUMBER",BOOLEAN:"BOOLEAN",CONCEPT:"CONCEPT",PROCESS:"PROCESS",EVENT:"EVENT",OBJECT:"OBJECT",TEXT:"TEXT",VALUE:"VALUE",RANGE:"RANGE",ENUM:"ENUM",EXTENT:"EXTENT",TEMPORALEXTENT:"TEMPORALEXTENT",SPATIALEXTENT:"SPATIALEXTENT",ANNOTATION:"ANNOTATION",LIST:"LIST",VOID:"VOID",MAP:"MAP",TABLE:"TABLE"}},"7e6d":function(e,t,n){},8449:function(e,t,n){"use strict";n.d(t,"b",function(){return d});n("ac6a"),n("cadf"),n("456d");var o=n("7037"),a=n.n(o),i=(n("386d"),n("7cca")),r=n("1442"),s=n("8fec"),c=n("be3b"),l=n("741d"),u=n("2b0e"),d=new u["a"];t["a"]=function(e){var t,n=e.store,o=new URLSearchParams(window.location.search),E=o.get(i["P"].PARAMS_SESSION)||l["a"].get(i["P"].COOKIE_SESSION),f=o.get(i["P"].PARAMS_MODE)||l["a"].get(i["P"].COOKIE_MODE)||i["P"].PARAMS_MODE_IDE,T=o.get(i["P"].PARAMS_LOG)||l["a"].get(i["P"].COOKIE_LOG)||i["P"].PARAMS_LOG_HIDDEN,p=l["a"].get(i["P"].COOKIE_BASELAYER)||r["d"].DEFAULT_BASELAYER,S=l["a"].get(i["P"].COOKIE_MAPDEFAULT)||{center:r["b"].center,zoom:r["b"].zoom},m=!l["a"].has(i["P"].COOKIE_SAVELOCATION)||l["a"].get(i["P"].COOKIE_SAVELOCATION),O=l["a"].has(i["P"].COOKIE_DOCKED_STATUS),b=o.get(i["P"].PARAMS_DEBUG_REMOTE);if(b)t="true"!==b;else{var A=window.location.hostname.toLowerCase();t=-1===A.indexOf("integratedmodelling.org")&&-1===A.indexOf("klab.officialstatistics.org")}var _=o.get(i["P"].PARAMS_TOKEN);u["a"].mixin({methods:{hexToRgbValues:function(e){if("undefined"!==typeof e){var t=s["b"](e);return"".concat(t.r,", ").concat(t.g,", ").concat(t.b)}return"black"},isAcceptedKey:function(e){var t="abcdefghijklmnopqrstuvwxyz0123456789.<>=!()+-*/^";return e=e.toLowerCase(),-1!==t.indexOf(e)}}}),u["a"].prototype.$eventBus=d,n.state.data.session=E,u["a"].prototype.$mode=f,l["a"].set(i["P"].COOKIE_MODE,f,{expires:30,path:"/",secure:!0}),u["a"].prototype.$logVisibility=T,l["a"].set(i["P"].COOKIE_LOG,T,{expires:30,path:"/",secure:!0}),u["a"].prototype.$baseLayer=p,l["a"].set(i["P"].COOKIE_BASELAYER,p,{expires:30,path:"/",secure:!0}),u["a"].prototype.$mapDefaults=S,n.state.view.saveLocation=m,l["a"].set(i["P"].COOKIE_SAVELOCATION,m,{expires:30,path:"/",secure:!0}),n.state.view.saveDockedStatus=O,O&&(n.state.view.mainControlDocked=l["a"].get(i["P"].COOKIE_DOCKED_STATUS)),n.state.view.viewCoordinates=l["a"].has(i["P"].COOKIE_VIEW_COORDINATES)&&l["a"].get(i["P"].COOKIE_VIEW_COORDINATES),n.state.data.local=t,n.state.data.token=_,console.info("Session: ".concat(E," / mode: ").concat(f));var I=o.get(i["P"].PARAMS_LOCAL_HELP);n.state.view.helpBaseUrl=I?"http://".concat(I):i["r"].DEFAULT_HELP_BASE_URL;var v=o.get(i["P"].PARAMS_APP);v&&(n.state.view.klabApp=v),c["a"].get("".concat("").concat("/modeler","/capabilities"),{}).then(function(e){var t=e.data;if("object"!==a()(t))throw Error("Error asking for capabilities: no data");if(0===Object.keys(t).length)throw Error("Capabilities are empty, check it");n.state.data.capabilities=t}).catch(function(e){console.error("Error trying to retrieve capabilities: ".concat(e))})}},"8fec":function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return c});n("c5f6"),n("ee1d"),n("a481"),n("6b54");var o=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function a(e){var t=e.r,n=e.g,o=e.b,a=e.a,i=void 0!==a;if(t=Math.round(t),n=Math.round(n),o=Math.round(o),t>255||n>255||o>255||i&&a>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return a=i?(256|Math.round(255*a/100)).toString(16).slice(1):"","#".concat((o|n<<8|t<<16|1<<24).toString(16).slice(1)).concat(a)}function i(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function r(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=e.replace(/ /g,""),n=o.exec(t);if(null===n)return i(t);var a={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){var r=parseFloat(n[5]);a.a=100*Math.min(1,!0===Number.isNaN(r)?1:r)}return a}function s(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if("number"!==typeof t)throw new TypeError("Expected a numeric percent");var n=r(e),o=t<0?0:255,a=Math.abs(t)/100,i=n.r,s=n.g,c=n.b;return"#".concat((16777216+65536*(Math.round((o-i)*a)+i)+256*(Math.round((o-s)*a)+s)+(Math.round((o-c)*a)+c)).toString(16).slice(1))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if("string"!==typeof e)throw new TypeError("Expected a string as color");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue("--q-color-".concat(e)).trim()||null}},b0b2:function(e,t,n){"use strict";n.d(t,"a",function(){return P}),n.d(t,"h",function(){return y}),n.d(t,"e",function(){return x}),n.d(t,"f",function(){return k}),n.d(t,"g",function(){return U}),n.d(t,"b",function(){return V}),n.d(t,"k",function(){return F}),n.d(t,"j",function(){return Y}),n.d(t,"i",function(){return W}),n.d(t,"l",function(){return G}),n.d(t,"c",function(){return H}),n.d(t,"d",function(){return z});n("4917"),n("28a5"),n("48c0"),n("6c7b"),n("ac6a");var o=n("278c"),a=n.n(o),i=(n("c5f6"),n("ee1d"),n("8fec")),r=n("256f"),s=n("5bc3"),c=n("6c77"),l=n("1442"),u=n("f403"),d=n("7a09"),E=n("9a44"),f=n("47e4"),T=n("88da"),p=n("f822"),S=n("049d"),m=n("c4c8"),O=n("c7e3"),b=n("f384"),A=n("01ae"),_=n("7f68"),I=n("881a"),v=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/,N=i["b"],h=i["a"],R=i["d"],C={topLeft:Object(r["l"])([-180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomLeft:Object(r["l"])([-180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),topRight:Object(r["l"])([180,90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857),bottomRight:Object(r["l"])([180,-90],l["d"].PROJ_EPSG_4326,l["d"].PROJ_EPSG_3857)},g=new _["b"],w={left:g.createLineString([new _["a"](C.topLeft[0],C.topLeft[1]),new _["a"](C.bottomLeft[0],C.bottomLeft[1])]),right:g.createLineString([new _["a"](C.topRight[0],C.topRight[1]),new _["a"](C.bottomRight[0],C.bottomRight[1])])},L=g.createPolygon([new _["a"](C.topLeft[0],C.topLeft[1]),new _["a"](C.topRight[0],C.topRight[1]),new _["a"](C.bottomRight[0],C.bottomRight[1]),new _["a"](C.bottomLeft[0],C.bottomLeft[1]),new _["a"](C.topLeft[0],C.topLeft[1])]);function P(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function D(e){if("string"!==typeof e)throw new TypeError("Expected a string");var t=v.exec(e);if(t){var n={r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)};return t[4]&&(n.a=parseFloat(t[4])),n}return N(e)}function y(e){return!!Number.isNaN(1*e)&&e===e.toUpperCase()}function M(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"undefined"!==typeof t[e.toLowerCase()]?t[e.toLowerCase()]:null}function x(e){var t,n;if(0===e.indexOf("#"))n=e,t=N(e);else if(-1!==e.indexOf(","))t=D(e),n=R(t);else{if(n=h(e),null===n&&(n=M(e),null===n))throw new Error("Unknown color: ".concat(e));t=N(n)}return{rgb:t,hex:n,color:e}}function k(e,t,n){(null===e||null===t||n<1)&&console.warn("Bad colors: ".concat(e,", ").concat(t));for(var o,a,i,r=x(e).rgb,s=x(t).rgb,c=1/(n-1),l=[],u=0;u2&&void 0!==arguments[2]?arguments[2]:null,o=function(e,t,n){return e+(t-e)*n},i=[],r=Number((e.length-1)/(t-1)),s=a()(e,1);i[0]=s[0];for(var c=1;c0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))}var F=new I["a"];F.inject(u["a"],d["a"],S["a"],s["a"],E["a"],f["a"],T["a"]);var Y=function(e){return e instanceof p["a"]&&(e=Object(s["b"])(e)),F.read(e)},W=function(e){return new m["a"](e).isValid()},G=function(e,t){return O["a"].union(e,t)};function j(e){var t=[];return O["a"].intersection(e,w.left)&&t.push(w.left),O["a"].intersection(e,w.right)&&t.push(w.right),t}function H(e){var t=j(e);if(0===t.length)return e;var n=e.getExteriorRing();t.forEach(function(e){n=O["a"].union(n,e)});var o=new A["a"];o.add(n);for(var a=o.getPolygons(),i=null,r=a.iterator();r.hasNext();){var s=r.next();if(!b["a"].contains(L,s)){for(var c=[],l=s.getCoordinates(),u=l.length,d=0;d0&&void 0!==arguments[0]?arguments[0]:null;if(null===e)return!1;var t=e.geometryTypes;return t&&"undefined"!==typeof t.find(function(e){return e===l["q"].TYPE_RASTER})},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l["g"].HIST_MAX_LENGTH;e.push(t),e.length>n&&e.shift()},w=function(e,t){if(0===e.length)return null;if(void 0===t)return e[e.length-1];var n=c()(e).reverse().find(function(e){return e.type===t});return"undefined"!==typeof n?n:null},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if(e&&null!==t&&"function"===typeof n){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.children&&i.children.length>0?e(null,i.children):r};return a(null,e)}return null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return L(e,t,function(e,t){return e.id===t?e:null})},D=function(e){var t=null!==e.parentArtifactId||null!==e.parentId&&e.rootContextId!==e.parentId,n=null!==e.parentArtifactId?e.parentArtifactId:e.parentId,o=e.main;if(!o&&t){var a=P(d["a"].getters["data/tree"],n);null!==a&&(o=o||a.userNode)}return{node:r()({id:e.id,label:e.literalValue||e.label,observable:e.observable,type:e.shapeType,dynamic:e.dynamic||!1,needUpdate:!e.contextualized,viewerIdx:e.viewerIdx,viewerType:null!==e.viewerIdx?d["a"].getters["view/viewer"](e.viewerIdx).type:null,loading:!1,children:[],childrenCount:e.childrenCount,childrenLoaded:0,siblingsCount:e.siblingsCount,parentArtifactId:e.parentArtifactId,tickable:null!==e.viewerIdx&&!e.empty||e.isContainer||e.childrenCount>0,disabled:e.empty&&(!e.isContainer||0===e.childrenCount)||e.singleValue||e.observationType===l["y"].TYPE_PROCESS,empty:e.empty,actions:e.actions,header:e.isContainer?"folder":"default",main:e.main,userNode:o,isContainer:e.isContainer,exportFormats:e.exportFormats,rootContextId:e.rootContextId,contextId:e.contextId,observationType:e.observationType,noTick:e.singleValue||e.observationType===l["y"].TYPE_PROCESS},e.isContainer&&{childrenLoaded:0},e.siblingsCount&&{siblingsCount:e.siblingsCount},{parentId:n}),parentId:n}},y=function(e){return new Promise(function(t,n){var o=null;if(null!==e)if(o=Object(_["g"])(e),null===o){var a=e.substring(5);fetch("https://epsg.io/?format=json&q=".concat(a)).then(function(a){return a.json().then(function(a){var i=a.results;if(i&&i.length>0)for(var r=0,s=i.length;r0&&u&&u.length>0&&d&&4===d.length){var f="EPSG:".concat(l);v["a"].defs(f,u),Object(I["a"])(v["a"]),o=Object(_["g"])(f);var T=Object(_["i"])(E["d"].PROJ_EPSG_4326,o),p=Object(A["a"])([d[1],d[2],d[3],d[0]],T);o.setExtent(p),console.info("New projection registered: ".concat(f)),t(o)}else n(new Error("Some error in projection search result: ".concat(JSON.stringify(c))))}else n(new Error("Some error in projection search result: no results"))}else n(new Error("Unknown projection: ".concat(e)))})})}else t(o);else t(E["d"].PROJ_EPSG_4326)})};function M(e){return x.apply(this,arguments)}function x(){return x=a()(regeneratorRuntime.mark(function e(t){var n,o,a,i,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.spatialProjection,e.next=3,y(n);case 3:if(o=e.sent,a=t.encodedShape,a){e.next=7;break}return e.abrupt("return",null);case 7:return 0===a.indexOf("LINEARRING")&&(a=a.replace("LINEARRING","LINESTRING")),i=null,-1!==a.indexOf("POINT")?(r=R.readFeature(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),null!==r&&null!==r.getGeometry()&&(i=r.getGeometry().getFirstCoordinate())):i=R.readGeometry(a,{dataProjection:o,featureProjection:E["d"].PROJ_EPSG_3857}),t.id===t.rootContextId&&(t.zIndexOffset=0),e.abrupt("return",i);case 12:case"end":return e.stop()}},e)})),x.apply(this,arguments)}function k(e){return U.apply(this,arguments)}function U(){return U=a()(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.response?{status:t.response.data.status||t.response.status,message:t.response.data.message||t.response.data.error||t.response.data||(""!==t.response.statusText?t.response.statusText:"Unknown"),axiosError:t}:t.request?{status:t.request.status,message:t.message,axiosError:t}:{status:"UNKNOWN",message:t.message,axiosError:t},!(n instanceof Blob)){e.next=5;break}return e.next=4,n.text();case 4:n=e.sent;case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}},e)})),U.apply(this,arguments)}var V=function(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;d["a"].dispatch("view/setSpinner",r()({},l["H"].SPINNER_LOADING,{owner:e}),{root:!0}),N["a"].get(t,n).then(function(t){t&&o(t,function(){d["a"].dispatch("view/setSpinner",r()({},l["H"].SPINNER_STOPPED,{owner:e}),{root:!0})})}).catch(function(){var t=a()(regeneratorRuntime.mark(function t(n){var o,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,k(n);case 2:if(o=t.sent,a=null,null!=o&&(a=o.message),d["a"].dispatch("view/setSpinner",r()({},l["H"].SPINNER_ERROR,{owner:e,errorMessage:a}),{root:!0}),null===i){t.next=10;break}i(n),t.next=11;break;case 10:throw n;case 11:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())},F=function(e){if("RAMP"===e.type&&e.colors.length>1&&e.colors.length<256){for(var t=[],n=[],o=e.colors.length,a=Math.floor(256/o),i=a+(256-o*a),r=0;rl["q"].PARAM_VIEWPORT_MAX_SIZE&&(a=l["q"].PARAM_VIEWPORT_MAX_SIZE),P=w.getExtent(),D="".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(t.id),M=new b["a"]({projection:R,imageExtent:P,url:D,style:E["e"].POLYGON_OBSERVATION_STYLE,imageLoadFunction:function(e,n){d["a"].dispatch("view/setSpinner",r()({},l["H"].SPINNER_LOADING,{owner:"".concat(n).concat(s)}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!0,observation:t}),N["a"].get(n,{params:r()({format:l["q"].TYPE_RASTER,viewport:a},-1!==A&&{locator:"T1(1){time=".concat(A,"}")}),responseType:"blob"}).then(function(o){if(o){var a=new FileReader;a.readAsDataURL(o.data),a.onload=function(){var o=e.getImage();o.src=a.result,d["a"].dispatch("view/setSpinner",r()({},l["H"].SPINNER_STOPPED,{owner:"".concat(n).concat(s)}),{root:!0}),t.tsImages.push("T".concat(s)),t.loaded=!0,d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),V("cm_".concat(t.id),D,{params:r()({format:l["q"].TYPE_COLORMAP},-1!==s&&{locator:"T1(1){time=".concat(s,"}")})},function(e,n){e&&e.data&&(t.colormap=F(e.data)),n()})},a.onerror=function(e){d["a"].dispatch("view/setSpinner",r()({},l["H"].SPINNER_ERROR,{owner:"".concat(n).concat(s),errorMessage:e}),{root:!0})}}}).catch(function(e){throw d["a"].dispatch("view/setSpinner",r()({},l["H"].SPINNER_ERROR,{owner:"".concat(n).concat(s),errorMessage:e.message}),{root:!0}),d["a"].dispatch("data/setLoadingLayers",{loading:!1,observation:t}),e})}}),e.abrupt("return",new O["a"]({id:L,source:M}));case 19:return 0===g.indexOf("LINESTRING")||0===g.indexOf("MULTILINESTRING")?(x=E["e"].LNE_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_LINES):0===g.indexOf("POINT")||0===g.indexOf("MULTIPOINT")?(x=Object(f["d"])(E["e"].POINT_OBSERVATION_SVG_PARAM,t.label),t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POINTS):(x=E["e"].POLYGON_OBSERVATION_STYLE,t.zIndexOffset=E["d"].ZINDEX_BASE*E["d"].ZINDEX_MULTIPLIER_POLYGONS),k=new m["a"]({geometry:w,name:t.label,id:L}),U=new p["a"]({id:L,source:new T["a"]({features:[k]}),style:x}),e.abrupt("return",U);case 23:case"end":return e.stop()}},e)})),W.apply(this,arguments)}function G(e,t){d["a"].$app.sendStompMessage(e(t,d["a"].state.data.session).body)}var j=function(e){switch(e){case"FORTHCOMING":return{icon:"mdi-airplane-landing",tooltip:"forthcoming"};case"EXPERIMENTAL":return{icon:"mdi-flask-outline",tooltip:"experimental"};case"NEW":return{icon:"mdi-new-box",tooltip:"new"};case"STABLE":return{icon:"mdi-check-circle-outline",tooltip:"stable"};case"BETA":return{icon:"mdi-radioactive",tooltip:"beta"};default:return{}}},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e.id===t?e:null};if(e&&null!==t){var o=[].reduce,a=function e(a,i){if(a||!i)return a;if(Array.isArray(i))return o.call(Object(i),e,a);var r=n(i,t);return null===r&&i.components&&i.components.length>0?e(null,i.components):r};return a(null,e)}return null},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return H(c()(e.panels).concat(c()(e.leftPanels),c()(e.rightPanels),[e.header,e.footer]).filter(function(e){return null!==e}),t,n)};function B(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;V("dw_".concat(e),"".concat("").concat(u["c"].REST_SESSION_VIEW,"data/").concat(e),{params:r()({format:t,outputFormat:o.value,adapter:o.adapter},-1!==a&&{locator:"T1(1){time=".concat(a,"}")}),responseType:"blob"},function(e,t){var a=window.URL.createObjectURL(new Blob([e.data])),i=document.createElement("a");i.href=a,i.setAttribute("download","".concat(n,".").concat(o.extension)),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(a),t()})}function K(e,t){var n=[Object.assign({},e)];return delete n[0][t],e[t]&&e[t].length>0?n.concat(e[t].map(function(e){return K(e,t)}).reduce(function(e,t){return e.concat(t)},[])):n}}).call(this,n("b639").Buffer)},be3b:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var o=n("bc3a"),a=n.n(o),i=a.a.create();t["b"]=function(e){var t=e.Vue,n=e.store;n.state.data.session?i.defaults.headers.common.Authorization=n.state.data.session:console.warn("No session established en axios header, check it"),n.state.data.token&&(i.defaults.headers.common.Authentication=n.state.data.token),t.prototype.$axios=i}},d247:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return i});n("0d6d"),Object.freeze({SEARCH_TYPES:[{enumId:"CONCEPT",name:"CONCEPT",color:"#ff0000"},{enumId:"OPERATOR",name:"OPERATOR",color:"#ffff00"},{enumId:"OBSERVATION",name:"OBSERVATION",color:"#ff00ff"},{enumId:"MODEL",name:"MODEL",color:"#0000ff"}]});var o=Object.freeze({CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_SEARCH:"Search",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_NOTIFICATION:"Notification",CLASS_RUN:"Run",TYPE_REGIONOFINTEREST:"RegionOfInterest",TYPE_FEATUREADDED:"FeatureAdded",TYPE_PERIODOFINTEREST:"PeriodOfInterest",TYPE_SUBMITSEARCH:"SubmitSearch",TYPE_MATCHACTION:"MatchAction",TYPE_REQUESTOBSERVATION:"RequestObservation",TYPE_RESETCONTEXT:"ResetContext",TYPE_RECONTEXTUALIZE:"Recontextualize",TYPE_TASKINTERRUPTED:"TaskInterrupted",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_DATAFLOWNODEDETAIL:"DataflowNodeDetail",TYPE_DATAFLOWNODERATING:"DataflowNodeRating",TYPE_CHANGESETTING:"ChangeSetting",TYPE_USERINPUTPROVIDED:"UserInputProvided",TYPE_WATCHOBSERVATION:"WatchObservation",TYPE_ENGINEEVENT:"EngineEvent",TYPE_VIEWACTION:"ViewAction",TYPE_RUNAPP:"RunApp",TYPE_CONSOLECREATED:"ConsoleCreated",TYPE_CONSOLECLOSED:"ConsoleClosed",TYPE_COMMANDREQUEST:"CommandRequest",PAYLOAD_CLASS_SPATIALEXTENT:"SpatialExtent",PAYLOAD_CLASS_SPATIALLOCATION:"SpatialLocation",PAYLOAD_CLASS_TEMPORALEXTENT:"TemporalExtent",PAYLOAD_CLASS_SEARCHREQUEST:"SearchRequest",PAYLOAD_CLASS_SEARCHMATCHACTION:"SearchMatchAction",PAYLOAD_CLASS_OBSERVATIONREQUEST:"ObservationRequest",PAYLOAD_CLASS_INTERRUPTTASK:"InterruptTask",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_CONTEXTUALIZATIONREQUEST:"ContextualizationRequest",PAYLOAD_CLASS_SETTINGCHANGEREQUEST:"SettingChangeRequest",PAYLOAD_CLASS_USERINPUTRESPONSE:"UserInputResponse",PAYLOAD_CLASS_WATCHREQUEST:"WatchRequest",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_MENUACTION:"MenuAction",PAYLOAD_CLASS_LOADAPPLICATIONREQUEST:"LoadApplicationRequest",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification"}),a=Object.freeze({CLASS_TASKLIFECYCLE:"TaskLifecycle",CLASS_OBSERVATIONLIFECYCLE:"ObservationLifecycle",CLASS_QUERY:"Query",CLASS_USERCONTEXTCHANGE:"UserContextChange",CLASS_NOTIFICATION:"Notification",CLASS_USERCONTEXTDEFINITION:"UserContextDefinition",CLASS_USERINTERFACE:"UserInterface",CLASS_AUTHORIZATION:"Authorization",CLASS_VIEWACTOR:"ViewActor",TYPE_DATAFLOWCOMPILED:"DataflowCompiled",TYPE_DATAFLOWSTATECHANGED:"DataflowStateChanged",TYPE_DATAFLOWDOCUMENTATION:"DataflowDocumentation",TYPE_NEWOBSERVATION:"NewObservation",TYPE_MODIFIEDOBSERVATION:"ModifiedObservation",TYPE_QUERYRESULT:"QueryResult",TYPE_RESETCONTEXT:"ResetContext",TYPE_SCALEDEFINED:"ScaleDefined",TYPE_USERINPUTREQUESTED:"UserInputRequested",TYPE_USERPROJECTOPENED:"UserProjectOpened",TYPE_SCHEDULINGSTARTED:"SchedulingStarted",TYPE_SCHEDULINGFINISHED:"SchedulingFinished",TYPE_NETWORKSTATUS:"NetworkStatus",TYPE_CREATEVIEWCOMPONENT:"CreateViewComponent",TYPE_SCHEDULEADVANCED:"ScheduleAdvanced",TYPE_ENGINEEVENT:"EngineEvent",TYPE_SETUPINTERFACE:"SetupInterface",TYPE_VIEWACTION:"ViewAction",TYPE_VIEWAVAILABLE:"ViewAvailable",TYPE_VIEWSETTING:"ViewSetting",TYPE_COMMANDRESPONSE:"CommandResponse",TYPE_DOCUMENTATIONCHANGED:"DocumentationChanged",TYPE_CREATEMODALWINDOW:"CreateModalWindow",TYPE_AUTHORITYDOCUMENTATION:"AuthorityDocumentation",TYPE_PROVENANCECHANGED:"ProvenanceChanged",TYPE_TASKSTARTED:"TaskStarted",TYPE_TASKFINISHED:"TaskFinished",TYPE_TASKABORTED:"TaskAborted",TYPE_DEBUG:"Debug",TYPE_INFO:"Info",TYPE_WARNING:"Warning",TYPE_ERROR:"Error",PAYLOAD_CLASS_TASKREFERENCE:"TaskReference",PAYLOAD_CLASS_CONTEXTUALIZATIONNOTIFICATION:"ContextualizationNotification",PAYLOAD_CLASS_DATAFLOWSTATE:"DataflowState",PAYLOAD_CLASS_OBSERVATIONREFERENCE:"ObservationReference",PAYLOAD_CLASS_SEARCHRESPONSE:"SearchResponse",PAYLOAD_CLASS_SCALEREFERENCE:"ScaleReference",PAYLOAD_CLASS_USERINPUTREQUEST:"UserInputRequest",PAYLOAD_CLASS_SCHEDULERNOTIFICATION:"SchedulerNotification",PAYLOAD_CLASS_NETWORKREFERENCE:"NetworkReference",PAYLOAD_CLASS_EMPTY:"String",PAYLOAD_CLASS_VIEWCOMPONENT:"ViewComponent",PAYLOAD_CLASS_ENGINEEVENT:"EngineEvent",PAYLOAD_CLASS_LAYOUT:"Layout",PAYLOAD_CLASS_VIEWACTION:"ViewAction",PAYLOAD_CLASS_VIEWSETTING:"ViewSetting",PAYLOAD_CLASS_KNOWLEDGEVIEWREFERENCE:"KnowledgeViewReference",PAYLOAD_CLASS_CONSOLENOTIFICATION:"ConsoleNotification",PAYLOAD_CLASS_DOCUMENTATIONEVENT:"DocumentationEvent"}),i=Object.freeze({REST_STATUS:"".concat("/modeler","/engine/status"),REST_SESSION_INFO:"".concat("/modeler","/engine/session/info"),REST_SESSION_VIEW:"".concat("/modeler","/engine/session/view/"),REST_SESSION_OBSERVATION:"".concat("/modeler","/engine/session/observation/"),REST_UPLOAD:"".concat("/modeler","/resource/put"),REST_GET_PROJECT_RESOURCE:"".concat("/modeler","/engine/project/resource/get"),REST_API_LOGOUT:"".concat("/modeler/api/v2","/users/log-out"),REST_API_EXPORT:"".concat("/modeler/api/v2","/public/export")})},e7d8:function(e,t,n){"use strict";var o=n("2b0e"),a=n("a925"),i={label:{appTitle:"k.LAB Explorer EN",appRunning:"Running on Quasar v{version}",appClose:"Close",appOK:"Ok",appAccept:"Accept",appYES:"Yes",appNO:"No",appCancel:"Cancel",appRetry:"Retry",appNext:"Next",appPrevious:"Previous",appWarning:"Warning",appPlay:"Play",appReplay:"Replay",appPause:"Pause",appReload:"Reload",appPrint:"Print",appSetDefault:"Set as default",klabNoMessage:"No message",klabUnknownError:"Unknown error",klabNoDate:"No date",klabMessagesToSend:"There are one message in queue",modalNoConnection:"No connection, please wait",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observation",reconnect:"Reconnect",unknownLabel:"Unknown",context:"context",noContext:"",noContextPlaceholder:"",contextShape:"context shape",noObservation:"No observations available",searchPlaceholder:"Search knowledge",fuzzySearchPlaceholder:"Free search",askForObservation:"Observing {urn}",noTokenDescription:"No description available",btnContextReset:"Reset context",contextReset:"Context reset",itemCounter:"{loaded} of {total}",logTab:"Log",treeTab:"Tree",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Space & time:",mcMenuContext:"Context",mcMenuOption:"Options",mcMenuSettings:"Settings",mcMenuHelp:"Help",showTutorial:"Show tutorial",showHelp:"Show help",refreshSize:"Refresh window size",titleOutputFormat:"Download observation",askForOuputFormat:"Select format",titleChangeScale:"Change {type} scale",askForNewScale:"Select new scale",resolutionLabel:"Resolution value",unitLabel:"Unit value",clickToEditScale:"Click to edit",clickToLock:"Click to lock scale",clickToUnlock:"Click to unlock scale",scaleLocked:"{type} scale locked",spaceScale:"Space",timeScale:"Time",unitCentimeter:"Centimeters",unitMeter:"Meters",unitKilometer:"Kilometers",unitMillennium:"Millennium",unitCentury:"Century",unitDecade:"Decade",unitYear:"Year",unitMonth:"Month",unitWeek:"Week",unitDay:"Day",unitHour:"Hour",unitMinute:"Minute",unitSecond:"Second",unitMillisecond:"Millisecond",timeOrigin:"Initial time",labelTimeStart:"Start time",labelTimeEnd:"End time",labelSpatial:"spatial",labelTemporal:"temporal",newContext:"New context",previousContexts:"Previous contexts",drawCustomContext:"Draw context",eraseCustomContext:"Erase custom context",addToCustomContext:"Add shape",drawPoint:"Point",drawLineString:"Line",drawPolygon:"Polygon",drawCircle:"Circle",optionShowAll:"Show all",optionSaveLocation:"Remember location",saveDockedStatus:"Remember docked status",noNodes:"No observations",loadShowData:"Load and show data",interactiveMode:"Interactive mode",noInputSectionTitle:"No section title",cancelInputRequest:"Cancel run",resetInputRequest:"Use defaults",submitInputRequest:"Submit",IDLAlertTitle:"Warning!",recontextualization:"Set as context",rememberDecision:"Don't show again",titleCommentResource:"Comment on resource",sendComment:"Send",noTimeSet:"Initial state",timeResolutionMultiplier:"Multiplier",months:{m0:"January",m1:"February",m2:"March",m3:"April",m4:"May",m5:"June",m6:"July",m7:"August",m8:"September",m9:"October",m10:"November",m11:"December"},removeProposedContext:"Remove context",levelDebug:"Debug",levelInfo:"Info",levelWarning:"Warning",levelError:"Error",levelEngineEvent:"Engine event",userDetails:"User details",unknownUser:"Unknown user",userId:"Id:",userEmail:"Email:",userLastLogin:"Last login:",userGroups:"Groups:",appsList:"Available apps",appsClose:"Close app",appsLogout:"Logout",reloadApplications:"Reload applications",noLayoutLabel:"No title",noLayoutDescription:"No description",kwTable:"Table",kwChart:"Chart",openTerminal:"Open terminal",openDebugger:"Open debugger",titleSelectTerminalSize:"Select terminal size",terminalDeleteHistory:"Delete history",terminalResizeWindow:"Resize terminal window",terminalMinimize:"Minimize terminal",terminalMaximize:"Maximize terminal",terminalClose:"Close terminal",noDocumentation:"No elements available for this view",tableDownloadAsXSLX:"Download table as .xslx",tableCopy:"Copy table to clipboard",resettingContext:"Resetting context",reportTable:"Table",reportFigure:"Figure",viewCoordinates:"Show coordinates"},messages:{connectionClosed:"Connection closed",connectionWorking:"Trying to reconnect",connectionUnknown:"Starting...",noSpaceAllowedInSearch:"Spaces cannot be used in the search box",noSearchResults:"No search results",noActionForObservation:"No actions available",noTime:"no time",emptyReport:'
Empty report
',noLoadedReport:"No report loaded",copiedToClipboard:"Copied to clipboard",customCopyToClipboard:"{what} copied to clipboard",changeScaleResolutionError:"Resolution must be positive",updateScale:"{type} scale updated",updateNextScale:"New {type} scale have been stored, press refresh to update",invalidGeometry:"Polygon is not valid",geolocationWaitingTitle:"Enable geolocation?",geolocationWaitingText:"k.Explorer can detect your current location to initialize the geographical viewer.
In order to do so, you need to authorize geolocation.
This is merely for your convenience and does not affect operation.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Geolocation has not been authorized",geolocationErrorPositionUnavailable:"Location information is unavailable",geolocationErrorTimeout:"A request to get the user location timed out",geolocationErrorUnknown:"An unknown error occurred",unknownSearchObservation:"Previous observations results",noLogItems:"Empty log",noLevelSelected:"No levels selected",uploadComplete:"Upload of file {fileName} complete",IDLAlertText:"Actual view crossing the International Date Line. A drawn context is needed",lastTermAlertText:"No more terms allowed",parenthesisAlertText:"You have open parenthesis",emptyFreeTextSearch:"Empty search is not allowed",fuzzyModeOff:"Free search off",fuzzyModeOn:"Free search on",treeNoResult:"No results",treeNoNodes:"No data",treeNoResultUser:"No main observations",treeNoResultUserWaiting:"Computing...",treeNoResultNoUser:"No observations",treeNoMainSummary:"Other observations",thankComment:"Comment has been sent",confirmRescaleContext:"The context will be recreate with new resolution.\nAre you sure?",loadingChildren:"Loading children...",waitingLocation:"Searching for {location}...",waitingObservationInit:"Initializing observation...",availableInFuture:"This feature will be available soon",timeEndBeforeTimeStart:"End time cannot be before start time",timeEndModified:"Multiplier is not used because the end time was manually changed",pressToChangeSpeed:"Press to play
Hold to change speed
Actual speed x{multiplier}",resourcesValidating:"Engine is busy",presentationBlocked:'

Can\'t access online help resources: check your network connection

A browser extension may also be interfering

',noAppsAvailable:"No available apps",noGroupsAssigned:"No groups assigned",appLoading:"Loading app {app}",errorLoadingApp:"Error loading app {app}",reloadApp:"Reload application",errorLoggingOut:"Error logging out, contact support",terminalHello:"Welcome to k.LAB {type}",noDocumentation:"No documentation available",confirmExitPage:"Data will be lost if you leave the page, are you sure?",tableCopied:"Table copied to clipboard",invalidSession:"Invalid session",sessionClosed:"Session closed by server",unknownSessionError:"Problem with session",youHaveGOT:"Winter is coming"},tooltips:{treePane:"View tree",showLogPane:"View log",hideLogPane:"Hide log",resetContext:"Reset context",interruptTask:"Interrupt task {taskDescription}",dataViewer:"View data",reportViewer:"View report",documentationViewer:"View documentation",scenarios:"Scenarios",observers:"Observers",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report not available,\nno observations",noDocumentation:"Documentation not available,\nno observations",noDataflow:"Dataflow not availble",noDataflowInfo:"No details",dataflowViewer:"View data flow",provenanceViewer:"View provenance (will be...)",undock:"Undock",copyEncodedShapeToClipboard:"Copy context shape to clipboard",cancelInputRequest:"Cancel run",resetInputRequest:"Use default values",submitInputRequest:"Submit values",displayMainTree:"Display main tree",hideMainTree:"Hide main tree",rateIt:"Rate resource",commentIt:"Comment on resource",refreshScale:"Refresh context with new scale(s)",clickToEdit:"Click to edit {type} scale",palette:"No palette",unknown:"To be decided",noKnowledgeViews:"No knowledge views",knowledgeViews:"Knowledge views",uploadData:"Upload data (forthcoming)"},errors:{connectionError:"Connection error",searchTimeout:"Search timeout",uploadError:"Upload error for the file {fileName}"},engineEventLabels:{evtResourceValidation:"Resource validation"},langName:"English"},r={label:{appTitle:"k.LAB Explorer ES",appRunning:"Ejecutándose sobre Quasar v{version}",appClose:"Cerrar",appOK:"Ok",appCancel:"Cancelar",appRetry:"Reintentar",appNext:"Siguiente",appPrevious:"Precedente",klabNoMessage:"No hay ningún mensaje",klabUnknownError:"Error desconocido",klabNoDate:"No hay fecha",klabMessagesToSend:"Hay un mensaje en la cola",modalNoConnection:"No hay conexión, esperar",appFooter:"k.LAB Explorer - 2018",treeTitle:"Observaciones",reconnect:"Reconectar",unknownLabel:"Desconocido",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"No hay observaciones",searchPlaceholder:"Buscar in k.LAB",fuzzySearchPlaceholder:"Buscar",askForObservation:"Pidiendo {urn}",noTokenDescription:"No hay descripción",btnContextReset:"Resetear contexto",contextReset:"Contexto reseteado",itemCounter:"{loaded} de {total}",logTab:"Log",treeTab:"Árbol",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Espacio y tiempo:",mcMenuContext:"Contexto",mcMenuOption:"Optciones",titleOutputFormat:"Download observación",askForOuputFormat:"Seleccionar un formato",titleChangeScale:"Cambiar escala",askForNewScale:"Seleccionar nueva escala",resolutionLabel:"Valor de la escala",unitLabel:"Unidad de la escala",clickToEditScale:"Click para modificar",clickToLock:"Click para bloquear la escala",clickToUnlock:"Click para desbloquear la escala",scaleLocked:"{type} escala bloqueada",spaceScale:"Espacio",timeScale:"Tiempo",labelCm:"Centimetros",labelM:"Metros",labelKm:"Kilometros",labelSpatial:"espacial",labelTemporal:"temporal",newContext:"Nuevo contexto",previousContexts:"Contextos prévios",drawCustomContext:"Dibujar contexto",eraseCustomContext:"Borrar contexto",addToCustomContext:"Añadir shape",drawPoint:"Punto",drawLineString:"Línea",drawPolygon:"Polígono",drawCircle:"Circulo",optionShowAll:"Ver todas",optionSaveLocation:"Recordar posición",noNodes:"No results: is waiting?",loadShowData:"Cargar y visualizar datos",interactiveMode:"Modo interactivo",noInputSectionTitle:"No section title",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar defaults",submitInputRequest:"Enviar",IDLAlertTitle:"Cuidado!",recontextualization:"Fijar como contexto",rememberDecision:"Recordar mi elección"},messages:{connectionClosed:"Conexión cerrada",connectionWorking:"Intentando reconectar",connectionUnknown:"Inicializando...",noSpaceAllowedInSearch:"No está permitido utilizar espacios en la búsqueda",noSearchResults:"No hay resultados",noActionForObservation:"No hay acciones disponibles",noTime:"sin información",emptyReport:'',noLoadedReport:"No se ha cargado ningun report",copiedToClipboard:"Copiado",customCopyToClipboard:"{what} copiado",changeScaleResolutionError:"La resolución tiene que ser positiva",updateScale:"Actualizada la escala {type}, nuevo valor {resolution} {unit}",invalidGeometry:"Polígono no válido",geolocationWaitingTitle:"¿Habilitar la geolocalización?",geolocationWaitingText:"k.Explorer puede detectar tu posición actual para inicializar la vista geográfica.
Para hacer eso, hay que autorizar la geolocalización.
Esto es solamente por comodidad yno afecta a la operatividad.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"No se ha autorizado la geolocalización",geolocationErrorPositionUnavailable:"No hay información de posicionamiento",geolocationErrorTimeout:"Se ha superado el tiempo de espera para la geolocalización",geolocationErrorUnknown:"Ha habido un error desconocido",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Resultado de observaciones previas",noLogItems:"No hay elementos en el log",uploadComplete:"Upload del file {fileName} completado",IDLAlertText:"La selección actual cruza la IDL. Sólo está permitido en caso de dibujar un contexto",lastTermAlertText:"No están permitidos mas tokens",parenthesisAlertText:"Parentesis no balanceadas",emptyFreeTextSearch:"Búsqueda vacía",fuzzyModeOff:"Búsqueda libre desactivada",fuzzyModeOn:"Búsqueda libre activada",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Ver árbol",logPane:"Ver log",resetContext:"Reset context",interruptTask:"Interrumpir proceso {taskDescription}",dataViewer:"Ver datos",reportViewer:"Ver report",noReportTask:"Cannot view report,\nwait for task end",noReportObservation:"Report no disponibile,\nno hay observaciones",noDataflow:"Dataflow no disponible",dataflowViewer:"Ver data flow",provenanceViewer:"Ver provenance (will be...)",undock:"Desacoplar",copyEncodedShapeToClipboard:"Copiar el contexto en el portapapeles",cancelInputRequest:"Cancelar ejecución",resetInputRequest:"Utilizar default",submitInputRequest:"Enviar"},errors:{connectionError:"Error de conexión",searchTimeout:"Tiempo de busqueda terminado",uploadError:"Error durante el upload del file {fileName}"},langName:"Español"},s={label:{appTitle:"k.LAB Explorer IT",appRunning:"Esecutandosi con Quasar v{version}",appClose:"Chiudi",appOK:"Ok",appCancel:"Cancellare",appRetry:"Riprovare",appNext:"Successiva",appPrevious:"Precedente",klabNoMessage:"Nessun messaggio",klabUnknownError:"Errore sconosciuto",klabNoDate:"Nessuna data",klabMessagesToSend:"C'è un messaggio in coda",modalNoConnection:"Non c'è connessione",appFooter:"k.LAB Explorer - 2018",treeTitle:"Osservazioni",reconnect:"Riconnettere",unknownLabel:"Sconosciuto",context:"contesto",noContext:"",contextShape:"context shape",noObservation:"Nessuna osservazione disponibile",searchPlaceholder:"Cerca in k.LAB",fuzzySearchPlaceholder:"Cerca",askForObservation:"Chiedendo {urn}",noTokenDescription:"Descrizione non disponibile",btnContextReset:"Resettare il contesto",contextReset:"Contesto resettato",itemCounter:"{loaded} di {total}",logTab:"Log",treeTab:"Albero",noHistogramData:"No data",noInfoValues:"",noScaleReference:"",mcMenuScale:"Spazio e tempo",mcMenuContext:"Contesto",mcMenuOption:"Optziono",titleOutputFormat:"Download osservazione",askForOuputFormat:"Selezionare un formato",titleChangeScale:"Cambiare scala",askForNewScale:"Seleccionar la nueva escala",resolutionLabel:"Valore della scala",unitLabel:"Unità della scala",clickToEditScale:"Click per modificare",clickToLock:"Click per bloccare la scala",clickToUnlock:"Click per sbloccare la scala",scaleLocked:"{type} scala bloccata",spaceScale:"Spacio",timeScale:"Tempo",labelCm:"Centimetri",labelM:"Metri",labelKm:"Kilometri",labelSpatial:"spaziale",labelTemporal:"temporale",newContext:"Constesto nuovo",previousContexts:"Contesti precedenti",drawCustomContext:"Disegnare contesto",eraseCustomContext:"Eliminare contesto",addToCustomContext:"Aggiungere shape",drawPoint:"Punto",drawLineString:"Linea",drawPolygon:"Poligono",drawCircle:"Cerchio",optionShowAll:"Vedere tutte",optionSaveLocation:"Ricordare posizione",noNodes:"No results: is waiting?",loadShowData:"Caricare e visualizzare dati",interactiveMode:"Modo interattivo",noInputSectionTitle:"Sezione senza titolo",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare defaults",submitInputRequest:"Inviare",IDLAlertTitle:"Attenzione!",recontextualization:"Settare come contesto",rememberDecision:"Ricordare la mia decisione"},messages:{connectionClosed:"Connessione chiusa",connectionWorking:"Cercando di riconnettere",connectionUnknown:"Inizializzando...",noSpaceAllowedInSearch:"Non è permesso utilizare spazi nella ricerca",noSearchResults:"Non esistono risultati",noActionForObservation:"Nessuna azione disponibile",noTime:"senza informazione di ora",emptyReport:'',noLoadedReport:"Non si è caricato nessun report",copiedToClipboard:"Copiato",customCopyToClipboard:"{what} copiato",changeScaleResolutionError:"La risoluzione deve essere positiva",updateScale:"Attualizata la scala {type}, nuovo valore {resolution} {unit}",invalidGeometry:"Poligono non valido",geolocationWaitingTitle:"Attivare la geolocalizzazione?",geolocationWaitingText:"k.Explorer può detettare la posizione per inizializzare la vista geografica.
Perché questo sia possibile, è necessario autorizzare la geolocalizzazione.
Quest'ultimo è esclusivamente per comodità e non influenza l'operatività.
Your choice will be remembered and can be changed at any time.",geolocationErrorPermissionDenied:"Non si ha autorizzato la geolocalizzazione",geolocationErrorPositionUnavailable:"Posizione non disponibile",geolocationErrorTimeout:"Terminato il tempo di attesa per la geolocalizzazione",geolocationErrorUnknown:"Errore imprevisto",needHelpTitle:"How to use",needHelp0Text:"To use this, you need to know various things:",needHelp1Text:"The first",needHelp2Text:"The second",needHelp3Text:"The last",unknownSearchObservation:"Risultato di osservazioni previe",noLogItems:"Il log è vuoto",uploadComplete:"Upload del file {fileName} completato",IDLAlertText:"La selezione attuale incrocia la IDL. per poterlo fare è necessario disegnare un contesto",lastTermAlertText:"Non sono permessi altri token",parenthesisAlertText:"Paretesi sbilanciate",emptyFreeTextSearch:"Ricerca vuota",fuzzyModeOff:"Ricerca libers disattivata",fuzzyModeOn:"Ricerca libera attivata",youHaveGOT:"Winter is coming"},tooltips:{treePane:"Albero",logPane:"Log",resetContext:"Reset context",interruptTask:"Interrompere processo {taskDescription}",dataViewer:"Vedere dati",reportViewer:"Vedere report",noReportTask:"Report non disponibile,\naspettare",noReportObservation:"Report non disponibile,\nnon ci sono osservazioni",noDataflow:"Dataflow non disponible",dataflowViewer:"Vedere data flow (will be...)",provenanceViewer:"Vedere provenance (will be...)",undock:"Sganciare",copyEncodedShapeToClipboard:"Copia il contesto negli appunti",cancelInputRequest:"Cancellare esecuzion",resetInputRequest:"Utilizzare default",submitInputRequest:"Inviare"},errors:{connectionError:"Errore di connessione",searchTimeout:"Tempo di ricerca terminato",uploadError:"Errore durante l'upload del file {fileName}"},langName:"Italiano"},c={en:i,es:r,it:s},l=n("741d"),u=n("7cca");n.d(t,"b",function(){return E});var d=null;function E(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||null===d){o["a"].use(a["a"]);var t="en";l["a"].has(u["P"].COOKIE_LANG)?(t=l["a"].get(u["P"].COOKIE_LANG),console.debug("Locale set from cookie to ".concat(t))):(l["a"].set(u["P"].COOKIE_LANG,t,{expires:30,path:"/",secure:!0}),console.debug("Lang cookie set to ".concat(t))),d=new a["a"]({locale:t,fallbackLocale:"en",messages:c})}return d}t["a"]=function(e){var t=e.app;t.i18n=E()}},fb1c:function(e,t,n){}},[[0,"runtime","vendor"]]]); \ No newline at end of file diff --git a/klab.engine/src/main/resources/static/ui/js/runtime.2e1713a8.js b/klab.engine/src/main/resources/static/ui/js/runtime.2e1713a8.js deleted file mode 100644 index 39481f640d..0000000000 --- a/klab.engine/src/main/resources/static/ui/js/runtime.2e1713a8.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],f=0,s=[];f