dhx-chart 7.3.11 → 7.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
3
 
4
- dhtmlxChart v.7.3.11 GPL
4
+ dhtmlxChart v.7.3.12 GPL
5
5
 
6
6
  This software is covered by GPL license.
7
7
  To use it in non-GPL project, you need obtain Commercial or Enterprise license
@@ -9,7 +9,7 @@ Please contact sales@dhtmlx.com. Usage without proper license is prohibited.
9
9
  (c) XB Software.
10
10
 
11
11
  */
12
- if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dhx=e():t.dhx=e()}(window,function(){return n={},o.m=i=[function(t,o,n){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0});var e=n(77);function i(i){function e(t){var e=t.el.offsetHeight,t=t.el.offsetWidth;i(t,e)}var n=window.ResizeObserver;return n?o.el("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n(function(){return e(t)}).observe(t.el)}}}):o.el("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return e(t)},e(t)}}})}o.el=e.defineElement,o.sv=e.defineSvgElement,o.view=e.defineView,o.create=e.createView,o.inject=e.injectView,o.KEYED_LIST=e.KEYED_LIST,o.disableHelp=function(){e.DEVMODE.mutations=!1,e.DEVMODE.warnings=!1,e.DEVMODE.verbose=!1,e.DEVMODE.UNKEYED_INPUT=!1},o.resizer=i,o.resizeHandler=function(t,e){return o.create({render:function(){return i(e)}}).mount(t)},o.awaitRedraw=function(){return new t(function(t){requestAnimationFrame(function(){t()})})}}).call(this,n(12))},function(t,e,i){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(2),n=(new Date).valueOf();e.uid=function(){return"u"+n++},e.extend=function t(e,i,n){if(void 0===n&&(n=!0),i)for(var o in i){var r=i[o],s=e[o];void 0===r?delete e[o]:!n||"object"!=typeof s||s instanceof Date||s instanceof Array?e[o]=r:t(s,r)}return e},e.copy=function(t,e){var i,n={};for(i in t)e&&i.startsWith("$")||(n[i]=t[i]);return n},e.naturalSort=function(t){return t.sort(function(t,e){return"string"==typeof t?t.localeCompare(e):t-e})},e.findIndex=function(t,e){for(var i=t.length,n=0;n<i;n++)if(e(t[n]))return n;return-1},e.isEqualString=function(t,e){if(t=t.toString(),e=e.toString(),t.length>e.length)return!1;for(var i=0;i<t.length;i++)if(t[i].toLowerCase()!==e[i].toLowerCase())return!1;return!0},e.singleOuterClick=function(e){var i=function(t){e(t)&&document.removeEventListener("click",i)};document.addEventListener("click",i)},e.detectWidgetClick=function(e,i){function t(t){return i(r.locate(t,"data-dhx-widget-id")===e)}return document.addEventListener("click",t),function(){return document.removeEventListener("click",t)}},e.unwrapBox=function(t){return Array.isArray(t)?t[0]:t},e.wrapBox=function(t){return Array.isArray(t)?t:[t]},e.isDefined=function(t){return null!=t},e.range=function(t,e){if(e<t)return[];for(var i=[];t<=e;)i.push(t++);return i},e.isNumeric=function(t){return!isNaN(t-parseFloat(t))},e.downloadFile=function(t,e,i){void 0===i&&(i="text/plain");var n,o,i=new Blob([t],{type:i});window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(i,e):(n=document.createElement("a"),o=URL.createObjectURL(i),n.href=o,n.download=e,document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(o)},0))},e.debounce=function(o,r,s){var a;return function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=s&&!a;clearTimeout(a),a=setTimeout(function(){a=null,s||o.apply(t,e)},r),n&&o.apply(this,e)}},e.compare=function t(e,i){for(var n in e){if(e.hasOwnProperty(n)!==i.hasOwnProperty(n))return!1;switch(typeof e[n]){case"object":if(!t(e[n],i[n]))return!1;break;case"function":if(void 0===i[n]||"compare"!==n&&e[n].toString()!==i[n].toString())return!1;break;default:if(e[n]!==i[n])return!1}}for(var n in i)if(!e.hasOwnProperty(n))return!1;return!0},e.isType=function(t){return((Object.prototype.toString.call(t).match(/^\[object (\S+?)\]$/)||[])[1]||"undefined").toLowerCase()},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.getMaxArrayNymber=function(t){if(t.length){for(var e=-1/0,i=0,n=t.length;i<n;i++)t[i]>e&&(e=t[i]);return e}},e.getMinArrayNymber=function(t){if(t.length){for(var e=1/0,i=0,n=t.length;i<n;i++)t[i]<e&&(e=t[i]);return e}},e.getStringWidth=function(t,e){e=o({font:"normal 14px Roboto",lineHeight:20},e);var i=document.createElement("canvas"),n=i.getContext("2d");e.font&&(n.font=e.font);t=n.measureText(t).width;return r.isIE()||i.remove(),t},e.rgbToHex=function(t){if("#"===t.substr(0,1))return t;t=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t);return"#"+parseInt(t[2],10).toString(16).padStart(2,"0")+parseInt(t[3],10).toString(16).padStart(2,"0")+parseInt(t[4],10).toString(16).padStart(2,"0")}},function(t,e,i){"use strict";var c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function n(t,e,i){for(void 0===e&&(e="data-dhx-id"),void 0===i&&(i="target"),t instanceof Event&&(t=t[i]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector(t)||(null===(e=document.querySelector("[data-dhx-root-id="+t+"]"))||void 0===e?void 0:e.parentElement)||document.body:t||document.body},e.eventHandler=function(s,a,l){var c=Object.keys(a);return function(t){var e=s(t);if(void 0!==e){var i=t.target;t:for(;i;){var n=i.getAttribute&&i.getAttribute("class")||"";if(n.length)for(var o=n.split(" "),r=0;r<c.length;r++)if(o.includes(c[r])){if(!1===a[c[r]](t,e)||t.cancelBubble)return!1;break t}i=i.parentNode}}return l&&l(t),!0}},e.locateNode=n,e.locate=function(t,e){return void 0===e&&(e="data-dhx-id"),(t=n(t,e))?t.getAttribute(e):""},e.locateNodeByClassName=function(t,e){for(t instanceof Event&&(t=t.target);t;){if(e){if(t.classList&&t.classList.contains(e))return t}else if(t.getAttribute&&t.getAttribute("data-dhx-id"))return t;t=t.parentNode}},e.getBox=function(t){var e=t.getBoundingClientRect(),i=document.body,n=window.pageYOffset||i.scrollTop,t=window.pageXOffset||i.scrollLeft;return{top:e.top+n,left:e.left+t,right:i.offsetWidth-e.right,bottom:i.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var o=-1;e.getScrollbarWidth=function(){if(-1<o)return o;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",o=t.offsetWidth-t.clientWidth,document.body.removeChild(t),o};var r=-1;function s(t){t=t.getBoundingClientRect();return{left:t.left+window.pageXOffset,right:t.right+window.pageXOffset,top:t.top+window.pageYOffset,bottom:t.bottom+window.pageYOffset}}function d(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function l(t,e){var i,n,o,r=d(),s=r.rightBorder,a=r.bottomBorder-t.bottom-e.height,l=t.top-e.height;if("bottom"===e.mode?0<=a?i=t.bottom:0<=l&&(i=l):0<=l?i=l:0<=a&&(i=t.bottom),a<0&&l<0){if(e.auto)return u(t,c(c({},e),{mode:"right",auto:!1}));i=l<a?t.bottom:l}return{left:e.centering?(n=t,o=e.width,r=s,a=(o-(n.right-n.left))/2,l=n.left-a,a=n.right+a,0<=l&&a<=r?l:l<0?0:r-o):(s=s-t.left-e.width,e=t.right-e.width,0<=s||!(0<=e)&&s<e?t.left:e),top:i}}function u(t,e){var i,n,o=d(),r=o.rightBorder,s=o.bottomBorder,a=r-t.right-e.width,o=t.left-e.width;if("right"===e.mode?0<=a?n=t.right:0<=o&&(n=o):0<=o?n=o:0<=a&&(n=t.right),o<0&&a<0){if(e.auto)return l(t,c(c({},e),{mode:"bottom",auto:!1}));n=a<o?o:t.right}return{left:n,top:e.centering?(a=t,i=e.height,o=r,n=(i-(a.bottom-a.top))/2,r=a.top-n,n=a.bottom+n,0<=r&&n<=o?r:r<0?0:o-i):(i=t.bottom-e.height,!(0<=(e=s-t.top-e.height))&&(0<i||e<i)?i:t.top)}}function a(t,e){var i=("bottom"===e.mode||"top"===e.mode?l:u)(t,e),t=i.left,i=i.top;return{left:Math.round(t)+"px",top:Math.round(i)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(-1<r)return r;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",r=t.offsetHeight-t.clientHeight,document.body.removeChild(t),r},e.isIE=function(){var t=window.navigator.userAgent;return t.includes("MSIE ")||t.includes("Trident/")},e.isSafari=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Firefox/);return!e&&!i&&t(/Safari/)},e.isFirefox=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Safari/);return!e&&!i&&t(/Firefox/)},e.getRealPosition=s,e.calculatePosition=a,e.fitPosition=function(t,e){return a(s(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var i=document.styleSheets[e],n=("cssRules"in i?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push(r.selectorText+" {\n"+r.style.cssText+"\n}\n")}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,i=t.type,n=t.labelWidth,o=t.label,r=n&&n.toString().startsWith("0"),t="text"!==i&&t.required;return!!(e||t||!(!o||o&&r)||n&&!r)&&{style:(o||n)&&!r&&{width:n,"max-width":"100%"},label:o&&r?null:o}}},function(t,n,e){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var r,s,a=e(0),i=["#2A9D8F","#78586F","#E76F51","#E5A910","#11A3D0","#985F99","#217B70","#BD9391","#9C89B8","#734B5E","#D66BA0","#5C5D8D"],l=["#237396","#2780A8","#3892A3","#4DA3A0","#67BF99"];function c(e){var i={};return function(t){return i[t]||(i[t]=e(t))}}n.getDefaultColor=function(t,e){return void 0===t&&(t=0),(e?l:i)[t]},n.locator=function(e){return e?"string"==typeof e?function(t){return t[e]}:e:function(){return""}},n.log10=function(t){return Math.log(t)/Math.LN10},n.getTextWidth=(r=function(t,e){void 0===e&&(e="");var i=document.createElement("canvas").getContext("2d");return e&&(i.font=e),i.measureText(t).width},s={},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=s,n=0;n<t.length-1;n++)i[t[n]]=i[t[n]]||{},i=i[t[n]];var o=t.length-1;return i[o]||(i[o]=r.apply(void 0,t))});var d=c(function(t){var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,e.fillRect(0,0,2,2),[(e=e.getImageData(1,1,1,1).data)[0],e[1],e[2]]});function u(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}n.getColorShade=function(t,e){return"rgb("+(t=d(t).map(function(t){return Math.floor(t*e+255*(1-e))}))[0]+","+t[1]+","+t[2]+")"},n.getFontStyle=c(function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","dhx_chart");var i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("class",t),e.setAttribute("visibility","hidden"),i.textContent="test",e.appendChild(i),document.body.appendChild(e);i=getComputedStyle(i),i=i.fontSize+" "+i.fontFamily;return document.body.removeChild(e),i}),n.linearGradient=function(t,e){return t=t.stops.map(function(t){return a.sv("stop",{offset:100*t.offset+"%","stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("linearGradient",{id:e,gradientTransform:"rotate(90)"},t)},n.getRadialGradient=function(t,e,i){return e=e.map(function(t){return a.sv("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("radialGradient",o({id:i,cx:0,cy:0,gradientUnits:"userSpaceOnUse"},t),e)},n.euclideanDistance=function(t,e,i,n){return Math.sqrt((t-i)*(t-i)+(e-n)*(e-n))},n.roundToTwoNumAfterPoint=function(t){return Math.round(100*(100*t+Number.EPSILON))/100},n.verticalCenteredText=function(t){return a.sv("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},n.verticalTopText=function(t){return a.sv("tspan",{dy:"-0.5ex"},t)},n.verticalBottomText=function(t){return a.sv("tspan",{dy:"1.5ex"},t)},n.calcPointRef=function(t,e){return t+"_"+e},n.getClassesForRotateScale=function(t,e){var i="",n=[];switch("left"===t||"top"===t?n.push("start-text","end-text"):"right"!==t&&"bottom"!==t||n.push("end-text","start-text"),t){case"left":case"right":0===e?i=n[1]:0<e?180===e?i=n[0]:180<e?e<270?i=n[0]:270<e&&(i=n[1]):e<180&&(90<e?i=n[0]:e<90&&(i=n[1])):e<0&&(-180===e?i=n[0]:e<-180?-270<e?i=n[0]:e<-270&&(i=n[1]):-180<e&&(e<-90?i=n[0]:-90<e&&(i=n[1])));break;case"top":case"bottom":0<e?180<e?i=n[0]:e<180&&(i=n[1]):e<0&&(-180<e?i=n[0]:e<-180&&(i=n[1]))}return i},n.getScales=function(t){var e,i=[];for(e in t){var n=t[e];(n.min||n.max||n.maxTicks||n.text||n.value)&&i.push(e)}return i},n.getSizesSVGText=function(t,e){var i=[];return e=o({font:"normal 14px Roboto",lineHeight:18},e),i.push(n.getTextWidth(t,e.font)),i.push(e.lineHeight),i},n.superposition=u,n.checkPositions=function(t,e,i,n,o){u(t,e)&&(e=o.right?e.y-t.y+t.height:e.y-e.height-t.y,e=o.text1.y+e,Math.abs(e)+o.dy>n&&(e=0<e?n+o.dy:-n+o.dy,o.changeSector=!o.changeSector),n=Math.sqrt(Math.pow(i,2)-Math.pow((e-o.dy)*i/n,2)),n=o.right?n:-n,o.changeSector&&(n*=-1,o.line*=-1,t.class=o.right?"pie-value end-text":"pie-value start-text"),o.text1.x=n,o.text1.y=e,o.text2.x=n,o.text2.y=e+16)}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.GridEvents||(e.GridEvents={})).scroll="scroll",n.expand="expand",n.filterChange="filterChange",n.beforeResizeStart="beforeResizeStart",n.resize="resize",n.afterResizeEnd="afterResizeEnd",n.cellClick="cellClick",n.cellRightClick="cellRightClick",n.cellMouseOver="cellMouseOver",n.cellMouseDown="cellMouseDown",n.cellDblClick="cellDblClick",n.headerCellClick="headerCellClick",n.footerCellClick="footerCellClick",n.headerCellMouseOver="headerCellMouseOver",n.footerCellMouseOver="footerCellMouseOver",n.headerCellMouseDown="headerCellMouseDown",n.footerCellMouseDown="footerCellMouseDown",n.headerCellDblClick="headerCellDblClick",n.footerCellDblClick="footerCellDblClick",n.headerCellRightClick="headerCellRightClick",n.footerCellRightClick="footerCellRightClick",n.beforeEditStart="beforeEditStart",n.afterEditStart="afterEditStart",n.beforeEditEnd="beforeEditEnd",n.afterEditEnd="afterEditEnd",n.beforeKeyDown="beforeKeyDown",n.afterKeyDown="afterKeyDown",n.beforeColumnHide="beforeColumnHide",n.afterColumnHide="afterColumnHide",n.beforeColumnShow="beforeColumnShow",n.afterColumnShow="afterColumnShow",n.beforeRowHide="beforeRowHide",n.afterRowHide="afterRowHide",n.beforeRowShow="beforeRowShow",n.afterRowShow="afterRowShow",n.beforeRowDrag="beforeRowDrag",n.dragRowStart="dragRowStart",n.dragRowOut="dragRowOut",n.dragRowIn="dragRowIn",n.canRowDrop="canRowDrop",n.cancelRowDrop="cancelRowDrop",n.beforeRowDrop="beforeRowDrop",n.afterRowDrop="afterRowDrop",n.afterRowDrag="afterRowDrag",n.beforeColumnDrag="beforeColumnDrag",n.dragColumnStart="dragColumnStart",n.dragColumnOut="dragColumnOut",n.dragColumnIn="dragColumnIn",n.canColumnDrop="canColumnDrop",n.cancelColumnDrop="cancelColumnDrop",n.beforeColumnDrop="beforeColumnDrop",n.afterColumnDrop="afterColumnDrop",n.afterColumnDrag="afterColumnDrag",n.beforeRowResize="beforeRowResize",n.afterRowResize="afterRowResize",n.beforeSort="beforeSort",n.afterSort="afterSort",(n=e.GridSystemEvents||(e.GridSystemEvents={})).cellTouchMove="cellTouchMove",n.cellTouchEnd="cellTouchEnd",n.headerCellTouchMove="headerCellTouchMove",n.headerCellTouchEnd="headerCellTouchEnd",(e=e.GridSelectionEvents||(e.GridSelectionEvents={})).beforeUnSelect="beforeUnSelect",e.afterUnSelect="afterUnSelect",e.beforeSelect="beforeSelect",e.afterSelect="afterSelect"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.on=function(t,e,i){t=t.toLowerCase();this.events[t]=this.events[t]||[],this.events[t].push({callback:e,context:i||this.context})},o.prototype.detach=function(t,e){var t=t.toLowerCase(),i=this.events[t];if(e&&i&&i.length)for(var n=i.length-1;0<=n;n--)i[n].context===e&&i.splice(n,1);else this.events[t]=[]},o.prototype.fire=function(t,e){void 0===e&&(e=[]);t=t.toLowerCase();return!this.events[t]||!this.events[t].map(function(t){return t.callback.apply(t.context,e)}).includes(!1)},o.prototype.clear=function(){this.events={}},o);function o(t){this.events={},this.context=t||this}e.EventSystem=n,e.EventsMixin=function(t){var e=new n(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(9)),n(e(35)),n(e(83)),n(e(84)),n(e(13)),n(e(122)),n(e(10)),n(e(38)),n(e(37)),n(e(123)),n(e(36)),n(e(23))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(2),i=(r.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=o.toNode(t),this._container.tagName?this._view.mount(this._container):this._container.attach&&this._container.attach(this))},r.prototype.unmount=function(){var t=this.getRootView();t&&t.node&&(t.unmount(),this._view=null)},r.prototype.getRootView=function(){return this._view},r.prototype.getRootNode=function(){return this._view&&this._view.node&&this._view.node.el},r.prototype.paint=function(){this._view&&(this._view.node||this._container)&&(this._doNotRepaint=!1,this._view.redraw())},r);function r(t,e){this.config=e||{},this._uid=this.config.rootId||n.uid()}e.View=i,e.toViewLike=function(e){return{getRootView:function(){return e},paint:function(){return e.node&&e.redraw()},mount:function(t){return e.mount(t)}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),n=i(2);e.transpose=function(t,e){for(var i=[],n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.length;r++){i[r]=i[r]||[];var s=e?e(o[r]):o[r];i[r].push(s)}return i},e.getStyleByClass=function(t,e,i,n){return e=e.querySelector("."+i),i=e,i="string"==typeof(t='<div class="'+t+'"></div>')?(i.insertAdjacentHTML("beforeend",t),i.lastChild):(i.appendChild(t),t),t={color:"rgb(0, 0, 0)"===(t=window.getComputedStyle(i)).color?n.color:o.rgbToHex(t.color),background:"rgba(0, 0, 0, 0)"===t.backgroundColor?n.background:o.rgbToHex(t.backgroundColor),fontSize:parseFloat(t.fontSize)},e.removeChild(i),t.color===n.color&&t.background===n.background&&t.fontSize===n.fontSize?null:t},e.removeHTMLTags=function(t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t?"":(""+(null==t?"":t)).replace(/<[^>]*>/g,"").replace(/["]/g,"&quot;").trim()},e.isCssSupport=function(e,i){try{return CSS.supports(e,i)}catch(t){var n=document.createElement("div");return n.style[e]=i,n.style[e]===i}},e.isRowEmpty=function(i){if(i)return Object.keys(i).reduce(function(t,e){return"id"!==e&&!e.startsWith("$")&&t&&void 0!==i[e]&&""!==i[e]?void 0:t},!0)},e.isSortable=function(t,e){return!1!==e.sortable&&t.sortable||e.sortable},e.isAutoWidth=function(e,t){if(t)return!1!==t.autoWidth&&e.autoWidth||t.autoWidth;var i=!1;return e.columns.map(function(t){(!1!==t.autoWidth&&e.autoWidth||t.autoWidth)&&(i=!0)}),i},e.isTooltip=function(t,e){return!1!==e.tooltip&&t.tooltip||e.tooltip},e.isHtmlEnable=function(t,e){return!1!==e.htmlEnable&&t.htmlEnable||e.htmlEnable},e.getTotalWidth=function(t){return t.reduce(function(t,e){return t+(e.$width||0)},0)},e.getTotalHeight=function(t){return t.reduce(function(t,e){return t+(e.$height||0)},0)},e.scrollFixedColsAndRows=function(t){var e=n.locateNode(t,"data-dhx-widget-id").querySelector(".dhx_grid-body"),i=t.deltaY,i=t.shiftKey?[i,0]:[0,i];null!=e&&e.scrollBy.apply(e,i)}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.TreeFilterType||(e.TreeFilterType={})).all="all",n.level="level",n.leafs="leafs",(n=e.DataEvents||(e.DataEvents={})).afterAdd="afteradd",n.beforeAdd="beforeadd",n.removeAll="removeall",n.beforeRemove="beforeremove",n.afterRemove="afterremove",n.change="change",n.load="load",n.loadError="loaderror",n.beforeLazyLoad="beforelazyload",n.afterLazyLoad="afterlazyload",n.dataRequest="dataRequest",(n=e.DragEvents||(e.DragEvents={})).beforeDrag="beforeDrag",n.dragStart="dragStart",n.dragOut="dragOut",n.dragIn="dragIn",n.canDrop="canDrop",n.cancelDrop="cancelDrop",n.beforeDrop="beforeDrop",n.afterDrop="afterDrop",n.afterDrag="afterDrag",(e=e.DataDriver||(e.DataDriver={})).json="json",e.csv="csv",e.xml="xml"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(13),o=i(36);e.isEqualObj=function(t,e){for(var i in t)if(t[i]!==e[i]||Array.isArray(t[i]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var n=[],o=[];for(t.replace(/(\d+)|(\D+)/g,function(t,e,i){n.push([e||1/0,i||""])}),e.replace(/(\d+)|(\D+)/g,function(t,e,i){o.push([e||1/0,i||""])});n.length&&o.length;){var i=n.shift(),r=o.shift(),r=i[0]-r[0]||i[1].localeCompare(r[1]);if(r)return r}return n.length-o.length}return t-e},e.findByConf=function(t,e){if("function"==typeof e){if(e.call(this,t))return t}else if(e.by&&e.match&&t[e.by]===e.match)return t},e.isDebug=function(){var t=window.dhx;if(void 0!==t)return void 0!==t.debug&&t.debug},e.dhxWarning=function(t){console.warn(t)},e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"==e?new n.DataProxy(t):"object"==e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,e=e&&e.dataDrivers||o.dataDrivers;if(e[t])return new e[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(e)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var i,n={};for(i in t)i.startsWith("$")||e&&e[i]||(n[i]=t[i]);return n},e.isTreeCollection=function(t){return Boolean(t.getRoot)},e.hasJsonOrArrayStructure=function(t){if("object"==typeof t)return!0;if("string"!=typeof t)return!1;try{var e=JSON.parse(t);return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}catch(t){return!1}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var v=i(1),O=i(8),M=i(14);function l(t,e){t[e]&&("string"==typeof t[e]?t[e]=[{text:""+t[e]}]:t[e]=t[e].map(function(t){return"string"==typeof t&&(t={text:t}),t}))}e.normalizeColumns=function(t,e){var i=t.columns,n=t.htmlEnable;void 0===e&&(e=!1);for(var o=0,r=i;o<r.length;o++){var s=r[o];s.$htmlEnable=!(!s.htmlEnable&&!n),s.$cellCss=s.$cellCss||{},l(s,"header"),l(s,"footer"),s.header.reduce(function(t,e){return t||!!e.content},!1)&&(s.$uniqueData=[]),s.minWidth&&s.minWidth<20&&(s.minWidth=20),s.maxWidth&&s.maxWidth<20&&(s.maxWidth=20);var a=s.minWidth||100;s.width&&(a=(a=s.maxWidth&&s.minWidth?s.width>=s.minWidth&&s.width<=s.maxWidth?s.width:s.width>=s.maxWidth?s.maxWidth:s.minWidth:s.maxWidth?s.width<=s.maxWidth?s.width:100<s.maxWidth?s.maxWidth:100:!s.minWidth||s.width>=s.minWidth?s.width:s.minWidth)<20?20:a),s.$width=s.$width&&!e?s.$width:a,s.$width>s.maxWidth&&(s.$width=s.maxWidth),s.$width<s.minWidth&&(s.$width=s.minWidth)}},e.countColumns=function(t,e){var n=0,o=0,r=0,s=!1,i=0,a=!1;return e.forEach(function(t){if(n=Math.max(n,t.header.length),r+=t.$width,t.footer&&(o=Math.max(o,t.footer.length),a=a||!0),!s)for(var e=0,i=t.header;e<i.length;e++)if(i[e].colspan)return void(s=!0)}),e.forEach(function(t){if(t.header.length<n)for(var e=0;e<n;e++)t.header[e]=t.header[e]||{text:""};if(a&&(t.footer=t.footer||[]),t.footer&&t.footer.length<o)for(e=0;e<o;e++)t.footer[e]=t.footer[e]||{text:""};t.header=t.header.map(function(t){return"object"!=typeof t&&(t={text:t}),t.css=t.css||"",t.text||t.css.includes("dhx_cell-empty")||(t.css+=" dhx_cell-empty"),t}),""===t.header[0].text&&i++}),t.$totalWidth=r,t.$headerLevel=n,t.$footerLevel=o,t.$colspans=s,t.$footer=a,i},e.calculatePositions=function(t,e,i,n,o){for(var r=n.columns||[],s=r.length,a=o||[],l=a.length,o=null!==(c=n.leftSplit)&&void 0!==c?c:0,c=null!==(c=n.topSplit)&&void 0!==c?c:0,d=0,u=i.left,h=n.$totalWidth/s,f=0;f<s;f++){if(!(0<(u-=r[f].$width)+h/2))break;d++}for(var p=0,g=i.top,_=n.$totalHeight/l,f=0;f<l;f++){if(!(0<(g-=(D=a[f]).$height)+_/2))break;p++}for(var v=0,m=0,y=-1/0,x=1/0,b=0;b<s;b++){var w=r[b];d<=b&&v<t&&!w.hidden&&(v+=w.$width,m++),w.$width>y&&(y=w.$width),w.$width<x&&(x=w.$width)}for(var C=0,E=0,S=-1/0,k=1/0,b=0;b<l;b++){var D=a[b];p<=b&&C<e&&!D.hidden&&(C+=D.$height,E++),D.$height>S&&(S=D.$height),D.$height<k&&(k=D.$height)}return k=k<n.rowHeight?k:n.rowHeight,i=Math.round(y/x),n=Math.round(S/k),{xStart:o<=d-i?d-i:o,xEnd:d+m+i,yStart:c<=p-n?p-n:c,yEnd:p+E+n}},e.getUnique=function(t,e,i){var n=t.map(function(t){return t[e]});return i&&n.forEach(function(t,e){null!=t&&t.includes(", ")&&(t.split(", ").forEach(function(t){return n.push(t)}),delete n[e])}),n.filter(function(t,e,i){return i.indexOf(t)===e&&v.isDefined(t)}).sort()},e.getMaxRowHeight=function(t,e,i){void 0===i&&(i={font:"20px Roboto",lineHeight:20});var n=document.createElement("canvas"),o=n.getContext("2d",{alpha:!1});o.font=i.font;for(var r={},s=e.length,a=0;a<s;a++)e[a].template?r[e[a].id]={width:e[a].$width||0,htmlEnable:e[a].$htmlEnable,template:e[a].template,cols:e[a]}:r[e[a].id]={width:e[a].$width||0,htmlEnable:e[a].$htmlEnable};for(var l=[],c=[],d=0,u=Object.entries(t);d<u.length;d++){var h,f=u[d],p=f[0],g=f[1];!r[p]||"id"===p||"height"===p||p.startsWith("$")||"string"!=typeof g&&"number"!=typeof g||(h="",h=null!==(f=r[p])&&void 0!==f&&f.template?(f=r[p].template(g,t,r[p].cols),r[p].htmlEnable?O.removeHTMLTags(f):f):"string"==typeof g?r[p].htmlEnable?O.removeHTMLTags(g):g:g.toString(),l.push(h.split("\n").length),c.push(Math.round(o.measureText(h).width/(null===(p=r[p])||void 0===p?void 0:p.width))))}var _=Math.max(v.getMaxArrayNymber(l),v.getMaxArrayNymber(c));return n.remove(),_*i.lineHeight},e.getCalculatedRowHeight=function(t,e){void 0===e&&(e={rowHeight:40,padding:8});var i=e.rowHeight<40?t:t+2*e.padding;return t<e.rowHeight?e.rowHeight:i},e.getTreeCellWidthOffset=function(t){return 20+20*t.$level-(t.$items?20:0)},e.getMaxColsWidth=function(t,e,i,n){if(void 0===i&&(i={font:"normal 14.4px Arial"}),t.length&&e.length){var o=document.createElement("canvas"),r=o.getContext("2d",{alpha:!1});r.font=i.font;for(var s={},a=e.length,l=0;l<a;l++){var c=e[l],d=c.template,u=c.$htmlEnable,h=c.format,f=c.id,p=c.type;s[f]=d&&"data"===n?{width:20,htmlEnable:u,template:d,cols:c,type:p}:{width:20,htmlEnable:u,format:"date"===p?h||"%M %d %Y":h,type:p}}for(var g=t.length,l=0;l<g;l++)for(var _=0,v=Object.entries(t[l]);_<v.length;_++){var m,y,x=v[_],b=x[0],w=x[1],C=s[b];C&&"id"!==b&&"height"!==b&&!b.startsWith("$")&&("string"==typeof w||"number"==typeof w||w instanceof Date)&&(d=C.template,m=C.cols,h=C.format,p=C.type,y=C.htmlEnable,x=C.width,C=void 0,C="function"==typeof d?(m=d(w,t[l],m),y?O.removeHTMLTags(m):m):y?O.removeHTMLTags(w):w.toString(),(y=h&&"date"===p&&new Date(C))&&(C=M.getFormattedDate(h,y)),x<(C=r.measureText(C).width)&&(s[b].width=C))}o.remove();for(var E={},S=0,k=Object.entries(s);S<k.length;S++){var D=k[S],b=D[0],w=D[1];E[b]=Math.ceil(w.width)}return E}},e.toFormat=function(s,t,a){if("boolean"==typeof s)return s;if(!s&&"number"!=typeof s)return s;switch(t){case"number":case"percent":return a=a||"#",v.isDefined(s)&&!isNaN(Number(s))?function(t){s=s.toString();var e,i,n=Math.trunc(Number(s)),o=a.replace(/#+/g,"#").split("#").filter(function(t){return t}),r=a.match(/0/g)&&a.match(/0/g).length;s="percent"===t?(100*Number(s)).toString():s,r&&(i=s.split(".")[1]||"0",e=o.find(function(t){return t.includes("0")}).replace(/0+/g,""),i=Number("0."+i).toFixed(r),1<=Number(i)&&n++,i=i.toString().split(".")[1].padEnd(r,"0"));var n=(s<0&&0===Math.abs(n)?"-":"")+n,o=o.find(function(t){return!t.includes("0")}),n=o?n.replace(/(\d)(?=(\d{3})+(\D|$))/g,"$1"+o):n;return n+=(e||"")+(i||""),"percent"===t?n+"%":n}(t):s;case"date":return a=a||"%M %d %Y","string"==typeof s?s=M.getFormattedDate(a,M.stringToDate(s,a)):"object"==typeof s&&(s=M.getFormattedDate(a,s)),s;default:return s}}},function(t,e,i){(function(o,r){!function(){o="undefined"!=typeof window?window:this;var e=1,i={},n=!1;function d(t){o.setImmediate?r(t):o.importScripts?setTimeout(t):(i[++e]=t,o.postMessage(e,"*"))}function u(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,i,n=this,r=0,s=0,o=[];(n.promise=n).resolve=function(t){return e=n.fn,i=n.er,r||(s=t,r=1,d(c)),n},n.reject=function(t){return e=n.fn,i=n.er,r||(s=t,r=2,d(c)),n},n._d=1,n.then=function(t,e){if(1!=this._d)throw TypeError();var i=new u;return i.fn=t,i.er=e,3==r?i.resolve(s):4==r?i.reject(s):o.push(i),i},n.catch=function(t){return n.then(null,t)};var a=function(t){r=t||4,o.map(function(t){3==r&&t.resolve(s)||t.reject(s)})};try{"function"==typeof t&&t(n.resolve,n.reject)}catch(t){n.reject(t)}return n;function l(t,e,i,n){if(2==r)return n();if("object"!=typeof s&&"function"!=typeof s||"function"!=typeof t)n();else try{var o=0;t.call(s,function(t){o++||(s=t,e())},function(t){o++||(s=t,i())})}catch(t){s=t,i()}}function c(){var t;try{t=s&&s.then}catch(t){return s=t,r=2,c()}l(t,function(){r=1,c()},function(){r=2,c()},function(){try{1==r&&"function"==typeof e?s=e(s):2==r&&"function"==typeof i&&(s=i(s),r=1)}catch(t){return s=t,a()}s==n?(s=TypeError(),a()):l(t,function(){a(3)},a,function(){a(1==r&&3)})})}}o.setImmediate||o.addEventListener("message",function(t){if(t.source==o)if(n)d(i[t.data]);else{n=!0;try{i[t.data]()}catch(t){}delete i[t.data],n=!1}}),u.resolve=function(e){if(1!=this._d)throw TypeError();return e instanceof u?e:new u(function(t){t(e)})},u.reject=function(i){if(1!=this._d)throw TypeError();return new u(function(t,e){e(i)})},u.all=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return u.reject(TypeError());var o=new u;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){return n[e]=t,i(),t},i)}))}(),o},u.race=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return u.reject(TypeError());if(0==n.length)return new u;var o=new u;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){i(null,t)},i)}))}(),o},u._d=1,t.exports=u}()}).call(this,i(22),i(74).setImmediate)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(23),i=(o.prototype.updateUrl=function(t,e){for(var i in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[i]=e[i],this.url+=i+"="+encodeURIComponent(e[i])+"&";this.url=this.url.slice(0,-1)},o.prototype.load=function(){return n.ajax.get(this.url,null,{responseType:"text"})},o.prototype.save=function(t,e){switch(e){case"delete":return n.ajax.delete(this.url,t);case"update":return n.ajax.put(this.url,t);case"insert":default:return n.ajax.post(this.url,t)}},o);function o(t,e){this.url=this._url=t,this.config=e}e.DataProxy=i},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e(1),o=e(1);n.locale={monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Monday"],cancel:"Cancel"};var v,r={"%d":function(t){t=t.getDate();return t<10?"0"+t:t},"%j":function(t){return t.getDate()},"%l":function(t){return n.locale.days[t.getDay()]},"%D":function(t){return n.locale.daysShort[t.getDay()]},"%m":function(t){t=t.getMonth()+1;return t<10?"0"+t:t},"%n":function(t){return t.getMonth()+1},"%M":function(t){return n.locale.monthsShort[t.getMonth()]},"%F":function(t){return n.locale.months[t.getMonth()]},"%y":function(t){return t.getFullYear().toString().slice(2)},"%Y":function(t){return t.getFullYear()},"%h":function(t){t=t.getHours()%12;return 0===t&&(t=12),t<10?"0"+t:t},"%g":function(t){t=t.getHours()%12;return 0===t&&(t=12),t},"%H":function(t){t=t.getHours();return t<10?"0"+t:t},"%G":function(t){return t.getHours()},"%i":function(t){t=t.getMinutes();return t<10?"0"+t:t},"%s":function(t){t=t.getSeconds();return t<10?"0"+t:t},"%a":function(t){return 12<=t.getHours()?"pm":"am"},"%A":function(t){return 12<=t.getHours()?"PM":"AM"},"%u":function(t){return t.getMilliseconds()}},m={"%d":function(t,e){/(^([0-9][0-9])$)/i.test(e)?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e){/(^([0-9]?[0-9])$)/i.test(e)?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e){var i=/(^([0-9][0-9])$)/i.test(e);i?t.setMonth(Number(e)-1):t.setMonth(Number(0)),i&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e){var i=/(^([0-9]?[0-9])$)/i.test(e);i?t.setMonth(Number(e)-1):t.setMonth(Number(0)),i&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,e){var i=o.findIndex(n.locale.monthsShort,function(t){return t===e});-1===i?t.setMonth(0):t.setMonth(i),-1!==i&&t.getMonth()!==i&&t.setMonth(i)},"%F":function(t,e){var i=o.findIndex(n.locale.months,function(t){return t===e});-1===i?t.setMonth(0):t.setMonth(i),-1!==i&&t.getMonth()!==i&&t.setMonth(i)},"%y":function(t,e){/(^([0-9][0-9])$)/i.test(e)?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e){/(^([0-9][0-9][0-9][0-9])$)/i.test(e)?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,i){/(^0[1-9]|1[0-2]$)/i.test(e)&&"pm"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,i){/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e)&&"pm"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e){/(^[0-2][0-9]$)/i.test(e)?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e){/(^[1-9][0-9]?$)/i.test(e)?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e){/(^([0-5][0-9])$)/i.test(e)?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e){/(^([0-5][0-9])$)/i.test(e)?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e){/(^([0-9][0-9][0-9])$)/i.test(e)?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e){"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e){"PM"===e&&t.setHours(t.getHours()+12)}};function y(t){for(var e=[],i="",n=0;n<t.length;n++)"%"===t[n]?(0<i.length&&(e.push({type:v.separator,value:i}),i=""),e.push({type:v.datePart,value:t[n]+t[n+1]}),n++):i+=t[n];return 0<i.length&&e.push({type:v.separator,value:i}),e}function s(t,e,i){if("string"==typeof t){for(var n,o=[],r=0,s=null,a=0,l=y(e);a<l.length;a++){var c=l[a];if(c.type===v.separator){var d=t.indexOf(c.value,r);if(-1===d){if(i)return!1;throw new Error("Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html")}s&&(o.push({formatter:s,value:t.slice(r,d)}),s=null),r=d+c.value.length}else c.type===v.datePart&&(s=c.value)}"%A"===s||"%a"===s?o.unshift({formatter:s,value:t.slice(r)}):s&&o.push({formatter:s,value:t.slice(r)}),o.reverse();for(var u=0,h=o;u<h.length;u++)"%A"!==(_=h[u]).formatter&&"%a"!==_.formatter||(n=_.value);for(var f=new Date(0),p=0,g=o;p<g.length;p++){var _=g[p];m[_.formatter]&&m[_.formatter](f,_.value,n)}return!!i||f}}(e=v=v||{})[e.separator=0]="separator",e[e.datePart=1]="datePart",n.getFormattedDate=function(t,i){return y(t).reduce(function(t,e){return e.type===v.separator?t+e.value:r[e.value]?t+r[e.value](i):t},"")},n.stringToDate=s;a.copy=function(t){return new Date(t)},a.fromYear=function(t){return new Date(t,0,1)},a.fromYearAndMonth=function(t,e){return new Date(t,e,1)},a.weekStart=function(t,e){e=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)},a.monthStart=function(t){return new Date(t.getFullYear(),t.getMonth(),1)},a.yearStart=function(t){return new Date(t.getFullYear(),0,1)},a.dayStart=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},a.addDay=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},a.addMonth=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth()+e)},a.addYear=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear()+e,t.getMonth())},a.withHoursAndMinutes=function(t,e,i,n){return void 0===n||!n&&12===e||n&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,i):n&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,i):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,i)},a.setMonth=function(t,e){t.setMonth(e)},a.setYear=function(t,e){t.setFullYear(e)},a.mergeHoursAndMinutes=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes())},a.isWeekEnd=function(t){return 0===t.getDay()||6===t.getDay()},a.getTwelweYears=function(t){t=t.getFullYear(),t-=t%12;return i.range(t,11+t)},a.getDayOrdinal=function(t){return(t.valueOf()-a.yearStart(t).valueOf())/864e5},a.getWeekNumber=function(t){6!==t.getDay()&&(t=a.addDay(t,6-t.getDay()));var e=a.getDayOrdinal(t);return e-t.getDay()<0&&(t=new Date(t.getFullYear()-1,12,0),e=a.getDayOrdinal(t)),Math.floor((e-t.getDay()+10)/7)},a.isSameDay=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},a.toDateObject=function(t,e){return"string"==typeof t?s(t,e):new Date(t)},a.nullTimestampDate=new Date(0),e=a;function a(){}n.DateHelper=e},function(t,e,i){"use strict";var D=this&&this.__assign||function(){return(D=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var O=i(1),M=i(0),T=i(19),v=i(8),n=i(4),o=i(87),c=i(2),m=i(11);function r(t,e,i,n,o){e=c.locateNodeByClassName(o.target,"dhx_grid-fixed-cols-wrap")?0:e;var r,s,a=c.locateNodeByClassName(o.target,"dhx_grid-cell"),l=c.locateNodeByClassName(o.target,"dhx_span-cell");(a||l)&&n&&(e=a?a.parentNode:l,r=(a||l).getAttribute("data-dhx-col-id"),l=i.columns.filter(function(t){return!t.hidden}).find(function(t){return t.id===r}),s=e.getAttribute("data-dhx-id"),e=i.data.find(function(t){return t.id.toString()===s}),(n.toLocaleLowerCase().includes("touch")?i._events:i.events).fire(n,[e,l,o]))}function P(t,e,i){return{onclick:[r,t,e,i,n.GridEvents.cellClick],onmouseover:[r,t,e,i,n.GridEvents.cellMouseOver],onmousedown:[r,t,e,i,n.GridEvents.cellMouseDown],ondblclick:[r,t,e,i,n.GridEvents.cellDblClick],oncontextmenu:[r,t,e,i,n.GridEvents.cellRightClick],ontouchstart:[r,t,e,i,n.GridEvents.cellMouseDown],ontouchmove:[r,t,e,i,n.GridSystemEvents.cellTouchMove],ontouchend:[r,t,e,i,n.GridSystemEvents.cellTouchEnd]}}function y(t,e,i,n){var o=n.$editable&&n.$editable.row===e.id&&n.$editable.col===i.id,r="",s=i.align?" dhx_align-"+i.align:"dhx_align-left";n.dragMode&&"row"===n.dragItem&&(r+=(e.$drophere&&!o?" dhx_grid-cell--drophere":"")+(e.$dragtarget&&!o?" dhx_grid-cell--dragtarget":"")+(o?"":" dhx_grid-cell--drag"));var a=m.getTreeCellWidthOffset(e);return M.el(".dhx_grid-cell",D({class:"dhx_tree-cell "+(i.$cellCss[e.id]||"")+" "+(e.$items?"dhx_grid-expand-cell":"")+" "+(o?"dhx_tree-editing-cell":"")+" "+r+s,style:{width:i.$width,height:e.$height,padding:e.$items?0:"0 0 0 "+a+"px"},"data-dhx-col-id":i.id},{role:"gridcell","aria-colindex":1}),[e.$items?M.el(".dhx_grid-expand-cell-icon",D(D({class:e.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":e.id},{role:"button","aria-label":e.$opened?"Collapse group":"Expand group"}),{style:{padding:e.$level?"0 0 0 "+(4+a)+"px":"0 0 0 4px"}})):null,M.el(".dhx_tree-cell",{class:s+(n.autoHeight?" dhx_tree-cell_auto-height":"")},[t])])}function L(t,e,i){return o.getEditor(t,e,i)}e.getHandlers=P,e.getTreeCell=y,e.getCells=function(f){if(!f.data||!f.columns)return[];var p=f.$positions,n=f.data?f.data.slice(p.yStart,p.yEnd):[],o=f.columns.slice(p.xStart,p.xEnd),g=f.selection.getCell(),_=!0;return n.map(function(h,t){var e=n.length-1===t,i="";return f.rowCss&&(i=f.rowCss(h)),h.$css&&(i+=h.$css),M.el(".dhx_grid-row",D({style:{height:e?h.$height+1:h.$height},"data-dhx-id":h.id,class:i,_key:h.id,_flags:M.KEYED_LIST},{role:"row","aria-rowindex":p.yStart+t+1}),h.$customRender?[h.$customRender(h,f)]:o.map(function(i,t){var e;if(!i.hidden){var n=h[i.id];(i.editable||f.editable&&!1!==i.editable)&&("select"===i.editorType||"combobox"===i.editorType||"multiselect"===i.editorType)&&i.options&&(n=(n="string"==typeof n&&"multiselect"===i.editorType?n.split(",").map(function(t){return t.trim()}):[null==n?void 0:n.toString()]).map(function(e){var t;return null!==(t=null===(t=i.options.find(function(t){return t.id&&t.id.toString()===e}))||void 0===t?void 0:t.value)&&void 0!==t?t:e}).join(", "));var o=m.toFormat(n,i.type,i.format),r=function(t,e,i,n){return D({role:"gridcell","aria-colindex":e,"aria-readonly":n?"false":"true"},(e=t,n=h,t={tabindex:-1},g?g.row.id===n.id&&g.column.id===e.id&&(t.tabindex=0):_&&(t.tabindex=0,t.onfocus=function(t){var e;f.selection&&!g&&(e=t.target.parentNode.getAttribute("data-dhx-id"),(t=t.target.getAttribute("data-dhx-col-id"))&&e&&(f.selection.setCell(e,t),g=f.selection.getCell()))}),_=!1,t))},s=i.template?i.template(o,h,i):"boolean"!=typeof(e=o)&&"boolean"!==i.type||"string"==typeof e?e||0===e?e:"":""+Boolean(e);"string"==typeof s&&(s=v.isHtmlEnable(f,i)?M.el("div.dhx_grid-cell__content",D({".innerHTML":s},{role:"button","aria-label":"Edit content"})):s);var a=((i.$cellCss&&i.$cellCss[h.id]||"")+" dhx_"+i.type+"-cell").replace(/\s+/g," "),l=i.$width,c=f.$editable&&f.$editable.row===h.id&&f.$editable.col===i.id,d=f.leftSplit,u=f.columns;return((c||"boolean"===i.type&&(f.editable&&(null===(n=i.editable)||void 0===n||n)||!f.editable&&i.editable))&&(s=L(h,i,f).toHTML(),a+=" dhx_grid-cell__editable",d===u.indexOf(i)+1&&--l),"tree"===f.type&&f.firstColId===i.id)?y(s,h,i,f):(f.dragMode&&"row"===f.dragItem&&(a+=(h.$drophere&&!c?" dhx_grid-cell--drophere":"")+(h.$dragtarget&&!c?" dhx_grid-cell--dragtarget":"")+(c?"":" dhx_grid-cell--drag")),i.align&&(a+=" dhx_align-"+i.align),v.isHtmlEnable(f,i)&&(a+=" dhx_grid-cell__content_html-enable"),f.autoHeight&&(a+=" dhx_grid-cell__content_auto-height"),M.el(".dhx_grid-cell",D({class:a,style:{width:l,height:h.$height+"px"},_key:i.id,"data-dhx-col-id":i.id},r(i,p.xStart+t+1,0,f.editable)),[s]))}}))})},e.getSpans=function(y,x){var b,w=[],C=y.$positions,E=y.columns,S=y.data,t=y.spans;if(!E.length||!t)return null;for(var k=t.filter(function(t){return null===(t=t.$renderFrom)||void 0===t?void 0:t.includes(y.$renderFrom)}).sort(function(t,e){return"string"==typeof t.row&&"string"==typeof e.row?t.row.localeCompare(e.row):t.row-e.row}),e=0;e<k.length;e++)!function(t){var e=k[t].row,i=k[t].column,n=k[t].rowspan,o=k[t].colspan,r=k[t].css,s=k[t].$markCss;if(1===n)return;var a=O.findIndex(E,function(t){return""+t.id==""+i}),l=O.findIndex(S,function(t){return""+t.id==""+e});if(a<0||l<0)return;var c=E[a],d=S[l];if(c.hidden)return;var u=k[t].text||(void 0===d[i]?"":d[i]);u="string"==typeof(u=(c.template||function(t,e,i){return t||0===t?t:""})(u,d,c))?M.el("div.dhx_span-cell-content",{".innerHTML":u}):u;for(var h=0,f=0;f<l;f++)h+=S[f].$height;for(var p=h-(x?0:1),g=0,_=a-1;0<=_;_--)g+=E[_].$width;var v=a===E.length-1,m=a+o===E.length,t=c.header[0].text?" dhx_span-cell":" dhx_span-cell dhx_span-cell--title";t+=s?" "+s:"",t+=r?" "+r:"",t+=0===l?" dhx_span-first-row":"",t+=0===a?" dhx_span-first-col":"",t+=v||m?" dhx_span-last-col":"",t+=o?" dhx_span-string-cell":" dhx_span-"+(c.type||"string")+"-cell",t+=c.align?" dhx_align-"+c.align:" dhx_align-left";v=1<o?T.getWidth(E,o,a):c.$width,m=1<n?T.getHeight(S,n,l):d.$height;(y.$editable&&y.$editable.row===e&&y.$editable.col===i||"boolean"===c.type&&(y.editable&&(null===(b=c.editable)||void 0===b||b)||!y.editable&&c.editable))&&(o=y.leftSplit,n=y.topSplit,o&&a<o||n&&l<n||(u=L(d,c,y).toHTML(),t+=" dhx_span__editable",o===a+1&&--v)),w.push(M.el("div",D({class:t,style:{width:v,height:m,top:p,left:g},"data-dhx-col-id":i,"data-dhx-id":e,"aria-hidden":"true"},P(C.yStart,C.xStart,y)),[u]))}(e);return w},e.getShifts=function(t){var e=t.columns.slice(0,t.$positions.xStart),t=t.data.slice(0,t.$positions.yStart);return{x:v.getTotalWidth(e),y:v.getTotalHeight(t)}},e.normalizeSpan=function(t,e){var i=void 0===(l=e.leftSplit)?0:l,n=void 0===(c=e.topSplit)?0:c,o=e.data,r=e.columns,s=t.column,a=t.row,l=t.colspan,c=t.rowspan,e=r.findIndex(function(t){return t.id==s}),r=o.findIndex(function(t){return t.id==a}),o=[];return i<=e+(l||0)&&n<=r+(c||0)&&o.push("render"),e<i&&o.push("fixedCols"),r<n&&i<=e&&o.push("fixedRows"),D(D({},t),{$renderFrom:o})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ChartEvents||(e.ChartEvents={})).toggleSeries="toggleSeries",e.chartMouseMove="chartMouseMove",e.chartMouseLeave="chartMouseLeave",e.resize="resize",e.serieClick="serieClick",e.seriaMouseMove="seriaMouseMove",e.seriaMouseLeave="seriaMouseLeave"},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var v=i(0),m=i(3);function y(t,e,i,n){return n&&(t+=2*e*Math.asin(.5*n/e)/(2*Math.PI*e)),[Math.cos(2*Math.PI*t)*e,Math.sin(2*Math.PI*t)*i]}function r(t,e,i){t.setAttribute("transform","translate("+e+", "+i+") scale(1.05)"),t.classList.add("dhx_pie-transform-delay")}function n(t){t.setAttribute("transform","translate(0, 0)"),t.classList.remove("dhx_pie-transform-delay")}function x(t,e){return t-1e-6<e&&e<t+1e-6}function b(t,e){return"M"+-t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+-t+",0"}e.getCoordinates=y,e.shiftCoordinates=function(t,e,i){return[t[0]+e,t[1]+i]},e.pieLikeHandlers={onmouseover:function(e,i,t,n){var o=n.parent.attrs.id;r(n.el,e,i),n.parent.body.forEach(function(t){t.attrs.id!==o+"-text"&&t.attrs.id!==o+"-connector"||r(t.el,e,i)})},onmouseout:function(t,e){var i=e.parent.attrs.id;n(e.el),e.parent.body.forEach(function(t){t.attrs.id!==i+"-text"&&t.attrs.id!==i+"-connector"||n(t.el)})}},e.radarScale=function(t,e,i){var n,a=e<i?e/2:i/2,l=1/t.scales.length,c=.5<l?1:0,d=[],o=(n=a,o="#FAFBFD",v.sv("circle",{cx:0,cy:0,r:n,fill:o,stroke:"none",class:"background-circle"}));d.push(o);for(var u=-.25,r=[],s=t.axis,h="radar-grid "+(t.zebra?"zebra":""),f=1;f<s.length;f+=2){var p=a*s[f-1],g=a*s[f],g=b(p,!0)+" "+b(g,!1),g=v.sv("path",{d:g,fill:"none",stroke:"black",class:h});r.push(g)}return d.push(r),t.scales.forEach(function(t){var e=y(u,a,a),i=e[0],n=e[1],o=u+l,r=y(o,a,a),e=r[0],r=r[1],e="M "+i+" "+n+" A "+a+" "+a+" 0 "+c+" 1 "+e+" "+r+" L 0 0",r=v.sv("path",{d:e,stroke:"black",fill:"none",class:"radar-scale"});d.push(r);var s,e=[8,8],r=e[0],e=e[1],r=x(u,0)||x(u,.5)?0:u<0||.5<u?-r:r,e=x(u,-.25)||x(u,.25)?0:u<-.25||.25<u?-e:e;t=x(u,-.25)||x(u,.25)?(s=x(u,-.25)?m.verticalTopText:m.verticalBottomText,v.sv("text",{x:i+e,y:n+r,class:"scale-text"},[s(t)])):(s=-.25<=u&&u<=.25?"start-text scale-text":"end-text scale-text",v.sv("text",{x:i+e,y:n+r,class:s},[m.verticalCenteredText(t)])),d.push(t),u=o}),u=-.25,t.realAxis&&(o=t.realAxis.map(function(t,e){var i=y(-.25,a*s[e],a*s[e]),e=i[0],i=i[1];return v.sv("text",{x:e,y:i,dx:-10,class:"radar-axis-text"},[m.verticalCenteredText(t.toString())])}),d.push(o)),v.sv("g",_({transform:"translate("+e/2+", "+i/2+")"},{"aria-label":"x-axis"+((t=t.attribute)?", "+t:"")}),d)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),i=(o.prototype.getFocusId=function(){return this._activeWidgetId},o.prototype.setFocusId=function(t){this._activeWidgetId=t},o);function o(){var e=this;this._initHandler=function(t){return e._activeWidgetId=n.locate(t,"data-dhx-widget-id")},this._removeFocusClass=function(t){var e=document.body.classList;e.contains("utilityfocus")&&e.remove("utilityfocus")},this._addFocusClass=function(t){var e=document.body.classList;"Tab"===t.code?e.contains("utilityfocus")||e.add("utilityfocus"):e.contains("utilityfocus")&&e.remove("utilityfocus")},document.addEventListener("focusin",this._initHandler),document.addEventListener("pointerdown",this._initHandler),document.addEventListener("mousedown",this._removeFocusClass),document.addEventListener("keydown",this._addFocusClass)}e.focusManager=new i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1);e.getWidth=function(t,n,o){return t=t.filter(function(t){return!t.hidden}),n?t.reduce(function(t,e,i){e=e.$width;return t+=o<=i&&i<o+n?e:0},0):t[o].$width},e.getHeight=function(t,n,o){return t=t.filter(function(t){return!t.hidden}),n?t.reduce(function(t,e,i){e=e.$height;return t+=o<=i&&i<o+n?e:0},0):t[o].$height},e.getSpan=function(e,i,r){if(r.spans){var s=r.data.findIndex(function(t){return t.id.toString()===e.toString()}),a=r.columns.findIndex(function(t){return t.id.toString()===i}),t=n.findIndex(r.spans,function(e){var t=r.data.findIndex(function(t){return t.id.toString()===e.row.toString()}),i=r.columns.findIndex(function(t){return t.id.toString()===e.column.toString()}),n=e.rowspan?t+e.rowspan:t+1,o=e.colspan?i+e.colspan:i+1;return t<=s&&s<n&&i<=a&&a<o});return r.spans[t]}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SelectionEvents||(e.SelectionEvents={})).beforeUnSelect="beforeunselect",e.afterUnSelect="afterunselect",e.beforeSelect="beforeselect",e.afterSelect="afterselect"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),r=i(16),s=i(3),n=i(63),i=(a.prototype.toggle=function(){this.config.active=!this.config.active},a.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[0],r[1]);i[0]>s&&(i[0]=s,i[1]=r[0],i[2]=r[1],i[3]=r[2])}return i},a.prototype.getClosestVertical=function(t){for(var e=[1/0,null,null,null,null],i=0,n=this._points;i<n.length;i++){var o=n[i],r=Math.abs(o[0]-t);e[0]>r&&(e[0]=r,e[1]=o[0],e[2]=o[1],e[3]=o[2],e[4]=o[4])}return e},a.prototype.getTooltipType=function(t){return"top"},a.prototype.getTooltipText=function(t){if(this._data.getItem(t)&&this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t[0]}},a.prototype.dataReady=function(t){return this._points=[]},a.prototype.paint=function(t,e){return this._calckFinalPoints(t,e)},a.prototype.getPoints=function(){return this._points},a.prototype.addScale=function(t,e){},a.prototype._getClosestDist=function(t,e,i,n){return s.euclideanDistance(t,e,i,n)},a.prototype._calckFinalPoints=function(t,e){},a.prototype._setDefaults=function(t){this.config=t},a.prototype._defaultLocator=function(t){return[null,null]},a.prototype._getPointType=function(t,e){return n.getShadeHelper(t,e)},a);function a(t,e,i){var n=this;this._data=t,this._handlers={onclick:function(t,e){return n._events.fire(r.ChartEvents.serieClick,[t,e])},onmousemove:function(t,e,i){return n._events.fire(r.ChartEvents.seriaMouseMove,[t,e,i])},onmouseleave:function(t,e){return n._events.fire(r.ChartEvents.seriaMouseLeave,[t,e])}},this.id=e.id=e.id||o.uid(),this._events=i,this._points=[],this._setDefaults(e)}e.default=i},function(t,e){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},function(t,e,i){"use strict";(function(c){Object.defineProperty(e,"__esModule",{value:!0});var d=i(9),u=i(10);function h(t){return t?t.includes("json")?"json":t.includes("xml")?"xml":"text":"text"}function n(o,r,s,t,a){var n,l=t||{};return a&&(l.Accept="application/"+a),"GET"!==s&&(l["Content-Type"]=l["Content-Type"]||"application/json"),"GET"===s&&((t=r&&"object"==typeof r?(n=r,Object.keys(n).reduce(function(t,e){var i="object"==typeof n[e]?JSON.stringify(n[e]):n[e];return t.push(e+"="+encodeURIComponent(i)),t},[]).join("&")):r&&"string"==typeof r?r:"")&&(o+=o.includes("?")?"&":"?",o+=t),r=null),window.fetch?window.fetch(o,{method:s,body:r?JSON.stringify(r):null,headers:l}).then(function(e){if(!e.ok)return e.text().then(function(t){return c.reject({status:e.status,statusText:e.statusText,message:t})});var t=a||h(e.headers.get("Content-Type"));if("raw"===t)return{headers:Object.fromEntries(e.headers.entries()),url:e.url,body:e.body};if(204!==e.status)switch(t){case"json":return e.json();case"xml":var i=u.toDataDriver(d.DataDriver.xml);return i?e.text().then(function(t){return i.toJsonObject(t)}):e.text();default:return e.text()}}):new c(function(t,e){var i,n=new XMLHttpRequest;for(i in n.onload=function(){200<=n.status&&n.status<300?("raw"===a&&t({url:n.responseURL,headers:n.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce(function(t,e){e=e.split(": ");return t[e[0]]=e[1],t},{}),body:n.response}),204===n.status?t():t(function(t,e){switch(e){case"json":return JSON.parse(t);case"text":return t;case"xml":var i=u.toDataDriver(d.DataDriver.xml);return i?i.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"};default:return t}}(n.responseText,a||h(n.getResponseHeader("Content-Type"))))):e({status:n.status,statusText:n.statusText})},n.onerror=function(){e({status:n.status,statusText:n.statusText,message:n.responseText})},n.open(s,o),l)n.setRequestHeader(i,l[i]);switch(s){case"POST":case"DELETE":case"PUT":n.send(void 0!==r?JSON.stringify(r):"");break;case"GET":default:n.send()}})}e.ajax={get:function(t,e,i){return n(t,e,"GET",i&&i.headers,void 0!==i?i.responseType:void 0)},post:function(t,e,i){return n(t,e,"POST",i&&i.headers,void 0!==i?i.responseType:void 0)},put:function(t,e,i){return n(t,e,"PUT",i&&i.headers,void 0!==i?i.responseType:void 0)},delete:function(t,e,i){return n(t,e,"DELETE",i&&i.headers,void 0!==i?i.responseType:void 0)}}}).call(this,i(12))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(18),s=i(2);function a(t){for(var e=t.toLowerCase().match(/\w+/g),i=0,n="",o=0;o<e.length;o++){var r=e[o];"ctrl"===r?i+=4:"shift"===r?i+=2:"alt"===r?i+=1:n=r}return i+n}var l={Up:"arrowUp",Down:"arrowDown",Right:"arrowRight",Left:"arrowLeft",Esc:"escape",Spacebar:"space"},i=(n.prototype.destructor=function(){document.removeEventListener("keydown",this._initHandler),this.removeHotKey()},n.prototype.addHotKey=function(t,e){t=a(t);this._keysStorage[t]||(this._keysStorage[t]=[]),this._keysStorage[t].push({handler:e})},n.prototype.removeHotKey=function(t,i){var n,o,r=this;t?t&&i?(n=a(t),o=function(t){return t.toString().replace(/\n/g,"").replace(/\s/g,"")},this._keysStorage[n].forEach(function(t,e){o(t.handler)===o(i)&&(delete r._keysStorage[n][e],r._keysStorage[n]=r._keysStorage[n].filter(function(t){return t}))})):(t=a(t),delete this._keysStorage[t]):this._keysStorage={}},n.prototype.exist=function(t){t=a(t);return!!this._keysStorage[t]},n.prototype.getKeyStorageLength=function(){return Object.keys(this._keysStorage).length},n);function n(t){var o=this;this._keysStorage={},this._initHandler=function(t){var e;e=48<=t.which&&t.which<=57||65<=t.which&&t.which<=90?String.fromCharCode(t.which):(e=32===t.which?t.code:t.key,s.isIE()&&l[e]||e);var i=o._keysStorage[(t.ctrlKey||t.metaKey?4:0)+(t.shiftKey?2:0)+(t.altKey?1:0)+(e&&e.toLowerCase())];if(i)for(var n=0;n<i.length;n++){if(o._beforeCall&&!1===o._beforeCall(t,r.focusManager.getFocusId()))return;i[n].handler(t)}},t&&(this._beforeCall=t),document.addEventListener("keydown",this._initHandler)}e.KeyManager=i},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(42)),n(e(96)),n(e(26))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.LayoutEvents||(e.LayoutEvents={})).beforeShow="beforeShow",e.afterShow="afterShow",e.beforeHide="beforeHide",e.afterHide="afterHide",e.beforeResizeStart="beforeResizeStart",e.resize="resize",e.afterResizeEnd="afterResizeEnd",e.beforeAdd="beforeAdd",e.afterAdd="afterAdd",e.beforeRemove="beforeRemove",e.afterRemove="afterRemove",e.beforeCollapse="beforeCollapse",e.afterCollapse="afterCollapse",e.beforeExpand="beforeExpand",e.afterExpand="afterExpand"},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e(1),o=e(0),v=e(2);i.scrollViewConfig={enable:!1,autoHide:!0,timeout:1e3,scrollHandler:function(){}};n.prototype.enable=function(){this.config.enable=!0,this._getRootView().redraw()},n.prototype.disable=function(){this.config.enable=!1,this._getRootView().redraw()},n.prototype.render=function(t,e){var i=this;if(void 0===e&&(e=""),!this.config.enable||!t.length)return t;e&&(this._uid=e);var n=this.config.enable?[o.el(".y-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-y-area-"+e:"scroll-y-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"6px",height:"100%",right:0,top:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-y-runner-"+e:"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),o.el(".x-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-x-area-"+e:"scroll-x-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"100%",height:"6px",left:0,bottom:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-x-runner-"+e:"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return o.el(".scroll-view-wrapper",[o.el(".scroll-view",{onscroll:this._handlers.onscroll,_ref:e?"scroll-view-"+e:"scroll-view",_hooks:{didInsert:function(){i.update()},didRecycle:function(){i.update()}},style:{width:"calc(100% + "+this._scrollWidth+"px)",height:"calc(100% + "+this._scrollHeight+"px)"}},t)].concat(n))},n.prototype.update=function(){var t,e,i,n,o,r=this._getRefs();r&&(o=r.area,t=r.areaX,e=r.areaY,i=r.runnerY,n=r.runnerX,this._visibleYArea=o.clientHeight/o.scrollHeight,this._visibleXArea=o.clientWidth/o.scrollWidth,this._scrollYTop=o.scrollTop,this._scrollXLeft=o.scrollLeft,this._runnerYTop=this._scrollYTop*this._visibleYArea,this._runnerXLeft=this._scrollXLeft*this._visibleXArea,this._runnerHeight=this._visibleYArea<1?o.clientHeight*this._visibleYArea:0,this._runnerWidth=this._visibleXArea<1?o.clientWidth*this._visibleXArea:0,r=i.style.top,o=n.style.left,i.style.opacity=1,i.style.top=this._runnerYTop+"px",i.style.height=this._runnerHeight+"px",n.style.opacity=1,n.style.left=this._runnerXLeft+"px",n.style.width=this._runnerWidth+"px",r!==i.style.top&&(e.style.opacity=.9,e.style.width="10px"),o!==n.style.left&&(t.style.opacity=.9,t.style.height="10px"),this.config.autoHide?this._autoHideFunc||(this._autoHideFunc=s.debounce(function(){i.style.opacity=0,e.style.width="6px",n.style.opacity=0,t.style.height="6px"},this.config.timeout)):this._autoHideFunc=s.debounce(function(){e.style.width="6px",t.style.height="6px"},this.config.timeout),this._autoHideFunc())},n.prototype._getRefs=function(){var t=this._getRootView(),e=!(!t.refs["scroll-view"]||!t.refs["scroll-x-runner"]&&!t.refs["scroll-y-runner"]),i=!(!this._uid||!t.refs["scroll-view-"+this._uid]||!t.refs["scroll-x-runner-"+this._uid]&&!t.refs["scroll-y-runner-"+this._uid]);if(t.refs)return e?{area:t.refs["scroll-view"].el,areaY:t.refs["scroll-y-area"].el,areaX:t.refs["scroll-x-area"].el,runnerY:t.refs["scroll-y-runner"].el,runnerX:t.refs["scroll-x-runner"].el}:i?{area:t.refs["scroll-view-"+this._uid].el,areaY:t.refs["scroll-y-area-"+this._uid].el,areaX:t.refs["scroll-x-area-"+this._uid].el,runnerY:t.refs["scroll-y-runner-"+this._uid].el,runnerX:t.refs["scroll-x-runner-"+this._uid].el}:void 0},e=n;function n(t,e){var _=this;void 0===e&&(e={}),this.config=s.extend({enable:i.scrollViewConfig.enable,autoHide:i.scrollViewConfig.autoHide,timeout:i.scrollViewConfig.timeout,scrollHandler:i.scrollViewConfig.scrollHandler},e),this._wheelName=v.isIE()?"onmousewheel":"onwheel",this._getRootView=t,this._scrollYTop=this._scrollXLeft=this._runnerYTop=this._runnerXLeft=this._runnerHeight=this._runnerWidth=0,this._visibleYArea=this._visibleXArea=1,this._scrollWidth=v.getScrollbarWidth(),this._scrollHeight=v.getScrollbarHeight(),this._handlers=((t={onscroll:function(t){_.config.scrollHandler(t),_.update()}})[this._wheelName]=function(t){var e=!!v.locateNodeByClassName(t.target,"y-scroll");t.preventDefault();var i,n=40*(0<(t.deltaY||-t.wheelDelta)?1:-1),t=_._getRefs().area;e?(e=t.scrollHeight-_._runnerHeight,i=_._scrollYTop+n,t.scrollTop=i<0?0:e<i?e:i):(i=t.scrollWidth-_._runnerWidth,n=_._scrollXLeft+n,t.scrollLeft=n<0?0:i<n?i:n),_.update()},t.onmousedownRunner=function(t){t.preventDefault();function e(t){var e;i?(e=t.pageY-d,o.scrollTop=e<=a?0:l<e?c:(e-a)/_._visibleYArea):(t=t.pageX-p,o.scrollLeft=t<=u?0:h<t?f:(t-u)/_._visibleXArea),_.update()}var i=!!v.locateNodeByClassName(t.target,"y-scroll"),n=_._getRefs(),o=n.area,r=n.runnerY,s=n.runnerX,n=o.getBoundingClientRect(),a=n.top+window.pageYOffset,l=n.bottom+window.pageYOffset,c=o.scrollHeight-_._runnerHeight,d=t.pageY-r.getBoundingClientRect().top-window.pageYOffset,u=n.left+window.pageXOffset,h=n.right+window.pageXOffset,f=o.scrollWidth-_._runnerWidth,p=t.pageX-s.getBoundingClientRect().left-window.pageXOffset,g=function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",g),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",e),document.addEventListener("mouseup",g)},t.onmousedownArea=function(t){var e,i,n,o;v.locateNodeByClassName(t,"scroll-runner")||(t.preventDefault(),e=!!v.locateNodeByClassName(t.target,"y-scroll"),i=(o=_._getRefs()).area,n=o.runnerY,o=o.runnerX,e?i.scrollTop+=(t.pageY-n.getBoundingClientRect().top)/_._visibleYArea:i.scrollLeft+=(t.pageX-o.getBoundingClientRect().left)/_._visibleXArea,_.update())},t.onmouseenter=function(t){var e,i;v.locateNodeByClassName(t,"scroll-runner")||(i=_._getRefs())&&(e=!!v.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<_._runnerHeight?i.style.background="#eee":!e&&0<_._runnerWidth&&(t.style.background="#eee"))},t.onmouseleave=function(t){var e,i;v.locateNodeByClassName(t,"scroll-runner")||(i=_._getRefs())&&(e=!!v.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<_._runnerHeight?i.style.background="transparent":!e&&0<_._runnerWidth&&(t.style.background="transparent"))},t)}i.ScrollView=e},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(100)),n(e(44))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ListEvents||(e.ListEvents={})).click="click",e.doubleClick="doubleclick",e.focusChange="focuschange",e.beforeEditStart="beforeEditStart",e.afterEditStart="afterEditStart",e.beforeEditEnd="beforeEditEnd",e.afterEditEnd="afterEditEnd",e.itemRightClick="itemRightClick",e.itemMouseOver="itemMouseOver",e.contextmenu="contextmenu"},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.RealPosition||(e.RealPosition={})).left="left",n.right="right",n.top="top",n.bottom="bottom",n.center="center",(n=e.Position||(e.Position={})).right="right",n.bottom="bottom",n.center="center",n.left="left",n.top="top",(e=e.MessageContainerPosition||(e.MessageContainerPosition={})).topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(130),r=i(61),s=i(3),a={left:r.left,right:r.right,bottom:r.bottom,top:r.top},h={left:r.leftGrid,right:r.rightGrid,bottom:r.bottomGrid,top:r.topGrid},r=(l.prototype.addPadding=function(){this._padding=!0},l.prototype.getSize=function(){return this.config.size},l.prototype.scaleReady=function(t){var e=[];this._charts.forEach(function(t){t.getPoints().forEach(function(t){return e.push(t[1])})}),this._axis=new o.AxisCreator(e,this.config).getScale();var i=this._position;"radial"!==i&&(t[i]+=this.config.size)},l.prototype.point=function(t){return this.config.log?this._logPoint(t):this._isXDirection?(t-this._axis.min)/(this._axis.max-this._axis.min):1-(t-this._axis.min)/(this._axis.max-this._axis.min)},l.prototype.add=function(t){this._charts.push(t)},l.prototype.paint=function(e,i){var n=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t){return[n._isXDirection?n.point(t)*e:n.point(t)*i,t]});return 0===t.length&&"left"===this._position&&(t=[[0,0]]),a[this._position](t,this.config,e,i)},l.prototype.scaleGrid=function(){var a=this,l=this._position,c=this.config.grid,d=this.config.dashed,u=this.config.hidden;return{paint:function(t,e){var i,n,o=a._axis.steps.indexOf(a.config.targetLine),r=(i=t,n=e,a._axis.steps.map(function(t){return[a._isXDirection?a.point(t)*i:a.point(t)*n,t]})),s=a.point(a.config.targetValue),s={targetLine:o,dashed:d,grid:c,targetValue:s,hidden:u};return h[l](r,t,e,s)}}},l.prototype._setDefaults=function(t){t.locator&&(this.locator=s.locator(t.locator)),this.config=n(n({},{scalePadding:20,textPadding:11,grid:!0,targetLine:null,showText:!0}),t)},l.prototype._logPoint=function(t){var e=Math.abs(t)/t,i=this._axis.steps,n=i.length-1,o=i.indexOf(t);return n=-1!==o?o/n:((this._axis.min<0?i.indexOf(0):0)+e*s.log10(Math.abs(t)))/n,this._isXDirection?n:1-n},l);function l(t,e,i){this._data=t,this._padding=!1,this._charts=[],this._position=i,this._setDefaults(e),this._isXDirection="bottom"===i||"top"===i,"radial"!==i&&(this.config.size="left"===i||"right"===i?this.config.size||40+(this.config.title?40:0):this.config.size||20+(this.config.title?40:0))}e.Scale=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(3),i=i(21),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=e.locator):(this.yScale=e,this._yLocator=s.locator(this.config.value))},a.prototype.paint=function(t,e){r.prototype.paint.call(this,t,e)},a.prototype.dataReady=function(o){var r=this;return this.config.active?(this._points=this._data.map(function(t,e){var i=r._xLocator(t),n=r._yLocator(t),n=[i,n,t.id,i,n];return o&&(n[1]+=o[e][1]),n}),this._points):this._points=[]},a.prototype._calckFinalPoints=function(n,o){var r=this;this._points.forEach(function(t,e){t[0]=r.xScale.point(t[0])*n||0;var i=r.yScale.point(t[1])*o;t[1]=isNaN(i)?"xbar"===r.config.type?0:o:i})},a.prototype._defaultLocator=function(t){return[this._yLocator(t),this._xLocator(t)]},a);function a(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(3),i=i(21),o=(s=i.default,o(l,s),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.dataReady=function(){var s=this,t=this._data;return this._sum=t.reduce(function(t,e){return e.$hidden?t:t+parseFloat(s._valueLocator(e))},0),this._points=t.reduce(function(t,e,i){if(e.$hidden)return t;var n=s._textLocator(e),o=s._valueLocator(e),r=o/s._sum,i=s._colorLocator?s._colorLocator(e):a.getDefaultColor(i);return t.push([r,o,e.id,n,i]),t},[]),this._points},l.prototype.toggle=function(t){var e=this._data.getItem(t);e&&this._data.update(t,{$hidden:!e.$hidden})},l.prototype.getClosest=function(t,e){for(var i=1-(Math.atan2(t-this._center[0],e-this._center[1])+Math.PI)/Math.PI/2,n=this._points,o=0;o<n.length;o++){if(n[o][0]>=i)return[0,this._tooltipData[o][0],this._tooltipData[o][1],n[o][2]];i-=n[o][0]}return[1/0,null,null,null]},l.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t[0]}},l.prototype.getTooltipType=function(t){return"simple"},l.prototype._setDefaults=function(e){var i=this,t={subType:"basic",paddings:e.useLines?70:50};this.config=r(r({},t),e),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=a.locator(e.value),this._textLocator=a.locator(e.text),e.color?this._colorLocator=a.locator(e.color):e.monochrome&&(this._colorLocator=function(t){return a.getColorShade(e.monochrome,2*i._getPercent(t))})},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getPercent=function(t){return parseFloat(this._valueLocator(t))/this._sum},l);function l(){var t=null!==s&&s.apply(this,arguments)||this;return t._center=[0,0],t._tooltipData=[],t}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var l,c=i(0),d=i(3),i=i(32),o=(l=i.default,o(r,l),r.prototype.paint=function(t,e){var r=this;l.prototype.paint.call(this,t,e);var i,n=this.config.pointColor||this.config.color,o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),s=[];return this.config.strokeWidth&&s.push(this._getForm(this._points,this.config,o,t,e)),this.config.pointType&&(i=this._getPointType(this.config.pointType,n),s=s.concat(this._points.map(function(t){return i(t[0],t[1],d.calcPointRef(t[2],r.id))}).map(function(t,e){var i,n,o;return t&&t.attrs&&(t.attrs=a(a({},t.attrs),(i=t.key,n=r._points,i&&(o=n.find(function(t){return i.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":o?"point x="+o[3]+" y="+o[4]:"",tabindex:0})),r.config.tooltip&&(t.attrs.onmousemove=[r._handlers.onmousemove,r._points[e][2],r.id],t.attrs.onmouseleave=[r._handlers.onmouseleave,r._points[e][2],r.id],t.attrs.onclick=[r._handlers.onmousemove,r._points[e][2],r.id])),t}))),c.sv("g",a(a({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),s)},r.prototype._getForm=function(t,e,i,n,o){t=t.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ");return c.sv("path",{id:"seria"+e.id,d:t,stroke:e.color,class:i,"stroke-width":this.config.strokeWidth,fill:"none"})},r.prototype._setDefaults=function(t){this.config=a(a({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},r);function r(){return null!==l&&l.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),r=i(79),s=i(82),a=i(13),c=i(10),d=i(9),p=i(1),i=(u.prototype._reset=function(){this._order=[],this._pull={},this._changes={order:[]},this._initOrder=null,this._meta=new WeakMap,this._loaded=!1},u.prototype.add=function(t,i){var n=this;if(this.events.fire(d.DataEvents.beforeAdd,[t])){t=Array.isArray(t)?t.map(function(t,e){return 0!==e&&(i+=1),n._add(t,i)}):this._add(t,i);return this._applySmart(),t}},u.prototype.remove=function(t){var e=this;t&&(t instanceof Array?n(t).map(function(t){e._remove(t)}):this._remove(t))},u.prototype.removeAll=function(){this._reset(),this.events.fire(d.DataEvents.removeAll),this.events.fire(d.DataEvents.change)},u.prototype.exists=function(t){return!!this._pull[t]},u.prototype.getNearId=function(t){if(!this._pull[t])return this._order[0].id||""},u.prototype.getItem=function(t){return this._pull[t]},u.prototype.update=function(t,e,i){var n=this.getItem(t);n?c.isEqualObj(e,n)||(e.id&&t!==e.id?(c.dhxWarning("this method doesn't allow change id"),c.isDebug()):(e.parent&&n.parent&&e.parent!==n.parent&&this.move(t,-1,this,e.parent),p.extend(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),i||this._onChange("update",t,this._pull[t])),this._applySmart()):c.dhxWarning("item not found")},u.prototype.getIndex=function(e){if(!e)return-1;var t=p.findIndex(this._order,function(t){return t&&t.id.toString()===e.toString()});return this._pull[e]&&0<=t?t:void 0},u.prototype.getId=function(t){if(this._order[t])return this._order[t].id},u.prototype.getLength=function(){return this._order.length},u.prototype.isDataLoaded=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this._order.length),p.isNumeric(t)&&p.isNumeric(e)?0===this._order.slice(t,e).filter(function(t){return t&&t.$empty}).length:(this._loaded||(this._loaded=!this.find(function(t){return t.$empty})),!!this._loaded)},u.prototype.filter=function(t,e){var i;this.isDataLoaded()?(e&&e.add||(this._order=this._initOrder||this._order,this._initOrder=null),!t||"function"==typeof t||void 0!==(i=t).by&&void 0!==i.match&&(t=i.compare?function(t){return i.compare(t[i.by],i.match,t,i.multi)}:function(t){return t[i.by]==i.match}),this._filter=e&&e.smartFilter?t:null,this._applyFilters(t),this.events.fire(d.DataEvents.change)):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.find=function(t){for(var e in this._pull){var i=c.findByConf(this._pull[e],t);if(i)return i}return null},u.prototype.findAll=function(t){var e,i=[];for(e in this._pull){var n=c.findByConf(this._pull[e],t);n&&i.push(n)}return i},u.prototype.sort=function(t,e){this.isDataLoaded()?(e&&e.smartSorting&&(this._sorter=t),t&&this._applySorters(t),this.events.fire(d.DataEvents.change)):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.copy=function(t,i,n,o){var r=this;return t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},u.prototype.move=function(t,i,n,o,e){var r=this;return t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o,0,e)},u.prototype.forEach=function(t){for(var e=0;e<this._order.length;e++)t.call(this,this._order[e],e,this._order)},u.prototype.load=function(t,e){return"string"==typeof t&&(this.dataProxy=t=new a.DataProxy(t)),this.dataProxy=t,this._loader.load(t,e)},u.prototype.parse=function(t,e){return this._reset(),this._loader.parse(t,e)},u.prototype.$parse=function(t){var e=this.config.approximate;e&&(t=this._approximate(t,e.value,e.maxNum)),this._parse_data(t),this._applySmart(),this.events.fire(d.DataEvents.change,["load"]),this.events.fire(d.DataEvents.load)},u.prototype.save=function(t){"string"==typeof t&&(t=new a.DataProxy(t)),this._loader.save(t)},u.prototype.changeId=function(t,e,i){var n;void 0===e&&(e=p.uid()),i||this.isDataLoaded()?(n=this.getItem(t))?(n.id=e,p.extend(this._pull[t],n),this._pull[e]=this._pull[t],i||this._onChange("update",e,this._pull[e]),delete this._pull[t]):c.dhxWarning("item not found"):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.isSaved=function(){return!this._changes.order.length},u.prototype.map=function(t){for(var e=[],i=0;i<this._order.length;i++)e.push(t.call(this,this._order[i],i,this._order));return e},u.prototype.mapRange=function(t,e,i){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var n=this._order.slice(t,e),o=[],r=t;r<=e;r++)o.push(i.call(this,this._order[r],r,n));return o},u.prototype.reduce=function(t,e){for(var i=0;i<this._order.length;i++)e=t.call(this,e,this._order[i],i);return e},u.prototype.serialize=function(t){void 0===t&&(t=d.DataDriver.json);for(var i=[],n=this,e=0;e<this._order.length;e++)!function(t){var e=l({},n._order[t]);Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),i.push(e)}(e);t=c.toDataDriver(t);if(t)return t.serialize(i)},u.prototype.getInitialData=function(){return this._initOrder},u.prototype.setMeta=function(t,e,i){var n;t&&((n=this._meta.get(t))||(n={},this._meta.set(t,n)),n[e]=i)},u.prototype.getMeta=function(t,e){t=this._meta.get(t);return t?t[e]:null},u.prototype.getMetaMap=function(t){return this._meta.get(t)},u.prototype.setRange=function(t,e){this._range=e?[t,e]:null},u.prototype.getRawData=function(t,e,i,n){if(i=i||this._order,1===n)return i;var o;if(this._range&&(t=this._range[0]+t,e=-1===e||t+(o=Math.abs(e-t))>this._range[1]?this._range[1]:t+o),!e||0===t&&(-1===e||e===i.length))return i;if(t>=i.length)return[];(-1===e||e>i.length)&&(e=i.length);i=i.slice(t,e);return 0!==i.filter(function(t){return t.$empty}).length&&this.events.fire(d.DataEvents.dataRequest,[t,e]),i},u.prototype._add=function(t,e){if(this.isDataLoaded()){e=this._addCore(t,e);return this._onChange("add",t.id,t),this.events.fire(d.DataEvents.afterAdd,[t]),e}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._remove=function(t){if(this.isDataLoaded()){var e=this._pull[t];if(e){if(!this.events.fire(d.DataEvents.beforeRemove,[e]))return;this._removeCore(e.id),this._onChange("remove",t,e)}this.events.fire(d.DataEvents.afterRemove,[e])}else c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._copy=function(t,e,i,n,o){if(this.isDataLoaded()){if(!this.exists(t))return null;var r=p.uid();return(o&&(e=-1===e?-1:e+o),i)?i instanceof u||!n?i.exists(t)?(i.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r):(i.add(c.copyWithoutInner(this.getItem(t)),e),t):void i.add(c.copyWithoutInner(this.getItem(t)),e):(this.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r)}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._move=function(t,e,i,n,o,r){if(this.isDataLoaded()){if(o&&(e=-1===e?-1:e+o),i&&i!==this&&this.exists(t)){var s=p.copy(this.getItem(t),!0);return r&&(s.id=r),(!r&&i.exists(t)||i.exists(r))&&(s.id=p.uid()),n&&(s.parent=n),i.add(s,e),this.remove(t),s.id}if(this.getIndex(t)===e)return null;s=this._order.splice(this.getIndex(t),1)[0];return-1===e&&(e=this._order.length),this._order.splice(e,0,s),this.events.fire(d.DataEvents.change,[t,"update",this.getItem(t)]),t}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._addCore=function(t,e){var i;return this.config.init&&(t=this.config.init(t)),t.id=null!==(i=t.id)&&void 0!==i?i:p.uid(),this._pull[t.id]&&c.dhxError("Item "+t.id+" already exist"),this._initOrder&&!c.isTreeCollection(this)&&this._addToOrder(this._initOrder,t,e),this._addToOrder(this._order,t,e),t.id},u.prototype._removeCore=function(e){0<=this.getIndex(e)&&(this._order=this._order.filter(function(t){return t.id!==e}),delete this._pull[e]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e}),delete this._pull[e])},u.prototype._parse_data=function(t){var e=this._order.length;this.config.prep&&(t=this.config.prep(t));for(var i=0,n=t;i<n.length;i++){var o=n[i];this._addCore(o,e++)}},u.prototype._approximate=function(t,e,i){for(var n=t.length,o=e.length,r=Math.floor(n/i),s=Array(Math.ceil(n/r)),a=0,l=0;l<n;l+=r){for(var c=p.copy(t[l]),d=Math.min(n,l+r),u=0;u<o;u++){for(var h=0,f=l;f<d;f++)h+=t[f][e[u]];c[e[u]]=h/(d-l)}s[a++]=c}return s},u.prototype._onChange=function(t,e,i){for(var n=0,o=0,r=this._changes.order;o<r.length;o++){var s=r[o],a=this._changes.order.indexOf(s);if(s.id===e&&!s.saving&&(n+=1,a===this._changes.order.length-1||this._changes.order[a+1].id!==e))return s.error&&(s.error=!1),s=l(l({},s),{obj:i,status:t}),10<(n+=1)?this._changes.order.splice(a,n-10,s):this._changes.order.splice(a+1,0,s),this._loader.updateChanges(this._changes),"remove"===t&&i.$emptyRow?void 0:void this.events.fire(d.DataEvents.change,[e,t,i])}this._changes.order.push({id:e,status:t,obj:l({},i),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(d.DataEvents.change,[e,t,i])},u.prototype._addToOrder=function(t,e,i){0<=i&&t[i]?(this._pull[e.id]=e,t.splice(i,0,e)):(this._pull[e.id]=e,t.push(e))},u.prototype._applySmart=function(){this._filter&&this._applyFilters(),this._sorter&&this._applySorters()},u.prototype._applySorters=function(t){this._sort.sort(this._order,t,this._sorter),this._initOrder&&this._initOrder.length&&this._sort.sort(this._initOrder,t,this._sorter)},u.prototype._applyFilters=function(e){var t,i=this._filter;e===i&&(e=null),(e||i)&&(t=this._order.filter(function(t){return(!e||e(t))&&(!i||i(t))}),this._initOrder||(this._initOrder=this._order),this._order=t)},u);function u(t,e){var n=this;this._changes={order:[]},this.config=t||{},this._sort=new s.Sort,this._loader=new r.Loader(this,this._changes),this.events=e||new o.EventSystem(this),this.events.on(d.DataEvents.dataRequest,function(t,e){var i=n.dataProxy;i&&i.updateUrl&&(i.updateUrl(null,{from:t,limit:i.config.limit||e-t}),n.load(i))}),this.events.on(d.DataEvents.loadError,function(t){setTimeout(function(){"string"!=typeof t?c.dhxError(t):c.dhxWarning(t)},0)}),this._reset()}e.DataCollection=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(37),r=i(38),i=i(80);e.dataDrivers={json:o.JsonDriver,csv:r.CsvDriver},e.dataDriversPro=n(n({},e.dataDrivers),{xml:i.XMLDriver})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.serialize=function(t){return t},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},o);function o(){}e.JsonDriver=n},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=(r.prototype.getFields=function(t,e){for(var i=new RegExp('(?<!")'+this.config.columnDelimiter+'(?!")'),n=t.trim().split(i),o={},r=0;r<n.length;r++)o[e?e[r]:r+1]=isNaN(Number(n[r]))?n[r].replace(/"[,;"]"/gi,function(t){return t.split("").splice(1,1).slice(-1,1).join("")}):parseFloat(n[r]);return o},r.prototype.getRows=function(t){return t.trim().split(this.config.rowDelimiter)},r.prototype.toJsonArray=function(t){var e=this,i=this.getRows(t),n=this.config.names;return this.config.skipHeader&&(t=i.splice(0,this.config.skipHeader),this.config.nameByHeader&&(n=t[0].trim().split(this.config.columnDelimiter))),i.map(function(t){return e.getFields(t,n)})},r.prototype.serialize=function(t,e){var i=t[0]?Object.keys(t[0]).filter(function(t){return!t.startsWith("$")}).join(this.config.columnDelimiter)+this.config.columnDelimiter+this.config.rowDelimiter:"",t=this._serialize(t);return e?t:i+t},r.prototype._serialize=function(t){var o=this;return t.reduce(function(t,n){var e=Object.keys(n).reduce(function(t,e,i){return e.startsWith("$")||"items"===e?t:""+t+n[e].replaceAll(/[,;"]/gi,function(t){return'"'+t+'"'})+(i===n.length-1?"":o.config.columnDelimiter)},"");return n.items?t+(t?"\n":"")+e+o._serialize(n.items):""+t+(t?o.config.rowDelimiter:"")+e},"")},r);function r(t){this.config=n(n({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}e.CsvDriver=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(40)),n(e(120)),n(e(4)),n(e(19));var o=e(15);i.getTreeCell=o.getTreeCell,n(e(11)),n(e(8))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),r=i(5),l=i(2),p=i(1),c=i(24),d=i(7),h=i(6),u=i(85),v=i(11),f=i(19),m=i(8),_=i(86),y=i(4),x=i(41),b=i(14),w=i(113),C=i(114),E=i(58),S=i(119),k=i(18),D=i(15),o=(s=d.View,o(O,s),O.prototype.destructor=function(){this._destroyContent(),this.keyManager&&this.keyManager.destructor(),this.events.events={},this.events.context=null,this._activeFilters=this._filterData=this._scroll=this.content=null,this.unmount()},O.prototype.setColumns=function(t){var e=this;this.config.columns=t,this._parseColumns(!0),this._adjustColumns(),this._checkFilters(),this._checkMarks(),this.paint(),this.config.keyNavigation&&a.awaitRedraw().then(function(){e._initHotKey(!0),e.paint()})},O.prototype.addRowCss=function(t,e){var i=this.data.getItem(t),t=i.$css||"";t.match(new RegExp(e,"g"))||(i.$css=t+" "+e,this.paint())},O.prototype.removeRowCss=function(t,e){t=this.data.getItem(t),e=t.$css?t.$css.replace(e,""):"";t.$css=e,this.paint()},O.prototype.addCellCss=function(t,e,i){var n=this._getColumn(e),o=this.config.spans?this.getSpan(t,e):null;(o||n)&&((e=o?o.css:n.$cellCss[t])?(e=e.match(new RegExp(i,"g"))?"":" "+i,o?o.css+=e:n.$cellCss[t]+=e):this.data.getItem(t)&&(o?o.css=i+" ":n.$cellCss[t]=i+" "),this.paint())},O.prototype.removeCellCss=function(t,e,i){e=this._getColumn(e);e&&(e.$cellCss[t]?(e.$cellCss[t]=e.$cellCss[t].replace(i,""),this.paint()):this.data.getItem(t)&&(e.$cellCss[t]=""))},O.prototype.showColumn=function(t){var e=this._getColumn(t);e&&e.hidden&&this.events.fire(y.GridEvents.beforeColumnShow,[e])&&(e.hidden=!1,this.config.$totalWidth+=e.$width,(t=this._hiddenFilters&&this._hiddenFilters[e.id])&&(this._activeFilters[e.id]=t,delete this._hiddenFilters[e.id]),this.paint(),this._checkFilters(),this.events.fire(y.GridEvents.afterColumnShow,[e]))},O.prototype.hideColumn=function(t){var e,i=this,n=this._getColumn(t);n&&!n.hidden&&this.events.fire(y.GridEvents.beforeColumnHide,[n])&&(n.hidden=!0,this.config.$totalWidth-=n.$width,(t=this._activeFilters&&this._activeFilters[n.id])&&(this._hiddenFilters||(this._hiddenFilters={}),this._hiddenFilters[n.id]=t,delete this._activeFilters[n.id],this.data.filter()),this.paint(),t=this.content.comboFilter,e=function(){i._checkFilters(),i.events.fire(y.GridEvents.afterColumnHide,[n])},Object.keys(t.element).length?a.awaitRedraw().then(function(){i.paint(),e()}):e())},O.prototype.isColumnHidden=function(t){t=this._getColumn(t);if(t)return!!t.hidden},O.prototype.showRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&t.hidden&&this.events.fire(y.GridEvents.beforeRowShow,[t])&&(this.data.update(e,{hidden:!1}),this.data.filter(function(t){return!t.hidden}),this.events.fire(y.GridEvents.afterRowShow,[t])))},O.prototype.hideRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&this.events.fire(y.GridEvents.beforeRowHide,[t])&&(this.data.update(e,{hidden:!0}),this.data.filter(function(t){return!t.hidden}),this.events.fire(y.GridEvents.afterRowHide,[t])))},O.prototype.isRowHidden=function(t){if(p.isDefined(t)){t=this.data.getItem(t.toString());return t?!!t.hidden:void 0}},O.prototype.getScrollState=function(){return{x:this._scroll.left,y:this._scroll.top}},O.prototype.scroll=function(t,e){var i=this.getRootView().refs.grid_body.el.querySelector(".scroll-view")||this.getRootView().refs.grid_body.el;i.scrollLeft=!t&&0!==t||"number"!=typeof t?i.scrollLeft:t,i.scrollTop=!e&&0!==e||"number"!=typeof e?i.scrollTop:e,this.paint()},O.prototype.scrollTo=function(e,i){var t=this.selection.getCell(),n=this.config.columns.filter(function(t){return!t.hidden}),o=p.findIndex(n,function(t){return t.id==i}),r=t?t.column:this.config.columns[0],s=p.findIndex(n,function(t){return t.id==r.id}),a=this.config.leftSplit?m.getTotalWidth(n.slice(0,this.config.leftSplit)):0,l=m.getTotalWidth(n.slice(0,o))-(o-s<0?a:0),c=this.data.getRawData(0,-1),d=p.findIndex(c,function(t){return t.id==e}),u=m.getTotalHeight(c.slice(0,d)),h=this.getScrollState(),f=this.config.width+h.x,t=this.config.height+h.y-this.config.headerRowHeight*this.config.$headerLevel,s=u-h.y-c[d].$height,a=l-h.x-n[o].$width,t=u+2*c[d].$height+18-t,f=l+2*n[o].$width+18-f,t=0<s&&t<0?0:s<0?s:t,f=0<a&&f<0?0:a<0?a:f;this.scroll(f+h.x,t+h.y)},O.prototype.adjustColumnWidth=function(e,t){void 0===t&&(t=!0);var i=this.config.columns.filter(function(t){return!t.hidden}),n=i.filter(function(t){return t.id===e}),r=this._adjustColumnsWidth(this.config.data,n,t);this.config.$totalWidth=i.reduce(function(t,e){var i,n,o;return r[e.id]&&(e.$fixed=!0,i=e.maxWidth,n=e.minWidth,o=r[e.id],e.$width=o,i&&i<o&&(e.$width=i),n&&e.$width<n&&(e.$width=n)),t+e.$width},0),this.paint()},O.prototype.getCellRect=function(e,i){var t=this.config.columns.filter(function(t){return!t.hidden}),n=this.data.getRawData(0,-1),o=this.getSpan(e,i),r=p.findIndex(t,function(t){return t.id==(o?o.column:i)}),s=p.findIndex(n,function(t){return t.id==(o?o.row:e)});return{x:m.getTotalWidth(t.slice(0,r)),y:m.getTotalHeight(n.slice(0,s)),height:null!=o&&o.rowspan?f.getHeight(n,o.rowspan,s):n[s]?n[s].$height:0,width:null!=o&&o.colspan?f.getWidth(t,o.colspan,r):t[r]?t[r].$width:0}},O.prototype.getColumn=function(e){var t=p.findIndex(this.config.columns,function(t){return t.id==e});if(0<=t)return this.config.columns[t]},O.prototype.addSpan=function(e){this.config.spans=this.config.spans||[];var t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e.row&&""+t.column==""+e.column});0<=t?this.config.spans[t]=e:(this.config.spans.push(D.normalizeSpan(e,this.config)),this.paint())},O.prototype.getSpan=function(t,e){var r=this;if(this.config.spans){var s=this.data.getIndex(t.toString()),a=this.config.columns.findIndex(function(t){return t.id===e}),i=p.findIndex(this.config.spans,function(e){var t=r.data.getIndex(e.row.toString()),i=r.config.columns.findIndex(function(t){return t.id===e.column}),n=e.rowspan?t+e.rowspan:t+1,o=e.colspan?i+e.colspan:i+1;return t<=s&&s<n&&i<=a&&a<o});return null===(t=this.config)||void 0===t?void 0:t.spans[i]}},O.prototype.removeSpan=function(e,i){var t;this.config.spans&&(t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e&&""+t.column==""+i}),this.config.spans.splice(t,1),this.paint())},O.prototype.editCell=function(t,e,i){var n,o=this.data.getItem(t),r=this.getColumn(e);o&&r?(n=r.editorType,i||("date"===r.type&&(i="datePicker"),"boolean"===r.type&&(i="checkbox"),n&&(i=n)),this.events.fire(y.GridEvents.beforeEditStart,[o,r,i])&&(null!==(n=this.config.$editable)&&void 0!==n&&n.editor||this.config.$editable&&this.config.$editable.row===t&&this.config.$editable.col===e&&this.config.$editable.editorType===i||(this.config.$editable={row:o.id,col:r.id,editorType:i},this.selection.config.disabled||this.selection.setCell(t.toString(),e.toString()),this.paint(),this.events.fire(y.GridEvents.afterEditStart,[o,r,i])))):h.dhxWarning("item not found")},O.prototype.editEnd=function(t){this.config.$editable&&this.config.$editable.editor&&this.config.$editable.editor.endEdit(t)},O.prototype.getSortingState=function(){return{dir:this._sortDir,by:this._sortBy}},O.prototype.getHeaderFilter=function(i){var n=this,t=this.getColumn(i);if(t){var o=null;return t.header.forEach(function(t){var e;t.content&&(e=n.content[t.content].element[i],o="comboFilter"===t.content?e:n.getRootView().refs[i+"_filter"].el)}),o}},O.prototype.edit=function(t,e,i){this.editCell(t,e,i)},O.prototype.paint=function(){var t=this.config.hotkeys?Object.keys(this.config.hotkeys).length:0;!this.keyManager||this.keyManager.getKeyStorageLength()-t||this._initHotKey(!0),s.prototype.paint.call(this)},O.prototype._createView=function(){var i=this;return a.create({render:function(t,e){return x.render(t,e,i._htmlEvents,i.selection,i._uid)}},this)},O.prototype._parseColumns=function(t){void 0===t&&(t=!1),v.normalizeColumns(this.config,t);t=this.config.columns.filter(function(t){return!t.hidden});v.countColumns(this.config,t)},O.prototype._parseData=function(){this.config.data=this._prepareData(this.data),this._detectColsTypes(),this._checkFilters(),this._checkMarks(),this.data.filter(function(t){return!t.hidden}),this._render()},O.prototype._createCollection=function(t){this.data=new h.DataCollection({prep:t},this.events)},O.prototype._getRowIndex=function(t){return this.data.getIndex(t)},O.prototype._setEventHandlers=function(){function i(t){return 1}var u=this;this.data.events.on(h.DataEvents.load,function(){u.data.filter(function(t){return t}),u._parseData(),u._checkFilters()}),this.data.events.on(h.DataEvents.change,function(e,t,i){if("setPage"!==t){if("add"===t||"update"===t||"remove"===t?(!e||"remove"!==t||(n=u.selection.getCells().find(function(t){return t.row.id===e}))&&u.selection.removeCell(n.row.id,n.column.id),u.config.data=u._prepareData(u.data)):(h.isTreeCollection(u.data)&&(u.config.data=u._prepareData(u.data)),u._adjustColumns()),e&&(u._filterData=u.data.map(function(t){return t})||[],u._checkFilters()),u._detectColsTypes(),u._removeMarks(),u._checkMarks(),u.config.autoEmptyRow&&(!u._activeFilters||p.isEmptyObj(u._activeFilters))){var n=u.data.find({by:"$emptyRow",match:!0});if(n){if(n.id===e)return;u.data.move(n.id,u.data.getLength()-1)}else u._addEmptyRow()}u._render()}else a.awaitRedraw().then(function(){var t=u.config.columns.find(function(t){return!0!==t.hidden});u.scrollTo(u.data.getId(i[0]).toString(),t.id.toString()),u._render()})}),this.data.events.on(h.DataEvents.removeAll,function(){u.config.columns.map(function(e){e.header.map(function(t){!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(e.$uniqueData=[])})})}),this.events.on(h.DragEvents.beforeDrag,function(t,e){return u.data.getItem(t.start)?u.events.fire(y.GridEvents.beforeRowDrag,[t,e]):"column"===u.config.dragItem||"both"===u.config.dragItem?u.events.fire(y.GridEvents.beforeColumnDrag,[t,e]):void 0}),this.events.on(h.DragEvents.dragStart,function(t,e){i({$dragtarget:!0}),u.data.getItem(t.start)?u.events.fire(y.GridEvents.dragRowStart,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.dragColumnStart,[t,e])}),this.events.on(h.DragEvents.dragIn,function(t,e){u.data.getItem(t.start)?u.events.fire(y.GridEvents.dragRowIn,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.dragColumnIn,[t,e])}),this.events.on(h.DragEvents.dragOut,function(t,e){u.data.getItem(t.start)?u.events.fire(y.GridEvents.dragRowOut,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.dragColumnOut,[t,e])}),this.events.on(h.DragEvents.canDrop,function(t,e){i({$drophere:!0}),u.data.getItem(t.start)||u.data.getItem(t.target)?u.events.fire(y.GridEvents.canRowDrop,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.canColumnDrop,[t,e])}),this.events.on(h.DragEvents.cancelDrop,function(t,e){i({$drophere:void 0}),u.data.getItem(t.start)?u.events.fire(y.GridEvents.cancelRowDrop,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.cancelColumnDrop,[t,e])}),this.events.on(h.DragEvents.beforeDrop,function(t,e){return"row"!==u.config.dragItem||"both"!==u.config.dragMode&&"target"!==u.config.dragMode?"column"===u.config.dragItem||"both"===u.config.dragItem?u.events.fire(y.GridEvents.beforeColumnDrop,[t,e]):void 0:u.events.fire(y.GridEvents.beforeRowDrop,[t,e])}),this.events.on(h.DragEvents.afterDrop,function(e,t){var i;if(u.data.getItem(e.start)){u.events.fire(y.GridEvents.afterRowDrop,[e,t]);for(var n=u.data.getItem(e.start),o=0,r=u.config.columns;o<r.length;o++){var s=r[o];void 0===n[s.id]&&u.data.update(n.id,((i={})[s.id]=null,i),!0)}var a,l=u.data.getInitialData(),c=null==l?void 0:l.findIndex(function(t){return t.id.toString()===e.start}),d=null==l?void 0:l.findIndex(function(t){return t.id.toString()===e.target});for(a in-1<c&&-1<d&&null!=l&&l.splice(d,0,null==l?void 0:l.splice(c,1)[0]),u.config.data=u._prepareData(l||u.data.map(function(t){return t})),u.data.parse(u.config.data),u._activeFilters)u.data.filter(u._activeFilters[a],{add:!0})}else"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.afterColumnDrop,[e,t])}),this.events.on(h.DragEvents.afterDrag,function(t,e){i({$dragtarget:void 0}),u.data.getItem(t.start)?u.events.fire(y.GridEvents.afterRowDrag,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.afterColumnDrag,[t,e]),u.config.data=u._prepareData(u.data instanceof Array?u.data.map(function(t){return t}):u.data.getInitialData()||u.data),u.data.parse(u.config.data)}),this.events.on(y.GridEvents.cellMouseDown,function(t,e,i){i.targetTouches?(u._touch.timer=setTimeout(function(){u._dragStart(i)},u._touch.duration),u._touch.timeStamp?(u._touch.dblDuration>=u._touch.timeStamp-+i.timeStamp.toFixed()&&((!1!==e.editable&&u.config.editable||e.editable)&&u.editCell(t.id,e.id,e.editorType),i.preventDefault(),u.events.fire(y.GridEvents.cellDblClick,[t,e,i])),u._touch.timeStamp=null):u._touch.timeStamp=+i.timeStamp.toFixed(),setTimeout(function(){u._touch.timeStamp=null},u._touch.dblDuration)):u._dragStart(i)}),this._events.on(y.GridSystemEvents.cellTouchMove,function(t,e,i){u._touch.start&&i.preventDefault(),u._clearTouchTimer()}),this._events.on(y.GridSystemEvents.cellTouchEnd,function(){u._touch.start=!1,u._clearTouchTimer()}),this.events.on(y.GridEvents.filterChange,function(e,t,i){var n;e=null!=e?e:"",!u.config.autoEmptyRow||(n=u.data.find({by:"$emptyRow",match:!0}))&&u.data.remove(n.id),u._activeFilters||(u._activeFilters={});var o,r=u._getColumn(t),s=r.header.filter(function(t){return t.content===i&&void 0!==t.customFilter})[0];for(o in""!==e?("combobox"!==r.editorType&&"select"!==r.editorType&&"multiselect"!==r.editorType||!r.options||(e=Array.isArray(e)?e.map(function(e){var t;return(null===(t=r.options.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===t?void 0:t.id)||e}):null!==(n=null===(n=r.options.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===n?void 0:n.id)&&void 0!==n?n:e),u._activeFilters[t]={by:t,match:e,compare:null!==(s=null==s?void 0:s.customFilter)&&void 0!==s?s:u.content[i].match,multi:"multiselect"===(null==r?void 0:r.editorType)}):delete u._activeFilters[t],u.data.filter(function(t){return!t.hidden}),u._activeFilters)u.data.filter(u._activeFilters[o],{add:!0})}),this.events.on(y.GridEvents.scroll,function(t){u._scroll={top:t.y,left:t.x},u.editEnd(),u.paint()}),this.events.on(y.GridEvents.cellDblClick,function(t,e){(!1!==e.editable&&u.config.editable||e.editable)&&u.editCell(t.id,e.id,e.editorType)}),this.events.on(y.GridEvents.afterEditEnd,function(t,e,i){var n,o;null!==(n=u.config.$editable)&&void 0!==n&&n.editor&&(u.config.$editable.col!==i.id||u.config.$editable.row!==e.id)||(e=u.config.$editable?(o=u.config.$editable.row,u.config.$editable.col):(o=e.id,i.id),delete(i=u.data.getItem(o)).$emptyRow,void 0!==t&&u.data.update(o,g(g({},i),((i={})[e]=t,i))),u.config.$editable=null,u._checkFilters(),u.paint())}),this.events.on(y.GridEvents.headerCellMouseDown,function(t,e){var i=e.target.getAttribute("dhx_resized");i&&u.events.fire(y.GridEvents.beforeResizeStart,[t,e])&&C.startResize(u,i.toString(),e,function(){u.paint(),u.config.$resizing=null,u.events.fire(y.GridEvents.afterResizeEnd,[t,e])}),e.targetTouches&&(u._touch.timeStamp?(u._touch.dblDuration>=u._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),u.events.fire(y.GridEvents.headerCellDblClick,[t,e])),u._touch.timeStamp=null):u._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){u._touch.timeStamp=null},u._touch.dblDuration))}),this.events.on(y.GridEvents.footerCellDblClick,function(t,e){e.targetTouches&&(u._touch.timeStamp?(u._touch.dblDuration>=u._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),u.events.fire(y.GridEvents.footerCellDblClick,[t,e])),u._touch.timeStamp=null):u._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){u._touch.timeStamp=null},u._touch.dblDuration))}),this.events.on(y.GridEvents.resize,function(){u._parseColumns(),u._checkFilters()}),this.events.on(y.GridEvents.afterResizeEnd,function(e){var t;u.config.columns=null===(t=u.config.columns)||void 0===t?void 0:t.map(function(t){return t.id==e.id&&(t.width=e.$width),t}),u._parseColumns(!0),u._checkFilters()})},O.prototype._addEmptyRow=function(){var t=this.data.getId(this.data.getLength()-1),e=this.data.getItem(t),t=this.config.columns.filter(function(t){return!t.hidden});m.isRowEmpty(e)||this.data.add(t.reduce(function(t,e){return t[e.id]="",t},{$emptyRow:!0}))},O.prototype._sort=function(i,t,e){var n=this;t?this._sortDir=t:this._sortBy===i?this._sortDir="asc"===this._sortDir?"desc":"asc":this._sortDir="asc";this._sortBy=i,this.data.sort({by:i,dir:this._sortDir,as:null!=e?e:function(t){var e=n.getColumn(i);return t&&"date"===e.type?("string"==typeof t?b.stringToDate(t,e.format):t).getTime():t?""+t:""}}),this.events.fire(y.GridEvents.afterSort,[this.getColumn(i),this._sortDir])},O.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},O.prototype._checkFilters=function(){var o=this,r=this._filterData;if(r){this.config.columns.forEach(function(o){o.header.forEach(function(t){var e,i,n;!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(i=o.header.find(function(t){return t.filterConfig}),n=[],"comboFilter"===t.content&&null!==(e=t.filterConfig)&&void 0!==e&&e.readonly&&n.push(""),n.push.apply(n,v.getUnique(r,o.id,i?i.filterConfig.multiselection:null)),o.$uniqueData&&o.$uniqueData.length>n.length?n.forEach(function(t){o.$uniqueData.includes(t)||o.$uniqueData.push(t)}):o.$uniqueData=n)})});var t,s=this;for(t in this._activeFilters)!function(e){var i=s.config.columns.find(function(t){return t.id===e}),t=i.header.find(function(t){return!!t.content}),n=!1,n=Array.isArray(s._activeFilters[e].match)?s._activeFilters[e].match.reduce(function(t,e){if(i.$uniqueData.find(function(t){return t.toString()===e}))return!0},!1):i.$uniqueData.find(function(t){return t.toString()===o._activeFilters[e].match});!t||"selectFilter"!==t.content&&"comboFilter"!==t.content||n?s.data.filter(s._activeFilters[e],{add:!0}):(delete s._activeFilters[e],s.data.filter())}(t)}},O.prototype._adjustColumns=function(){var t,r,e,i=this;"boolean"==typeof this.config.adjust||"data"===this.config.adjust||"header"===this.config.adjust||"footer"===this.config.adjust?(e=this.config.columns.filter(function(t){return!t.hidden})).length&&(t=this.config.data&&this.config.data.length?this.config.data:this.data.map(function(t){return t}),r=this._adjustColumnsWidth(t,e),this.config.$totalWidth=e.reduce(function(t,e){e.$fixed=!0;var i=e.maxWidth,n=e.minWidth,o=r[e.id];return e.$width=o,i&&i<o&&(e.$width=i),n&&e.$width<n&&(e.$width=n),t+e.$width},0)):(e=this.config.columns.filter(function(t){return!t.hidden&&t.adjust})).length&&e.forEach(function(t){i.adjustColumnWidth(t.id,t.adjust)})},O.prototype._prepareData=function(t){var e=this;return this.config.autoHeight&&(this.config.autoHeight=!1),this._adjustColumns(),t.map(function(t){return t.$height=t.height||e.config.rowHeight,t})},O.prototype._adjustColumnsWidth=function(t,e,i){void 0===i&&(i=this.config.adjust);var n={};if("header"===i||!0===i){var o=e.filter(function(t){return t.header});if(d=v.getMaxColsWidth(this._prepareColumnData(o,"header"),o,{font:"bold 14.4px Arial"},"header"))for(var r=0,s=Object.entries(d);r<s.length;r++)var a=s[r],l=a[0],c=a[1],n=Object.assign(n,((a={})[l]=+c+(m.isSortable(this.config,this.getColumn(l))?36:16),a))}if("footer"===i||!0===i){var d,o=e.filter(function(t){return t.footer});if(d=v.getMaxColsWidth(this._prepareColumnData(o,"footer"),o,{font:"bold 14.4px Arial"},"footer"))for(var u=0,h=Object.entries(d);u<h.length;u++){var f=h[u],l=f[0],c=f[1];(n[l]&&n[l]<+c+16||!n[l])&&(n=Object.assign(n,((f={})[l]=+c+16,f)))}}if(("data"===i||!0===i)&&(d=v.getMaxColsWidth(t,e,{font:"normal 14.4px Arial"},"data")))for(var p=0,g=Object.entries(d);p<g.length;p++){var _=g[p],l=_[0],c=_[1];(n[l]&&n[l]<+c+16||!n[l])&&(n=Object.assign(n,((_={})[l]=+c+16,_)))}return n},O.prototype._prepareColumnData=function(t,e){for(var i,n,o=[],r=0;r<t.length;r++){for(var s=[],a=0;a<(null===(i=t[a])||void 0===i?void 0:i[e].length);a++){var l={};null!==(i=null===(i=t[r])||void 0===i?void 0:i[e][a])&&void 0!==i&&i.text?(l[t[r].id]=(null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.text)||"",s.push(l)):null!==(n=null===(n=t[r])||void 0===n?void 0:n[e][a])&&void 0!==n&&n.content&&(l[t[r].id]=this.content[null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.content].toHtml(this.getColumn(t[r].id),this.config)||"",s.push(l))}for(var c=0;c<s.length;c++)for(var d=0,u=Object.entries(s[c]);d<u.length;d++){var h=u[d],f=h[0],p=h[1];o[c]=g({},o[c])||{},o[c]=Object.assign(o[c],((h={})[f]=p,h))}}return o},O.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this._getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1!==(null==e?void 0:e.draggable)){e=l.locateNode(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id");return t.targetTouches&&(this._touch.start=!0),h.dragManager.onMouseDown(t,[e])}}},O.prototype._getColumn=function(t){for(var e=0,i=this.config.columns;e<i.length;e++){var n=i[e];if(n.id==t)return n}},O.prototype._init=function(){this.events=new r.EventSystem(this),this._events=new r.EventSystem(this),this._attachDataCollection(),this.export=new u.Exporter(this),this._setEventHandlers()},O.prototype._attachDataCollection=function(){var e=this;if(this.config.data instanceof h.DataCollection)return this.data=this.config.data,void(this.config.data=this.data.serialize());this._createCollection(function(t){return t.spans&&(e.config.spans=t.spans,t=t.data),t})},O.prototype._setMarks=function(o,r){for(var t=this.data.map(function(t){return{id:t.id,data:t[o.id],row:t}}),s=this.data.map(function(t){return t[o.id]}),a=this,e=0,i=t;e<i.length;e++)!function(t){var e,i,n=r(t.data,s,t.row,o);n&&(o.$cellCss=o.$cellCss||{},e=(o.$cellCss[t.id]||"").split(" "),n.split(" ").map(function(t){e.includes(t)||e.push(t)}),i=e.join(" "),n=a.getSpan(t.id,o.id),o.$cellCss[t.id]=i,n&&(n.rowspan||n.colspan&&n.column===o.id)&&n.$markCss!==i&&(n.$markCss=i))}(i[e])},O.prototype._checkMarks=function(){var e=this;this.config.columns.map(function(t){var o=t.mark;o&&("function"==typeof o?e._setMarks(t,o):e._setMarks(t,function(t,e){var i=[];e.forEach(function(t){null!=t&&""!==t&&i.push(parseFloat(t))});var n=p.getMinArrayNymber(i),e=p.getMaxArrayNymber(i);return o.max&&e===parseFloat(t)?o.max:!(!o.min||n!==parseFloat(t))&&o.min}))})},O.prototype._removeMarks=function(){var t;this.config.columns.forEach(function(t){t.mark&&(t.$cellCss={})}),null!==(t=this.config.spans)&&void 0!==t&&t.forEach(function(t){t.$markCss&&delete t.$markCss})},O.prototype._detectColsTypes=function(){this.config.columns.forEach(function(t){return t.type?t:t.format?(t.type="number",t):void(t.type||(t.type="string"))})},O.prototype._destroyContent=function(){for(var t in this.content)"comboFilter"===t&&this.content[t].destroy()},O.prototype._render=function(){this.paint()},O.prototype._initHotKey=function(t){void 0===t&&(t=!1);var e=S.getKeysHandlers(this);for(i in e)this.keyManager.exist(i)||this.keyManager.addHotKey(i,e[i]);if(!t)for(var i in this.config.hotkeys)this.keyManager.addHotKey(i,this.config.hotkeys[i])},O);function O(t,e){var i,r=s.call(this,t,e)||this;r._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},r.config=p.extend({rowHeight:40,headerRowHeight:40,footerRowHeight:40,keyNavigation:!0,sortable:!0,columns:[],data:[],tooltip:!0,rootParent:"string"==typeof t&&t||r._uid,headerSort:!0},e),r.content=w.getContent(),r._scroll={top:0,left:0},r.config.spans=null===(i=r.config.spans)||void 0===i?void 0:i.map(function(t){return D.normalizeSpan(t,r.config)}),r.config.autoWidth=r.config.autoWidth||r.config.fitToContainer,r.config.adjust=r.config.adjust||r.config.columnsAutoWidth,r.config.editable=r.config.editable||r.config.editing,r.config.leftSplit=r.config.leftSplit||r.config.splitAt,r.config.sortable&&r.config.headerSort||(r.config.sortable=!1),r.config.columns.forEach(function(t){t.format=t.format||t.dateFormat});function n(t,e,i){var n,o;t&&e&&m.isTooltip(r.config,e)&&(o=!!(n=v.toFormat(t[e.id],e.type,e.format))||"boolean"==typeof n,e.tooltipTemplate?n=e.tooltipTemplate(n,t,e):o&&e.template&&(n=e.template(n,t,e)),o&&E.tooltip(n.toString(),{css:"dhx_grid_tooltip",node:i,htmlEnable:m.isHtmlEnable(r.config,e)}))}function o(t,e){var i;e&&m.isTooltip(r.config,e)&&((i=t.target.querySelector(".dhx_grid-header-cell-text span")&&t.target.querySelector(".dhx_grid-header-cell-text span").textContent||t.target.querySelector(".dhx_grid-footer-cell-text span")&&t.target.querySelector(".dhx_grid-footer-cell-text span").textContent||"")&&E.tooltip(i,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:m.isHtmlEnable(r.config,e)}))}return r._htmlEvents={onclick:l.eventHandler(function(t){return l.locate(t)},{"dhx_grid-header-cell--sortable":function(t,e){var i,n=t.target.getAttribute("dhx_resized"),o=r._getColumn(e);o&&m.isSortable(r.config,o)&&!n&&r.events.fire(y.GridEvents.beforeSort,[o,r._sortDir?"asc":"desc"])&&(t=(i=null===(t=l.locateNodeByClassName(t,"dhx_grid-header-cell"))||void 0===t?void 0:t.querySelector(".dhx_grid-header-cell-text_content").innerHTML)?o.header.find(function(t){return t.text===i}):null,o="asc"===r._sortDir&&r._sortBy===e?"desc":"asc",r._sort(e,o,null==t?void 0:t.sortAs))},"dhx_grid-expand-cell":function(t,e){t.target.classList.contains("dhx_grid-expand-cell-icon")&&r.events.fire(y.GridEvents.expand,[e])}}),onscroll:function(t){r.events.fire(y.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])},onmouseover:{".dhx_grid-cell.dhx_boolean-cell .dhx_checkbox.dhx_cell-editor__checkbox":function(t){var e=t.composedPath(),i=r.data.getItem(e[2].getAttribute("data-dhx-id")),e=r._getColumn(e[1].getAttribute("data-dhx-col-id"));n(i,e,t.target)},".dhx_grid-cell:not(.dhx_boolean-cell)":function(t){var e=r.data.getItem(t.composedPath()[1].getAttribute("data-dhx-id")),i=r._getColumn(t.target.getAttribute("data-dhx-col-id"));n(e,i,t.target)},".dhx_grid-cell:not(.dhx_tree-cell) .dhx_grid-cell__content, .dhx_tree-cell :not(.dhx_grid-cell__content)":function(t){var e=t.composedPath(),i=r.data.getItem(e[2].getAttribute("data-dhx-id")),e=r._getColumn(e[1].getAttribute("data-dhx-col-id"));n(i,e,t.target)},".dhx_grid-cell.dhx_tree-cell .dhx_grid-cell__content":function(t){var e=t.composedPath(),i=r.data.getItem(e[3].getAttribute("data-dhx-id")),t=r._getColumn(e[2].getAttribute("data-dhx-col-id"));n(i,t,e[2])},".dhx_span-cell:not(.dhx_grid-header-cell)":function(t){var e,i=r.data.getItem(t.target.getAttribute("data-dhx-id")),n=r._getColumn(t.target.getAttribute("data-dhx-col-id")),o=r.getSpan(i.id,n.id);i&&o&&m.isTooltip(r.config,o)&&(e=o.text||v.toFormat(i[n.id],n.type,n.format),o.tooltipTemplate?e=o.tooltipTemplate(e,o):n.template&&(e=n.template(e,i,n)),e&&E.tooltip(e,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:!0}))},".dhx_grid-header-cell:not(.dhx_span-cell)":function(t){var e=r._getColumn(t.target.getAttribute("data-dhx-id"));o(t,e)},".dhx_grid-footer-cell:not(.dhx_span-cell)":function(t){var e=r._getColumn(t.target.getAttribute("data-dhx-id"));o(t,e)},".dhx_grid-header-cell.dhx_span-cell":function(t){var e=r._getColumn(t.target.getAttribute("data-dhx-id")),i=e&&e.header.find(function(t){return!(!t.rowspan&&!t.colspan)});e&&i&&m.isTooltip(r.config,e)&&((i=i.text||"")&&E.tooltip(i,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:m.isHtmlEnable(r.config,e)}))},".dhx_grid-header-cell-text_content":function(t){var e=t.composedPath(),i=r._getColumn(e[1].getAttribute("data-dhx-id"));i&&m.isTooltip(r.config,i)&&((t=e[2].querySelector(".dhx_grid-header-cell-text_content")&&e[2].querySelector(".dhx_grid-header-cell-text_content").textContent||"")&&E.tooltip(t,{css:"dhx_grid_tooltip",node:e[1],htmlEnable:m.isHtmlEnable(r.config,i)}))}}},(r.config.dragMode||r.config.dragItem)&&(h.dragManager.setItem(r._uid,r),r.config.dragItem||(r.config.dragItem="row"),r.config.dragMode||(r.config.dragMode="both")),r._init(),r.config.columns&&r._parseColumns(!0),r.config.data&&r.config.data instanceof Array&&r.config.data.length&&r.config.columns&&r.data.parse(r.config.data),r.selection=new _.Selection(r,{disabled:!r.config.selection},r.events,r._uid),r.mount(t,r._createView()),r.config.autoWidth&&r.config.autoHeight&&r._prepareData(r.config.data),a.awaitRedraw().then(function(){r.config.keyNavigation&&(r.keyManager=new c.KeyManager(function(t,e){return!(e!==r._uid||!r.events.fire(y.GridEvents.beforeKeyDown,[t]))&&(r.events.fire(y.GridEvents.afterKeyDown,[t]),!0)}),r._initHotKey(),k.focusManager.setFocusId(r._uid))}),e.autoEmptyRow&&0===r.data.getLength()&&(r._addEmptyRow(),r.paint()),r}e.Grid=o},function(t,e,i){"use strict";var y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var x=i(0),b=i(2),a=i(11),w=i(8),C=i(15),E=i(56),S=i(57),k=i(1),D=2;function O(t,e,i){var n=t.config,o=n.columns.filter(function(t){return!t.hidden}),r=a.calculatePositions(i.width,i.height,t._scroll,n,e),s=o.slice(r.xStart,r.xEnd),i=e.slice(r.yStart,r.yEnd);return y(y({},n),{data:e,columns:o,scroll:t._scroll,$positions:r,headerHeight:n.$headerLevel*n.headerRowHeight,footerHeight:n.$footerLevel*n.footerRowHeight,firstColId:o[0]&&o[0].id,events:t.events,_events:t._events,currentColumns:s,currentRows:i,sortBy:t._sortBy,sortDir:t._sortDir,content:t.content,gridId:t._uid,$renderFrom:"render"})}function M(t){if(t&&(t.tagName||(t=t._parent._container),t)){var e=t.currentStyle||window.getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)||0,e=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)||0;return{width:t.clientWidth-i,height:t.clientHeight-e}}}function T(t,e){var i,n=C.getCells(t),o=t.columns,r=t.$resizing,s=t.$totalHeight,a=t.$totalWidth,l=t.leftSplit,c=t.data,d=t.$positions,u=t.currentRows,h=t.currentColumns,f=t.eventHandlers,p=C.getSpans(t);r&&(i=k.findIndex(o,function(t){return t.id===r}),_=w.getTotalWidth(o.slice(0,i))+o[i].$width,i=x.el(".dhx_grid-resize-line",{style:{top:0,left:_,height:s}}));var g,_="string"==typeof(_=t.selection?t.selection.toHTML():null)?x.el("div.dhx_selection",{".innerHTML":_}):_,d=d,v={};if(f)for(var m in f)f.hasOwnProperty(m)&&(g=f[m],v[m]=b.eventHandler(function(t){return e=t,i=b.locate(e,"data-dhx-id"),n=b.locate(e,"data-dhx-col-id"),t=u.filter(function(t){return t.id.toString()===i})[0],e=h.filter(function(t){return t.id===n})[0],{row:i?t:{},col:n?e:{}};var e,i,n},y({},g)));return x.el(".dhx_data-wrap",y({style:{height:s,width:a,"padding-left":e.x,"padding-top":e.y},role:"presentation"},v),[x.el(".dhx_grid_data"+(l?".dhx_grid_fixed_left":""),y(y({_flags:x.KEYED_LIST},C.getHandlers(d.yStart,d.xStart,t)),{role:"rowgroup","aria-rowcount":c.length}),n),x.el(".dhx_span-spans",{role:"presentation"},p),x.el(".dhx_grid_selection",{_ref:"selection","aria-hidden":"true"},[_,i])])}function P(t,e,i){i=i.height-D,i=e?i:i-t.headerHeight;return!t.$footer||e?i:i-t.footerHeight}function L(e,t,o,r,i){void 0===o&&(o=!0),void 0===r&&(r=!1),void 0===i&&(i=!1);var s,n=!i&&e.$totalHeight>=t.height-e.headerRowHeight?b.getScrollbarWidth():0,a=t.width-D-n,l=e.columns.filter(function(t){return!t.hidden}),n=l.filter(function(t){return!t.width&&!t.$fixed&&w.isAutoWidth(e,t)}),c=w.getTotalWidth(l.filter(function(t){return t.width||t.$fixed||!w.isAutoWidth(e,t)})),d=n.reduce(function(t,e){return t+(e.gravity||1)},0);a<e.$totalWidth?(s=n.reduce(function(t,e){return t+(e.maxWidth||e.$width)},0),n.length&&n.forEach(function(t){var e=0,i=(e=o?Math.abs(a-s)*((t.gravity||1)/d):Math.abs(a-c)*((t.gravity||1)/d))<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,t.$fixed=!0):n&&(t.$width=t.maxWidth,t.$fixed=!0):t.$width=e,t.$width<20&&(t.$width=20)})):n.forEach(function(t){var e=Math.abs(a-c)*((t.gravity||1)/d),i=e<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,r&&(t.$fixed=!0)):n&&(t.$width=t.maxWidth,r&&(t.$fixed=!0)):t.$width=e,t.$width<20&&(t.$width=20),!o&&t.$fixed&&delete t.$fixed}),o&&L(e,t,!1,r,i)}e.getRenderConfig=O,e.render=function(t,e,i,n,o){e._container||(e.config.width=1,e.config.height=1),t&&t.node&&t.node.parent&&t.node.parent.el&&(m=M(t.node.parent.el),e.config.width=m.width,e.config.height=m.height);var r=e.config;if(!r)return x.el("div");if(!r.columns.length)return x.el(".dhx_grid",{"data-dhx-root-id":r.rootParent});var s=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=s.reduce(function(t,e){return t+(e.$height||0)},0);var a=M(e._container),l={width:r.width||a&&a.width||0,height:r.height||a&&a.height||0};w.isAutoWidth(r)&&(L(r,l),r.$totalWidth=w.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.width=l.width,r.height=l.height;var c=O(e,s,l);c.selection=n,c.datacollection=e.data;var d,u,h,f,p=C.getShifts(c),g=w.isCssSupport("position","sticky"),_=P(c,g,l),v={wrapper:l,sticky:g,shifts:p,gridBodyHeight:_},m=S.getFixedRows(c,y(y({},v),{name:"header",position:"top"})),a=c.$footer?S.getFixedRows(c,y(y({},v),{name:"footer",position:"bottom"})):null,s=c.$totalWidth+D<l.width?"dhx_grid-less-width":"",n=c.$totalHeight+D<l.height?"dhx_grid-less-height":"";return t.node||(t=e.getScrollState(),d=t.x,u=t.y,x.awaitRedraw().then(function(){e.scroll(d,u)})),x.el(".dhx_grid.dhx_widget",y({class:(c.css||"")+(g?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent},(h=c.data,f=r.columns,t=c.editable,o=c.multiselection,{role:"grid","aria-rowcount":h.length,"aria-colcount":f.filter(function(t){return!t.hidden}).length,"aria-readonly":t?"false":"true","aria-multiselectable":o?"true":"false"})),[x.resizer(function(t){return w.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,L(r,l,!0,!0)),e.paint()}),x.el(".dhx_grid-content",{style:y({},l),onclick:i.onclick,onmouseover:i.onmouseover,class:(s+" "+n).trim(),role:"presentation"},[g?null:m,x.el(".dhx_grid-body",{style:{height:_,width:l.width-D},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[x.el("div",{},[g?m:null,T(c,p),g?a:null])]),E.getFixedColsHeader(c,v),E.getFixedCols(c,v),S.getFixedDataRows(c,v),g?null:a])])},e.proRender=function(t,e,i,n,o){e._container||(e.config.width=1,e.config.height=1),t&&t.node&&t.node.parent&&t.node.parent.el&&(_=M(t.node.parent.el),e.config.width=_.width,e.config.height=_.height);var r=e.config;if(!r)return x.el("div");if(!r.columns.length)return x.el(".dhx_grid",{"data-dhx-root-id":r.rootParent});var s=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=s.reduce(function(t,e){return t+(e.$height||0)},0);var a=M(e._container),l={width:r.width||a&&a.width||0,height:r.height||a&&a.height||0};w.isAutoWidth(r)&&(L(r,l,!0,!1,e.scrollView&&e.scrollView.config.enable),r.$totalWidth=w.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.width=l.width,r.height=l.height;var c=O(e,s,l);c.selection=n,c.datacollection=e.data;var d,u,h=C.getShifts(c),f=w.isCssSupport("position","sticky"),p=P(c,f,l),g={wrapper:l,sticky:f,shifts:h,gridBodyHeight:p},_=S.getFixedRows(c,y(y({},g),{name:"header",position:"top"})),a=c.$footer?S.getFixedRows(c,y(y({},g),{name:"footer",position:"bottom"})):null,s=c.$totalWidth+D<l.width?"dhx_grid-less-width":"",n=c.$totalHeight+D<l.height?"dhx_grid-less-height":"";return t.node||(t=e.getScrollState(),d=t.x,u=t.y,x.awaitRedraw().then(function(){e.scroll(d,u)})),h=x.el("div",{},[f?_:null,T(c,h),f?a:null]),x.el(".dhx_grid.dhx_widget",{class:(c.css||"")+(f?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"grid","aria-rowcount":c.data.length,"aria-colcount":r.columns.filter(function(t){return!t.hidden}).length},[x.resizer(function(t){return w.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,L(r,l,!0,!0)),e.paint()}),x.el(".dhx_grid-content",{style:y({},l),onclick:i.onclick,onmouseover:i.onmouseover,class:(s+" "+n).trim(),role:"presentation"},[f?null:_,x.el(".dhx_grid-body",{style:{height:p,width:l.width-D},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[e.scrollView&&e.scrollView.config.enable?e.scrollView.render([h]):h]),E.getFixedColsHeader(c,g),E.getFixedCols(c,g),S.getFixedDataRows(c,g),f?null:a])])}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(26),a=i(43),l=i(0),o=(r=a.Cell,o(c,r),c.prototype.destructor=function(){for(var t=0,e=this._all;t<e.length;t++){var i=e[t];this._all[i].destructor()}this.config=this._cells=this._root=this._xLayout=this._isViewLayout=null,this._all={},this.unmount()},c.prototype.toVDOM=function(){if(this._isViewLayout){var t=[this.getCell(this.config.activeView).toVDOM()];return r.prototype.toVDOM.call(this,t)}var e=[];return this._inheritTypes(),this._cells.forEach(function(t){t=t.toVDOM();Array.isArray(t)?e=e.concat(t):e.push(t)}),r.prototype.toVDOM.call(this,e)},c.prototype.removeCell=function(e){if(this.events.fire(s.LayoutEvents.beforeRemove,[e])){var t=this.config.parent||this;if(t!==this)return t.removeCell(e);t=this.getCell(e);t&&(t=t.getParent(),delete this._all[e],t._cells=t._cells.filter(function(t){return t.id!=e}),t.paint()),this.events.fire(s.LayoutEvents.afterRemove,[e])}},c.prototype.addCell=function(t,e){var i;void 0===e&&(e=-1),this.events.fire(s.LayoutEvents.beforeAdd,[t.id])&&(i=this._createCell(t),e<0&&(e=this._cells.length+e+1),this._cells.splice(e,0,i),this.paint(),this.events.fire(s.LayoutEvents.afterAdd,[t.id]))},c.prototype.getId=function(t){return t<0&&(t=this._cells.length+t),this._cells[t]?this._cells[t].id:void 0},c.prototype.getRefs=function(t){return this._root.getRootView().refs[t]},c.prototype.getCell=function(t){var e;return null===(e=this._root)||void 0===e?void 0:e._all[t]},c.prototype.forEach=function(t,e,i){if(void 0===i&&(i=1/0),this._haveCells(e)&&!(i<1))for(var n=(e?this._root._all[e]:this._root)._cells,o=0;o<n.length;o++){var r=n[o];t.call(this,r,o,n),this._haveCells(r.id)&&r.forEach(t,r.id,--i)}},c.prototype.cell=function(t){return this.getCell(t)},c.prototype._getCss=function(t){var e=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",i=this.config.align?" "+e+"--"+this.config.align:"";if(t)return e+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:"");var n=this.config.parent?r.prototype._getCss.call(this):"dhx_widget dhx_layout",t=this.config.parent?"":" dhx_layout-cell";return n+(this.config.full?t:" "+e)+i},c.prototype._parseConfig=function(){var e=this,t=this.config,i=t.rows||t.cols||t.views||[];this._xLayout=!t.rows,this._cells=i.map(function(t){return e._createCell(t)})},c.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new c(this,t)):new a.Cell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},c.prototype._haveCells=function(t){if(t){t=this._root._all[t];return t._cells&&0<t._cells.length}return 0<Object.keys(this._all).length},c.prototype._inheritTypes=function(t){var e,i=this;void 0===t&&(t=this._cells),Array.isArray(t)?t.forEach(function(t){return i._inheritTypes(t)}):((e=t.config).rows||e.cols)&&(t=t.getParent(),!e.type&&t&&(t.config.type?e.type=t.config.type:this._inheritTypes(t)))},c);function c(t,e){var i=r.call(this,t,e)||this;return i._root=i.config.parent||i,i._all={},i._parseConfig(),i.config.activeTab&&(i.config.activeView=i.config.activeTab),i.config.views&&(i.config.activeView=i.config.activeView||i._cells[0].id,i._isViewLayout=!0),e.parent||(e=l.create({render:function(){return i.toVDOM()}},i),i.mount(t,e)),i}e.Layout=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,c=i(1),d=i(0),s=i(7),u=i(26),h=i(95),a=i(5),f=i(39),o=(r=s.View,o(p,r),p.prototype.paint=function(){var t;this.isVisible()&&((t=this.getRootView())?t.redraw():this._parent.paint())},p.prototype.isVisible=function(){if(!this._parent)return!(!this._container||!this._container.tagName)||Boolean(this.getRootNode());var t=this._parent.config.activeView;return(!t||t===this.id)&&(!this.config.hidden&&(!this._parent||this._parent.isVisible()))},p.prototype.hide=function(){this.events.fire(u.LayoutEvents.beforeHide,[this.id])&&(this.config.hidden=!0,this._parent&&this._parent.paint&&this._parent.paint(),this.events.fire(u.LayoutEvents.afterHide,[this.id]))},p.prototype.show=function(){var t=this;this.events.fire(u.LayoutEvents.beforeShow,[this.id])&&(this._parent&&this._parent.config&&void 0!==this._parent.config.activeView?this._parent.config.activeView=this.id:this.config.hidden=!1,this._parent&&!this._parent.isVisible()&&this._parent.show(),this.paint(),this._ui instanceof f.Grid&&this._ui.config.keyNavigation&&d.awaitRedraw().then(function(){t._ui.setColumns(t._ui.config.columns),t.paint()}),this.events.fire(u.LayoutEvents.afterShow,[this.id]))},p.prototype.expand=function(){this.events.fire(u.LayoutEvents.beforeExpand,[this.id])&&(this.config.collapsed=!1,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(u.LayoutEvents.afterExpand,[this.id]),this.paint())},p.prototype.collapse=function(){this.events.fire(u.LayoutEvents.beforeCollapse,[this.id])&&(this.config.collapsed=!0,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(u.LayoutEvents.afterCollapse,[this.id]),this.paint())},p.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse()},p.prototype._checkNextSize=function(t){var e=null!=t?t:this._getNextCell();return!!e&&(this._isXDirection()&&e.config.$autoWidth&&e.config.width?!(e.config.width=void 0):!this._isXDirection()&&e.config.$autoHeight&&e.config.height?!(e.config.height=void 0):!t&&e._checkNextSize())},p.prototype.getParent=function(){return this._parent},p.prototype.destructor=function(){var t;this.events&&this.events.clear(),window.removeEventListener("resize",this._afterWindowResized),"function"==typeof(null===(t=this.getWidget())||void 0===t?void 0:t.destructor)&&this.getWidget().destructor(),this.config=this.events=this.id=this._parent=this._handlers=this._uid=this._disabled=this._resizerHandlers=null,this.unmount()},p.prototype.getWidget=function(){return this._ui},p.prototype.getCellView=function(){return this._parent&&this._parent.getRefs(this._uid)},p.prototype.attach=function(t,e){var i=this;return this.config.html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof s.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui instanceof f.Grid&&this._ui.config.keyNavigation&&d.awaitRedraw().then(function(){i._ui.setColumns(i._ui.config.columns),i.paint()}),this._ui},p.prototype.attachHTML=function(t){this.config.html=t,this.paint()},p.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this._calculateStyle(),n=c.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",i=this.config.full||this.config.html?i:l(l({},i),n);this.config.html||(e=this._ui?((o=this._ui.getRootView()).render&&(o=d.inject(o)),[o]):t||null);var o=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?d.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),l(l({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[d.el("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,r={};if(this.config.on)for(var s in this.config.on)r["on"+s]=this.config.on[s];var a="",t=this.config.cols||this.config.rows;if(this.config.type&&t)switch(this.config.type){case"line":a=" dhx_layout-line";break;case"wide":a=" dhx_layout-wide";break;case"space":a=" dhx_layout-space"}n=d.el("div",l(l(((t={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,t),r),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?a:""),style:i}),this.config.full?[d.el("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to "+(this.config.collapsed?"expand":"collapse"):null,class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&d.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&d.el(".dhx_layout-cell-header__image-wrapper",[d.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&d.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?d.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):d.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:d.el("div",{style:l(l({},n),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?a:"")},this.config.html?[d.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:d.el(".dhx_layout-cell-content",{style:n},[d.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])]);return o?[n,o]:n}},p.prototype._getCss=function(t){return"dhx_layout-cell"},p.prototype._initHandlers=function(){var r=this;window.addEventListener("resize",this._afterWindowResized);function n(t,e){var i,n,o;void 0===e&&(e={x:0,y:0}),s.isActive&&(o=s.xLayout,i=t.targetTouches?t.targetTouches[0].clientX:t.clientX+e.x,n=t.targetTouches?t.targetTouches[0].clientY:t.clientY+e.y,t=o?"width":"height",(e=o?i-s.range.min+window.pageXOffset:n-s.range.min+window.pageYOffset)<0?e=s.resizerLength/2:e>s.size&&(e=s.size-s.resizerLength),n=(i=function(t){return parseInt(null===(t=r.config[t])||void 0===t?void 0:t.toString())})(o?"maxWidth":"maxHeight"),o=i(o?"minWidth":"minHeight"),(!n||e<n)&&(!o||o<e)&&(r.config[t]=e-s.resizerLength/2+"px",s.nextCell.config[t]=s.size-e-s.resizerLength/2+"px",s.nextCell._getAnyFlexCell()&&(s.nextCell._getAnyFlexCell().config[t]=void 0),r.paint(),r.events.fire(u.LayoutEvents.resize,[r.id])))}function i(t){var e,i,n;t.targetTouches&&t.preventDefault(),3!==t.which&&(s.isActive&&a(t),r.events.fire(u.LayoutEvents.beforeResizeStart,[r.id])&&(document.body.classList.add("dhx_no-select--resize"),i=r.getCellView(),n=(e=r._getNextCell()).getCellView(),t=r._getResizerView(),i=i.el.getBoundingClientRect(),t=t.el.getBoundingClientRect(),n=n.el.getBoundingClientRect(),s.xLayout=r._isXDirection(),s.left=i.left+window.pageXOffset,s.top=i.top+window.pageYOffset,s.collapsedSize=r._getCollapsedSize(r,e),s.margin=h.getMarginSize(r.getParent().config,s.xLayout),s.range=h.getBlockRange(i,n,s.xLayout),s.size=s.range.max-s.range.min-s.margin-s.collapsedSize,s.isActive=!0,s.nextCell=e,s.resizerLength=s.xLayout?t.width:t.height))}var s={left:null,top:null,isActive:!(this._handlers={enterCollapse:function(t){13===t.keyCode&&r._handlers.toggle()},collapse:function(){r.config.collapsable&&r.collapse()},expand:function(){r.config.collapsable&&r.expand()},toggle:function(){r.config.collapsable&&r.toggle()}}),range:null,xLayout:null,nextCell:null,size:null,resizerLength:null,margin:null,collapsedSize:null},o={},a=function(t){if(s.isActive=!1,document.body.classList.remove("dhx_no-select--resize"),t.targetTouches)for(var e in document.removeEventListener("touchend",a),document.removeEventListener("touchmove",n),o)o[e].node.contentWindow.document.removeEventListener("touchend",a),o[e].node.contentWindow.document.removeEventListener("touchmove",o[e].listener);else for(var e in document.removeEventListener("mouseup",a),document.removeEventListener("mousemove",n),o)o[e].node.contentWindow.document.removeEventListener("mouseup",a),o[e].node.contentWindow.document.removeEventListener("mousemove",o[e].listener);r.events.fire(u.LayoutEvents.afterResizeEnd,[r.id])};this._resizerHandlers={onmousedown:function(t){i(t),document.addEventListener("mouseup",a),document.addEventListener("mousemove",n);t=document.querySelectorAll("iframe");if(t.length)for(var e in t.forEach(function(t,e){var i={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};o[e]={node:t,listener:function(t){return n(t,i)}}}),o)o[e].node.contentWindow.document.addEventListener("mouseup",a),o[e].node.contentWindow.document.addEventListener("mousemove",o[e].listener)},ontouchstart:function(t){i(t),document.addEventListener("touchend",a),document.addEventListener("touchmove",n);t=document.querySelectorAll("iframe");if(t.length)for(var e in t.forEach(function(t,e){var i={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};o[e]={node:t,listener:function(t){return n(t,i)}}}),o)o[e].node.contentWindow.document.addEventListener("touchend",a),o[e].node.contentWindow.document.addEventListener("touchmove",o[e].listener)},ondragstart:function(t){return t.preventDefault()}}},p.prototype._getCollapsedSize=function(t,e){var i=0,n=this._parent,t=n._cells.indexOf(t),o=n._cells.indexOf(e);if(o-t==1)return i;for(var r=t+1;r<o;r++)n._cells[r].config.collapsed&&(this._isXDirection()?i+=45:i+=Number(n._cells[r].config.headerHeight)||37);return i},p.prototype._getCollapseIcon=function(){return this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-right":this._isXDirection()&&!this.config.collapsed?"dxi dxi-chevron-left":!this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-up":this._isXDirection()||this.config.collapsed?void 0:"dxi dxi-chevron-down"},p.prototype._isLastCell=function(){var t=this._parent;return t&&t._cells.indexOf(this)===t._cells.length-1},p.prototype._getNextCell=function(){var t=this._parent,e=t._cells.indexOf(this),e=!this._isLastCell()&&t._cells[e+1];return!!e&&(e.config.hidden||e.config.collapsed?e._getNextCell():e)},p.prototype._getAnyFlexCell=function(e){var i=this;void 0===e&&(e=!1);var t=this._parent,n=this._isXDirection()?"$autoWidth":"$autoHeight",t=null===(t=null==t?void 0:t._cells)||void 0===t?void 0:t.filter(function(t){return!0===t.config[n]&&(!!e||t.id!==i.id)});return!(null==t||!t.length)&&t[t.length-1]},p.prototype._getResizerView=function(){return this._parent.getRefs("resizer_"+this._uid)},p.prototype._isXDirection=function(){return this._parent&&this._parent._xLayout},p.prototype._calculateStyle=function(){var t=this.config;if(t){var e={},i=!1,n=!1;isNaN(Number(t.width))||(t.width=t.width+"px"),isNaN(Number(t.height))||(t.height=t.height+"px"),isNaN(Number(t.minWidth))||(t.minWidth=t.minWidth+"px"),isNaN(Number(t.minHeight))||(t.minHeight=t.minHeight+"px"),isNaN(Number(t.maxWidth))||(t.maxWidth=t.maxWidth+"px"),isNaN(Number(t.maxHeight))||(t.maxHeight=t.maxHeight+"px"),"content"===t.width&&(i=!0),"content"===t.height&&(n=!0);var o=t.width,r=t.height,s=t.cols,a=t.rows,l=t.minWidth,c=t.minHeight,d=t.maxWidth,u=t.maxHeight,h=t.gravity,f=t.collapsed,p=t.$fixed,g=-1===Math.sign(h)?0:h;"boolean"==typeof h&&(g=h?1:0);var _="boolean"==typeof h?!h:-1===Math.sign(h);this._isXDirection()?(p||o||void 0===h&&(l||d))&&(_=!0):(p||r||void 0===h&&(c||u))&&(_=!0);var v,_=_?0:g||1,g=this._isXDirection()?"x":"y";return void 0===l||f||(e.minWidth=l),void 0===c||f||(e.minHeight=c),void 0!==d&&(e.maxWidth=d),void 0!==u&&(e.maxHeight=u),void 0===this._parent&&(g=!0),void 0!==o&&"content"!==o?e.width=o:!0===g?e.width="100%":"x"===g&&(i?e.flex="0 0 auto":(v=this._isXDirection()?"1px":"auto",e.flex=_+" "+(s||a?"0 "+v:"1 auto"))),void 0!==r&&"content"!==r?e.height=r:!0===g?e.height="100%":"y"===g&&(n?e.flex="0 0 auto":(v=this._isXDirection()?"auto":"1px",e.flex=_+" "+(s||a?"0 "+v:"1 auto"))),!0===g&&void 0===t.width&&void 0===t.height&&(e.flex=_+" 1 auto"),f&&(this._isXDirection()?e.width="auto":e.height="auto",e.flex="0 0 auto"),e}},p.prototype._resizedWindow=function(){var t;void 0===this._isLastFlexCell?this._isLastFlexCell=(null===(t=this._getAnyFlexCell(!0))||void 0===t?void 0:t.id)===this.id:this._isLastFlexCell||window.removeEventListener("resize",this._afterWindowResized),this._isLastFlexCell&&(t=this._isXDirection()?"width":"height",this.config[t]=void 0,this.paint())},p);function p(t,e){var i=r.call(this,t,e)||this;return i._disabled=[],t&&t.isVisible&&(i._parent=t),i._parent&&i._parent.events?i.events=i._parent.events:i.events=new a.EventSystem(i),i.config.full=void 0===i.config.full?Boolean(i.config.header||i.config.collapsable||i.config.headerHeight||i.config.headerIcon||i.config.headerImage):i.config.full,i._afterWindowResized=i._resizedWindow.bind(i),i._initHandlers(),i.id=i.config.id||c.uid(),i._isXDirection()&&!e.width&&(e.$autoWidth=!0),i._isXDirection()||e.height||(e.$autoHeight=!0),i}e.Cell=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.PopupEvents||(e.PopupEvents={})).beforeHide="beforeHide",e.beforeShow="beforeShow",e.afterHide="afterHide",e.afterShow="afterShow",e.click="click"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SliderEvents||(e.SliderEvents={})).change="change",e.focus="focus",e.blur="blur",e.keydown="keydown",e.mousedown="mousedown",e.mouseup="mouseup"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.TimepickerEvents||(e.TimepickerEvents={})).change="change",e.beforeApply="beforeApply",e.afterApply="afterApply",e.beforeClose="beforeClose",e.afterClose="afterClose",e.apply="apply",e.close="close",e.save="save"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.CalendarEvents||(e.CalendarEvents={})).change="change",e.beforeChange="beforechange",e.modeChange="modeChange",e.monthSelected="monthSelected",e.yearSelected="yearSelected",e.cancelClick="cancelClick",e.dateMouseOver="dateMouseOver",e.dateHover="dateHover"},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(49)),n(e(111)),n(e(55))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),h=i(0),s=i(5),f=i(2),a=i(106),l=i(7),c=i(6),d=i(25),p=i(50),g=i(28),_=i(110),v=i(53),m=i(20),y=i(54),x=i(55);function b(t){return t.icon?'<span class="'+t.icon+' dhx_combobox-options__icon"></span> <span class="dhx_combobox-options__value">'+t.value+"</span>":t.src?'<img src="'+t.src+'" class="dhx_combobox-options__image" alt='+t.value+'></img> <span class="dhx_combobox-options__value">'+t.value+"</span>":'<span class="dhx_combobox-options__value">'+t.value+"</span>"}var w,o=(w=l.View,o(C,w),C.prototype.focus=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.focus()},C.prototype.blur=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.blur(),this.popup.hide()},C.prototype.enable=function(){this.config.disabled=!1,this.paint()},C.prototype.disable=function(){this.config.disabled=!0,this.paint()},C.prototype.isDisabled=function(){return this.config.disabled},C.prototype.clear=function(){this.list.selection.remove(),this._state.value="",this._filter(),this.paint()},C.prototype.getValue=function(t){var e=this.list.selection.getId();return t?r.wrapBox(e):Array.isArray(e)?e.join(","):e},C.prototype.setValue=function(t){return this._setValue(t,!1)},C.prototype.addOption=function(t,e){void 0===e&&(e=!0),t&&"string"==typeof t&&(t=this.data.add({value:t}),t=this.config.multiselection&&e?u(this.list.selection.getId(),[t]):t,this.setValue(t))},C.prototype.destructor=function(){this.popup&&this.popup.destructor(),this.events&&this.events.clear(),this.list&&this.list.destructor(),this._helper&&this._helper.destructor(),this._layout&&this._layout.destructor(),this.config=this.events=this.list=this.popup=null,this._helper=this._keyListener=this._handlers=this._state=this._uid=this._isPopupConfiqureted=null,this.unmount()},C.prototype.setState=function(t){switch(t){case"success":this._state.currentState=x.ComboState.success;break;case"error":this._state.currentState=x.ComboState.error;break;default:this._state.currentState=x.ComboState.default}this.paint()},C.prototype._setValue=function(t,e){var i=this;if(void 0===e&&(e=!1),!this._exsistId(t))return!1;this._filter(),this.list.selection.remove(),this.config.multiselection?("string"==typeof t&&(t=t.split(",")),"number"==typeof t&&(t=[t]),t.forEach(function(t){i.list.selection.add(t,!1,!1,e)})):(t=r.unwrapBox(t),this.list.selection.add(t,!1,!1,e),(t=this.data.getItem(t))&&(this._state.value=this._getItemText(t))),this.paint()},C.prototype._createLayout=function(){var t=this.list=new p.List(null,{template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!1,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data}),e=this._layout=new d.Layout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(y.selectAllView)},C.prototype._initHandlers=function(){var i=this;this.config.helpMessage&&(this._helper=new g.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={addOption:function(){return i.addOption(i._state.value)},showHelper:function(t){t.preventDefault(),t.stopPropagation(),i._helper.show(t.target,{mode:"left"===i.config.labelPosition?"bottom":"right"})},selectAll:function(){i._state.unselectActive?(i.list.selection.remove(),i.config.selectAllButton&&(i._layout.getCell("select-unselect-all").attach(y.selectAllView),i._state.unselectActive=!1)):(i.data.filter(),i.list.selection.add(),i.config.selectAllButton&&(i._layout.getCell("select-unselect-all").attach(y.unselectAllView),i._state.unselectActive=!0)),i._changePopupPosition(),i.paint()},onkeydown:function(t){var e;"Tab"===t.key&&i.popup.isVisible()?i._hideOptions():(i.popup.isVisible()||t.which!==a.KEY_CODES.DOWN_ARROW||i._showOptions(),i.popup.isVisible()&&(t.which===a.KEY_CODES.RIGHT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(p.MOVE_DOWN),t.preventDefault()),t.which===a.KEY_CODES.LEFT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(p.MOVE_UP),t.preventDefault()),t.which===a.KEY_CODES.DOWN_ARROW&&(i.list.moveFocus(p.MOVE_DOWN),t.preventDefault()),t.which===a.KEY_CODES.UP_ARROW&&(i.list.moveFocus(p.MOVE_UP),t.preventDefault()),t.which===a.KEY_CODES.ESC&&i._hideOptions(),t.which===a.KEY_CODES.ENTER&&(i.config.newOptions&&!i.data.getLength()?i.addOption(i._state.value,!0):(e=i.list.getFocus(),e=i.config.multiselection?u(i.list.selection.getId(),[e]):e,i.setValue(e)),i.config.multiselection?i._updatePopup():i._hideOptions()))),i.events.fire(x.ComboboxEvents.keydown,[t,i.list.getFocus()])},onkeyup:function(t){i.config.multiselection&&!i.config.itemsCount&&(i._state.ignoreNext?i._state.ignoreNext=!1:t.which===a.KEY_CODES.BACKSPACE&&!i._state.value&&i.config.multiselection&&i.list.selection.getId().length&&(t=(t=i.list.selection.getId())[t.length-1],i.list.selection.remove(t),i._changePopupPosition(),i.paint()))},oninput:function(t){i.config.disabled||(t=t.target.value,i.events.fire(x.ComboboxEvents.input,[t]),i._state.value=t,i._filter(),t.length?i._state.canDelete=!1:(i._state.ignoreNext=!0,i._state.canDelete=!0),i.config.multiselection||(i.list.selection.remove(),i.paint()),i.popup.isVisible()||i._showOptions(),i._updatePopup())},oninputclick:function(t){if(!i.config.disabled){if(i.focus(),t.target.classList.contains("dhx_combobox__action-remove")){var e=null===(e=i.data.getItem(f.locate(t)))||void 0===e?void 0:e.id;return e?(i.list.selection.remove(e),i._changePopupPosition(),void i.paint()):void 0}if(t.target.classList.contains("dhx_combobox__action-clear-all"))return i.list.selection.getId().forEach(function(t){return i.list.selection.remove(t)}),i.config.selectAllButton&&i._state.unselectActive&&(i._layout.getCell("select-unselect-all").attach(y.selectAllView),i._state.unselectActive=!1),void i.paint();t.preventDefault(),i.popup.isVisible()?i.focus():i._showOptions()}},toggleIcon:function(){i.focus(),i.popup.isVisible()?i._hideOptions():i._showOptions()},onfocus:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(x.ComboboxEvents.focus,[])},onblur:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(x.ComboboxEvents.blur,[])}}},C.prototype._initEvents=function(){var i=this;this.data.events.on(c.DataEvents.load,function(){i.config.value&&i._setValue(i.config.value,!0)}),this.data.events.on(c.DataEvents.afterAdd,function(){i.config.multiselection?i._changePopupPosition():i._hideOptions()}),this.list.events.on(p.ListEvents.click,function(){i.config.multiselection||i._hideOptions(),i._changePopupPosition()}),this.list.selection.events.on(m.SelectionEvents.afterSelect,function(){var t=i.getValue(i.config.multiselection);i.events.fire(x.ComboboxEvents.change,[t]),i._updateSelectedItem(t)}),this.list.selection.events.on(m.SelectionEvents.afterUnSelect,function(){var t,e=i.config.multiselection;i.config.readOnly&&!e||(t=i.getValue(e),i.events.fire(x.ComboboxEvents.change,[t]),e&&i._updateSelectedItem(t))}),this.popup.events.on(g.PopupEvents.beforeShow,function(){if(!i.popup.isVisible()&&!i._isPopupConfiqureted)return i._configurePopup(),!1}),this.config.readOnly&&this.popup.events.on(g.PopupEvents.afterShow,function(){var t;i._state.value?(t=i.list.selection.getId(),i.list.setFocus(t)):i.list.setFocus(i.data.getId(0)),i._keyListener.startNewListen(function(t){return i._findBest(t)})})},C.prototype._showOptions=function(){this.events.fire(x.ComboboxEvents.beforeOpen)&&(this._state.value.length&&(this._state.canDelete=!0),this._filter(),this._configurePopup()&&(this.events.fire(x.ComboboxEvents.open),this.events.fire(x.ComboboxEvents.afterOpen)))},C.prototype._configurePopup=function(){this._isPopupConfiqureted=!0;var t=this.getRootView();return!!(t&&t.refs&&t.refs.holder)&&(this.popup.isVisible()||this._updatePopup(),!0)},C.prototype._hideOptions=function(){var t=this;this.events.fire(x.ComboboxEvents.beforeClose)&&(this.config.readOnly&&this._keyListener.endListen(),this.list.setFocus(this.data.getId(0)),this.config.multiselection||this.config.readOnly||this.list.selection.contains()||(this._state.value=""),h.awaitRedraw().then(function(){return t.popup.isVisible()&&t.popup.hide()}),this.events.fire(x.ComboboxEvents.afterClose),this.events.fire(x.ComboboxEvents.close),this._filter(),this.paint())},C.prototype._filter=function(){var t,e,i,n=this;this.config.readOnly||(this.data.filter(function(t){return n.config.filter?n.config.filter(t,n._state.value):r.isEqualString(n._state.value,n._getItemText(t))}),this.config.multiselection?this.list.setFocus(this.data.getId(0)):(e=this.data.getIndex(this.list.selection.getId()),this.list.setFocus(this.data.getId(-1<e?e:0))),t=this._layout.getCell("list"),e=this._layout.getCell("not-found"),0===this.data.getLength()?(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").hide(),t.hide(),this._state.creatingState=!0,i=this.config.newOptions?this._state.value:"",e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").show(),!(this._state.value&&this.data.find(function(t){return t.value===n._state.value}))&&this._state.value?(this._state.creatingState=this.config.newOptions,t.show(),this.config.newOptions?(i=this._state.value,e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):e.hide()):(this._state.creatingState=!1,e.isVisible()&&(t.show(),e.hide()))))},C.prototype._findBest=function(e){var i=this,t=this.data.find(function(t){return r.isEqualString(e,i._getItemText(t))});t&&this.list.selection.getId()!==t.id&&(this.list.setFocus(t.id),this.paint())},C.prototype._exsistId=function(t){var e=this;return t instanceof Array?t.every(function(t){return e.data.exists(t)}):this.data.exists(t)},C.prototype._draw=function(){if(!this.config)return h.el("div");var t=this.config,e=t.multiselection,i=t.labelPosition,n=t.hiddenLabel,o=t.required,r=t.disabled,s=t.css,a=t.helpMessage,l=t.readOnly,c=t.placeholder,d=e?null:this.data.getItem(this.list.selection.getId()),t=!this.list.selection.getId()||"object"==typeof this.list.selection.getId()&&0===this.list.selection.getId().length,e=f.getLabelStyle(this.config);return h.el("div",{"data-dhx-widget-id":this._uid,onkeydown:this._handlers.onkeydown,onkeyup:this._handlers.onkeyup,class:"dhx_widget dhx_combobox"+("left"===i?" dhx_combobox--label-inline":"")+(n?" dhx_combobox--sr_only":"")+(o?" dhx_combobox--required":"")+(r?" dhx_combobox--disabled":"")+(s?" "+s:"")},[e?h.el("label.dhx_label.dhx_combobox__label",{style:e.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.oninputclick},a?[(e.label||o)&&h.el("span.dhx_label__holder",e.label),h.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,id:"dhx_label__help_"+this._uid})]:e.label):null,h.el("div.dhx_combobox-input-box"+(r?".dhx_combobox-input-box--disabled":"")+(l?".dhx_combobox-input-box--readonly":"")+(this._state.currentState===x.ComboState.error?".dhx_combobox-input-box--state_error":"")+(this._state.currentState===x.ComboState.success?".dhx_combobox-input-box--state_success":""),{_ref:"holder"},[h.el("div.dhx_combobox-input__icon",{onclick:this._handlers.toggleIcon},[h.el("span"+(this.popup.isVisible()?".dxi.dxi-menu-up":".dxi.dxi-menu-down"))]),h.el("div.dhx_combobox-input-list-wrapper",{onclick:this._handlers.oninputclick},[h.el("ul.dhx_combobox-input-list",u(this._drawSelectedItems(),[h.el("li.dhx_combobox-input-list__item.dhx_combobox-input-list__item--input",[h.el("input.dhx_combobox-input",{oninput:this._handlers.oninput,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_ref:"input",_key:this._uid,type:"text",placeHolder:t&&c?c:void 0,value:l&&d?this._getItemText(d):this._state.value,readOnly:l||r,required:o,"aria-label":l?"Select value":"Type or select value","aria-describedby":a?"dhx_label__help_"+this._uid:null,"aria-expanded":!0})])]))])])])},C.prototype._drawSelectedItems=function(){var t,i=this;if(!this.config.multiselection)return[];if(this.config.itemsCount){var e=this.list.selection.getId().length;return e?[h.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",[h.el("span.dhx_combobox-tag__value",(t=e,"function"==typeof(e=this.config.itemsCount)?e(t):t+" "+v.default.selectedItems)),h.el("button.dhx_button.dhx_combobox-tag__action.dhx_combobox__action-clear-all",{"aria-label":"clear all"},[h.el("span.dhx_button__icon.dxi.dxi-close-circle")])])]:[]}return this.list.selection.getId().map(function(t){var e=i.data.getItem(t);return e?h.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",{"data-dhx-id":t},[i._drawImageOrIcon(e),h.el("span.dhx_combobox-tag__value",i._getItemText(e)),h.el("button.dhx_button.dhx_button--icon.dhx_combobox-tag__action.dhx_combobox__action-remove",{type:"button","aria-label":"remove"},[h.el("span.dhx_button__icon.dxi.dxi-close-circle")])]):null})},C.prototype._drawImageOrIcon=function(t){return t.src?h.el("img.dhx_combobox-tag__image",{src:t.src,alt:""}):t.icon?h.el("span.dhx_combobox-tag__icon",{class:t.icon}):null},C.prototype._getItemText=function(t){return t?t.value:null},C.prototype._updateSelectedItem=function(t){this.config.multiselection?(this.config.selectAllButton&&!this._state.unselectActive&&this.data.getLength()===t.length?(this._layout.getCell("select-unselect-all").attach(y.unselectAllView),this._state.unselectActive=!0):this.config.selectAllButton&&this._state.unselectActive&&(this._layout.getCell("select-unselect-all").attach(y.selectAllView),this._state.unselectActive=!1),this._state.value&&(this._state.value="",this._state.canDelete=0===t.length,this._filter())):this._state.value=null!==(t=this._getItemText(this.data.getItem(t)))&&void 0!==t?t:"",this.paint()},C.prototype._changePopupPosition=function(){var t=this;this.config.multiselection&&h.awaitRedraw().then(function(){t._updatePopup()})},C.prototype._updatePopup=function(){var t=this.getRootView().refs.holder.el;this.popup.getContainer().style.width=t.offsetWidth+"px";var e=this.data.getLength()*(this.config.itemHeight||36);"string"==typeof this.config.listHeight&&this.config.listHeight.includes("px")&&(this.config.listHeight=this.config.listHeight.replace("px",""));e=e<this.config.listHeight?e:this.config.listHeight;this.popup.getContainer().style.height=Number(e)+(this.config.selectAllButton&&this.config.multiselection&&this._layout.getCell("select-unselect-all").isVisible()?33:0)+(this._state.creatingState?this._layout.getCell("not-found").height:0)+"px",this.popup.show(t,{mode:"bottom"})},C);function C(t,e){var i=w.call(this,t,r.extend({template:b,listHeight:224,itemHeight:36,disabled:!1,readOnly:!1,newOptions:!1,htmlEnable:!0},e))||this;i.config.itemsCount=i.config.itemsCount||i.config.showItemsCount,i.config.helpMessage=i.config.helpMessage||i.config.help,i.config.cellHeight&&36===i.config.itemHeight&&(i.config.itemHeight=i.config.cellHeight),i.config.labelInline&&(i.config.labelPosition="left"),Array.isArray(i.config.data)?(i.events=new s.EventSystem(i),i.data=new c.DataCollection({}),i.data.parse(i.config.data)):i.config.data?(i.data=i.config.data,i.events=new s.EventSystem(i),i.events.context=i):(i.events=new s.EventSystem(i),i.data=new c.DataCollection({})),i.popup=new g.Popup,i.popup.events.on(g.PopupEvents.afterShow,function(){i.paint()}),i.popup.events.on(g.PopupEvents.afterHide,function(){i.config.multiselection&&(i._state.value=""),i.paint()}),i.popup.events.on(g.PopupEvents.beforeHide,function(t){t&&i._hideOptions()}),(i.config.readonly||i.config.readOnly)&&(i.config.readOnly=i.config.readOnly||i.config.readonly,i._keyListener=new _.KeyListener),i._state={value:"",ignoreNext:!1,canDelete:!1,unselectActive:!1,currentState:x.ComboState.default,creatingState:!1},i._initHandlers(),i._createLayout(),i.config.value&&i._setValue(i.config.value,!0),i._initEvents();e=h.create({render:function(){return i._draw()},hooks:{didRedraw:function(){i.popup.isVisible()&&(i.focus(),i._configurePopup())}}});return i.mount(t,e),i}e.Combobox=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(51)),n(e(109)),n(e(52)),n(e(29))},function(t,r,e){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(r,"__esModule",{value:!0});var l=e(1),c=e(6),d=e(0),u=e(24),h=e(20),o=e(7),f=e(52),p=e(2),g=e(29),_=e(107);r.MOVE_UP=1,r.MOVE_DOWN=2;var v,i=(v=o.View,i(m,v),m.prototype._didRedraw=function(t){},m.prototype._dblClick=function(t){var e=p.locate(t);e&&(e=this.data.getItem(e).id,this.config.editable&&this.editItem(e),this.events.fire(g.ListEvents.doubleClick,[e,t]))},m.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},m.prototype._dragStart=function(t){var e=this;this._touch.start=!0;var i=[],n=p.locateNode(t,"data-dhx-id"),o=n&&n.getAttribute("data-dhx-id"),n=this.selection.getId();return this.config.multiselection&&n instanceof Array&&(n.map(function(t){t!==o&&e.getRootView().refs[t]&&i.push(e.getRootView().refs[t].el)}),n=a(n)),"string"==typeof n&&(n=[n]),this.config.dragMode&&!this._edited?c.dragManager.onMouseDown(t,n||[o],i):null},m.prototype.disableSelection=function(){this.selection.disable()},m.prototype.enableSelection=function(){this.selection.enable()},m.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(g.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(g.ListEvents.afterEditStart,[t])):this._edited=null},m.prototype.editEnd=function(t,e){var i;this._edited&&(null!==t&&(i=this.data.getItem(e),this.data.update(e,s(s({},i),{value:t})),this._changed=!0),this._edited=null,this.paint())},m.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},m.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.showItem(t),this.events.fire(g.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.paint())},m.prototype.getFocus=function(){return this._focus},m.prototype.destructor=function(){this.events&&this.events.clear(),this.keyManager&&this.keyManager.destructor(),this.selection&&this.selection.destructor(),this.config=this.events=this.selection=this.keyManager=null,this._handlers=this._focus=this._edited=this._events=this._topOffset=this._visibleHeight=this._touch=null,this.unmount()},m.prototype.showItem=function(t){var e,i,n,o=this.getRootView();o&&o.node&&o.node.el&&void 0!==t&&((e=this.getRootNode())&&(i=this.config.virtual,n=this.data.getIndex(t),o=Math.floor(n/e.children.length)||0,t=e.children[n-e.children.length*o],(i||t)&&(o=i?parseInt(this.config.itemHeight):t.clientHeight,(t=i?n*o:t.offsetTop)>=e.scrollTop+e.clientHeight-o?e.scrollTo(0,t-e.clientHeight+o):t<e.scrollTop&&e.scrollTo(0,t))))},m.prototype._renderItem=function(t,e){var i=this.config.itemHeight;if(t.$empty)return d.el("li",{class:"dhx_list-item",style:{height:i}});var n=this.config.template&&this.config.template(t)||t.html,o=t.id==this._focus;if(t.id==this._edited)return _.getEditor(t,this).toHTML();var r=this.data.getMetaMap(t),o=s(s(s(s({},this._events),{class:"dhx_list-item"+(r&&r.selected?" dhx_list-item--selected":"")+(o?" dhx_list-item--focus":"")+(r&&r.drop&&!this._edited?" dhx_list-item--drophere":"")+(r&&r.drag&&!this._edited?" dhx_list-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_list-item--drag":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,_ref:t.id.toString(),style:{height:i},_key:t.id}),this.getItemAriaAttrs(this,t)),{tabindex:o?0:-1});if(n)return n===t.html||this.config.htmlEnable?(o[".innerHTML"]=n,d.el("li",o)):d.el("li",o,n);t=t.text||t.value;return this.config.htmlEnable?o[".innerHTML"]=t:o.class+=" dhx_list-item--text",this.config.htmlEnable?d.el("li",o):d.el("li",o,t)},m.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});return this.config.virtual&&(e=a([d.el(".div",{style:{height:t[2]+"px"}})],e,[d.el(".div",{style:{height:t[3]+"px"}})])),d.el("ul.dhx_widget.dhx_list",s(s({style:{"max-height":this.config.height,position:"relative"},tabindex:0,class:(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),e)},m.prototype.moveFocus=function(t,e){var i,n,o=this.data.getLength();o&&(n=(i=this._focus)?this.data.getIndex(i):-1,e=e||1,t===r.MOVE_DOWN?i=this.data.getId(Math.min(n+e,o-1)):t===r.MOVE_UP&&(i=this.data.getId(Math.max(n-e,0))),this.setFocus(i))},m.prototype._getRange=function(){if(this.config.virtual){var t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight),i=this.data.getRawData(0,-1).length,n=i*e,o=this._topOffset,o=Math.max(0,Math.min(o,n-t)),r=Math.floor(o/e),t=Math.min(i-r,Math.floor(t/e)+5);return this._topOffset=o,[r,t+r,r*e,n-e*(t+r)]}return[0,-1,0,0]},m.prototype._getHotkeys=function(){var n=this;return{arrowDown:function(t){n.moveFocus(r.MOVE_DOWN),n._changed&&(n._changed=!1),t.preventDefault()},arrowUp:function(t){n.moveFocus(r.MOVE_UP),n._changed&&(n._changed=!1),t.preventDefault()},escape:function(){n.editEnd(null),n._changed&&(n._changed=!1)},enter:function(t){var e,i;n._changed?n._changed=!1:(i=(e=n.selection.getItem())instanceof Array?null===(i=e[0])||void 0===i?void 0:i.id:null==e?void 0:e.id,n.config.editable&&!n._edited&&(e&&i===n._focus||!e)?n.editItem(n._focus):n.selection.add(n._focus),n.events.fire(g.ListEvents.click,[n._focus,t]))},"shift+enter":function(t){n.selection.add(n._focus,!1,!0),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+enter":function(t){n.selection.add(n._focus,!0,!1),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+a":function(t){n.config.multiselection&&(t.preventDefault(),n.selection.remove(),n.data.map(function(t){return t.id}).forEach(function(t){"ctrlClick"===n.config.multiselection?n.selection.add(t,!0):n.selection.add(t)}))}}},m.prototype._initHotKey=function(){var t,e=this._getHotkeys();for(t in e)this.keyManager.addHotKey(t,e[t]);for(t in this.config.hotkeys)this.keyManager.addHotKey(t,this.config.hotkeys[t])},m.prototype.getItemAriaAttrs=function(t,e){var i,n,o;return s(s({role:"option","aria-selected":e.$selected?"true":"false"},(o=e,(n=t).config.dragMode&&!n._edited?{"aria-grabbed":Boolean(o.$dragtarget&&!n._edited).toString()}:{})),(i=t).config.editable?{"aria-roledescription":i._edited?"Press Enter to stop editing":"Double click to edit content"}:{})},m.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox "+(t.title||"")+", count of options = "+e+"."+(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},m);function m(t,e){void 0===e&&(e={});var n=this,i=e.itemHeight||(e.virtual?37:null);i&&"number"==typeof i&&(i=i.toString()+"px"),(n=v.call(this,t,l.extend({itemHeight:i,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},e))||this)._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null};e=n.config.data;e instanceof c.DataCollection?(n.data=e,n.events=e.events):(n.data=new c.DataCollection({}),n.events=n.data.events,e&&n.data.parse(e)),n.selection=new f.Selection({disabled:!n.config.selection,multiselection:n.config.multiselection},n.data,n.events),n.config.keyNavigation&&(n.keyManager=new u.KeyManager(function(t,e){return e==n._uid&&(!n._edited||n._edited&&"escape"!==t.key)}),n._initHotKey()),n.events.on(c.DataEvents.change,function(t,e,i){"setPage"===e&&n.showItem(n.data.getId(i[0])),n.paint()}),n.events.on(h.SelectionEvents.afterUnSelect,function(){return n.paint()}),n.events.on(h.SelectionEvents.afterSelect,function(t){t&&n.config.selection&&(n._focus=t),n.paint()}),n.events.on(g.ListEvents.afterEditEnd,n.editEnd.bind(n));e=function(e){return function(t){n.data.setMeta(n.data.getItem(t.target),"drop",e),n.paint()}};n.events.on(c.DragEvents.canDrop,e(!0)),n.events.on(c.DragEvents.cancelDrop,e(!1));e=function(e){return function(t){t.source.map(function(t){return n.data.setMeta(n.data.getItem(t),"drag",e)}),n.paint()}};n.events.on(c.DragEvents.dragStart,e(!0)),n.events.on(c.DragEvents.afterDrag,e(!1)),n._handlers={onmousedown:function(t){n._dragStart(t)},ontouchstart:function(t){n._touch.timer=setTimeout(function(){n._dragStart(t)},n._touch.duration),n._touch.timeStamp?(n._touch.dblDuration>=n._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),n._dblClick(t)),n._touch.timeStamp=null):n._touch.timeStamp=+t.timeStamp.toFixed(),setTimeout(function(){n._touch.timeStamp=null},n._touch.dblDuration)},ontouchmove:function(t){n._touch.start&&t.preventDefault(),n._clearTouchTimer()},ontouchend:function(){n._touch.start=!1,n._clearTouchTimer()},ondragstart:function(){return!(n.config.dragMode&&!n._edited)&&null},oncontextmenu:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;e&&n.events.fire(g.ListEvents.itemRightClick,[e,t])},onclick:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;e&&(n.selection.add(e,t.ctrlKey||t.metaKey,t.shiftKey),n.config.selection&&(n._focus=e),n.events.fire(g.ListEvents.click,[e,t]),n.paint())},ondblclick:function(t){n._dblClick(t)},onscroll:function(t){n.config.virtual&&(n._topOffset=t.target.scrollTop,n._visibleHeight=t.target.offsetHeight,n.paint())},onmouseover:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;e&&e!==p.locate(t.relatedTarget)&&n.events.fire(g.ListEvents.itemMouseOver,[e,t])}};e=n.config.eventHandlers;if(e)for(var o=0,r=Object.entries(e);o<r.length;o++){var s=r[o],a=s[0],s=s[1];n._handlers[a]=p.eventHandler(function(t){return p.locate(t)},s,n._handlers[a])}n.config.dragMode&&c.dragManager.setItem(n._uid,n),n._topOffset=n._visibleHeight=0;e=d.create({render:function(){return n._renderList()},hooks:{didMount:function(t){n.config.virtual&&(n._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return n._didRedraw(t)}}});return n.mount(t,e),n}r.List=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(20),o=i(6),i=(r.prototype.enable=function(){this.config.disabled=!1},r.prototype.disable=function(){this.remove(),this.config.disabled=!0},r.prototype.getId=function(){return this.config.multiselection?this._selected:this._selected[0]},r.prototype.getItem=function(){var e=this;return this.config.multiselection?this._selected.map(function(t){return e._data.getItem(t)}):this._selected.length?this._data.getItem(this._selected[0]):null},r.prototype.contains=function(t){return t?this._selected.includes(t):0<this._selected.length},r.prototype.remove=function(t){var e=this;t?this._unselectItem(t):(this._selected.forEach(function(t){return e._unselectItem(t)}),this._selected=[])},r.prototype.add=function(t,e,i,n){var o,r=this;this.config.disabled||(void 0!==t?(o=this.config.multiselection,i&&this._selected.length&&o?this._addMulti(t,n):this._addSingle(t,o&&("ctrlClick"!==o||e),n)):this._data.serialize().filter(function(t){t=t.id;return!r._selected.includes(t)}).forEach(function(t){t=t.id;r._addMulti(t,n)}))},r.prototype.destructor=function(){var e=this;this._selected.forEach(function(t){return e._unselectItem(t,!0)})},r.prototype._addMulti=function(t,e){var i=this._selected[this._selected.length-1],n=this._data.getIndex(i),o=this._data.getIndex(t);for(o<n&&(n=(t=[o,n])[0],o=t[1]);n<=o;n++){var r=this._data.getId(n);this._selectItem(r,e)}},r.prototype._addSingle=function(e,t,i){var n=this;t||this._selected.forEach(function(t){t!=e&&n._unselectItem(t)}),t&&this._selected.includes(e)?this._unselectItem(e,i):this._selectItem(e,i)},r.prototype._selectItem=function(t,e){var i=this._data.getItem(t);i&&!this._data.getMeta(i,"selected")&&(e||this.events.fire(n.SelectionEvents.beforeSelect,[t]))&&(this._selected.push(t),this._data.setMeta(i,"selected",!0),e||this.events.fire(n.SelectionEvents.afterSelect,[t]))},r.prototype._unselectItem=function(e,t){(t||this.events.fire(n.SelectionEvents.beforeUnSelect,[e]))&&(this._selected=this._selected.filter(function(t){return t!==e}),this._data.setMeta(this._data.getItem(e),"selected",!1),t||this.events.fire(n.SelectionEvents.afterUnSelect,[e]))},r);function r(t,e,i){var n=this;this.config=t,this.events=i,this._data=e,this._selected=[],this._data.events.on(o.DataEvents.removeAll,function(){n._selected=[]}),"string"==typeof this.config.multiselection&&(["click","ctrlClick"].includes(this.config.multiselection)||(this.config.multiselection=!1)),this._data.events.on(o.DataEvents.beforeRemove,function(t){var e;n._nextSelection=null,1===n._selected.length&&(e=n._data.getIndex(t.id),1<(t=n._data.getLength())&&(e=t==e-1?e-1:e+1,n._nextSelection=n._data.getId(e)))}),this._data.events.on(o.DataEvents.afterRemove,function(t){t=n._selected.indexOf(t.id);-1!==t&&n._selected.splice(t,1),n._nextSelection&&(n.add(n._nextSelection),n._nextSelection=null)})}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={notFound:"Not Found",selectAll:"Select All",unselectAll:"Unselect All",selectedItems:"selected items",createItem:"Create"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(53);e.selectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.selectAll)},e.unselectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.unselectAll)},e.emptyListView=function(t){return n.el("ul.dhx_list",[n.el("li.dhx_list-item.dhx_combobox-options__item"+(t?".dhx_combobox-options__action-create-option":""),{},t?o.default.createItem+' "'+t+'"':o.default.notFound)])},e.emptyListHeight=function(t,e){var i=document.createElement("canvas").getContext("2d",{alpha:!1});return i.font="normal 14px Roboto",t=t?o.default.createItem+' "'+t+'"':o.default.notFound,13+20*Math.ceil(i.measureText(t).width/(e-16))}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.ComboboxEvents||(e.ComboboxEvents={})).change="change",n.focus="focus",n.blur="blur",n.keydown="keydown",n.input="input",n.beforeOpen="beforeOpen",n.afterOpen="afterOpen",n.beforeClose="beforeClose",n.afterClose="afterClose",n.open="open",n.close="close",(e=e.ComboState||(e.ComboState={}))[e.default=0]="default",e[e.error=1]="error",e[e.success=2]="success"},function(t,e,i){"use strict";var x=this&&this.__assign||function(){return(x=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},b=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var w=i(0),C=i(2),E=i(15),S=i(57),k=i(8);e.getFixedColsHeader=function(t,e){if("number"==typeof t.leftSplit){for(var i=0,n=0;n<t.leftSplit;n++)t.columns[n].hidden&&i++;if(i!==t.leftSplit){for(var o=t.columns.slice(0,t.leftSplit-i),r=0,s=0,a=o;s<a.length;s++)r+=a[s].$width;o=0<=t.leftSplit&&S.getFixedRows(x(x({},t),{currentColumns:o,$positions:x(x({},t.$positions),{xStart:0,xEnd:t.leftSplit}),scroll:{top:0,left:0},columns:o}),x(x({},e),{name:"header",position:"top",shifts:{x:0,y:0}})),e=x(x({},e),{name:"header",position:"top"});return o&&w.el(".dhx_"+e.name+"-fixed-cols",x({onwheel:k.scrollFixedColsAndRows,style:{position:"absolute",top:0,left:0,maxWidth:r,overflow:"hidden"}},{role:"rowgroup","aria-rowcount":o.length}),o.body)}}},e.getFixedCols=function(t,e){var i=t.leftSplit,n=t.$totalWidth,o=t.columns,r=t.$totalHeight,s=t.headerHeight,a=t.footerHeight,l=t.$positions,c=t.scroll,d=t.data;if("number"==typeof i){for(var u=0,h=0;h<i;h++)o[h].hidden&&u++;if(u!==i){var f=n<=e.wrapper.width?0:C.getScrollbarWidth(),p=r+s+a,g=p>e.gridBodyHeight?t.$footer?p-f:e.gridBodyHeight:p<e.gridBodyHeight-f?p:t.$footer?e.gridBodyHeight:e.gridBodyHeight-f,_=o.slice(0,i-u);t.fixedColumnsWidth=k.getTotalWidth(_);var v="fixedCols",m=E.getCells(x(x({},t),{columns:_,$renderFrom:v,$positions:x(x({},l),{xStart:0,xEnd:i})})),n=e.sticky,a=x(x({},e),{name:"footer",position:"bottom"}),p=0<=i&&S.getRows(x(x({},t),{currentColumns:_,$positions:x(x({},l),{xStart:0,xEnd:i})}),x(x({},e),{name:"footer",position:"bottom"})),y=0;p&&p.forEach(function(t){return y+=t.attrs.style.height});_=function(t){return{role:"rowgroup","aria-rowcount":t}},p=n?p&&w.el(".dhx_"+a.name+"-fixed-cols",x({onwheel:k.scrollFixedColsAndRows,style:{position:"absolute",top:g<e.gridBodyHeight?g-y:null,left:0,bottom:g>=e.gridBodyHeight?0+(n?f:0)+"px":null}},_(p.length)),p):null,l=l,v=E.getSpans(x(x({},t),{$renderFrom:v}),!0);return[w.el(".dhx_grid-fixed-cols-wrap",x({style:{height:g>=e.gridBodyHeight?(n?e.gridBodyHeight:e.gridBodyHeight+s)-f:g,paddingTop:s,overflow:"hidden",width:t.fixedColumnsWidth}},{role:"presentation","aria-label":"Fixed column"}),[w.el(".dhx_grid-fixed-cols",x(x({onwheel:k.scrollFixedColsAndRows,style:{top:-c.top+s-1+"px",paddingTop:e.shifts.y,height:r,position:"absolute"},_flags:w.KEYED_LIST},E.getHandlers(l.yStart,l.xStart,t)),_(d.length)),b(m,[v&&w.el("span.dhx_span-spans",{role:"presentation"},[v])])),w.el(".dhx_frozen-cols-border",{role:"presentation"})]),t.$footer?p:null]}}}},function(t,e,i){"use strict";var w=this&&this.__assign||function(){return(w=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},f=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var C=i(0),p=i(2),v=i(19),E=i(8),n=i(4),g=i(15),_=i(56),S=2;function o(t,e,i,n){i&&(i.toLocaleLowerCase().includes("touch")?e._events:e.events).fire(i,[t,n])}function k(t,e,i){return{onclick:[o,t,i,n.GridEvents[e+"CellClick"]],onmouseover:[o,t,i,n.GridEvents[e+"CellMouseOver"]],onmousedown:[o,t,i,n.GridEvents[e+"CellMouseDown"]],ontouchstart:[o,t,i,n.GridEvents[e+"CellMouseDown"]],ondblclick:[o,t,i,n.GridEvents[e+"CellDblClick"]],oncontextmenu:[o,t,i,n.GridEvents[e+"CellRightClick"]],ontouchmove:[o,t,i,n.GridSystemEvents[e+"CellTouchMove"]],ontouchend:[o,t,i,n.GridSystemEvents[e+"CelltouchEnd"]]}}function D(t,e,i,n,o,r){void 0===o&&(o="");var s=e.type?"dhx_"+e.type+"-cell":"dhx_string-cell",t=i.content[t.content]&&i.content[t.content].toHtml(e,i),a={};return i.columns.forEach(function(t){var e=!!i.content[t[n][r].content];a[t.id]=e&&i.content[t[n][r].content].toHtml(t,i)||t[n][r].text}),C.el("."+s,{style:{class:o.trim(),padding:0}},[t&&("string"==typeof t||"number"==typeof t?C.el("div",{class:"dhx_grid-footer-cell-text",role:"presentation",".innerHTML":e.template&&"string"==typeof t?e.template(t,a,e):t}):t)])}function a(p,t){if(!p.data||!p.columns)return[];var e,g,_=p.$positions,v=t.name,m=p.currentColumns,y=p[v+"RowHeight"]||40,x=(e=v,t=(t=m).map(function(t){return t[e]||[{}]}),E.transpose(t)),b=1;return x.map(function(t,f){return C.el(".dhx_"+v+"-row",w({style:{height:y}},{role:"row","aria-rowindex":f+1}),t.map(function(n,t){var e=n.css||"",i=m[t],o=_.xStart+t+1,r="dxi dxi-sort-variant dhx_grid-sort-icon",s="none";p.sortBy&&""+i.id===p.sortBy&&!n.content&&(r+=" dhx_grid-sort-icon--"+(c=p.sortDir||"asc"),e+=" dhx_grid-"+v+"-cell--sorted ",s="asc"===c?"ascending":"descending");var a=E.isSortable(p,i)&&n.text&&"footer"!==v&&!1!==n.headerSort;a&&(e+=" dhx_grid-header-cell--sortable");var l=0===t?"dhx_first-column-cell":"",c=t===m.length-1?"dhx_last-column-cell":"";n.content||(n.align?e+=" dhx_grid-header-cell--align_"+n.align+" ":e+=" dhx_grid-header-cell--"+("number"===i.type||"percent"===i.type||"date"===i.type?"align_right":"align_left")+" "),e+=l+" "+c;c=(void 0!==i.resizable?i:p).resizable;c&&(c=C.el("div",{class:"dhx_resizer_grip_wrap","aria-hidden":"true"},[C.el("div",{class:"dhx_resizer_grip",dhx_resized:i.id,style:{height:100*x.length+"%"}},[C.el("div",{class:"dhx_resizer_grip_line"})])]),(h=i.header&&(null===(d=i.header[0])||void 0===d?void 0:d.colspan))&&(g=h,b=1),g&&b!==g&&(0===f&&(c=null),b++),"footer"===v&&(c=null)),n.align&&(e+=" dhx_align-"+n.align);var d=function(t,e,i){e={"aria-colindex":e};return"footer"===t||n.content?e.role="gridcell":(e.role="columnheader",e["aria-sort"]=i),e};if(n.content)return C.el(".dhx_grid-"+v+"-cell.dhx_grid-custom-content-cell",w(w({class:e.trim(),"data-dhx-id":i.id,_key:t,style:{width:i.$width,height:"footer"===v?y+S/2+"px":y+"px"}},k(i,v,p)),d(v,o,s)),[D(n,i,p,v,"",f),c||null]);var u,h="dhx_grid-header-cell-text_content";return p.autoHeight&&(h+=" dhx_grid-header-cell-text_content-auto-height"),C.el(".dhx_grid-"+v+"-cell",w(w({class:e.trim(),"data-dhx-id":i.id,_key:t,style:{width:i.$width,height:"footer"===v?y+S/2+"px":y+"px"}},k(i,v,p)),d(v,o,s)),[C.el("div.dhx_grid-header-cell-text",{role:"presentation"},[C.el("span",w(w({class:h},(u=n.text,a?{role:"button","aria-label":"Sort by "+u}:{})),{".innerHTML":n.text})),c||null]),a&&C.el("div",{class:r,"aria-hidden":"true"})])}))})}function l(u,h){var f=u.columns,t=E.transpose(f.map(function(t){return t[h.name]||[]})),p=u[h.name+"RowHeight"]||40,g=h.name,_=0;return t.map(function(t,d){return _=0,C.el(".dhx_span-row",{style:{top:p*d+"px",height:p},class:"dhx_header-row","aria-hidden":"true"},t.map(function(t,e){var i=f[e];_+=i.hidden?0:i.$width;var n=0===e?"dhx_first-column-cell":"",o=e===f.length-1||(t.colspan||0)+(e-1)>=f.length-1?"dhx_last-column-cell":"",r=p;t.rowspan&&(r=r*t.rowspan-1);var s=E.isSortable(u,i)&&t.rowspan&&t.text&&"footer"!==h.name,a="dxi dxi-sort-variant dhx_grid-sort-icon";u.sortBy&&""+i.id===u.sortBy&&!t.content&&(a+=" dhx_grid-sort-icon--"+(u.sortDir||"asc"));var l=i.align?"dhx_align-"+i.align:"number"!==i.type&&"percent"!==i.type&&"date"!==i.type||t.colspan?"dhx_align-left":"dhx_align-right",c="dhx_grid-header-cell "+n+" "+o+" "+(t.rowspan?"dhx_span-cell__rowspan":"")+" "+(t.align?"dhx_align-"+t.align:l)+" "+(t.css||"");s&&(c+=" dhx_grid-header-cell--sortable"),t.content||(t.align?c+=" dhx_grid-header-cell--align_"+t.align+" ":c+=" dhx_grid-header-cell--"+("number"===i.type||"percent"===i.type||"date"===i.type?"align_right":"align_left")+" ");n=null;t.content&&((n=D(t,i,u,g,c,d)).attrs.style=w(w({},n.attrs.style),{width:"100%",borderRight:"0"}));o="";0<_-i.$width&&(o="1px solid #e4e4e4");l="dhx_grid-header-cell-text_content";return u.autoHeight&&(l+=" dhx_grid-header-cell-text_content-auto-height"),t.colspan||t.rowspan?C.el(".dhx_span-cell",w({style:{width:v.getWidth(f,t.colspan,e),height:"footer"===g?r+S/2:r,left:_-i.$width,borderLeft:o,top:p*d},class:c.trim(),"data-dhx-id":i.id},k(i,g,u)),[n||t.rowspan?C.el("div.dhx_grid-header-cell-text",{role:"presentation"},[C.el("span",{class:l,".innerHTML":t.text})]):C.el("span",{class:l,".innerHTML":t.text}),s&&C.el("div",{class:a})]):null}).filter(function(t){return t}))})}function m(t){return{role:"rowgroup","aria-rowcount":t}}e.getRows=a,e.getFixedSpans=l,e.getFixedRows=function(t,e){var i=a(t,e),n=l(t,e),o=null;"footer"!==e.name||e.sticky||(o=0<=t.leftSplit&&a(w(w({},t),{currentColumns:t.columns.slice(0,t.leftSplit),$positions:w(w({},t.$positions),{xStart:0,xEnd:t.leftSplit})}),e));var r,s=((s={position:"sticky"})[e.position]=0,s);return e.sticky||(s.left=-t.scroll.left,r=-t.scroll.left,s.position="relative"),C.el(".dhx_"+e.name+"-wrapper",{class:e.sticky?"":"dhx_compatible-"+e.name,style:w(w({},s),{left:e.sticky?r:0,height:"footer"===e.name?t[e.name+"Height"]+S/2:t[e.name+"Height"],width:e.sticky?t.$totalWidth:e.wrapper.width-S}),role:"presentation"},[C.el(".dhx_grid-"+e.name+(t.leftSplit?".dhx_grid_fixed_left":""),{style:{height:"footer"===e.name?t[e.name+"Height"]+S/2:t[e.name+"Height"],left:r,paddingLeft:e.shifts.x,width:t.$totalWidth},role:"presentation"},[C.el(".dhx_"+e.name+"-rows",w({},m(f(i).length)),f(i)),C.el(".dhx_"+e.name+"-spans",{style:{marginLeft:-e.shifts.x},class:"dhx_"+e.name+"-rows",role:"presentation"},n),o&&C.el(".dhx_"+e.name+"-fixed-cols",{style:{position:"absolute",top:0,left:t.scroll.left+"px",height:"100%"}},o)]),C.el("div",{style:{width:t.$totalWidth},role:"presentation"})])},e.getFixedDataRows=function(t,e){if("number"==typeof t.topSplit){var i=t.$totalWidth,n=t.topSplit,o=t.$positions,r=t.data,s=t.$totalHeight,a=t.width,l=r.slice(0,n),c="fixedRows",d=g.getCells(w(w({},t),{data:l,$renderFrom:c,$positions:w(w({},o),{yStart:0,yEnd:n})})),u=l.reduce(function(t,e){return t+e.$height},0),h=g.getSpans(w(w({},t),{$renderFrom:c,data:r}),!0),n=_.getFixedCols(w(w({},t),{headerHeight:0,data:l,$renderFrom:c,scroll:w(w({},t.scroll),{top:-1}),$positions:w(w({},o),{yStart:0,yEnd:n}),$totalHeight:u}),w(w({},e),{shifts:w(w({},e.shifts),{y:0})}))||[];return[C.el(".dhx_grid-fixed-data-rows-wrap",{style:{top:t.headerHeight,overflow:"hidden",height:u>e.wrapper.height?e.wrapper.height:u,width:i<a?i:s>=e.gridBodyHeight?a-p.getScrollbarWidth()-2:a-2}},f([C.el(".dhx_grid-fixed-cols",w(w({onwheel:E.scrollFixedColsAndRows,style:{left:-t.scroll.left+"px",paddingLeft:e.shifts.x,position:"absolute",width:i},_flags:C.KEYED_LIST},g.getHandlers(0,o.xStart,t)),m(r.length)),f(d,[h&&C.el(".dhx_span-spans",{role:"presentation"},[h])]))],n))]}}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(115)),n(e(116)),n(e(117)),n(e(118)),n(e(30))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,e,i){"use strict";function n(t){var e=document.activeElement;e.classList.contains("dhx_alert__apply-button")&&"Enter"===t.key||e.classList.contains("dhx_alert__confirm-reject")||e.classList.contains("dhx_alert__confirm-aply")||t.preventDefault()}Object.defineProperty(e,"__esModule",{value:!0}),e.blockScreen=function(t){var e=document.createElement("div");return e.className="dhx_alert__overlay "+(t||""),document.body.appendChild(e),document.addEventListener("keydown",n),function(){document.body.removeChild(e),document.removeEventListener("keydown",n)}}},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var v=i(1),m=i(0),y=i(3),x=function(t){return t.toString()},b=function(t,e){return{role:"graphics-object","aria-label":t+"-axis"+(e?", "+e:"")}};e.bottom=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,f=[],c=0;return d&&(c=a,r=u&&!isNaN(u),s=n+a,f=t.map(function(t){var e,i=t[0],n=r?"rotate("+u+" "+i+" "+s+")":"",o=["scale-text","top-text"];return r&&(e=u%360,o.push(y.getClassesForRotateScale("bottom",e))),m.sv("text",{x:i,y:s,class:o.join(" "),transform:n},[y.verticalCenteredText(h(t[1]))])})),a=v.uid(),t=null,n=m.sv("path",{class:"main-scale",d:"M0 "+n+" H"+(i-.5),id:a}),o&&(t=m.sv("text",{dx:i/2,dy:l+c},[m.sv("textPath",{href:"#"+a,class:"scale-title "},o)])),m.sv("g",_({},b("x",o||e.text)),[n,t].concat(f))},e.bottomGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=n.targetValue,u=t.length,h=[],f="grid-line "+(a?"dash-line":"")+" "+(l?"":"hidden-line"),p=0;p<u;p++)0===p&&0===t[p][0]&&!n.hidden||(p!==c?(r="M"+t[p][0]+" 0 V "+i,s=m.sv("path",{d:r,class:f,_ref:"line"+Math.round(t[p][0])}),h.push(s),p===u-1&&t[p][0]!==e&&(o="M"+e+" 0 V "+i,o=m.sv("path",{d:o,class:f}),h.push(o))):(o="M"+t[p][0]+" 0 V "+i,o=m.sv("path",{d:o,class:f+" spec-grid-line"}),h.push(o)));return d&&(r="M"+d*e+" 0 V "+i,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.top=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,f=[],c=0;return d&&(c=a,r=u&&!isNaN(u),s=-a,f=t.map(function(t){var e,i=["scale-text"],n=t[0],o=r?"rotate("+u+" "+n+" "+s+")":"";return r&&(e=u%360,i.push(y.getClassesForRotateScale("top",e))),m.sv("text",{x:n,y:s,class:i.join(" "),transform:o},[y.verticalCenteredText(h(t[1]))])})),d=v.uid(),a=m.sv("path",{d:"M0 0 H"+i,class:"main-scale",id:d}),t=null,o&&(t=m.sv("text",{dx:i/2,dy:-l-c},[m.sv("textPath",{href:"#"+d,class:"scale-title"},o)])),m.sv("g",_({},b("x",o||e.text)),[a,t].concat(f))},e.topGrid=function(t,e,i,n){for(var o,r,s=n.dashed,a=n.grid,l=n.targetLine,c=t.length,d=[],u="grid-line "+(s?"dash-line":"")+" "+(a?"":"hidden-line"),h=0;h<c;h++)0===h&&0===t[h][0]&&!n.hidden||(h!==l?(o="M"+t[h][0]+" 0 V "+i,o=m.sv("path",{d:o,class:u,_ref:"line"+Math.round(t[h][0])}),d.push(o),h===c-1&&0!==t[h][0]&&(r="M0 0 V "+i,r=m.sv("path",{d:r,class:u}),d.push(r))):(r="M"+t[h][0]+" 0 V "+i,r=m.sv("path",{d:r,class:u+" spec-grid-line"}),d.push(r)));return m.sv("g",d)},e.left=function(t,e,i,n){var s,a,l,c=e.title,d=e.textPadding,o=e.scalePadding,r=e.textTemplate,u=e.showText,h=e.scaleRotate,f=r||x,p=[],g=0;return u&&(s=y.getFontStyle("scale-text"),a=0,l=h&&!isNaN(h),p=t.map(function(t){var e,i=t[0],n=-d,o=l?"rotate("+h+" "+n+" "+i+")":"",r=["scale-text"],t=f(t[1]);return c&&(e=y.getTextWidth(t,s),a<e&&(a=e)),l?(e=h%360,r.push(y.getClassesForRotateScale("left",e))):r.push("end-text"),m.sv("text",{x:n,y:i,class:r.join(" "),transform:o},[y.verticalCenteredText(t)])}),g=a+d),r=v.uid(),u=m.sv("path",{class:"main-scale",d:"M0 "+n+" V 0.5",id:r,_ref:t.length?"line0":null}),t=null,c&&(t=m.sv("text",{dx:n/2,dy:-o-g},[m.sv("textPath",{href:"#"+r,class:"scale-title"},c)])),m.sv("g",_({},b("y",c||e.text)),[u,t].concat(p))},e.leftGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=n.targetValue,u=t.length,h=[],f="grid-line "+(a?"dash-line":""),p=0;p<u;p++)0===p&&t[p][0]===i&&!n.hidden||(c!==p?l&&(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f}),h.push(s),p===u-1&&t[p][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:f}),h.push(o))):(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)));return d&&(r="M0 "+d*i+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.right=function(t,e,s,i){var a,l,c,d=e.title,u=e.textPadding,n=e.scalePadding,o=e.textTemplate,r=e.showText,h=e.scaleRotate,f=o||x,p=[],g=0;return r&&(a=y.getFontStyle("scale-text"),l=0,c=h&&!isNaN(h),p=t.map(function(t){var e,i=f(t[1]),n=t[0],o=s+u,r=c?"rotate("+h+" "+o+" "+n+")":"",t=["scale-text"];return d&&(e=y.getTextWidth(i,a),l<e&&(l=e)),c?(e=h%360,t.push(y.getClassesForRotateScale("right",e))):t.push("start-text"),m.sv("text",{x:o,y:n,class:t.join(" "),transform:r},[y.verticalCenteredText(i)])}),g=u+l),o=v.uid(),r=m.sv("path",{d:"M"+s+" "+i+" V 0",class:"main-scale",id:o,_ref:t.length?"line0":null}),t=null,d&&(t=m.sv("text",{dx:i/2,dy:n+g},[m.sv("textPath",{href:"#"+o,class:"scale-title"},d)])),m.sv("g",_({},b("y",d||e.text)),[r,t].concat(p))},e.rightGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=t.length,u=[],h="grid-line "+(a?"dash-line":""),f=0;f<d;f++)0===f&&t[f][0]===i&&!n.hidden||(c!==f?l&&(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h}),u.push(s),f===d-1&&t[f][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:h}),u.push(o))):(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h+" spec-grid-line"}),u.push(s)));return m.sv("g",u)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,v=i(0),a=i(3),i=i(32),o=(s=i.default,o(l,s),l.prototype.paint=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[];return this._form(t,e,n,i),this._markers(n),v.sv("g",r(r({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},l.prototype.paintformAndMarkers=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[],o=[];return this._form(t,e,n,i),this._markers(o),[v.sv("g",{class:"seria",_key:this.id},n),v.sv("g",{class:"seria_markers",_key:this.id+"_markers"},o)]},l.prototype._markers=function(t){var e,i,n=this;this.config.pointType&&(e=this.config.pointColor||this.config.color,i=this._getPointType(this.config.pointType,e),t.push.apply(t,this._points.map(function(t){return i(t[0],t[1],a.calcPointRef(t[2],n.id))})))},l.prototype._form=function(t,i,e,n){var o,r,s="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),a=this.config,l=a.id,c=a.fill,d=a.alpha,u=a.color,h=a.strokeWidth,f=this._points,a=f[f.length-1],p="";if(n){for(var g=n.length-1;0<=g;g--){var _=n[g];p+=g===f.length-1?"M"+_[0]+" "+_[1]+" ":"L"+_[0]+" "+_[1]+" "}p+=f.map(function(t,e){return e?"L "+t[0]+" "+t[1]:"V "+t[1]}).join(" ")+"Z"}else p+=f.map(function(t,e){return e?"L"+t[0]+" "+t[1]:"M0 "+i+" L0 "+t[1]+" L"+t[0]+" "+t[1]}).join(" ")+("L"+t+" "+a[1])+" V "+i;h&&(o=f.length-1,r=function(t){return t===o?-.5:t?0:.5},a=f.map(function(t,e){return e?"L"+(t[0]+r(e))+" "+t[1]:"M0 "+t[1]+" L0 "+(t[1]+r(e))+" L"+(t[0]+r(e))+" "+t[1]}).join(" ")+("L"+t+" "+a[1]),u=v.sv("path",{d:a,"stroke-width":h,stroke:u,fill:"none",class:s}),e.push(u));d=v.sv("path",{id:"seria"+l,d:p,class:s,fill:c,_ref:l,"fill-opacity":d,stroke:"none"});return e.push(d),e},l.prototype._setDefaults=function(t){var e={alpha:.3,strokeWidth:2,fill:t.color||"#5E83BA",color:"#5E83BA",active:!0,tooltip:!0,pointType:"empty"};this.config=r(r({},e),t);e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},l);function l(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(3),n={circle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2};return s.sv("circle",t)},rect:function(t,e,i,n,o,r){t={_ref:r,x:n-4,y:o-4,width:8,height:8,class:"figure point-rect",fill:e,stroke:t,"stroke-width":2};return s.sv("rect",t)},rhombus:function(t,e,i,n,o,r){t={_ref:r,points:n-5+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},triangle:function(t,e,i,n,o,r){t={_ref:r,points:n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},simpleCircle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:3,class:"figure point-simple-circle",fill:t};return s.sv("circle",t)},simpleRect:function(t,e,i,n,o,r){t={_ref:r,x:n-3,y:o-3,width:6,height:6,class:"figure point-simple-rect",fill:t};return s.sv("rect",t)},empty:function(){return null}},o={circle:function(t,e,i,n,o,r){return'<circle class="figure point-circle" _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="4" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rect:function(t,e,i,n,o,r){return'<rect _ref="'+r+'" x="'+(n-4)+'" y="'+(o-4)+'" width="8" height="8" class="figure point-rect" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rhombus:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+(n-5)+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5)+'" class="figure point-rhombus" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},triangle:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5)+'" class="figure point-triangle" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},simpleCircle:function(t,e,i,n,o,r){return'<circle _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="3" class="figure point-simple-circle" fill="'+t+'"/>'},simpleRect:function(t,e,i,n,o,r){return'<rect _ref="id" x="'+(n-3)+'" y="'+(o-3)+'" width="6" height="6" class="figure point-simple-rect" fill="'+t+'"/>'},empty:function(){return null}};function l(t){t=n[t.toString()];if(!t)throw new Error("unknown point type");return t}function c(t){t=o[t.toString()];if(!t)throw new Error("unknown point type");return t}e.getHelper=l,e.getHTMLHelper=c,e.getShadeHelper=function(t,n){var o=l(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}},e.getShadeHTMLHelper=function(t,n){var o=c(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),_=i(0),v=i(3),i=i(32),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){r.prototype.addScale.call(this,t,e),e.addPadding()},a.prototype.seriesShift=function(t){return this._shift=t,this.config.barWidth},a.prototype.paint=function(t,e,i){r.prototype.paint.call(this,t,e);if(!this.config.active)return null;var n=[];this._gradient&&n.push(_.sv("defs",[this._gradient()]));var o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),i=this._getForm(this._points,o,t,e,i),n=n.concat(i);return _.sv("g",g(g({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},a.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition<i?"bot":"top"},a.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&e<n?1/0:Math.abs(t-i)},a.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+(t[0]-this.config.barWidth/2)+" "+e+"\nV "+t[1]+"\nh "+this.config.barWidth+"\nV "+e},a.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:t-1},a.prototype._text=function(t,e,i){var n=t[0],t=(e+t[1])/2;return{x:n,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+n+" "+t+")":""}},a.prototype._getForm=function(t,i,e,n,o){function r(t){return o?o[t][1]:p}var s=this,a=this.config,l=a.baseLine,c=a.fill,d=a.alpha,u=a.showText,h=a.showTextTemplate,f=a.showTextRotate,a=[],p=this._base(n),n=t.map(function(t,e){return _.sv("path",g(g({_key:"seria"+s.config.id+e,_ref:v.calcPointRef(t[2],s.config.id),d:s._path(t,r(e)),class:i,fill:c,onclick:[s._handlers.onclick,t[2],s.config.value],onmousemove:[s._handlers.onmousemove,t[2],s.config.id],onmouseleave:[s._handlers.onmouseleave,t[2],s.config.id],"fill-opacity":d},{role:"graphics-symbol","aria-roledescription":"bar","aria-label":function(t,e,i){void 0===i&&(i=0);var n=e[3],o=i,e=e[4];return e<i&&(o=e,e=i),"xbar"===t?"bar y="+n+", x from "+o+" to "+e:"bar x="+n+", y from "+o+" to "+e}(s.config.type,t,l)}),{tabindex:0}))});return a.push.apply(a,n),(u||h||f)&&!1!==u&&(t=t.map(function(t,e){var i,n,o=s._getText(t);return i=t,n=e,16<Math.abs(r(n)-i[1])?_.sv("text",g(g({},s._text(t,r(e),f)),{"aria-hidden":"true"}),[h?v.verticalCenteredText(h(o)):v.verticalCenteredText(o)]):null}),a.push.apply(a,t)),a},a.prototype._getText=function(t){return t[4].toString()},a.prototype._setDefaults=function(t){this.config=g(g({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e,i,n=this.config.pointType,t=this.config.pointColor||this.config.color;n&&(this.config.pointType=n,this._drawPointType=this._getPointType(n,t)),this.config.gradient&&(e="gradient"+s.uid(),i=this.config.gradient(this.config.fill),this._gradient=function(){return v.linearGradient(i,e)},this.config.fill="url(#"+e+")")},a);function a(){var t=null!==r&&r.apply(this,arguments)||this;return t._shift=0,t}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i=t.length;if(i<3)a=t;else for(var n=t[0],o=t[0],r=t[1],s=t[2],a=[t[0].slice(0,2)],l=1;l<i;l++)a.push([(-n[0]+6*o[0]+r[0])/6,(-n[1]+6*o[1]+r[1])/6,(o[0]+6*r[0]-s[0])/6,(o[1]+6*r[1]-s[1])/6,r[0],r[1]]),n=o,o=r,r=s,s=t[l+2]||s;for(var c="",l=0;l<a.length;l++){var d=a[l],u=d.length;l?c+=5<u?"C"+d[0]+" "+d[1]+"\n\t\t\t\t"+d[2]+" "+d[3]+"\n\t\t\t\t"+d[4]+" "+d[5]:5===u?"L"+d[0]+" "+d[1]:"S"+d[0]+" "+d[1]+"\n\t\t\t\t"+d[2]+" "+d[3]:(c+=e?"L":"M",c+=5===u?d[0]+" "+d[1]:d[u-2]+" "+d[u-1])}return c}},function(t,e,i){i(67),i(68),i(69),i(70),i(71),t.exports=i(72)},function(t,e){Object.values=Object.values||function(e){var t=Object.prototype.toString.call(e);if(null==e)throw new TypeError("Cannot convert undefined or null to object");if(~["[object String]","[object Object]","[object Array]","[object Function]"].indexOf(t)){if(Object.keys)return Object.keys(e).map(function(t){return e[t]});var i,n=[];for(i in e)e.hasOwnProperty(i)&&n.push(e[i]);return n}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=0;o<e.length;o++){var r=e[o];if(null!=r)for(var s=Object.keys(Object(r)),a=0,l=s.length;a<l;a++){var c=s[a],d=Object.getOwnPropertyDescriptor(r,c);void 0!==d&&d.enumerable&&(n[c]=r[c])}}return n}})},function(t,e){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0==n)return!1;var o,r,e=0|e,s=Math.max(0<=e?e:n-Math.abs(e),0);for(;s<n;){if((o=i[s])===(r=t)||"number"==typeof o&&"number"==typeof r&&isNaN(o)&&isNaN(r))return!0;s++}return!1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],o=0;o<i;){var r=e[o];if(t.call(n,r,o,e))return r;o++}},configurable:!0,writable:!0}),Array.prototype.findIndex||(Array.prototype.findIndex=function(t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,o=arguments[1],r=0;r<n;r++)if(e=i[r],t.call(o,e,r,i))return r;return-1})},function(t,e){String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return e=e||0,this.indexOf(t,e)===e}}),String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))})},function(t,e){var i,n,o,r;Element&&!Element.prototype.matches&&((i=Element.prototype).matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector),"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var i=this;return{contains:function(t){return-1!==i.className.baseVal.split(" ").indexOf(t)},add:function(t){return i.setAttribute("class",i.getAttribute("class")+" "+t)},remove:function(t){var e=i.getAttribute("class").replace(new RegExp("(\\s|^)".concat(t,"(\\s|$)"),"g"),"$2");i.classList.contains(t)&&i.setAttribute("class",e)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),Object.entries||(n=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat),Object.entries=function(i){return n(Object.keys(i),function(t,e){return r(t,"string"==typeof e&&o(i,e)?[[e,i[e]]]:[])},[])}),Event.prototype.composedPath||(Event.prototype.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(document,window),this.path})},function(t,e){Math.sign=Math.sign||function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i(73);var n=i(0);e.vmdom={sv:n.sv};n=i(0);e.resizeHandler=n.resizeHandler;i=i(78);e.Chart=i.Chart},function(t,e,i){},function(t,o,r){(function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function n(t,e){this._id=t,this._clearFn=e}o.setTimeout=function(){return new n(i.call(setTimeout,e,arguments),clearTimeout)},o.setInterval=function(){return new n(i.call(setInterval,e,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(e,this._id)},o.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},o.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},o._unrefActive=o.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(75),o.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,o.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(22))},function(t,e,i){(function(t,p){!function(i,n){"use strict";var o,r,s,a,l,c,e,d,t;function u(t){delete r[t]}function h(t){if(s)setTimeout(h,0,t);else{var e=r[t];if(e){s=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{u(t),s=!1}}}}function f(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(d)&&h(+t.data.slice(d.length))}i.setImmediate||(o=1,s=!(r={}),a=i.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&t.setTimeout?t:i,l="[object process]"==={}.toString.call(i.process)?function(t){p.nextTick(function(){h(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(d="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",f,!1):i.attachEvent("onmessage",f),function(t){i.postMessage(d+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){h(t.data)},function(t){e.port2.postMessage(t)}):a&&"onreadystatechange"in a.createElement("script")?(c=a.documentElement,function(t){var e=a.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,c.removeChild(e),e=null},c.appendChild(e)}):function(t){setTimeout(h,0,t)},t.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return t={callback:t,args:e},r[o]=t,l(o),o++},t.clearImmediate=u)}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(22),i(76))},function(t,e){var i,n,t=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}}();var a,l=[],c=!1,d=-1;function u(){c&&a&&(c=!1,a.length?l=a.concat(l):d=-1,l.length&&h())}function h(){if(!c){var t=s(u);c=!0;for(var e=l.length;e;){for(a=l,l=[];++d<e;)a&&a[d].run();d=-1,e=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new f(t,e)),1!==l.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=p,t.addListener=p,t.once=p,t.off=p,t.removeListener=p,t.removeAllListeners=p,t.emit=p,t.prependListener=p,t.prependOnceListener=p,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,i){
12
+ if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dhx=e():t.dhx=e()}(window,function(){return n={},o.m=i=[function(t,o,n){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0});var e=n(77);function i(i){function e(t){var e=t.el.offsetHeight,t=t.el.offsetWidth;i(t,e)}var n=window.ResizeObserver;return n?o.el("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n(function(){return e(t)}).observe(t.el)}}}):o.el("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return e(t)},e(t)}}})}o.el=e.defineElement,o.sv=e.defineSvgElement,o.view=e.defineView,o.create=e.createView,o.inject=e.injectView,o.KEYED_LIST=e.KEYED_LIST,o.disableHelp=function(){e.DEVMODE.mutations=!1,e.DEVMODE.warnings=!1,e.DEVMODE.verbose=!1,e.DEVMODE.UNKEYED_INPUT=!1},o.resizer=i,o.resizeHandler=function(t,e){return o.create({render:function(){return i(e)}}).mount(t)},o.awaitRedraw=function(){return new t(function(t){requestAnimationFrame(function(){t()})})}}).call(this,n(12))},function(t,e,i){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(2),n=(new Date).valueOf();e.uid=function(){return"u"+n++},e.extend=function t(e,i,n){if(void 0===n&&(n=!0),i)for(var o in i){var r=i[o],s=e[o];void 0===r?delete e[o]:!n||"object"!=typeof s||s instanceof Date||s instanceof Array?e[o]=r:t(s,r)}return e},e.copy=function(t,e){var i,n={};for(i in t)e&&i.startsWith("$")||(n[i]=t[i]);return n},e.naturalSort=function(t){return t.sort(function(t,e){return"string"==typeof t?t.localeCompare(e):t-e})},e.findIndex=function(t,e){for(var i=t.length,n=0;n<i;n++)if(e(t[n]))return n;return-1},e.isEqualString=function(t,e){if(t=t.toString(),e=e.toString(),t.length>e.length)return!1;for(var i=0;i<t.length;i++)if(t[i].toLowerCase()!==e[i].toLowerCase())return!1;return!0},e.singleOuterClick=function(e){var i=function(t){e(t)&&document.removeEventListener("click",i)};document.addEventListener("click",i)},e.detectWidgetClick=function(e,i){function t(t){return i(r.locate(t,"data-dhx-widget-id")===e)}return document.addEventListener("click",t),function(){return document.removeEventListener("click",t)}},e.unwrapBox=function(t){return Array.isArray(t)?t[0]:t},e.wrapBox=function(t){return Array.isArray(t)?t:[t]},e.isDefined=function(t){return null!=t},e.range=function(t,e){if(e<t)return[];for(var i=[];t<=e;)i.push(t++);return i},e.isNumeric=function(t){return!isNaN(t-parseFloat(t))},e.downloadFile=function(t,e,i){void 0===i&&(i="text/plain");var n,o,i=new Blob([t],{type:i});window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(i,e):(n=document.createElement("a"),o=URL.createObjectURL(i),n.href=o,n.download=e,document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(o)},0))},e.debounce=function(o,r,s){var a;return function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=s&&!a;clearTimeout(a),a=setTimeout(function(){a=null,s||o.apply(t,e)},r),n&&o.apply(this,e)}},e.compare=function t(e,i){for(var n in e){if(e.hasOwnProperty(n)!==i.hasOwnProperty(n))return!1;switch(typeof e[n]){case"object":if(!t(e[n],i[n]))return!1;break;case"function":if(void 0===i[n]||"compare"!==n&&e[n].toString()!==i[n].toString())return!1;break;default:if(e[n]!==i[n])return!1}}for(var n in i)if(!e.hasOwnProperty(n))return!1;return!0},e.isType=function(t){return((Object.prototype.toString.call(t).match(/^\[object (\S+?)\]$/)||[])[1]||"undefined").toLowerCase()},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.getMaxArrayNymber=function(t){if(t.length){for(var e=-1/0,i=0,n=t.length;i<n;i++)t[i]>e&&(e=t[i]);return e}},e.getMinArrayNymber=function(t){if(t.length){for(var e=1/0,i=0,n=t.length;i<n;i++)t[i]<e&&(e=t[i]);return e}},e.getStringWidth=function(t,e){e=o({font:"normal 14px Roboto",lineHeight:20},e);var i=document.createElement("canvas"),n=i.getContext("2d");e.font&&(n.font=e.font);t=n.measureText(t).width;return r.isIE()||i.remove(),t},e.rgbToHex=function(t){if("#"===t.substr(0,1))return t;t=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t);return"#"+parseInt(t[2],10).toString(16).padStart(2,"0")+parseInt(t[3],10).toString(16).padStart(2,"0")+parseInt(t[4],10).toString(16).padStart(2,"0")}},function(t,e,i){"use strict";var c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function n(t,e,i){for(void 0===e&&(e="data-dhx-id"),void 0===i&&(i="target"),t instanceof Event&&(t=t[i]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector(t)||(null===(e=document.querySelector("[data-dhx-root-id="+t+"]"))||void 0===e?void 0:e.parentElement)||document.body:t||document.body},e.eventHandler=function(s,a,l){var c=Object.keys(a);return function(t){var e=s(t);if(void 0!==e){var i=t.target;t:for(;i;){var n=i.getAttribute&&i.getAttribute("class")||"";if(n.length)for(var o=n.split(" "),r=0;r<c.length;r++)if(o.includes(c[r])){if(!1===a[c[r]](t,e)||t.cancelBubble)return!1;break t}i=i.parentNode}}return l&&l(t),!0}},e.locateNode=n,e.locate=function(t,e){return void 0===e&&(e="data-dhx-id"),(t=n(t,e))?t.getAttribute(e):""},e.locateNodeByClassName=function(t,e){for(t instanceof Event&&(t=t.target);t;){if(e){if(t.classList&&t.classList.contains(e))return t}else if(t.getAttribute&&t.getAttribute("data-dhx-id"))return t;t=t.parentNode}},e.getBox=function(t){var e=t.getBoundingClientRect(),i=document.body,n=window.pageYOffset||i.scrollTop,t=window.pageXOffset||i.scrollLeft;return{top:e.top+n,left:e.left+t,right:i.offsetWidth-e.right,bottom:i.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var o=-1;e.getScrollbarWidth=function(){if(-1<o)return o;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",o=t.offsetWidth-t.clientWidth,document.body.removeChild(t),o};var r=-1;function s(t){t=t.getBoundingClientRect();return{left:t.left+window.pageXOffset,right:t.right+window.pageXOffset,top:t.top+window.pageYOffset,bottom:t.bottom+window.pageYOffset}}function d(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function l(t,e){var i,n,o,r=d(),s=r.rightBorder,a=r.bottomBorder-t.bottom-e.height,l=t.top-e.height;if("bottom"===e.mode?0<=a?i=t.bottom:0<=l&&(i=l):0<=l?i=l:0<=a&&(i=t.bottom),a<0&&l<0){if(e.auto)return u(t,c(c({},e),{mode:"right",auto:!1}));i=l<a?t.bottom:l}return{left:e.centering?(n=t,o=e.width,r=s,a=(o-(n.right-n.left))/2,l=n.left-a,a=n.right+a,0<=l&&a<=r?l:l<0?0:r-o):(s=s-t.left-e.width,e=t.right-e.width,0<=s||!(0<=e)&&s<e?t.left:e),top:i}}function u(t,e){var i,n,o=d(),r=o.rightBorder,s=o.bottomBorder,a=r-t.right-e.width,o=t.left-e.width;if("right"===e.mode?0<=a?n=t.right:0<=o&&(n=o):0<=o?n=o:0<=a&&(n=t.right),o<0&&a<0){if(e.auto)return l(t,c(c({},e),{mode:"bottom",auto:!1}));n=a<o?o:t.right}return{left:n,top:e.centering?(a=t,i=e.height,o=r,n=(i-(a.bottom-a.top))/2,r=a.top-n,n=a.bottom+n,0<=r&&n<=o?r:r<0?0:o-i):(i=t.bottom-e.height,!(0<=(e=s-t.top-e.height))&&(0<i||e<i)?i:t.top)}}function a(t,e){var i=("bottom"===e.mode||"top"===e.mode?l:u)(t,e),t=i.left,i=i.top;return{left:Math.round(t)+"px",top:Math.round(i)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(-1<r)return r;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",r=t.offsetHeight-t.clientHeight,document.body.removeChild(t),r},e.isIE=function(){var t=window.navigator.userAgent;return t.includes("MSIE ")||t.includes("Trident/")},e.isSafari=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Firefox/);return!e&&!i&&t(/Safari/)},e.isFirefox=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Safari/);return!e&&!i&&t(/Firefox/)},e.getRealPosition=s,e.calculatePosition=a,e.fitPosition=function(t,e){return a(s(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var i=document.styleSheets[e],n=("cssRules"in i?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push(r.selectorText+" {\n"+r.style.cssText+"\n}\n")}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,i=t.type,n=t.labelWidth,o=t.label,r=n&&n.toString().startsWith("0"),t="text"!==i&&t.required;return!!(e||t||!(!o||o&&r)||n&&!r)&&{style:(o||n)&&!r&&{width:n,"max-width":"100%"},label:o&&r?null:o}}},function(t,n,e){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var r,s,a=e(0),i=["#2A9D8F","#78586F","#E76F51","#E5A910","#11A3D0","#985F99","#217B70","#BD9391","#9C89B8","#734B5E","#D66BA0","#5C5D8D"],l=["#237396","#2780A8","#3892A3","#4DA3A0","#67BF99"];function c(e){var i={};return function(t){return i[t]||(i[t]=e(t))}}n.getDefaultColor=function(t,e){return void 0===t&&(t=0),(e?l:i)[t]},n.locator=function(e){return e?"string"==typeof e?function(t){return t[e]}:e:function(){return""}},n.log10=function(t){return Math.log(t)/Math.LN10},n.getTextWidth=(r=function(t,e){void 0===e&&(e="");var i=document.createElement("canvas").getContext("2d");return e&&(i.font=e),i.measureText(t).width},s={},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=s,n=0;n<t.length-1;n++)i[t[n]]=i[t[n]]||{},i=i[t[n]];var o=t.length-1;return i[o]||(i[o]=r.apply(void 0,t))});var d=c(function(t){var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,e.fillRect(0,0,2,2),[(e=e.getImageData(1,1,1,1).data)[0],e[1],e[2]]});function u(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}n.getColorShade=function(t,e){return"rgb("+(t=d(t).map(function(t){return Math.floor(t*e+255*(1-e))}))[0]+","+t[1]+","+t[2]+")"},n.getFontStyle=c(function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","dhx_chart");var i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("class",t),e.setAttribute("visibility","hidden"),i.textContent="test",e.appendChild(i),document.body.appendChild(e);i=getComputedStyle(i),i=i.fontSize+" "+i.fontFamily;return document.body.removeChild(e),i}),n.linearGradient=function(t,e){return t=t.stops.map(function(t){return a.sv("stop",{offset:100*t.offset+"%","stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("linearGradient",{id:e,gradientTransform:"rotate(90)"},t)},n.getRadialGradient=function(t,e,i){return e=e.map(function(t){return a.sv("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("radialGradient",o({id:i,cx:0,cy:0,gradientUnits:"userSpaceOnUse"},t),e)},n.euclideanDistance=function(t,e,i,n){return Math.sqrt((t-i)*(t-i)+(e-n)*(e-n))},n.roundToTwoNumAfterPoint=function(t){return Math.round(100*(100*t+Number.EPSILON))/100},n.verticalCenteredText=function(t){return a.sv("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},n.verticalTopText=function(t){return a.sv("tspan",{dy:"-0.5ex"},t)},n.verticalBottomText=function(t){return a.sv("tspan",{dy:"1.5ex"},t)},n.calcPointRef=function(t,e){return t+"_"+e},n.getClassesForRotateScale=function(t,e){var i="",n=[];switch("left"===t||"top"===t?n.push("start-text","end-text"):"right"!==t&&"bottom"!==t||n.push("end-text","start-text"),t){case"left":case"right":0===e?i=n[1]:0<e?180===e?i=n[0]:180<e?e<270?i=n[0]:270<e&&(i=n[1]):e<180&&(90<e?i=n[0]:e<90&&(i=n[1])):e<0&&(-180===e?i=n[0]:e<-180?-270<e?i=n[0]:e<-270&&(i=n[1]):-180<e&&(e<-90?i=n[0]:-90<e&&(i=n[1])));break;case"top":case"bottom":0<e?180<e?i=n[0]:e<180&&(i=n[1]):e<0&&(-180<e?i=n[0]:e<-180&&(i=n[1]))}return i},n.getScales=function(t){var e,i=[];for(e in t){var n=t[e];(n.min||n.max||n.maxTicks||n.text||n.value)&&i.push(e)}return i},n.getSizesSVGText=function(t,e){var i=[];return e=o({font:"normal 14px Roboto",lineHeight:18},e),i.push(n.getTextWidth(t,e.font)),i.push(e.lineHeight),i},n.superposition=u,n.checkPositions=function(t,e,i,n,o){u(t,e)&&(e=o.right?e.y-t.y+t.height:e.y-e.height-t.y,e=o.text1.y+e,Math.abs(e)+o.dy>n&&(e=0<e?n+o.dy:-n+o.dy,o.changeSector=!o.changeSector),n=Math.sqrt(Math.pow(i,2)-Math.pow((e-o.dy)*i/n,2)),n=o.right?n:-n,o.changeSector&&(n*=-1,o.line*=-1,t.class=o.right?"pie-value end-text":"pie-value start-text"),o.text1.x=n,o.text1.y=e,o.text2.x=n,o.text2.y=e+16)}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.GridEvents||(e.GridEvents={})).scroll="scroll",n.expand="expand",n.filterChange="filterChange",n.beforeResizeStart="beforeResizeStart",n.resize="resize",n.afterResizeEnd="afterResizeEnd",n.cellClick="cellClick",n.cellRightClick="cellRightClick",n.cellMouseOver="cellMouseOver",n.cellMouseDown="cellMouseDown",n.cellDblClick="cellDblClick",n.headerCellClick="headerCellClick",n.footerCellClick="footerCellClick",n.headerCellMouseOver="headerCellMouseOver",n.footerCellMouseOver="footerCellMouseOver",n.headerCellMouseDown="headerCellMouseDown",n.footerCellMouseDown="footerCellMouseDown",n.headerCellDblClick="headerCellDblClick",n.footerCellDblClick="footerCellDblClick",n.headerCellRightClick="headerCellRightClick",n.footerCellRightClick="footerCellRightClick",n.beforeEditStart="beforeEditStart",n.afterEditStart="afterEditStart",n.beforeEditEnd="beforeEditEnd",n.afterEditEnd="afterEditEnd",n.beforeKeyDown="beforeKeyDown",n.afterKeyDown="afterKeyDown",n.beforeColumnHide="beforeColumnHide",n.afterColumnHide="afterColumnHide",n.beforeColumnShow="beforeColumnShow",n.afterColumnShow="afterColumnShow",n.beforeRowHide="beforeRowHide",n.afterRowHide="afterRowHide",n.beforeRowShow="beforeRowShow",n.afterRowShow="afterRowShow",n.beforeRowDrag="beforeRowDrag",n.dragRowStart="dragRowStart",n.dragRowOut="dragRowOut",n.dragRowIn="dragRowIn",n.canRowDrop="canRowDrop",n.cancelRowDrop="cancelRowDrop",n.beforeRowDrop="beforeRowDrop",n.afterRowDrop="afterRowDrop",n.afterRowDrag="afterRowDrag",n.beforeColumnDrag="beforeColumnDrag",n.dragColumnStart="dragColumnStart",n.dragColumnOut="dragColumnOut",n.dragColumnIn="dragColumnIn",n.canColumnDrop="canColumnDrop",n.cancelColumnDrop="cancelColumnDrop",n.beforeColumnDrop="beforeColumnDrop",n.afterColumnDrop="afterColumnDrop",n.afterColumnDrag="afterColumnDrag",n.beforeRowResize="beforeRowResize",n.afterRowResize="afterRowResize",n.beforeSort="beforeSort",n.afterSort="afterSort",(n=e.GridSystemEvents||(e.GridSystemEvents={})).cellTouchMove="cellTouchMove",n.cellTouchEnd="cellTouchEnd",n.headerCellTouchMove="headerCellTouchMove",n.headerCellTouchEnd="headerCellTouchEnd",(e=e.GridSelectionEvents||(e.GridSelectionEvents={})).beforeUnSelect="beforeUnSelect",e.afterUnSelect="afterUnSelect",e.beforeSelect="beforeSelect",e.afterSelect="afterSelect"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.on=function(t,e,i){t=t.toLowerCase();this.events[t]=this.events[t]||[],this.events[t].push({callback:e,context:i||this.context})},o.prototype.detach=function(t,e){var t=t.toLowerCase(),i=this.events[t];if(e&&i&&i.length)for(var n=i.length-1;0<=n;n--)i[n].context===e&&i.splice(n,1);else this.events[t]=[]},o.prototype.fire=function(t,e){void 0===e&&(e=[]);t=t.toLowerCase();return!this.events[t]||!this.events[t].map(function(t){return t.callback.apply(t.context,e)}).includes(!1)},o.prototype.clear=function(){this.events={}},o);function o(t){this.events={},this.context=t||this}e.EventSystem=n,e.EventsMixin=function(t){var e=new n(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(9)),n(e(35)),n(e(83)),n(e(84)),n(e(13)),n(e(122)),n(e(10)),n(e(38)),n(e(37)),n(e(123)),n(e(36)),n(e(23))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(2),i=(r.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=o.toNode(t),this._container.tagName?this._view.mount(this._container):this._container.attach&&this._container.attach(this))},r.prototype.unmount=function(){var t=this.getRootView();t&&t.node&&(t.unmount(),this._view=null)},r.prototype.getRootView=function(){return this._view},r.prototype.getRootNode=function(){return this._view&&this._view.node&&this._view.node.el},r.prototype.paint=function(){this._view&&(this._view.node||this._container)&&(this._doNotRepaint=!1,this._view.redraw())},r);function r(t,e){this.config=e||{},this._uid=this.config.rootId||n.uid()}e.View=i,e.toViewLike=function(e){return{getRootView:function(){return e},paint:function(){return e.node&&e.redraw()},mount:function(t){return e.mount(t)}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),n=i(2);e.transpose=function(t,e){for(var i=[],n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.length;r++){i[r]=i[r]||[];var s=e?e(o[r]):o[r];i[r].push(s)}return i},e.getStyleByClass=function(t,e,i,n){return e=e.querySelector("."+i),i=e,i="string"==typeof(t='<div class="'+t+'"></div>')?(i.insertAdjacentHTML("beforeend",t),i.lastChild):(i.appendChild(t),t),t={color:"rgb(0, 0, 0)"===(t=window.getComputedStyle(i)).color?n.color:o.rgbToHex(t.color),background:"rgba(0, 0, 0, 0)"===t.backgroundColor?n.background:o.rgbToHex(t.backgroundColor),fontSize:parseFloat(t.fontSize)},e.removeChild(i),t.color===n.color&&t.background===n.background&&t.fontSize===n.fontSize?null:t},e.removeHTMLTags=function(t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t?"":(""+(null==t?"":t)).replace(/<[^>]*>/g,"").replace(/["]/g,"&quot;").trim()},e.isCssSupport=function(e,i){try{return CSS.supports(e,i)}catch(t){var n=document.createElement("div");return n.style[e]=i,n.style[e]===i}},e.isRowEmpty=function(i){if(i)return Object.keys(i).reduce(function(t,e){return"id"!==e&&!e.startsWith("$")&&t&&void 0!==i[e]&&""!==i[e]?void 0:t},!0)},e.isSortable=function(t,e){return!1!==e.sortable&&t.sortable||e.sortable},e.isAutoWidth=function(e,t){if(t)return!1!==t.autoWidth&&e.autoWidth||t.autoWidth;var i=!1;return e.columns.map(function(t){(!1!==t.autoWidth&&e.autoWidth||t.autoWidth)&&(i=!0)}),i},e.isTooltip=function(t,e){return!1!==e.tooltip&&t.tooltip||e.tooltip},e.isHtmlEnable=function(t,e){return!1!==e.htmlEnable&&t.htmlEnable||e.htmlEnable},e.getTotalWidth=function(t){return t.reduce(function(t,e){return t+(e.$width||0)},0)},e.getTotalHeight=function(t){return t.reduce(function(t,e){return t+(e.$height||0)},0)},e.scrollFixedColsAndRows=function(t){var e=n.locateNode(t,"data-dhx-widget-id").querySelector(".dhx_grid-body"),i=t.deltaY,i=t.shiftKey?[i,0]:[0,i];null!=e&&e.scrollBy.apply(e,i)}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.TreeFilterType||(e.TreeFilterType={})).all="all",n.level="level",n.leafs="leafs",(n=e.DataEvents||(e.DataEvents={})).afterAdd="afteradd",n.beforeAdd="beforeadd",n.removeAll="removeall",n.beforeRemove="beforeremove",n.afterRemove="afterremove",n.change="change",n.load="load",n.loadError="loaderror",n.beforeLazyLoad="beforelazyload",n.afterLazyLoad="afterlazyload",n.dataRequest="dataRequest",(n=e.DragEvents||(e.DragEvents={})).beforeDrag="beforeDrag",n.dragStart="dragStart",n.dragOut="dragOut",n.dragIn="dragIn",n.canDrop="canDrop",n.cancelDrop="cancelDrop",n.beforeDrop="beforeDrop",n.afterDrop="afterDrop",n.afterDrag="afterDrag",(e=e.DataDriver||(e.DataDriver={})).json="json",e.csv="csv",e.xml="xml"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(13),o=i(36);e.isEqualObj=function(t,e){for(var i in t)if(t[i]!==e[i]||Array.isArray(t[i]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var n=[],o=[];for(t.replace(/(\d+)|(\D+)/g,function(t,e,i){n.push([e||1/0,i||""])}),e.replace(/(\d+)|(\D+)/g,function(t,e,i){o.push([e||1/0,i||""])});n.length&&o.length;){var i=n.shift(),r=o.shift(),r=i[0]-r[0]||i[1].localeCompare(r[1]);if(r)return r}return n.length-o.length}return t-e},e.findByConf=function(t,e){if("function"==typeof e){if(e.call(this,t))return t}else if(e.by&&e.match&&t[e.by]===e.match)return t},e.isDebug=function(){var t=window.dhx;if(void 0!==t)return void 0!==t.debug&&t.debug},e.dhxWarning=function(t){console.warn(t)},e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"==e?new n.DataProxy(t):"object"==e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,e=e&&e.dataDrivers||o.dataDrivers;if(e[t])return new e[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(e)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var i,n={};for(i in t)i.startsWith("$")||e&&e[i]||(n[i]=t[i]);return n},e.isTreeCollection=function(t){return Boolean(t.getRoot)},e.hasJsonOrArrayStructure=function(t){if("object"==typeof t)return!0;if("string"!=typeof t)return!1;try{var e=JSON.parse(t);return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}catch(t){return!1}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var v=i(1),O=i(8),M=i(14);function l(t,e){t[e]&&("string"==typeof t[e]?t[e]=[{text:""+t[e]}]:t[e]=t[e].map(function(t){return"string"==typeof t&&(t={text:t}),t}))}e.normalizeColumns=function(t,e){var i=t.columns,n=t.htmlEnable;void 0===e&&(e=!1);for(var o=0,r=i;o<r.length;o++){var s=r[o];s.$htmlEnable=!(!s.htmlEnable&&!n),s.$cellCss=s.$cellCss||{},l(s,"header"),l(s,"footer"),s.header.reduce(function(t,e){return t||!!e.content},!1)&&(s.$uniqueData=[]),s.minWidth&&s.minWidth<20&&(s.minWidth=20),s.maxWidth&&s.maxWidth<20&&(s.maxWidth=20);var a=s.minWidth||100;s.width&&(a=(a=s.maxWidth&&s.minWidth?s.width>=s.minWidth&&s.width<=s.maxWidth?s.width:s.width>=s.maxWidth?s.maxWidth:s.minWidth:s.maxWidth?s.width<=s.maxWidth?s.width:100<s.maxWidth?s.maxWidth:100:!s.minWidth||s.width>=s.minWidth?s.width:s.minWidth)<20?20:a),s.$width=s.$width&&!e?s.$width:a,s.$width>s.maxWidth&&(s.$width=s.maxWidth),s.$width<s.minWidth&&(s.$width=s.minWidth)}},e.countColumns=function(t,e){var n=0,o=0,r=0,s=!1,i=0,a=!1;return e.forEach(function(t){if(n=Math.max(n,t.header.length),r+=t.$width,t.footer&&(o=Math.max(o,t.footer.length),a=a||!0),!s)for(var e=0,i=t.header;e<i.length;e++)if(i[e].colspan)return void(s=!0)}),e.forEach(function(t){if(t.header.length<n)for(var e=0;e<n;e++)t.header[e]=t.header[e]||{text:""};if(a&&(t.footer=t.footer||[]),t.footer&&t.footer.length<o)for(e=0;e<o;e++)t.footer[e]=t.footer[e]||{text:""};t.header=t.header.map(function(t){return"object"!=typeof t&&(t={text:t}),t.css=t.css||"",t.text||t.css.includes("dhx_cell-empty")||(t.css+=" dhx_cell-empty"),t}),""===t.header[0].text&&i++}),t.$totalWidth=r,t.$headerLevel=n,t.$footerLevel=o,t.$colspans=s,t.$footer=a,i},e.calculatePositions=function(t,e,i,n,o){for(var r=n.columns||[],s=r.length,a=o||[],l=a.length,o=null!==(c=n.leftSplit)&&void 0!==c?c:0,c=null!==(c=n.topSplit)&&void 0!==c?c:0,d=0,u=i.left,h=n.$totalWidth/s,f=0;f<s;f++){if(!(0<(u-=r[f].$width)+h/2))break;d++}for(var p=0,g=i.top,_=n.$totalHeight/l,f=0;f<l;f++){if(!(0<(g-=(D=a[f]).$height)+_/2))break;p++}for(var v=0,m=0,y=-1/0,x=1/0,b=0;b<s;b++){var w=r[b];d<=b&&v<t&&!w.hidden&&(v+=w.$width,m++),w.$width>y&&(y=w.$width),w.$width<x&&(x=w.$width)}for(var C=0,E=0,S=-1/0,k=1/0,b=0;b<l;b++){var D=a[b];p<=b&&C<e&&!D.hidden&&(C+=D.$height,E++),D.$height>S&&(S=D.$height),D.$height<k&&(k=D.$height)}return k=k<n.rowHeight?k:n.rowHeight,i=Math.round(y/x),n=Math.round(S/k),{xStart:o<=d-i?d-i:o,xEnd:d+m+i,yStart:c<=p-n?p-n:c,yEnd:p+E+n}},e.getUnique=function(t,e,i){var n=t.map(function(t){return t[e]});return i&&n.forEach(function(t,e){null!=t&&t.includes(", ")&&(t.split(", ").forEach(function(t){return n.push(t)}),delete n[e])}),n.filter(function(t,e,i){return i.indexOf(t)===e&&v.isDefined(t)}).sort()},e.getMaxRowHeight=function(t,e,i){void 0===i&&(i={font:"20px Roboto",lineHeight:20});var n=document.createElement("canvas"),o=n.getContext("2d",{alpha:!1});o.font=i.font;for(var r={},s=e.length,a=0;a<s;a++)e[a].template?r[e[a].id]={width:e[a].$width||0,htmlEnable:e[a].$htmlEnable,template:e[a].template,cols:e[a]}:r[e[a].id]={width:e[a].$width||0,htmlEnable:e[a].$htmlEnable};for(var l=[],c=[],d=0,u=Object.entries(t);d<u.length;d++){var h,f=u[d],p=f[0],g=f[1];!r[p]||"id"===p||"height"===p||p.startsWith("$")||"string"!=typeof g&&"number"!=typeof g||(h="",h=null!==(f=r[p])&&void 0!==f&&f.template?(f=r[p].template(g,t,r[p].cols),r[p].htmlEnable?O.removeHTMLTags(f):f):"string"==typeof g?r[p].htmlEnable?O.removeHTMLTags(g):g:g.toString(),l.push(h.split("\n").length),c.push(Math.round(o.measureText(h).width/(null===(p=r[p])||void 0===p?void 0:p.width))))}var _=Math.max(v.getMaxArrayNymber(l),v.getMaxArrayNymber(c));return n.remove(),_*i.lineHeight},e.getCalculatedRowHeight=function(t,e){void 0===e&&(e={rowHeight:40,padding:8});var i=e.rowHeight<40?t:t+2*e.padding;return t<e.rowHeight?e.rowHeight:i},e.getTreeCellWidthOffset=function(t){return 20+20*t.$level-(t.$items?20:0)},e.getMaxColsWidth=function(t,e,i,n){if(void 0===i&&(i={font:"normal 14.4px Arial"}),t.length&&e.length){var o=document.createElement("canvas"),r=o.getContext("2d",{alpha:!1});r.font=i.font;for(var s={},a=e.length,l=0;l<a;l++){var c=e[l],d=c.template,u=c.$htmlEnable,h=c.format,f=c.id,p=c.type;s[f]=d&&"data"===n?{width:20,htmlEnable:u,template:d,cols:c,type:p}:{width:20,htmlEnable:u,format:"date"===p?h||"%M %d %Y":h,type:p}}for(var g=t.length,l=0;l<g;l++)for(var _=0,v=Object.entries(t[l]);_<v.length;_++){var m,y,x=v[_],b=x[0],w=x[1],C=s[b];C&&"id"!==b&&"height"!==b&&!b.startsWith("$")&&("string"==typeof w||"number"==typeof w||w instanceof Date)&&(d=C.template,m=C.cols,h=C.format,p=C.type,y=C.htmlEnable,x=C.width,C=void 0,C="function"==typeof d?(m=d(w,t[l],m),y?O.removeHTMLTags(m):m):y?O.removeHTMLTags(w):w.toString(),(y=h&&"date"===p&&new Date(C))&&(C=M.getFormattedDate(h,y)),x<(C=r.measureText(C).width)&&(s[b].width=C))}o.remove();for(var E={},S=0,k=Object.entries(s);S<k.length;S++){var D=k[S],b=D[0],w=D[1];E[b]=Math.ceil(w.width)}return E}},e.toFormat=function(s,t,a){if("boolean"==typeof s)return s;if(!s&&"number"!=typeof s)return s;switch(t){case"number":case"percent":return a=a||"#",v.isDefined(s)&&!isNaN(Number(s))?function(t){var e=a.replace(/#+/g,"#").split("#").filter(function(t){return t}),i=a.match(/0/g)&&a.match(/0/g).length;s=("percent"===t?100*Number(s):s).toString();var n,o,r=Math.trunc(Number(s));i&&(o=s.split(".")[1]||"0",n=e.find(function(t){return t.includes("0")}).replace(/0+/g,""),o=Number("0."+o).toFixed(i),1<=Number(o)&&r++,o=o.toString().split(".")[1].padEnd(i,"0"));var r=(s<0&&0===Math.abs(r)?"-":"")+r,e=e.find(function(t){return!t.includes("0")}),r=e?r.replace(/(\d)(?=(\d{3})+(\D|$))/g,"$1"+e):r;return r+=(n||"")+(o||""),"percent"===t?r+"%":r}(t):s;case"date":return a=a||"%M %d %Y","string"==typeof s?s=M.getFormattedDate(a,M.stringToDate(s,a)):"object"==typeof s&&(s=M.getFormattedDate(a,s)),s;default:return s}}},function(t,e,i){(function(o,r){!function(){o="undefined"!=typeof window?window:this;var e=1,i={},n=!1;function d(t){o.setImmediate?r(t):o.importScripts?setTimeout(t):(i[++e]=t,o.postMessage(e,"*"))}function u(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,i,n=this,r=0,s=0,o=[];(n.promise=n).resolve=function(t){return e=n.fn,i=n.er,r||(s=t,r=1,d(c)),n},n.reject=function(t){return e=n.fn,i=n.er,r||(s=t,r=2,d(c)),n},n._d=1,n.then=function(t,e){if(1!=this._d)throw TypeError();var i=new u;return i.fn=t,i.er=e,3==r?i.resolve(s):4==r?i.reject(s):o.push(i),i},n.catch=function(t){return n.then(null,t)};var a=function(t){r=t||4,o.map(function(t){3==r&&t.resolve(s)||t.reject(s)})};try{"function"==typeof t&&t(n.resolve,n.reject)}catch(t){n.reject(t)}return n;function l(t,e,i,n){if(2==r)return n();if("object"!=typeof s&&"function"!=typeof s||"function"!=typeof t)n();else try{var o=0;t.call(s,function(t){o++||(s=t,e())},function(t){o++||(s=t,i())})}catch(t){s=t,i()}}function c(){var t;try{t=s&&s.then}catch(t){return s=t,r=2,c()}l(t,function(){r=1,c()},function(){r=2,c()},function(){try{1==r&&"function"==typeof e?s=e(s):2==r&&"function"==typeof i&&(s=i(s),r=1)}catch(t){return s=t,a()}s==n?(s=TypeError(),a()):l(t,function(){a(3)},a,function(){a(1==r&&3)})})}}o.setImmediate||o.addEventListener("message",function(t){if(t.source==o)if(n)d(i[t.data]);else{n=!0;try{i[t.data]()}catch(t){}delete i[t.data],n=!1}}),u.resolve=function(e){if(1!=this._d)throw TypeError();return e instanceof u?e:new u(function(t){t(e)})},u.reject=function(i){if(1!=this._d)throw TypeError();return new u(function(t,e){e(i)})},u.all=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return u.reject(TypeError());var o=new u;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){return n[e]=t,i(),t},i)}))}(),o},u.race=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return u.reject(TypeError());if(0==n.length)return new u;var o=new u;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){i(null,t)},i)}))}(),o},u._d=1,t.exports=u}()}).call(this,i(22),i(74).setImmediate)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(23),i=(o.prototype.updateUrl=function(t,e){for(var i in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[i]=e[i],this.url+=i+"="+encodeURIComponent(e[i])+"&";this.url=this.url.slice(0,-1)},o.prototype.load=function(){return n.ajax.get(this.url,null,{responseType:"text"})},o.prototype.save=function(t,e){switch(e){case"delete":return n.ajax.delete(this.url,t);case"update":return n.ajax.put(this.url,t);case"insert":default:return n.ajax.post(this.url,t)}},o);function o(t,e){this.url=this._url=t,this.config=e}e.DataProxy=i},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e(1),o=e(1);n.locale={monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Monday"],cancel:"Cancel"};var v,r={"%d":function(t){t=t.getDate();return t<10?"0"+t:t},"%j":function(t){return t.getDate()},"%l":function(t){return n.locale.days[t.getDay()]},"%D":function(t){return n.locale.daysShort[t.getDay()]},"%m":function(t){t=t.getMonth()+1;return t<10?"0"+t:t},"%n":function(t){return t.getMonth()+1},"%M":function(t){return n.locale.monthsShort[t.getMonth()]},"%F":function(t){return n.locale.months[t.getMonth()]},"%y":function(t){return t.getFullYear().toString().slice(2)},"%Y":function(t){return t.getFullYear()},"%h":function(t){t=t.getHours()%12;return 0===t&&(t=12),t<10?"0"+t:t},"%g":function(t){t=t.getHours()%12;return 0===t&&(t=12),t},"%H":function(t){t=t.getHours();return t<10?"0"+t:t},"%G":function(t){return t.getHours()},"%i":function(t){t=t.getMinutes();return t<10?"0"+t:t},"%s":function(t){t=t.getSeconds();return t<10?"0"+t:t},"%a":function(t){return 12<=t.getHours()?"pm":"am"},"%A":function(t){return 12<=t.getHours()?"PM":"AM"},"%u":function(t){return t.getMilliseconds()}},m={"%d":function(t,e){/(^([0-9][0-9])$)/i.test(e)?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e){/(^([0-9]?[0-9])$)/i.test(e)?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e){var i=/(^([0-9][0-9])$)/i.test(e);i?t.setMonth(Number(e)-1):t.setMonth(Number(0)),i&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e){var i=/(^([0-9]?[0-9])$)/i.test(e);i?t.setMonth(Number(e)-1):t.setMonth(Number(0)),i&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,e){var i=o.findIndex(n.locale.monthsShort,function(t){return t===e});-1===i?t.setMonth(0):t.setMonth(i),-1!==i&&t.getMonth()!==i&&t.setMonth(i)},"%F":function(t,e){var i=o.findIndex(n.locale.months,function(t){return t===e});-1===i?t.setMonth(0):t.setMonth(i),-1!==i&&t.getMonth()!==i&&t.setMonth(i)},"%y":function(t,e){/(^([0-9][0-9])$)/i.test(e)?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e){/(^([0-9][0-9][0-9][0-9])$)/i.test(e)?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,i){/(^0[1-9]|1[0-2]$)/i.test(e)&&"pm"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,i){/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e)&&"pm"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e){/(^[0-2][0-9]$)/i.test(e)?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e){/(^[1-9][0-9]?$)/i.test(e)?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e){/(^([0-5][0-9])$)/i.test(e)?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e){/(^([0-5][0-9])$)/i.test(e)?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e){/(^([0-9][0-9][0-9])$)/i.test(e)?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e){"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e){"PM"===e&&t.setHours(t.getHours()+12)}};function y(t){for(var e=[],i="",n=0;n<t.length;n++)"%"===t[n]?(0<i.length&&(e.push({type:v.separator,value:i}),i=""),e.push({type:v.datePart,value:t[n]+t[n+1]}),n++):i+=t[n];return 0<i.length&&e.push({type:v.separator,value:i}),e}function s(t,e,i){if("string"==typeof t){for(var n,o=[],r=0,s=null,a=0,l=y(e);a<l.length;a++){var c=l[a];if(c.type===v.separator){var d=t.indexOf(c.value,r);if(-1===d){if(i)return!1;throw new Error("Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html")}s&&(o.push({formatter:s,value:t.slice(r,d)}),s=null),r=d+c.value.length}else c.type===v.datePart&&(s=c.value)}"%A"===s||"%a"===s?o.unshift({formatter:s,value:t.slice(r)}):s&&o.push({formatter:s,value:t.slice(r)}),o.reverse();for(var u=0,h=o;u<h.length;u++)"%A"!==(_=h[u]).formatter&&"%a"!==_.formatter||(n=_.value);for(var f=new Date(0),p=0,g=o;p<g.length;p++){var _=g[p];m[_.formatter]&&m[_.formatter](f,_.value,n)}return!!i||f}}(e=v=v||{})[e.separator=0]="separator",e[e.datePart=1]="datePart",n.getFormattedDate=function(t,i){return y(t).reduce(function(t,e){return e.type===v.separator?t+e.value:r[e.value]?t+r[e.value](i):t},"")},n.stringToDate=s;a.copy=function(t){return new Date(t)},a.fromYear=function(t){return new Date(t,0,1)},a.fromYearAndMonth=function(t,e){return new Date(t,e,1)},a.weekStart=function(t,e){e=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)},a.monthStart=function(t){return new Date(t.getFullYear(),t.getMonth(),1)},a.yearStart=function(t){return new Date(t.getFullYear(),0,1)},a.dayStart=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},a.addDay=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},a.addMonth=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth()+e)},a.addYear=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear()+e,t.getMonth())},a.withHoursAndMinutes=function(t,e,i,n){return void 0===n||!n&&12===e||n&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,i):n&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,i):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,i)},a.setMonth=function(t,e){t.setMonth(e)},a.setYear=function(t,e){t.setFullYear(e)},a.mergeHoursAndMinutes=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes())},a.isWeekEnd=function(t){return 0===t.getDay()||6===t.getDay()},a.getTwelweYears=function(t){t=t.getFullYear(),t-=t%12;return i.range(t,11+t)},a.getDayOrdinal=function(t){return(t.valueOf()-a.yearStart(t).valueOf())/864e5},a.getWeekNumber=function(t){6!==t.getDay()&&(t=a.addDay(t,6-t.getDay()));var e=a.getDayOrdinal(t);return e-t.getDay()<0&&(t=new Date(t.getFullYear()-1,12,0),e=a.getDayOrdinal(t)),Math.floor((e-t.getDay()+10)/7)},a.isSameDay=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},a.toDateObject=function(t,e){return"string"==typeof t?s(t,e):new Date(t)},a.nullTimestampDate=new Date(0),e=a;function a(){}n.DateHelper=e},function(t,e,i){"use strict";var D=this&&this.__assign||function(){return(D=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var O=i(1),M=i(0),T=i(19),v=i(8),n=i(4),o=i(87),c=i(2),m=i(11);function r(t,e,i,n,o){e=c.locateNodeByClassName(o.target,"dhx_grid-fixed-cols-wrap")?0:e;var r,s,a=c.locateNodeByClassName(o.target,"dhx_grid-cell"),l=c.locateNodeByClassName(o.target,"dhx_span-cell");(a||l)&&n&&(e=a?a.parentNode:l,r=(a||l).getAttribute("data-dhx-col-id"),l=i.columns.filter(function(t){return!t.hidden}).find(function(t){return t.id===r}),s=e.getAttribute("data-dhx-id"),e=i.data.find(function(t){return t.id.toString()===s}),(n.toLocaleLowerCase().includes("touch")?i._events:i.events).fire(n,[e,l,o]))}function P(t,e,i){return{onclick:[r,t,e,i,n.GridEvents.cellClick],onmouseover:[r,t,e,i,n.GridEvents.cellMouseOver],onmousedown:[r,t,e,i,n.GridEvents.cellMouseDown],ondblclick:[r,t,e,i,n.GridEvents.cellDblClick],oncontextmenu:[r,t,e,i,n.GridEvents.cellRightClick],ontouchstart:[r,t,e,i,n.GridEvents.cellMouseDown],ontouchmove:[r,t,e,i,n.GridSystemEvents.cellTouchMove],ontouchend:[r,t,e,i,n.GridSystemEvents.cellTouchEnd]}}function y(t,e,i,n){var o=n.$editable&&n.$editable.row===e.id&&n.$editable.col===i.id,r="",s=i.align?" dhx_align-"+i.align:"dhx_align-left";n.dragMode&&"row"===n.dragItem&&(r+=(e.$drophere&&!o?" dhx_grid-cell--drophere":"")+(e.$dragtarget&&!o?" dhx_grid-cell--dragtarget":"")+(o?"":" dhx_grid-cell--drag"));var a=m.getTreeCellWidthOffset(e);return M.el(".dhx_grid-cell",D({class:"dhx_tree-cell "+(i.$cellCss[e.id]||"")+" "+(e.$items?"dhx_grid-expand-cell":"")+" "+(o?"dhx_tree-editing-cell":"")+" "+r+s,style:{width:i.$width,height:e.$height,padding:e.$items?0:"0 0 0 "+a+"px"},"data-dhx-col-id":i.id},{role:"gridcell","aria-colindex":1}),[e.$items?M.el(".dhx_grid-expand-cell-icon",D(D({class:e.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":e.id},{role:"button","aria-label":e.$opened?"Collapse group":"Expand group"}),{style:{padding:e.$level?"0 0 0 "+(4+a)+"px":"0 0 0 4px"}})):null,M.el(".dhx_tree-cell",{class:s+(n.autoHeight?" dhx_tree-cell_auto-height":"")},[t])])}function L(t,e,i){return o.getEditor(t,e,i)}e.getHandlers=P,e.getTreeCell=y,e.getCells=function(f){if(!f.data||!f.columns)return[];var p=f.$positions,n=f.data?f.data.slice(p.yStart,p.yEnd):[],o=f.columns.slice(p.xStart,p.xEnd),g=f.selection.getCell(),_=!0;return n.map(function(h,t){var e=n.length-1===t,i="";return f.rowCss&&(i=f.rowCss(h)),h.$css&&(i+=h.$css),M.el(".dhx_grid-row",D({style:{height:e?h.$height+1:h.$height},"data-dhx-id":h.id,class:i,_key:h.id,_flags:M.KEYED_LIST},{role:"row","aria-rowindex":p.yStart+t+1}),h.$customRender?[h.$customRender(h,f)]:o.map(function(i,t){var e;if(!i.hidden){var n=h[i.id];(i.editable||f.editable&&!1!==i.editable)&&("select"===i.editorType||"combobox"===i.editorType||"multiselect"===i.editorType)&&i.options&&(n=(n="string"==typeof n&&"multiselect"===i.editorType?n.split(",").map(function(t){return t.trim()}):[null==n?void 0:n.toString()]).map(function(e){var t;return null!==(t=null===(t=i.options.find(function(t){return t.id&&t.id.toString()===e}))||void 0===t?void 0:t.value)&&void 0!==t?t:e}).join(", "));var o=m.toFormat(n,i.type,i.format),r=function(t,e,i,n){return D({role:"gridcell","aria-colindex":e,"aria-readonly":n?"false":"true"},(e=t,n=h,t={tabindex:-1},g?g.row.id===n.id&&g.column.id===e.id&&(t.tabindex=0):_&&(t.tabindex=0,t.onfocus=function(t){var e;f.selection&&!g&&(e=t.target.parentNode.getAttribute("data-dhx-id"),(t=t.target.getAttribute("data-dhx-col-id"))&&e&&(f.selection.setCell(e,t),g=f.selection.getCell()))}),_=!1,t))},s=i.template?i.template(o,h,i):"boolean"!=typeof(e=o)&&"boolean"!==i.type||"string"==typeof e?e||0===e?e:"":""+Boolean(e);"string"==typeof s&&(s=v.isHtmlEnable(f,i)?M.el("div.dhx_grid-cell__content",D({".innerHTML":s},{role:"button","aria-label":"Edit content"})):s);var a=((i.$cellCss&&i.$cellCss[h.id]||"")+" dhx_"+i.type+"-cell").replace(/\s+/g," "),l=i.$width,c=f.$editable&&f.$editable.row===h.id&&f.$editable.col===i.id,d=f.leftSplit,u=f.columns;return((c||"boolean"===i.type&&(f.editable&&(null===(n=i.editable)||void 0===n||n)||!f.editable&&i.editable))&&(s=L(h,i,f).toHTML(),a+=" dhx_grid-cell__editable",d===u.indexOf(i)+1&&--l),"tree"===f.type&&f.firstColId===i.id)?y(s,h,i,f):(f.dragMode&&"row"===f.dragItem&&(a+=(h.$drophere&&!c?" dhx_grid-cell--drophere":"")+(h.$dragtarget&&!c?" dhx_grid-cell--dragtarget":"")+(c?"":" dhx_grid-cell--drag")),i.align&&(a+=" dhx_align-"+i.align),v.isHtmlEnable(f,i)&&(a+=" dhx_grid-cell__content_html-enable"),f.autoHeight&&(a+=" dhx_grid-cell__content_auto-height"),M.el(".dhx_grid-cell",D({class:a,style:{width:l,height:h.$height+"px"},_key:i.id,"data-dhx-col-id":i.id},r(i,p.xStart+t+1,0,f.editable)),[s]))}}))})},e.getSpans=function(y,x){var b,w=[],C=y.$positions,E=y.columns,S=y.data,t=y.spans;if(!E.length||!t)return null;for(var k=t.filter(function(t){return null===(t=t.$renderFrom)||void 0===t?void 0:t.includes(y.$renderFrom)}).sort(function(t,e){return"string"==typeof t.row&&"string"==typeof e.row?t.row.localeCompare(e.row):t.row-e.row}),e=0;e<k.length;e++)!function(t){var e=k[t].row,i=k[t].column,n=k[t].rowspan,o=k[t].colspan,r=k[t].css,s=k[t].$markCss;if(1===n)return;var a=O.findIndex(E,function(t){return""+t.id==""+i}),l=O.findIndex(S,function(t){return""+t.id==""+e});if(a<0||l<0)return;var c=E[a],d=S[l];if(c.hidden)return;var u=k[t].text||(void 0===d[i]?"":d[i]);u="string"==typeof(u=(c.template||function(t,e,i){return t||0===t?t:""})(u,d,c))?M.el("div.dhx_span-cell-content",{".innerHTML":u}):u;for(var h=0,f=0;f<l;f++)h+=S[f].$height;for(var p=h-(x?0:1),g=0,_=a-1;0<=_;_--)g+=E[_].$width;var v=a===E.length-1,m=a+o===E.length,t=c.header[0].text?" dhx_span-cell":" dhx_span-cell dhx_span-cell--title";t+=s?" "+s:"",t+=r?" "+r:"",t+=0===l?" dhx_span-first-row":"",t+=0===a?" dhx_span-first-col":"",t+=v||m?" dhx_span-last-col":"",t+=o?" dhx_span-string-cell":" dhx_span-"+(c.type||"string")+"-cell",t+=c.align?" dhx_align-"+c.align:" dhx_align-left";v=1<o?T.getWidth(E,o,a):c.$width,m=1<n?T.getHeight(S,n,l):d.$height;(y.$editable&&y.$editable.row===e&&y.$editable.col===i||"boolean"===c.type&&(y.editable&&(null===(b=c.editable)||void 0===b||b)||!y.editable&&c.editable))&&(o=y.leftSplit,n=y.topSplit,o&&a<o||n&&l<n||(u=L(d,c,y).toHTML(),t+=" dhx_span__editable",o===a+1&&--v)),w.push(M.el("div",D({class:t,style:{width:v,height:m,top:p,left:g},"data-dhx-col-id":i,"data-dhx-id":e,"aria-hidden":"true"},P(C.yStart,C.xStart,y)),[u]))}(e);return w},e.getShifts=function(t){var e=t.columns.slice(0,t.$positions.xStart),t=t.data.slice(0,t.$positions.yStart);return{x:v.getTotalWidth(e),y:v.getTotalHeight(t)}},e.normalizeSpan=function(t,e){var i=void 0===(l=e.leftSplit)?0:l,n=void 0===(c=e.topSplit)?0:c,o=e.data,r=e.columns,s=t.column,a=t.row,l=t.colspan,c=t.rowspan,e=r.findIndex(function(t){return t.id==s}),r=o.findIndex(function(t){return t.id==a}),o=[];return i<=e+(l||0)&&n<=r+(c||0)&&o.push("render"),e<i&&o.push("fixedCols"),r<n&&i<=e&&o.push("fixedRows"),D(D({},t),{$renderFrom:o})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ChartEvents||(e.ChartEvents={})).toggleSeries="toggleSeries",e.chartMouseMove="chartMouseMove",e.chartMouseLeave="chartMouseLeave",e.resize="resize",e.serieClick="serieClick",e.seriaMouseMove="seriaMouseMove",e.seriaMouseLeave="seriaMouseLeave"},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var v=i(0),m=i(3);function y(t,e,i,n){return n&&(t+=2*e*Math.asin(.5*n/e)/(2*Math.PI*e)),[Math.cos(2*Math.PI*t)*e,Math.sin(2*Math.PI*t)*i]}function r(t,e,i){t.setAttribute("transform","translate("+e+", "+i+") scale(1.05)"),t.classList.add("dhx_pie-transform-delay")}function n(t){t.setAttribute("transform","translate(0, 0)"),t.classList.remove("dhx_pie-transform-delay")}function x(t,e){return t-1e-6<e&&e<t+1e-6}function b(t,e){return"M"+-t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+-t+",0"}e.getCoordinates=y,e.shiftCoordinates=function(t,e,i){return[t[0]+e,t[1]+i]},e.pieLikeHandlers={onmouseover:function(e,i,t,n){var o=n.parent.attrs.id;r(n.el,e,i),n.parent.body.forEach(function(t){t.attrs.id!==o+"-text"&&t.attrs.id!==o+"-connector"||r(t.el,e,i)})},onmouseout:function(t,e){var i=e.parent.attrs.id;n(e.el),e.parent.body.forEach(function(t){t.attrs.id!==i+"-text"&&t.attrs.id!==i+"-connector"||n(t.el)})}},e.radarScale=function(t,e,i){var n,a=e<i?e/2:i/2,l=1/t.scales.length,c=.5<l?1:0,d=[],o=(n=a,o="#FAFBFD",v.sv("circle",{cx:0,cy:0,r:n,fill:o,stroke:"none",class:"background-circle"}));d.push(o);for(var u=-.25,r=[],s=t.axis,h="radar-grid "+(t.zebra?"zebra":""),f=1;f<s.length;f+=2){var p=a*s[f-1],g=a*s[f],g=b(p,!0)+" "+b(g,!1),g=v.sv("path",{d:g,fill:"none",stroke:"black",class:h});r.push(g)}return d.push(r),t.scales.forEach(function(t){var e=y(u,a,a),i=e[0],n=e[1],o=u+l,r=y(o,a,a),e=r[0],r=r[1],e="M "+i+" "+n+" A "+a+" "+a+" 0 "+c+" 1 "+e+" "+r+" L 0 0",r=v.sv("path",{d:e,stroke:"black",fill:"none",class:"radar-scale"});d.push(r);var s,e=[8,8],r=e[0],e=e[1],r=x(u,0)||x(u,.5)?0:u<0||.5<u?-r:r,e=x(u,-.25)||x(u,.25)?0:u<-.25||.25<u?-e:e;t=x(u,-.25)||x(u,.25)?(s=x(u,-.25)?m.verticalTopText:m.verticalBottomText,v.sv("text",{x:i+e,y:n+r,class:"scale-text"},[s(t)])):(s=-.25<=u&&u<=.25?"start-text scale-text":"end-text scale-text",v.sv("text",{x:i+e,y:n+r,class:s},[m.verticalCenteredText(t)])),d.push(t),u=o}),u=-.25,t.realAxis&&(o=t.realAxis.map(function(t,e){var i=y(-.25,a*s[e],a*s[e]),e=i[0],i=i[1];return v.sv("text",{x:e,y:i,dx:-10,class:"radar-axis-text"},[m.verticalCenteredText(t.toString())])}),d.push(o)),v.sv("g",_({transform:"translate("+e/2+", "+i/2+")"},{"aria-label":"x-axis"+((t=t.attribute)?", "+t:"")}),d)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),i=(o.prototype.getFocusId=function(){return this._activeWidgetId},o.prototype.setFocusId=function(t){this._activeWidgetId=t},o);function o(){var e=this;this._initHandler=function(t){return e._activeWidgetId=n.locate(t,"data-dhx-widget-id")},this._removeFocusClass=function(t){var e=document.body.classList;e.contains("utilityfocus")&&e.remove("utilityfocus")},this._addFocusClass=function(t){var e=document.body.classList;"Tab"===t.code?e.contains("utilityfocus")||e.add("utilityfocus"):e.contains("utilityfocus")&&e.remove("utilityfocus")},document.addEventListener("focusin",this._initHandler),document.addEventListener("pointerdown",this._initHandler),document.addEventListener("mousedown",this._removeFocusClass),document.addEventListener("keydown",this._addFocusClass)}e.focusManager=new i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1);e.getWidth=function(t,n,o){return t=t.filter(function(t){return!t.hidden}),n?t.reduce(function(t,e,i){e=e.$width;return t+=o<=i&&i<o+n?e:0},0):t[o].$width},e.getHeight=function(t,n,o){return t=t.filter(function(t){return!t.hidden}),n?t.reduce(function(t,e,i){e=e.$height;return t+=o<=i&&i<o+n?e:0},0):t[o].$height},e.getSpan=function(e,i,r){if(r.spans){var s=r.data.findIndex(function(t){return t.id.toString()===e.toString()}),a=r.columns.findIndex(function(t){return t.id.toString()===i}),t=n.findIndex(r.spans,function(e){var t=r.data.findIndex(function(t){return t.id.toString()===e.row.toString()}),i=r.columns.findIndex(function(t){return t.id.toString()===e.column.toString()}),n=e.rowspan?t+e.rowspan:t+1,o=e.colspan?i+e.colspan:i+1;return t<=s&&s<n&&i<=a&&a<o});return r.spans[t]}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SelectionEvents||(e.SelectionEvents={})).beforeUnSelect="beforeunselect",e.afterUnSelect="afterunselect",e.beforeSelect="beforeselect",e.afterSelect="afterselect"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),r=i(16),s=i(3),n=i(63),i=(a.prototype.toggle=function(){this.config.active=!this.config.active},a.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[0],r[1]);i[0]>s&&(i[0]=s,i[1]=r[0],i[2]=r[1],i[3]=r[2])}return i},a.prototype.getClosestVertical=function(t){for(var e=[1/0,null,null,null,null],i=0,n=this._points;i<n.length;i++){var o=n[i],r=Math.abs(o[0]-t);e[0]>r&&(e[0]=r,e[1]=o[0],e[2]=o[1],e[3]=o[2],e[4]=o[4])}return e},a.prototype.getTooltipType=function(t){return"top"},a.prototype.getTooltipText=function(t){if(this._data.getItem(t)&&this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t[0]}},a.prototype.dataReady=function(t){return this._points=[]},a.prototype.paint=function(t,e){return this._calckFinalPoints(t,e)},a.prototype.getPoints=function(){return this._points},a.prototype.addScale=function(t,e){},a.prototype._getClosestDist=function(t,e,i,n){return s.euclideanDistance(t,e,i,n)},a.prototype._calckFinalPoints=function(t,e){},a.prototype._setDefaults=function(t){this.config=t},a.prototype._defaultLocator=function(t){return[null,null]},a.prototype._getPointType=function(t,e){return n.getShadeHelper(t,e)},a);function a(t,e,i){var n=this;this._data=t,this._handlers={onclick:function(t,e){return n._events.fire(r.ChartEvents.serieClick,[t,e])},onmousemove:function(t,e,i){return n._events.fire(r.ChartEvents.seriaMouseMove,[t,e,i])},onmouseleave:function(t,e){return n._events.fire(r.ChartEvents.seriaMouseLeave,[t,e])}},this.id=e.id=e.id||o.uid(),this._events=i,this._points=[],this._setDefaults(e)}e.default=i},function(t,e){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},function(t,e,i){"use strict";(function(c){Object.defineProperty(e,"__esModule",{value:!0});var d=i(9),u=i(10);function h(t){return t?t.includes("json")?"json":t.includes("xml")?"xml":"text":"text"}function n(o,r,s,t,a){var n,l=t||{};return a&&(l.Accept="application/"+a),"GET"!==s&&(l["Content-Type"]=l["Content-Type"]||"application/json"),"GET"===s&&((t=r&&"object"==typeof r?(n=r,Object.keys(n).reduce(function(t,e){var i="object"==typeof n[e]?JSON.stringify(n[e]):n[e];return t.push(e+"="+encodeURIComponent(i)),t},[]).join("&")):r&&"string"==typeof r?r:"")&&(o+=o.includes("?")?"&":"?",o+=t),r=null),window.fetch?window.fetch(o,{method:s,body:r?JSON.stringify(r):null,headers:l}).then(function(e){if(!e.ok)return e.text().then(function(t){return c.reject({status:e.status,statusText:e.statusText,message:t})});var t=a||h(e.headers.get("Content-Type"));if("raw"===t)return{headers:Object.fromEntries(e.headers.entries()),url:e.url,body:e.body};if(204!==e.status)switch(t){case"json":return e.json();case"xml":var i=u.toDataDriver(d.DataDriver.xml);return i?e.text().then(function(t){return i.toJsonObject(t)}):e.text();default:return e.text()}}):new c(function(t,e){var i,n=new XMLHttpRequest;for(i in n.onload=function(){200<=n.status&&n.status<300?("raw"===a&&t({url:n.responseURL,headers:n.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce(function(t,e){e=e.split(": ");return t[e[0]]=e[1],t},{}),body:n.response}),204===n.status?t():t(function(t,e){switch(e){case"json":return JSON.parse(t);case"text":return t;case"xml":var i=u.toDataDriver(d.DataDriver.xml);return i?i.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"};default:return t}}(n.responseText,a||h(n.getResponseHeader("Content-Type"))))):e({status:n.status,statusText:n.statusText})},n.onerror=function(){e({status:n.status,statusText:n.statusText,message:n.responseText})},n.open(s,o),l)n.setRequestHeader(i,l[i]);switch(s){case"POST":case"DELETE":case"PUT":n.send(void 0!==r?JSON.stringify(r):"");break;case"GET":default:n.send()}})}e.ajax={get:function(t,e,i){return n(t,e,"GET",i&&i.headers,void 0!==i?i.responseType:void 0)},post:function(t,e,i){return n(t,e,"POST",i&&i.headers,void 0!==i?i.responseType:void 0)},put:function(t,e,i){return n(t,e,"PUT",i&&i.headers,void 0!==i?i.responseType:void 0)},delete:function(t,e,i){return n(t,e,"DELETE",i&&i.headers,void 0!==i?i.responseType:void 0)}}}).call(this,i(12))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(18),s=i(2);function a(t){for(var e=t.toLowerCase().match(/\w+/g),i=0,n="",o=0;o<e.length;o++){var r=e[o];"ctrl"===r?i+=4:"shift"===r?i+=2:"alt"===r?i+=1:n=r}return i+n}var l={Up:"arrowUp",Down:"arrowDown",Right:"arrowRight",Left:"arrowLeft",Esc:"escape",Spacebar:"space"},i=(n.prototype.destructor=function(){document.removeEventListener("keydown",this._initHandler),this.removeHotKey()},n.prototype.addHotKey=function(t,e){t=a(t);this._keysStorage[t]||(this._keysStorage[t]=[]),this._keysStorage[t].push({handler:e})},n.prototype.removeHotKey=function(t,i){var n,o,r=this;t?t&&i?(n=a(t),o=function(t){return t.toString().replace(/\n/g,"").replace(/\s/g,"")},this._keysStorage[n].forEach(function(t,e){o(t.handler)===o(i)&&(delete r._keysStorage[n][e],r._keysStorage[n]=r._keysStorage[n].filter(function(t){return t}))})):(t=a(t),delete this._keysStorage[t]):this._keysStorage={}},n.prototype.exist=function(t){t=a(t);return!!this._keysStorage[t]},n.prototype.getKeyStorageLength=function(){return Object.keys(this._keysStorage).length},n);function n(t){var o=this;this._keysStorage={},this._initHandler=function(t){var e;e=48<=t.which&&t.which<=57||65<=t.which&&t.which<=90?String.fromCharCode(t.which):(e=32===t.which?t.code:t.key,s.isIE()&&l[e]||e);var i=o._keysStorage[(t.ctrlKey||t.metaKey?4:0)+(t.shiftKey?2:0)+(t.altKey?1:0)+(e&&e.toLowerCase())];if(i)for(var n=0;n<i.length;n++){if(o._beforeCall&&!1===o._beforeCall(t,r.focusManager.getFocusId()))return;i[n].handler(t)}},t&&(this._beforeCall=t),document.addEventListener("keydown",this._initHandler)}e.KeyManager=i},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(42)),n(e(96)),n(e(26))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.LayoutEvents||(e.LayoutEvents={})).beforeShow="beforeShow",e.afterShow="afterShow",e.beforeHide="beforeHide",e.afterHide="afterHide",e.beforeResizeStart="beforeResizeStart",e.resize="resize",e.afterResizeEnd="afterResizeEnd",e.beforeAdd="beforeAdd",e.afterAdd="afterAdd",e.beforeRemove="beforeRemove",e.afterRemove="afterRemove",e.beforeCollapse="beforeCollapse",e.afterCollapse="afterCollapse",e.beforeExpand="beforeExpand",e.afterExpand="afterExpand"},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e(1),o=e(0),v=e(2);i.scrollViewConfig={enable:!1,autoHide:!0,timeout:1e3,scrollHandler:function(){}};n.prototype.enable=function(){this.config.enable=!0,this._getRootView().redraw()},n.prototype.disable=function(){this.config.enable=!1,this._getRootView().redraw()},n.prototype.render=function(t,e){var i=this;if(void 0===e&&(e=""),!this.config.enable||!t.length)return t;e&&(this._uid=e);var n=this.config.enable?[o.el(".y-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-y-area-"+e:"scroll-y-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"6px",height:"100%",right:0,top:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-y-runner-"+e:"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),o.el(".x-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-x-area-"+e:"scroll-x-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"100%",height:"6px",left:0,bottom:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-x-runner-"+e:"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return o.el(".scroll-view-wrapper",[o.el(".scroll-view",{onscroll:this._handlers.onscroll,_ref:e?"scroll-view-"+e:"scroll-view",_hooks:{didInsert:function(){i.update()},didRecycle:function(){i.update()}},style:{width:"calc(100% + "+this._scrollWidth+"px)",height:"calc(100% + "+this._scrollHeight+"px)"}},t)].concat(n))},n.prototype.update=function(){var t,e,i,n,o,r=this._getRefs();r&&(o=r.area,t=r.areaX,e=r.areaY,i=r.runnerY,n=r.runnerX,this._visibleYArea=o.clientHeight/o.scrollHeight,this._visibleXArea=o.clientWidth/o.scrollWidth,this._scrollYTop=o.scrollTop,this._scrollXLeft=o.scrollLeft,this._runnerYTop=this._scrollYTop*this._visibleYArea,this._runnerXLeft=this._scrollXLeft*this._visibleXArea,this._runnerHeight=this._visibleYArea<1?o.clientHeight*this._visibleYArea:0,this._runnerWidth=this._visibleXArea<1?o.clientWidth*this._visibleXArea:0,r=i.style.top,o=n.style.left,i.style.opacity=1,i.style.top=this._runnerYTop+"px",i.style.height=this._runnerHeight+"px",n.style.opacity=1,n.style.left=this._runnerXLeft+"px",n.style.width=this._runnerWidth+"px",r!==i.style.top&&(e.style.opacity=.9,e.style.width="10px"),o!==n.style.left&&(t.style.opacity=.9,t.style.height="10px"),this.config.autoHide?this._autoHideFunc||(this._autoHideFunc=s.debounce(function(){i.style.opacity=0,e.style.width="6px",n.style.opacity=0,t.style.height="6px"},this.config.timeout)):this._autoHideFunc=s.debounce(function(){e.style.width="6px",t.style.height="6px"},this.config.timeout),this._autoHideFunc())},n.prototype._getRefs=function(){var t=this._getRootView(),e=!(!t.refs["scroll-view"]||!t.refs["scroll-x-runner"]&&!t.refs["scroll-y-runner"]),i=!(!this._uid||!t.refs["scroll-view-"+this._uid]||!t.refs["scroll-x-runner-"+this._uid]&&!t.refs["scroll-y-runner-"+this._uid]);if(t.refs)return e?{area:t.refs["scroll-view"].el,areaY:t.refs["scroll-y-area"].el,areaX:t.refs["scroll-x-area"].el,runnerY:t.refs["scroll-y-runner"].el,runnerX:t.refs["scroll-x-runner"].el}:i?{area:t.refs["scroll-view-"+this._uid].el,areaY:t.refs["scroll-y-area-"+this._uid].el,areaX:t.refs["scroll-x-area-"+this._uid].el,runnerY:t.refs["scroll-y-runner-"+this._uid].el,runnerX:t.refs["scroll-x-runner-"+this._uid].el}:void 0},e=n;function n(t,e){var _=this;void 0===e&&(e={}),this.config=s.extend({enable:i.scrollViewConfig.enable,autoHide:i.scrollViewConfig.autoHide,timeout:i.scrollViewConfig.timeout,scrollHandler:i.scrollViewConfig.scrollHandler},e),this._wheelName=v.isIE()?"onmousewheel":"onwheel",this._getRootView=t,this._scrollYTop=this._scrollXLeft=this._runnerYTop=this._runnerXLeft=this._runnerHeight=this._runnerWidth=0,this._visibleYArea=this._visibleXArea=1,this._scrollWidth=v.getScrollbarWidth(),this._scrollHeight=v.getScrollbarHeight(),this._handlers=((t={onscroll:function(t){_.config.scrollHandler(t),_.update()}})[this._wheelName]=function(t){var e=!!v.locateNodeByClassName(t.target,"y-scroll");t.preventDefault();var i,n=40*(0<(t.deltaY||-t.wheelDelta)?1:-1),t=_._getRefs().area;e?(e=t.scrollHeight-_._runnerHeight,i=_._scrollYTop+n,t.scrollTop=i<0?0:e<i?e:i):(i=t.scrollWidth-_._runnerWidth,n=_._scrollXLeft+n,t.scrollLeft=n<0?0:i<n?i:n),_.update()},t.onmousedownRunner=function(t){t.preventDefault();function e(t){var e;i?(e=t.pageY-d,o.scrollTop=e<=a?0:l<e?c:(e-a)/_._visibleYArea):(t=t.pageX-p,o.scrollLeft=t<=u?0:h<t?f:(t-u)/_._visibleXArea),_.update()}var i=!!v.locateNodeByClassName(t.target,"y-scroll"),n=_._getRefs(),o=n.area,r=n.runnerY,s=n.runnerX,n=o.getBoundingClientRect(),a=n.top+window.pageYOffset,l=n.bottom+window.pageYOffset,c=o.scrollHeight-_._runnerHeight,d=t.pageY-r.getBoundingClientRect().top-window.pageYOffset,u=n.left+window.pageXOffset,h=n.right+window.pageXOffset,f=o.scrollWidth-_._runnerWidth,p=t.pageX-s.getBoundingClientRect().left-window.pageXOffset,g=function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",g),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",e),document.addEventListener("mouseup",g)},t.onmousedownArea=function(t){var e,i,n,o;v.locateNodeByClassName(t,"scroll-runner")||(t.preventDefault(),e=!!v.locateNodeByClassName(t.target,"y-scroll"),i=(o=_._getRefs()).area,n=o.runnerY,o=o.runnerX,e?i.scrollTop+=(t.pageY-n.getBoundingClientRect().top)/_._visibleYArea:i.scrollLeft+=(t.pageX-o.getBoundingClientRect().left)/_._visibleXArea,_.update())},t.onmouseenter=function(t){var e,i;v.locateNodeByClassName(t,"scroll-runner")||(i=_._getRefs())&&(e=!!v.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<_._runnerHeight?i.style.background="#eee":!e&&0<_._runnerWidth&&(t.style.background="#eee"))},t.onmouseleave=function(t){var e,i;v.locateNodeByClassName(t,"scroll-runner")||(i=_._getRefs())&&(e=!!v.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<_._runnerHeight?i.style.background="transparent":!e&&0<_._runnerWidth&&(t.style.background="transparent"))},t)}i.ScrollView=e},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(100)),n(e(44))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ListEvents||(e.ListEvents={})).click="click",e.doubleClick="doubleclick",e.focusChange="focuschange",e.beforeEditStart="beforeEditStart",e.afterEditStart="afterEditStart",e.beforeEditEnd="beforeEditEnd",e.afterEditEnd="afterEditEnd",e.itemRightClick="itemRightClick",e.itemMouseOver="itemMouseOver",e.contextmenu="contextmenu"},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.RealPosition||(e.RealPosition={})).left="left",n.right="right",n.top="top",n.bottom="bottom",n.center="center",(n=e.Position||(e.Position={})).right="right",n.bottom="bottom",n.center="center",n.left="left",n.top="top",(e=e.MessageContainerPosition||(e.MessageContainerPosition={})).topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(130),r=i(61),s=i(3),a={left:r.left,right:r.right,bottom:r.bottom,top:r.top},h={left:r.leftGrid,right:r.rightGrid,bottom:r.bottomGrid,top:r.topGrid},r=(l.prototype.addPadding=function(){this._padding=!0},l.prototype.getSize=function(){return this.config.size},l.prototype.scaleReady=function(t){var e=[];this._charts.forEach(function(t){t.getPoints().forEach(function(t){return e.push(t[1])})}),this._axis=new o.AxisCreator(e,this.config).getScale();var i=this._position;"radial"!==i&&(t[i]+=this.config.size)},l.prototype.point=function(t){return this.config.log?this._logPoint(t):this._isXDirection?(t-this._axis.min)/(this._axis.max-this._axis.min):1-(t-this._axis.min)/(this._axis.max-this._axis.min)},l.prototype.add=function(t){this._charts.push(t)},l.prototype.paint=function(e,i){var n=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t){return[n._isXDirection?n.point(t)*e:n.point(t)*i,t]});return 0===t.length&&"left"===this._position&&(t=[[0,0]]),a[this._position](t,this.config,e,i)},l.prototype.scaleGrid=function(){var a=this,l=this._position,c=this.config.grid,d=this.config.dashed,u=this.config.hidden;return{paint:function(t,e){var i,n,o=a._axis.steps.indexOf(a.config.targetLine),r=(i=t,n=e,a._axis.steps.map(function(t){return[a._isXDirection?a.point(t)*i:a.point(t)*n,t]})),s=a.point(a.config.targetValue),s={targetLine:o,dashed:d,grid:c,targetValue:s,hidden:u};return h[l](r,t,e,s)}}},l.prototype._setDefaults=function(t){t.locator&&(this.locator=s.locator(t.locator)),this.config=n(n({},{scalePadding:20,textPadding:11,grid:!0,targetLine:null,showText:!0}),t)},l.prototype._logPoint=function(t){var e=Math.abs(t)/t,i=this._axis.steps,n=i.length-1,o=i.indexOf(t);return n=-1!==o?o/n:((this._axis.min<0?i.indexOf(0):0)+e*s.log10(Math.abs(t)))/n,this._isXDirection?n:1-n},l);function l(t,e,i){this._data=t,this._padding=!1,this._charts=[],this._position=i,this._setDefaults(e),this._isXDirection="bottom"===i||"top"===i,"radial"!==i&&(this.config.size="left"===i||"right"===i?this.config.size||40+(this.config.title?40:0):this.config.size||20+(this.config.title?40:0))}e.Scale=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(3),i=i(21),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=e.locator):(this.yScale=e,this._yLocator=s.locator(this.config.value))},a.prototype.paint=function(t,e){r.prototype.paint.call(this,t,e)},a.prototype.dataReady=function(o){var r=this;return this.config.active?(this._points=this._data.map(function(t,e){var i=r._xLocator(t),n=r._yLocator(t),n=[i,n,t.id,i,n];return o&&(n[1]+=o[e][1]),n}),this._points):this._points=[]},a.prototype._calckFinalPoints=function(n,o){var r=this;this._points.forEach(function(t,e){t[0]=r.xScale.point(t[0])*n||0;var i=r.yScale.point(t[1])*o;t[1]=isNaN(i)?"xbar"===r.config.type?0:o:i})},a.prototype._defaultLocator=function(t){return[this._yLocator(t),this._xLocator(t)]},a);function a(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(3),i=i(21),o=(s=i.default,o(l,s),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.dataReady=function(){var s=this,t=this._data;return this._sum=t.reduce(function(t,e){return e.$hidden?t:t+parseFloat(s._valueLocator(e))},0),this._points=t.reduce(function(t,e,i){if(e.$hidden)return t;var n=s._textLocator(e),o=s._valueLocator(e),r=o/s._sum,i=s._colorLocator?s._colorLocator(e):a.getDefaultColor(i);return t.push([r,o,e.id,n,i]),t},[]),this._points},l.prototype.toggle=function(t){var e=this._data.getItem(t);e&&this._data.update(t,{$hidden:!e.$hidden})},l.prototype.getClosest=function(t,e){for(var i=1-(Math.atan2(t-this._center[0],e-this._center[1])+Math.PI)/Math.PI/2,n=this._points,o=0;o<n.length;o++){if(n[o][0]>=i)return[0,this._tooltipData[o][0],this._tooltipData[o][1],n[o][2]];i-=n[o][0]}return[1/0,null,null,null]},l.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t[0]}},l.prototype.getTooltipType=function(t){return"simple"},l.prototype._setDefaults=function(e){var i=this,t={subType:"basic",paddings:e.useLines?70:50};this.config=r(r({},t),e),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=a.locator(e.value),this._textLocator=a.locator(e.text),e.color?this._colorLocator=a.locator(e.color):e.monochrome&&(this._colorLocator=function(t){return a.getColorShade(e.monochrome,2*i._getPercent(t))})},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getPercent=function(t){return parseFloat(this._valueLocator(t))/this._sum},l);function l(){var t=null!==s&&s.apply(this,arguments)||this;return t._center=[0,0],t._tooltipData=[],t}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var l,c=i(0),d=i(3),i=i(32),o=(l=i.default,o(r,l),r.prototype.paint=function(t,e){var r=this;l.prototype.paint.call(this,t,e);var i,n=this.config.pointColor||this.config.color,o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),s=[];return this.config.strokeWidth&&s.push(this._getForm(this._points,this.config,o,t,e)),this.config.pointType&&(i=this._getPointType(this.config.pointType,n),s=s.concat(this._points.map(function(t){return i(t[0],t[1],d.calcPointRef(t[2],r.id))}).map(function(t,e){var i,n,o;return t&&t.attrs&&(t.attrs=a(a({},t.attrs),(i=t.key,n=r._points,i&&(o=n.find(function(t){return i.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":o?"point x="+o[3]+" y="+o[4]:"",tabindex:0})),r.config.tooltip&&(t.attrs.onmousemove=[r._handlers.onmousemove,r._points[e][2],r.id],t.attrs.onmouseleave=[r._handlers.onmouseleave,r._points[e][2],r.id],t.attrs.onclick=[r._handlers.onmousemove,r._points[e][2],r.id])),t}))),c.sv("g",a(a({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),s)},r.prototype._getForm=function(t,e,i,n,o){t=t.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ");return c.sv("path",{id:"seria"+e.id,d:t,stroke:e.color,class:i,"stroke-width":this.config.strokeWidth,fill:"none"})},r.prototype._setDefaults=function(t){this.config=a(a({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},r);function r(){return null!==l&&l.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),r=i(79),s=i(82),a=i(13),c=i(10),d=i(9),p=i(1),i=(u.prototype._reset=function(){this._order=[],this._pull={},this._changes={order:[]},this._initOrder=null,this._meta=new WeakMap,this._loaded=!1},u.prototype.add=function(t,i){var n=this;if(this.events.fire(d.DataEvents.beforeAdd,[t])){t=Array.isArray(t)?t.map(function(t,e){return 0!==e&&(i+=1),n._add(t,i)}):this._add(t,i);return this._applySmart(),t}},u.prototype.remove=function(t){var e=this;t&&(t instanceof Array?n(t).map(function(t){e._remove(t)}):this._remove(t))},u.prototype.removeAll=function(){this._reset(),this.events.fire(d.DataEvents.removeAll),this.events.fire(d.DataEvents.change)},u.prototype.exists=function(t){return!!this._pull[t]},u.prototype.getNearId=function(t){if(!this._pull[t])return this._order[0].id||""},u.prototype.getItem=function(t){return this._pull[t]},u.prototype.update=function(t,e,i){var n=this.getItem(t);n?c.isEqualObj(e,n)||(e.id&&t!==e.id?(c.dhxWarning("this method doesn't allow change id"),c.isDebug()):(e.parent&&n.parent&&e.parent!==n.parent&&this.move(t,-1,this,e.parent),p.extend(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),i||this._onChange("update",t,this._pull[t])),this._applySmart()):c.dhxWarning("item not found")},u.prototype.getIndex=function(e){if(!e)return-1;var t=p.findIndex(this._order,function(t){return t&&t.id.toString()===e.toString()});return this._pull[e]&&0<=t?t:void 0},u.prototype.getId=function(t){if(this._order[t])return this._order[t].id},u.prototype.getLength=function(){return this._order.length},u.prototype.isDataLoaded=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this._order.length),p.isNumeric(t)&&p.isNumeric(e)?0===this._order.slice(t,e).filter(function(t){return t&&t.$empty}).length:(this._loaded||(this._loaded=!this.find(function(t){return t.$empty})),!!this._loaded)},u.prototype.filter=function(t,e){var i;this.isDataLoaded()?(e&&e.add||(this._order=this._initOrder||this._order,this._initOrder=null),!t||"function"==typeof t||void 0!==(i=t).by&&void 0!==i.match&&(t=i.compare?function(t){return i.compare(t[i.by],i.match,t,i.multi)}:function(t){return t[i.by]==i.match}),this._filter=e&&e.smartFilter?t:null,this._applyFilters(t),this.events.fire(d.DataEvents.change)):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.find=function(t){for(var e in this._pull){var i=c.findByConf(this._pull[e],t);if(i)return i}return null},u.prototype.findAll=function(t){var e,i=[];for(e in this._pull){var n=c.findByConf(this._pull[e],t);n&&i.push(n)}return i},u.prototype.sort=function(t,e){this.isDataLoaded()?(e&&e.smartSorting&&(this._sorter=t),t&&this._applySorters(t),this.events.fire(d.DataEvents.change)):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.copy=function(t,i,n,o){var r=this;return t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},u.prototype.move=function(t,i,n,o,e){var r=this;return t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o,0,e)},u.prototype.forEach=function(t){for(var e=0;e<this._order.length;e++)t.call(this,this._order[e],e,this._order)},u.prototype.load=function(t,e){return"string"==typeof t&&(this.dataProxy=t=new a.DataProxy(t)),this.dataProxy=t,this._loader.load(t,e)},u.prototype.parse=function(t,e){return this._reset(),this._loader.parse(t,e)},u.prototype.$parse=function(t){var e=this.config.approximate;e&&(t=this._approximate(t,e.value,e.maxNum)),this._parse_data(t),this._applySmart(),this.events.fire(d.DataEvents.change,["load"]),this.events.fire(d.DataEvents.load)},u.prototype.save=function(t){"string"==typeof t&&(t=new a.DataProxy(t)),this._loader.save(t)},u.prototype.changeId=function(t,e,i){var n;void 0===e&&(e=p.uid()),i||this.isDataLoaded()?(n=this.getItem(t))?(n.id=e,p.extend(this._pull[t],n),this._pull[e]=this._pull[t],i||this._onChange("update",e,this._pull[e]),delete this._pull[t]):c.dhxWarning("item not found"):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.isSaved=function(){return!this._changes.order.length},u.prototype.map=function(t){for(var e=[],i=0;i<this._order.length;i++)e.push(t.call(this,this._order[i],i,this._order));return e},u.prototype.mapRange=function(t,e,i){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var n=this._order.slice(t,e),o=[],r=t;r<=e;r++)o.push(i.call(this,this._order[r],r,n));return o},u.prototype.reduce=function(t,e){for(var i=0;i<this._order.length;i++)e=t.call(this,e,this._order[i],i);return e},u.prototype.serialize=function(t){void 0===t&&(t=d.DataDriver.json);for(var i=[],n=this,e=0;e<this._order.length;e++)!function(t){var e=l({},n._order[t]);Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),i.push(e)}(e);t=c.toDataDriver(t);if(t)return t.serialize(i)},u.prototype.getInitialData=function(){return this._initOrder},u.prototype.setMeta=function(t,e,i){var n;t&&((n=this._meta.get(t))||(n={},this._meta.set(t,n)),n[e]=i)},u.prototype.getMeta=function(t,e){t=this._meta.get(t);return t?t[e]:null},u.prototype.getMetaMap=function(t){return this._meta.get(t)},u.prototype.setRange=function(t,e){this._range=e?[t,e]:null},u.prototype.getRawData=function(t,e,i,n){if(i=i||this._order,1===n)return i;var o;if(this._range&&(t=this._range[0]+t,e=-1===e||t+(o=Math.abs(e-t))>this._range[1]?this._range[1]:t+o),!e||0===t&&(-1===e||e===i.length))return i;if(t>=i.length)return[];(-1===e||e>i.length)&&(e=i.length);i=i.slice(t,e);return 0!==i.filter(function(t){return t.$empty}).length&&this.events.fire(d.DataEvents.dataRequest,[t,e]),i},u.prototype._add=function(t,e){if(this.isDataLoaded()){e=this._addCore(t,e);return this._onChange("add",t.id,t),this.events.fire(d.DataEvents.afterAdd,[t]),e}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._remove=function(t){if(this.isDataLoaded()){var e=this._pull[t];if(e){if(!this.events.fire(d.DataEvents.beforeRemove,[e]))return;this._removeCore(e.id),this._onChange("remove",t,e)}this.events.fire(d.DataEvents.afterRemove,[e])}else c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._copy=function(t,e,i,n,o){if(this.isDataLoaded()){if(!this.exists(t))return null;var r=p.uid();return(o&&(e=-1===e?-1:e+o),i)?i instanceof u||!n?i.exists(t)?(i.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r):(i.add(c.copyWithoutInner(this.getItem(t)),e),t):void i.add(c.copyWithoutInner(this.getItem(t)),e):(this.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r)}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._move=function(t,e,i,n,o,r){if(this.isDataLoaded()){if(o&&(e=-1===e?-1:e+o),i&&i!==this&&this.exists(t)){var s=p.copy(this.getItem(t),!0);return r&&(s.id=r),(!r&&i.exists(t)||i.exists(r))&&(s.id=p.uid()),n&&(s.parent=n),i.add(s,e),this.remove(t),s.id}if(this.getIndex(t)===e)return null;s=this._order.splice(this.getIndex(t),1)[0];return-1===e&&(e=this._order.length),this._order.splice(e,0,s),this.events.fire(d.DataEvents.change,[t,"update",this.getItem(t)]),t}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._addCore=function(t,e){var i;return this.config.init&&(t=this.config.init(t)),t.id=null!==(i=t.id)&&void 0!==i?i:p.uid(),this._pull[t.id]&&c.dhxError("Item "+t.id+" already exist"),this._initOrder&&!c.isTreeCollection(this)&&this._addToOrder(this._initOrder,t,e),this._addToOrder(this._order,t,e),t.id},u.prototype._removeCore=function(e){0<=this.getIndex(e)&&(this._order=this._order.filter(function(t){return t.id!==e}),delete this._pull[e]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e}),delete this._pull[e])},u.prototype._parse_data=function(t){var e=this._order.length;this.config.prep&&(t=this.config.prep(t));for(var i=0,n=t;i<n.length;i++){var o=n[i];this._addCore(o,e++)}},u.prototype._approximate=function(t,e,i){for(var n=t.length,o=e.length,r=Math.floor(n/i),s=Array(Math.ceil(n/r)),a=0,l=0;l<n;l+=r){for(var c=p.copy(t[l]),d=Math.min(n,l+r),u=0;u<o;u++){for(var h=0,f=l;f<d;f++)h+=t[f][e[u]];c[e[u]]=h/(d-l)}s[a++]=c}return s},u.prototype._onChange=function(t,e,i){for(var n=0,o=0,r=this._changes.order;o<r.length;o++){var s=r[o],a=this._changes.order.indexOf(s);if(s.id===e&&!s.saving&&(n+=1,a===this._changes.order.length-1||this._changes.order[a+1].id!==e))return s.error&&(s.error=!1),s=l(l({},s),{obj:i,status:t}),10<(n+=1)?this._changes.order.splice(a,n-10,s):this._changes.order.splice(a+1,0,s),this._loader.updateChanges(this._changes),"remove"===t&&i.$emptyRow?void 0:void this.events.fire(d.DataEvents.change,[e,t,i])}this._changes.order.push({id:e,status:t,obj:l({},i),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(d.DataEvents.change,[e,t,i])},u.prototype._addToOrder=function(t,e,i){0<=i&&t[i]?(this._pull[e.id]=e,t.splice(i,0,e)):(this._pull[e.id]=e,t.push(e))},u.prototype._applySmart=function(){this._filter&&this._applyFilters(),this._sorter&&this._applySorters()},u.prototype._applySorters=function(t){this._sort.sort(this._order,t,this._sorter),this._initOrder&&this._initOrder.length&&this._sort.sort(this._initOrder,t,this._sorter)},u.prototype._applyFilters=function(e){var t,i=this._filter;e===i&&(e=null),(e||i)&&(t=this._order.filter(function(t){return(!e||e(t))&&(!i||i(t))}),this._initOrder||(this._initOrder=this._order),this._order=t)},u);function u(t,e){var n=this;this._changes={order:[]},this.config=t||{},this._sort=new s.Sort,this._loader=new r.Loader(this,this._changes),this.events=e||new o.EventSystem(this),this.events.on(d.DataEvents.dataRequest,function(t,e){var i=n.dataProxy;i&&i.updateUrl&&(i.updateUrl(null,{from:t,limit:i.config.limit||e-t}),n.load(i))}),this.events.on(d.DataEvents.loadError,function(t){setTimeout(function(){"string"!=typeof t?c.dhxError(t):c.dhxWarning(t)},0)}),this._reset()}e.DataCollection=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(37),r=i(38),i=i(80);e.dataDrivers={json:o.JsonDriver,csv:r.CsvDriver},e.dataDriversPro=n(n({},e.dataDrivers),{xml:i.XMLDriver})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.serialize=function(t){return t},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},o);function o(){}e.JsonDriver=n},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=(r.prototype.getFields=function(t,e){for(var i=new RegExp('(?<!")'+this.config.columnDelimiter+'(?!")'),n=t.trim().split(i),o={},r=0;r<n.length;r++)o[e?e[r]:r+1]=isNaN(Number(n[r]))?n[r].replace(/"[,;"]"/gi,function(t){return t.split("").splice(1,1).slice(-1,1).join("")}):parseFloat(n[r]);return o},r.prototype.getRows=function(t){return t.trim().split(this.config.rowDelimiter)},r.prototype.toJsonArray=function(t){var e=this,i=this.getRows(t),n=this.config.names;return this.config.skipHeader&&(t=i.splice(0,this.config.skipHeader),this.config.nameByHeader&&(n=t[0].trim().split(this.config.columnDelimiter))),i.map(function(t){return e.getFields(t,n)})},r.prototype.serialize=function(t,e){var i=t[0]?Object.keys(t[0]).filter(function(t){return!t.startsWith("$")}).join(this.config.columnDelimiter)+this.config.columnDelimiter+this.config.rowDelimiter:"",t=this._serialize(t);return e?t:i+t},r.prototype._serialize=function(t){var o=this;return t.reduce(function(t,n){var e=Object.keys(n).reduce(function(t,e,i){return e.startsWith("$")||"items"===e?t:""+t+n[e].replaceAll(/[,;"]/gi,function(t){return'"'+t+'"'})+(i===n.length-1?"":o.config.columnDelimiter)},"");return n.items?t+(t?"\n":"")+e+o._serialize(n.items):""+t+(t?o.config.rowDelimiter:"")+e},"")},r);function r(t){this.config=n(n({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}e.CsvDriver=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(40)),n(e(120)),n(e(4)),n(e(19));var o=e(15);i.getTreeCell=o.getTreeCell,n(e(11)),n(e(8))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),r=i(5),l=i(2),p=i(1),c=i(24),d=i(7),h=i(6),u=i(85),v=i(11),f=i(19),m=i(8),_=i(86),y=i(4),x=i(41),b=i(14),w=i(113),C=i(114),E=i(58),S=i(119),k=i(18),D=i(15),o=(s=d.View,o(O,s),O.prototype.destructor=function(){this._destroyContent(),this.keyManager&&this.keyManager.destructor(),this.events.events={},this.events.context=null,this._activeFilters=this._filterData=this._scroll=this.content=null,this.unmount()},O.prototype.setColumns=function(t){var e=this;this.config.columns=t,this._parseColumns(!0),this._adjustColumns(),this._checkFilters(),this._checkMarks(),this.paint(),this.config.keyNavigation&&a.awaitRedraw().then(function(){e._initHotKey(!0),e.paint()})},O.prototype.addRowCss=function(t,e){var i=this.data.getItem(t),t=i.$css||"";t.match(new RegExp(e,"g"))||(i.$css=t+" "+e,this.paint())},O.prototype.removeRowCss=function(t,e){t=this.data.getItem(t),e=t.$css?t.$css.replace(e,""):"";t.$css=e,this.paint()},O.prototype.addCellCss=function(t,e,i){var n=this._getColumn(e),o=this.config.spans?this.getSpan(t,e):null;(o||n)&&((e=o?o.css:n.$cellCss[t])?(e=e.match(new RegExp(i,"g"))?"":" "+i,o?o.css+=e:n.$cellCss[t]+=e):this.data.getItem(t)&&(o?o.css=i+" ":n.$cellCss[t]=i+" "),this.paint())},O.prototype.removeCellCss=function(t,e,i){e=this._getColumn(e);e&&(e.$cellCss[t]?(e.$cellCss[t]=e.$cellCss[t].replace(i,""),this.paint()):this.data.getItem(t)&&(e.$cellCss[t]=""))},O.prototype.showColumn=function(t){var e=this._getColumn(t);e&&e.hidden&&this.events.fire(y.GridEvents.beforeColumnShow,[e])&&(e.hidden=!1,this.config.$totalWidth+=e.$width,(t=this._hiddenFilters&&this._hiddenFilters[e.id])&&(this._activeFilters[e.id]=t,delete this._hiddenFilters[e.id]),this.paint(),this._checkFilters(),this.events.fire(y.GridEvents.afterColumnShow,[e]))},O.prototype.hideColumn=function(t){var e,i=this,n=this._getColumn(t);n&&!n.hidden&&this.events.fire(y.GridEvents.beforeColumnHide,[n])&&(n.hidden=!0,this.config.$totalWidth-=n.$width,(t=this._activeFilters&&this._activeFilters[n.id])&&(this._hiddenFilters||(this._hiddenFilters={}),this._hiddenFilters[n.id]=t,delete this._activeFilters[n.id],this.data.filter()),this.paint(),t=this.content.comboFilter,e=function(){i._checkFilters(),i.events.fire(y.GridEvents.afterColumnHide,[n])},Object.keys(t.element).length?a.awaitRedraw().then(function(){i.paint(),e()}):e())},O.prototype.isColumnHidden=function(t){t=this._getColumn(t);if(t)return!!t.hidden},O.prototype.showRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&t.hidden&&this.events.fire(y.GridEvents.beforeRowShow,[t])&&(this.data.update(e,{hidden:!1}),this.data.filter(function(t){return!t.hidden}),this.events.fire(y.GridEvents.afterRowShow,[t])))},O.prototype.hideRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&this.events.fire(y.GridEvents.beforeRowHide,[t])&&(this.data.update(e,{hidden:!0}),this.data.filter(function(t){return!t.hidden}),this.events.fire(y.GridEvents.afterRowHide,[t])))},O.prototype.isRowHidden=function(t){if(p.isDefined(t)){t=this.data.getItem(t.toString());return t?!!t.hidden:void 0}},O.prototype.getScrollState=function(){return{x:this._scroll.left,y:this._scroll.top}},O.prototype.scroll=function(t,e){var i=this.getRootView().refs.grid_body.el.querySelector(".scroll-view")||this.getRootView().refs.grid_body.el;i.scrollLeft=!t&&0!==t||"number"!=typeof t?i.scrollLeft:t,i.scrollTop=!e&&0!==e||"number"!=typeof e?i.scrollTop:e,this.paint()},O.prototype.scrollTo=function(e,i){var t=this.selection.getCell(),n=this.config.columns.filter(function(t){return!t.hidden}),o=p.findIndex(n,function(t){return t.id==i}),r=t?t.column:this.config.columns[0],s=p.findIndex(n,function(t){return t.id==r.id}),a=this.config.leftSplit?m.getTotalWidth(n.slice(0,this.config.leftSplit)):0,l=m.getTotalWidth(n.slice(0,o))-(o-s<0?a:0),c=this.data.getRawData(0,-1),d=p.findIndex(c,function(t){return t.id==e}),u=m.getTotalHeight(c.slice(0,d)),h=this.getScrollState(),f=this.config.width+h.x,t=this.config.height+h.y-this.config.headerRowHeight*this.config.$headerLevel,s=u-h.y-c[d].$height,a=l-h.x-n[o].$width,t=u+2*c[d].$height+18-t,f=l+2*n[o].$width+18-f,t=0<s&&t<0?0:s<0?s:t,f=0<a&&f<0?0:a<0?a:f;this.scroll(f+h.x,t+h.y)},O.prototype.adjustColumnWidth=function(e,t){void 0===t&&(t=!0);var i=this.config.columns.filter(function(t){return!t.hidden}),n=i.filter(function(t){return t.id===e}),r=this._adjustColumnsWidth(this.config.data,n,t);this.config.$totalWidth=i.reduce(function(t,e){var i,n,o;return r[e.id]&&(e.$fixed=!0,i=e.maxWidth,n=e.minWidth,o=r[e.id],e.$width=o,i&&i<o&&(e.$width=i),n&&e.$width<n&&(e.$width=n)),t+e.$width},0),this.paint()},O.prototype.getCellRect=function(e,i){var t=this.config.columns.filter(function(t){return!t.hidden}),n=this.data.getRawData(0,-1),o=this.getSpan(e,i),r=p.findIndex(t,function(t){return t.id==(o?o.column:i)}),s=p.findIndex(n,function(t){return t.id==(o?o.row:e)});return{x:m.getTotalWidth(t.slice(0,r)),y:m.getTotalHeight(n.slice(0,s)),height:null!=o&&o.rowspan?f.getHeight(n,o.rowspan,s):n[s]?n[s].$height:0,width:null!=o&&o.colspan?f.getWidth(t,o.colspan,r):t[r]?t[r].$width:0}},O.prototype.getColumn=function(e){var t=p.findIndex(this.config.columns,function(t){return t.id==e});if(0<=t)return this.config.columns[t]},O.prototype.addSpan=function(e){this.config.spans=this.config.spans||[];var t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e.row&&""+t.column==""+e.column});0<=t?this.config.spans[t]=e:(this.config.spans.push(D.normalizeSpan(e,this.config)),this._checkMarks(),this.paint())},O.prototype.getSpan=function(t,e){var r=this;if(this.config.spans){var s=this.data.getIndex(t.toString()),a=this.config.columns.findIndex(function(t){return t.id===e}),i=p.findIndex(this.config.spans,function(e){var t=r.data.getIndex(e.row.toString()),i=r.config.columns.findIndex(function(t){return t.id===e.column}),n=e.rowspan?t+e.rowspan:t+1,o=e.colspan?i+e.colspan:i+1;return t<=s&&s<n&&i<=a&&a<o});return null===(t=this.config)||void 0===t?void 0:t.spans[i]}},O.prototype.removeSpan=function(e,i){var t;this.config.spans&&(t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e&&""+t.column==""+i}),this.config.spans.splice(t,1),this.paint())},O.prototype.editCell=function(t,e,i){var n,o=this.data.getItem(t),r=this.getColumn(e);o&&r?(n=r.editorType,i||("date"===r.type&&(i="datePicker"),"boolean"===r.type&&(i="checkbox"),n&&(i=n)),this.events.fire(y.GridEvents.beforeEditStart,[o,r,i])&&(null!==(n=this.config.$editable)&&void 0!==n&&n.editor||this.config.$editable&&this.config.$editable.row===t&&this.config.$editable.col===e&&this.config.$editable.editorType===i||(this.config.$editable={row:o.id,col:r.id,editorType:i},this.selection.config.disabled||this.selection.setCell(t.toString(),e.toString()),this.paint(),this.events.fire(y.GridEvents.afterEditStart,[o,r,i])))):h.dhxWarning("item not found")},O.prototype.editEnd=function(t){this.config.$editable&&this.config.$editable.editor&&this.config.$editable.editor.endEdit(t)},O.prototype.getSortingState=function(){return{dir:this._sortDir,by:this._sortBy}},O.prototype.getHeaderFilter=function(i){var n=this,t=this.getColumn(i);if(t){var o=null;return t.header.forEach(function(t){var e;t.content&&(e=n.content[t.content].element[i],o="comboFilter"===t.content?e:n.getRootView().refs[i+"_filter"].el)}),o}},O.prototype.edit=function(t,e,i){this.editCell(t,e,i)},O.prototype.paint=function(){var t=this.config.hotkeys?Object.keys(this.config.hotkeys).length:0;!this.keyManager||this.keyManager.getKeyStorageLength()-t||this._initHotKey(!0),s.prototype.paint.call(this)},O.prototype._createView=function(){var i=this;return a.create({render:function(t,e){return x.render(t,e,i._htmlEvents,i.selection,i._uid)}},this)},O.prototype._parseColumns=function(t){void 0===t&&(t=!1),v.normalizeColumns(this.config,t);t=this.config.columns.filter(function(t){return!t.hidden});v.countColumns(this.config,t)},O.prototype._parseData=function(){this.config.data=this._prepareData(this.data),this._detectColsTypes(),this._checkFilters(),this._checkMarks(),this.data.filter(function(t){return!t.hidden}),this._render()},O.prototype._createCollection=function(t){this.data=new h.DataCollection({prep:t},this.events)},O.prototype._getRowIndex=function(t){return this.data.getIndex(t)},O.prototype._setEventHandlers=function(){function i(t){return 1}var u=this;this.data.events.on(h.DataEvents.load,function(){u.data.filter(function(t){return t}),u._parseData(),u._checkFilters()}),this.data.events.on(h.DataEvents.change,function(e,t,i){if("setPage"!==t){if("add"===t||"update"===t||"remove"===t?(!e||"remove"!==t||(n=u.selection.getCells().find(function(t){return t.row.id===e}))&&u.selection.removeCell(n.row.id,n.column.id),u.config.data=u._prepareData(u.data)):(h.isTreeCollection(u.data)&&(u.config.data=u._prepareData(u.data)),u._adjustColumns()),e&&(u._filterData=u.data.map(function(t){return t})||[],u._checkFilters()),u._detectColsTypes(),u._removeMarks(),u._checkMarks(),u.config.autoEmptyRow&&(!u._activeFilters||p.isEmptyObj(u._activeFilters))){var n=u.data.find({by:"$emptyRow",match:!0});if(n){if(n.id===e)return;u.data.move(n.id,u.data.getLength()-1)}else u._addEmptyRow()}u._render()}else a.awaitRedraw().then(function(){var t=u.config.columns.find(function(t){return!0!==t.hidden});u.scrollTo(u.data.getId(i[0]).toString(),t.id.toString()),u._render()})}),this.data.events.on(h.DataEvents.removeAll,function(){u.config.columns.map(function(e){e.header.map(function(t){!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(e.$uniqueData=[])})})}),this.events.on(h.DragEvents.beforeDrag,function(t,e){return u.data.getItem(t.start)?u.events.fire(y.GridEvents.beforeRowDrag,[t,e]):"column"===u.config.dragItem||"both"===u.config.dragItem?u.events.fire(y.GridEvents.beforeColumnDrag,[t,e]):void 0}),this.events.on(h.DragEvents.dragStart,function(t,e){i({$dragtarget:!0}),u.data.getItem(t.start)?u.events.fire(y.GridEvents.dragRowStart,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.dragColumnStart,[t,e])}),this.events.on(h.DragEvents.dragIn,function(t,e){u.data.getItem(t.start)?u.events.fire(y.GridEvents.dragRowIn,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.dragColumnIn,[t,e])}),this.events.on(h.DragEvents.dragOut,function(t,e){u.data.getItem(t.start)?u.events.fire(y.GridEvents.dragRowOut,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.dragColumnOut,[t,e])}),this.events.on(h.DragEvents.canDrop,function(t,e){i({$drophere:!0}),u.data.getItem(t.start)||u.data.getItem(t.target)?u.events.fire(y.GridEvents.canRowDrop,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.canColumnDrop,[t,e])}),this.events.on(h.DragEvents.cancelDrop,function(t,e){i({$drophere:void 0}),u.data.getItem(t.start)?u.events.fire(y.GridEvents.cancelRowDrop,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.cancelColumnDrop,[t,e])}),this.events.on(h.DragEvents.beforeDrop,function(t,e){return"row"!==u.config.dragItem||"both"!==u.config.dragMode&&"target"!==u.config.dragMode?"column"===u.config.dragItem||"both"===u.config.dragItem?u.events.fire(y.GridEvents.beforeColumnDrop,[t,e]):void 0:u.events.fire(y.GridEvents.beforeRowDrop,[t,e])}),this.events.on(h.DragEvents.afterDrop,function(e,t){var i;if(u.data.getItem(e.start)){u.events.fire(y.GridEvents.afterRowDrop,[e,t]);for(var n=u.data.getItem(e.start),o=0,r=u.config.columns;o<r.length;o++){var s=r[o];void 0===n[s.id]&&u.data.update(n.id,((i={})[s.id]=null,i),!0)}var a,l=u.data.getInitialData(),c=null==l?void 0:l.findIndex(function(t){return t.id.toString()===e.start}),d=null==l?void 0:l.findIndex(function(t){return t.id.toString()===e.target});for(a in-1<c&&-1<d&&null!=l&&l.splice(d,0,null==l?void 0:l.splice(c,1)[0]),u.config.data=u._prepareData(l||u.data.map(function(t){return t})),u.data.parse(u.config.data),u._activeFilters)u.data.filter(u._activeFilters[a],{add:!0})}else"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.afterColumnDrop,[e,t])}),this.events.on(h.DragEvents.afterDrag,function(t,e){i({$dragtarget:void 0}),u.data.getItem(t.start)?u.events.fire(y.GridEvents.afterRowDrag,[t,e]):"column"!==u.config.dragItem&&"both"!==u.config.dragItem||u.events.fire(y.GridEvents.afterColumnDrag,[t,e]),u.config.data=u._prepareData(u.data instanceof Array?u.data.map(function(t){return t}):u.data.getInitialData()||u.data),u.data.parse(u.config.data)}),this.events.on(y.GridEvents.cellMouseDown,function(t,e,i){i.targetTouches?(u._touch.timer=setTimeout(function(){u._dragStart(i)},u._touch.duration),u._touch.timeStamp?(u._touch.dblDuration>=u._touch.timeStamp-+i.timeStamp.toFixed()&&((!1!==e.editable&&u.config.editable||e.editable)&&u.editCell(t.id,e.id,e.editorType),i.preventDefault(),u.events.fire(y.GridEvents.cellDblClick,[t,e,i])),u._touch.timeStamp=null):u._touch.timeStamp=+i.timeStamp.toFixed(),setTimeout(function(){u._touch.timeStamp=null},u._touch.dblDuration)):u._dragStart(i)}),this._events.on(y.GridSystemEvents.cellTouchMove,function(t,e,i){u._touch.start&&i.preventDefault(),u._clearTouchTimer()}),this._events.on(y.GridSystemEvents.cellTouchEnd,function(){u._touch.start=!1,u._clearTouchTimer()}),this.events.on(y.GridEvents.filterChange,function(e,t,o){var i;e=null!=e?e:"",!u.config.autoEmptyRow||(i=u.data.find({by:"$emptyRow",match:!0}))&&u.data.remove(i.id),u._activeFilters||(u._activeFilters={});var n,r,s,a=u._getColumn(t),l=a.header.filter(function(t){return t.content===o&&void 0!==t.customFilter})[0];for(s in""!==e?("combobox"!==a.editorType&&"select"!==a.editorType&&"multiselect"!==a.editorType||!a.options||(e=Array.isArray(e)?e.map(function(e){var t;return(null===(t=a.options.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===t?void 0:t.id)||e}):null!==(i=null===(i=a.options.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===i?void 0:i.id)&&void 0!==i?i:e),u._activeFilters[t]={by:t,match:e,compare:null!==(l=null==l?void 0:l.customFilter)&&void 0!==l?l:(n=t,r=u._getColumn(n),function(t,e,i,n){return u.content[o].match({val:t,match:e,obj:i,multi:n,col:r})}),multi:"multiselect"===(null==a?void 0:a.editorType)}):delete u._activeFilters[t],u.data.filter(function(t){return!t.hidden}),u._activeFilters)u.data.filter(u._activeFilters[s],{add:!0})}),this.events.on(y.GridEvents.scroll,function(t){u._scroll={top:t.y,left:t.x},u.editEnd(),u.paint()}),this.events.on(y.GridEvents.cellDblClick,function(t,e){(!1!==e.editable&&u.config.editable||e.editable)&&u.editCell(t.id,e.id,e.editorType)}),this.events.on(y.GridEvents.afterEditEnd,function(t,e,i){var n,o;null!==(n=u.config.$editable)&&void 0!==n&&n.editor&&(u.config.$editable.col!==i.id||u.config.$editable.row!==e.id)||(e=u.config.$editable?(o=u.config.$editable.row,u.config.$editable.col):(o=e.id,i.id),delete(i=u.data.getItem(o)).$emptyRow,void 0!==t&&u.data.update(o,g(g({},i),((i={})[e]=t,i))),u.config.$editable=null,u._checkFilters(),u.paint())}),this.events.on(y.GridEvents.headerCellMouseDown,function(t,e){var i=e.target.getAttribute("dhx_resized");i&&u.events.fire(y.GridEvents.beforeResizeStart,[t,e])&&C.startResize(u,i.toString(),e,function(){u.paint(),u.config.$resizing=null,u.events.fire(y.GridEvents.afterResizeEnd,[t,e])}),e.targetTouches&&(u._touch.timeStamp?(u._touch.dblDuration>=u._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),u.events.fire(y.GridEvents.headerCellDblClick,[t,e])),u._touch.timeStamp=null):u._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){u._touch.timeStamp=null},u._touch.dblDuration))}),this.events.on(y.GridEvents.footerCellDblClick,function(t,e){e.targetTouches&&(u._touch.timeStamp?(u._touch.dblDuration>=u._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),u.events.fire(y.GridEvents.footerCellDblClick,[t,e])),u._touch.timeStamp=null):u._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){u._touch.timeStamp=null},u._touch.dblDuration))}),this.events.on(y.GridEvents.resize,function(){u._parseColumns(),u._checkFilters()}),this.events.on(y.GridEvents.afterResizeEnd,function(e){var t;u.config.columns=null===(t=u.config.columns)||void 0===t?void 0:t.map(function(t){return t.id==e.id&&(t.width=e.$width),t}),u._parseColumns(!0),u._checkFilters()})},O.prototype._addEmptyRow=function(){var t=this.data.getId(this.data.getLength()-1),e=this.data.getItem(t),t=this.config.columns.filter(function(t){return!t.hidden});m.isRowEmpty(e)||this.data.add(t.reduce(function(t,e){return t[e.id]="",t},{$emptyRow:!0}))},O.prototype._sort=function(i,t,e){var n=this;t?this._sortDir=t:this._sortBy===i?this._sortDir="asc"===this._sortDir?"desc":"asc":this._sortDir="asc";this._sortBy=i,this.data.sort({by:i,dir:this._sortDir,as:null!=e?e:function(t){var e=n.getColumn(i);return t&&"date"===e.type?("string"==typeof t?b.stringToDate(t,e.format):t).getTime():t?""+t:""}}),this.events.fire(y.GridEvents.afterSort,[this.getColumn(i),this._sortDir])},O.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},O.prototype._checkFilters=function(){var o=this,r=this._filterData;if(r){this.config.columns.forEach(function(o){o.header.forEach(function(t){var e,i,n;!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(i=o.header.find(function(t){return t.filterConfig}),n=[],"comboFilter"===t.content&&null!==(e=t.filterConfig)&&void 0!==e&&e.readonly&&n.push(""),n.push.apply(n,v.getUnique(r,o.id,i?i.filterConfig.multiselection:null)),o.$uniqueData&&o.$uniqueData.length>n.length?n.forEach(function(t){o.$uniqueData.includes(t)||o.$uniqueData.push(t)}):o.$uniqueData=n)})});var t,s=this;for(t in this._activeFilters)!function(e){var i=s.config.columns.find(function(t){return t.id===e}),t=i.header.find(function(t){return!!t.content}),n=!1,n=Array.isArray(s._activeFilters[e].match)?s._activeFilters[e].match.reduce(function(t,e){if(i.$uniqueData.find(function(t){return t.toString()===e}))return!0},!1):i.$uniqueData.find(function(t){return t.toString()===o._activeFilters[e].match});!t||"selectFilter"!==t.content&&"comboFilter"!==t.content||n?s.data.filter(s._activeFilters[e],{add:!0}):(delete s._activeFilters[e],s.data.filter())}(t)}},O.prototype._adjustColumns=function(){var t,r,e,i=this;"boolean"==typeof this.config.adjust||"data"===this.config.adjust||"header"===this.config.adjust||"footer"===this.config.adjust?(e=this.config.columns.filter(function(t){return!t.hidden})).length&&(t=this.config.data&&this.config.data.length?this.config.data:this.data.map(function(t){return t}),r=this._adjustColumnsWidth(t,e),this.config.$totalWidth=e.reduce(function(t,e){e.$fixed=!0;var i=e.maxWidth,n=e.minWidth,o=r[e.id];return e.$width=o,i&&i<o&&(e.$width=i),n&&e.$width<n&&(e.$width=n),t+e.$width},0)):(e=this.config.columns.filter(function(t){return!t.hidden&&t.adjust})).length&&e.forEach(function(t){i.adjustColumnWidth(t.id,t.adjust)})},O.prototype._prepareData=function(t){var e=this;return this.config.autoHeight&&(this.config.autoHeight=!1),this._adjustColumns(),t.map(function(t){return t.$height=t.height||e.config.rowHeight,t})},O.prototype._adjustColumnsWidth=function(t,e,i){void 0===i&&(i=this.config.adjust);var n={};if("header"===i||!0===i){var o=e.filter(function(t){return t.header});if(d=v.getMaxColsWidth(this._prepareColumnData(o,"header"),o,{font:"bold 14.4px Arial"},"header"))for(var r=0,s=Object.entries(d);r<s.length;r++)var a=s[r],l=a[0],c=a[1],n=Object.assign(n,((a={})[l]=+c+(m.isSortable(this.config,this.getColumn(l))?36:16),a))}if("footer"===i||!0===i){var d,o=e.filter(function(t){return t.footer});if(d=v.getMaxColsWidth(this._prepareColumnData(o,"footer"),o,{font:"bold 14.4px Arial"},"footer"))for(var u=0,h=Object.entries(d);u<h.length;u++){var f=h[u],l=f[0],c=f[1];(n[l]&&n[l]<+c+16||!n[l])&&(n=Object.assign(n,((f={})[l]=+c+16,f)))}}if(("data"===i||!0===i)&&(d=v.getMaxColsWidth(t,e,{font:"normal 14.4px Arial"},"data")))for(var p=0,g=Object.entries(d);p<g.length;p++){var _=g[p],l=_[0],c=_[1];(n[l]&&n[l]<+c+16||!n[l])&&(n=Object.assign(n,((_={})[l]=+c+16,_)))}return n},O.prototype._prepareColumnData=function(t,e){for(var i,n,o=[],r=0;r<t.length;r++){for(var s=[],a=0;a<(null===(i=t[a])||void 0===i?void 0:i[e].length);a++){var l={};null!==(i=null===(i=t[r])||void 0===i?void 0:i[e][a])&&void 0!==i&&i.text?(l[t[r].id]=(null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.text)||"",s.push(l)):null!==(n=null===(n=t[r])||void 0===n?void 0:n[e][a])&&void 0!==n&&n.content&&(l[t[r].id]=this.content[null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.content].toHtml(this.getColumn(t[r].id),this.config)||"",s.push(l))}for(var c=0;c<s.length;c++)for(var d=0,u=Object.entries(s[c]);d<u.length;d++){var h=u[d],f=h[0],p=h[1];o[c]=g({},o[c])||{},o[c]=Object.assign(o[c],((h={})[f]=p,h))}}return o},O.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this._getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1!==(null==e?void 0:e.draggable)){e=l.locateNode(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id");return t.targetTouches&&(this._touch.start=!0),h.dragManager.onMouseDown(t,[e])}}},O.prototype._getColumn=function(t){for(var e=0,i=this.config.columns;e<i.length;e++){var n=i[e];if(n.id==t)return n}},O.prototype._init=function(){this.events=new r.EventSystem(this),this._events=new r.EventSystem(this),this._attachDataCollection(),this.export=new u.Exporter(this),this._setEventHandlers()},O.prototype._attachDataCollection=function(){var e=this;if(this.config.data instanceof h.DataCollection)return this.data=this.config.data,void(this.config.data=this.data.serialize());this._createCollection(function(t){return t.spans&&(e.config.spans=t.spans,t=t.data),t})},O.prototype._setMarks=function(o,r){for(var t=this.data.map(function(t){return{id:t.id,data:t[o.id],row:t}}),s=this.data.map(function(t){return t[o.id]}),a=this,e=0,i=t;e<i.length;e++)!function(t){var e,i,n=r(t.data,s,t.row,o);n&&(o.$cellCss=o.$cellCss||{},e=(o.$cellCss[t.id]||"").split(" "),n.split(" ").map(function(t){e.includes(t)||e.push(t)}),i=e.join(" "),n=a.getSpan(t.id,o.id),o.$cellCss[t.id]=i,n&&(n.rowspan||n.colspan&&n.column===o.id)&&n.$markCss!==i&&(n.$markCss=i))}(i[e])},O.prototype._checkMarks=function(){var e=this;this.config.columns.map(function(t){var o=t.mark;o&&("function"==typeof o?e._setMarks(t,o):e._setMarks(t,function(t,e){var i=[];e.forEach(function(t){null!=t&&""!==t&&i.push(parseFloat(t))});var n=p.getMinArrayNymber(i),e=p.getMaxArrayNymber(i);return o.max&&e===parseFloat(t)?o.max:!(!o.min||n!==parseFloat(t))&&o.min}))})},O.prototype._removeMarks=function(){var t;this.config.columns.forEach(function(t){t.mark&&(t.$cellCss={})}),null!==(t=this.config.spans)&&void 0!==t&&t.forEach(function(t){t.$markCss&&delete t.$markCss})},O.prototype._detectColsTypes=function(){this.config.columns.forEach(function(t){return t.type?t:t.format?(t.type="number",t):void(t.type||(t.type="string"))})},O.prototype._destroyContent=function(){for(var t in this.content)"comboFilter"===t&&this.content[t].destroy()},O.prototype._render=function(){this.paint()},O.prototype._initHotKey=function(t){void 0===t&&(t=!1);var e=S.getKeysHandlers(this);for(i in e)this.keyManager.exist(i)||this.keyManager.addHotKey(i,e[i]);if(!t)for(var i in this.config.hotkeys)this.keyManager.addHotKey(i,this.config.hotkeys[i])},O);function O(t,e){var r=s.call(this,t,e)||this;r._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},r.config=p.extend({rowHeight:40,headerRowHeight:40,footerRowHeight:40,keyNavigation:!0,sortable:!0,columns:[],data:[],tooltip:!0,rootParent:"string"==typeof t&&t||r._uid,headerSort:!0},e),r.content=w.getContent(),r._scroll={top:0,left:0};function i(){var t;r.config.spans=null===(t=r.config.spans)||void 0===t?void 0:t.map(function(t){return D.normalizeSpan(t,r.config)})}r.config.data instanceof h.DataCollection?a.awaitRedraw().then(i):i(),r.config.autoWidth=r.config.autoWidth||r.config.fitToContainer,r.config.adjust=r.config.adjust||r.config.columnsAutoWidth,r.config.editable=r.config.editable||r.config.editing,r.config.leftSplit=r.config.leftSplit||r.config.splitAt,r.config.sortable&&r.config.headerSort||(r.config.sortable=!1),r.config.columns.forEach(function(t){t.format=t.format||t.dateFormat});function n(t,e,i){var n,o;t&&e&&m.isTooltip(r.config,e)&&(n=v.toFormat(t[e.id],e.type,e.format),o=function(){return!!n||"boolean"==typeof n},e.tooltipTemplate?n=e.tooltipTemplate(n,t,e)||null:o()&&e.template&&(n=e.template(n,t,e)),o()&&E.tooltip(n.toString(),{css:"dhx_grid_tooltip",node:i,htmlEnable:m.isHtmlEnable(r.config,e)}))}function o(t,e){var i;e&&m.isTooltip(r.config,e)&&((i=t.target.querySelector(".dhx_grid-header-cell-text span")&&t.target.querySelector(".dhx_grid-header-cell-text span").textContent||t.target.querySelector(".dhx_grid-footer-cell-text span")&&t.target.querySelector(".dhx_grid-footer-cell-text span").textContent||"")&&E.tooltip(i,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:m.isHtmlEnable(r.config,e)}))}return r._htmlEvents={onclick:l.eventHandler(function(t){return l.locate(t)},{"dhx_grid-header-cell--sortable":function(t,e){var i,n=t.target.getAttribute("dhx_resized"),o=r._getColumn(e);o&&m.isSortable(r.config,o)&&!n&&r.events.fire(y.GridEvents.beforeSort,[o,r._sortDir?"asc":"desc"])&&(t=(i=null===(t=l.locateNodeByClassName(t,"dhx_grid-header-cell"))||void 0===t?void 0:t.querySelector(".dhx_grid-header-cell-text_content").innerHTML)?o.header.find(function(t){return t.text===i}):null,o="asc"===r._sortDir&&r._sortBy===e?"desc":"asc",r._sort(e,o,null==t?void 0:t.sortAs))},"dhx_grid-expand-cell":function(t,e){t.target.classList.contains("dhx_grid-expand-cell-icon")&&r.events.fire(y.GridEvents.expand,[e])}}),onscroll:function(t){r.events.fire(y.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])},onmouseover:{".dhx_grid-cell.dhx_boolean-cell .dhx_checkbox.dhx_cell-editor__checkbox":function(t){var e=t.composedPath(),i=r.data.getItem(e[2].getAttribute("data-dhx-id")),e=r._getColumn(e[1].getAttribute("data-dhx-col-id"));n(i,e,t.target)},".dhx_grid-cell:not(.dhx_boolean-cell)":function(t){var e=r.data.getItem(t.composedPath()[1].getAttribute("data-dhx-id")),i=r._getColumn(t.target.getAttribute("data-dhx-col-id"));n(e,i,t.target)},".dhx_grid-cell:not(.dhx_tree-cell) .dhx_grid-cell__content, .dhx_tree-cell :not(.dhx_grid-cell__content)":function(t){var e=t.composedPath(),i=r.data.getItem(e[2].getAttribute("data-dhx-id")),e=r._getColumn(e[1].getAttribute("data-dhx-col-id"));n(i,e,t.target)},".dhx_grid-cell.dhx_tree-cell .dhx_grid-cell__content":function(t){var e=t.composedPath(),i=r.data.getItem(e[3].getAttribute("data-dhx-id")),t=r._getColumn(e[2].getAttribute("data-dhx-col-id"));n(i,t,e[2])},".dhx_span-cell:not(.dhx_grid-header-cell)":function(t){var e,i=r.data.getItem(t.target.getAttribute("data-dhx-id")),n=r._getColumn(t.target.getAttribute("data-dhx-col-id")),o=r.getSpan(i.id,n.id);i&&o&&m.isTooltip(r.config,o)&&(e=o.text||v.toFormat(i[n.id],n.type,n.format),o.tooltipTemplate?e=o.tooltipTemplate(e,o):n.template&&(e=n.template(e,i,n)),e&&E.tooltip(e,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:!0}))},".dhx_grid-header-cell:not(.dhx_span-cell)":function(t){var e=r._getColumn(t.target.getAttribute("data-dhx-id"));o(t,e)},".dhx_grid-footer-cell:not(.dhx_span-cell)":function(t){var e=r._getColumn(t.target.getAttribute("data-dhx-id"));o(t,e)},".dhx_grid-header-cell.dhx_span-cell":function(t){var e=r._getColumn(t.target.getAttribute("data-dhx-id")),i=e&&e.header.find(function(t){return!(!t.rowspan&&!t.colspan)});e&&i&&m.isTooltip(r.config,e)&&((i=i.text||"")&&E.tooltip(i,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:m.isHtmlEnable(r.config,e)}))},".dhx_grid-header-cell-text_content":function(t){var e=t.composedPath(),i=r._getColumn(e[1].getAttribute("data-dhx-id"));i&&m.isTooltip(r.config,i)&&((t=e[2].querySelector(".dhx_grid-header-cell-text_content")&&e[2].querySelector(".dhx_grid-header-cell-text_content").textContent||"")&&E.tooltip(t,{css:"dhx_grid_tooltip",node:e[1],htmlEnable:m.isHtmlEnable(r.config,i)}))}}},(r.config.dragMode||r.config.dragItem)&&(h.dragManager.setItem(r._uid,r),r.config.dragItem||(r.config.dragItem="row"),r.config.dragMode||(r.config.dragMode="both")),r._init(),r.config.columns&&r._parseColumns(!0),r.config.data&&r.config.data instanceof Array&&r.config.data.length&&r.config.columns&&r.data.parse(r.config.data),r.selection=new _.Selection(r,{disabled:!r.config.selection},r.events,r._uid),r.mount(t,r._createView()),r.config.autoWidth&&r.config.autoHeight&&r._prepareData(r.config.data),a.awaitRedraw().then(function(){r.config.keyNavigation&&(r.keyManager=new c.KeyManager(function(t,e){return!(e!==r._uid||!r.events.fire(y.GridEvents.beforeKeyDown,[t]))&&(r.events.fire(y.GridEvents.afterKeyDown,[t]),!0)}),r._initHotKey(),k.focusManager.setFocusId(r._uid))}),e.autoEmptyRow&&0===r.data.getLength()&&(r._addEmptyRow(),r.paint()),r}e.Grid=o},function(t,e,i){"use strict";var y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var x=i(0),b=i(2),a=i(11),w=i(8),C=i(15),E=i(56),S=i(57),k=i(1),D=2;function O(t,e,i){var n=t.config,o=n.columns.filter(function(t){return!t.hidden}),r=a.calculatePositions(i.width,i.height,t._scroll,n,e),s=o.slice(r.xStart,r.xEnd),i=e.slice(r.yStart,r.yEnd);return y(y({},n),{data:e,columns:o,scroll:t._scroll,$positions:r,headerHeight:n.$headerLevel*n.headerRowHeight,footerHeight:n.$footerLevel*n.footerRowHeight,firstColId:o[0]&&o[0].id,events:t.events,_events:t._events,currentColumns:s,currentRows:i,sortBy:t._sortBy,sortDir:t._sortDir,content:t.content,gridId:t._uid,$renderFrom:"render"})}function M(t){if(t&&(t.tagName||(t=t._parent._container),t)){var e=t.currentStyle||window.getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)||0,e=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)||0;return{width:t.clientWidth-i,height:t.clientHeight-e}}}function T(t,e){var i,n=C.getCells(t),o=t.columns,r=t.$resizing,s=t.$totalHeight,a=t.$totalWidth,l=t.leftSplit,c=t.data,d=t.$positions,u=t.currentRows,h=t.currentColumns,f=t.eventHandlers,p=C.getSpans(t);r&&(i=k.findIndex(o,function(t){return t.id===r}),_=w.getTotalWidth(o.slice(0,i))+o[i].$width,i=x.el(".dhx_grid-resize-line",{style:{top:0,left:_,height:s}}));var g,_="string"==typeof(_=t.selection?t.selection.toHTML():null)?x.el("div.dhx_selection",{".innerHTML":_}):_,d=d,v={};if(f)for(var m in f)f.hasOwnProperty(m)&&(g=f[m],v[m]=b.eventHandler(function(t){return e=t,i=b.locate(e,"data-dhx-id"),n=b.locate(e,"data-dhx-col-id"),t=u.filter(function(t){return t.id.toString()===i})[0],e=h.filter(function(t){return t.id===n})[0],{row:i?t:{},col:n?e:{}};var e,i,n},y({},g)));return x.el(".dhx_data-wrap",y({style:{height:s,width:a,"padding-left":e.x,"padding-top":e.y},role:"presentation"},v),[x.el(".dhx_grid_data"+(l?".dhx_grid_fixed_left":""),y(y({_flags:x.KEYED_LIST},C.getHandlers(d.yStart,d.xStart,t)),{role:"rowgroup","aria-rowcount":c.length}),n),x.el(".dhx_span-spans",{role:"presentation"},p),x.el(".dhx_grid_selection",{_ref:"selection","aria-hidden":"true"},[_,i])])}function P(t,e,i){i=i.height-D,i=e?i:i-t.headerHeight;return!t.$footer||e?i:i-t.footerHeight}function L(e,t,o,r,i){void 0===o&&(o=!0),void 0===r&&(r=!1),void 0===i&&(i=!1);var s,n=!i&&e.$totalHeight>=t.height-e.headerRowHeight?b.getScrollbarWidth():0,a=t.width-D-n,l=e.columns.filter(function(t){return!t.hidden}),n=l.filter(function(t){return!t.width&&!t.$fixed&&w.isAutoWidth(e,t)}),c=w.getTotalWidth(l.filter(function(t){return t.width||t.$fixed||!w.isAutoWidth(e,t)})),d=n.reduce(function(t,e){return t+(e.gravity||1)},0);a<e.$totalWidth?(s=n.reduce(function(t,e){return t+(e.maxWidth||e.$width)},0),n.length&&n.forEach(function(t){var e=0,i=(e=o?Math.abs(a-s)*((t.gravity||1)/d):Math.abs(a-c)*((t.gravity||1)/d))<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,t.$fixed=!0):n&&(t.$width=t.maxWidth,t.$fixed=!0):t.$width=e,t.$width<20&&(t.$width=20)})):n.forEach(function(t){var e=Math.abs(a-c)*((t.gravity||1)/d),i=e<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,r&&(t.$fixed=!0)):n&&(t.$width=t.maxWidth,r&&(t.$fixed=!0)):t.$width=e,t.$width<20&&(t.$width=20),!o&&t.$fixed&&delete t.$fixed}),o&&L(e,t,!1,r,i)}e.getRenderConfig=O,e.render=function(t,e,i,n,o){e._container||(e.config.width=1,e.config.height=1),t&&t.node&&t.node.parent&&t.node.parent.el&&(m=M(t.node.parent.el),e.config.width=m.width,e.config.height=m.height);var r=e.config;if(!r)return x.el("div");if(!r.columns.length)return x.el(".dhx_grid",{"data-dhx-root-id":r.rootParent});var s=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=s.reduce(function(t,e){return t+(e.$height||0)},0);var a=M(e._container),l={width:r.width||a&&a.width||0,height:r.height||a&&a.height||0};w.isAutoWidth(r)&&(L(r,l),r.$totalWidth=w.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.width=l.width,r.height=l.height;var c=O(e,s,l);c.selection=n,c.datacollection=e.data;var d,u,h,f,p=C.getShifts(c),g=w.isCssSupport("position","sticky"),_=P(c,g,l),v={wrapper:l,sticky:g,shifts:p,gridBodyHeight:_},m=S.getFixedRows(c,y(y({},v),{name:"header",position:"top"})),a=c.$footer?S.getFixedRows(c,y(y({},v),{name:"footer",position:"bottom"})):null,s=c.$totalWidth+D<l.width?"dhx_grid-less-width":"",n=c.$totalHeight+D<l.height?"dhx_grid-less-height":"";return t.node||(t=e.getScrollState(),d=t.x,u=t.y,x.awaitRedraw().then(function(){e.scroll(d,u)})),x.el(".dhx_grid.dhx_widget",y({class:(c.css||"")+(g?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent},(h=c.data,f=r.columns,t=c.editable,o=c.multiselection,{role:"grid","aria-rowcount":h.length,"aria-colcount":f.filter(function(t){return!t.hidden}).length,"aria-readonly":t?"false":"true","aria-multiselectable":o?"true":"false"})),[x.resizer(function(t){return w.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,L(r,l,!0,!0)),e.paint()}),x.el(".dhx_grid-content",{style:y({},l),onclick:i.onclick,onmouseover:i.onmouseover,class:(s+" "+n).trim(),role:"presentation"},[g?null:m,x.el(".dhx_grid-body",{style:{height:_,width:l.width-D},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[x.el("div",{},[g?m:null,T(c,p),g?a:null])]),E.getFixedColsHeader(c,v),E.getFixedCols(c,v),S.getFixedDataRows(c,v),g?null:a])])},e.proRender=function(t,e,i,n,o){e._container||(e.config.width=1,e.config.height=1),t&&t.node&&t.node.parent&&t.node.parent.el&&(_=M(t.node.parent.el),e.config.width=_.width,e.config.height=_.height);var r=e.config;if(!r)return x.el("div");if(!r.columns.length)return x.el(".dhx_grid",{"data-dhx-root-id":r.rootParent});var s=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=s.reduce(function(t,e){return t+(e.$height||0)},0);var a=M(e._container),l={width:r.width||a&&a.width||0,height:r.height||a&&a.height||0};w.isAutoWidth(r)&&(L(r,l,!0,!1,e.scrollView&&e.scrollView.config.enable),r.$totalWidth=w.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.width=l.width,r.height=l.height;var c=O(e,s,l);c.selection=n,c.datacollection=e.data;var d,u,h=C.getShifts(c),f=w.isCssSupport("position","sticky"),p=P(c,f,l),g={wrapper:l,sticky:f,shifts:h,gridBodyHeight:p},_=S.getFixedRows(c,y(y({},g),{name:"header",position:"top"})),a=c.$footer?S.getFixedRows(c,y(y({},g),{name:"footer",position:"bottom"})):null,s=c.$totalWidth+D<l.width?"dhx_grid-less-width":"",n=c.$totalHeight+D<l.height?"dhx_grid-less-height":"";return t.node||(t=e.getScrollState(),d=t.x,u=t.y,x.awaitRedraw().then(function(){e.scroll(d,u)})),h=x.el("div",{},[f?_:null,T(c,h),f?a:null]),x.el(".dhx_grid.dhx_widget",{class:(c.css||"")+(f?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"grid","aria-rowcount":c.data.length,"aria-colcount":r.columns.filter(function(t){return!t.hidden}).length},[x.resizer(function(t){return w.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,L(r,l,!0,!0)),e.paint()}),x.el(".dhx_grid-content",{style:y({},l),onclick:i.onclick,onmouseover:i.onmouseover,class:(s+" "+n).trim(),role:"presentation"},[f?null:_,x.el(".dhx_grid-body",{style:{height:p,width:l.width-D},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[e.scrollView&&e.scrollView.config.enable?e.scrollView.render([h]):h]),E.getFixedColsHeader(c,g),E.getFixedCols(c,g),S.getFixedDataRows(c,g),f?null:a])])}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(26),a=i(43),l=i(0),o=(r=a.Cell,o(c,r),c.prototype.destructor=function(){for(var t=0,e=this._all;t<e.length;t++){var i=e[t];this._all[i].destructor()}this.config=this._cells=this._root=this._xLayout=this._isViewLayout=null,this._all={},this.unmount()},c.prototype.toVDOM=function(){if(this._isViewLayout){var t=[this.getCell(this.config.activeView).toVDOM()];return r.prototype.toVDOM.call(this,t)}var e=[];return this._inheritTypes(),this._cells.forEach(function(t){t=t.toVDOM();Array.isArray(t)?e=e.concat(t):e.push(t)}),r.prototype.toVDOM.call(this,e)},c.prototype.removeCell=function(e){if(this.events.fire(s.LayoutEvents.beforeRemove,[e])){var t=this.config.parent||this;if(t!==this)return t.removeCell(e);t=this.getCell(e);t&&(t=t.getParent(),delete this._all[e],t._cells=t._cells.filter(function(t){return t.id!=e}),t.paint()),this.events.fire(s.LayoutEvents.afterRemove,[e])}},c.prototype.addCell=function(t,e){var i;void 0===e&&(e=-1),this.events.fire(s.LayoutEvents.beforeAdd,[t.id])&&(i=this._createCell(t),e<0&&(e=this._cells.length+e+1),this._cells.splice(e,0,i),this.paint(),this.events.fire(s.LayoutEvents.afterAdd,[t.id]))},c.prototype.getId=function(t){return t<0&&(t=this._cells.length+t),this._cells[t]?this._cells[t].id:void 0},c.prototype.getRefs=function(t){return this._root.getRootView().refs[t]},c.prototype.getCell=function(t){var e;return null===(e=this._root)||void 0===e?void 0:e._all[t]},c.prototype.forEach=function(t,e,i){if(void 0===i&&(i=1/0),this._haveCells(e)&&!(i<1))for(var n=(e?this._root._all[e]:this._root)._cells,o=0;o<n.length;o++){var r=n[o];t.call(this,r,o,n),this._haveCells(r.id)&&r.forEach(t,r.id,--i)}},c.prototype.cell=function(t){return this.getCell(t)},c.prototype._getCss=function(t){var e=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",i=this.config.align?" "+e+"--"+this.config.align:"";if(t)return e+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:"");var n=this.config.parent?r.prototype._getCss.call(this):"dhx_widget dhx_layout",t=this.config.parent?"":" dhx_layout-cell";return n+(this.config.full?t:" "+e)+i},c.prototype._parseConfig=function(){var e=this,t=this.config,i=t.rows||t.cols||t.views||[];this._xLayout=!t.rows,this._cells=i.map(function(t){return e._createCell(t)})},c.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new c(this,t)):new a.Cell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},c.prototype._haveCells=function(t){if(t){t=this._root._all[t];return t._cells&&0<t._cells.length}return 0<Object.keys(this._all).length},c.prototype._inheritTypes=function(t){var e,i=this;void 0===t&&(t=this._cells),Array.isArray(t)?t.forEach(function(t){return i._inheritTypes(t)}):((e=t.config).rows||e.cols)&&(t=t.getParent(),!e.type&&t&&(t.config.type?e.type=t.config.type:this._inheritTypes(t)))},c);function c(t,e){var i=r.call(this,t,e)||this;return i._root=i.config.parent||i,i._all={},i._parseConfig(),i.config.activeTab&&(i.config.activeView=i.config.activeTab),i.config.views&&(i.config.activeView=i.config.activeView||i._cells[0].id,i._isViewLayout=!0),e.parent||(e=l.create({render:function(){return i.toVDOM()}},i),i.mount(t,e)),i}e.Layout=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,c=i(1),d=i(0),s=i(7),u=i(26),h=i(95),a=i(5),f=i(39),o=(r=s.View,o(p,r),p.prototype.paint=function(){var t;this.isVisible()&&((t=this.getRootView())?t.redraw():this._parent.paint())},p.prototype.isVisible=function(){if(!this._parent)return!(!this._container||!this._container.tagName)||Boolean(this.getRootNode());var t=this._parent.config.activeView;return(!t||t===this.id)&&(!this.config.hidden&&(!this._parent||this._parent.isVisible()))},p.prototype.hide=function(){this.events.fire(u.LayoutEvents.beforeHide,[this.id])&&(this.config.hidden=!0,this._parent&&this._parent.paint&&this._parent.paint(),this.events.fire(u.LayoutEvents.afterHide,[this.id]))},p.prototype.show=function(){var t=this;this.events.fire(u.LayoutEvents.beforeShow,[this.id])&&(this._parent&&this._parent.config&&void 0!==this._parent.config.activeView?this._parent.config.activeView=this.id:this.config.hidden=!1,this._parent&&!this._parent.isVisible()&&this._parent.show(),this.paint(),this._ui instanceof f.Grid&&this._ui.config.keyNavigation&&d.awaitRedraw().then(function(){t._ui.setColumns(t._ui.config.columns),t.paint()}),this.events.fire(u.LayoutEvents.afterShow,[this.id]))},p.prototype.expand=function(){this.events.fire(u.LayoutEvents.beforeExpand,[this.id])&&(this.config.collapsed=!1,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(u.LayoutEvents.afterExpand,[this.id]),this.paint())},p.prototype.collapse=function(){this.events.fire(u.LayoutEvents.beforeCollapse,[this.id])&&(this.config.collapsed=!0,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(u.LayoutEvents.afterCollapse,[this.id]),this.paint())},p.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse()},p.prototype._checkNextSize=function(t){var e=null!=t?t:this._getNextCell();return!!e&&(this._isXDirection()&&e.config.$autoWidth&&e.config.width?!(e.config.width=void 0):!this._isXDirection()&&e.config.$autoHeight&&e.config.height?!(e.config.height=void 0):!t&&e._checkNextSize())},p.prototype.getParent=function(){return this._parent},p.prototype.destructor=function(){var t;this.events&&this.events.clear(),window.removeEventListener("resize",this._afterWindowResized),"function"==typeof(null===(t=this.getWidget())||void 0===t?void 0:t.destructor)&&this.getWidget().destructor(),this.config=this.events=this.id=this._parent=this._handlers=this._uid=this._disabled=this._resizerHandlers=null,this.unmount()},p.prototype.getWidget=function(){return this._ui},p.prototype.getCellView=function(){return this._parent&&this._parent.getRefs(this._uid)},p.prototype.attach=function(t,e){var i=this;return this.config.html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof s.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui instanceof f.Grid&&this._ui.config.keyNavigation&&d.awaitRedraw().then(function(){i._ui.setColumns(i._ui.config.columns),i.paint()}),this._ui},p.prototype.attachHTML=function(t){this.config.html=t,this.paint()},p.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this._calculateStyle(),n=c.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",i=this.config.full||this.config.html?i:l(l({},i),n);this.config.html||(e=this._ui?((o=this._ui.getRootView()).render&&(o=d.inject(o)),[o]):t||null);var o=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?d.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),l(l({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[d.el("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,r={};if(this.config.on)for(var s in this.config.on)r["on"+s]=this.config.on[s];var a="",t=this.config.cols||this.config.rows;if(this.config.type&&t)switch(this.config.type){case"line":a=" dhx_layout-line";break;case"wide":a=" dhx_layout-wide";break;case"space":a=" dhx_layout-space"}n=d.el("div",l(l(((t={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,t),r),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?a:""),style:i}),this.config.full?[d.el("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to "+(this.config.collapsed?"expand":"collapse"):null,class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&d.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&d.el(".dhx_layout-cell-header__image-wrapper",[d.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&d.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?d.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):d.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:d.el("div",{style:l(l({},n),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?a:"")},this.config.html?[d.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:d.el(".dhx_layout-cell-content",{style:n},[d.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])]);return o?[n,o]:n}},p.prototype._getCss=function(t){return"dhx_layout-cell"},p.prototype._initHandlers=function(){var r=this;window.addEventListener("resize",this._afterWindowResized);function n(t,e){var i,n,o;void 0===e&&(e={x:0,y:0}),s.isActive&&(o=s.xLayout,i=t.targetTouches?t.targetTouches[0].clientX:t.clientX+e.x,n=t.targetTouches?t.targetTouches[0].clientY:t.clientY+e.y,t=o?"width":"height",(e=o?i-s.range.min+window.pageXOffset:n-s.range.min+window.pageYOffset)<0?e=s.resizerLength/2:e>s.size&&(e=s.size-s.resizerLength),n=(i=function(t){return parseInt(null===(t=r.config[t])||void 0===t?void 0:t.toString())})(o?"maxWidth":"maxHeight"),o=i(o?"minWidth":"minHeight"),(!n||e<n)&&(!o||o<e)&&(r.config[t]=e-s.resizerLength/2+"px",s.nextCell.config[t]=s.size-e-s.resizerLength/2+"px",s.nextCell._getAnyFlexCell()&&(s.nextCell._getAnyFlexCell().config[t]=void 0),r.paint(),r.events.fire(u.LayoutEvents.resize,[r.id])))}function i(t){var e,i,n;t.targetTouches&&t.preventDefault(),3!==t.which&&(s.isActive&&a(t),r.events.fire(u.LayoutEvents.beforeResizeStart,[r.id])&&(document.body.classList.add("dhx_no-select--resize"),i=r.getCellView(),n=(e=r._getNextCell()).getCellView(),t=r._getResizerView(),i=i.el.getBoundingClientRect(),t=t.el.getBoundingClientRect(),n=n.el.getBoundingClientRect(),s.xLayout=r._isXDirection(),s.left=i.left+window.pageXOffset,s.top=i.top+window.pageYOffset,s.collapsedSize=r._getCollapsedSize(r,e),s.margin=h.getMarginSize(r.getParent().config,s.xLayout),s.range=h.getBlockRange(i,n,s.xLayout),s.size=s.range.max-s.range.min-s.margin-s.collapsedSize,s.isActive=!0,s.nextCell=e,s.resizerLength=s.xLayout?t.width:t.height))}var s={left:null,top:null,isActive:!(this._handlers={enterCollapse:function(t){13===t.keyCode&&r._handlers.toggle()},collapse:function(){r.config.collapsable&&r.collapse()},expand:function(){r.config.collapsable&&r.expand()},toggle:function(){r.config.collapsable&&r.toggle()}}),range:null,xLayout:null,nextCell:null,size:null,resizerLength:null,margin:null,collapsedSize:null},o={},a=function(t){if(s.isActive=!1,document.body.classList.remove("dhx_no-select--resize"),t.targetTouches)for(var e in document.removeEventListener("touchend",a),document.removeEventListener("touchmove",n),o)o[e].node.contentWindow.document.removeEventListener("touchend",a),o[e].node.contentWindow.document.removeEventListener("touchmove",o[e].listener);else for(var e in document.removeEventListener("mouseup",a),document.removeEventListener("mousemove",n),o)o[e].node.contentWindow.document.removeEventListener("mouseup",a),o[e].node.contentWindow.document.removeEventListener("mousemove",o[e].listener);r.events.fire(u.LayoutEvents.afterResizeEnd,[r.id])};this._resizerHandlers={onmousedown:function(t){i(t),document.addEventListener("mouseup",a),document.addEventListener("mousemove",n);t=document.querySelectorAll("iframe");if(t.length)for(var e in t.forEach(function(t,e){var i={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};o[e]={node:t,listener:function(t){return n(t,i)}}}),o)o[e].node.contentWindow.document.addEventListener("mouseup",a),o[e].node.contentWindow.document.addEventListener("mousemove",o[e].listener)},ontouchstart:function(t){i(t),document.addEventListener("touchend",a),document.addEventListener("touchmove",n);t=document.querySelectorAll("iframe");if(t.length)for(var e in t.forEach(function(t,e){var i={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};o[e]={node:t,listener:function(t){return n(t,i)}}}),o)o[e].node.contentWindow.document.addEventListener("touchend",a),o[e].node.contentWindow.document.addEventListener("touchmove",o[e].listener)},ondragstart:function(t){return t.preventDefault()}}},p.prototype._getCollapsedSize=function(t,e){var i=0,n=this._parent,t=n._cells.indexOf(t),o=n._cells.indexOf(e);if(o-t==1)return i;for(var r=t+1;r<o;r++)n._cells[r].config.collapsed&&(this._isXDirection()?i+=45:i+=Number(n._cells[r].config.headerHeight)||37);return i},p.prototype._getCollapseIcon=function(){return this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-right":this._isXDirection()&&!this.config.collapsed?"dxi dxi-chevron-left":!this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-up":this._isXDirection()||this.config.collapsed?void 0:"dxi dxi-chevron-down"},p.prototype._isLastCell=function(){var t=this._parent;return t&&t._cells.indexOf(this)===t._cells.length-1},p.prototype._getNextCell=function(){var t=this._parent,e=t._cells.indexOf(this),e=!this._isLastCell()&&t._cells[e+1];return!!e&&(e.config.hidden||e.config.collapsed?e._getNextCell():e)},p.prototype._getAnyFlexCell=function(e){var i=this;void 0===e&&(e=!1);var t=this._parent,n=this._isXDirection()?"$autoWidth":"$autoHeight",t=null===(t=null==t?void 0:t._cells)||void 0===t?void 0:t.filter(function(t){return!0===t.config[n]&&(!!e||t.id!==i.id)});return!(null==t||!t.length)&&t[t.length-1]},p.prototype._getResizerView=function(){return this._parent.getRefs("resizer_"+this._uid)},p.prototype._isXDirection=function(){return this._parent&&this._parent._xLayout},p.prototype._calculateStyle=function(){var t=this.config;if(t){var e={},i=!1,n=!1;isNaN(Number(t.width))||(t.width=t.width+"px"),isNaN(Number(t.height))||(t.height=t.height+"px"),isNaN(Number(t.minWidth))||(t.minWidth=t.minWidth+"px"),isNaN(Number(t.minHeight))||(t.minHeight=t.minHeight+"px"),isNaN(Number(t.maxWidth))||(t.maxWidth=t.maxWidth+"px"),isNaN(Number(t.maxHeight))||(t.maxHeight=t.maxHeight+"px"),"content"===t.width&&(i=!0),"content"===t.height&&(n=!0);var o=t.width,r=t.height,s=t.cols,a=t.rows,l=t.minWidth,c=t.minHeight,d=t.maxWidth,u=t.maxHeight,h=t.gravity,f=t.collapsed,p=t.$fixed,g=-1===Math.sign(h)?0:h;"boolean"==typeof h&&(g=h?1:0);var _="boolean"==typeof h?!h:-1===Math.sign(h);this._isXDirection()?(p||o||void 0===h&&(l||d))&&(_=!0):(p||r||void 0===h&&(c||u))&&(_=!0);var v,_=_?0:g||1,g=this._isXDirection()?"x":"y";return void 0===l||f||(e.minWidth=l),void 0===c||f||(e.minHeight=c),void 0!==d&&(e.maxWidth=d),void 0!==u&&(e.maxHeight=u),void 0===this._parent&&(g=!0),void 0!==o&&"content"!==o?e.width=o:!0===g?e.width="100%":"x"===g&&(i?e.flex="0 0 auto":(v=this._isXDirection()?"1px":"auto",e.flex=_+" "+(s||a?"0 "+v:"1 auto"))),void 0!==r&&"content"!==r?e.height=r:!0===g?e.height="100%":"y"===g&&(n?e.flex="0 0 auto":(v=this._isXDirection()?"auto":"1px",e.flex=_+" "+(s||a?"0 "+v:"1 auto"))),!0===g&&void 0===t.width&&void 0===t.height&&(e.flex=_+" 1 auto"),f&&(this._isXDirection()?e.width="auto":e.height="auto",e.flex="0 0 auto"),e}},p.prototype._resizedWindow=function(){var t;void 0===this._isLastFlexCell?this._isLastFlexCell=(null===(t=this._getAnyFlexCell(!0))||void 0===t?void 0:t.id)===this.id:this._isLastFlexCell||window.removeEventListener("resize",this._afterWindowResized),this._isLastFlexCell&&(t=this._isXDirection()?"width":"height",this.config[t]=void 0,this.paint())},p);function p(t,e){var i=r.call(this,t,e)||this;return i._disabled=[],t&&t.isVisible&&(i._parent=t),i._parent&&i._parent.events?i.events=i._parent.events:i.events=new a.EventSystem(i),i.config.full=void 0===i.config.full?Boolean(i.config.header||i.config.collapsable||i.config.headerHeight||i.config.headerIcon||i.config.headerImage):i.config.full,i._afterWindowResized=i._resizedWindow.bind(i),i._initHandlers(),i.id=i.config.id||c.uid(),i._isXDirection()&&!e.width&&(e.$autoWidth=!0),i._isXDirection()||e.height||(e.$autoHeight=!0),i}e.Cell=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.PopupEvents||(e.PopupEvents={})).beforeHide="beforeHide",e.beforeShow="beforeShow",e.afterHide="afterHide",e.afterShow="afterShow",e.click="click"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SliderEvents||(e.SliderEvents={})).change="change",e.focus="focus",e.blur="blur",e.keydown="keydown",e.mousedown="mousedown",e.mouseup="mouseup"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.TimepickerEvents||(e.TimepickerEvents={})).change="change",e.beforeApply="beforeApply",e.afterApply="afterApply",e.beforeClose="beforeClose",e.afterClose="afterClose",e.apply="apply",e.close="close",e.save="save"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.CalendarEvents||(e.CalendarEvents={})).change="change",e.beforeChange="beforechange",e.modeChange="modeChange",e.monthSelected="monthSelected",e.yearSelected="yearSelected",e.cancelClick="cancelClick",e.dateMouseOver="dateMouseOver",e.dateHover="dateHover"},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(49)),n(e(111)),n(e(55))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),h=i(0),s=i(5),f=i(2),a=i(106),l=i(7),c=i(6),d=i(25),p=i(50),g=i(28),_=i(110),v=i(53),m=i(20),y=i(54),x=i(55);function b(t){return t.icon?'<span class="'+t.icon+' dhx_combobox-options__icon"></span> <span class="dhx_combobox-options__value">'+t.value+"</span>":t.src?'<img src="'+t.src+'" class="dhx_combobox-options__image" alt='+t.value+'></img> <span class="dhx_combobox-options__value">'+t.value+"</span>":'<span class="dhx_combobox-options__value">'+t.value+"</span>"}var w,o=(w=l.View,o(C,w),C.prototype.focus=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.focus()},C.prototype.blur=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.blur(),this.popup.hide()},C.prototype.enable=function(){this.config.disabled=!1,this.paint()},C.prototype.disable=function(){this.config.disabled=!0,this.paint()},C.prototype.isDisabled=function(){return this.config.disabled},C.prototype.clear=function(){this.list.selection.remove(),this._state.value="",this._filter(),this.paint()},C.prototype.getValue=function(t){var e=this.list.selection.getId();return t?r.wrapBox(e):Array.isArray(e)?e.join(","):e},C.prototype.setValue=function(t){return this._setValue(t,!1)},C.prototype.addOption=function(t,e){void 0===e&&(e=!0),t&&"string"==typeof t&&(t=this.data.add({value:t}),t=this.config.multiselection&&e?u(this.list.selection.getId(),[t]):t,this.setValue(t))},C.prototype.destructor=function(){this.popup&&this.popup.destructor(),this.events&&this.events.clear(),this.list&&this.list.destructor(),this._helper&&this._helper.destructor(),this._layout&&this._layout.destructor(),this.config=this.events=this.list=this.popup=null,this._helper=this._keyListener=this._handlers=this._state=this._uid=this._isPopupConfiqureted=null,this.unmount()},C.prototype.setState=function(t){switch(t){case"success":this._state.currentState=x.ComboState.success;break;case"error":this._state.currentState=x.ComboState.error;break;default:this._state.currentState=x.ComboState.default}this.paint()},C.prototype._setValue=function(t,e){var i=this;if(void 0===e&&(e=!1),!this._exsistId(t))return!1;this._filter(),this.list.selection.remove(),this.config.multiselection?("string"==typeof t&&(t=t.split(",")),"number"==typeof t&&(t=[t]),t.forEach(function(t){i.list.selection.add(t,!1,!1,e)})):(t=r.unwrapBox(t),this.list.selection.add(t,!1,!1,e),(t=this.data.getItem(t))&&(this._state.value=this._getItemText(t))),this.paint()},C.prototype._createLayout=function(){var t=this.list=new p.List(null,{template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!1,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data}),e=this._layout=new d.Layout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(y.selectAllView)},C.prototype._initHandlers=function(){var i=this;this.config.helpMessage&&(this._helper=new g.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={addOption:function(){return i.addOption(i._state.value)},showHelper:function(t){t.preventDefault(),t.stopPropagation(),i._helper.show(t.target,{mode:"left"===i.config.labelPosition?"bottom":"right"})},selectAll:function(){i._state.unselectActive?(i.list.selection.remove(),i.config.selectAllButton&&(i._layout.getCell("select-unselect-all").attach(y.selectAllView),i._state.unselectActive=!1)):(i.data.filter(),i.list.selection.add(),i.config.selectAllButton&&(i._layout.getCell("select-unselect-all").attach(y.unselectAllView),i._state.unselectActive=!0)),i._changePopupPosition(),i.paint()},onkeydown:function(t){var e;"Tab"===t.key&&i.popup.isVisible()?i._hideOptions():(i.popup.isVisible()||t.which!==a.KEY_CODES.DOWN_ARROW||i._showOptions(),i.popup.isVisible()&&(t.which===a.KEY_CODES.RIGHT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(p.MOVE_DOWN),t.preventDefault()),t.which===a.KEY_CODES.LEFT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(p.MOVE_UP),t.preventDefault()),t.which===a.KEY_CODES.DOWN_ARROW&&(i.list.moveFocus(p.MOVE_DOWN),t.preventDefault()),t.which===a.KEY_CODES.UP_ARROW&&(i.list.moveFocus(p.MOVE_UP),t.preventDefault()),t.which===a.KEY_CODES.ESC&&i._hideOptions(),t.which===a.KEY_CODES.ENTER&&(i.config.newOptions&&!i.data.getLength()?i.addOption(i._state.value,!0):(e=i.list.getFocus(),e=i.config.multiselection?u(i.list.selection.getId(),[e]):e,i.setValue(e)),i.config.multiselection?i._updatePopup():i._hideOptions()))),i.events.fire(x.ComboboxEvents.keydown,[t,i.list.getFocus()])},onkeyup:function(t){i.config.multiselection&&!i.config.itemsCount&&(i._state.ignoreNext?i._state.ignoreNext=!1:t.which===a.KEY_CODES.BACKSPACE&&!i._state.value&&i.config.multiselection&&i.list.selection.getId().length&&(t=(t=i.list.selection.getId())[t.length-1],i.list.selection.remove(t),i._changePopupPosition(),i.paint()))},oninput:function(t){i.config.disabled||(t=t.target.value,i.events.fire(x.ComboboxEvents.input,[t]),i._state.value=t,i._filter(),t.length?i._state.canDelete=!1:(i._state.ignoreNext=!0,i._state.canDelete=!0),i.config.multiselection||(i.list.selection.remove(),i.paint()),i.popup.isVisible()||i._showOptions(),i._updatePopup())},oninputclick:function(t){if(!i.config.disabled){if(i.focus(),t.target.classList.contains("dhx_combobox__action-remove")){var e=null===(e=i.data.getItem(f.locate(t)))||void 0===e?void 0:e.id;return e?(i.list.selection.remove(e),i._changePopupPosition(),void i.paint()):void 0}if(t.target.classList.contains("dhx_combobox__action-clear-all"))return i.list.selection.getId().forEach(function(t){return i.list.selection.remove(t)}),i.config.selectAllButton&&i._state.unselectActive&&(i._layout.getCell("select-unselect-all").attach(y.selectAllView),i._state.unselectActive=!1),void i.paint();t.preventDefault(),i.popup.isVisible()?i.focus():i._showOptions()}},toggleIcon:function(){i.focus(),i.popup.isVisible()?i._hideOptions():i._showOptions()},onfocus:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(x.ComboboxEvents.focus,[])},onblur:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(x.ComboboxEvents.blur,[])}}},C.prototype._initEvents=function(){var i=this;this.data.events.on(c.DataEvents.load,function(){i.config.value&&i._setValue(i.config.value,!0)}),this.data.events.on(c.DataEvents.afterAdd,function(){i.config.multiselection?i._changePopupPosition():i._hideOptions()}),this.list.events.on(p.ListEvents.click,function(){i.config.multiselection||i._hideOptions(),i._changePopupPosition()}),this.list.selection.events.on(m.SelectionEvents.afterSelect,function(){var t=i.getValue(i.config.multiselection);i.events.fire(x.ComboboxEvents.change,[t]),i._updateSelectedItem(t)}),this.list.selection.events.on(m.SelectionEvents.afterUnSelect,function(){var t,e=i.config.multiselection;i.config.readOnly&&!e||(t=i.getValue(e),i.events.fire(x.ComboboxEvents.change,[t]),e&&i._updateSelectedItem(t))}),this.popup.events.on(g.PopupEvents.beforeShow,function(){if(!i.popup.isVisible()&&!i._isPopupConfiqureted)return i._configurePopup(),!1}),this.config.readOnly&&this.popup.events.on(g.PopupEvents.afterShow,function(){var t;i._state.value?(t=i.list.selection.getId(),i.list.setFocus(t)):i.list.setFocus(i.data.getId(0)),i._keyListener.startNewListen(function(t){return i._findBest(t)})})},C.prototype._showOptions=function(){this.events.fire(x.ComboboxEvents.beforeOpen)&&(this._state.value.length&&(this._state.canDelete=!0),this._filter(),this._configurePopup()&&(this.events.fire(x.ComboboxEvents.open),this.events.fire(x.ComboboxEvents.afterOpen)))},C.prototype._configurePopup=function(){this._isPopupConfiqureted=!0;var t=this.getRootView();return!!(t&&t.refs&&t.refs.holder)&&(this.popup.isVisible()||this._updatePopup(),!0)},C.prototype._hideOptions=function(){var t=this;this.events.fire(x.ComboboxEvents.beforeClose)&&(this.config.readOnly&&this._keyListener.endListen(),this.list.setFocus(this.data.getId(0)),this.config.multiselection||this.config.readOnly||this.list.selection.contains()||(this._state.value=""),h.awaitRedraw().then(function(){return t.popup.isVisible()&&t.popup.hide()}),this.events.fire(x.ComboboxEvents.afterClose),this.events.fire(x.ComboboxEvents.close),this._filter(),this.paint())},C.prototype._filter=function(){var t,e,i,n=this;this.config.readOnly||(this.data.filter(function(t){return n.config.filter?n.config.filter(t,n._state.value):r.isEqualString(n._state.value,n._getItemText(t))}),this.config.multiselection?this.list.setFocus(this.data.getId(0)):(e=this.data.getIndex(this.list.selection.getId()),this.list.setFocus(this.data.getId(-1<e?e:0))),t=this._layout.getCell("list"),e=this._layout.getCell("not-found"),0===this.data.getLength()?(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").hide(),t.hide(),this._state.creatingState=!0,i=this.config.newOptions?this._state.value:"",e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").show(),!(this._state.value&&this.data.find(function(t){return t.value===n._state.value}))&&this._state.value?(this._state.creatingState=this.config.newOptions,t.show(),this.config.newOptions?(i=this._state.value,e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):e.hide()):(this._state.creatingState=!1,e.isVisible()&&(t.show(),e.hide()))))},C.prototype._findBest=function(e){var i=this,t=this.data.find(function(t){return r.isEqualString(e,i._getItemText(t))});t&&this.list.selection.getId()!==t.id&&(this.list.setFocus(t.id),this.paint())},C.prototype._exsistId=function(t){var e=this;return t instanceof Array?t.every(function(t){return e.data.exists(t)}):this.data.exists(t)},C.prototype._draw=function(){if(!this.config)return h.el("div");var t=this.config,e=t.multiselection,i=t.labelPosition,n=t.hiddenLabel,o=t.required,r=t.disabled,s=t.css,a=t.helpMessage,l=t.readOnly,c=t.placeholder,d=e?null:this.data.getItem(this.list.selection.getId()),t=!this.list.selection.getId()||"object"==typeof this.list.selection.getId()&&0===this.list.selection.getId().length,e=f.getLabelStyle(this.config);return h.el("div",{"data-dhx-widget-id":this._uid,onkeydown:this._handlers.onkeydown,onkeyup:this._handlers.onkeyup,class:"dhx_widget dhx_combobox"+("left"===i?" dhx_combobox--label-inline":"")+(n?" dhx_combobox--sr_only":"")+(o?" dhx_combobox--required":"")+(r?" dhx_combobox--disabled":"")+(s?" "+s:"")},[e?h.el("label.dhx_label.dhx_combobox__label",{style:e.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.oninputclick},a?[(e.label||o)&&h.el("span.dhx_label__holder",e.label),h.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,id:"dhx_label__help_"+this._uid})]:e.label):null,h.el("div.dhx_combobox-input-box"+(r?".dhx_combobox-input-box--disabled":"")+(l?".dhx_combobox-input-box--readonly":"")+(this._state.currentState===x.ComboState.error?".dhx_combobox-input-box--state_error":"")+(this._state.currentState===x.ComboState.success?".dhx_combobox-input-box--state_success":""),{_ref:"holder"},[h.el("div.dhx_combobox-input__icon",{onclick:this._handlers.toggleIcon},[h.el("span"+(this.popup.isVisible()?".dxi.dxi-menu-up":".dxi.dxi-menu-down"))]),h.el("div.dhx_combobox-input-list-wrapper",{onclick:this._handlers.oninputclick},[h.el("ul.dhx_combobox-input-list",u(this._drawSelectedItems(),[h.el("li.dhx_combobox-input-list__item.dhx_combobox-input-list__item--input",[h.el("input.dhx_combobox-input",{oninput:this._handlers.oninput,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_ref:"input",_key:this._uid,type:"text",placeHolder:t&&c?c:void 0,value:l&&d?this._getItemText(d):this._state.value,readOnly:l||r,required:o,"aria-label":l?"Select value":"Type or select value","aria-describedby":a?"dhx_label__help_"+this._uid:null,"aria-expanded":!0})])]))])])])},C.prototype._drawSelectedItems=function(){var t,i=this;if(!this.config.multiselection)return[];if(this.config.itemsCount){var e=this.list.selection.getId().length;return e?[h.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",[h.el("span.dhx_combobox-tag__value",(t=e,"function"==typeof(e=this.config.itemsCount)?e(t):t+" "+v.default.selectedItems)),h.el("button.dhx_button.dhx_combobox-tag__action.dhx_combobox__action-clear-all",{"aria-label":"clear all"},[h.el("span.dhx_button__icon.dxi.dxi-close-circle")])])]:[]}return this.list.selection.getId().map(function(t){var e=i.data.getItem(t);return e?h.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",{"data-dhx-id":t},[i._drawImageOrIcon(e),h.el("span.dhx_combobox-tag__value",i._getItemText(e)),h.el("button.dhx_button.dhx_button--icon.dhx_combobox-tag__action.dhx_combobox__action-remove",{type:"button","aria-label":"remove"},[h.el("span.dhx_button__icon.dxi.dxi-close-circle")])]):null})},C.prototype._drawImageOrIcon=function(t){return t.src?h.el("img.dhx_combobox-tag__image",{src:t.src,alt:""}):t.icon?h.el("span.dhx_combobox-tag__icon",{class:t.icon}):null},C.prototype._getItemText=function(t){return t?t.value:null},C.prototype._updateSelectedItem=function(t){this.config.multiselection?(this.config.selectAllButton&&!this._state.unselectActive&&this.data.getLength()===t.length?(this._layout.getCell("select-unselect-all").attach(y.unselectAllView),this._state.unselectActive=!0):this.config.selectAllButton&&this._state.unselectActive&&(this._layout.getCell("select-unselect-all").attach(y.selectAllView),this._state.unselectActive=!1),this._state.value&&(this._state.value="",this._state.canDelete=0===t.length,this._filter())):this._state.value=null!==(t=this._getItemText(this.data.getItem(t)))&&void 0!==t?t:"",this.paint()},C.prototype._changePopupPosition=function(){var t=this;this.config.multiselection&&h.awaitRedraw().then(function(){t._updatePopup()})},C.prototype._updatePopup=function(){var t=this.getRootView().refs.holder.el;this.popup.getContainer().style.width=t.offsetWidth+"px";var e=this.data.getLength()*(this.config.itemHeight||36);"string"==typeof this.config.listHeight&&this.config.listHeight.includes("px")&&(this.config.listHeight=this.config.listHeight.replace("px",""));e=e<this.config.listHeight?e:this.config.listHeight;this.popup.getContainer().style.height=Number(e)+(this.config.selectAllButton&&this.config.multiselection&&this._layout.getCell("select-unselect-all").isVisible()?33:0)+(this._state.creatingState?this._layout.getCell("not-found").height:0)+"px",this.popup.show(t,{mode:"bottom"})},C);function C(t,e){var i=w.call(this,t,r.extend({template:b,listHeight:224,itemHeight:36,disabled:!1,readOnly:!1,newOptions:!1,htmlEnable:!0},e))||this;i.config.itemsCount=i.config.itemsCount||i.config.showItemsCount,i.config.helpMessage=i.config.helpMessage||i.config.help,i.config.cellHeight&&36===i.config.itemHeight&&(i.config.itemHeight=i.config.cellHeight),i.config.labelInline&&(i.config.labelPosition="left"),Array.isArray(i.config.data)?(i.events=new s.EventSystem(i),i.data=new c.DataCollection({}),i.data.parse(i.config.data)):i.config.data?(i.data=i.config.data,i.events=new s.EventSystem(i),i.events.context=i):(i.events=new s.EventSystem(i),i.data=new c.DataCollection({})),i.popup=new g.Popup,i.popup.events.on(g.PopupEvents.afterShow,function(){i.paint()}),i.popup.events.on(g.PopupEvents.afterHide,function(){i.config.multiselection&&(i._state.value=""),i.paint()}),i.popup.events.on(g.PopupEvents.beforeHide,function(t){t&&i._hideOptions()}),(i.config.readonly||i.config.readOnly)&&(i.config.readOnly=i.config.readOnly||i.config.readonly,i._keyListener=new _.KeyListener),i._state={value:"",ignoreNext:!1,canDelete:!1,unselectActive:!1,currentState:x.ComboState.default,creatingState:!1},i._initHandlers(),i._createLayout(),i.config.value&&i._setValue(i.config.value,!0),i._initEvents();e=h.create({render:function(){return i._draw()},hooks:{didRedraw:function(){i.popup.isVisible()&&(i.focus(),i._configurePopup())}}});return i.mount(t,e),i}e.Combobox=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(51)),n(e(109)),n(e(52)),n(e(29))},function(t,r,e){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(r,"__esModule",{value:!0});var l=e(1),c=e(6),d=e(0),u=e(24),h=e(20),o=e(7),f=e(52),p=e(2),g=e(29),_=e(107);r.MOVE_UP=1,r.MOVE_DOWN=2;var v,i=(v=o.View,i(m,v),m.prototype._didRedraw=function(t){},m.prototype._dblClick=function(t){var e=p.locate(t);e&&(e=this.data.getItem(e).id,this.config.editable&&this.editItem(e),this.events.fire(g.ListEvents.doubleClick,[e,t]))},m.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},m.prototype._dragStart=function(t){var e=this;this._touch.start=!0;var i=[],n=p.locateNode(t,"data-dhx-id"),o=n&&n.getAttribute("data-dhx-id"),n=this.selection.getId();return this.config.multiselection&&n instanceof Array&&(n.map(function(t){t!==o&&e.getRootView().refs[t]&&i.push(e.getRootView().refs[t].el)}),n=a(n)),"string"==typeof n&&(n=[n]),this.config.dragMode&&!this._edited?c.dragManager.onMouseDown(t,n||[o],i):null},m.prototype.disableSelection=function(){this.selection.disable()},m.prototype.enableSelection=function(){this.selection.enable()},m.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(g.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(g.ListEvents.afterEditStart,[t])):this._edited=null},m.prototype.editEnd=function(t,e){var i;this._edited&&(null!==t&&(i=this.data.getItem(e),this.data.update(e,s(s({},i),{value:t})),this._changed=!0),this._edited=null,this.paint())},m.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},m.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.showItem(t),this.events.fire(g.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.paint())},m.prototype.getFocus=function(){return this._focus},m.prototype.destructor=function(){this.events&&this.events.clear(),this.keyManager&&this.keyManager.destructor(),this.selection&&this.selection.destructor(),this.config=this.events=this.selection=this.keyManager=null,this._handlers=this._focus=this._edited=this._events=this._topOffset=this._visibleHeight=this._touch=null,this.unmount()},m.prototype.showItem=function(t){var e,i,n,o=this.getRootView();o&&o.node&&o.node.el&&void 0!==t&&((e=this.getRootNode())&&(i=this.config.virtual,n=this.data.getIndex(t),o=Math.floor(n/e.children.length)||0,t=e.children[n-e.children.length*o],(i||t)&&(o=i?parseInt(this.config.itemHeight):t.clientHeight,(t=i?n*o:t.offsetTop)>=e.scrollTop+e.clientHeight-o?e.scrollTo(0,t-e.clientHeight+o):t<e.scrollTop&&e.scrollTo(0,t))))},m.prototype._renderItem=function(t,e){var i=this.config.itemHeight;if(t.$empty)return d.el("li",{class:"dhx_list-item",style:{height:i}});var n=this.config.template&&this.config.template(t)||t.html,o=t.id==this._focus;if(t.id==this._edited)return _.getEditor(t,this).toHTML();var r=this.data.getMetaMap(t),o=s(s(s(s({},this._events),{class:"dhx_list-item"+(r&&r.selected?" dhx_list-item--selected":"")+(o?" dhx_list-item--focus":"")+(r&&r.drop&&!this._edited?" dhx_list-item--drophere":"")+(r&&r.drag&&!this._edited?" dhx_list-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_list-item--drag":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,_ref:t.id.toString(),style:{height:i},_key:t.id}),this.getItemAriaAttrs(this,t)),{tabindex:o?0:-1});if(n)return n===t.html||this.config.htmlEnable?(o[".innerHTML"]=n,d.el("li",o)):d.el("li",o,n);t=t.text||t.value;return this.config.htmlEnable?o[".innerHTML"]=t:o.class+=" dhx_list-item--text",this.config.htmlEnable?d.el("li",o):d.el("li",o,t)},m.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});return this.config.virtual&&(e=a([d.el(".div",{style:{height:t[2]+"px"}})],e,[d.el(".div",{style:{height:t[3]+"px"}})])),d.el("ul.dhx_widget.dhx_list",s(s({style:{"max-height":this.config.height,position:"relative"},tabindex:0,class:(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),e)},m.prototype.moveFocus=function(t,e){var i,n,o=this.data.getLength();o&&(n=(i=this._focus)?this.data.getIndex(i):-1,e=e||1,t===r.MOVE_DOWN?i=this.data.getId(Math.min(n+e,o-1)):t===r.MOVE_UP&&(i=this.data.getId(Math.max(n-e,0))),this.setFocus(i))},m.prototype._getRange=function(){if(this.config.virtual){var t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight),i=this.data.getRawData(0,-1).length,n=i*e,o=this._topOffset,o=Math.max(0,Math.min(o,n-t)),r=Math.floor(o/e),t=Math.min(i-r,Math.floor(t/e)+5);return this._topOffset=o,[r,t+r,r*e,n-e*(t+r)]}return[0,-1,0,0]},m.prototype._getHotkeys=function(){var n=this;return{arrowDown:function(t){n.moveFocus(r.MOVE_DOWN),n._changed&&(n._changed=!1),t.preventDefault()},arrowUp:function(t){n.moveFocus(r.MOVE_UP),n._changed&&(n._changed=!1),t.preventDefault()},escape:function(){n.editEnd(null),n._changed&&(n._changed=!1)},enter:function(t){var e,i;n._changed?n._changed=!1:(i=(e=n.selection.getItem())instanceof Array?null===(i=e[0])||void 0===i?void 0:i.id:null==e?void 0:e.id,n.config.editable&&!n._edited&&(e&&i===n._focus||!e)?n.editItem(n._focus):n.selection.add(n._focus),n.events.fire(g.ListEvents.click,[n._focus,t]))},"shift+enter":function(t){n.selection.add(n._focus,!1,!0),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+enter":function(t){n.selection.add(n._focus,!0,!1),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+a":function(t){n.config.multiselection&&(t.preventDefault(),n.selection.remove(),n.data.map(function(t){return t.id}).forEach(function(t){"ctrlClick"===n.config.multiselection?n.selection.add(t,!0):n.selection.add(t)}))}}},m.prototype._initHotKey=function(){var t,e=this._getHotkeys();for(t in e)this.keyManager.addHotKey(t,e[t]);for(t in this.config.hotkeys)this.keyManager.addHotKey(t,this.config.hotkeys[t])},m.prototype.getItemAriaAttrs=function(t,e){var i,n,o;return s(s({role:"option","aria-selected":e.$selected?"true":"false"},(o=e,(n=t).config.dragMode&&!n._edited?{"aria-grabbed":Boolean(o.$dragtarget&&!n._edited).toString()}:{})),(i=t).config.editable?{"aria-roledescription":i._edited?"Press Enter to stop editing":"Double click to edit content"}:{})},m.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox "+(t.title||"")+", count of options = "+e+"."+(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},m);function m(t,e){void 0===e&&(e={});var n=this,i=e.itemHeight||(e.virtual?37:null);i&&"number"==typeof i&&(i=i.toString()+"px"),(n=v.call(this,t,l.extend({itemHeight:i,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},e))||this)._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null};e=n.config.data;e instanceof c.DataCollection?(n.data=e,n.events=e.events):(n.data=new c.DataCollection({}),n.events=n.data.events,e&&n.data.parse(e)),n.selection=new f.Selection({disabled:!n.config.selection,multiselection:n.config.multiselection},n.data,n.events),n.config.keyNavigation&&(n.keyManager=new u.KeyManager(function(t,e){return e==n._uid&&(!n._edited||n._edited&&"escape"!==t.key)}),n._initHotKey()),n.events.on(c.DataEvents.change,function(t,e,i){"setPage"===e&&n.showItem(n.data.getId(i[0])),n.paint()}),n.events.on(h.SelectionEvents.afterUnSelect,function(){return n.paint()}),n.events.on(h.SelectionEvents.afterSelect,function(t){t&&n.config.selection&&(n._focus=t),n.paint()}),n.events.on(g.ListEvents.afterEditEnd,n.editEnd.bind(n));e=function(e){return function(t){n.data.setMeta(n.data.getItem(t.target),"drop",e),n.paint()}};n.events.on(c.DragEvents.canDrop,e(!0)),n.events.on(c.DragEvents.cancelDrop,e(!1));e=function(e){return function(t){t.source.map(function(t){return n.data.setMeta(n.data.getItem(t),"drag",e)}),n.paint()}};n.events.on(c.DragEvents.dragStart,e(!0)),n.events.on(c.DragEvents.afterDrag,e(!1)),n._handlers={onmousedown:function(t){n._dragStart(t)},ontouchstart:function(t){n._touch.timer=setTimeout(function(){n._dragStart(t)},n._touch.duration),n._touch.timeStamp?(n._touch.dblDuration>=n._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),n._dblClick(t)),n._touch.timeStamp=null):n._touch.timeStamp=+t.timeStamp.toFixed(),setTimeout(function(){n._touch.timeStamp=null},n._touch.dblDuration)},ontouchmove:function(t){n._touch.start&&t.preventDefault(),n._clearTouchTimer()},ontouchend:function(){n._touch.start=!1,n._clearTouchTimer()},ondragstart:function(){return!(n.config.dragMode&&!n._edited)&&null},oncontextmenu:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;e&&n.events.fire(g.ListEvents.itemRightClick,[e,t])},onclick:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;e&&(n.selection.add(e,t.ctrlKey||t.metaKey,t.shiftKey),n.config.selection&&(n._focus=e),n.events.fire(g.ListEvents.click,[e,t]),n.paint())},ondblclick:function(t){n._dblClick(t)},onscroll:function(t){n.config.virtual&&(n._topOffset=t.target.scrollTop,n._visibleHeight=t.target.offsetHeight,n.paint())},onmouseover:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;e&&e!==p.locate(t.relatedTarget)&&n.events.fire(g.ListEvents.itemMouseOver,[e,t])}};e=n.config.eventHandlers;if(e)for(var o=0,r=Object.entries(e);o<r.length;o++){var s=r[o],a=s[0],s=s[1];n._handlers[a]=p.eventHandler(function(t){return p.locate(t)},s,n._handlers[a])}n.config.dragMode&&c.dragManager.setItem(n._uid,n),n._topOffset=n._visibleHeight=0;e=d.create({render:function(){return n._renderList()},hooks:{didMount:function(t){n.config.virtual&&(n._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return n._didRedraw(t)}}});return n.mount(t,e),n}r.List=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(20),o=i(6),i=(r.prototype.enable=function(){this.config.disabled=!1},r.prototype.disable=function(){this.remove(),this.config.disabled=!0},r.prototype.getId=function(){return this.config.multiselection?this._selected:this._selected[0]},r.prototype.getItem=function(){var e=this;return this.config.multiselection?this._selected.map(function(t){return e._data.getItem(t)}):this._selected.length?this._data.getItem(this._selected[0]):null},r.prototype.contains=function(t){return t?this._selected.includes(t):0<this._selected.length},r.prototype.remove=function(t){var e=this;t?this._unselectItem(t):(this._selected.forEach(function(t){return e._unselectItem(t)}),this._selected=[])},r.prototype.add=function(t,e,i,n){var o,r=this;this.config.disabled||(void 0!==t?(o=this.config.multiselection,i&&this._selected.length&&o?this._addMulti(t,n):this._addSingle(t,o&&("ctrlClick"!==o||e),n)):this._data.serialize().filter(function(t){t=t.id;return!r._selected.includes(t)}).forEach(function(t){t=t.id;r._addMulti(t,n)}))},r.prototype.destructor=function(){var e=this;this._selected.forEach(function(t){return e._unselectItem(t,!0)})},r.prototype._addMulti=function(t,e){var i=this._selected[this._selected.length-1],n=this._data.getIndex(i),o=this._data.getIndex(t);for(o<n&&(n=(t=[o,n])[0],o=t[1]);n<=o;n++){var r=this._data.getId(n);this._selectItem(r,e)}},r.prototype._addSingle=function(e,t,i){var n=this;t||this._selected.forEach(function(t){t!=e&&n._unselectItem(t)}),t&&this._selected.includes(e)?this._unselectItem(e,i):this._selectItem(e,i)},r.prototype._selectItem=function(t,e){var i=this._data.getItem(t);i&&!this._data.getMeta(i,"selected")&&(e||this.events.fire(n.SelectionEvents.beforeSelect,[t]))&&(this._selected.push(t),this._data.setMeta(i,"selected",!0),e||this.events.fire(n.SelectionEvents.afterSelect,[t]))},r.prototype._unselectItem=function(e,t){(t||this.events.fire(n.SelectionEvents.beforeUnSelect,[e]))&&(this._selected=this._selected.filter(function(t){return t!==e}),this._data.setMeta(this._data.getItem(e),"selected",!1),t||this.events.fire(n.SelectionEvents.afterUnSelect,[e]))},r);function r(t,e,i){var n=this;this.config=t,this.events=i,this._data=e,this._selected=[],this._data.events.on(o.DataEvents.removeAll,function(){n._selected=[]}),"string"==typeof this.config.multiselection&&(["click","ctrlClick"].includes(this.config.multiselection)||(this.config.multiselection=!1)),this._data.events.on(o.DataEvents.beforeRemove,function(t){var e;n._nextSelection=null,1===n._selected.length&&(e=n._data.getIndex(t.id),1<(t=n._data.getLength())&&(e=t==e-1?e-1:e+1,n._nextSelection=n._data.getId(e)))}),this._data.events.on(o.DataEvents.afterRemove,function(t){t=n._selected.indexOf(t.id);-1!==t&&n._selected.splice(t,1),n._nextSelection&&(n.add(n._nextSelection),n._nextSelection=null)})}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={notFound:"Not Found",selectAll:"Select All",unselectAll:"Unselect All",selectedItems:"selected items",createItem:"Create"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(53);e.selectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.selectAll)},e.unselectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.unselectAll)},e.emptyListView=function(t){return n.el("ul.dhx_list",[n.el("li.dhx_list-item.dhx_combobox-options__item"+(t?".dhx_combobox-options__action-create-option":""),{},t?o.default.createItem+' "'+t+'"':o.default.notFound)])},e.emptyListHeight=function(t,e){var i=document.createElement("canvas").getContext("2d",{alpha:!1});return i.font="normal 14px Roboto",t=t?o.default.createItem+' "'+t+'"':o.default.notFound,13+20*Math.ceil(i.measureText(t).width/(e-16))}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.ComboboxEvents||(e.ComboboxEvents={})).change="change",n.focus="focus",n.blur="blur",n.keydown="keydown",n.input="input",n.beforeOpen="beforeOpen",n.afterOpen="afterOpen",n.beforeClose="beforeClose",n.afterClose="afterClose",n.open="open",n.close="close",(e=e.ComboState||(e.ComboState={}))[e.default=0]="default",e[e.error=1]="error",e[e.success=2]="success"},function(t,e,i){"use strict";var x=this&&this.__assign||function(){return(x=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},b=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var w=i(0),C=i(2),E=i(15),S=i(57),k=i(8);e.getFixedColsHeader=function(t,e){if("number"==typeof t.leftSplit){for(var i=0,n=0;n<t.leftSplit;n++)t.columns[n].hidden&&i++;if(i!==t.leftSplit){for(var o=t.columns.slice(0,t.leftSplit-i),r=0,s=0,a=o;s<a.length;s++)r+=a[s].$width;o=0<=t.leftSplit&&S.getFixedRows(x(x({},t),{currentColumns:o,$positions:x(x({},t.$positions),{xStart:0,xEnd:t.leftSplit}),scroll:{top:0,left:0},columns:o}),x(x({},e),{name:"header",position:"top",shifts:{x:0,y:0}})),e=x(x({},e),{name:"header",position:"top"});return o&&w.el(".dhx_"+e.name+"-fixed-cols",x({onwheel:k.scrollFixedColsAndRows,style:{position:"absolute",top:0,left:0,maxWidth:r,overflow:"hidden"}},{role:"rowgroup","aria-rowcount":o.length}),o.body)}}},e.getFixedCols=function(t,e){var i=t.leftSplit,n=t.$totalWidth,o=t.columns,r=t.$totalHeight,s=t.headerHeight,a=t.footerHeight,l=t.$positions,c=t.scroll,d=t.data;if("number"==typeof i){for(var u=0,h=0;h<i;h++)o[h].hidden&&u++;if(u!==i){var f=n<=e.wrapper.width?0:C.getScrollbarWidth(),p=r+s+a,g=p>e.gridBodyHeight?t.$footer?p-f:e.gridBodyHeight:p<e.gridBodyHeight-f?p:t.$footer?e.gridBodyHeight:e.gridBodyHeight-f,_=o.slice(0,i-u);t.fixedColumnsWidth=k.getTotalWidth(_);var v="fixedCols",m=E.getCells(x(x({},t),{columns:_,$renderFrom:v,$positions:x(x({},l),{xStart:0,xEnd:i})})),n=e.sticky,a=x(x({},e),{name:"footer",position:"bottom"}),p=0<=i&&S.getRows(x(x({},t),{currentColumns:_,$positions:x(x({},l),{xStart:0,xEnd:i})}),x(x({},e),{name:"footer",position:"bottom"})),y=0;p&&p.forEach(function(t){return y+=t.attrs.style.height});_=function(t){return{role:"rowgroup","aria-rowcount":t}},p=n?p&&w.el(".dhx_"+a.name+"-fixed-cols",x({onwheel:k.scrollFixedColsAndRows,style:{position:"absolute",top:g<e.gridBodyHeight?g-y:null,left:0,bottom:g>=e.gridBodyHeight?0+(n?f:0)+"px":null}},_(p.length)),p):null,l=l,v=E.getSpans(x(x({},t),{$renderFrom:v}),!0);return[w.el(".dhx_grid-fixed-cols-wrap",x({style:{height:g>=e.gridBodyHeight?(n?e.gridBodyHeight:e.gridBodyHeight+s)-f:g,paddingTop:s,overflow:"hidden",width:t.fixedColumnsWidth}},{role:"presentation","aria-label":"Fixed column"}),[w.el(".dhx_grid-fixed-cols",x(x({onwheel:k.scrollFixedColsAndRows,style:{top:-c.top+s-1+"px",paddingTop:e.shifts.y,height:r,position:"absolute"},_flags:w.KEYED_LIST},E.getHandlers(l.yStart,l.xStart,t)),_(d.length)),b(m,[v&&w.el("span.dhx_span-spans",{role:"presentation"},[v])])),w.el(".dhx_frozen-cols-border",{role:"presentation"})]),t.$footer?p:null]}}}},function(t,e,i){"use strict";var w=this&&this.__assign||function(){return(w=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},f=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var C=i(0),p=i(2),v=i(19),E=i(8),n=i(4),g=i(15),_=i(56),S=2;function o(t,e,i,n){i&&(i.toLocaleLowerCase().includes("touch")?e._events:e.events).fire(i,[t,n])}function k(t,e,i){return{onclick:[o,t,i,n.GridEvents[e+"CellClick"]],onmouseover:[o,t,i,n.GridEvents[e+"CellMouseOver"]],onmousedown:[o,t,i,n.GridEvents[e+"CellMouseDown"]],ontouchstart:[o,t,i,n.GridEvents[e+"CellMouseDown"]],ondblclick:[o,t,i,n.GridEvents[e+"CellDblClick"]],oncontextmenu:[o,t,i,n.GridEvents[e+"CellRightClick"]],ontouchmove:[o,t,i,n.GridSystemEvents[e+"CellTouchMove"]],ontouchend:[o,t,i,n.GridSystemEvents[e+"CelltouchEnd"]]}}function D(t,e,i,n,o,r){void 0===o&&(o="");var s=e.type?"dhx_"+e.type+"-cell":"dhx_string-cell",t=i.content[t.content]&&i.content[t.content].toHtml(e,i),a={};return i.columns.forEach(function(t){var e=!!i.content[t[n][r].content];a[t.id]=e&&i.content[t[n][r].content].toHtml(t,i)||t[n][r].text}),C.el("."+s,{style:{class:o.trim(),padding:0}},[t&&("string"==typeof t||"number"==typeof t?C.el("div",{class:"dhx_grid-footer-cell-text",role:"presentation",".innerHTML":e.template&&"string"==typeof t?e.template(t,a,e):t}):t)])}function a(p,t){if(!p.data||!p.columns)return[];var e,g,_=p.$positions,v=t.name,m=p.currentColumns,y=p[v+"RowHeight"]||40,x=(e=v,t=(t=m).map(function(t){return t[e]||[{}]}),E.transpose(t)),b=1;return x.map(function(t,f){return C.el(".dhx_"+v+"-row",w({style:{height:y}},{role:"row","aria-rowindex":f+1}),t.map(function(n,t){var e=n.css||"",i=m[t],o=_.xStart+t+1,r="dxi dxi-sort-variant dhx_grid-sort-icon",s="none";p.sortBy&&""+i.id===p.sortBy&&!n.content&&(r+=" dhx_grid-sort-icon--"+(c=p.sortDir||"asc"),e+=" dhx_grid-"+v+"-cell--sorted ",s="asc"===c?"ascending":"descending");var a=E.isSortable(p,i)&&n.text&&"footer"!==v&&!1!==n.headerSort;a&&(e+=" dhx_grid-header-cell--sortable");var l=0===t?"dhx_first-column-cell":"",c=t===m.length-1?"dhx_last-column-cell":"";n.content||(n.align?e+=" dhx_grid-header-cell--align_"+n.align+" ":e+=" dhx_grid-header-cell--"+("number"===i.type||"percent"===i.type||"date"===i.type?"align_right":"align_left")+" "),e+=l+" "+c;c=(void 0!==i.resizable?i:p).resizable;c&&(c=C.el("div",{class:"dhx_resizer_grip_wrap","aria-hidden":"true"},[C.el("div",{class:"dhx_resizer_grip",dhx_resized:i.id,style:{height:100*x.length+"%"}},[C.el("div",{class:"dhx_resizer_grip_line"})])]),(h=i.header&&(null===(d=i.header[0])||void 0===d?void 0:d.colspan))&&(g=h,b=1),g&&b!==g&&(0===f&&(c=null),b++),"footer"===v&&(c=null)),n.align&&(e+=" dhx_align-"+n.align);var d=function(t,e,i){e={"aria-colindex":e};return"footer"===t||n.content?e.role="gridcell":(e.role="columnheader",e["aria-sort"]=i),e};if(n.content)return C.el(".dhx_grid-"+v+"-cell.dhx_grid-custom-content-cell",w(w({class:e.trim(),"data-dhx-id":i.id,_key:t,style:{width:i.$width,height:"footer"===v?y+S/2+"px":y+"px"}},k(i,v,p)),d(v,o,s)),[D(n,i,p,v,"",f),c||null]);var u,h="dhx_grid-header-cell-text_content";return p.autoHeight&&(h+=" dhx_grid-header-cell-text_content-auto-height"),C.el(".dhx_grid-"+v+"-cell",w(w({class:e.trim(),"data-dhx-id":i.id,_key:t,style:{width:i.$width,height:"footer"===v?y+S/2+"px":y+"px"}},k(i,v,p)),d(v,o,s)),[C.el("div.dhx_grid-header-cell-text",{role:"presentation"},[C.el("span",w(w({class:h},(u=n.text,a?{role:"button","aria-label":"Sort by "+u}:{})),{".innerHTML":n.text})),c||null]),a&&C.el("div",{class:r,"aria-hidden":"true"})])}))})}function l(u,h){var f=u.columns,t=E.transpose(f.map(function(t){return t[h.name]||[]})),p=u[h.name+"RowHeight"]||40,g=h.name,_=0;return t.map(function(t,d){return _=0,C.el(".dhx_span-row",{style:{top:p*d+"px",height:p},class:"dhx_header-row","aria-hidden":"true"},t.map(function(t,e){var i=f[e];_+=i.hidden?0:i.$width;var n=0===e?"dhx_first-column-cell":"",o=e===f.length-1||(t.colspan||0)+(e-1)>=f.length-1?"dhx_last-column-cell":"",r=p;t.rowspan&&(r=r*t.rowspan-1);var s=E.isSortable(u,i)&&t.rowspan&&t.text&&"footer"!==h.name,a="dxi dxi-sort-variant dhx_grid-sort-icon";u.sortBy&&""+i.id===u.sortBy&&!t.content&&(a+=" dhx_grid-sort-icon--"+(u.sortDir||"asc"));var l=i.align?"dhx_align-"+i.align:"number"!==i.type&&"percent"!==i.type&&"date"!==i.type||t.colspan?"dhx_align-left":"dhx_align-right",c="dhx_grid-header-cell "+n+" "+o+" "+(t.rowspan?"dhx_span-cell__rowspan":"")+" "+(t.align?"dhx_align-"+t.align:l)+" "+(t.css||"");s&&(c+=" dhx_grid-header-cell--sortable"),t.content||(t.align?c+=" dhx_grid-header-cell--align_"+t.align+" ":c+=" dhx_grid-header-cell--"+("number"===i.type||"percent"===i.type||"date"===i.type?"align_right":"align_left")+" ");n=null;t.content&&((n=D(t,i,u,g,c,d)).attrs.style=w(w({},n.attrs.style),{width:"100%",borderRight:"0"}));o="";0<_-i.$width&&(o="1px solid #e4e4e4");l="dhx_grid-header-cell-text_content";return u.autoHeight&&(l+=" dhx_grid-header-cell-text_content-auto-height"),t.colspan||t.rowspan?C.el(".dhx_span-cell",w({style:{width:v.getWidth(f,t.colspan,e),height:"footer"===g?r+S/2:r,left:_-i.$width,borderLeft:o,top:p*d},class:c.trim(),"data-dhx-id":i.id},k(i,g,u)),[n||t.rowspan?C.el("div.dhx_grid-header-cell-text",{role:"presentation"},[C.el("span",{class:l,".innerHTML":t.text})]):C.el("span",{class:l,".innerHTML":t.text}),s&&C.el("div",{class:a})]):null}).filter(function(t){return t}))})}function m(t){return{role:"rowgroup","aria-rowcount":t}}e.getRows=a,e.getFixedSpans=l,e.getFixedRows=function(t,e){var i=a(t,e),n=l(t,e),o=null;"footer"!==e.name||e.sticky||(o=0<=t.leftSplit&&a(w(w({},t),{currentColumns:t.columns.slice(0,t.leftSplit),$positions:w(w({},t.$positions),{xStart:0,xEnd:t.leftSplit})}),e));var r,s=((s={position:"sticky"})[e.position]=0,s);return e.sticky||(s.left=-t.scroll.left,r=-t.scroll.left,s.position="relative"),C.el(".dhx_"+e.name+"-wrapper",{class:e.sticky?"":"dhx_compatible-"+e.name,style:w(w({},s),{left:e.sticky?r:0,height:"footer"===e.name?t[e.name+"Height"]+S/2:t[e.name+"Height"],width:e.sticky?t.$totalWidth:e.wrapper.width-S}),role:"presentation"},[C.el(".dhx_grid-"+e.name+(t.leftSplit?".dhx_grid_fixed_left":""),{style:{height:"footer"===e.name?t[e.name+"Height"]+S/2:t[e.name+"Height"],left:r,paddingLeft:e.shifts.x,width:t.$totalWidth},role:"presentation"},[C.el(".dhx_"+e.name+"-rows",w({},m(f(i).length)),f(i)),C.el(".dhx_"+e.name+"-spans",{style:{marginLeft:-e.shifts.x},class:"dhx_"+e.name+"-rows",role:"presentation"},n),o&&C.el(".dhx_"+e.name+"-fixed-cols",{style:{position:"absolute",top:0,left:t.scroll.left+"px",height:"100%"}},o)]),C.el("div",{style:{width:t.$totalWidth},role:"presentation"})])},e.getFixedDataRows=function(t,e){if("number"==typeof t.topSplit){var i=t.$totalWidth,n=t.topSplit,o=t.$positions,r=t.data,s=t.$totalHeight,a=t.width,l=r.slice(0,n),c="fixedRows",d=g.getCells(w(w({},t),{data:l,$renderFrom:c,$positions:w(w({},o),{yStart:0,yEnd:n})})),u=l.reduce(function(t,e){return t+e.$height},0),h=g.getSpans(w(w({},t),{$renderFrom:c,data:r}),!0),n=_.getFixedCols(w(w({},t),{headerHeight:0,data:l,$renderFrom:c,scroll:w(w({},t.scroll),{top:-1}),$positions:w(w({},o),{yStart:0,yEnd:n}),$totalHeight:u}),w(w({},e),{shifts:w(w({},e.shifts),{y:0})}))||[];return[C.el(".dhx_grid-fixed-data-rows-wrap",{style:{top:t.headerHeight,overflow:"hidden",height:u>e.wrapper.height?e.wrapper.height:u,width:i<a?i:s>=e.gridBodyHeight?a-p.getScrollbarWidth()-2:a-2}},f([C.el(".dhx_grid-fixed-cols",w(w({onwheel:E.scrollFixedColsAndRows,style:{left:-t.scroll.left+"px",paddingLeft:e.shifts.x,position:"absolute",width:i},_flags:C.KEYED_LIST},g.getHandlers(0,o.xStart,t)),m(r.length)),f(d,[h&&C.el(".dhx_span-spans",{role:"presentation"},[h])]))],n))]}}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(115)),n(e(116)),n(e(117)),n(e(118)),n(e(30))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,e,i){"use strict";function n(t){var e=document.activeElement;e.classList.contains("dhx_alert__apply-button")&&"Enter"===t.key||e.classList.contains("dhx_alert__confirm-reject")||e.classList.contains("dhx_alert__confirm-aply")||t.preventDefault()}Object.defineProperty(e,"__esModule",{value:!0}),e.blockScreen=function(t){var e=document.createElement("div");return e.className="dhx_alert__overlay "+(t||""),document.body.appendChild(e),document.addEventListener("keydown",n),function(){document.body.removeChild(e),document.removeEventListener("keydown",n)}}},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var v=i(1),m=i(0),y=i(3),x=function(t){return t.toString()},b=function(t,e){return{role:"graphics-object","aria-label":t+"-axis"+(e?", "+e:"")}};e.bottom=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,f=[],c=0;return d&&(c=a,r=u&&!isNaN(u),s=n+a,f=t.map(function(t){var e,i=t[0],n=r?"rotate("+u+" "+i+" "+s+")":"",o=["scale-text","top-text"];return r&&(e=u%360,o.push(y.getClassesForRotateScale("bottom",e))),m.sv("text",{x:i,y:s,class:o.join(" "),transform:n},[y.verticalCenteredText(h(t[1]))])})),a=v.uid(),t=null,n=m.sv("path",{class:"main-scale",d:"M0 "+n+" H"+(i-.5),id:a}),o&&(t=m.sv("text",{dx:i/2,dy:l+c},[m.sv("textPath",{href:"#"+a,class:"scale-title "},o)])),m.sv("g",_({},b("x",o||e.text)),[n,t].concat(f))},e.bottomGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=n.targetValue,u=t.length,h=[],f="grid-line "+(a?"dash-line":"")+" "+(l?"":"hidden-line"),p=0;p<u;p++)0===p&&0===t[p][0]&&!n.hidden||(p!==c?(r="M"+t[p][0]+" 0 V "+i,s=m.sv("path",{d:r,class:f,_ref:"line"+Math.round(t[p][0])}),h.push(s),p===u-1&&t[p][0]!==e&&(o="M"+e+" 0 V "+i,o=m.sv("path",{d:o,class:f}),h.push(o))):(o="M"+t[p][0]+" 0 V "+i,o=m.sv("path",{d:o,class:f+" spec-grid-line"}),h.push(o)));return d&&(r="M"+d*e+" 0 V "+i,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.top=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,f=[],c=0;return d&&(c=a,r=u&&!isNaN(u),s=-a,f=t.map(function(t){var e,i=["scale-text"],n=t[0],o=r?"rotate("+u+" "+n+" "+s+")":"";return r&&(e=u%360,i.push(y.getClassesForRotateScale("top",e))),m.sv("text",{x:n,y:s,class:i.join(" "),transform:o},[y.verticalCenteredText(h(t[1]))])})),d=v.uid(),a=m.sv("path",{d:"M0 0 H"+i,class:"main-scale",id:d}),t=null,o&&(t=m.sv("text",{dx:i/2,dy:-l-c},[m.sv("textPath",{href:"#"+d,class:"scale-title"},o)])),m.sv("g",_({},b("x",o||e.text)),[a,t].concat(f))},e.topGrid=function(t,e,i,n){for(var o,r,s=n.dashed,a=n.grid,l=n.targetLine,c=t.length,d=[],u="grid-line "+(s?"dash-line":"")+" "+(a?"":"hidden-line"),h=0;h<c;h++)0===h&&0===t[h][0]&&!n.hidden||(h!==l?(o="M"+t[h][0]+" 0 V "+i,o=m.sv("path",{d:o,class:u,_ref:"line"+Math.round(t[h][0])}),d.push(o),h===c-1&&0!==t[h][0]&&(r="M0 0 V "+i,r=m.sv("path",{d:r,class:u}),d.push(r))):(r="M"+t[h][0]+" 0 V "+i,r=m.sv("path",{d:r,class:u+" spec-grid-line"}),d.push(r)));return m.sv("g",d)},e.left=function(t,e,i,n){var s,a,l,c=e.title,d=e.textPadding,o=e.scalePadding,r=e.textTemplate,u=e.showText,h=e.scaleRotate,f=r||x,p=[],g=0;return u&&(s=y.getFontStyle("scale-text"),a=0,l=h&&!isNaN(h),p=t.map(function(t){var e,i=t[0],n=-d,o=l?"rotate("+h+" "+n+" "+i+")":"",r=["scale-text"],t=f(t[1]);return c&&(e=y.getTextWidth(t,s),a<e&&(a=e)),l?(e=h%360,r.push(y.getClassesForRotateScale("left",e))):r.push("end-text"),m.sv("text",{x:n,y:i,class:r.join(" "),transform:o},[y.verticalCenteredText(t)])}),g=a+d),r=v.uid(),u=m.sv("path",{class:"main-scale",d:"M0 "+n+" V 0.5",id:r,_ref:t.length?"line0":null}),t=null,c&&(t=m.sv("text",{dx:n/2,dy:-o-g},[m.sv("textPath",{href:"#"+r,class:"scale-title"},c)])),m.sv("g",_({},b("y",c||e.text)),[u,t].concat(p))},e.leftGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=n.targetValue,u=t.length,h=[],f="grid-line "+(a?"dash-line":""),p=0;p<u;p++)0===p&&t[p][0]===i&&!n.hidden||(c!==p?l&&(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f}),h.push(s),p===u-1&&t[p][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:f}),h.push(o))):(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)));return d&&(r="M0 "+d*i+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.right=function(t,e,s,i){var a,l,c,d=e.title,u=e.textPadding,n=e.scalePadding,o=e.textTemplate,r=e.showText,h=e.scaleRotate,f=o||x,p=[],g=0;return r&&(a=y.getFontStyle("scale-text"),l=0,c=h&&!isNaN(h),p=t.map(function(t){var e,i=f(t[1]),n=t[0],o=s+u,r=c?"rotate("+h+" "+o+" "+n+")":"",t=["scale-text"];return d&&(e=y.getTextWidth(i,a),l<e&&(l=e)),c?(e=h%360,t.push(y.getClassesForRotateScale("right",e))):t.push("start-text"),m.sv("text",{x:o,y:n,class:t.join(" "),transform:r},[y.verticalCenteredText(i)])}),g=u+l),o=v.uid(),r=m.sv("path",{d:"M"+s+" "+i+" V 0",class:"main-scale",id:o,_ref:t.length?"line0":null}),t=null,d&&(t=m.sv("text",{dx:i/2,dy:n+g},[m.sv("textPath",{href:"#"+o,class:"scale-title"},d)])),m.sv("g",_({},b("y",d||e.text)),[r,t].concat(p))},e.rightGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=t.length,u=[],h="grid-line "+(a?"dash-line":""),f=0;f<d;f++)0===f&&t[f][0]===i&&!n.hidden||(c!==f?l&&(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h}),u.push(s),f===d-1&&t[f][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:h}),u.push(o))):(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h+" spec-grid-line"}),u.push(s)));return m.sv("g",u)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,v=i(0),a=i(3),i=i(32),o=(s=i.default,o(l,s),l.prototype.paint=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[];return this._form(t,e,n,i),this._markers(n),v.sv("g",r(r({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},l.prototype.paintformAndMarkers=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[],o=[];return this._form(t,e,n,i),this._markers(o),[v.sv("g",{class:"seria",_key:this.id},n),v.sv("g",{class:"seria_markers",_key:this.id+"_markers"},o)]},l.prototype._markers=function(t){var e,i,n=this;this.config.pointType&&(e=this.config.pointColor||this.config.color,i=this._getPointType(this.config.pointType,e),t.push.apply(t,this._points.map(function(t){return i(t[0],t[1],a.calcPointRef(t[2],n.id))})))},l.prototype._form=function(t,i,e,n){var o,r,s="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),a=this.config,l=a.id,c=a.fill,d=a.alpha,u=a.color,h=a.strokeWidth,f=this._points,a=f[f.length-1],p="";if(n){for(var g=n.length-1;0<=g;g--){var _=n[g];p+=g===f.length-1?"M"+_[0]+" "+_[1]+" ":"L"+_[0]+" "+_[1]+" "}p+=f.map(function(t,e){return e?"L "+t[0]+" "+t[1]:"V "+t[1]}).join(" ")+"Z"}else p+=f.map(function(t,e){return e?"L"+t[0]+" "+t[1]:"M0 "+i+" L0 "+t[1]+" L"+t[0]+" "+t[1]}).join(" ")+("L"+t+" "+a[1])+" V "+i;h&&(o=f.length-1,r=function(t){return t===o?-.5:t?0:.5},a=f.map(function(t,e){return e?"L"+(t[0]+r(e))+" "+t[1]:"M0 "+t[1]+" L0 "+(t[1]+r(e))+" L"+(t[0]+r(e))+" "+t[1]}).join(" ")+("L"+t+" "+a[1]),u=v.sv("path",{d:a,"stroke-width":h,stroke:u,fill:"none",class:s}),e.push(u));d=v.sv("path",{id:"seria"+l,d:p,class:s,fill:c,_ref:l,"fill-opacity":d,stroke:"none"});return e.push(d),e},l.prototype._setDefaults=function(t){var e={alpha:.3,strokeWidth:2,fill:t.color||"#5E83BA",color:"#5E83BA",active:!0,tooltip:!0,pointType:"empty"};this.config=r(r({},e),t);e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},l);function l(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(3),n={circle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2};return s.sv("circle",t)},rect:function(t,e,i,n,o,r){t={_ref:r,x:n-4,y:o-4,width:8,height:8,class:"figure point-rect",fill:e,stroke:t,"stroke-width":2};return s.sv("rect",t)},rhombus:function(t,e,i,n,o,r){t={_ref:r,points:n-5+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},triangle:function(t,e,i,n,o,r){t={_ref:r,points:n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},simpleCircle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:3,class:"figure point-simple-circle",fill:t};return s.sv("circle",t)},simpleRect:function(t,e,i,n,o,r){t={_ref:r,x:n-3,y:o-3,width:6,height:6,class:"figure point-simple-rect",fill:t};return s.sv("rect",t)},empty:function(){return null}},o={circle:function(t,e,i,n,o,r){return'<circle class="figure point-circle" _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="4" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rect:function(t,e,i,n,o,r){return'<rect _ref="'+r+'" x="'+(n-4)+'" y="'+(o-4)+'" width="8" height="8" class="figure point-rect" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rhombus:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+(n-5)+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5)+'" class="figure point-rhombus" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},triangle:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5)+'" class="figure point-triangle" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},simpleCircle:function(t,e,i,n,o,r){return'<circle _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="3" class="figure point-simple-circle" fill="'+t+'"/>'},simpleRect:function(t,e,i,n,o,r){return'<rect _ref="id" x="'+(n-3)+'" y="'+(o-3)+'" width="6" height="6" class="figure point-simple-rect" fill="'+t+'"/>'},empty:function(){return null}};function l(t){t=n[t.toString()];if(!t)throw new Error("unknown point type");return t}function c(t){t=o[t.toString()];if(!t)throw new Error("unknown point type");return t}e.getHelper=l,e.getHTMLHelper=c,e.getShadeHelper=function(t,n){var o=l(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}},e.getShadeHTMLHelper=function(t,n){var o=c(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),_=i(0),v=i(3),i=i(32),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){r.prototype.addScale.call(this,t,e),e.addPadding()},a.prototype.seriesShift=function(t){return this._shift=t,this.config.barWidth},a.prototype.paint=function(t,e,i){r.prototype.paint.call(this,t,e);if(!this.config.active)return null;var n=[];this._gradient&&n.push(_.sv("defs",[this._gradient()]));var o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),i=this._getForm(this._points,o,t,e,i),n=n.concat(i);return _.sv("g",g(g({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},a.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition<i?"bot":"top"},a.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&e<n?1/0:Math.abs(t-i)},a.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+(t[0]-this.config.barWidth/2)+" "+e+"\nV "+t[1]+"\nh "+this.config.barWidth+"\nV "+e},a.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:t-1},a.prototype._text=function(t,e,i){var n=t[0],t=(e+t[1])/2;return{x:n,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+n+" "+t+")":""}},a.prototype._getForm=function(t,i,e,n,o){function r(t){return o?o[t][1]:p}var s=this,a=this.config,l=a.baseLine,c=a.fill,d=a.alpha,u=a.showText,h=a.showTextTemplate,f=a.showTextRotate,a=[],p=this._base(n),n=t.map(function(t,e){return _.sv("path",g(g({_key:"seria"+s.config.id+e,_ref:v.calcPointRef(t[2],s.config.id),d:s._path(t,r(e)),class:i,fill:c,onclick:[s._handlers.onclick,t[2],s.config.value],onmousemove:[s._handlers.onmousemove,t[2],s.config.id],onmouseleave:[s._handlers.onmouseleave,t[2],s.config.id],"fill-opacity":d},{role:"graphics-symbol","aria-roledescription":"bar","aria-label":function(t,e,i){void 0===i&&(i=0);var n=e[3],o=i,e=e[4];return e<i&&(o=e,e=i),"xbar"===t?"bar y="+n+", x from "+o+" to "+e:"bar x="+n+", y from "+o+" to "+e}(s.config.type,t,l)}),{tabindex:0}))});return a.push.apply(a,n),(u||h||f)&&!1!==u&&(t=t.map(function(t,e){var i,n,o=s._getText(t);return i=t,n=e,16<Math.abs(r(n)-i[1])?_.sv("text",g(g({},s._text(t,r(e),f)),{"aria-hidden":"true"}),[h?v.verticalCenteredText(h(o)):v.verticalCenteredText(o)]):null}),a.push.apply(a,t)),a},a.prototype._getText=function(t){return t[4].toString()},a.prototype._setDefaults=function(t){this.config=g(g({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e,i,n=this.config.pointType,t=this.config.pointColor||this.config.color;n&&(this.config.pointType=n,this._drawPointType=this._getPointType(n,t)),this.config.gradient&&(e="gradient"+s.uid(),i=this.config.gradient(this.config.fill),this._gradient=function(){return v.linearGradient(i,e)},this.config.fill="url(#"+e+")")},a);function a(){var t=null!==r&&r.apply(this,arguments)||this;return t._shift=0,t}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i=t.length;if(i<3)a=t;else for(var n=t[0],o=t[0],r=t[1],s=t[2],a=[t[0].slice(0,2)],l=1;l<i;l++)a.push([(-n[0]+6*o[0]+r[0])/6,(-n[1]+6*o[1]+r[1])/6,(o[0]+6*r[0]-s[0])/6,(o[1]+6*r[1]-s[1])/6,r[0],r[1]]),n=o,o=r,r=s,s=t[l+2]||s;for(var c="",l=0;l<a.length;l++){var d=a[l],u=d.length;l?c+=5<u?"C"+d[0]+" "+d[1]+"\n\t\t\t\t"+d[2]+" "+d[3]+"\n\t\t\t\t"+d[4]+" "+d[5]:5===u?"L"+d[0]+" "+d[1]:"S"+d[0]+" "+d[1]+"\n\t\t\t\t"+d[2]+" "+d[3]:(c+=e?"L":"M",c+=5===u?d[0]+" "+d[1]:d[u-2]+" "+d[u-1])}return c}},function(t,e,i){i(67),i(68),i(69),i(70),i(71),t.exports=i(72)},function(t,e){Object.values=Object.values||function(e){var t=Object.prototype.toString.call(e);if(null==e)throw new TypeError("Cannot convert undefined or null to object");if(~["[object String]","[object Object]","[object Array]","[object Function]"].indexOf(t)){if(Object.keys)return Object.keys(e).map(function(t){return e[t]});var i,n=[];for(i in e)e.hasOwnProperty(i)&&n.push(e[i]);return n}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=0;o<e.length;o++){var r=e[o];if(null!=r)for(var s=Object.keys(Object(r)),a=0,l=s.length;a<l;a++){var c=s[a],d=Object.getOwnPropertyDescriptor(r,c);void 0!==d&&d.enumerable&&(n[c]=r[c])}}return n}})},function(t,e){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0==n)return!1;var o,r,e=0|e,s=Math.max(0<=e?e:n-Math.abs(e),0);for(;s<n;){if((o=i[s])===(r=t)||"number"==typeof o&&"number"==typeof r&&isNaN(o)&&isNaN(r))return!0;s++}return!1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],o=0;o<i;){var r=e[o];if(t.call(n,r,o,e))return r;o++}},configurable:!0,writable:!0}),Array.prototype.findIndex||(Array.prototype.findIndex=function(t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,o=arguments[1],r=0;r<n;r++)if(e=i[r],t.call(o,e,r,i))return r;return-1})},function(t,e){String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return e=e||0,this.indexOf(t,e)===e}}),String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))})},function(t,e){var i,n,o,r;Element&&!Element.prototype.matches&&((i=Element.prototype).matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector),"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var i=this;return{contains:function(t){return-1!==i.className.baseVal.split(" ").indexOf(t)},add:function(t){return i.setAttribute("class",i.getAttribute("class")+" "+t)},remove:function(t){var e=i.getAttribute("class").replace(new RegExp("(\\s|^)".concat(t,"(\\s|$)"),"g"),"$2");i.classList.contains(t)&&i.setAttribute("class",e)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),Object.entries||(n=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat),Object.entries=function(i){return n(Object.keys(i),function(t,e){return r(t,"string"==typeof e&&o(i,e)?[[e,i[e]]]:[])},[])}),Event.prototype.composedPath||(Event.prototype.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(document,window),this.path})},function(t,e){Math.sign=Math.sign||function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i(73);var n=i(0);e.vmdom={sv:n.sv};n=i(0);e.resizeHandler=n.resizeHandler;i=i(78);e.Chart=i.Chart},function(t,e,i){},function(t,o,r){(function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function n(t,e){this._id=t,this._clearFn=e}o.setTimeout=function(){return new n(i.call(setTimeout,e,arguments),clearTimeout)},o.setInterval=function(){return new n(i.call(setInterval,e,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(e,this._id)},o.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},o.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},o._unrefActive=o.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(75),o.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,o.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(22))},function(t,e,i){(function(t,p){!function(i,n){"use strict";var o,r,s,a,l,c,e,d,t;function u(t){delete r[t]}function h(t){if(s)setTimeout(h,0,t);else{var e=r[t];if(e){s=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{u(t),s=!1}}}}function f(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(d)&&h(+t.data.slice(d.length))}i.setImmediate||(o=1,s=!(r={}),a=i.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&t.setTimeout?t:i,l="[object process]"==={}.toString.call(i.process)?function(t){p.nextTick(function(){h(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(d="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",f,!1):i.attachEvent("onmessage",f),function(t){i.postMessage(d+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){h(t.data)},function(t){e.port2.postMessage(t)}):a&&"onreadystatechange"in a.createElement("script")?(c=a.documentElement,function(t){var e=a.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,c.removeChild(e),e=null},c.appendChild(e)}):function(t){setTimeout(h,0,t)},t.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return t={callback:t,args:e},r[o]=t,l(o),o++},t.clearImmediate=u)}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(22),i(76))},function(t,e){var i,n,t=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}}();var a,l=[],c=!1,d=-1;function u(){c&&a&&(c=!1,a.length?l=a.concat(l):d=-1,l.length&&h())}function h(){if(!c){var t=s(u);c=!0;for(var e=l.length;e;){for(a=l,l=[];++d<e;)a&&a[d].run();d=-1,e=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new f(t,e)),1!==l.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=p,t.addListener=p,t.once=p,t.off=p,t.removeListener=p,t.removeAllListeners=p,t.emit=p,t.prependListener=p,t.prependOnceListener=p,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,i){
13
13
  /**
14
14
  * Copyright (c) 2017, Leon Sorokin
15
15
  * All rights reserved. (MIT Licensed)
@@ -18,4 +18,4 @@ if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"=
18
18
  * A thin, fast, dependency-free vdom view layer
19
19
  * @preserve https://github.com/leeoniya/domvm (v3.2.6, micro build)
20
20
  */
21
- t.exports=function(){"use strict";var D=1,l=2,O=3,M=4,T=5,t=typeof window!=="undefined",e,r=(t?window:{}).requestAnimationFrame,c={};function i(){}var p=Array.isArray;function d(t){return t!=null}function s(t){return t!=null&&t.constructor===Object}function o(t,e,i,n){t.splice.apply(t,[i,n].concat(e))}function a(t){var e=typeof t;return e==="string"||e==="number"}function u(t){return typeof t==="function"}function h(t){return typeof t==="object"&&u(t.then)}function f(t){var e=arguments;for(var i=1;i<e.length;i++)for(var n in e[i])t[n]=e[i][n];return t}function g(t,e,i){var n;while(n=e.shift())if(e.length===0)t[n]=i;else t[n]=t=t[n]||{}}function _(t,e){var i=[];for(var n=e;n<t.length;n++)i.push(t[n]);return i}function v(t,e){for(var i in t)if(t[i]!==e[i])return false;return true}function m(t,e){var i=t.length;if(e.length!==i)return false;for(var n=0;n<i;n++)if(t[n]!==e[n])return false;return true}function y(t){if(!r)return t;var e,i,n;function o(){e=0;t.apply(i,n)}return function(){i=this;n=arguments;if(!e)e=r(o)}}function x(t,e,i){return function(){return t.apply(i,e)}}function b(t){var e=t.slice();var i=[];i.push(0);var n;var o;for(var r=0,s=t.length;r<s;++r){var a=i[i.length-1];if(t[a]<t[r]){e[r]=a;i.push(r);continue}n=0;o=i.length-1;while(n<o){var l=(n+o)/2|0;if(t[i[l]]<t[r])n=l+1;else o=l}if(t[r]<t[i[n]]){if(n>0)e[r]=i[n-1];i[n]=r}}n=i.length;o=i[n-1];while(n-- >0){i[n]=o;o=e[o]}return i}function w(t,e){var i=0;var n=e.length-1;var o;var r=n<=2147483647?true:false;if(r)while(i<=n){o=i+n>>1;if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}else while(i<=n){o=Math.floor((i+n)/2);if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}return i==e.length?null:i}function C(t){return t[0]==="o"&&t[1]==="n"}function E(t){return t[0]==="_"}function S(t){return t==="style"}function k(t){t&&t.el&&t.el.offsetHeight}function P(t){return t.node!=null&&t.node.el!=null}function L(t,e){switch(e){case"value":case"checked":case"selected":return true}return false}function H(t){t=t||c;while(t.vm==null&&t.parent)t=t.parent;return t.vm}function I(){}var n=I.prototype={constructor:I,type:null,vm:null,key:null,ref:null,data:null,hooks:null,ns:null,el:null,tag:null,attrs:null,body:null,flags:0,_class:null,_diff:null,_dead:false,_lis:false,idx:null,parent:null};function A(t){var e=new I;e.type=l;e.body=t;return e}var j={},R=/\[(\w+)(?:=(\w+))?\]/g;function F(t){{var e=j[t];if(e==null){var i,n,o,r;j[t]=e={tag:(i=t.match(/^[-\w]+/))?i[0]:"div",id:(n=t.match(/#([-\w]+)/))?n[1]:null,class:(o=t.match(/\.([-\w.]+)/))?o[1].replace(/\./g," "):null,attrs:null};while(r=R.exec(t)){if(e.attrs==null)e.attrs={};e.attrs[r[1]]=r[2]||""}}return e}}var $=1,N=2,V=4,W=8;function z(t,e,i,n){var o=new I;o.type=D;if(d(n))o.flags=n;o.attrs=e;var r=F(t);o.tag=r.tag;if(r.id||r.class||r.attrs){var s=o.attrs||{};if(r.id&&!d(s.id))s.id=r.id;if(r.class){o._class=r.class;s.class=r.class+(d(s.class)?" "+s.class:"")}if(r.attrs)for(var a in r.attrs)if(!d(s[a]))s[a]=r.attrs[a];o.attrs=s}var l=o.attrs;if(d(l)){if(d(l._key))o.key=l._key;if(d(l._ref))o.ref=l._ref;if(d(l._hooks))o.hooks=l._hooks;if(d(l._data))o.data=l._data;if(d(l._flags))o.flags=l._flags;if(!d(o.key))if(d(o.ref))o.key=o.ref;else if(d(l.id))o.key=l.id;else if(d(l.name))o.key=l.name+(l.type==="radio"||l.type==="checkbox"?l.value:"")}if(i!=null)o.body=i;return o}function G(t,e,i){var n=["refs"].concat(e.split("."));g(t,n,i)}function B(t){while(t=t.parent)t.flags|=$}function Y(t,e,i,n){if(t.type===T||t.type===M)return;t.parent=e;t.idx=i;t.vm=n;if(t.ref!=null)G(H(t),t.ref,t);var o=t.hooks,r=n&&n.hooks;if(o&&(o.willRemove||o.didRemove)||r&&(r.willUnmount||r.didUnmount))B(t);if(p(t.body))X(t);else;}function X(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];if(n===false||n==null)e.splice(i--,1);else if(p(n))o(e,n,i--,1);else{if(n.type==null)e[i]=n=A(""+n);if(n.type===l)if(n.body==null||n.body==="")e.splice(i--,1);else if(i>0&&e[i-1].type===l){e[i-1].body+=n.body;e.splice(i--,1)}else Y(n,t,i,null);else Y(n,t,i,null)}}}var q={animationIterationCount:true,boxFlex:true,boxFlexGroup:true,boxOrdinalGroup:true,columnCount:true,flex:true,flexGrow:true,flexPositive:true,flexShrink:true,flexNegative:true,flexOrder:true,gridRow:true,gridColumn:true,order:true,lineClamp:true,borderImageOutset:true,borderImageSlice:true,borderImageWidth:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,tabSize:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeDasharray:true,strokeDashoffset:true,strokeMiterlimit:true,strokeOpacity:true,strokeWidth:true};function U(t,e){return!isNaN(e)&&!q[t]?e+"px":e}function K(t,e){var i=(t.attrs||c).style;var n=e?(e.attrs||c).style:null;if(i==null||a(i))t.el.style.cssText=i;else{for(var o in i){var r=i[o];if(n==null||r!=null&&r!==n[o])t.el.style[o]=U(o,r)}if(n)for(var s in n)if(i[s]==null)t.el.style[s]=""}}var J=[];function Z(t,e,i,n,o){if(t!=null){var r=i.hooks[e];if(r)if(e[0]==="d"&&e[1]==="i"&&e[2]==="d")o?k(i.parent)&&r(i,n):J.push([r,i,n]);else return r(i,n)}}function Q(t){if(J.length){k(t.node);var e;while(e=J.shift())e[0](e[1],e[2])}}var tt=t?document:null;function et(t){while(t._node==null)t=t.parentNode;return t._node}function it(t,e){if(e!=null)return tt.createElementNS(e,t);return tt.createElement(t)}function nt(t){return tt.createTextNode(t)}function ot(t){return tt.createComment(t)}function rt(t){return t.nextSibling}function st(t){return t.previousSibling}function at(t){var e=t.vm;var i=e!=null&&Z(e.hooks,"willUnmount",e,e.data);var n=Z(t.hooks,"willRemove",t);if((t.flags&$)===$&&p(t.body))for(var o=0;o<t.body.length;o++)at(t.body[o]);return i||n}function lt(t,e,i){var n=e._node,o=n.vm;if(p(n.body))if((n.flags&$)===$)for(var r=0;r<n.body.length;r++)lt(e,n.body[r].el);else dt(n);delete e._node;t.removeChild(e);Z(n.hooks,"didRemove",n,null,i);if(o!=null){Z(o.hooks,"didUnmount",o,o.data,i);o.node=null}}function ct(t,e){var i=e._node;if(i._dead)return;var n=at(i);if(n!=null&&h(n)){i._dead=true;n.then(x(lt,[t,e,true]))}else lt(t,e)}function dt(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];delete n.el._node;if(n.vm!=null)n.vm.node=null;if(p(n.body))dt(n)}}function ut(t){var e=t.el;if((t.flags&$)===0){p(t.body)&&dt(t);e.textContent=null}else{var i=e.firstChild;do{var n=rt(i);ct(e,i)}while(i=n)}}function ht(t,e,i){var n=e._node,o=e.parentNode!=null;var r=e===i||!o?n.vm:null;if(r!=null)Z(r.hooks,"willMount",r,r.data);Z(n.hooks,o?"willReinsert":"willInsert",n);t.insertBefore(e,i);Z(n.hooks,o?"didReinsert":"didInsert",n);if(r!=null)Z(r.hooks,"didMount",r,r.data)}function ft(t,e,i){ht(t,e,i?rt(i):null)}var pt={};function gt(t){f(pt,t)}function _t(t){var e=this,i=e,n=_(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());if(pt[t])pt[t].apply(e,n)}var vt=i;function mt(t){vt=t.onevent||vt;if(t.onemit)gt(t.onemit)}function yt(t,e,i){t[e]=i}function xt(t,e,i,n,o){var r=t.apply(o,e.concat([i,n,o,o.data]));o.onevent(i,n,o,o.data,e);vt.call(null,i,n,o,o.data,e);if(r===false){i.preventDefault();i.stopPropagation()}}function bt(t){var e=et(t.target);var i=H(e);var n=t.currentTarget._node.attrs["on"+t.type],o,r;if(p(n)){o=n[0];r=n.slice(1);xt(o,r,t,e,i)}else for(var s in n)if(t.target.matches(s)){var a=n[s];if(p(a)){o=a[0];r=a.slice(1)}else{o=a;r=[]}xt(o,r,t,e,i)}}function wt(t,e,i,n){if(i===n)return;var o=t.el;if(i==null||u(i))yt(o,e,i);else if(n==null)yt(o,e,bt)}function Ct(t,e,i){if(e[0]==="."){e=e.substr(1);i=true}if(i)t.el[e]="";else t.el.removeAttribute(e)}function Et(t,e,i,n,o){var r=t.el;if(i==null)!o&&Ct(t,e,false);else if(t.ns!=null)r.setAttribute(e,i);else if(e==="class")r.className=i;else if(e==="id"||typeof i==="boolean"||n)r[e]=i;else if(e[0]===".")r[e.substr(1)]=i;else r.setAttribute(e,i)}function St(t,e,i){var n=t.attrs||c;var o=e.attrs||c;if(n===o);else{for(var r in n){var s=n[r];var a=L(t.tag,r);var l=a?t.el[r]:o[r];if(s===l);else if(S(r))K(t,e);else if(E(r));else if(C(r))wt(t,r,s,l);else Et(t,r,s,a,i)}for(var r in o)!(r in n)&&!E(r)&&Ct(t,r,L(t.tag,r)||C(r))}}function kt(t,e,i,n){if(t.type===M){e=t.data;i=t.key;n=t.opts;t=t.view}return new Yt(t,e,i,n)}function Dt(t){for(var e=0;e<t.body.length;e++){var i=t.body[e];var n=i.type;if(n<=O)ht(t.el,Ot(i));else if(n===M){var o=kt(i.view,i.data,i.key,i.opts)._redraw(t,e,false);n=o.node.type;ht(t.el,Ot(o.node))}else if(n===T){var o=i.vm;o._redraw(t,e);n=o.node.type;ht(t.el,o.node.el)}}}function Ot(t,e){if(t.el==null)if(t.type===D){t.el=e||it(t.tag,t.ns);if(t.attrs!=null)St(t,c,true);if((t.flags&W)===W)t.body.body(t);if(p(t.body))Dt(t);else if(t.body!=null&&t.body!=="")t.el.textContent=t.body}else if(t.type===l)t.el=e||nt(t.body);else if(t.type===O)t.el=e||ot(t.body);t.el._node=t;return t.el}function Mt(t,e){return e[t.idx+1]}function Tt(t,e){return e[t.idx-1]}function Pt(t){return t.parent}window.lisMove=At;var Lt=1,Ht=2;function It(l,c,d,u,h,f,p,g){return function(t,e,i,n,o,r){var s,a;if(n[u]!=null){if((s=n[u]._node)==null){n[u]=l(n[u]);return}if(Pt(s)!==t){a=l(n[u]);s.vm!=null?s.vm.unmount(true):ct(e,n[u]);n[u]=a;return}}if(n[h]==o)return Ht;else if(n[h].el==null){d(e,Ot(n[h]),n[u]);n[h]=c(n[h],i)}else if(n[h].el===n[u]){n[h]=c(n[h],i);n[u]=l(n[u])}else if(!r&&s===n[p]){a=n[u];n[u]=l(a);g(e,a,n[f]);n[f]=a}else{if(r&&n[u]!=null)return At(l,c,d,u,h,e,i,s,n);return Lt}}}function At(t,e,i,n,o,r,s,a,l){if(a._lis){i(r,l[o].el,l[n]);l[o]=e(l[o],s)}else{var c=w(a.idx,l.tombs);a._lis=true;var d=t(l[n]);i(r,l[n],c!=null?s[l.tombs[c]].el:c);if(c==null)l.tombs.push(a.idx);else l.tombs.splice(c,0,a.idx);l[n]=d}}var jt=It(rt,Mt,ht,"lftSib","lftNode","rgtSib","rgtNode",ft),Rt=It(st,Tt,ft,"rgtSib","rgtNode","lftSib","lftNode",ht);function Ft(t,e){var i=e.body,n=t.el,o=t.body,r={lftNode:o[0],rgtNode:o[o.length-1],lftSib:(i[0]||c).el,rgtSib:(i[i.length-1]||c).el};t:while(1){while(1){var s=jt(t,n,o,r,null,false);if(s===Lt)break;if(s===Ht)break t}while(1){var a=Rt(t,n,o,r,r.lftNode,false);if(a===Lt)break;if(a===Ht)break t}$t(t,n,o,r);break}}function $t(t,e,i,n){var o=Array.prototype.slice.call(e.childNodes);var r=[];for(var s=0;s<o.length;s++){var a=o[s]._node;if(a.parent===t)r.push(a.idx)}var l=b(r).map(function(t){return r[t]});for(var c=0;c<l.length;c++)i[l[c]]._lis=true;n.tombs=l;while(1){var d=jt(t,e,i,n,null,true);if(d===Ht)break}}function Nt(t){return t.el._node.parent!==t.parent}function Vt(t,e,i){return e[i]}function Wt(t,e,i){for(;i<e.length;i++){var n=e[i];if(n.vm!=null){if(t.type===M&&n.vm.view===t.view&&n.vm.key===t.key||t.type===T&&n.vm===t.vm)return n}else if(!Nt(n)&&t.tag===n.tag&&t.type===n.type&&t.key===n.key&&(t.flags&~$)===(n.flags&~$))return n}return null}function zt(t,e,i){return e[e._keys[t.key]]}function Gt(t,e){Z(e.hooks,"willRecycle",e,t);var i=t.el=e.el;var n=e.body;var o=t.body;i._node=t;if(t.type===l&&o!==n){i.nodeValue=o;return}if(t.attrs!=null||e.attrs!=null)St(t,e,false);var r=p(n);var s=p(o);var a=(t.flags&W)===W;if(r){if(s||a)Bt(t,e);else if(o!==n)if(o!=null)i.textContent=o;else ut(e)}else if(s){ut(e);Dt(t)}else if(o!==n)if(i.firstChild)i.firstChild.nodeValue=o;else i.textContent=o;Z(e.hooks,"didRecycle",e,t)}function Bt(t,e){var i=t.body,n=i.length,o=e.body,r=o.length,s=(t.flags&W)===W,a=(t.flags&N)===N,l=(t.flags&V)===V,c=!a&&t.type===D,d=true,u=l?zt:a||s?Vt:Wt;if(l){var h={};for(var f=0;f<o.length;f++)h[o[f].key]=f;o._keys=h}if(c&&n===0){ut(e);if(s)t.body=[];return}var p,g,_,v=0,m=false,y=0;if(s){var x={key:null};var b=Array(n)}for(var f=0;f<n;f++){if(s){var w=false;var C=null;if(d){if(l)x.key=i.key(f);p=u(x,o,y)}if(p!=null){_=p.idx;C=i.diff(f,p);if(C===true){g=p;g.parent=t;g.idx=f;g._lis=false}else w=true}else w=true;if(w){g=i.tpl(f);Y(g,t,f);g._diff=C!=null?C:i.diff(f);if(p!=null)Gt(g,p)}else;b[f]=g}else{var g=i[f];var E=g.type;if(E<=O){if(p=d&&u(g,o,y)){Gt(g,p);_=p.idx}}else if(E===M){if(p=d&&u(g,o,y)){_=p.idx;var S=p.vm._update(g.data,t,f)}else var S=kt(g.view,g.data,g.key,g.opts)._redraw(t,f,false);E=S.node.type}else if(E===T){var k=P(g.vm);var S=g.vm._update(g.data,t,f,k);E=S.node.type}}if(!l&&p!=null){if(_===y){y++;if(y===r&&n>r){p=null;d=false}}else m=true;if(r>100&&m&&++v%10===0)while(y<r&&Nt(o[y]))y++}}if(s)t.body=b;c&&Ft(t,e)}function Yt(t,e,i,n){var o=this;o.view=t;o.data=e;o.key=i;if(n){o.opts=n;o.config(n)}var r=s(t)?t:t.call(o,o,e,i,n);if(u(r))o.render=r;else{o.render=r.render;o.config(r)}o._redrawAsync=y(function(t){return o.redraw(true)});o._updateAsync=y(function(t){return o.update(t,true)});o.init&&o.init.call(o,o,o.data,o.key,n)}var Xt=Yt.prototype={constructor:Yt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:i,refs:null,render:null,mount:qt,unmount:Ut,config:function(t){var e=this;if(t.init)e.init=t.init;if(t.diff)e.diff=t.diff;if(t.onevent)e.onevent=t.onevent;if(t.hooks)e.hooks=f(e.hooks||{},t.hooks);if(t.onemit)e.onemit=f(e.onemit||{},t.onemit)},parent:function(){return H(this.node.parent)},root:function(){var t=this.node;while(t.parent)t=t.parent;return t.vm},redraw:function(t){var e=this;t?e._redraw(null,null,P(e)):e._redrawAsync();return e},update:function(t,e){var i=this;e?i._update(t,null,null,P(i)):i._updateAsync(t);return i},_update:Zt,_redraw:Jt,_redrawAsync:null,_updateAsync:null};function qt(t,e){var i=this;if(e){ut({el:t,flags:0});i._redraw(null,null,false);if(t.nodeName.toLowerCase()!==i.node.tag){Ot(i.node);ht(t.parentNode,i.node.el,t);t.parentNode.removeChild(t)}else ht(t.parentNode,Ot(i.node,t),t)}else{i._redraw(null,null);if(t)ht(t,i.node.el)}if(t)Q(i);return i}function Ut(t){var e=this;var i=e.node;var n=i.el.parentNode;ct(n,i.el);if(!t)Q(e)}function Kt(t,e,i,n){if(i!=null){i.body[n]=e;e.idx=n;e.parent=i;e._lis=false}return t}function Jt(t,e,i){var n=t==null;var o=this;var r=o.node&&o.node.el&&o.node.el.parentNode;var s=o.node,a,l;if(o.diff!=null){a=o._diff;o._diff=l=o.diff(o,o.data);if(s!=null){var c=p(a)?m:v;var d=a===l||c(a,l);if(d)return Kt(o,s,t,e)}}r&&Z(o.hooks,"willRedraw",o,o.data);var u=o.render.call(o,o,o.data,a,l);if(u===s)return Kt(o,s,t,e);o.refs=null;if(o.key!=null&&u.key!==o.key)u.key=o.key;o.node=u;if(t){Y(u,t,e,o);t.body[e]=u}else if(s&&s.parent){Y(u,s.parent,s.idx,o);s.parent.body[s.idx]=u}else Y(u,null,null,o);if(i!==false)if(s)if(s.tag!==u.tag||s.key!==u.key){s.vm=u.vm=null;var h=s.el.parentNode;var f=rt(s.el);ct(h,s.el);ht(h,Ot(u),f);s.el=u.el;u.vm=o}else Gt(u,s);else Ot(u);r&&Z(o.hooks,"didRedraw",o,o.data);if(n&&r)Q(o);return o}function Zt(t,e,i,n){var o=this;if(t!=null)if(o.data!==t){Z(o.hooks,"willUpdate",o,t);o.data=t}return o._redraw(e,i,n)}function Qt(t,e,i,n){var o,r;if(i==null)if(s(e))o=e;else r=e;else{o=e;r=i}return z(t,o,r,n)}var te="http://www.w3.org/2000/svg";function ee(t,e,i,n){var o=Qt(t,e,i,n);o.ns=te;return o}function ie(t){var e=new I;e.type=O;e.body=t;return e}function ne(t,e,i,n){this.view=t;this.data=e;this.key=i;this.opts=n}function oe(t,e,i,n){return new ne(t,e,i,n)}function re(t){this.vm=t}function se(t){return new re(t)}function ae(t){var e=new I;e.type=D;e.el=e.key=t;return e}function le(r,s){var o=r.length;var a={items:r,length:o,key:function(t){return s.key(r[t],t)},diff:function(t,e){var i=s.diff(r[t],t);if(e==null)return i;var n=e._diff;var o=i===n||p(n)?m(i,n):v(i,n);return o||i},tpl:function(t){return s.tpl(r[t],t)},map:function(t){s.tpl=t;return a},body:function(t){var e=Array(o);for(var i=0;i<o;i++){var n=a.tpl(i);n._diff=a.diff(i);e[i]=n;Y(n,t,i)}t.body=e}};return a}ne.prototype={constructor:ne,type:M,view:null,data:null,key:null,opts:null},re.prototype={constructor:re,type:T,vm:null};var ce={config:mt,ViewModel:Yt,VNode:I,createView:kt,defineElement:Qt,defineSvgElement:ee,defineText:A,defineComment:ie,defineView:oe,injectView:se,injectElement:ae,lazyList:le,FIXED_BODY:N,DEEP_REMOVE:$,KEYED_LIST:V,LAZY_LIST:W};function de(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(Y(e,t.parent,t.idx,null),Gt(t.parent.body[t.idx]=e,t),i&&k(e),Q(H(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t))}}(this,t,e)}function ue(t,e,i){if(null!=e.type)null==t.vm&&(Y(e,t.parent,t.idx,null),Gt(t.parent.body[t.idx]=e,t),i&&k(e),Q(H(e)));else{var n=Object.create(t);(n=Object.create(t)).attrs=f({},t.attrs);var o=f(t.attrs,e),s;null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t)}}function he(t,e){var i=t.body;if(p(i))for(var n=0;n<i.length;n++){var o=i[n];if(o.vm!=null)e.push(o.vm);else he(o,e)}return e}function fe(t){var e=arguments;var i=e.length;var n,o;if(i>1){var r=1;if(s(e[1])){o=e[1];r=2}if(i===r+1&&(a(e[r])||p(e[r])||o&&(o._flags&W)===W))n=e[r];else n=_(e,r)}return z(t,o,n)}function pe(){var t=fe.apply(null,arguments);return t.ns=te,t}return n.patch=function(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(Y(e,t.parent,t.idx,null),Gt(t.parent.body[t.idx]=e,t),i&&k(e),Q(H(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t))}}(this,t,e)},Xt.emit=function(t){var e=this,i=e,n=_(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());pt[t]&&pt[t].apply(e,n)},Xt.onemit=null,Xt.body=function(){return function t(e,i){var n=e.body;if(p(n))for(var o=0;o<n.length;o++){var r=n[o];null!=r.vm?i.push(r.vm):t(r,i)}return i}(this.node,[])},ce.defineElementSpread=fe,ce.defineSvgElementSpread=function(){var t=fe.apply(null,arguments);return t.ns=te,t},ce}()},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(5),c=i(7),d=i(6),h=i(124),u=i(126),f=i(16),p=i(128),g=i(132),_=i(142),v=i(3),m=i(143),y=i(1),o=(r=c.View,o(x,r),x.prototype.getSeries=function(t){return this._series[t]},x.prototype.eachSeries=function(t){var e,i=[];for(e in this._series)i.push(t.call(this,this._series[e]));return i},x.prototype.destructor=function(){this._tooltip.destructor(),this.events.clear(),this.unmount()},x.prototype.setConfig=function(o){var r,s=this;if(this.config=o,this._layers.clear(),this._series={},this._scales={},o.scales)for(var t in o.scales){var e=l({},o.scales[t]);void 0!==o.scales[t].min&&(r=o.scales[t].min),e.type=e.type||this._detectScaleType(e,t),o.scales.radial&&"radial"!==t&&(e.hidden=!0),this._setScale(e,t)}var i,a=new _.default;this._layers.add(a),o.series.forEach(function(t,e){void 0!==t.baseLine&&t.baseLine<r&&(t.baseLine=void 0);var n=l({},t);switch(n.type=n.type||o.type,n.type){case"bar":case"xbar":case"area":case"splineArea":n.color||(n.color=n.fill||v.getDefaultColor(e)),n.fill||(n.fill=n.color||v.getDefaultColor(e));break;case"treeMap":n.legendType=o.legend.type||"groupName",o.legend.treeSeries.map(function(t,e){var i;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(i=t.id)&&void 0!==i?i:y.uid(),t.color||(t.color=v.getDefaultColor(e,"range"===n.legendType))}),n.treeSeries=o.legend.treeSeries;break;case"radar":case"scatter":n.pointColor||(n.pointColor=n.color||v.getDefaultColor(e))}t=g.default[n.type];(n.barWidth||s.config.barWidth)&&(n.barWidth=n.barWidth||s.config.barWidth);var i=new t(s.data,n,s.events),t=v.getScales(o.scales);(1<t.length&&"radial"!==t[0]||"radial"===t[0]?t:["bottom","left"]).forEach(function(t){var e=s._scales[t];e&&(i.addScale(t,e),n.stacked?e.add(a):e.add(i))}),s._series[i.id]=i,(n.stacked?a:s._layers).add(i)}),o.legend&&((i=l({},o.legend)).series&&(i.$seriesInfo=i.series.map(function(t){return s._series[t]})),i=new u.Legend(this.data,i,this.events),this._layers.add(i)),this.paint()},x.prototype._setScale=function(t,e){t=new p.default[t.type](this.data,t,e);"radial"!==t.config.type&&this._layers.add(t.scaleGrid()),this._layers.add(t),this._scales[e]=t},x.prototype._detectScaleType=function(t,e){return"radial"===e?e:t.text?"text":"numeric"},x.prototype._initEvents=function(){var i=this;this.events.on(f.ChartEvents.toggleSeries,function(t,e){"treeMap"===i.config.type?(Object.values(i._series)[0].toggle(t),i.paint()):e?(e=i._series[Object.keys(i._series)[0]])&&(e.toggle(t),i.paint()):i._series[t]&&(i._series[t].toggle(),i.paint())},this),this.events.on(d.DataEvents.change,function(){return i.paint()})},x);function x(t,i){void 0===i&&(i={});var u=r.call(this,null,i)||this;u._width=0,u._height=0,u._left=0,u._top=0;var e={};i.maxPoints&&(e.approximate={value:i.series.map(function(t){return t.value}),maxNum:i.maxPoints}),Array.isArray(i.data)?(u.events=new a.EventSystem(u),u.data=new("treeMap"===i.type?d.TreeCollection:d.DataCollection)(e,u.events),u.data.parse(i.data)):i.data&&i.data.events?(u.data=i.data,u.events=u.data.events,u.events.context=u):(u.events=new a.EventSystem(u),u.data=new("treeMap"===i.type?d.TreeCollection:d.DataCollection)(e,u.events)),u._globalHTMLHandlers={onmousemove:function(t){var e=u._layers.getSizes(),i=e.left,n=e.top,o=e.bottom,r=e.right,s=t.pageX,e=t.pageY,t=u.getRootView().node.el.getBoundingClientRect();u._left=t.left+window.pageXOffset,u._top=t.top+window.pageYOffset;s=s-i-u._left,e=e-n-u._top;0<=s&&s<=u._width-r-i&&0<=e&&e<=u._height-o-n?u.events.fire(f.ChartEvents.chartMouseMove,[s,e,u._left+i,u._top+n]):u.events.fire(f.ChartEvents.chartMouseLeave)},onmouseleave:function(){return u.events.fire(f.ChartEvents.chartMouseLeave)}},u._layers=new h.ComposeLayer,u.setConfig(i),u._initEvents(),u._tooltip=new m.Tooltip(u);e=s.create({render:function(){if(!u.data.getLength())return s.el("div");function t(t){function o(t){return t._isXDirection?"X":"Y"}function r(t){return t.title||t.text||t.value||""}function s(t){return t.steps&&t.steps.length?t.steps[0]:t.min||0}function a(t){return t.steps&&t.steps.length?t.steps[t.steps.length-1]:t.max||t.maxPoints||"max"}function l(t,e){return e[t]}var c=u._scales,i=t.series,n=t.type,d=((n=n||(i&&i.length&&i[0]&&i[0].type||""))||"")+" chart.";return c&&Object.keys(c).forEach(function(t){var e,i=c[t],n=i._axis||i.config;"radial"===t?(e=i._data._order,d+=" X scale "+r(i.config)+": "+t+" axis from "+l(i.config.value,e[0])+" to "+l(i.config.value,e[e.length-1])+".",d+=" "+o(i)+" scale: axis from "+s(n)+" to "+a(n)+"."):d+=" "+o(i)+" scale "+r(i.config)+": "+t+" axis from "+s(n)+" to "+a(n)+"."}),i&&i.length&&(d+=" Series:",i.forEach(function(t,e){d+=" "+("pie"===n||"pie3D"===n||"donut"===n?t.text:t.value),d+=e===i.length-1?".":","})),d}var e=[s.resizer(function(t,e){u._width=t,u._height=e||400;e=u.getRootView();e&&e.node&&e.node.el&&(e=e.node.el.getBoundingClientRect(),u._left=e.left+window.pageXOffset,u._top=e.top+window.pageYOffset),u.events.fire(f.ChartEvents.resize,[u._width,u._height]),u.paint(),!document.querySelector(".dhx_widget.dhx_chart")&&u._tooltip&&u._tooltip.destructor()})];return u._width&&u._height&&e.push(u._layers.toVDOM(u._width,u._height)),s.el(".dhx_widget.dhx_chart",l(l({class:i.css||"",onmousemove:u._globalHTMLHandlers.onmousemove,onmouseleave:u._globalHTMLHandlers.onmouseleave},{"aria-label":t(i)}),{tabIndex:0}),e)},hooks:{didMount:function(t){t&&t.node&&t.node.parent&&t.node.parent.el&&(u._width=t.node.parent.el.offsetWidth,u._height=t.node.parent.el.offsetHeight||400,u.paint())}}});return u.mount(t,e),u}e.Chart=o},function(t,i,n){"use strict";(function(s){var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0});var c=n(10),d=n(9),t=(e.prototype.load=function(t,e){var i=this;if(!t.config||this._parent.events.fire(d.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then(function(t){return t?i.parse(t,e):[]}).catch(function(t){i._parent.events.fire(d.DataEvents.loadError,[t])})},e.prototype.parse=function(t,e){var n=this;if(void 0===e&&(e=d.DataDriver.json),"json"!==e||c.hasJsonOrArrayStructure(t)||this._parent.events.fire(d.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=c.toDataDriver(e)).toJsonArray(t))instanceof Array)){var i=t.total_count-1,o=t.from;if(t=t.data,0!==this._parent.getLength())return t.forEach(function(t,e){var i=o+e,e=n._parent.getId(i);e?(i=n._parent.getItem(e))&&i.$empty&&(n._parent.changeId(e,t.id,!0),n._parent.update(t.id,l(l({},t),{$empty:void 0}),!0)):c.dhxWarning("item not found")}),this._parent.events.fire(d.DataEvents.afterLazyLoad,[o,t.length]),this._parent.events.fire(d.DataEvents.change),t;for(var r=[],s=0,a=0;s<=i;s++)o<=s&&s<=o+t.length-1?(r.push(t[a]),a++):r.push({$empty:!0});t=r}return this._parent.getInitialData()&&this._parent.removeAll(),this._parent.$parse(t),t},e.prototype.save=function(o){for(var r=this,t=this._getUniqueOrder(),e=this,i=0,n=t;i<n.length;i++)!function(i){var n,t;i.saving||i.pending?c.dhxWarning("item is saving"):(n=e._findPrevState(i.id))&&n.saving?(t=new s(function(t,e){n.promise.then(function(){i.pending=!1,t(r._setPromise(i,o))}).catch(function(t){r._removeFromOrder(n),r._setPromise(i,o),c.dhxWarning(t),e(t)})}),e._addToChain(t),i.pending=!0):e._setPromise(i,o)}(n[i]);t.length&&this._parent.saveData.then(function(){r._saving=!1})},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(e,t){var i,n=this;switch(e.status){case"remove":i="delete";break;case"add":i="insert";break;default:i=e.status}return e.promise=t.save(e.obj,i),e.promise.then(function(){n._removeFromOrder(e)}).catch(function(t){e.saving=!1,e.error=!0,c.dhxError(t)}),e.saving=!0,this._saving=!0,this._addToChain(e.promise),e.promise},e.prototype._addToChain=function(t){this._parent.saveData&&this._saving?this._parent.saveData=this._parent.saveData.then(function(){return t}):this._parent.saveData=t},e.prototype._findPrevState=function(t){for(var e=0,i=this._changes.order;e<i.length;e++){var n=i[e];if(n.id===t)return n}return null},e.prototype._removeFromOrder=function(e){this._changes.order=this._changes.order.filter(function(t){return!c.isEqualObj(t,e)})},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce(function(t,e){var i=t.findIndex(function(t){return t.id===e.id}),n=-1<i?t[i]:null;return n&&!1===n.saving&&"add"===n.status?"remove"===e.status?t.splice(i,1):n.obj=e.obj:n&&!1===n.saving&&"update"===n.status?t.splice(i,1,e):t.push(e),t},[])},e);function e(t,e){this._parent=t,this._changes=e}i.Loader=t}).call(this,n(12))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(81);o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.toJsonObject=function(t){var e;return"string"==typeof t&&(e=this._fromString(t)),function t(e,i){i=i||{};var n=e.attributes;if(n&&n.length)for(var o=0;o<n.length;o++)i[n[o].name]=n[o].value;for(var r,s=e.childNodes,o=0;o<s.length;o++)1===s[o].nodeType&&(i[r=s[o].tagName]?("function"!=typeof i[r].push&&(i[r]=[i[r]]),i[r].push(t(s[o],{}))):i[r]=t(s[o],{}));return i}(e)},o.prototype.serialize=function(t){return n.jsonToXML(t)},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){if("string"==typeof t&&(t=this._fromString(t)),t){t=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes;return t&&t.length?this._getRows(t):null}return[]},o.prototype._getRows=function(t){for(var e=[],i=0;i<t.length;i++)"item"===t[i].tagName&&e.push(this._nodeToJS(t[i]));return e},o.prototype._fromString=function(t){try{return(new DOMParser).parseFromString(t,"text/xml")}catch(t){return null}},o.prototype._nodeToJS=function(t){var e={};if(this._haveAttrs(t))for(var i=t.attributes,n=0;n<i.length;n++){var o=i[n],r=o.name,o=o.value;e[r]=this._toType(o)}if(3===t.nodeType)return e.value=e.value||this._toType(t.textContent),e;var s=t.childNodes;if(s)for(n=0;n<s.length;n++){var a=s[n],l=a.tagName;l&&("items"===l&&a.childNodes?e[l]=this._getRows(a.childNodes):this._haveAttrs(a)?e[l]=this._nodeToJS(a):e[l]=this._toType(a.textContent))}return e},o.prototype._toType=function(t){return"false"===t||"true"===t?"true"===t:t},o.prototype._haveAttrs=function(t){return t.attributes&&t.attributes.length},i=o;function o(){}e.XMLDriver=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=4;function s(t){return" ".repeat(t)}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var i='<?xml version="1.0" encoding="iso-8859-1"?>\n<'+e+">",n=0;n<t.length;n++)i+="\n"+function e(t,i){void 0===i&&(i=r);var n,o=s(i)+"<item>\n";for(n in t)Array.isArray(t[n])?(o+=s(i+r)+"<"+n+">\n",o+=t[n].map(function(t){return e(t,i+2*r)}).join("\n")+"\n",o+=s(i+r)+"</"+n+">\n"):o+=s(i+r)+("<"+n+">"+t[n])+"</"+n+">\n";return o+=s(i)+"</item>"}(t[n]);return i+"\n</"+e+">"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(10),i=(n.prototype.sort=function(t,e,i){this._createSorter(e),i===e&&(e=null),(i||e)&&this._sort(t,i,e)},n.prototype._createSorter=function(i){var n=this;i&&!i.rule&&(i.rule=function(t,e){t=null!==(t=n._checkVal(i.as,t[i.by]))&&void 0!==t?t:"",e=null!==(e=n._checkVal(i.as,e[i.by]))&&void 0!==e?e:"";return o.naturalCompare(t.toString(),e.toString())})},n.prototype._checkVal=function(t,e){return t?t.call(this,e):e},n.prototype._sort=function(t,n,o){var r=this,s={asc:1,desc:-1};return t.sort(function(t,e){var i=0;return n&&(i=n.rule.call(r,t,e)*(s[n.dir]||s.asc)),0===i&&o&&(i=o.rule.call(r,t,e)*(s[o.dir]||s.asc)),i})},n);function n(){}e.Sort=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var d=i(1),s=i(35),a=i(13),u=i(10),h=i(9);function l(t,e,i,n){void 0!==n&&-1!==n&&t[i]&&t[i][n]?t[i].splice(n,0,e):(t[i]||(t[i]=[]),t[i].push(e))}var c,o=(c=s.DataCollection,o(f,c),f.prototype.add=function(t,i,n){var o=this;if(void 0===i&&(i=-1),void 0===n&&(n=this._root),this.events.fire(h.DataEvents.beforeAdd,[t]))return"object"!=typeof t&&(t={value:t}),t=Array.isArray(t)?t.map(function(t,e){return o._add(t,i,n,e)}):this._add(t,i,n),this._applySmart(),t},f.prototype.getRoot=function(){return this._root},f.prototype.getParent=function(t,e){if(void 0===e&&(e=!1),!this._pull[t])return null;t=this._pull[t].parent;return e?this._pull[t]:t},f.prototype.getItems=function(t){return this._childs&&this._childs[t]?this._childs[t]:[]},f.prototype.getLength=function(t){return void 0===t&&(t=this._root),this._childs[t]?this._childs[t].length:null},f.prototype.removeAll=function(t){if(t){if(this._childs[t])for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}}else{c.prototype.removeAll.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype.getIndex=function(e){var t=this.getParent(e);return t&&this._childs[t]?d.findIndex(this._childs[t],function(t){return t.id===e}):-1},f.prototype.sort=function(t){var e=this;if(t){for(var i in this._childs)this._sort.sort(this._childs[i],t);if(this._initChilds&&Object.keys(this._initChilds).length)for(var i in this._initChilds)this._sort.sort(this._initChilds[i],t)}else this._childs={},this._parse_data(Object.keys(this._pull).map(function(t){return e._pull[t]})),this._filters&&this.filter(this._filters.filters,this._filters.config);this.events.fire(h.DataEvents.change)},f.prototype.filter=function(t,e){var n=this;if(void 0===e&&(e={}),t&&e.add||(this.restoreOrder(),t)){if(this._initOrder||(this._initOrder=this._order),this._initChilds||(this._initChilds=this._childs),e.type=e.type||h.TreeFilterType.all,this._filters={filters:{},config:e},"function"!=typeof t)if(t.by)this._filters.filters[t.by]=t;else for(var i in t)this._filters.filters[i]=t[i];else this._filters.filters=t;var o={};this._recursiveFilter(this._filters.filters,e,this._root,0,o),e&&!e.smartFilter&&(this._filters=null),Object.keys(o).forEach(function(t){for(var e=n.getParent(t),i=n.getItem(t);e;)o[e]||(o[e]=[]),i&&!o[e].find(function(t){return t.id===i.id})&&o[e].push(i),i=n.getItem(e),e=n.getParent(e)}),this._childs=o,this.events.fire(h.DataEvents.change)}},f.prototype.restoreOrder=function(){this._initChilds&&(this._childs=this._initChilds,this._initChilds=null),this.events.fire(h.DataEvents.change)},f.prototype.copy=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},f.prototype.move=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o)},f.prototype.forEach=function(t,e,i){if(void 0===e&&(e=this._root),void 0===i&&(i=1/0),this.haveItems(e)&&!(i<1))for(var n=this._childs[e],o=0;o<n.length;o++)t.call(this,n[o],o,n),this.haveItems(n[o].id)&&this.forEach(t,n[o].id,--i)},f.prototype.eachChild=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=function(){return!0}),this.haveItems(t))for(var o=0;o<this._childs[t].length;o++)e.call(this,this._childs[t][o],o),i&&n(this._childs[t][o])&&this.eachChild(this._childs[t][o].id,e,i,n)},f.prototype.getNearId=function(t){return t},f.prototype.loadItems=function(e,i){var n=this;void 0===i&&(i=h.DataDriver.json);var t=this.config.autoload.toString(),t=t+(t.includes("?")?"&id="+e:"?id="+e);new a.DataProxy(t).load().then(function(t){t=(i=u.toDataDriver(i)).toJsonArray(t),n._parse_data(t,e),n.events.fire(h.DataEvents.change)})},f.prototype.refreshItems=function(t,e){void 0===e&&(e=h.DataDriver.json),this.removeAll(t),this.loadItems(t,e)},f.prototype.eachParent=function(t,e,i){void 0===i&&(i=!1);t=this.getItem(t);t&&(i&&e.call(this,t),t.parent!==this._root&&(i=this.getItem(t.parent),e.call(this,i),this.eachParent(t.parent,e)))},f.prototype.haveItems=function(t){return t in this._childs},f.prototype.canCopy=function(e,t){if(e===t)return!1;var i=!0;return this.eachParent(t,function(t){return t.id===e?i=!1:null}),i},f.prototype.serialize=function(t,e){void 0===t&&(t=h.DataDriver.json);e=this._serialize(this._root,e),t=u.toDataDriver(t);if(t)return t.serialize(e)},f.prototype.getId=function(t,e){if(void 0===e&&(e=this._root),this._childs[e]&&this._childs[e][t])return this._childs[e][t].id},f.prototype.map=function(t,e,i){void 0===e&&(e=this._root),void 0===i&&(i=!0);var n=[];if(!this.haveItems(e))return n;for(var o,r=0;r<this._childs[e].length;r++)n.push(t.call(this,this._childs[e][r],r,this._childs)),i&&(o=this.map(t,this._childs[e][r].id,i),n=n.concat(o));return n},f.prototype.getRawData=function(t,e,i,n,o){return o=o||this._root,this._childs[o]?(o=o===this._root?c.prototype.getRawData.call(this,t,e,this._childs[o]):this._childs[o],2===n?this.flatten(o):o):[]},f.prototype.flatten=function(t){var i=this,n=[];return t.forEach(function(t){n.push(t);var e=i._childs[t.id];e&&t.$opened&&(n=n.concat(i.flatten(e)))}),n},f.prototype._add=function(t,e,i,n){void 0===e&&(e=-1),void 0===i&&(i=this._root),t.parent=t.parent?t.parent.toString():i,0<n&&-1!==e&&(e+=1);e=c.prototype._add.call(this,t,e);if(Array.isArray(t.items))for(var o=0,r=t.items;o<r.length;o++){var s=r[o];this.add(s,-1,t.id)}return e},f.prototype._copy=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;var r=this._childs[t];if(o&&(e=-1===e?-1:e+o),i===this&&!this.canCopy(t,n))return null;o=u.copyWithoutInner(this.getItem(t),{items:!0});if(i.exists(t)&&(o.id=d.uid()),u.isTreeCollection(i)){if(this.exists(t)&&(o.parent=n,i!==this&&n===this._root&&(o.parent=i.getRoot()),i.add(o,e),t=o.id),r)for(var s=0,a=r;s<a.length;s++){var l=a[s].id,c=this.getIndex(l);"string"==typeof t&&this.copy(l,c,i,t)}return t}i.add(o,e)},f.prototype._move=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;if(o&&(e=-1===e?-1:e+o),i!==this){if(!u.isTreeCollection(i))return i.add(u.copyWithoutInner(this.getItem(t)),e),void this.remove(t);var r=this.copy(t,e,i,n);return this.remove(t),r}if(!this.canCopy(t,n))return null;i=this.getParent(t),r=this.getIndex(t),r=this._childs[i].splice(r,1)[0];return r.parent=n,this._childs[i].length||delete this._childs[i],this.haveItems(n)||(this._childs[n]=[]),-1===e?e=this._childs[n].push(r):this._childs[n].splice(e,0,r),this.events.fire(h.DataEvents.change,[t,"update",this.getItem(t)]),t},f.prototype._reset=function(t){if(t)for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}else{c.prototype._reset.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype._removeCore=function(e){var t;this._pull[e]&&(t=this.getParent(e),this._childs[t]=this._childs[t].filter(function(t){return t.id!==e}),t===this._root||this._childs[t].length||delete this._childs[t],this._initChilds&&this._initChilds[t]&&(this._initChilds[t]=this._initChilds[t].filter(function(t){return t.id!==e}),t===this._root||this._initChilds[t].length||delete this._initChilds[t]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e})),this._fastDeleteChilds(this._childs,e),this._initChilds&&this._fastDeleteChilds(this._initChilds,e))},f.prototype._addToOrder=function(t,e,i){var n=this._childs,o=this._initChilds,r=e.parent;(this._pull[e.id]=e).parent&&this._pull[e.parent]&&this._pull[e.parent].items&&!this._pull[e.parent].items.find(function(t){return t.id===e.id})&&this._pull[e.parent].items.push(e),c.prototype._addToOrder.call(this,t,e,i),l(n,e,r,i),o&&l(o,e,r,i)},f.prototype._parse_data=function(t,e){var i;void 0===e&&(e=this._root);for(var n=this._order.length,o=0,r=t;o<r.length;o++){var s=r[o];this.config.init&&(s=this.config.init(s)),s&&"object"!=typeof s&&(s={value:s}),s.id=null!==(i=s.id)&&void 0!==i?i:d.uid(),s.parent=void 0===s.parent||null===s.parent||s.parent&&s.$items?e:s.parent,this._pull[s.id]&&u.dhxError("Item "+s.id+" already exist"),this._pull[s.id]=s,this._order[n++]=s,this._childs[s.parent]||(this._childs[s.parent]=[]),this._childs[s.parent].push(s),s.items&&s.items instanceof Object&&this._parse_data(s.items,s.id)}},f.prototype._applySmart=function(){this._filters&&this.filter(this._filters.filters,this._filters.config)},f.prototype._fastDeleteChilds=function(t,e){if(this._pull[e]&&delete this._pull[e],t[e]){for(var i=0;i<t[e].length;i++)this._fastDeleteChilds(t,t[e][i].id);delete t[e]}},f.prototype._recursiveFilter=function(o,e,t,i,n){var r=this,s=this._childs[t];if(s){var a,l=function(t){switch(e.type){case h.TreeFilterType.all:return!0;case h.TreeFilterType.level:return i===e.level;case h.TreeFilterType.leafs:return!r.haveItems(t.id)}};a="function"==typeof o?function(t){return l(t)&&o(t)}:function(t){var e,i,n=!0;for(i in o)if(o[i].by&&""!==o[i].match&&(n=o[i].compare?o[i].compare(null===(e=t[o[i].by])||void 0===e?void 0:e.toString(),o[i].match,t):-1!==(null===(e=t[o[i].by])||void 0===e?void 0:e.toString().toLocaleLowerCase().indexOf(o[i].match.toString().toLowerCase()))),!n)break;return l(t)&&n},(a=s.filter(a)).length?n[t]=a:t===this._root&&(n[t]=[]);for(var c=0,d=s;c<d.length;c++){var u=d[c];this._recursiveFilter(o,e,u.id,i+1,n)}}},f.prototype._serialize=function(t,n){var o=this;return void 0===t&&(t=this._root),this.map(function(t){var e,i={};for(e in t)"parent"===e||"items"===e||e.startsWith("$")||(i[e]=t[e]);return n&&(i=n(i)),o.haveItems(t.id)&&(i.items=o._serialize(t.id,n)),i},t,!1)},f);function f(t,e){var i=c.call(this,t,e)||this;i._childs={};e=i._root=t&&t.rootId||"_ROOT_"+d.uid();return i._childs=((t={})[e]=[],t),i._initChilds=null,i}e.TreeCollection=o},function(t,e,i){"use strict";var v=this&&this.__assign||function(){return(v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var h=i(2),m=i(39),f=i(121),p=i(9),y=i(10),x=i(1);var n=(o.prototype.setItem=function(t,e){f.collectionStore.setItem(t,e)},o.prototype.onMouseDown=function(t,e,i){var n,o,r,s;1!==t.which&&!t.targetTouches||(t.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp)),o=(n=h.locateNode(t,"data-dhx-id"))&&n.getAttribute("data-dhx-id"),r=h.locate(t,"data-dhx-widget-id"),Array.isArray(e)&&e.includes(o)?(this._transferData.source=a(e),this._itemsForGhost=i):(this._transferData.source=[o],this._itemsForGhost=null),o&&r&&(e=(s=h.getBox(n)).left,i=s.top,s=(t.targetTouches?t.targetTouches[0]:t).pageX,t=(t.targetTouches?t.targetTouches[0]:t).pageY,this._transferData.initXOffset=s-e,this._transferData.initYOffset=t-i,this._transferData.x=s,this._transferData.y=t,this._transferData.componentId=r,this._transferData.start=o,this._transferData.item=n))},o.prototype.isDrag=function(){return this._isDrag},o.prototype.cancelCanDrop=function(t){this._canMove=!1,this._isDrag=!1;var e=this._transferData,i=e.start,n=e.source,o=e.target,e=e.dropComponentId,n={start:i,source:n,target:o},e=f.collectionStore.getItem(e);e&&o&&e.events.fire(p.DragEvents.cancelDrop,[n,t]),this._transferData.dropComponentId=null,this._transferData.target=null},o.prototype._moveGhost=function(t,e){this._transferData.ghost&&(this._transferData.ghost.style.left=t-this._transferData.initXOffset+"px",this._transferData.ghost.style.top=e-this._transferData.initYOffset+"px")},o.prototype._removeGhost=function(){document.body.removeChild(this._transferData.ghost)},o.prototype._onDrop=function(t){var e,i,n,o,r;this._canMove&&(r=(o=this._transferData).start,i=o.source,e=o.target,n=o.dropComponentId,i={start:r,source:i,target:e,dropPosition:o.dropPosition},n=(o=f.collectionStore.getItem(n))&&o.config,o&&"source"!==n.dragMode&&o.events.fire(p.DragEvents.beforeDrop,[i,t])&&(o={id:e,component:o},r={id:r,component:this._transferData.component,newId:null},this._move(r,o),r.newId&&r.component!==o.component&&(i.start=r.newId),o.component.events.fire(p.DragEvents.afterDrop,[i,t]))),this._endDrop(t)},o.prototype._onDragStart=function(t,e,i){var n=f.collectionStore.getItem(e),o=n.config,r=this._transferData,e={start:r.start,source:r.source,target:r.target};if("target"===o.dragMode||n._pregroupData)return null;r=function(t,e,i){void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=document.createElement("div"),r=t.cloneNode(!0);return r.style.width=n.width+"px",r.style.height=n.height+"px",r.style.maxHeight=n.height+"px",r.style.fontSize=window.getComputedStyle(t.parentElement).fontSize,r.style.opacity="0.8",r.style.fontSize=window.getComputedStyle(t.parentElement).fontSize,i&&e&&e.length||o.appendChild(r),e&&e.length&&e.forEach(function(t,e){t=t.cloneNode(!0);t.style.width=n.width+"px",t.style.height=n.height+"px",t.style.maxHeight=n.height+"px",t.style.top=12*(e+1)-n.height-n.height*e+"px",t.style.left=12*(e+1)+"px",t.style.opacity="0.6",t.style.zIndex=""+(-e-1),o.appendChild(t)}),o.className="dhx_drag-ghost",o}(this._transferData.item,this._itemsForGhost,"column"===o.dragItem||"both"===o.dragItem);return n.events.fire(p.DragEvents.beforeDrag,[e,i,r])&&t?(n.events.fire(p.DragEvents.dragStart,[e,i]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.component=n,this._transferData.dragConfig=o,r):null},o.prototype._onDrag=function(t){var e=(t.targetTouches?t.targetTouches[0]:t).clientX,i=(t.targetTouches?t.targetTouches[0]:t).clientY,n=document.elementFromPoint(e,i),o=h.locate(n,"data-dhx-widget-id");if(o){var r=f.collectionStore.getItem(o),s=!!h.locateNodeByClassName(n,"dhx_grid-header")||!!h.locateNodeByClassName(n,"dhx_grid-footer"),a=r&&r.config.columns?r.config:void 0,l=a&&("both"===a.dragItem||"column"===a.dragItem);if(!s||l){var c=h.locate(n,"data-dhx-id"),d=h.locate(n,"data-dhx-root-id");if(!c&&!d)return this.cancelCanDrop(t),this._transferData.dropComponentId=o,this._transferData.target=null,void this._canDrop(t);var u=this._transferData,e=u.dropComponentId,i=u.start,a=u.source,s=u.target,l=u.componentId,n=u.dropPosition;if("complex"===r.config.dropBehaviour){u=function(t){var e=t.clientY;if(!(t=h.locateNode(t)))return null;if(t=t.childNodes[0]){t=t.getBoundingClientRect();return(e-t.top)/t.height}}(t);this._transferData.dropPosition=u<=.25?"top":.75<=u?"bottom":"in"}else if((s===c||!c&&s===d)&&e===o)return;e={id:i,component:this._transferData.component};"source"!==r.config.dragMode&&(e.component.events.fire(p.DragEvents.dragOut,[{start:i,source:a,target:s},t]),o!==l||!y.isTreeCollection(e.component.data)||y.isTreeCollection(e.component.data)&&e.component.data.canCopy(e.id,c)?(this.cancelCanDrop(t),this._transferData.target=c||d,this._transferData.dropComponentId=o,e.component.events.fire(p.DragEvents.dragIn,[{start:i,source:a,target:s,dropPosition:n},t])&&this._canDrop(t)):this.cancelCanDrop(t))}else this._canMove&&this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)},o.prototype._move=function(i,e){var n=i.component.data,o=e.component.data,r=0,s=e.id,t=y.isTreeCollection(o)?e.component.config.dropBehaviour:void 0,a=i.component.config.columns?i.component.config:void 0,a=a&&("both"===a.dragItem||"column"===a.dragItem)&&a.columns.map(function(t){return t.id}).filter(function(t){return t===i.id||t===e.id}).length;if(a&&i.component===e.component){if(i.id===e.id)return;var l=(c=(d=i.component).config.columns.map(function(t){return v({},t)})).findIndex(function(t){return t.id===i.id});return-1===(h=c.findIndex(function(t){return t.id===e.id}))?void 0:(c.splice(h,0,c.splice(l,1)[0]),d.setColumns(c),void d.paint())}if(a&&i.component instanceof m.ProGrid&&e.component instanceof m.ProGrid){var c,d=i.component,u=e.component,l=(c=d.config.columns.map(function(t){return v({},t)})).findIndex(function(t){return t.id===i.id}),a=u.config.columns.map(function(t){return v({},t)}),h=a.findIndex(function(t){return t.id===e.id}),f=0<=a.findIndex(function(t){return t.id===i.id})?i.id+"_copy":i.id,p=[];d.data.forEach(function(t){var e;p.push(((e={})[f]=t[i.id],e))}),u.data.forEach(function(t,e){u.data.update(t.id,v(v({},t),p[e]))});l=c.splice(l,1)[0];return l.id=f,a.splice(h,0,l),u.setColumns(a),u.paint(),d.setColumns(c),void d.paint()}var g=e.id===e.component.config.rootParent;switch(t){case"child":break;case"sibling":s=o.getParent(s),r=o.getIndex(e.id)+1;break;case"complex":var _=this._transferData.dropPosition;g?(s=e.id,r=o.getLength()):"top"===_?(s=o.getParent(s),r=o.getIndex(e.id)):"bottom"===_&&(s=o.getParent(s),r=o.getIndex(e.id)+1);break;default:r=e.id?i.component===e.component&&o.getIndex(i.id)<o.getIndex(e.id)?o.getIndex(e.id)-1:(-1<o.getIndex(i.id)&&(i.newId=x.uid()),o.getIndex(e.id)):-1}this._transferData.dragConfig.dragCopy?this._transferData.source instanceof Array&&1<this._transferData.source.length?this._transferData.source.map(function(t){n.copy(t,r,o,s),-1<r&&r++}):n.copy(i.id,r,o,s):this._transferData.source instanceof Array&&1<this._transferData.source.length?this._transferData.source.map(function(t){n.move(t,r,o,s),-1<r&&r++}):n.move(i.id,r,o,s,i.newId)},o.prototype._endDrop=function(t){var e;this._toggleTextSelection(!1),this._transferData.component&&(e={start:(e=this._transferData).start,source:e.source,target:e.target},this._transferData.component.events.fire(p.DragEvents.afterDrag,[e,t])),this.cancelCanDrop(t),this._canMove=!0,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null},o.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,i={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},e=f.collectionStore.getItem(this._transferData.dropComponentId);e&&this._transferData.target&&e.events.fire(p.DragEvents.canDrop,[i,t])},o.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},o);function o(){var a=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._onMouseMove=function(t){if(a._transferData.start){var e=(t.targetTouches?t.targetTouches[0]:t).pageX,i=(t.targetTouches?t.targetTouches[0]:t).pageY,n=a._transferData,o=n.x,r=n.y,s=n.start,n=n.componentId;if(!a._transferData.ghost){if(Math.abs(o-e)<3&&Math.abs(r-i)<3)return;n=a._onDragStart(s,n,t);if(!n)return void a._endDrop(t);a._transferData.ghost=n,document.body.appendChild(a._transferData.ghost)}a._moveGhost(e,i),a._onDrag(t)}},this._onMouseUp=function(t){a._transferData.x&&(a._transferData.ghost?(a._removeGhost(),a._onDrop(t)):a._endDrop(t),t.targetTouches?(document.removeEventListener("touchmove",a._onMouseMove),document.removeEventListener("touchend",a._onMouseUp)):(document.removeEventListener("mousemove",a._onMouseMove),document.removeEventListener("mouseup",a._onMouseUp)))}}i=window.dhxHelpers=window.dhxHelpers||{};i.dragManager=i.dragManager||new n,e.dragManager=i.dragManager},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var v=i(8),l=i(6),o=i(1),m=i(14);r.prototype.xlsx=function(t){return this._export(t)},r.prototype.csv=function(t){var e;void 0===t&&(t={}),t=n({asFile:!0,rowDelimiter:"\n",columnDelimiter:",",skipHeader:0},t),e="getRoot"in this._view.data&&t.flat?this.getFlatCSV(t):this._getCSV(t);var i=t.name||"grid_export";return t.asFile&&o.downloadFile(e,i+".csv","text/csv"),e},r.prototype._export=function(t){void 0===t&&(t={});for(var c=this._view.config.columns.filter(function(t){return!t.hidden}),d={},e=v.transpose(c.map(function(t){return t.header.map(function(t){return t.text||" "})})),u=[],h={default:{color:"#000000",background:"#FFFFFF",fontSize:14}},f=[],o={},i=this._view.data.serialize().map(function(n,t){return d[n.id]=t,c.map(function(t,e){var i;return o[t.id]=e,n[t.id]instanceof Date&&(i=t.format||"%M %d %Y","string"==typeof n[t.id]?n[t.id]=m.getFormattedDate(i,m.stringToDate(n[t.id],i)):"object"==typeof n[t.id]&&(n[t.id]=m.getFormattedDate(i,n[t.id]))),n[t.id]||e||!n.$groupName?v.removeHTMLTags(n[t.id]):"^ "+n.$groupName})}),p=[],g=this._view.content,_=this,n=0,r=c;n<r.length;n++)!function(t){var n,e,o,i,r;for(r in t.footer&&(n=t.id,i=e=_._view.data.serialize().reduce(function(t,e){return void 0===e[n]||""===e[n]||isNaN(e[n])||t.push(parseFloat(e[n])),t},[]),"tree"===_._view.config.type&&(i=(o=_._view.data).serialize().reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[n]||""===e[n]||isNaN(e[n])?(i=0,o.eachChild(e.id,function(t){o.haveItems(t.id)||(i+=parseFloat(t[n]))}),t.push(i)):t.push(parseFloat(e[n])||0)),t},[])),t.footer[0].content?(i=g[t.footer[0].content].calculate(e,i),p.push(i)):p.push(t.footer[0].css||t.footer[0].text||" ")),u.push({width:t.width}),t.$cellCss){var s,a=t.$cellCss[r],l=a.split("").reduce(function(t,e){e=(t<<5)-t+e.charCodeAt(0);return Math.abs(e&e)},0).toString();h[l]||(s=document.body,(s=v.getStyleByClass(a,s,"dhx_grid-row",h.default))&&(h[l]=s)),h[l]&&f.push([d[r],c.indexOf(t),l])}}(r[n]);p.length&&i.push(p);var s,i={name:t.name||"data",columns:u,header:e,data:i,styles:{cells:f,css:h}};return t.url&&((s=document.createElement("form")).setAttribute("target","_blank"),s.setAttribute("action",t.url),s.setAttribute("method","POST"),s.style.visibility="hidden",(t=document.createElement("textarea")).setAttribute("name","data"),t.value=JSON.stringify(i),s.appendChild(t),document.body.appendChild(s),s.submit(),setTimeout(function(){s.parentNode.removeChild(s)},100)),i},r.prototype.getFlatCSV=function(o){var e=this._view.data,t=e.getRoot(),r=this._view.config.columns[0],s=e.getMaxLevel(),i="";e.eachChild(t,function(n){var t=function(t,e){for(var i,n=[],o=0;o<=s;o++)t&&t[r.id]?(n[t.$level]=t[r.id],t=(i=e.getParent(t.id,!0))&&i.id?i:null):n[o]="";return n}(n,e).join(o.columnDelimiter);i+=t+Object.keys(n).reduce(function(t,e,i){return"id"===e||"parent"===e||e.startsWith("$")||0===i?t:t+o.columnDelimiter+(null===n[e]?"":n[e])},""),i+=o.rowDelimiter});var t=this._export(o),n=function(t,e){for(var i=0;i<t.length;i++)t[i]=e;return t}(new Array(s+1),""),t=t.header.map(function(t){return t.splice.apply(t,a([0,1],n)),t});return new l.CsvDriver(o).serialize(t,!0)+o.rowDelimiter+i},r.prototype._getCSV=function(t){var e=this._export(t),i=e.header,t=new l.CsvDriver(t);return t.serialize(i,!0)+"\n"+t.serialize(e.data,!0)},i=r;function r(t){this._view=t}e.Exporter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var C=i(0),E=i(1),o=i(6),r=i(5),h=i(4),f=i(18),i=(n.prototype.setCell=function(e,i,t,n){var o,r,s,a,l,c,d,u=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this._gridId&&f.focusManager.getFocusId()!==this._gridId&&f.focusManager.setFocusId(this._gridId),this.config.disabled||this._grid.config.$editable||!this._multiselection&&this._oldSelectedCell&&this._oldSelectedCell.row.id===(e&&e.id||e)&&this._oldSelectedCell.column.id===(i&&i.id||i)||this._multiselection&&1===this._selectedCells.length&&this._selectedCells[0].row.id===(e&&e.id||e)&&this._selectedCells[0].column.id===(i&&i.id||i)||((!this._multiselection||t||n)&&this._multiselection||this._selectedCells.length&&this._removeCells(),this._multiselection&&"cell"===this._type&&this._selectedCells.find(function(t){return t.row.id===(e&&e.id||e)&&t.column.id===(i&&i.id||i)})?this.removeCell(e&&e.id||e,i&&i.id||i):(l=this._oldSelectedCell||void 0,e=this._grid.data.getItem(e&&e.id||e),o=this._grid.config.columns.filter(function(t){return!t.hidden}),i=i||o[0],(i=this._grid.getColumn(i.id||i))&&e&&(i=i.id?i:this._grid.getColumn(i),this.events.fire(h.GridSelectionEvents.beforeSelect,[e,i])&&(this._selectedCell={row:e,column:i},this.events.fire(h.GridSelectionEvents.afterSelect,[e,i]),this._multiselection&&n&&l?this._oldSelectedCell=l:this._oldSelectedCell=this._selectedCell,this._multiselection?n&&!t&&0<this._selectedCells.length?(r=this._grid.data.getIndex(this._oldSelectedCell.row.id),(s=this._grid.data.getIndex(e.id))<r&&(a=r,r=s,s=a),this._selectedCells=[this._oldSelectedCell],"cell"===this._type?(l=(c=o.map(function(t){return t.id})).indexOf(l.column.id),c=c.indexOf(i.id),-1!==l&&-1!==c&&(c<l&&(a=l,l=c,c=a),d=o.slice(l,c+1),this._grid.data.mapRange(r,s,function(e){d.forEach(function(t){t={row:e,column:t};-1===u._findIndex(t)&&u._selectedCells.push(t)})}))):this._grid.data.mapRange(r,s,function(t){t={row:t,column:i};-1===u._findIndex(t)&&u._selectedCells.push(t)})):t&&!n?-1===(n=this._findIndex())?this._selectedCells.push({row:this._selectedCell.row,column:this._selectedCell.column}):1<this._selectedCells.length&&this._selectedCells.splice(n,1):this._selectedCells=[this._selectedCell]:this._selectedCells=[this._selectedCell],C.awaitRedraw().then(function(){u._grid.paint(),u._setBrowserFocus()})))))},n.prototype.getCell=function(){return this._selectedCell},n.prototype.getCells=function(){return this._selectedCells},n.prototype.toHTML=function(){var n=this;if(!this._isUnselected()){if(this._multiselection){var o=[];return this._selectedCells.forEach(function(t,e,i){o.push(n._toHTML(t.row,t.column,e===i.length-1||"cell"===n._type))}),o}return this._toHTML(this._selectedCell.row,this._selectedCell.column,!0)}},n.prototype.disable=function(){this.removeCell(),this.config.disabled=!0,this._grid.paint()},n.prototype.enable=function(){this.config.disabled=!1,this._grid.paint()},n.prototype.removeCell=function(i,n){var t,o=this;i&&n&&"cell"===this._type?(t=this._selectedCells.find(function(t){var e=t.row,t=t.column;return e.id==i&&t.id==n}))&&this._removeCell(t.row,t.column):i?this._selectedCells.filter(function(t){return t.row.id==i}).forEach(function(t){var e=t.row,t=t.column;o._removeCell(e,t)}):this._removeCells(),C.awaitRedraw().then(function(){o._grid.paint()})},n.prototype._removeCell=function(e,i){var t;e&&i&&e.id&&i.id&&this.events.fire(h.GridSelectionEvents.beforeUnSelect,[e,i])&&(t=this._selectedCells.findIndex(function(t){return t.row.id===e.id&&t.column.id===i.id}),this._selectedCells.splice(t,1),this._selectedCell&&i.id===this._selectedCell.column.id&&e.id===this._selectedCell.row.id&&(this._selectedCell=this._selectedCells[this._selectedCells.length-1]||void 0),this._oldSelectedCell&&this._oldSelectedCell.row.id===e.id&&this._oldSelectedCell.column.id===i.id&&(this._oldSelectedCell=void 0),this.events.fire(h.GridSelectionEvents.afterUnSelect,[e,i]))},n.prototype._removeCells=function(){var e=this;this._selectedCells.forEach(function(t){e._removeCell(t&&t.row,t&&t.column)}),this._selectedCells.length&&this._removeCells()},n.prototype._init=function(){var n=this;this._grid.events.on(h.GridEvents.cellClick,function(t,e,i){n.setCell(t,e,i.ctrlKey||i.metaKey,i.shiftKey)}),this._grid.data.events.on(o.DataEvents.beforeRemove,function(t){var e;t&&n._selectedCell&&n._selectedCell.row&&(e=n._grid.data.getIndex(String(n._selectedCell.row.id)),(t=n._grid.data.getId(e+1))?n.setCell(t):(e=n._grid.data.getId(e-1))&&n.setCell(e),n._grid.paint())})},n.prototype._toHTML=function(e,t,i){void 0===i&&(i=!1);var n=this._grid.data.getRawData(0,-1,null,2);if(-1===E.findIndex(n,function(t){return t.id==e.id}))return null;var o=this._grid.config.leftSplit,r=this._grid.config.topSplit,s=this._grid.config.columns.filter(function(t){return!t.hidden}),a=o?s.slice(0,o):[],l=this._grid.config.topSplit?this._grid.data.getRawData(0,this._grid.config.topSplit):[],c=a.map(function(t){return t.id}),d=l.map(function(t){return t.id}),u=a.reduce(function(t,e){return t+e.$width},0),h=l.reduce(function(t,e){return t+e.$height},0),f=this._grid.getCellRect(e.id,t.id),p=this._grid.getScrollState(),g=f.y,_=d.includes(e.id),v=c.includes(t.id),m=a.length&&u>f.x-p.x,y=l.length&&h>f.y-p.y,x=f.width,b=f.height-1,w=null,n=null,s=m?u+p.x:f.x;m&&(x-=(v?0:u)-(f.x-p.x)),y&&(b-=(_?0:h)-(f.y-p.y)-1,g+=f.height-b),_&&(g=f.y+p.y,null!==(h=this._grid.getSpan(e.id,t.id))&&void 0!==h&&h.rowspan?w=l.splice(this._grid.data.getIndex(e.id)).reduce(function(t,e){return t+e.$height},0):b=r===d.indexOf(e.id)+1?f.height-1:f.height),v&&(s=f.x+p.x,null!==(d=this._grid.getSpan(e.id,t.id))&&void 0!==d&&d.colspan?n=a.splice(null===(d=this._grid.config.columns)||void 0===d?void 0:d.indexOf(t)).reduce(function(t,e){return t+e.$width},0):x=o===c.indexOf(t.id)+1?f.width-1:f.width);t=this._grid.config.$totalWidth,f=null;"row"!==this._type&&"complex"!==this._type||(f=C.el(".dhx_grid-selected-row",{style:{width:a.length?t-p.x:t,height:b,minHeight:w,minWidth:n,display:b<0&&!w?"none":"flex",top:g,left:a.length?p.x:0,position:"absolute"}}));p=null;return"cell"!==this._type&&"complex"!==this._type||!i||(p=C.el(".dhx_grid-selected-cell",{style:{width:x,height:b,top:g,minHeight:w,minWidth:n,left:s,position:"absolute",display:x<0&&!n||b<0&&!w?"none":"flex",borderLeft:m&&!v?"none":null,borderTop:y&&!_?"none":null}})),C.el(".dhx_grid-selection",{style:{zIndex:20}},[f,p])},n.prototype._isUnselected=function(){return!this._selectedCell||!this._selectedCell.row||!this._selectedCell.column||0===this._selectedCells.length},n.prototype._findIndex=function(i){var n=this;void 0===i&&(i=this._selectedCell);var o=-1;return this._selectedCells.some(function(t,e){if("cell"===n._type){if(E.compare(t.row,i.row)&&E.compare(t.column,i.column))return o=e,!0}else if("row"===n._type&&E.compare(t.row,i.row))return o=e,!0}),o},n.prototype._setBrowserFocus=function(){var t,e,i=this._grid.getRootView().data.getRootNode();!i||(t=i.querySelector(".dhx_grid_data"))&&this._selectedCell&&this._selectedCell.row&&this._selectedCell.column&&(e=t.querySelector('[data-dhx-id="'+this._selectedCell.row.id+'"]'),t=this._grid.getSpan(this._selectedCell.row.id,this._selectedCell.column.id),!e||(e=(i=t?i.querySelector(".dhx_span-spans"):null)?i.querySelector('[data-dhx-col-id="'+t.column+'"][data-dhx-id="'+t.row+'"]'):e.querySelector('[data-dhx-col-id="'+this._selectedCell.column.id+'"]'))&&(e.tabIndex=0,e.focus({preventScroll:!0})))},n);function n(t,e,i,n){this._grid=t,this.config=e,this._gridId=n,this._selectedCell=void 0,this._oldSelectedCell=void 0,this._selectedCells=[],this._type=["cell","row","complex"].includes(this._grid.config.selection)?this._grid.config.selection:"complex",this._multiselection=t.config.multiselection&&"complex"!==this._type,this.events=i||new r.EventSystem(this),this._init()}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=i(4),s=i(88),a=i(89),l=i(90),c=i(104),d=i(105),u=i(112),h={cell:{row:null,col:null},editor:null,gridId:null};e.getEditor=function(t,e,i){var n="boolean"===e.type?"checkbox":i.$editable.editorType;if(void 0===n&&(n=i.autoHeight?"textarea":"input"),h.cell.row===t.id&&h.cell.col===e.id&&h.gridId===i.gridId&&i.$editable.editor)return h.editor;switch("checkbox"!==n&&(h={cell:{row:t.id,col:e.id},editor:h.editor,gridId:i.gridId}),o||(o=function(){h={cell:{row:null,col:null},editor:null,gridId:null}},i.events.on(r.GridEvents.afterEditEnd,o)),n){case"input":return h.editor=new s.InputEditor(t,e,i);case"textarea":return h.editor=new u.TextAreaEditor(t,e,i);case"select":return h.editor=new a.SelectEditor(t,e,i);case"datePicker":return h.editor=new l.DateEditor(t,e,i);case"checkbox":return new c.CheckboxEditor(t,e,i);case"multiselect":case"combobox":return h.editor=new d.ComboboxEditor(t,e,i);default:return h.editor=new s.InputEditor(t,e,i)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(4),r=i(1),i=(s.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),"string"!==this._cell.col.type&&r.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},s.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];return this._input&&(t=this._input.value),this._config.$editable.editor=this,n.el("input.dhx_cell-editor.dhx_cell-editor__input",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:t})},s.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},didInsert:function(t){t=t.el;(e._input=t).focus(),t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(4),i=(r.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("keydown",this._handlers.onkeydown),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},r.prototype.toHTML=function(){var t=this._cell.col.options.map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[],e=this._cell.row[this._cell.col.id];this._input&&(e=this._input.options[this._input.selectedIndex].value);t=t.map(function(t){return n.el("option",{selected:t.id.toString()===e.toString(),value:t.id},t.value)});return this._config.$editable.editor=this,n.el("select.dhx_cell-editor.dhx_cell-editor__select",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor"},t)},r.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onkeydown:function(t){"Escape"===t.key&&e.endEdit()},didInsert:function(t){t=t.el;(e._input=t).focus(),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onkeydown)}}},r);function r(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.SelectEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),s=i(4),o=i(91),a=i(14),l=i(28),i=(n.prototype.endEdit=function(t,e){var i=this;if(this._handlers){var n=this._calendar.config.dateFormat,o=this._cell.row[this._cell.col.id];if(!t){if(o instanceof Date||e)return this._value=this._calendar.getValue(),this._input.value=this._value,void this._popup.hide();a.stringToDate(this._input.value,n,!0)&&(o&&this._input.value.length===o.length||!o)&&(this._value=this._input.value)}this._config.events.fire(s.GridEvents.beforeEditEnd,[this._value,this._cell.row,this._cell.col])?(this._input.removeEventListener("focus",this._handlers.onFocus),this._input.removeEventListener("change",this._handlers.onChange),document.removeEventListener("mousedown",this._handlers.onOuterClick),r.awaitRedraw().then(function(){i._popup.destructor(),i._calendar.destructor()}),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(s.GridEvents.afterEditEnd,[this._value,this._cell.row,this._cell.col])):this._input.focus()}},n.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];return this._config.$editable.editor=this,document.addEventListener("mousedown",this._handlers.onOuterClick),r.el("input.dhx_cell-editor.dhx_cell-editor__input.dhx_cell-editor__datepicker",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:t})},n.prototype._initHandlers=function(){var i=this;this._handlers={onFocus:function(){r.awaitRedraw().then(function(){i._popup.show(i._input,{centering:!0,mode:"bottom"})})},onChange:function(){i.endEdit()},onOuterClick:function(t){var e;t.target instanceof Node&&(e=i._input&&i._input.contains(t.target),t=i._popup&&i._popup.getRootNode()&&i._popup.getRootNode().contains(t.target),e||t||i._popup.hide())},didInsert:function(t){t=t.el;i._input=t,i._input.addEventListener("focus",i._handlers.onFocus),i._input.addEventListener("change",i._handlers.onChange),t.focus(),t.setSelectionRange(t.value.length,t.value.length)}}},n);function n(t,e,i){var n=this;this._config=i,this._cell={row:t,col:e},this._calendar=new o.Calendar(null,{dateFormat:e.format});t=this._cell.row[this._cell.col.id],e=this._calendar.config.dateFormat;(a.stringToDate(t,e,!0)||t instanceof Date)&&(this._calendar.setValue(t),this._value=this._calendar.getValue(),this._cell.row[this._cell.col.id]=this._value),this._popup=new l.Popup,this._popup.attach(this._calendar),this._calendar.events.on(o.CalendarEvents.change,function(){n.endEdit(!1,!0)}),this._popup.events.on(l.PopupEvents.afterHide,function(){n.endEdit()}),this._initHandlers()}e.DateEditor=i},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(92)),n(e(47))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),b=i(0),a=i(5),l=i(7),c=i(93),d=i(103),w=i(14),u=i(47),h=i(2),o=(r=l.View,o(f,r),f.prototype.setValue=function(t){if(!t||t instanceof Array&&0===t.length)return!1;this._selected=[];var e=t instanceof Array?t[0]:t,i=w.DateHelper.toDateObject(e,this.config.dateFormat),e=w.DateHelper.copy(this._getSelected());return!!this.events.fire(u.CalendarEvents.beforeChange,[i,e,!1])&&(this._setSelected(t),this._timepicker&&(this._timepicker.setValue(i),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(u.CalendarEvents.change,[i,e,!1]),this.paint(),!0)},f.prototype.getValue=function(t){var e=this;return void 0===t&&(t=!1),this._selected[0]?this.config.range?t?this._selected.map(function(t){return w.DateHelper.copy(t)}):this._selected.map(function(t){return w.getFormattedDate(e.config.dateFormat,t)}):t?w.DateHelper.copy(this._selected[0]):w.getFormattedDate(this.config.dateFormat,this._selected[0]):""},f.prototype.getCurrentMode=function(){return this._currentViewMode},f.prototype.showDate=function(t,e){t&&(this._currentDate=w.DateHelper.copy(t)),e&&(this._currentViewMode=e),this.paint()},f.prototype.destructor=function(){this._linkedCalendar&&this._unlink(),this._timepicker&&this._timepicker.destructor(),this.events&&this.events.clear(),this.config=this.events=null,this._uid=this._selected=this._currentDate=this._currentViewMode=this._handlers=this._timepicker=this._time=null,this.unmount()},f.prototype.clear=function(){var t=this.getValue(!0);this.config.timePicker&&(this._timepicker.clear(),this._time=this._timepicker.getValue()),this._selected=[],this.showDate(null,this.config.mode),this.events.fire(u.CalendarEvents.change,[this.getValue(!0),t,!1])},f.prototype.link=function(t){var e=this;this._linkedCalendar&&this._unlink(),this._linkedCalendar=t;var i=this.getValue(!0),n=t.getValue(!0),o=i&&w.DateHelper.dayStart(i),r=n&&w.DateHelper.dayStart(n);this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(o&&r)return o<=t&&t<=r&&function(t){if(w.DateHelper.isSameDay(r,o))return null;var e="dhx_calendar-day--in-range";return w.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--first-date"),w.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--last-date"),e}(t)}),this.config.disabledDates&&this._linkedCalendar.config.disabledDates||(this.config.disabledDates=function(t){if(r)return r<t},this._linkedCalendar.config.disabledDates=function(t){if(o)return t<o}),this.config.thisMonthOnly=!0,t.config.thisMonthOnly=!0,this.events.on(u.CalendarEvents.change,function(t){o=w.DateHelper.dayStart(t),e._linkedCalendar.paint()},"link"),this._linkedCalendar.events.on(u.CalendarEvents.change,function(t){r=w.DateHelper.dayStart(t),e.paint()},"link"),this._linkedCalendar.paint(),this.paint()},f.prototype._unlink=function(){this._linkedCalendar&&(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=null,this.config.disabledDates=this._linkedCalendar.config.disabledDates=null,this.events.detach(u.CalendarEvents.change,"link"),this._linkedCalendar.events.detach(u.CalendarEvents.change,"link"),this._linkedCalendar.paint(),this._linkedCalendar=null)},f.prototype._setSelected=function(t){var i,n=this,e=t instanceof Array?t[0]:t,e=w.DateHelper.toDateObject(e,this.config.dateFormat);t instanceof Array&&this.config.range?(i=[],t.forEach(function(t,e){e<2&&i.push(w.DateHelper.toDateObject(t,n.config.dateFormat))}),2===i.length&&i[0]<i[1]?i.forEach(function(t){return n._selected.push(t)}):this._selected[0]=i[0]):this._selected[0]=e},f.prototype._getSelected=function(){return this._selected[this._selected.length-1]},f.prototype._draw=function(){switch(this._currentViewMode){case"calendar":return this.events.fire(u.CalendarEvents.modeChange,["calendar"]),this._drawCalendar();case"month":return this.events.fire(u.CalendarEvents.modeChange,["month"]),this._drawMonthSelector();case"year":return this.events.fire(u.CalendarEvents.modeChange,["year"]),this._drawYearSelector();case"timepicker":return this.events.fire(u.CalendarEvents.modeChange,["timepicker"]),this._drawTimepicker()}},f.prototype._initHandlers=function(){function n(t){void 0===t&&(t=!1);var e=0;switch(o._currentViewMode){case"calendar":e=t?-7:7;break;case"month":e=t?-4:4;break;case"year":e=t?-4:4}return e}var o=this,r={Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Left:"ArrowLeft",Esc:"Escape",Spacebar:"Space"};this._handlers={onkeydown:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){switch(48<=(i=t).which&&i.which<=57||65<=i.which&&i.which<=90?String.fromCharCode(i.which):(i=32===i.which?i.code:i.key,h.isIE()&&r[i]||i)){case"Enter":o._selectDate(t,e);break;case"ArrowLeft":o._moveBrowseFocus(t,e,-1);break;case"ArrowRight":o._moveBrowseFocus(t,e,1);break;case"ArrowUp":o._moveBrowseFocus(t,e,n(!0));break;case"ArrowDown":o._moveBrowseFocus(t,e,n())}var i}},onclick:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){o._selectDate(t,e)},".dhx_calendar-action__cancel":function(){o.showDate(o._getSelected(),"calendar"),o.events.fire(u.CalendarEvents.cancelClick,[])},".dhx_calendar-action__show-month":function(){return o.showDate(null,"month")},".dhx_calendar-action__show-year":function(){return o.showDate(null,"year")},".dhx_calendar-action__next":function(){var t;switch(o._currentViewMode){case"calendar":t=w.DateHelper.addMonth(o._currentDate,1);break;case"month":t=w.DateHelper.addYear(o._currentDate,1);break;case"year":t=w.DateHelper.addYear(o._currentDate,12)}o.showDate(t)},".dhx_calendar-action__prev":function(){var t;switch(o._currentViewMode){case"calendar":t=w.DateHelper.addMonth(o._currentDate,-1);break;case"month":t=w.DateHelper.addYear(o._currentDate,-1);break;case"year":t=w.DateHelper.addYear(o._currentDate,-12)}o.showDate(t)},".dhx_calendar-action__show-timepicker":function(){o._currentViewMode="timepicker",o.paint()}},onmouseover:{".dhx_calendar-day":function(t,e){o.events.fire(u.CalendarEvents.dateMouseOver,[new Date(e.attrs._date),t]),o.events.fire(u.CalendarEvents.dateHover,[new Date(e.attrs._date),t])}}}},f.prototype._getData=function(r){var t,s=this;switch(this._isSelectedInCurrentRange=!1,this.config.weekStart){case"saturday":t=-1;break;case"monday":t=1;break;default:t=0}for(var e=[],i=6,a=w.DateHelper.weekStart(w.DateHelper.monthStart(r),t);i--;){for(var n=w.DateHelper.getWeekNumber(a),l=0,o=7,c=[],d=function(){var t,e=w.DateHelper.isWeekEnd(a),i=r.getMonth()===a.getMonth(),n=u.config.disabledDates&&u.config.disabledDates(a),o=[];u.config.range&&u._selected[0]&&u._selected[1]&&(t=function(){if(s._selected[0]&&s._selected[1]){var t=w.DateHelper.dayStart(s._selected[0]),e=w.DateHelper.dayStart(s._selected[1]);return t<=a&&a<=e&&(w.DateHelper.isSameDay(s._selected[0],s._selected[1])?null:"dhx_calendar-day--in-range")}},u.config.$rangeMark=t),e&&i&&o.push("dhx_calendar-day--weekend"),i||(u.config.thisMonthOnly?(l++,o.push("dhx_calendar-day--hidden")):o.push("dhx_calendar-day--muffled")),!u.config.mark||(i=u.config.mark(a))&&o.push(i),u.config.$rangeMark&&(t=u.config.$rangeMark(a))&&o.push(t),n&&(e?o.push("dhx_calendar-day--weekend-disabled"):o.push("dhx_calendar-day--disabled")),u._selected.forEach(function(t,e){t&&w.DateHelper.isSameDay(t,a)&&(s._isSelectedInCurrentRange=!0,t="dhx_calendar-day--selected",s.config.range&&(t+=" dhx_calendar-day--selected-"+(0===e?"first ":"last")),o.push(t))}),c.push({date:a,day:a.getDate(),css:o.join(" ")}),a=w.DateHelper.addDay(a)},u=this;o--;)d();e.push({weekNumber:n,days:c,disabledWeekNumber:7===l})}return e},f.prototype._drawCalendar=function(){var t,i=this,e=this._currentDate,n=this.config,o=n.weekStart,r=n.thisMonthOnly,s=n.css,a=n.timePicker,l=n.width;switch(o){case"saturday":t=x([w.locale.daysShort[6]],w.locale.daysShort.slice(0,-1));break;case"monday":t=x(w.locale.daysShort.slice(1),[w.locale.daysShort[0]]);break;default:t=w.locale.daysShort}for(var c,n=t.map(function(t){return b.el(".dhx_calendar-weekday",t)}),o=this._getData(e),d=!0,u=this._getSelected(),h=function(t){var e={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(i._isSelectedInCurrentRange?(t=t.date)&&u&&t.getTime()===u.getTime()&&(e.tabindex=0,e["aria-pressed"]="true"):d&&(e.tabindex=0),d=!1),e},f=[],p=[],g=0,_=o;g<_.length;g++){var v=_[g],m=v.days.map(function(t){return b.el("div.dhx_calendar-day",y({class:t.css,_date:t.date},h(t)),t.day)});!this.config.weekNumbers||v.disabledWeekNumber&&r||p.push(b.el("div",{class:"dhx_calendar-week-number"},v.weekNumber)),f=f.concat(m)}this.config.weekNumbers&&(c=b.el(".dhx_calendar__week-numbers",p));s="dhx_calendar dhx_widget"+(s?" "+s:"")+(a?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return b.el("div",y({class:s,style:{width:this.config.weekNumbers?parseInt(l.toString())+48+"px":l}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_calendar-action__show-month.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},w.locale.months[e.getMonth()]+" "+e.getFullYear())),this.config.weekNumbers&&b.el(".dhx_calendar__dates-wrapper",[b.el(".dhx_calendar__weekdays",n),b.el(".dhx_calendar__days",f),c]),!this.config.weekNumbers&&b.el(".dhx_calendar__weekdays",n),!this.config.weekNumbers&&b.el(".dhx_calendar__days",f),a?b.el(".dhx_timepicker__actions",[b.el("button.dhx_calendar__timepicker-button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__show-timepicker",{type:"button"},[b.el("span.dhx_button__icon.dxi.dxi-clock-outline"),b.el("span.dhx_button__text",this._time)])]):null])])},f.prototype._drawMonthSelector=function(){function o(t){return d&&e===t}var t=this._currentDate,e=t.getMonth(),i=this._getSelected()?this._getSelected().getFullYear():null,n=this.config,r=n.css,s=n.timePicker,a=n.weekNumbers,l=n.width,n=n.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),c=!0,d=i===t.getFullYear();return b.el("div",y({class:s,style:{width:a?parseInt(l.toString())+48+"px":l}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_calendar-action__show-year.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},t.getFullYear())),b.el(".dhx_calendar__months",w.locale.monthsShort.map(function(t,e){return b.el("div",y(y({class:"dhx_calendar-month"+(o(e)?" dhx_calendar-month--selected":"")},(i=e,n={role:"button",tabindex:-1,"aria-pressed":"false"},t&&(d?o(i)&&(n.tabindex=0,n["aria-pressed"]="true"):c&&(n.tabindex=0),c=!1),n)),{_date:e}),t);var i,n})),"month"!==n?b.el(".dhx_calendar__actions",[b.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},w.locale.cancel)]):null])])},f.prototype._drawYearSelector=function(){function n(t){return e._getSelected()&&t===e._getSelected().getFullYear()}var e=this,t=this._currentDate,i=w.DateHelper.getTwelweYears(t),o=this.config,r=o.css,s=o.timePicker,a=o.weekNumbers,t=o.width,o=o.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),l=!0,c=this._getSelected()&&i.includes(this._getSelected().getFullYear());return b.el("div",y({class:s,style:{width:a?parseInt(t.toString())+48+"px":t}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},i[0]+"-"+i[i.length-1])),b.el(".dhx_calendar__years",i.map(function(t){return b.el("div",y({class:"dhx_calendar-year"+(n(t)?" dhx_calendar-year--selected":""),_date:t},(i={role:"button",tabindex:-1,"aria-pressed":"false"},(e=t)&&(c?n(e)&&(i.tabindex=0,i["aria-pressed"]="true"):l&&(i.tabindex=0),l=!1),i)),t);var e,i})),"year"!==o&&"month"!==o?b.el(".dhx_calendar__actions",[b.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},w.locale.cancel)]):null])])},f.prototype._drawHeader=function(t){return b.el(".dhx_calendar__navigation",[b.el("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[b.el(".dhx_button__icon.dxi.dxi-chevron-left")]),t,b.el("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[b.el(".dhx_button__icon.dxi.dxi-chevron-right")])])},f.prototype._drawTimepicker=function(){var t=this.config,e=t.css,i=t.weekNumbers,t=t.width;return b.el(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:i?parseInt(t.toString())+48+"px":t}},[b.inject(this._timepicker.getRootView())])},f.prototype._selectDate=function(t,e){var i=e.attrs._date,n=w.DateHelper.copy(this._getSelected());switch(this._currentViewMode){case"calendar":var o=this.config.timePicker?w.DateHelper.mergeHoursAndMinutes(i,this._getSelected()||this._currentDate):i;if(!this.events.fire(u.CalendarEvents.beforeChange,[o,n,!0]))return;this.config.range&&1===this._selected.length&&this._selected[0]<o?this._selected.push(o):(this._selected=[],this._selected[0]=o),e.el.blur(),this.showDate(this._getSelected()),this.events.fire(u.CalendarEvents.change,[i,n,!0]);break;case"month":if("month"!==this.config.mode)w.DateHelper.setMonth(this._currentDate,i),this.showDate(null,"calendar"),this.events.fire(u.CalendarEvents.monthSelected,[i]);else{var r=w.DateHelper.fromYearAndMonth(this._currentDate.getFullYear()||this._getSelected().getFullYear(),i);if(!this.events.fire(u.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(u.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(u.CalendarEvents.monthSelected,[i]),this.paint()}break;case"year":if("year"!==this.config.mode)w.DateHelper.setYear(this._currentDate,i),this.showDate(null,"month"),this.events.fire(u.CalendarEvents.yearSelected,[i]);else{r=w.DateHelper.fromYear(i);if(!this.events.fire(u.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(u.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(u.CalendarEvents.yearSelected,[i]),this.paint()}}},f.prototype._moveBrowseFocus=function(t,e,i){e&&(!(i=e.parent.body[e.idx+i])||(i=i.el)&&(t.target.tabIndex=-1,i.tabIndex=0,i.focus({preventScroll:!0})))},f);function f(t,e){void 0===e&&(e={});var o=r.call(this,t,s.extend({weekStart:"sunday",thisMonthOnly:!1,dateFormat:window&&window.dhx&&window.dhx.dateFormat,width:"250px"},e))||this;switch(o._selected=[],o.events=new a.EventSystem,o.config.disabledDates=o.config.disabledDates||o.config.block,o.config.mode=o.config.mode||o.config.view,o.config.dateFormat||(o.config.timePicker?12===o.config.timeFormat?o.config.dateFormat="%d/%m/%y %h:%i %A":o.config.dateFormat="%d/%m/%y %H:%i":o.config.dateFormat="%d/%m/%y"),o.config.value&&o._setSelected(o.config.value),o.config.date?o._currentDate=w.DateHelper.toDateObject(o.config.date,o.config.dateFormat):o._getSelected()?o._currentDate=w.DateHelper.copy(o._getSelected()):o._currentDate=new Date,o.config.mode){case"month":o._currentViewMode="month";break;case"year":o._currentViewMode="year";break;case"timepicker":o._currentViewMode=o.config.timePicker?"timepicker":"calendar";break;default:o._currentViewMode="calendar"}o._initHandlers(),o.config.timePicker&&(o._timepicker=new c.Timepicker(null,{timeFormat:o.config.timeFormat,controls:!0}),e=o._getSelected()||new Date,o._timepicker.setValue(e),o._time=o._timepicker.getValue(),o._timepicker.events.on(c.TimepickerEvents.afterClose,function(){o._timepicker.setValue(o._time),o.showDate(null,"calendar")}),o._timepicker.events.on(c.TimepickerEvents.afterApply,function(){var t=o._timepicker.getValue(!0),e=t.hour,i=t.minute,n=t.AM,t=o._getSelected(),n=w.DateHelper.withHoursAndMinutes(o._getSelected()||new Date,e,i,n);o.events.fire(u.CalendarEvents.beforeChange,[n,t,!0])&&(o._selected[o._selected.length-1]=n,o.events.fire(u.CalendarEvents.change,[n,t,!0])),o._time=o._timepicker.getValue(),o.showDate(null,"calendar")}));return o.mount(t,b.create({render:function(){return o._draw()}})),o}e.Calendar=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(94)),n(e(46))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(5),c=i(7),d=i(25),u=i(98),h=i(101),f=i(102),p=i(46),g=i(2);function _(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}var v,o=(v=c.View,o(m,v),m.prototype.getValue=function(t){12===this.config.timeFormat&&(this._time.hour=this._time.hour%12||12);var e=this._time,i=e.hour,n=e.minute,e=e.AM;if(t){t={hour:i,minute:n};return 12===this.config.timeFormat&&(t.AM=e),t}return(i<10?"0"+i:i)+":"+(n<10?"0"+n:n)+(12===this.config.timeFormat?e?"AM":"PM":"")},m.prototype.setValue=function(t){this._setValue(t),this._hoursSlider.setValue(this._time.hour),this._minutesSlider.setValue(this._time.minute),this._inputsView.paint()},m.prototype.clear=function(){24===this.config.timeFormat?this.setValue("00:00"):this.setValue("12:00AM")},m.prototype.destructor=function(){this._minutesSlider&&this._minutesSlider.destructor(),this._hoursSlider&&this._hoursSlider.destructor(),this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.config=this.events=null,this._handlers=this._time=this._inputsView=this._minutesSlider=this._hoursSlider=null,this.unmount()},m.prototype.getRootView=function(){return this.layout.getRootView()},m.prototype._setValue=function(t){var e,i,n=0,o=0;return"number"==typeof t&&(t=new Date(t)),t instanceof Date?(n=t.getMinutes(),o=t.getHours()):Array.isArray(t)?(o=_(t[0],23),n=_(t[1],59),t[2]&&"pm"===t[2].toLowerCase()&&(e=!0)):"string"==typeof t?(o=_(+(i=t.match(/\d+/g))[0],23),n=_(+i[1],59),t.toLowerCase().includes("pm")&&(e=!0)):"object"==typeof t&&t.hasOwnProperty("hour")&&t.hasOwnProperty("minute")&&(o=t.hour,n=t.minute,e=!t.AM),e&&o<12&&(o+=12),12===this.config.timeFormat&&!f.isTimeCheck(t)&&12<=o&&(e=!0),this._time={hour:o,minute:n,AM:!e}},m.prototype._initUI=function(t){var e=this,i={gravity:!1,css:"dhx_widget dhx_timepicker "+(this.config.css||"")+(this.config.controls?" dhx_timepicker--with-controls":""),rows:[{id:"timepicker",css:"dhx_timepicker__inputs"},{id:"hour-slider",css:"dhx_timepicker__hour"},{id:"minute-slider",css:"dhx_timepicker__minute"}]};this.config.controls&&(i.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),i.rows.push({id:"save-action",css:"dhx_timepicker__save"}));var n=this.layout=new d.Layout(t,i),o=a.create({render:function(){return e._draw()}}),t=this._inputsView=c.toViewLike(o),i=this._minutesSlider=new u.Slider(null,{min:0,max:59,step:1,tooltip:!1,labelPosition:"top",label:h.default.minutes,value:this.config.value?this._time.minute:0}),o=this._hoursSlider=new u.Slider(null,{min:0,max:23,step:1,tooltip:!1,labelPosition:"top",label:h.default.hours,value:!this.config.value||12===this._time.hour&&this._time.AM?0:this._time.hour});n.getCell("timepicker").attach(t),n.getCell("hour-slider").attach(o),n.getCell("minute-slider").attach(i),this.config.controls&&(n.getCell("save-action").attach(function(){return a.el("button.dhx_timepicker__button-save.dhx_button.dhx_button--view_flat.dhx_button--color_primary.dhx_button--size_small.dhx_button--circle.dhx_button--width_full",{onclick:e._outerHandlers.save,type:"button"},h.default.save)}),n.getCell("close-action").attach(function(){return a.el("button.dhx_timepicker__button-close.dhx_button.dhx_button--view_link.dhx_button--size_medium.dhx_button--view_link.dhx_button--color_secondary.dhx_button--icon.dhx_button--circle",{_ref:"close",onclick:e._outerHandlers.close,type:"button","aria-label":"close timepicker"},[a.el("span.dhx_button__icon.dxi.dxi-close")])}))},m.prototype._initHandlers=function(){function e(t){var e=_(parseInt(t.value,10),59);t.value=e.toString(),n._minutesSlider.setValue(e)}function i(t){var e=_(parseInt(t.value,10),23);t.value=e.toString(),n._hoursSlider.setValue(e)}var n=this;this._handlers={onchange:{".dhx_timepicker-input--hour":function(t){return i(t.target)},".dhx_timepicker-input--minutes":function(t){return e(t.target)}},oninput:{".dhx_timepicker-input--hour":function(t){(g.isSafari()||g.isFirefox())&&i(t.target)},".dhx_timepicker-input--minutes":function(t){(g.isSafari()||g.isFirefox())&&e(t.target)}}},this._outerHandlers={close:function(){n.events.fire(p.TimepickerEvents.beforeClose,[n.getValue("timeObject"===n.config.valueFormat)])&&(n.events.fire(p.TimepickerEvents.afterClose,[n.getValue("timeObject"===n.config.valueFormat)]),n.events.fire(p.TimepickerEvents.close,[]))},save:function(){n.events.fire(p.TimepickerEvents.beforeApply,[n.getValue("timeObject"===n.config.valueFormat)])&&(n.events.fire(p.TimepickerEvents.afterApply,[n.getValue("timeObject"===n.config.valueFormat)]),n.events.fire(p.TimepickerEvents.apply,[n.getValue()]),n.events.fire(p.TimepickerEvents.save,[n._time]))}}},m.prototype._initEvents=function(){var e=this;this._hoursSlider.events.on(u.SliderEvents.change,function(t){t<e._hoursSlider.config.min||t>e._hoursSlider.config.max||(12===e.config.timeFormat?(e._time.AM=t<12,e._time.hour=t%12||12):e._time.hour=t,e.events.fire(p.TimepickerEvents.change,[e.getValue("timeObject"===e.config.valueFormat)]),e._inputsView.paint())}),this._minutesSlider.events.on(u.SliderEvents.change,function(t){t<e._minutesSlider.config.min||t>e._minutesSlider.config.max||(e._time.minute=t,e.events.fire(p.TimepickerEvents.change,[e.getValue("timeObject"===e.config.valueFormat)]),e._inputsView.paint())})},m.prototype._draw=function(){return a.el(".dhx_timepicker-inputs",r({},this._handlers),[a.el("input.dhx_timepicker-input.dhx_timepicker-input--hour",{_key:"hour",_ref:"hour",value:1<this.getValue(!0).hour.toString().length?this.getValue(!0).hour:"0"+this.getValue(!0).hour,"aria-label":"hours"}),a.el("span.dhx_timepicker-delimer",":"),a.el("input.dhx_timepicker-input.dhx_timepicker-input--minutes",{_key:"minute",value:1<this.getValue(!0).minute.toString().length?this.getValue(!0).minute:"0"+this.getValue(!0).minute,"aria-label":"minutes"}),12===this.config.timeFormat?a.el(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},m);function m(t,e){void 0===e&&(e={});e=v.call(this,t,s.extend({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},e))||this;return e.events=new l.EventSystem(e),e._time={hour:0,minute:0,AM:!0},12===e.config.timeFormat&&(e._time.hour=12),e.config.controls=e.config.controls||e.config.actions,e.config.value&&e._setValue(e.config.value),e._initUI(t),e._initHandlers(),e._initEvents(),e}e.Timepicker=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBlockRange=function(t,e,i){return void 0===i&&(i=!0),i?{min:t.left+window.pageXOffset,max:e.right+window.pageXOffset}:{min:t.top+window.pageYOffset,max:e.bottom+window.pageYOffset}},e.getMarginSize=function(t,e){return t&&("space"===t.type||"wide"===t.type&&e)?10:0}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(42),a=i(97),o=(r=s.Layout,o(l,r),l.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new l(this,t)):new a.ProCell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},l);function l(t,e){return r.call(this,t,e)||this}e.ProLayout=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,d=i(1),u=i(0),s=i(27),i=i(43),o=(r=i.Cell,o(a,r),a.prototype._getFirstRootView=function(t){return void 0===t&&(t=this),t.getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},a.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this._calculateStyle(),n=d.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",o=this.config.full||this.config.html?i:c(c({},i),n);this.config.html||(e=this._ui?((l=this._ui.getRootView()).render&&(l=u.inject(l)),l?[this.scrollView.render(l)]:l||null):t?this.scrollView.render([t]):t||null);var i=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?u.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),c(c({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[u.el("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,r={};if(this.config.on)for(var s in this.config.on)r["on"+s]=this.config.on[s];var a="",l=this.config.cols||this.config.rows;if(this.config.type&&l)switch(this.config.type){case"line":a=" dhx_layout-line";break;case"wide":a=" dhx_layout-wide";break;case"space":a=" dhx_layout-space"}t=u.el(".dhx_layout-cell-content",{_key:this._uid+"_html",style:n},[u.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),t=u.el("div",c(c(((l={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,l),r),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?a:""),style:o}),this.config.full?[u.el("div",{tabindex:this.config.collapsable?"0":"-1",class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&u.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&u.el(".dhx_layout-cell-header__image-wrapper",[u.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&u.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?u.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):u.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:u.el("div",{style:c(c({},n),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?a:"")},this.config.html?[u.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable?this.scrollView.render([t],this._uid):t]);return i?[t,i]:t}},a);function a(t,e){var i=r.call(this,t,e)||this;return i.scrollView=new s.ScrollView(function(){return i._getFirstRootView()}),i}e.ProCell=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(99)),n(e(45))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),c=i(0),s=i(5),a=i(24),d=i(7),u=i(28),h=i(45),f=i(2);function p(t,e,i){return t<e?e:i<t?i:t}var g,o=(g=d.View,o(_,g),_.prototype.disable=function(){this._disabled=!0,this.paint()},_.prototype.enable=function(){this._disabled=!1,this.paint()},_.prototype.isDisabled=function(){return this._disabled},_.prototype.focus=function(t){this.getRootView().refs[t?"extraRunner":"runner"].el.focus()},_.prototype.blur=function(){this.getRootView().refs[this._isExtraActive?"extraRunner":"runner"].el.blur()},_.prototype.getValue=function(){var t,e;return this.config.range?(t=this._getValue(this._currentPosition))<(e=this._getValue(this._extraCurrentPosition))?[t,e]:[e,t]:[this._getValue(this._currentPosition)]},_.prototype.setValue=function(t){var e=this._getValue(this._currentPosition);if(Array.isArray(t)&&1<t.length){var i=this._getValue(this._extraCurrentPosition);this._setValue(t[0],!1),this.events.fire(h.SliderEvents.change,[t[0],e,!1]),this._setValue(t[1],!0),this.events.fire(h.SliderEvents.change,[t[1],i,!0])}else{if(t=parseFloat(t),isNaN(t))throw new Error("Wrong value type, for more info check documentation https://docs.dhtmlx.com/suite/slider__api__slider_setvalue_method.html");this._setValue(t),this.events.fire(h.SliderEvents.change,[t,e,!1])}this.paint()},_.prototype.destructor=function(){this._keyManager&&this._keyManager.destructor(),document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),this._tooltip=null,this.unmount()},_.prototype._calcSliderPosition=function(){var t=this.getRootView();t&&(t=t.refs.track.el.getBoundingClientRect(),this._offsets={left:t.left+window.pageXOffset,top:t.top+window.pageYOffset},this._length="horizontal"===this.config.mode?t.width:t.height)},_.prototype._initHotkeys=function(){var t,e=this,i={arrowLeft:function(t){t.preventDefault(),e._move(-e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowRight:function(t){t.preventDefault(),e._move(e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowUp:function(t){t.preventDefault(),e._move(e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowDown:function(t){t.preventDefault(),e._move(-e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))}};for(t in i)this._keyManager.addHotKey(t,i[t])},_.prototype._move=function(t,e){this.config.inverse&&(t=-t);var i=this.config,n=i.max,o=i.min,r=e?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),i=r+t;this._setValue(r+t,e),(n<i||i<o)&&(i=r),this.events.fire(h.SliderEvents.change,[i,r,e]),this.paint()},_.prototype._initStartPosition=function(){var t,e,i=this.config,n=i.max,o=i.min,r=i.range,i=(t=this.config.value,e=this.config.min,i=this.config.max,(t=void 0===t?[]:Array.isArray(t)?t:"string"==typeof t?t.split(",").map(function(t){return parseInt(t,10)}):[t])[0]=void 0===t[0]?e:p(t[0],e,i),t[1]=void 0===t[1]?i:p(t[1],e,i),t),t=i[0],i=i[1];this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(n-i)/(n-o)*100),this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(i-o)/(n-o)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,r&&(this._extraCurrentPosition=100-this._extraCurrentPosition))},_.prototype._getValue=function(t){this._isInverse()&&(t=100-t);var e=this.config,i=e.min,n=e.max,e=e.step;if(100===t)return n;if(0===t)return i;t=t*(n-i)/100,n=t%e,e=e/2<=n?e:0;return+(Number(i)+Number(t)-n+e).toFixed(5)},_.prototype._setValue=function(t,e){void 0===e&&(e=!1);var i=this.config,n=i.max,i=i.min;if(n<t||t<i)return!1;i=(t-i)/(n-i)*100,i=this._isInverse()?100-i:i;e?this._extraCurrentPosition=i:this._currentPosition=i},_.prototype._initHandlers=function(){function e(t){if(t.targetTouches||t.preventDefault(),t=((t.targetTouches?t.targetTouches[0]:t)[n._axis]-n._getBegining())/n._length*100,n._findNewDirection){if(Math.abs(n._currentPosition-t)<1)return;t>n._currentPosition?n._possibleRange=[n._currentPosition,100]:n._possibleRange=[0,n._currentPosition],n._findNewDirection=null}n._inSide(t)&&n._updatePosition(t,n._isExtraActive),n.paint()}function i(t){var e,i;n._disabled||3===t.which||(n.events.fire(h.SliderEvents.mousedown,[t]),n._isMouseMoving=!0,e=t.target.classList.contains("dhx_slider__thumb--extra")?(n._isExtraActive=!0,n._extraCurrentPosition):(n._isExtraActive=!1,n._currentPosition),n._findNewDirection=null,n.config.range?(t=(i=n._currentPosition>n._extraCurrentPosition?[n._currentPosition,n._extraCurrentPosition]:[n._extraCurrentPosition,n._currentPosition])[0],i=i[1],n._currentPosition===n._extraCurrentPosition?(n._findNewDirection=e,n._possibleRange=[0,100]):n._possibleRange=e<t?[0,t]:[i,100]):n._possibleRange=[0,100])}var n=this,o=function(t){n.events.fire(h.SliderEvents.mouseup,[t]),setTimeout(function(){n._isMouseMoving=!1,n.paint()},4),t.targetTouches?(document.removeEventListener("touchend",o),document.removeEventListener("touchmove",e)):(document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",e))};this.config.helpMessage&&(this._helper=new u.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(t){t.preventDefault(),t.stopPropagation(),n._helper.show(t.target)},onmousedown:function(t){i(t),document.addEventListener("mousemove",e),document.addEventListener("mouseup",o)},ontouchstart:function(t){n._setTooltip(t),n._mouseIn=!1,i(t),document.addEventListener("touchmove",e),document.addEventListener("touchend",o),n.paint()},ontouchend:function(t){n._setTooltip(t),n._mouseIn=!1,n.paint()},onlabelClick:function(){n.getRootView().refs.runner.el.focus()},onclick:function(t){var e;n._disabled||n._isMouseMoving||3===t.which||(e=(t[n._axis]-n._getBegining())/n._length*100,t=n.getRootView().refs,!n.config.range||Math.abs(n._currentPosition-e)<Math.abs(n._extraCurrentPosition-e)?(n._updatePosition(e,!1),t.runner.el.focus()):(n._updatePosition(e,!0),t.extraRunner.el.focus()),n.paint())},onmouseover:function(t){n._setTooltip(t),n._mouseIn=!0,n.paint()},onmouseout:function(t){n._setTooltip(t),n._mouseIn=!1,n.paint()},onfocus:function(t){n._setTooltip(t),n._focusIn=!0,n.events.fire(h.SliderEvents.focus,[]),n.paint()},onblur:function(t){n._setTooltip(t),n._focusIn=!1,n.events.fire(h.SliderEvents.blur,[]),n.paint()},onkeydown:function(t){n.events.fire(h.SliderEvents.keydown,[t])}}},_.prototype._getBegining=function(){return"horizontal"===this.config.mode?this._offsets.left-window.pageXOffset:this._offsets.top-window.pageYOffset},_.prototype._inSide=function(t){var e=this._possibleRange;return t<e[0]?(this._updatePosition(e[0],this._isExtraActive),!1):!(t>e[1])||(this._updatePosition(e[1],this._isExtraActive),!1)},_.prototype._updatePosition=function(t,e){void 0===e&&(e=!1),100<t&&(t=100),t<0&&(t=0);var i=this.config,n=i.max,o=i.min,i=e?this._extraCurrentPosition:this._currentPosition,i=this._getValue(i),t=this._getValue(t);i!==t&&(o=(t-o)/(n-o)*100,o=this._isInverse()?100-o:o,e?this._extraCurrentPosition=o:this._currentPosition=o,this.events.fire(h.SliderEvents.change,[t,i,e]))},_.prototype._getRunnerStyle=function(t){void 0===t&&(t=!1);var e="horizontal"===this.config.mode?"left":"top",i=t?this._extraCurrentPosition:this._currentPosition;return(t={})[e]=i+"%",t},_.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},_.prototype._getRunnerCss=function(t){return void 0===t&&(t=!1),"dhx_slider__thumb"+(t?" dhx_slider__thumb--extra":"")+(this._isMouseMoving&&(t&&this._isExtraActive||!t&&!this._isExtraActive)?" dhx_slider__thumb--active":"")+(this._disabled?" dhx_slider__thumb--disabled":"")+(this._isNullable(t?this._extraCurrentPosition:this._currentPosition)&&!this.config.range?" dhx_slider__thumb--nullable":"")},_.prototype._draw=function(){var t=this.config,e=t.labelPosition,i=t.mode,n=t.hiddenLabel,o=t.tick,r=t.majorTick,s=t.css,a=t.helpMessage,t=f.getLabelStyle(l(l({},this.config),{required:!1}));return!this._tooltip||this._mouseIn&&this._focusIn&&this._isMouseMoving||document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),c.el("div",{class:"dhx_slider dhx_slider--mode_"+i+("left"===e?" dhx_slider--label-inline":"")+(n?" dhx_slider--label_sr":"")+(o?" dhx_slider--ticks":"")+(r?" dhx_slider--major-ticks":"")+(s?" "+s:"")+(this._disabled?" dhx_slider--disabled":"")},[t?c.el("label.dhx_label.dhx_slider__label",{style:t.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},a?[t.label&&c.el("span.dhx_label__holder",t.label),c.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:t.label):null,this._drawSlider()])},_.prototype._drawSlider=function(){return c.el(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[c.el(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),c.el("div",{_ref:"runner",class:this._getRunnerCss(),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(),tabindex:0}),this.config.tooltip&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip():null,this.config.tooltip&&this.config.range&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip(!0):null,this.config.range?c.el("div",{_ref:"extraRunner",class:this._getRunnerCss(!0),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(!0),tabindex:0}):null]),this.config.tick?this._drawTicks():null])},_.prototype._getDetector=function(){var t;if(this._disabled)return c.el(".dhx_slider__range");var e="horizontal"===this.config.mode?"left":"top",i="horizontal"===this.config.mode?"width":"height";if(this.config.range){var n=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition],o=n[0],r=n[1];return c.el(".dhx_slider__range",{style:((n={})[e]=r+"%",n[i]=o-r+"%",n)})}return this._isInverse()?c.el(".dhx_slider__range",{style:((t={})[e]=this._currentPosition+"%",t[i]=100-this._currentPosition+"%",t)}):c.el(".dhx_slider__range",{style:((t={})[e]=0,t[i]=this._currentPosition+"%",t)})},_.prototype._drawTooltip=function(t){var e,i,n;void 0===t&&(t=!1),"none"!==this._activeTooltip&&this.getRootView()&&(e="extraTooltip"===this._activeTooltip?this._extraCurrentPosition:this._currentPosition,i="horizontal"===this.config.mode?"left":"top",n="",(t&&this._isExtraActive||!t&&!this._isExtraActive)&&(n+=" dhx_slider__thumb-label--active"),this._tooltip||(this._tooltip=document.createElement("div")),t=("tooltip"===this._activeTooltip?this.getRootView().refs.runner:this.getRootView().refs.extraRunner).el.getBoundingClientRect(),this._tooltip.className="dhx_slider__thumb-label"+n,this._tooltip.style.left=t.x+("left"==i?6:-30)+window.pageXOffset+"px",this._tooltip.style.top=t.y+("left"==i?-30:6)+window.pageYOffset+"px",this._tooltip.innerText=this._getValue(e).toString(),document.body.appendChild(this._tooltip))},_.prototype._getTicks=function(){for(var t=this.config,e=t.max,i=t.min,n=t.step,o=t.tick,r=t.majorTick,s=e-i,a=n*o/s,l=[],c=0,d=0;c<1;){var u=+(Number(i)+c*s).toFixed(5),h=d%r==0;l.push({position:(this._isInverse()?100*(1-c):100*c)+"%",isMultiple:h,label:h&&"function"==typeof this.config.tickTemplate?this.config.tickTemplate(u):null}),c+=a,d++}return l.push({position:(this._isInverse()?0:100)+"%",isMultiple:!0,label:"function"==typeof this.config.tickTemplate?this.config.tickTemplate(e):null}),l},_.prototype._drawTicks=function(){var i="horizontal"===this.config.mode?"left":"top";return c.el(".dhx_slider__ticks-holder",this._getTicks().map(function(t){var e;return c.el("div",{class:"dhx_slider__tick"+(t.isMultiple?" dhx_slider__tick--major":""),style:((e={})[i]=t.position,e)},void 0!==t.label?[c.el(".dhx_slider__tick-label",t.label)]:null)}))},_.prototype._isNullable=function(t){return this._isInverse()?100===t:0===t},_.prototype._setTooltip=function(t){t.target.classList.contains("dhx_slider__thumb--extra")?this._activeTooltip="extraTooltip":t.target.classList.contains("dhx_slider__thumb")?this._activeTooltip="tooltip":this._activeTooltip="none"},_);function _(t,e){var i=g.call(this,t,r.extend({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},e))||this;i._disabled=!1,i.config.helpMessage=i.config.helpMessage||i.config.help,void 0!==i.config.thumbLabel&&(i.config.tooltip=i.config.thumbLabel),i.config.labelInline&&(i.config.labelPosition="left"),i.events=new s.EventSystem(i),i._axis="horizontal"===i.config.mode?"clientX":"clientY",i._initStartPosition(),i._keyManager=new a.KeyManager(function(){var t;return document.activeElement===(null===(t=null===(t=i.getRootView().refs)||void 0===t?void 0:t[i._isExtraActive?"extraRunner":"runner"])||void 0===t?void 0:t.el)}),i._initHotkeys();e=c.create({render:function(){return i._draw()},hooks:{didMount:function(){return i._calcSliderPosition()},didRedraw:function(){return i._calcSliderPosition()}}});return i._initHandlers(),i.mount(t,e),i}e.Slider=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(1),l=i(0),c=i(5),d=i(2),u=i(7),h=i(44),o=(r=u.View,o(f,r),f.prototype.show=function(t,e,i){var n=this;void 0===e&&(e={}),this.events.fire(h.PopupEvents.beforeShow,[t])&&(t=d.toNode(t),this._isActive?this._setPopupSize(t,e):(i&&this.attach(i),this._popup.style.left="0",this._popup.style.top="0",l.awaitRedraw().then(function(){n._setPopupSize(t,e),n._popup.style.position="fixed",document.body.appendChild(n._popup),n._isActive=!0}).then(function(){n._popup.style.position="absolute",n.events.fire(h.PopupEvents.afterShow,[t]),n._outerClickDestructor=n._detectOuterClick(t)})))},f.prototype.hide=function(){this._hide(!1,null)},f.prototype.isVisible=function(){return this._isActive},f.prototype.attach=function(t,e){return this._html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof u.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},f.prototype.attachHTML=function(t){this._html=t,this.paint()},f.prototype.getWidget=function(){return this._ui},f.prototype.getContainer=function(){return this.getRootView().refs.content.el},f.prototype.toVDOM=function(){var t;return this._html?t=l.el(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=l.inject(t)),l.el("div",{class:"dhx_popup-content",tabindex:0,onclick:this._clickEvent,_key:this._uid,_ref:"content"},[t])},f.prototype.destructor=function(){this.hide(),this._outerClickDestructor&&this._outerClickDestructor(),this._popup=null},f.prototype._setPopupSize=function(t,e,i){var n=this;void 0===i&&(i=3);var o=this._popup.getBoundingClientRect(),r=o.width,o=o.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!i||0!==r&&0!==o){r=d.fitPosition(t,s(s({centering:!0,mode:"bottom"},e),{width:r,height:o})),o=r.left,r=r.top;if(this._popup.style.left=o,this._popup.style.top=r,e.indent&&0!==e.indent)switch(e.mode){case"top":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"bottom":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;case"left":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"right":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;default:this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px"}}else this._timeout=setTimeout(function(){n._isActive&&(n._setPopupSize(t,e,i-1),n._timeout=null)})},f.prototype._detectOuterClick=function(n){var o=this,r=!1,s=new WeakMap,a=function(t){var e=t.target,i=document.querySelectorAll(".dhx_popup");for(r?i.forEach(function(t){return s.has(t)||s.set(t,o._popup)}):(r=Boolean(i.length))&&i.forEach(function(t){return s.set(t,!0)});e;){if(e===n||e===o._popup||s.get(e)===o._popup)return;e=e.parentNode}o._hide(!0,t)&&document.removeEventListener("mousedown",a)};return document.addEventListener("mousedown",a),function(){return document.removeEventListener("mousedown",a)}},f.prototype._hide=function(t,e){if(this._isActive)return!!this.events.fire(h.PopupEvents.beforeHide,[t,e])&&(document.body.removeChild(this._popup),this._isActive=!1,this._outerClickDestructor&&(this._outerClickDestructor(),this._outerClickDestructor=null),this.events.fire(h.PopupEvents.afterHide,[e]),!0)},f);function f(t){void 0===t&&(t={});var e=r.call(this,null,a.extend({},t))||this,i=e._popup=document.createElement("div");return i.className="dhx_widget dhx_popup"+(e.config.css?" "+e.config.css:""),i.style.position="absolute",i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-live","polite"),e.mount(i,l.create({render:function(){return e.toVDOM()}})),e._clickEvent=function(t){return e.events.fire(h.PopupEvents.click,[t])},e.events=t.events||new c.EventSystem(e),e._isActive=!1,e}e.Popup=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={hours:"Hours",minutes:"Minutes",save:"Save"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeCheck=function(t){return/(^12:[0-5][0-9]?AM$)/i.test(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linkButtonClasses=".dhx_button.dhx_button--view_link.dhx_button--icon.dhx_button--size_medium.dhx_button--color_secondary"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(4),i=(s.prototype.endEdit=function(){var t=this._checked;this._config.events.fire(r.GridEvents.beforeEditEnd,[t,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(r.GridEvents.afterEditEnd,[t,this._cell.row,this._cell.col])):this._input.checked=!t},s.prototype.toHTML=function(){void 0===this._checked&&(this._checked=this._cell.row[this._cell.col.id]);var t=n.uid();return o.el("div.dhx_checkbox.dhx_cell-editor__checkbox",[o.el("label",{style:{display:"none"},for:t},this._checked||"false"),o.el("input.dhx_checkbox__input",{type:"checkbox",_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",checked:this._checked,id:t,style:{userSelect:"none"}}),o.el("span.dhx_checkbox__visual-input")])},s.prototype._initHandlers=function(){var e=this;this._handlers={onClick:function(){var t=!e._input.checked;e._config.events.fire(r.GridEvents.beforeEditStart,[e._cell.row,e._cell.col,"checkbox"])?(e._checked=t,e._config.events.fire(r.GridEvents.afterEditStart,[e._cell.row,e._cell.col,"checkbox"]),e.endEdit()):e._input.checked=!t},didInsert:function(t){e._checkbox=t.el.parentNode.lastChild,e._input=t.el.parentNode.querySelector("input"),t.el.parentNode.addEventListener("click",e._handlers.onClick)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.CheckboxEditor=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=i(4),s=i(48),a=i(18),i=(l.prototype.endEdit=function(t){var e,i=this;t||(e=this._input.getValue(),e="multiselect"===this._cell.col.editorType?e.split(",").join(", "):e),this._config.events.fire(r.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.popup.hide(),document.removeEventListener("mousedown",this._handlers.onOuterClick),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),a.focusManager.setFocusId(this._config.gridId),null!=e&&e.toString().split(", ").forEach(function(e){var t=i._cell.col.options.find(function(t){return"string"==typeof t?t===e:t.id.toString()===e});e&&!t&&i._cell.col.options.push(i._input.data.getItem(e))}),this._config.events.fire(r.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},l.prototype.toHTML=function(){var e=this,t=this._cell.col.options.map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[];return this._input||(this._input=new s.Combobox(null,n({itemHeight:37,css:"dhx_cell-editor__combobox",multiselection:"multiselect"===this._cell.col.editorType},this._cell.col.editorConfig)),this._input.data.parse(t),t=this._cell.row[this._cell.col.id],t="multiselect"===this._cell.col.editorType?((null==t?void 0:t.toString())||"").split(", "):t,this._input.setValue(t),this._input.events.on("keydown",this._handlers.onkeydown)),document.addEventListener("mousedown",this._handlers.onOuterClick),this._config.$editable.editor=this,o.awaitRedraw().then(function(){var t=e._input.getRootView().refs.holder.el;e._input.popup.getContainer().style.width=t.offsetWidth+"px",e._input.popup.show(t)}),a.focusManager.setFocusId(this._input._uid),o.inject(this._input.getRootView())},l.prototype._initHandlers=function(){var i=this;this._handlers={onOuterClick:function(t){var e;t.target instanceof Node&&(e=i._input&&i._input.getRootNode()&&i._input.getRootNode().contains(t.target),t=i._input.popup&&i._input.popup.getRootNode()&&i._input.popup.getRootNode().contains(t.target),e||t||i.endEdit())},onkeydown:function(t){"Escape"!==t.key&&"Tab"!==t.key||i.endEdit()}}},l);function l(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.ComboboxEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEY_CODES={BACKSPACE:8,ENTER:13,ESC:27,DOWN_ARROW:40,UP_ARROW:38,LEFT_ARROW:37,RIGHT_ARROW:39}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(108);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(29),i=(r.prototype.endEdit=function(){var t;this._input&&(t=this._input.value,this._list.events.fire(o.ListEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._list.events.fire(o.ListEvents.afterEditEnd,[t,this._item.id])):this._input.focus())},r.prototype.toHTML=function(){this._mode=!0;var t=this._config.itemHeight;return n.el(".dhx_input__wrapper",{role:"presentation"},[n.el("div.dhx_input__container",{role:"presentation"},[n.el("input.dhx_input",{class:this._item.css?" "+this._item.css:"",style:{height:t,width:"100%",padding:"8px 12px"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},r.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},onKeyDown:function(t){"Enter"===t.key&&e._item.value===e._input.value&&e.endEdit(),"Escape"===t.key&&(e._input.value=e._item.value,e.endEdit())},didInsert:function(t){t=t.el;(e._input=t).focus(),t.value=e._item.value,t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onKeyDown)}}},r);function r(t,e){var i=this;this._list=e,this._config=e.config,this._item=t,this._list.events.on(o.ListEvents.focusChange,function(t,e){i._mode&&e!==i._item.id&&i.endEdit()}),this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(27),i=i(51),o=(a=i.List,o(d,a),d.prototype.destructor=function(){a.prototype.destructor.call(this),this.scrollView=null},d.prototype.showItem=function(t){var e,i,n,o=this.getRootView();o&&o.node&&o.node.el&&void 0!==t&&((e=this.getRootNode())&&(i=this.config.virtual,n=this.data.getIndex(t),o=Math.floor(n/e.children.length)||0,t=e.children[n-e.children.length*o],(i||t)&&(o=i?parseInt(this.config.itemHeight):t.clientHeight,(t=i?n*o:t.offsetTop)>=e.scrollTop+e.clientHeight-o?e.scrollTo(0,t-e.clientHeight+o):t<e.scrollTop&&e.scrollTo(0,t))))},d.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});this.config.virtual&&(e=s([l.el(".div",{style:{height:t[2]+"px"}})],e,[l.el(".div",{style:{height:t[3]+"px"}})]));var n=this.scrollView&&this.scrollView.config.enable,t=(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(n?" dhx_list--scroll-view":"");return l.el("ul.dhx_widget.dhx_list",r(r({style:{"max-height":this.config.height,position:"relative"},class:t,"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),n?[].concat(this.scrollView.render(e)):e)},d);function d(t,e){var i=a.call(this,t,e)||this;return i.scrollView=new c.ScrollView(function(){return i.getRootView()}),i.paint(),i}e.ProList=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.startNewListen=function(t){this._isActive=!0,this._sequence="",this._currentAction=t},o.prototype.endListen=function(){this._currentAction=null,this.reset(),this._isActive=!1},o.prototype.reset=function(){this._sequence=""},o.prototype._change=function(){this._currentAction(this._sequence),this._addClearTimeout()},o.prototype._addClearTimeout=function(){var t=this;this._clearTimeout&&clearTimeout(this._clearTimeout),this._clearTimeout=setTimeout(function(){t.reset(),t._clearTimeout=null},2e3)},o);function o(){var e=this;this._sequence="",document.addEventListener("keydown",function(t){e._isActive&&("Backspace"===(t=t.key)&&0<e._sequence.length&&(e._sequence=e._sequence.slice(0,e._sequence.length-1),e._change()),t.length<2&&(e._sequence+=t,e._change()))})}e.KeyListener=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(49),a=i(50),l=i(25),c=i(54),o=(r=s.Combobox,o(d,r),d.prototype._createLayout=function(){var t=this.list=new a.ProList(null,{template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!1,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data}),e=this._layout=new l.ProLayout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(c.selectAllView)},d);function d(t,e){return r.call(this,t,e)||this}e.ProCombobox=o},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=i(4),o=i(1),a=i(11),i=(l.prototype.endEdit=function(t){var e;t||(e=this._editor.value),this._config.events.fire(s.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._editor.removeEventListener("blur",this._handlers.onBlur),this._editor.removeEventListener("change",this._handlers.onChange),this._editor.removeEventListener("input",this._handlers.onInput),"string"!==this._cell.col.type&&o.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(s.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._editor.focus()},l.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];this._editor&&(t=this._editor.value);var e=void 0!==(this._config.$editable.editor=this)._cell.row.height||this._cell.col.htmlEnable?"dhx_cell-editor dhx_cell-editor__textarea_constant-height":"dhx_cell-editor dhx_cell-editor__textarea";return n.el("textarea",{_hooks:{didInsert:this._handlers.didInsert},_ref:"textarea",_key:"cell_editor","data-dhx-id":"cell_editor",value:t,class:e,style:{width:this._width}})},l.prototype._initHandlers=function(){var o=this;this._handlers={onBlur:function(){o.endEdit()},onChange:function(){o.endEdit()},onInput:function(t){if(void 0===o._cell.row.height&&!o._cell.col.htmlEnable){var e=o._getCurrentHeight(o._editor.value,{width:o._cell.col.$width-2,maxHeight:o._config.rowHeight});o._cell.row[o._cell.col.id]=o._editor.value;var i=a.getCalculatedRowHeight(a.getMaxRowHeight(o._cell.row,o._config.columns)),n=a.getCalculatedRowHeight(a.getMaxRowHeight(((n={})[o._cell.col.id]=o._cell.row[o._cell.col.id],n),o._config.columns));if(o._minHeight=i===n?o._config.rowHeight:i,e>=o._minHeight&&e!==o._prevHeight){if(!o._config.events.fire(s.GridEvents.beforeRowResize,[o._cell.row,t,e]))return;o._config.events.fire(s.GridEvents.afterRowResize,[o._cell.row,t,e])}o._prevHeight=e}},didInsert:function(t){o._editor=t.el,o._editor.focus(),o._editor.setSelectionRange(0,o._editor.value.length),o._editor.addEventListener("change",o._handlers.onChange),o._editor.addEventListener("blur",o._handlers.onBlur),o._editor.addEventListener("input",o._handlers.onInput)}}},l.prototype._getCurrentHeight=function(t,e){e=r({width:100,maxHeight:40,lineHeight:20},e);var i=document.createElement("textarea");i.className="dhx_cell-editor dhx_cell-editor__textarea",i.value=t,i.style.width=e.width+"px",i.style.lineHeight=e.lineHeight+"px",i.style.maxHeight=e.maxHeight+"px",i.style.boxSizing="border-box",document.body.appendChild(i);var n=this._getElementHeight(i),o=i.value.split("\n").length,t=Math.round(n/e.lineHeight),n=n<e.maxHeight?e.maxHeight:n;return document.body.removeChild(i),1===o&&o===t?e.maxHeight:n},l.prototype._getElementHeight=function(t){return t.scrollHeight},l);function l(t,e,i){this._config=i,this._cell={row:t,col:e},this._width=this._cell.col.$width;e=0;this._config.firstColId===this._cell.col.id&&this._cell.row.hasOwnProperty("$level")&&(e=a.getTreeCellWidthOffset(this._cell.row)),this._width-=e-4,this._initHandlers()}e.TextAreaEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(48),c=i(6),d=i(4),n=i(11),u=i(2),o=i(1);function r(e,i,n,o,r){function t(){var t=(u.isIE()||u.isSafari()?r.target:r.path?r.path[0]:r.explicitOriginalTarget).value;o.value[i]=t,e.fire(d.GridEvents.filterChange,[t,i,n])}"selectFilter"!==n?(s&&clearTimeout(s),s=setTimeout(t,500)):t()}function h(t,n,e,i){if(t&&n&&e){var o=t.id,t=i?i(o,n.data):n.data.reduce(function(t,e){return void 0===e[o]||""===e[o]||isNaN(e[o])||t.push(parseFloat(e[o])),t},[]),i=t;return"tree"===n.type&&(i=n.data.reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[o]||""===e[o]||isNaN(e[o])?(i=0,n.datacollection.eachChild(e.id,function(t){n.datacollection.haveItems(t.id)||(i+=parseFloat(t[o]))}),t.push(i)):t.push(parseFloat(e[o])||0)),t},[])),e(t,i)}}e.getContent=function(){function s(i){var t=i.$uniqueData;return"combobox"!==i.editorType&&"select"!==i.editorType&&"multiselect"!==i.editorType||!i.options||(t=t.map(function(e){var t=i.options.find(function(t){return"string"==typeof t?e===t:e===t.id});return t&&"string"!=typeof t?t.value:e})),t}var i=this;return{inputFilter:{element:{},toHtml:function(t,e){var i=o.uid(),n=t.id.toString();return this.element[n]=a.el("div.dhx_grid-filter__label.dxi.dxi-magnify",{"aria-label":"Type to search",_ref:t.id+"_filter"},[a.el("label",{style:{display:"none"},"aria-label":"Type to search",for:i},"Type to search"),a.el("input",{type:"text",class:"dhx_input dhx_grid-filter",oninput:[r,e.events,t.id,"inputFilter",this],_key:t.id,id:i,value:this.value[t.id]||""})]),this.element[n]},match:function(t,e){for(var i="",n=0;n<e.length;n++){var o=e.charCodeAt(n);i+=32<o&&o<48||63===o||90<o&&o<95||124===o?"\\"+e[n]:e[n]}return new RegExp(""+i,"i").test(t)},value:{}},selectFilter:{element:{},toHtml:function(e,t){var i=this,n=e.id.toString(),o=s(e);return this.element[n]=a.el("label.dhx_grid-filter__label.dxi.dxi-menu-down",{_ref:e.id+"_filter"},[a.el("select.dxi.dxi-menu-down",{type:"text",class:"dhx_input dhx_grid-filter dhx_grid-filter--select",onchange:[r,t.events,e.id,"selectFilter",this],_key:e.id},[a.el("option",{value:""},""),o.map(function(t){return""!==(t=null!=t?t:"")&&a.el("option",{value:t,selected:i.value[e.id]===t.toString()},t)})])]),this.element[n]},match:function(t,e){return!e||(t||"boolean"==typeof t)&&t.toString()==e},value:{}},comboFilter:{element:{},toHtml:function(i,n){var t,e,o,r=i.id.toString();return!this.element[r]&&n.events?(t=s(i),e=i.header.filter(function(t){return void 0!==t.filterConfig})[0],(o=e&&e.filterConfig?new l.Combobox(null,Object.assign({},e.filterConfig)):new l.Combobox(null,{})).data.parse(t.map(function(t){return{value:t}})),n.events.on(c.DataEvents.load,function(){o.data.parse(i.$uniqueData.map(function(t){return{value:t}}))}),(this.element[r]=o).events.on("change",function(t){var e;t&&(e=void 0,(Array.isArray(t)?t.find(function(t){return o.data.getItem(t)}):o.data.getItem(t))?(e=o.config.multiselection?o.list.selection.getItem().map(function(t){if(t&&o.data.getItem(t.id))return t.value}):o.list.selection.getItem().value,n.events.fire(d.GridEvents.filterChange,[e,r,"comboFilter"])):n.events.fire(d.GridEvents.filterChange,["",r,"comboFilter"]))}),n.events.on(c.DataEvents.change,function(t,e){"add"!==e&&"update"!==e&&"remove"!==e||(e=s(i),o.data.parse(e.map(function(t){return{value:t}})),o.events.fire(l.ComboboxEvents.change,[o.list.selection.getItem()]))}),n.events.on(c.DataEvents.removeAll,function(){o.data.parse(i.$uniqueData.map(function(t){return{value:t}})),o.events.fire(l.ComboboxEvents.change,[o.list.selection.getItem()])}),o.popup.events.on("afterHide",function(){o.list.selection.getItem()&&(!o.config.multiselection||o.list.selection.getItem().length)||(o.clear(),n.events.fire(d.GridEvents.filterChange,["",r,"comboFilter"]))})):o=this.element[i.id]||new l.Combobox(null,{}),a.inject(o.getRootView())},match:function(t,i,e,n){if(void 0===i&&(i=""),void 0===n&&(n=!1),Array.isArray(i)){for(var o=void 0,r=0;r<i.length;r++)if("break"===function(e){if(o=n?!!t.split(", ").find(function(t){return t===i[e]}):i[e]===t)return"break"}(r))break;return!i||!i.length||o}return""===i||t===i},destroy:function(){if(i.content&&i.content.comboFilter.element){var t,e=i.content.comboFilter.element;for(t in e)e[t].destructor(),delete e[t]}},value:{}},sum:{calculate:function(t,e){return e.reduce(function(t,e){return t+(parseFloat(e)||0)},0)},toHtml:function(t,e){e=h(t,e,this.calculate);return t.format||"percent"===t.type?n.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},avg:{calculate:function(t,e){return t.length?e.reduce(function(t,e){return t+e},0)/t.length:null},toHtml:function(t,e){e=h(t,e,this.calculate);return t.format||"percent"===t.type?n.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},min:{calculate:function(t){return t.length?Math.min.apply(Math,t):null},toHtml:function(t,e){e=h(t,e,this.calculate);return t.format||"percent"===t.type?n.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},max:{calculate:function(t){return t.length?Math.max.apply(Math,t):null},toHtml:function(t,e){e=h(t,e,this.calculate);return t.format||"percent"===t.type?n.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},count:{calculate:function(t,e){return e.length},validate:function(i,t){return t.reduce(function(t,e){return void 0!==e[i]&&""!==e[i]&&(isNaN(e)?t.push(1):t.push(e)),t},[])},toHtml:function(t,e){return h(t,e,this.calculate,this.validate)}}}}},function(t,e,i){"use strict";var h=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var f=i(1),p=i(4),g=i(2);e.startResize=function(a,l,t,e){t.targetTouches&&t.preventDefault();var c=(t.targetTouches?t.targetTouches[0]:t).clientX,d=a.config.columns.filter(function(t){return!t.hidden}),u=0;function i(t){var e,i,n=f.findIndex(d,function(t){return t.id===l}),o=(t.targetTouches?t.targetTouches[0]:t).clientX,r=o-a.getRootNode().getBoundingClientRect().left,s=a.config.$totalHeight>a.config.height?g.getScrollbarWidth():0;a.config.leftSplit===n+1&&r>=a.config.width-s-2||(u=u||d[n].$width,e=d[n].minWidth||40,r=d[n].maxWidth,s=o-c,o=h(d),s=u+s,r&&r<=s||s<=e?(s<=e&&(i=e),r<=s&&(i=r)):i=s,o[n].$width=i,o[n].$fixed=!0,a.events.fire(p.GridEvents.resize,[d[n],t]),a.paint())}a.config.$resizing=l;var n=function(){t.targetTouches?(document.removeEventListener("touchmove",i),document.removeEventListener("touchend",n)):(document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",n)),e()};t.targetTouches?(document.addEventListener("touchmove",i),document.addEventListener("touchend",n)):(document.addEventListener("mousemove",i),document.addEventListener("mouseup",n)),a.paint()}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),s=i(2),a=i(30),l=new WeakMap,c=new Map;function d(t,e){var i=document.createElement("div");return i.setAttribute("data-position",e),i.className="dhx_message-container dhx_message-container--"+e+(t===document.body?" dhx_message-container--in-body":""),i}function u(t,e){e&&clearTimeout(l.get(t));var i=t.parentNode,n=i.getAttribute("data-position"),o=i.parentNode,e=c.get(o);e&&(!(e=e[n])||-1!==(e=(n=e.stack).indexOf(t))&&(i.removeChild(t),n.splice(e,1),0===n.length&&o.removeChild(i)))}e.message=function(t){"string"==typeof t&&(t={text:t}),t.position=t.position||a.MessageContainerPosition.topRight;var e=document.createElement("div");e.className="dhx_widget dhx_message "+(t.css||""),e.setAttribute("role","alert"),(o=t.text&&r.uid())&&e.setAttribute("aria-describedby",o),t.html?e.innerHTML=t.html:(e.innerHTML='<span class="dhx_message__text" id='+o+"></span>\n\t\t"+(t.icon?'<span class="dhx_message__icon dxi '+t.icon+'"></span>':""),e.querySelector("#"+o).textContent=t.text);var i=t.node?s.toNode(t.node):document.body;"static"===getComputedStyle(i).position&&(i.style.position="relative"),(o=c.get(i))?o[t.position]||(o[t.position]={stack:[],container:d(i,t.position)}):c.set(i,((n={})[t.position]={stack:[],container:d(i,t.position)},n));var n=(o=c.get(i)[t.position]).stack,o=o.container;0===n.length&&i.appendChild(o),n.push(e),o.appendChild(e),t.expire&&(t=setTimeout(function(){return u(e)},t.expire),l.set(e,t)),e.onclick=function(){return u(e,!0)}}},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(59),i=o(60),c=o(1);n.alert=function(s){var a=s.buttons&&s.buttons[0]?s.buttons[0]:e.default.apply,l=i.blockScreen(s.blockerCss);return new t(function(e){var t="dhx_alert__"+c.uid()+"_content",i="dhx_alert__"+c.uid()+"_header",n=document.createElement("div");n.setAttribute("role","alert"),n.setAttribute("aria-modal","true"),s.text&&n.setAttribute("aria-describedby",t),s.header&&n.setAttribute("aria-labelledby",i),n.className="dhx_widget dhx_alert "+(s.css||"");var o=function(t){"Escape"!==t.key&&"Esc"!==t.key||(r(t),e(!1))};function r(t){t.preventDefault(),l(),document.body.removeChild(n),document.removeEventListener("keydown",o)}n.innerHTML="\n\t\t\t"+(s.header?"<div id="+i+' class="dhx_alert__header"> '+(!1!==s.htmlEnable?s.header:"")+" </div>":"")+"\n\t\t\t"+(s.text?"<div id="+t+' class="dhx_alert__content">'+(!1!==s.htmlEnable?s.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(s.buttonsAlignment?"dhx_alert__footer--"+s.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="confirm" class="dhx_alert__apply-button dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+a+"</button>\n\t\t\t</div>",!1===s.htmlEnable&&(s.header&&(n.querySelector("#"+i).textContent=s.header),s.text&&(n.querySelector("#"+t).textContent=s.text)),document.body.appendChild(n),n.querySelector(".dhx_alert__apply-button").focus(),n.querySelector("button").addEventListener("click",function(t){r(t),e(!0)}),document.addEventListener("keydown",o)})}}).call(this,o(12))},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(59),i=o(60),h=o(1);n.confirm=function(l){l.buttonsAlignment=l.buttonsAlignment||"right";var c=l.buttons&&l.buttons[1]?l.buttons[1]:e.default.apply,d=l.buttons&&l.buttons[0]?l.buttons[0]:e.default.reject,u=i.blockScreen("dhx_alert__overlay-confirm "+(l.blockerCss||""));return new t(function(e){var i=document.createElement("div");i.setAttribute("role","alertdialog"),i.setAttribute("aria-modal","true");var n,t=l.header&&h.uid(),o=l.header&&h.uid();o&&i.setAttribute("aria-describedby",o),t&&i.setAttribute("aria-labelledby",t);function r(t){u(),i.removeEventListener("click",s),document.removeEventListener("keydown",a),document.body.removeChild(i),e(t)}var s=function(t){"BUTTON"===t.target.tagName&&r(t.target.classList.contains("dhx_alert__confirm-aply"))},a=function(t){"Escape"===t.key||"Esc"===t.key?(i.querySelector(".dhx_alert__confirm-aply").focus(),r(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===n?(n="reject",i.querySelector(".dhx_alert__confirm-reject").focus()):(n="aply",i.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};i.className="dhx_widget dhx_alert dhx_alert--confirm"+(l.css?" "+l.css:""),i.innerHTML="\n\t\t"+(l.header?'<div class="dhx_alert__header" id='+t+"> "+(!1!==l.htmlEnable?l.header:"")+" </div>":"")+"\n\t\t"+(l.text?'<div class="dhx_alert__content" id='+o+">"+(!1!==l.htmlEnable?l.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(l.buttonsAlignment?"dhx_alert__footer--"+l.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="reject" class="dhx_alert__confirm-reject dhx_button dhx_button--view_link dhx_button--color_primary dhx_button--size_medium">'+d+'</button>\n\t\t\t\t<button type="button" aria-label="aply"class="dhx_alert__confirm-aply dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+c+"</button>\n\t\t\t</div>",!1===l.htmlEnable&&(l.header&&(i.querySelector("#"+t).textContent=l.header),l.text&&(i.querySelector("#"+o).textContent=l.text)),document.body.appendChild(i),n="aply",i.querySelector(".dhx_alert__confirm-aply").focus(),i.addEventListener("click",s),document.addEventListener("keydown",a)})}}).call(this,o(12))},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),u=i(30),h=750,f=200;function d(t,e,i,n,o,r){var s,a,l;switch(void 0===o&&(o=8),void 0===r&&(r=0),1<r&&(e=u.Position.center),e){case u.Position.center:return(a=t.left+window.pageXOffset+(t.width-i)/2)+o<window.pageXOffset&&(a=t.left+window.pageXOffset),{left:a,top:l=t.top+window.pageYOffset+(t.height-n)/2,pos:s=u.RealPosition.center};case u.Position.right:return(s=u.RealPosition.right,(a=t.right+window.pageXOffset+o)+i>window.innerWidth+window.pageXOffset)?d(t,u.Position.left,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case u.Position.left:return(s=u.RealPosition.left,(a=window.pageXOffset+t.left-i-o)<0)?d(t,u.Position.right,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case u.Position.top:return s=u.RealPosition.top,(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),(l=window.pageYOffset+t.top-n-o)-n<0?d(t,u.Position.bottom,i,n,o,++r):{left:a,top:l,pos:s};case u.Position.bottom:default:return(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),s=u.RealPosition.bottom,(l=window.pageYOffset+t.bottom+o)+n>window.innerHeight+window.pageYOffset?d(t,u.Position.top,i,n,o,++r):{left:a,top:l,pos:s}}}e.findPosition=d;var p=document.createElement("div"),g=document.createElement("span");g.className="dhx_tooltip__text",p.appendChild(g),p.setAttribute("role","tooltip"),p.style.position="absolute";var _,v=null,m=!1,y=null,x=null;function b(t){return t&&(t.classList.contains("dhx_popup--window")&&t.classList.contains("dhx_popup--window_active")||t.classList.contains("dhx_popup--window_modal")||t.classList.contains("dhx_popup"))?2147483647:null!=t&&t.classList.contains("dhx_popup--window")?2147483646:t&&t.offsetParent?b(t.offsetParent):null}function w(t,e,i,n,o,r,s){void 0===o&&(o=!1),void 0===r&&(r=8);var a=t.getBoundingClientRect();s?g.innerHTML=e:g.textContent=e,document.body.appendChild(p),p.className="dhx_widget dhx_tooltip"+(o?" dhx_tooltip--forced":"");var e=p.getBoundingClientRect(),r=d(a,i,e.width,e.height,r),l=r.left,c=r.top,r=r.pos,t=b(t);switch(t&&(p.style.zIndex=t.toString()),r){case u.RealPosition.bottom:case u.RealPosition.top:case u.RealPosition.left:case u.RealPosition.right:case u.RealPosition.center:p.style.left=l+"px",p.style.top=c+"px"}p.className+=" dhx_tooltip--"+r+" "+(n||""),m=!0,o||setTimeout(function(){p.className+=" dhx_tooltip--animate"})}function r(e,t,i){var n=i.force,o=i.showDelay,r=i.hideDelay,s=i.position,a=i.css,l=i.htmlEnable,c=i.margin;n||(x=setTimeout(function(){w(e,t,s||u.Position.bottom,a,!1,c,l)},o||h));var d=function(){var t;m&&(t=r,v&&(y=setTimeout(function(){document.body.removeChild(p),m=!1,y=null},t||f))),clearTimeout(x),e.removeEventListener("mouseleave",d),e.removeEventListener("blur",d),document.removeEventListener("mousedown",d),_=v=null};n&&w(e,t,s,a,n,c,l),e.addEventListener("mouseleave",d),e.addEventListener("blur",d),document.addEventListener("mousedown",d),_=d}function s(t,e){var i=o.toNode(e.node);i!==v&&(_&&(_(),_=null),v=i,y?(clearTimeout(y),y=null,r(i,t,n(n({},e),{force:!0}))):r(i,t,e))}function a(t){t=o.locateNode(t,"dhx_tooltip_text");t&&s(t.getAttribute("dhx_tooltip_text"),{position:t.getAttribute("dhx_tooltip_position")||u.Position.bottom,node:t})}e.getZIndex=b,e.tooltip=s,e.enableTooltip=function(){document.addEventListener("mousemove",a)},e.disableTooltip=function(){document.removeEventListener("mousemove",a)}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(4),d=i(2),a=i(8);function l(t,e,i,n,o,r,s){var a,l,c;void 0===o&&(o=!1),void 0===r&&(r=!1),void 0===s&&(s=!1),e.config.$editable||!e.config.selection||d.locateNodeByClassName(t,"dhx_grid-header-cell")||(t&&t.preventDefault(),a=e.selection.getCell(),t=e.config.columns.filter(function(t){return!t.hidden}),a&&("vertical"===i?o?(l=1===n?e.data.getItem(e.data.getId(e.data.getLength()-1)):e.data.getItem(e.data.getId(0)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):0<=(c=e.data.getIndex(a.row.id.toString()))+n&&c+n<e.data.getLength()&&(l=e.data.getItem(e.data.getId(c+n)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):o?(l=1===n?t[t.length-1]:t[0],e.selection.setCell(a.row.id,l.id,r,s),e.scrollTo(a.row.id.toString(),l.id.toString())):0<=(c=t.indexOf(a.column))+n&&c+n<t.length&&(e.selection.setCell(a.row.id,t[c+n].id,r,s),e.scrollTo(a.row.id.toString(),t[c+n].id.toString()))))}e.selectionMove=l,e.getKeysHandlers=function(o){var t,n="cell"===o.config.selection||"complex"===o.config.selection||!0===o.config.selection,e={};if(o.getRootView()){var i=null===(t=null===(t=null===(t=o.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.grid_body)||void 0===t?void 0:t.el;if(!i)return;e={pageUp:function(t){t.preventDefault(),i.scrollTop-=i.clientHeight},pageDown:function(t){t.preventDefault(),i.scrollTop+=i.clientHeight},home:function(t){t.preventDefault(),i.scrollTop=0},end:function(t){t.preventDefault(),i.scrollTop+=i.scrollHeight}}}return r({enter:function(t){var e,i=d.locateNodeByClassName(t,"dhx_grid-header-cell");i&&(e=i.getAttribute("data-dhx-id"),i=t.target.getAttribute("dhx_resized"),!e||(t=o.getColumn(e))&&a.isSortable(o.config,t)&&!i&&o.events.fire(s.GridEvents.afterSort,[e])),n?(e=o.selection.getCell())&&(!1!==e.column.editable&&o.config.editable||e.column.editable)&&(o.config.$editable?o.editEnd():"boolean"!==e.column.type?o.editCell(e.row.id,e.column.id,e.column.editorType):o.events.fire(s.GridEvents.afterEditEnd,[!e.row[e.column.id],e.row,e.column])):o.config.$editable&&o.editEnd()},space:function(t){var e,i=o.selection.getCell();n&&(null!==(e=null==i?void 0:i.column.editable)&&void 0!==e?e:o.config.editable)&&!o.config.$editable&&i&&"boolean"===i.column.type&&(t.preventDefault(),o.events.fire(s.GridEvents.afterEditEnd,[!i.row[i.column.id],i.row,i.column]))},escape:function(){o.config.$editable&&o.editEnd(!0)},tab:function(t){var e,i,n;o.config.selection&&!d.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)+1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):0<=i&&((n=o.data.getIndex(n.row.id.toString())+1)<o.data.getLength()&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[0].id),o.scrollTo(o.data.getId(n).toString(),e[0].id.toString())))))},"shift+tab":function(t){var e,i,n;o.config.selection&&!d.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)-1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):i<o.data.getLength()&&(0<=(n=o.data.getIndex(n.row.id.toString())-1)&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[e.length-1].id),o.scrollTo(o.data.getId(n).toString(),e[e.length-1].id.toString())))))},arrowUp:function(t){l(t,o,"vertical",-1)},"ctrl+arrowUp":function(t){l(t,o,"vertical",-1,!0)},"shift+arrowUp":function(t){o.config.multiselection&&l(t,o,"vertical",-1,!1,!1,!0)},"ctrl+shift+arrowUp":function(t){o.config.multiselection&&l(t,o,"vertical",-1,!0,!1,!0)},arrowDown:function(t){l(t,o,"vertical",1)},"ctrl+arrowDown":function(t){l(t,o,"vertical",1,!0)},"shift+arrowDown":function(t){o.config.multiselection&&l(t,o,"vertical",1,!1,!1,!0)},"ctrl+shift+arrowDown":function(t){o.config.multiselection&&l(t,o,"vertical",1,!0,!1,!0)},arrowRight:function(t){l(t,o,"horizontal",1)},"ctrl+arrowRight":function(t){l(t,o,"horizontal",1,!0)},"shift+arrowRight":function(t){o.config.multiselection&&l(t,o,"horizontal",1,!1,!1,!0)},"ctrl+shift+arrowRight":function(t){o.config.multiselection&&l(t,o,"horizontal",1,!0,!1,!0)},arrowLeft:function(t){l(t,o,"horizontal",-1)},"ctrl+arrowLeft":function(t){l(t,o,"horizontal",-1,!0)},"shift+arrowLeft":function(t){o.config.multiselection&&l(t,o,"horizontal",-1,!1,!1,!0)},"ctrl+shift+arrowLeft":function(t){o.config.multiselection&&l(t,o,"horizontal",-1,!0,!1,!0)}},e)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(40),l=i(4),f=i(6),c=i(2),d=i(11),p=i(41),u=i(0),h=i(27),o=(s=a.Grid,o(g,s),g.prototype._createView=function(){var i=this;return u.create({render:function(t,e){return p.proRender(t,e,i._htmlEvents,i.selection,i._uid)}},this)},g.prototype._setEventHandlers=function(){var r=this;s.prototype._setEventHandlers.call(this),this.events.on(l.GridEvents.headerCellMouseDown,function(t,e){var i=c.locateNodeByClassName(e,"dhx_header-row"),i=i&&i.getAttribute("aria-rowindex");null!==(i=t.header[Number(i)-1])&&void 0!==i&&i.content||(e.targetTouches?r._touch.timer=setTimeout(function(){r._dragStartColumn(e,t)},r._touch.duration):r._dragStartColumn(e,t))}),this._events.on(l.GridSystemEvents.headerCellTouchMove,function(t,e){r._touch.start&&e.preventDefault(),r._clearTouchTimer()}),this._events.on(l.GridSystemEvents.headerCellTouchEnd,function(){r._touch.start=!1,r._clearTouchTimer()}),this.events.on(l.GridEvents.resize,function(){r._parseColumns(),r._checkFilters()}),this.events.on(l.GridEvents.afterResizeEnd,function(){r.config.autoHeight&&(r.config.data=r.data.map(function(t){var e=d.getMaxRowHeight(t,r.config.columns);return t.$height=d.getCalculatedRowHeight(e,{rowHeight:r.config.rowHeight,padding:8}),t}))}),this.events.on(l.GridEvents.afterRowResize,function(t,e,i){var n=r.data.getItem(t.id),o=n.id,t=n.height,n=n.$height;t&&t!==n&&r.data.update(o,{height:i}),r.data.update(o,{$height:i},!0),r.config.data=r.data.map(function(t){return t}),r.paint()}),this.events.on(l.GridEvents.scroll,function(){r._lazyLoad()}),this.events.on(f.DataEvents.dataRequest,function(t,e){var i=r.data.dataProxy;i&&i.config&&r._prepareDataFromTo(r.data,t,e)})},g.prototype._prepareData=function(t){var e,i=this;return this._adjustColumns(),(Array.isArray(t)||f.isTreeCollection(t)?t:0!==(e=t.getInitialData()||[]).length?e:t.getRawData(0,t.getLength())).map(function(t){var e;return i.config.autoHeight&&void 0===t.height?(e=d.getMaxRowHeight(t,i.config.columns),t.$height=d.getCalculatedRowHeight(e,{rowHeight:i.config.rowHeight,padding:8})||i.config.rowHeight):t.$height=t.height||i.config.rowHeight,t})},g.prototype._prepareDataFromTo=function(t,e,i){var n=this;return t.mapRange(e,i,function(t){var e=d.getMaxRowHeight(t,n.config.columns);return t.$height=d.getCalculatedRowHeight(e,{rowHeight:n.config.rowHeight,padding:8})||n.config.rowHeight,t})},g.prototype._lazyLoad=function(){var i=this,t=this.data.dataProxy;if(t&&t.config){var e,n=this.data.getRawData(0,-1,null,2),o=p.getRenderConfig(this,n,{width:this.config.width,height:this.config.height}),r=t.config.limit,s=r,a=o.currentRows,l=a[0],c=a[a.length-1],d=this.data.getIndex(c.id),n=function(t){for(var e=1;e<a.length;e++)if("firstFilledRow"===t&&!a[e].$empty&&a[e-1].$empty||"firstEmptyRow"===t&&a[e].$empty&&!a[e-1].$empty)return i.data.getIndex(a[e].id)};if(l.$empty)if(c.$empty)e=this.data.getIndex(l.id);else{var u=n("firstFilledRow"),o=u-s;o<0&&(o=0);for(var h=o;h<u;h++)if(this.data.getItem(this.data.getId(h)).$empty){s=u-(e=h);break}}else c.$empty?e=n("firstEmptyRow"):(e=null!==(c=n("firstEmptyRow"))&&void 0!==c?c:this.data.getIndex(l.id),s=(null!==(n=n("firstFilledRow"))&&void 0!==n?n:d)-e);!this.data.isDataLoaded(e,d)&&this.data.events.fire(f.DataEvents.beforeLazyLoad,[])&&(t.updateUrl(null,{from:e,limit:s}),t.config.limit=r,this.data.load(t).then(function(){i.config.autoHeight&&i._prepareDataFromTo(i.data,e,d)}))}},g.prototype._getColumnGhost=function(t){var e=this._container||c.toNode(this._uid),i=e.querySelector(".dhx_header-row"),n=i.querySelector('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]'),n=Array.from(i.childNodes).indexOf(n)+1,t=e.querySelectorAll('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]:not(.dhx_span-cell)'),n=e.querySelectorAll(".dhx_grid_data .dhx_grid-cell:nth-child("+n+")"),o=document.createElement("div");return t.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),n.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),o},g.prototype._dragStartColumn=function(t,e){function i(t){return t.classList.contains("dhx_grid-custom-content-cell")}var n=t.target;i(n.parentElement)||i(n.parentElement.parentElement)||!(e.draggable||"column"===this.config.dragItem&&!1!==e.draggable||"both"===this.config.dragItem&&!1!==e.draggable)||c.locateNodeByClassName(t,"dhx_resizer_grip_wrap")||(t.targetTouches&&(this._touch.start=!0),f.dragManager.onMouseDown(t,[e.id],[this._getColumnGhost(e)]))},g);function g(t,e){var i=s.call(this,t,r({autoHeight:!1},e))||this;return i.scrollView=new h.ScrollView(function(){return i.getRootView()},{scrollHandler:function(t){return i.events.fire(l.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])}}),i}e.ProGrid=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.setItem=function(t,e){this._store[t]=e},o.prototype.getItem=function(t){return this._store[t]||null},o);function o(){this._store={}}var r=window.dhxHelpers=window.dhxHelpers||{};r.collectionStore=r.collectionStore||new n,e.collectionStore=r.collectionStore},function(t,l,c){"use strict";(function(t){var n,e=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(l,"__esModule",{value:!0});var o,i=c(13),r=c(1),s=c(23),e=(o=i.DataProxy,e(a,o),a.prototype.load=function(){var i=this;return new t(function(t,e){i._timeout?(clearTimeout(i._timeout),i._timeout=setTimeout(function(){s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0},i.config.delay),i._cooling&&(t(null),i._cooling=!1)):(s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0,i._timeout=setTimeout(function(){}))})},a);function a(t,e){var i=o.call(this,t)||this;return i.config=r.extend({from:0,limit:50,delay:50,prepare:0},e),i.updateUrl(t,{from:i.config.from,limit:i.config.limit}),i}l.LazyDataProxy=e}).call(this,c(12))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),n=i(20),r=i(9),i=(s.prototype.getId=function(){return this._selected},s.prototype.getItem=function(){return this._selected?this._data.getItem(this._selected):null},s.prototype.remove=function(t){return!(t=t||this._selected)||!!this.events.fire(n.SelectionEvents.beforeUnSelect,[t])&&(this._data.update(t,{$selected:!1},!0),this._selected=null,this.events.fire(n.SelectionEvents.afterUnSelect,[t]),!0)},s.prototype.add=function(t){this._selected!==t&&!this.config.disabled&&this._data.exists(t)&&(this.remove(),this._addSingle(t))},s.prototype.enable=function(){this.config.disabled=!1},s.prototype.disable=function(){this.remove(),this.config.disabled=!0},s.prototype._addSingle=function(t){this.events.fire(n.SelectionEvents.beforeSelect,[t])&&(this._selected=t,this._data.update(t,{$selected:!0},!0),this.events.fire(n.SelectionEvents.afterSelect,[t]))},s);function s(t,e,i){var n=this;this.events=i||new o.EventSystem(this),this._data=e,this.config=t,this._data.events.on(r.DataEvents.removeAll,function(){n._selected=null}),this._data.events.on(r.DataEvents.change,function(){var t;!n._selected||(t=n._data.getNearId(n._selected))!==n._selected&&(n._selected=null,t&&n.add(t))})}e.Selection=i},function(t,e,i){"use strict";var c=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var d=i(0),u=i(125),i=(n.prototype.add=function(t){this._data.push(t)},n.prototype.clear=function(){this._data.forEach(function(t){return t.destructor&&t.destructor()}),this._data=[]},n.prototype.getSizes=function(){return this._sizes},n.prototype.toVDOM=function(e,i){var n={left:20,right:20,top:10,bottom:10},t=this._data.filter(function(t){return!t.dataReady||t.dataReady().length});this._data.forEach(function(t){return!t.scaleReady||t.scaleReady(n)});var o=0,r=0;t.forEach(function(t){t.seriesShift&&(o+=t.seriesShift(),r++)});var s=o/r,o=r?(s-o)/2:0;t.forEach(function(t){t.seriesShift&&(t.seriesShift(o),o+=s)}),this._sizes=n;var a=e-n.left-n.right,l=i-n.top-n.bottom,l=d.sv("g",{transform:"translate("+n.left+", "+n.top+")"},c([d.sv("rect.dhx_chart-graph_area",{width:0<a?a:0,height:0<l?l:0,fill:"transparent"})],t.map(function(t){return t.paint(e-(n.left+n.right),i-(n.top+n.bottom))}))),t=d.sv("defs",[u.dropShadow(),u.shadow()]);return d.sv("svg",{width:e,height:i,role:"graphics-document"},[t,l])},n);function n(){this._data=[],this._sizes={left:20,right:20,top:10,bottom:10}}e.ComposeLayer=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0);e.shadow=function(){return n.sv("filter",{id:"shadow"},[n.sv("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[n.sv("feDistantLight",{azimuth:90,elevation:25})]),n.sv("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])},e.dropShadow=function(){return n.sv("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[n.sv("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),n.sv("feComposite",{in2:"offsetblur",operator:"in"}),n.sv("feMerge",[n.sv("feMergeNode"),n.sv("feMergeNode",{in:"SourceGraphic"})])])}},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(6),r=i(16),v=i(0),m=i(3),y=i(127);n.prototype.scaleReady=function(t){var e="column"===this.config.direction&&("left"===this.config.halign||"right"===this.config.halign);switch(this.config.valign){case"middle":"right"===this.config.halign?t.right+=0<=this.config.size?this.config.size:200:"left"===this.config.halign&&(t.left+=0<=this.config.size?this.config.size:200);break;case"top":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.top+=0<=this.config.size?this.config.size:40;break;case"bottom":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.bottom+=0<=this.config.size?this.config.size:40}},n.prototype.paint=function(n,t){var e,i,o=this,r=this._getData(),s=this.config;s.$sizes={width:0,height:0};var a=m.getFontStyle("legend-text"),l=s.margin,c=s.itemPadding,d=[],u="middle"===s.valign,h=0,f=0,p=0,g=0;switch(r.forEach(function(t,e){var i;u||"row"!==s.direction||(i=m.getTextWidth(t.text,a),n<h+i+15&&0!==e&&(h=0,f+=c+2)),d.push(v.sv("g",_(_({transform:"translate("+h+","+f+")",onclick:[o._handlers.onclick,t.id,o.config.values],onkeyup:[o._handlers.onkeyup,t.id,o.config.values],class:"legend-item "+(t.active?"":"not-active")},{role:"button","aria-label":(e=t).active?"Hide chart "+e.text:"Show chart "+e.text}),{tabindex:0}),[v.sv("text",{x:10,y:0,class:"start-text legend-text"},[m.verticalCenteredText(t.text)]),y.legendShape(s.form,t)]));t=15+m.getTextWidth(t.text,a);u||"row"!==s.direction?(h=0,p=t<p?p:t,g=(f+=c+2)<g?g:f):p=(h+=t+c)<p?p:h}),s.valign){case"top":i="row"===s.direction?-l-f-5:"center"===s.halign?5-g:l+5;break;case"middle":i=(t-g)/2+c/2;break;case"bottom":i="row"===s.direction?t+l:t+10-("center"===s.halign?0:l+g)}switch(s.halign){case"left":e=u?-p:5-("row"===s.direction?0:s.size||200);break;case"center":e=(n-p)/2;break;case"right":e=!u&&"row"===s.direction?n-p+c+5:n+l+5}return v.sv("g",{transform:"translate("+e+", "+i+")","aria-label":"Legend",tabindex:0},d)},n.prototype._getData=function(){var i=[];if(this.config.values){var n=m.locator(this.config.values.text),o=m.locator(this.config.values.color);this._data.map(function(t,e){i.push({id:t.id,text:n(t).toString(),alpha:1,fill:o(t).toString()||m.getDefaultColor(e),active:!t.$hidden})})}else if(this.config.treeSeries){var t=this.config.treeSeries;"groupName"===this.config.type?t.forEach(function(t){i.push({id:t.id,text:t.name||t.id,alpha:1,fill:t.color,active:t.active})}):t.forEach(function(t){var e;i.push({id:t.id,text:(e=t).from&&e.to?e.from+" - "+e.to:e.less?"<= "+e.less:e.greater?">= "+e.greater:void 0,alpha:1,fill:t.color,active:t.active})})}else for(var e=0,r=t=this.config.$seriesInfo;e<r.length;e++){var s=r[e].config,a=s.fill&&s.color;i.push({id:s.id,text:s.name||s.value,alpha:s.alpha,fill:s.fill||s.color,color:a&&s.color,active:s.active})}return i},i=n;function n(t,e,i){var n=this;this._data=t,this._events=i;this.config=_(_({},{form:"rect",itemPadding:20,halign:"right",valign:"top",direction:"row",type:"groupName"}),e),this.config.margin=e.margin||function(t,e,i){switch(e){case"middle":switch(t){case"right":return i?20:60;case"left":return 120;case"center":throw new Error("cant place legend on center, middle")}case"top":return 20;case"bottom":return i?20:60}}(this.config.halign,this.config.valign,o.isTreeCollection(this._data)),this._handlers={onclick:function(t,e){return n._events.fire(r.ChartEvents.toggleSeries,[t,e])},onkeyup:function(t,e,i){i.preventDefault(),"Enter"!==i.key&&" "!==i.key||n._events.fire(r.ChartEvents.toggleSeries,[t,e])}}}e.Legend=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(0),r={circle:function(t,e,i){return o.sv("circle",{id:n.uid(),r:5,fill:e,class:"figure "+("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":i,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,i){return o.sv("rect",{id:n.uid(),fill:e,"fill-opacity":i,width:10,"stroke-width":2,height:10,class:"figure "+("none"!==t?"with-stroke":""),stroke:t,transform:"translate(-5, -5)"})}};e.legendShape=function(t,e){return"string"==typeof t&&(t=r[t]),t(e.color||"none",e.fill,e.alpha||1)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(129),o=i(31),i=i(131),o={radial:n.RadialScale,text:i.TextScale,numeric:o.Scale};e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(17),i=i(31),o=(r=i.Scale,o(s,r),s.prototype.paint=function(t,e){var i=this;if(this.config.hidden)return null;var n=this.config.zebra,o=this.config.value,r=this.config.showAxis?this._axis.steps:null,s=this._axis.steps.map(function(t){return i.point(t)}),n={scales:this._data.map(function(t){return t[o]}),axis:s,realAxis:r,zebra:n,attribute:o};return a.radarScale(n,t,e)},s.prototype.point=function(t){return(t-this._axis.min)/(this._axis.max-this._axis.min)},s);function s(t,e){return r.call(this,t,e,"radial")||this}e.RadialScale=o},function(t,e,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),r=[1,2,3,5,10],i=(a.prototype.getScale=function(){var t=this.config.log?this._logSteps():this._calculateSteps(this._getStep());return{min:t[0],max:t[t.length-1],steps:t}},a.prototype._getStep=function(){var t=this.config.maxTicks,e=this.config.max-this.config.min,i=Math.floor(o.log10(e/t)),i=Math.pow(10,i)||1,t=e/i/t;return r[n(r,[t]).sort(function(t,e){return t-e}).indexOf(t)]*i},a.prototype._calculateSteps=function(t){for(var e=Math.floor(this.config.min/t),i=Math.ceil(this.config.max/t),n=[],o="radial"===this.config.type?e-1:e;o<=i;o++){var r=t*o;Math.floor(r)!==r&&(r=parseFloat(r.toFixed(8))),n.push(r)}return n},a.prototype._logSteps=function(){var t=[];if(this.config.min<0){for(var e=Math.ceil(o.log10(-this.config.min));0<e;e--)t.push(-Math.pow(10,e));t.push(0)}if(0<this.config.max)for(var i=Math.ceil(o.log10(this.config.max)),e=0;e<=i;e++)t.push(Math.pow(10,e));return t},a.prototype._addPadding=function(){this.config.min-=this.config.padding},a);function a(t,e){void 0===e&&(e={}),this._data=t;for(var i=[],n=0,o=this._data;n<o.length;n++){var r=o[n];"number"==typeof r&&i.push(r),"string"!=typeof r||isNaN(parseFloat(r))||i.push(parseFloat(r))}t={min:Math.min.apply(Math,i),max:Math.max.apply(Math,i),maxTicks:this._data.length<20?this._data.length:20};this.config=s(s({},t),e),this.config.padding&&this._addPadding()}e.AxisCreator=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(3),l=i(31),i=i(61),c={left:i.left,right:i.right,bottom:i.bottom,top:i.top},u={left:i.leftGrid,right:i.rightGrid,bottom:i.bottomGrid,top:i.topGrid},o=(s=l.Scale,o(d,s),d.prototype.scaleReady=function(t){var e=this._data.getLength()-1,i=this._data.map(this.locator);this._axis={max:e,steps:i},t[this._position]+=this.config.size},d.prototype.point=function(t){var e=this._axis.steps.indexOf(t);if(this._padding){var i=this._axis.max+1,t=.5/i,i=e/i;return this._isXDirection?t+i:1-t-i}return this._isXDirection?e/this._axis.max:1-e/this._axis.max},d.prototype.paint=function(i,n){var o=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t,e){return[o._isXDirection?o._getAxisPoint(e)*i:o.point(t)*n,t]});return c[this._position](t,this.config,i,n)},d.prototype.scaleGrid=function(){var s=this,a=this._position,l=this.config.grid,c=this.config.dashed,d=this.config.hidden;return{paint:function(t,e){var i,n,o=s._axis.steps.indexOf(s.config.targetLine),r=(i=t,n=e,s._axis.steps.map(function(t,e){return[s._isXDirection?s._getAxisPoint(e)*i:s._getAxisPoint(e)*n,t]})),o={targetLine:o,dashed:c,grid:l,hidden:d};return u[a](r,t,e,o)}}},d.prototype._setDefaults=function(t){this.locator=a.locator(t.text),this.config=r(r({},{scalePadding:30,textPadding:12,grid:!0,targetLine:null,showText:!0}),t)},d.prototype._getAxisPoint=function(t){var e=this._axis.max;if(this._padding){var i=e+1,n=.5/i,i=t/i;return this._isXDirection?n+i:1-n-i}return this._isXDirection?t/e:1-t/e},d);function d(){return null!==s&&s.apply(this,arguments)||this}e.TextScale=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(62),o=i(64),r=i(133),s=i(134),a=i(34),l=i(135),c=i(136),d=i(137),u=i(138),h=i(139),f=i(140),i=i(141),i={line:a.default,spline:h.default,area:n.default,splineArea:f.default,scatter:u.default,pie:l.default,pie3D:c.default,donut:s.default,radar:d.default,bar:o.default,xbar:r.default,treeMap:i.default};e.default=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,i=i(64),o=(r=i.default,o(s,r),s.prototype.addScale=function(t,e){t="top"===t||"bottom"===t?"left":"top";r.prototype.addScale.call(this,t,e)},s.prototype.paint=function(t,e,i){return r.prototype.paint.call(this,e,t,i)},s.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition>e?"left":"right"},s.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[1],r[0]);i[0]>s&&(i[0]=s,i[1]=r[1],i[2]=r[0],i[3]=r[2])}return i},s.prototype._getText=function(t){return t[4].toString()},s.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&i<t?1/0:Math.abs(e-n)},s.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+e+" "+(t[0]-this.config.barWidth/2)+"\nH "+t[1]+"\nv "+this.config.barWidth+"\nH "+e},s.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:0},s.prototype._text=function(t,e,i){e=(e+t[1])/2,t=t[0];return{x:e,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+e+" "+t+")":""}},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),G=this&&this.__assign||function(){return(G=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,B=i(0),Y=i(17),X=i(3),i=i(33),o=(r=i.default,o(s,r),s.prototype.paint=function(P,L){function H(t,e,i){return void 0===i&&(i=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":(e||"")+", "+t+" ("+X.roundToTwoNumAfterPoint(i)+"%)"}}var I=this,t=this.config,A=t.stroke,e=t.strokeWidth,j=t.useLines,R=t.subType,F=!e||e<1?4:15<e?15:e,$=P<L?P/2:L/2,N=-.25,V=[],W=[],z=[];return 1<this._points.length&&A&&V.push(B.sv("circle",{cx:0,cy:0,r:$-.5,fill:A})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=Y.getCoordinates(N,$,$,1<I._points.length&&A?F/2:null),d=c[0],u=c[1],h=N+n/2;N+=n+l;var f=Y.getCoordinates(N,$,$,1<I._points.length&&A?-F/2:null),p=f[0],g=f[1],_=.5<n?1:0,v=Y.getCoordinates(h,$,$),m=-.25<h&&h<.25,y=.5<h||h<0,x=h<.25?5:-5,c=[5,30],l=c[0],b=c[1],f=[Y.getCoordinates(h,$+l,$+l),Y.getCoordinates(h,$+b,$+b)],c=f[0],w=f[1];switch(I.config.subType){case"basic":var C=m?"donut-value-title start-text":"donut-value-title end-text",E=y?-20:10,S=Y.getCoordinates(h,$+10,$+10),k=m?"donut-value start-text":"donut-value end-text",D={text1:{x:(j?w:S)[0],y:(j?w:S)[1]+E,width:0,height:0,class:""},text2:{x:(j?w:S)[0],y:(j?w:S)[1]+E+16,width:0,height:0,class:""},changeSector:!1,line:x,right:m,dy:E},O=B.sv("text",G(G({x:(j?w:S)[0],y:(j?w:S)[1]+E,class:C},H(o,s,n)),{tabindex:0}),[X.verticalCenteredText(s.toString())]),C=B.sv("text",{x:(j?w:S)[0],y:(j?w:S)[1]+E+16,class:k,"aria-hidden":"true"},[X.verticalCenteredText(o.toString())]),k=X.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});D.text1.width=k[0],D.text1.height=k[1],k=X.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),D.text2.width=k[0],D.text2.height=k[1];var M=j?$+b:$+10;0!==W.length&&(m?(W.forEach(function(t){X.checkPositions(D.text1,t.text1,M,M,D),X.checkPositions(D.text1,t.text2,M,M,D)}),D.text1.class&&(D.text2.class=D.text1.class)):(W.forEach(function(t){X.checkPositions(D.text2,t.text2,M,M,D),X.checkPositions(D.text2,t.text1,M,M,D)}),D.text2.class&&(D.text1.class=D.text2.class)),O.attrs.x=D.text1.x,O.attrs.y=D.text1.y,C.attrs.x=D.text2.x,C.attrs.y=D.text2.y,(D.text1.class||D.text2.class)&&(O.attrs.class=D.text1.class,C.attrs.class=D.text2.class),x=D.line,j?(w[0]=D.text1.x,w[1]=D.text1.y-E):(S[0]=D.text1.x,S[1]=D.text1.y-E)),W.push(D);S=B.sv("text",G({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},H(o,s,n)),[X.verticalCenteredText(Math.round(100*n)+"%")]);i.push(B.sv("g",{id:r+"-text",class:"chart donut"},[O,C])),i.push(S);break;case"valueOnly":var T=B.sv("text",G(G({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},H(o,s,n)),{tabindex:0}),[X.verticalCenteredText(""+o)]);i.push(T);break;case"percentOnly":T=B.sv("text",G(G({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},H(o,s,n)),{tabindex:0}),[X.verticalCenteredText(Math.round(100*n)+"%")]);i.push(T)}j&&"basic"===R&&(E=y?3:0,i.push(B.sv("path",{d:"M"+c[0]+" "+c[1]+" L"+w[0]+"\n\t\t\t\t\t\t\t"+(w[1]+E)+" h "+x,id:r+"-connector",class:"pie-value-connector chart donut"})));l=0,f=0,c=F/(2*Math.sin(Math.PI/I._points.length));1<I._points.length&&A&&(l=(c=Y.getCoordinates(h,c,c))[0],f=c[1]);g="M "+d+" "+u+" A "+$+" "+$+" 0 "+_+" 1 "+p+" "+g+"\n\t\t\t\tL "+(0+l)+" "+(0+f),l=Y.getCoordinates(h,4,4),f=l[0],l=l[1],l=B.sv("path",{d:g,_key:r,fill:a||X.getDefaultColor(e),class:"chart donut",onclick:[I._handlers.onclick,t[1],t[2]],onmouseout:[Y.pieLikeHandlers.onmouseout],onmouseover:[Y.pieLikeHandlers.onmouseover,f,l],role:"presentation"});i.unshift(l),V.push(B.sv("g",{id:r},i)),1===I._points.length?z.push([P/2,L/2]):z.push([.8*v[0]+P/2,.8*v[1]+L/2])}),this._center=[P/2,L/2],this._tooltipData=z,(V=V.concat([])).push(B.sv("circle",{cx:0,cy:0,r:5*$/9,fill:"#FFFFFF",role:"presentation"})),B.sv("g",G(G({transform:"translate("+P/2+", "+L/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),V)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),X=this&&this.__assign||function(){return(X=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,q=i(1),U=i(0),K=i(17),J=i(3),i=i(33),o=(r=i.default,o(s,r),s.prototype.paint=function(P,L){var H=this,t=this.config,I=t.stroke,e=t.strokeWidth,A=t.gradient,j=t.useLines,R=t.showText,F=t.showTextTemplate,$=t.subType,N=!e||e<1?4:15<e?15:e,V=P<L?P/2:L/2,W=-.25,z=[],G=[],e=[],B=[],Y=[];return 1<this._points.length&&I&&e.push(U.sv("circle",{cx:0,cy:0,r:V-.5,fill:I})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=a||J.getDefaultColor(e);A&&(p=A(a),g="gradient"+q.uid(),_=J.getRadialGradient(p.options,p.stops,g),c="url(#"+g+")",B.push(_));var d=K.getCoordinates(W,V,V,1<H._points.length&&I?N/2:null),e=d[0],a=d[1],u=W+n/2,h=u<.25?5:-5,f=K.getCoordinates(u,V,V);W+=n+l;var p=K.getCoordinates(W,V,V,1<H._points.length&&I?-N/2:null),g=p[0],_=p[1],d=.5<n?1:0,l=[5,30],p=l[0],v=l[1],l=[K.getCoordinates(u,V+p,V+p),K.getCoordinates(u,V+v,V+v)],p=l[0],m=l[1],y=-.25<u&&u<.25,x=.5<u||u<0,b=-.25<u&&u<.25?"pie-value start-text":"pie-value end-text";switch((R||F)&&!1!==R&&(T=U.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[F?J.verticalCenteredText(F(o.toString())):J.verticalCenteredText(o.toString())]),i.push(T)),H.config.subType){case"basic":var w=x?-20:10,C=K.getCoordinates(u,V+10,V+10),E=y?"donut-value start-text":"donut-value end-text",S={text1:{x:(j?m:C)[0],y:(j?m:C)[1]+w,width:0,height:0,class:""},text2:{x:(j?m:C)[0],y:(j?m:C)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:w},k=U.sv("text",X({x:(j?m:C)[0],y:(j?m:C)[1]+w,class:b},(D=n,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(s||"")+", "+o+" ("+J.roundToTwoNumAfterPoint(D)+"%)"})),[J.verticalCenteredText(s.toString())]),D=U.sv("text",{x:(j?m:C)[0],y:(j?m:C)[1]+w+16,class:E,"aria-hidden":"true"},[J.verticalCenteredText(o.toString())]),E=J.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});S.text1.width=E[0],S.text1.height=E[1],E=J.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),S.text2.width=E[0],S.text2.height=E[1];var O=j?V+v:V+10;0!==z.length&&(y?(z.forEach(function(t){J.checkPositions(S.text1,t.text1,O,O,S),J.checkPositions(S.text1,t.text2,O,O,S)}),S.text1.class&&(S.text2.class=S.text1.class)):(z.forEach(function(t){J.checkPositions(S.text2,t.text2,O,O,S),J.checkPositions(S.text2,t.text1,O,O,S)}),S.text2.class&&(S.text1.class=S.text2.class)),k.attrs.x=S.text1.x,k.attrs.y=S.text1.y,D.attrs.x=S.text2.x,D.attrs.y=S.text2.y,(S.text1.class||S.text2.class)&&(k.attrs.class=S.text1.class,D.attrs.class=S.text2.class),h=S.line,j?(m[0]=S.text1.x,m[1]=S.text1.y-w):(C[0]=S.text1.x,C[1]=S.text1.y-w)),z.push(S);C=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(U.sv("g",{id:r+"-text",class:"chart donut"},[k,D])),i.push(C);break;case"valueOnly":var M=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(""+o)]);i.push(M);break;case"percentOnly":M=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(M)}j&&"basic"===$&&(w=x?3:0,i.push(U.sv("path",{d:"M"+p[0]+" "+p[1]+" L"+m[0]+"\n\t\t\t\t\t\t\t"+(m[1]+w)+" h "+h,id:r+"-connector",class:"pie-value-connector chart pie"})));var l=0,T=0,p=N/(2*Math.sin(Math.PI/H._points.length));1<H._points.length&&I&&(l=(p=K.getCoordinates(u,p,p))[0],T=p[1]);_="M "+e+" "+a+" A "+V+" "+V+" 0 "+d+" 1 "+g+" "+_+"\n\t\t\t\tL "+(0+l)+" "+(0+T),l=K.getCoordinates(u,4,4),T=l[0],l=l[1],l=U.sv("path",{d:_,class:"chart pie",_key:r,fill:c,onclick:[H._handlers.onclick,t[1],t[2]],onmouseover:[K.pieLikeHandlers.onmouseover,T,l],onmouseout:[K.pieLikeHandlers.onmouseout],role:"presentation"});i.unshift(l),Y.push(U.sv("g",{id:r},i)),1===H._points.length?G.push([P/2,L/2]):G.push([.7*f[0]+P/2,.7*f[1]+L/2])}),this._center=[P/2,L/2],this._tooltipData=G,e.push(U.sv("defs",B)),e=(e=e.concat(Y)).concat([]),U.sv("g",X(X({transform:"translate("+P/2+", "+L/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),e)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),X=this&&this.__assign||function(){return(X=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,q=i(0),U=i(17),K=i(3),i=i(33),o=(r=i.default,o(s,r),s.prototype.paint=function(L,H){var I=this,t=this.config,A=t.subType,j=t.useLines,R=t.showText,F=t.showTextTemplate,$=L<H?L/2:H/2,N=.5*$,V=$/5,W=[],z=-.25,G=[],B=[],Y=[];return this._points.forEach(function(t,e){var i=t[0],n=t[1],o=t[2],r=t[3],s=t[4],a=0===i||1===i?-1e-6:0,l=U.getCoordinates(z,$,N),c=l[0],d=l[1],u=z+i/2,h=u<.25?5:-5,f=U.getCoordinates(u,$,N),p=0;0<u&&u<.5&&(p=V*Math.sin(2*Math.PI*u));var g=U.getCoordinates(u,$+5+p,5+N+p),_=U.getCoordinates(u,$+30+p,30+N+p),v=z+i+a,m=U.getCoordinates(v,$,N),l=m[0],a=m[1],m=.5<i?1:0,y=-.25<u&&u<.25,x=.5<u||u<0,b=y?"pie-value start-text":"pie-value end-text";switch(I.config.subType){case"basic":var w=x?-20:10,C=y?"donut-value start-text":"donut-value end-text",E={text1:{x:(j?_:g)[0],y:(j?_:g)[1]+w,width:0,height:0,class:""},text2:{x:(j?_:g)[0],y:(j?_:g)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:w},S=q.sv("text",X({x:(j?_:g)[0],y:(j?_:g)[1]+w,dx:j?0<h/2+h?10:-10:null,class:b},(D=i,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(r||"")+", "+n+" ("+K.roundToTwoNumAfterPoint(D)+"%)"})),[K.verticalCenteredText(r.toString())]),k=q.sv("text",{x:(j?_:g)[0],y:(j?_:g)[1]+w+16,dx:j?0<h/2+h?10:-10:null,class:C,"aria-hidden":"true"},[K.verticalCenteredText(n.toString())]),D=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]),C=K.getSizesSVGText(r.toString(),{font:"normal 14px Roboto",lineHeight:14});E.text1.width=C[0],E.text1.height=C[1],C=K.getSizesSVGText(n.toString(),{font:"normal 12px Roboto",lineHeight:12}),E.text2.width=C[0],E.text2.height=C[1];var O=j?$+30+p:$+5+p,M=j?30+N+p:5+N+p;0!==Y.length&&(y?(Y.forEach(function(t){K.checkPositions(E.text1,t.text1,O,M,E),K.checkPositions(E.text1,t.text2,O,M,E)}),E.text1.class&&(E.text2.class=E.text1.class)):(Y.forEach(function(t){K.checkPositions(E.text2,t.text2,O,M,E),K.checkPositions(E.text2,t.text1,O,M,E)}),E.text2.class&&(E.text1.class=E.text2.class)),S.attrs.x=E.text1.x,S.attrs.y=E.text1.y,k.attrs.x=E.text2.x,k.attrs.y=E.text2.y,(E.text1.class||E.text2.class)&&(S.attrs.class=E.text1.class,k.attrs.class=E.text2.class),h=E.line,j?(_[0]=E.text1.x,_[1]=E.text1.y-w):(g[0]=E.text1.x,g[1]=E.text1.y-w)),Y.push(E),B.push(S,k,D);break;case"valueOnly":var T=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(n.toString())]);B.push(T);break;case"percentOnly":T=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]);B.push(T)}j&&"basic"===A&&B.push(q.sv("path",{d:"M"+g[0]+" "+g[1]+" L"+_[0]+" "+_[1]+" h "+h,class:"pie-value-connector"})),(R||F)&&!1!==R&&(P=q.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[F?K.verticalCenteredText(F(n)):K.verticalCenteredText(n.toString())]),B.push(P));var P="";z<=0&&.5<=v?P="M "+$+" 0 v "+V+" A "+$+" "+N+" 0 1 1 "+-$+" "+V+" v "+-V:z<=0&&v<.5?P="M "+$+" 0 v "+V+" A "+$+" "+N+" 0 0 1 "+l+" "+(a+V)+" v "+-V:0<z&&z<=.5&&.5<=v?P="M "+c+" "+d+" v "+V+" A "+$+" "+N+" 0 0 1 "+-$+" "+V+" v "+-V:0<z&&v<.5&&(P="M "+c+" "+d+" v "+V+" A "+$+" "+N+" 0 0 1 "+l+" "+(a+V)+" v "+-V),P&&(P=q.sv("path",{_key:o+"__shadow__",d:P,fill:s||K.getDefaultColor(e),onclick:[I._handlers.onclick,t[1],t[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"}),G.push(P));a="M "+c+" "+d+" A "+$+" "+N+" 0 "+m+" 1 "+l+" "+a+" L 0 0";G.push(q.sv("path",{d:a,_key:o,fill:s||K.getDefaultColor(e),stroke:"none",onclick:[I._handlers.onclick,t[1],t[2]],class:"chart pie3d",role:"presentation"})),1===I._points.length?W.push([L/2,H/2]):W.push([.7*f[0]+L/2,.7*f[1]+H/2]),z=v}),this._center=[L/2,H/2],this._tooltipData=W,G=G.concat(B),q.sv("g",X(X({transform:"translate("+L/2+", "+H/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),G)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),c=i(17),l=i(3),i=i(21),o=(s=i.default,o(d,s),d.prototype.addScale=function(t,e){this._scale=e},d.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},d.prototype.dataReady=function(n){var o=this;if(!this.config.active)return this._points=[];var r=l.locator(this._scale.config.value);return this._points=this._data.map(function(t,e){var i=o._locator(t),i=[i,i,t.id,i,i];return n&&(i[1]+=n[e][1]),r&&i.push(r(t)),i}),this._points},d.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t}},d.prototype.paint=function(t,e){var o=this;s.prototype.paint.call(this,t,e);if(this.config.active){var i=this.config,t=[],e=this._points.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ")+"Z";return t.push(a.sv("path",{d:e,stroke:i.color,"stroke-width":i.strokeWidth,fill:i.fill,"fill-opacity":i.alpha,class:"chart radar"})),i.pointType&&(e=this._points.map(function(t){return o._drawPointType(t[0],t[1],l.calcPointRef(t[2],o.id))}).map(function(t){var e,i,n;return t&&t.attrs&&(t.attrs=r(r({},t.attrs),(e=t.key,i=o._points,e&&(n=i.find(function(t){return e.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":n?"point x="+n[5]+" y="+n[4]:"",tabindex:0}))),t}),t.push(a.sv("g",e))),a.sv("g",r(r({id:"seria"+i.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),t)}},d.prototype._calckFinalPoints=function(n,o){var r=this,s=n<o?n/2:o/2,a=1/this._data.getLength(),l=-.25-a;this._points.forEach(function(t,e){l+=a;var i=r._scale.point(t[0]),i=c.getCoordinates(l,i*s,i*s);t[0]=i[0]+n/2,t[1]=i[1]+o/2})},d.prototype._defaultLocator=function(t){return this._locator(t)},d.prototype._setDefaults=function(t){this._locator=l.locator(t.value),t.scales=t.scales||["radial"],this.config=r(r({},{strokeWidth:2,active:!0,tooltip:!0,paddings:5,color:"none",fill:"none",pointType:"circle"}),t),this.config.pointType&&(t=this.config.pointColor||this.config.color,this._drawPointType=this._getPointType(this.config.pointType,t))},d);function d(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(34),l=i(3),o=(s=a.default,o(c,s),c.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=l.locator(this.config.value)):(this.yScale=e,this._yLocator=l.locator(this.config.valueY))},c.prototype._setDefaults=function(t){this.config=r(r({},{active:!0,tooltip:!0,pointType:"rect"}),t);var e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(0),l=i(65),i=i(34),o=(r=i.default,o(s,r),s.prototype._getForm=function(t,e,i,n,o){var r=e.color,s=e.css,t=l.default(t);return a.sv("path",{id:"seria"+e.id,d:t,class:s,stroke:r,"stroke-width":2,fill:"none"})},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,h=i(0),f=i(65),i=i(62),o=(r=i.default,o(s,r),s.prototype._form=function(t,e,i,n){var o=this.config,r=o.fill,s=o.alpha,a=o.strokeWidth,l=o.color,c=o.id,d=this.config.css,u="",o=this._points[0],u=n?f.default([].concat(n).reverse())+" "+f.default(this._points,!0)+" Z":"M"+o[0]+" "+e+" V "+o[1]+" "+f.default(this._points)+" V"+e+" H "+o[0];a&&(o=f.default(this._points),l=h.sv("path",{d:o,"stroke-width":a,stroke:l,fill:"none","stroke-linecap":"butt",class:d}),i.push(l));s=h.sv("path",{id:"seria"+c,d:u,class:d,fill:r,"fill-opacity":s,stroke:"none"});return i.push(s),i},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),C=this&&this.__assign||function(){return(C=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,E=i(1),S=i(0),s=i(6),k=i(3),a=i(16),i=i(21),o=(r=i.default,o(l,r),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.toggle=function(e){var t=this.config.treeSeries.find(function(t){return t.id===e});t&&(t.active=!t.active)},l.prototype.dataReady=function(){var s=this;if(!this.config.active)return this._points=[];var a="groupName"===this.config.legendType;return this._sum=0,this._data.forEach(function(t){var e,i=s._data.getItem(s._data.getParent(t.id));i&&i.$hidden&&1<s._maxLevel||(e=s._valueLocator(t))&&(i=s._getSerie(a?t.id:e,a),t.color=(i||t).color,t.$hidden=!!i&&!i.active,!t.$hidden&&e&&(s._sum+=parseFloat(t[s.config.value])))}),this._points=[],this._data.eachChild(this._data.getRoot(),function(t){var o,e,r,i;t.$hidden||(o=s._valueLocator(t),e=s._textLocator(t),r=[],!o&&s._data.haveItems(t.id)&&(o=0,s._data.eachChild(t.id,function(t){var e,i,n;t.$hidden||(e=s._valueLocator(t),i=s._textLocator(t),n=t.color||(null===(n=s._getSerie(a?t.id:e,a))||void 0===n?void 0:n.color),e&&(o+=e),r.push([0,e,t.id,i,n]))})),t.percent=parseFloat(o)/s._sum,i=t.color||(null===(i=s._getSerie(a?t.id:o,a))||void 0===i?void 0:i.color),s._points.push([t.percent,o,t.id.toString(),e,i,{items:r}]))},!1),this._maxLevel=this._getMaxLevel(),this._points},l.prototype.paint=function(t,e){var p=this;if(!!this.config.treeSeries.find(function(t){return t.active})){var g=this.config.strokeWidth,_=[],v=[],i=[],n=1<this._maxLevel?2*g:g,t=t-n,e=e-n;this._layout={id:E.uid(),area:t*e,width:t,height:e,restArea:t*e,restWidth:t,restHeight:e,startX:n/2,startY:n/2,stroke:n};var m=this._layout.startX,y=this._layout.startY;return this._layout.width>=this._layout.height?this._layout.cols=[]:this._layout.rows=[],this._points.sort(function(t,e){return e[0]-t[0]}),this._points.forEach(function(e,t,i){var n,o,r,s,a,l,c,d,u=e[0],h=(e[1],e[2]),f=(e[3],e[4],e[5]);0!==u&&(n=(r=p._drawBar(e,t,i,p._layout,m,y,!(!f||null===(a=f.items)||void 0===a||!a.length)))[0],o=r[1],u=r[2],t=r[3],i=r[4],a=r[5],r=r[6],m=a[0],y=a[1],v.push(S.sv("g",{id:h},[n,o,r])),_.push(u),f&&null!==(s=f.items)&&void 0!==s&&s.length&&(s=a[2]-g,a=a[3]-g,l={id:E.uid(),parent:p._layout.id,area:s*a,width:s,height:a,restArea:s*a,restWidth:s,restHeight:a,startX:m+g/2,startY:y+g/2+("asc"!==p.config.direction&&r?g/2:0),stroke:g},c=l.startX,d=l.startY,l.width>=l.height?l.cols=[]:l.rows=[],f.items.map(function(t){return t[0]=t[1]/e[1]}),f.items.sort(function(t,e){return e[0]-t[0]}),f.items.forEach(function(t,e,i){var n=t[2],o=p._drawBar(t,e,i,l,c,d,!1),r=o[0],t=o[1],e=o[2],i=o[3],o=o[4];v.push(S.sv("g",{id:n},[r,t])),_.push(e),c=i,d=o})),m=t,y=i)}),i.push(S.sv("defs",_)),i=i.concat(v),S.sv("g",C(C({id:"seria"+this.config.id},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0,transform:"asc"===this.config.direction?"rotate(180 "+(this._layout.startX+this._layout.width/2)+" "+(this._layout.startY+this._layout.height/2)+")":""}),i)}},l.prototype._drawBar=function(t,e,i,n,o,r,s){var a=this,l=t[0],c=t[1],d=t[2],u=t[3],h=t[4],f=this.config,p=f.stroke,g=f.showText,_=f.showTextTemplate,v=l*n.area,m=this._getDeepParent(n),y=s&&0<l&&u,x=n.startX+n.width-m.restWidth,b=n.startY+n.height-m.restHeight;o=x<o?x:o,r=b<r?b:r;f=this._getBar(m,v,o,r,i,e,n.area),x=f[0],b=f[1],m=f[2],o=f[3],r=f[4];if(!(x[2]<0||x[3]<0)){this._recountParentArea(v,r,n);var w,f=y?S.sv("rect",{x:x[0]+n.stroke/4,y:"asc"===this.config.direction?x[1]+x[3]-this._headerHeight-n.stroke/2:x[1]+n.stroke/4,width:x[2]-n.stroke/2,height:this._headerHeight+n.stroke/4,stroke:p,"stroke-width":n.stroke/2,class:"treeMap-header",_key:d,onclick:function(){return a._toggleGroup(d)}}):null,v=y?S.sv("text",{x:x[0]+x[2]/2,y:"asc"===this.config.direction?x[1]+x[3]-this._headerHeight/2-n.stroke/2:x[1]+this._headerHeight/2+n.stroke/2,class:"header-text","aria-hidden":"true",transform:"asc"===this.config.direction?"rotate(180 "+(x[0]+x[2]/2)+" "+(x[1]+x[3]-this._headerHeight/2-n.stroke/2)+")":""},[_?k.verticalCenteredText(_(null==u?void 0:u.toString())):k.verticalCenteredText(null==u?void 0:u.toString())]):null,r=s&&0<l&&u?S.sv("g",{},[f,v]):null,y=_?_(null==u?void 0:u.toString()):null==u?void 0:u.toString(),f=k.getSizesSVGText(y,{font:"normal 12px Roboto",lineHeight:14})[0]<x[2]-2*n.stroke,v=E.uid(),_=x[2]>2*n.stroke&&x[3]>2*n.stroke?S.sv("clipPath",{id:v,"clip-rule":"nonzero"},[S.sv("rect",{x:x[0]+n.stroke,y:x[1]+n.stroke,width:x[2]-2*n.stroke,height:x[3]-2*n.stroke,fill:"none",stroke:"black"})]):null,e=S.sv("rect",C(C({},(w=l,{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":(u||"")+", "+c+" ("+k.roundToTwoNumAfterPoint(w)+"%)"})),{x:x[0],y:x[1],width:x[2],height:x[3],stroke:p,"stroke-width":n.stroke,class:"chart treeMap",_key:d,fill:h,onclick:[this._handlers.onclick,t[1],t[2]],onmousemove:1<this._maxLevel&&1===this._getDataLevel(d)?"":[this._handlers.onmousemove,i[e][2],this.id],onmouseleave:1<this._maxLevel&&1===this._getDataLevel(d)?"":[this._handlers.onmouseleave,i[e][2],this.id]})),y=g?S.sv("text",{x:f?b[0]:x[0]+n.stroke,y:b[1],class:"treeMap-inner-value "+(f?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'+v+'")',transform:"asc"===this.config.direction?"rotate(180 "+b[0]+" "+b[1]+")":""},[k.verticalCenteredText(y)]):null;return s&&r&&(x[1]+="asc"===this.config.direction?0:this._headerHeight,x[3]-=this._headerHeight+n.stroke/4),[e,y,_,m,o,x,r]}},l.prototype._getBar=function(t,e,i,n,l,c,d){var o,r,s,a,u=this,h=function(t,e,i,n){for(var o={area:0,width:t.width,height:t.height},r=e;r<=i;r++)o.area+=l[r][0]*d;"rows"===n?o.width=o.area/o.height:o.height=o.area/o.width;var s="rows"===n?o.width:t.area/o.height,a="rows"===n?t.area/o.width:o.height;return(s/a>u._aspectRatio||a/s>u._aspectRatio)&&.01<l[c][0]&&i!==u._points.length-1?h(t,e,i+1,n):[s,a,o]},f=i,p=n,g=t.restWidth>t.restHeight?"cols":"rows",_="cols"==g?"rows":"cols",v="cols"==g?e/t.restHeight:t.restWidth,m="cols"==g?t.restHeight:e/t.restWidth;return(m/v>this._aspectRatio||v/m>this._aspectRatio)&&0!==Math.round(e-t.restArea)&&c<l.length-2&&e<t.restArea?(o=void 0,r={id:E.uid(),area:e,width:v,height:m},s=h(r,c,c+1,_),r.width=s[0],r.height=s[1],o=s[2],v=r.width,m=r.height,(s={id:E.uid(),area:o.area,width:o.width,height:o.height,restArea:o.area,restWidth:"cols"==_?o.width-v:o.width,restHeight:"cols"==_?o.height:o.height-m})[_]=[r],o=s,r.parent=o.id,t[g]||t[_]?t[_]?(a=E.uid(),t[_].push(((s={id:a,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"==g?t.restWidth-o.width:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-o.height})[g]=[o],s)),o.parent=a):(t[g].push(o),o.parent=t.id):(t[g]=[o],o.parent=t.id),"cols"==g?(t.restWidth-=o.width,p+=m):(t.restHeight-=o.height,f+=v)):(r={id:E.uid(),area:e,width:v,height:m},t[_]&&t.restArea.toFixed(2)>e.toFixed(2)?(a=E.uid(),t[_].push(((_={id:a,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"==g?t.restWidth-v:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-m})[g]=[r],_)),r.parent=a):((t.cols||t.rows).push(r),r.parent=t.id,"cols"==g?t.restWidth-=v:t.restHeight-=m),"cols"==g?(f+=v,p=0===Math.round(t.restArea-e)?p+m:p):(p+=m,f=0===Math.round(t.restArea-e)?f+v:f)),[[i,n,r.width,r.height],[i+r.width/2,n+r.height/2],f,p,r.parent]},l.prototype._setDefaults=function(t){this.config=C(C({},{active:!0,stroke:"#FFFFFF",strokeWidth:2,showText:!0,tooltip:!0,paddings:5,color:"none",fill:"none",direction:"desc"}),t),this._headerHeight=25,this._aspectRatio=2.5,this._valueLocator=k.locator(t.value),this._textLocator=k.locator(t.text)},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getSerie=function(i,n){var o=this;return this.config.treeSeries.find(function(t){if(n){var e=o._data.getParent(i);return t.id===e||t.id===i}return t.from&&t.to&&i>=t.from&&i<t.to||t.less&&i<t.less||t.greater&&i>t.greater})},l.prototype._getDataLevel=function(t){var e=1;return this._data.eachParent(t,function(){e++}),e},l.prototype._getMaxLevel=function(){var e=this,i=1;return this._data.forEach(function(t){t=e._getDataLevel(t.id);i=Math.max(t,i)}),i},l.prototype._getDeepParent=function(t){var e=null===(e=t.cols||t.rows)||void 0===e?void 0:e.find(function(t){return t.restArea&&0<Math.round(t.restArea)});return e?this._getDeepParent(e):t},l.prototype._getLayoutObj=function(t,e){var i;if(void 0===e&&(e=this._layout),e.id===t)i=e;else{var n=e.cols||e.rows;if(!n||!n.length)return;for(var o=0;o<n.length&&!(i=this._getLayoutObj(t,n[o]));o++);}return i},l.prototype._recountParentArea=function(t,e,i){e=this._getLayoutObj(e,i);e&&e.id!==i.parent&&(e.restArea-=t,e.parent&&this._recountParentArea(t,e.parent,i))},l.prototype._toggleGroup=function(e){var i=this,n=0;this.config.treeSeries.forEach(function(t){t.active&&n++}),this._data.eachChild(this._data.getRoot(),function(t){t.id!==e&&("groupName"===i.config.legendType?(1<n&&(i._getSerie(t.id,!0).active=!0),i._events.fire(a.ChartEvents.toggleSeries,[t.id])):(t.$hidden=!t.$hidden,i._events.fire(s.DataEvents.change)))},!1)},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(0),i=(n.prototype.add=function(t){this._series.push(t)},n.prototype.dataReady=function(e){return this._toPaint=this._series.filter(function(t){t=t.dataReady(e);return!!t.length&&(e=t,!0)}),e||[]},n.prototype.getPoints=function(){return this._toPaint.length?this._toPaint[0].getPoints().concat(this._toPaint[this._toPaint.length-1].getPoints()):[]},n.prototype.paint=function(n,o,r){var s=[],a=[];return this._toPaint.forEach(function(t){var e,i;t.paintformAndMarkers?(i=(e=t.paintformAndMarkers(n,o,r))[0],e=e[1],s.push(i),a.push(e)):(i=t.paint(n,o,r),s.push(i)),r=t.getPoints()}),l.sv("g",s.concat(a))},n);function n(){this._series=[]}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var g=i(58),s=i(3),_=i(63),n=i(16),i=(o.prototype.destructor=function(){this._tooltip&&(document.body.removeChild(this._tooltip),this._tooltip=null)},o.prototype._showLineTooltip=function(t){for(var e,i,n,o,r,s="",a=this._chart.getRootView(),l=0,c=0,d=t;c<d.length;c++){var u,h,f,p=d[c];l+=p.top,this._prevLine=a&&a.refs&&a.refs["line"+Math.round(p.left)]&&a.refs["line"+Math.round(p.left)].el,this._prevLine.classList.add("grid-line__active"),!p.text||(h=(u=this._chart.getSeries(p.seriaId)).getPoints()).length&&u.config.tooltip&&(f=u.config.pointColor||(u.config.color&&"none"!==u.config.color?u.config.color:u.config.fill),f=_.getShadeHTMLHelper("empty"!==u.config.pointType&&u.config.pointType?u.config.pointType:"simpleRect",f),s+='<div class="line-point" _ref="dhx_tooltip_'+u.config.id+'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">'+f(4,4,h[0][2])+'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_'+u.config.id+'_text">'+p.text+"</span>\n\t\t\t</div>")}s&&(this._tooltip||this._createTooltip(),e=document.body.offsetHeight,r=document.body.offsetWidth,this._tooltip.innerHTML=s,this._tooltip.classList.add("dhx_chart_tooltip__visible"),o=l/t.length,i=this._prevLine.getBoundingClientRect(),n=this._tooltip.offsetHeight,t=this._tooltip.offsetWidth,e<(o=o-n/2+i.top+window.scrollY)+n&&(o-=o+n-e),r<(r=i.left+10)+t&&(r=i.left-t-10),(t=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=t.toString()),this._tooltip.style.left=r+"px",this._tooltip.style.top=o+"px")},o.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var i=document.body.offsetHeight,n=document.body.offsetWidth;this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible");var o=this._tooltip.offsetHeight,r=this._tooltip.offsetWidth,s=e.pageY+10,t=e.pageX+10;i<s+o&&(s=e.pageY-o),n<t+r&&(t=e.pageX-r-10);r=g.getZIndex(this._chart.getRootNode());r&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=t+"px",this._tooltip.style.top=s+"px"},o.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e,i,n,o,r=this._chart.getSeries(t[4]);!r||(o=r.getTooltipText(t[3]))&&(e=this._chart._layers.getSizes(),i=this._chart.getRootNode().getBoundingClientRect(),this._tooltip.innerHTML=o,this._tooltip.classList.add("dhx_chart_tooltip__visible"),n=document.body.offsetHeight,r=this._tooltip.offsetHeight,n<(o=t[2]+i.top+r/2+e.top-("radar"===this._chart.config.type?10:15))+r&&(o=t[2]+i.top-r/2+e.top-("radar"===this._chart.config.type?10:15)),n<o+r&&this._tooltip.classList.remove("dhx_chart_tooltip__visible"),(r=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=i.left+t[1]+10+"px",this._tooltip.style.top=o+"px")},o.prototype._createTooltip=function(){this._tooltip=document.createElement("div"),this._tooltip.setAttribute("data-dhx-widget-id",this._chart._uid),this._tooltip.classList.add("dhx_chart_tooltip","dhx_chart_tooltip_line","dhx_chart_tooltip__hidden","tooltip-text"),document.body.appendChild(this._tooltip)},o.prototype._initEvents=function(){var a=this;this._chart.events.on(n.ChartEvents.chartMouseMove,function(n,o){var r,s;a._prevLine&&a._prevLine.classList.remove("grid-line__active"),a._mouseOverBar||(r=[],s=[1/0,null,null,null,null],a._chart.eachSeries(function(t){var e,i=t.config.type;"line"===i||"spline"===i||"splineArea"===i||"area"===i?"number"==typeof(e={value:(e=t.getClosestVertical(n))[4],text:t.getTooltipText(e[3]),seriaId:t.config.id,left:e[1],top:e[2]}).left&&"number"==typeof e.top&&r.push(e):"pie"!==i&&"pie3D"!==i&&"donut"!==i&&"radar"!==i||(i=t.getClosest(n,o),s[0]>i[0]&&(s[0]=i[0],s[1]=i[1],s[2]=i[2],s[3]=i[3],s[4]=t.id))}),r.length?(r.sort(function(t,e){return e.value-t.value}),a._showLineTooltip(r)):a._showTooltipOnClosest(s))}),this._chart.events.on(n.ChartEvents.seriaMouseMove,function(t,e,i){a._mouseOverBar=!0;var n=a._chart.getRootView(),o=a._chart.getSeries(e),r=o.getTooltipText(t),e=n&&n.refs&&n.refs[s.calcPointRef(t,e)].el;null!=e&&e.setAttribute("fill-opacity",.6<o.config.alpha?o.config.alpha-.4:1),r?a._showTooltip(r,i):a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.seriaMouseLeave,function(t,e){a._mouseOverBar=!1;var i=a._chart.getRootView(),n=a._chart.getSeries(e);"area"!==n.config.type&&"treeMap"!==n.config.type&&(i&&i.refs&&i.refs[s.calcPointRef(t,e)].el).setAttribute("fill-opacity",n.config.alpha),a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.chartMouseLeave,function(){a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible"),a._prevLine&&a._prevLine.classList.remove("grid-line__active")})},o);function o(t){this._chart=t,this._initEvents()}e.Tooltip=i}],o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/codebase/",o(o.s=66);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var i,n}),window.dhx_legacy){if(window.dhx)for(var key in dhx)dhx_legacy[key]=dhx[key];window.dhx=dhx_legacy,delete window.dhx_legacy}
21
+ t.exports=function(){"use strict";var D=1,l=2,O=3,M=4,T=5,t=typeof window!=="undefined",e,r=(t?window:{}).requestAnimationFrame,c={};function i(){}var p=Array.isArray;function d(t){return t!=null}function s(t){return t!=null&&t.constructor===Object}function o(t,e,i,n){t.splice.apply(t,[i,n].concat(e))}function a(t){var e=typeof t;return e==="string"||e==="number"}function u(t){return typeof t==="function"}function h(t){return typeof t==="object"&&u(t.then)}function f(t){var e=arguments;for(var i=1;i<e.length;i++)for(var n in e[i])t[n]=e[i][n];return t}function g(t,e,i){var n;while(n=e.shift())if(e.length===0)t[n]=i;else t[n]=t=t[n]||{}}function _(t,e){var i=[];for(var n=e;n<t.length;n++)i.push(t[n]);return i}function v(t,e){for(var i in t)if(t[i]!==e[i])return false;return true}function m(t,e){var i=t.length;if(e.length!==i)return false;for(var n=0;n<i;n++)if(t[n]!==e[n])return false;return true}function y(t){if(!r)return t;var e,i,n;function o(){e=0;t.apply(i,n)}return function(){i=this;n=arguments;if(!e)e=r(o)}}function x(t,e,i){return function(){return t.apply(i,e)}}function b(t){var e=t.slice();var i=[];i.push(0);var n;var o;for(var r=0,s=t.length;r<s;++r){var a=i[i.length-1];if(t[a]<t[r]){e[r]=a;i.push(r);continue}n=0;o=i.length-1;while(n<o){var l=(n+o)/2|0;if(t[i[l]]<t[r])n=l+1;else o=l}if(t[r]<t[i[n]]){if(n>0)e[r]=i[n-1];i[n]=r}}n=i.length;o=i[n-1];while(n-- >0){i[n]=o;o=e[o]}return i}function w(t,e){var i=0;var n=e.length-1;var o;var r=n<=2147483647?true:false;if(r)while(i<=n){o=i+n>>1;if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}else while(i<=n){o=Math.floor((i+n)/2);if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}return i==e.length?null:i}function C(t){return t[0]==="o"&&t[1]==="n"}function E(t){return t[0]==="_"}function S(t){return t==="style"}function k(t){t&&t.el&&t.el.offsetHeight}function P(t){return t.node!=null&&t.node.el!=null}function L(t,e){switch(e){case"value":case"checked":case"selected":return true}return false}function H(t){t=t||c;while(t.vm==null&&t.parent)t=t.parent;return t.vm}function I(){}var n=I.prototype={constructor:I,type:null,vm:null,key:null,ref:null,data:null,hooks:null,ns:null,el:null,tag:null,attrs:null,body:null,flags:0,_class:null,_diff:null,_dead:false,_lis:false,idx:null,parent:null};function A(t){var e=new I;e.type=l;e.body=t;return e}var j={},R=/\[(\w+)(?:=(\w+))?\]/g;function F(t){{var e=j[t];if(e==null){var i,n,o,r;j[t]=e={tag:(i=t.match(/^[-\w]+/))?i[0]:"div",id:(n=t.match(/#([-\w]+)/))?n[1]:null,class:(o=t.match(/\.([-\w.]+)/))?o[1].replace(/\./g," "):null,attrs:null};while(r=R.exec(t)){if(e.attrs==null)e.attrs={};e.attrs[r[1]]=r[2]||""}}return e}}var $=1,N=2,V=4,W=8;function z(t,e,i,n){var o=new I;o.type=D;if(d(n))o.flags=n;o.attrs=e;var r=F(t);o.tag=r.tag;if(r.id||r.class||r.attrs){var s=o.attrs||{};if(r.id&&!d(s.id))s.id=r.id;if(r.class){o._class=r.class;s.class=r.class+(d(s.class)?" "+s.class:"")}if(r.attrs)for(var a in r.attrs)if(!d(s[a]))s[a]=r.attrs[a];o.attrs=s}var l=o.attrs;if(d(l)){if(d(l._key))o.key=l._key;if(d(l._ref))o.ref=l._ref;if(d(l._hooks))o.hooks=l._hooks;if(d(l._data))o.data=l._data;if(d(l._flags))o.flags=l._flags;if(!d(o.key))if(d(o.ref))o.key=o.ref;else if(d(l.id))o.key=l.id;else if(d(l.name))o.key=l.name+(l.type==="radio"||l.type==="checkbox"?l.value:"")}if(i!=null)o.body=i;return o}function G(t,e,i){var n=["refs"].concat(e.split("."));g(t,n,i)}function B(t){while(t=t.parent)t.flags|=$}function Y(t,e,i,n){if(t.type===T||t.type===M)return;t.parent=e;t.idx=i;t.vm=n;if(t.ref!=null)G(H(t),t.ref,t);var o=t.hooks,r=n&&n.hooks;if(o&&(o.willRemove||o.didRemove)||r&&(r.willUnmount||r.didUnmount))B(t);if(p(t.body))X(t);else;}function X(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];if(n===false||n==null)e.splice(i--,1);else if(p(n))o(e,n,i--,1);else{if(n.type==null)e[i]=n=A(""+n);if(n.type===l)if(n.body==null||n.body==="")e.splice(i--,1);else if(i>0&&e[i-1].type===l){e[i-1].body+=n.body;e.splice(i--,1)}else Y(n,t,i,null);else Y(n,t,i,null)}}}var q={animationIterationCount:true,boxFlex:true,boxFlexGroup:true,boxOrdinalGroup:true,columnCount:true,flex:true,flexGrow:true,flexPositive:true,flexShrink:true,flexNegative:true,flexOrder:true,gridRow:true,gridColumn:true,order:true,lineClamp:true,borderImageOutset:true,borderImageSlice:true,borderImageWidth:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,tabSize:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeDasharray:true,strokeDashoffset:true,strokeMiterlimit:true,strokeOpacity:true,strokeWidth:true};function U(t,e){return!isNaN(e)&&!q[t]?e+"px":e}function K(t,e){var i=(t.attrs||c).style;var n=e?(e.attrs||c).style:null;if(i==null||a(i))t.el.style.cssText=i;else{for(var o in i){var r=i[o];if(n==null||r!=null&&r!==n[o])t.el.style[o]=U(o,r)}if(n)for(var s in n)if(i[s]==null)t.el.style[s]=""}}var J=[];function Z(t,e,i,n,o){if(t!=null){var r=i.hooks[e];if(r)if(e[0]==="d"&&e[1]==="i"&&e[2]==="d")o?k(i.parent)&&r(i,n):J.push([r,i,n]);else return r(i,n)}}function Q(t){if(J.length){k(t.node);var e;while(e=J.shift())e[0](e[1],e[2])}}var tt=t?document:null;function et(t){while(t._node==null)t=t.parentNode;return t._node}function it(t,e){if(e!=null)return tt.createElementNS(e,t);return tt.createElement(t)}function nt(t){return tt.createTextNode(t)}function ot(t){return tt.createComment(t)}function rt(t){return t.nextSibling}function st(t){return t.previousSibling}function at(t){var e=t.vm;var i=e!=null&&Z(e.hooks,"willUnmount",e,e.data);var n=Z(t.hooks,"willRemove",t);if((t.flags&$)===$&&p(t.body))for(var o=0;o<t.body.length;o++)at(t.body[o]);return i||n}function lt(t,e,i){var n=e._node,o=n.vm;if(p(n.body))if((n.flags&$)===$)for(var r=0;r<n.body.length;r++)lt(e,n.body[r].el);else dt(n);delete e._node;t.removeChild(e);Z(n.hooks,"didRemove",n,null,i);if(o!=null){Z(o.hooks,"didUnmount",o,o.data,i);o.node=null}}function ct(t,e){var i=e._node;if(i._dead)return;var n=at(i);if(n!=null&&h(n)){i._dead=true;n.then(x(lt,[t,e,true]))}else lt(t,e)}function dt(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];delete n.el._node;if(n.vm!=null)n.vm.node=null;if(p(n.body))dt(n)}}function ut(t){var e=t.el;if((t.flags&$)===0){p(t.body)&&dt(t);e.textContent=null}else{var i=e.firstChild;do{var n=rt(i);ct(e,i)}while(i=n)}}function ht(t,e,i){var n=e._node,o=e.parentNode!=null;var r=e===i||!o?n.vm:null;if(r!=null)Z(r.hooks,"willMount",r,r.data);Z(n.hooks,o?"willReinsert":"willInsert",n);t.insertBefore(e,i);Z(n.hooks,o?"didReinsert":"didInsert",n);if(r!=null)Z(r.hooks,"didMount",r,r.data)}function ft(t,e,i){ht(t,e,i?rt(i):null)}var pt={};function gt(t){f(pt,t)}function _t(t){var e=this,i=e,n=_(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());if(pt[t])pt[t].apply(e,n)}var vt=i;function mt(t){vt=t.onevent||vt;if(t.onemit)gt(t.onemit)}function yt(t,e,i){t[e]=i}function xt(t,e,i,n,o){var r=t.apply(o,e.concat([i,n,o,o.data]));o.onevent(i,n,o,o.data,e);vt.call(null,i,n,o,o.data,e);if(r===false){i.preventDefault();i.stopPropagation()}}function bt(t){var e=et(t.target);var i=H(e);var n=t.currentTarget._node.attrs["on"+t.type],o,r;if(p(n)){o=n[0];r=n.slice(1);xt(o,r,t,e,i)}else for(var s in n)if(t.target.matches(s)){var a=n[s];if(p(a)){o=a[0];r=a.slice(1)}else{o=a;r=[]}xt(o,r,t,e,i)}}function wt(t,e,i,n){if(i===n)return;var o=t.el;if(i==null||u(i))yt(o,e,i);else if(n==null)yt(o,e,bt)}function Ct(t,e,i){if(e[0]==="."){e=e.substr(1);i=true}if(i)t.el[e]="";else t.el.removeAttribute(e)}function Et(t,e,i,n,o){var r=t.el;if(i==null)!o&&Ct(t,e,false);else if(t.ns!=null)r.setAttribute(e,i);else if(e==="class")r.className=i;else if(e==="id"||typeof i==="boolean"||n)r[e]=i;else if(e[0]===".")r[e.substr(1)]=i;else r.setAttribute(e,i)}function St(t,e,i){var n=t.attrs||c;var o=e.attrs||c;if(n===o);else{for(var r in n){var s=n[r];var a=L(t.tag,r);var l=a?t.el[r]:o[r];if(s===l);else if(S(r))K(t,e);else if(E(r));else if(C(r))wt(t,r,s,l);else Et(t,r,s,a,i)}for(var r in o)!(r in n)&&!E(r)&&Ct(t,r,L(t.tag,r)||C(r))}}function kt(t,e,i,n){if(t.type===M){e=t.data;i=t.key;n=t.opts;t=t.view}return new Yt(t,e,i,n)}function Dt(t){for(var e=0;e<t.body.length;e++){var i=t.body[e];var n=i.type;if(n<=O)ht(t.el,Ot(i));else if(n===M){var o=kt(i.view,i.data,i.key,i.opts)._redraw(t,e,false);n=o.node.type;ht(t.el,Ot(o.node))}else if(n===T){var o=i.vm;o._redraw(t,e);n=o.node.type;ht(t.el,o.node.el)}}}function Ot(t,e){if(t.el==null)if(t.type===D){t.el=e||it(t.tag,t.ns);if(t.attrs!=null)St(t,c,true);if((t.flags&W)===W)t.body.body(t);if(p(t.body))Dt(t);else if(t.body!=null&&t.body!=="")t.el.textContent=t.body}else if(t.type===l)t.el=e||nt(t.body);else if(t.type===O)t.el=e||ot(t.body);t.el._node=t;return t.el}function Mt(t,e){return e[t.idx+1]}function Tt(t,e){return e[t.idx-1]}function Pt(t){return t.parent}window.lisMove=At;var Lt=1,Ht=2;function It(l,c,d,u,h,f,p,g){return function(t,e,i,n,o,r){var s,a;if(n[u]!=null){if((s=n[u]._node)==null){n[u]=l(n[u]);return}if(Pt(s)!==t){a=l(n[u]);s.vm!=null?s.vm.unmount(true):ct(e,n[u]);n[u]=a;return}}if(n[h]==o)return Ht;else if(n[h].el==null){d(e,Ot(n[h]),n[u]);n[h]=c(n[h],i)}else if(n[h].el===n[u]){n[h]=c(n[h],i);n[u]=l(n[u])}else if(!r&&s===n[p]){a=n[u];n[u]=l(a);g(e,a,n[f]);n[f]=a}else{if(r&&n[u]!=null)return At(l,c,d,u,h,e,i,s,n);return Lt}}}function At(t,e,i,n,o,r,s,a,l){if(a._lis){i(r,l[o].el,l[n]);l[o]=e(l[o],s)}else{var c=w(a.idx,l.tombs);a._lis=true;var d=t(l[n]);i(r,l[n],c!=null?s[l.tombs[c]].el:c);if(c==null)l.tombs.push(a.idx);else l.tombs.splice(c,0,a.idx);l[n]=d}}var jt=It(rt,Mt,ht,"lftSib","lftNode","rgtSib","rgtNode",ft),Rt=It(st,Tt,ft,"rgtSib","rgtNode","lftSib","lftNode",ht);function Ft(t,e){var i=e.body,n=t.el,o=t.body,r={lftNode:o[0],rgtNode:o[o.length-1],lftSib:(i[0]||c).el,rgtSib:(i[i.length-1]||c).el};t:while(1){while(1){var s=jt(t,n,o,r,null,false);if(s===Lt)break;if(s===Ht)break t}while(1){var a=Rt(t,n,o,r,r.lftNode,false);if(a===Lt)break;if(a===Ht)break t}$t(t,n,o,r);break}}function $t(t,e,i,n){var o=Array.prototype.slice.call(e.childNodes);var r=[];for(var s=0;s<o.length;s++){var a=o[s]._node;if(a.parent===t)r.push(a.idx)}var l=b(r).map(function(t){return r[t]});for(var c=0;c<l.length;c++)i[l[c]]._lis=true;n.tombs=l;while(1){var d=jt(t,e,i,n,null,true);if(d===Ht)break}}function Nt(t){return t.el._node.parent!==t.parent}function Vt(t,e,i){return e[i]}function Wt(t,e,i){for(;i<e.length;i++){var n=e[i];if(n.vm!=null){if(t.type===M&&n.vm.view===t.view&&n.vm.key===t.key||t.type===T&&n.vm===t.vm)return n}else if(!Nt(n)&&t.tag===n.tag&&t.type===n.type&&t.key===n.key&&(t.flags&~$)===(n.flags&~$))return n}return null}function zt(t,e,i){return e[e._keys[t.key]]}function Gt(t,e){Z(e.hooks,"willRecycle",e,t);var i=t.el=e.el;var n=e.body;var o=t.body;i._node=t;if(t.type===l&&o!==n){i.nodeValue=o;return}if(t.attrs!=null||e.attrs!=null)St(t,e,false);var r=p(n);var s=p(o);var a=(t.flags&W)===W;if(r){if(s||a)Bt(t,e);else if(o!==n)if(o!=null)i.textContent=o;else ut(e)}else if(s){ut(e);Dt(t)}else if(o!==n)if(i.firstChild)i.firstChild.nodeValue=o;else i.textContent=o;Z(e.hooks,"didRecycle",e,t)}function Bt(t,e){var i=t.body,n=i.length,o=e.body,r=o.length,s=(t.flags&W)===W,a=(t.flags&N)===N,l=(t.flags&V)===V,c=!a&&t.type===D,d=true,u=l?zt:a||s?Vt:Wt;if(l){var h={};for(var f=0;f<o.length;f++)h[o[f].key]=f;o._keys=h}if(c&&n===0){ut(e);if(s)t.body=[];return}var p,g,_,v=0,m=false,y=0;if(s){var x={key:null};var b=Array(n)}for(var f=0;f<n;f++){if(s){var w=false;var C=null;if(d){if(l)x.key=i.key(f);p=u(x,o,y)}if(p!=null){_=p.idx;C=i.diff(f,p);if(C===true){g=p;g.parent=t;g.idx=f;g._lis=false}else w=true}else w=true;if(w){g=i.tpl(f);Y(g,t,f);g._diff=C!=null?C:i.diff(f);if(p!=null)Gt(g,p)}else;b[f]=g}else{var g=i[f];var E=g.type;if(E<=O){if(p=d&&u(g,o,y)){Gt(g,p);_=p.idx}}else if(E===M){if(p=d&&u(g,o,y)){_=p.idx;var S=p.vm._update(g.data,t,f)}else var S=kt(g.view,g.data,g.key,g.opts)._redraw(t,f,false);E=S.node.type}else if(E===T){var k=P(g.vm);var S=g.vm._update(g.data,t,f,k);E=S.node.type}}if(!l&&p!=null){if(_===y){y++;if(y===r&&n>r){p=null;d=false}}else m=true;if(r>100&&m&&++v%10===0)while(y<r&&Nt(o[y]))y++}}if(s)t.body=b;c&&Ft(t,e)}function Yt(t,e,i,n){var o=this;o.view=t;o.data=e;o.key=i;if(n){o.opts=n;o.config(n)}var r=s(t)?t:t.call(o,o,e,i,n);if(u(r))o.render=r;else{o.render=r.render;o.config(r)}o._redrawAsync=y(function(t){return o.redraw(true)});o._updateAsync=y(function(t){return o.update(t,true)});o.init&&o.init.call(o,o,o.data,o.key,n)}var Xt=Yt.prototype={constructor:Yt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:i,refs:null,render:null,mount:qt,unmount:Ut,config:function(t){var e=this;if(t.init)e.init=t.init;if(t.diff)e.diff=t.diff;if(t.onevent)e.onevent=t.onevent;if(t.hooks)e.hooks=f(e.hooks||{},t.hooks);if(t.onemit)e.onemit=f(e.onemit||{},t.onemit)},parent:function(){return H(this.node.parent)},root:function(){var t=this.node;while(t.parent)t=t.parent;return t.vm},redraw:function(t){var e=this;t?e._redraw(null,null,P(e)):e._redrawAsync();return e},update:function(t,e){var i=this;e?i._update(t,null,null,P(i)):i._updateAsync(t);return i},_update:Zt,_redraw:Jt,_redrawAsync:null,_updateAsync:null};function qt(t,e){var i=this;if(e){ut({el:t,flags:0});i._redraw(null,null,false);if(t.nodeName.toLowerCase()!==i.node.tag){Ot(i.node);ht(t.parentNode,i.node.el,t);t.parentNode.removeChild(t)}else ht(t.parentNode,Ot(i.node,t),t)}else{i._redraw(null,null);if(t)ht(t,i.node.el)}if(t)Q(i);return i}function Ut(t){var e=this;var i=e.node;var n=i.el.parentNode;ct(n,i.el);if(!t)Q(e)}function Kt(t,e,i,n){if(i!=null){i.body[n]=e;e.idx=n;e.parent=i;e._lis=false}return t}function Jt(t,e,i){var n=t==null;var o=this;var r=o.node&&o.node.el&&o.node.el.parentNode;var s=o.node,a,l;if(o.diff!=null){a=o._diff;o._diff=l=o.diff(o,o.data);if(s!=null){var c=p(a)?m:v;var d=a===l||c(a,l);if(d)return Kt(o,s,t,e)}}r&&Z(o.hooks,"willRedraw",o,o.data);var u=o.render.call(o,o,o.data,a,l);if(u===s)return Kt(o,s,t,e);o.refs=null;if(o.key!=null&&u.key!==o.key)u.key=o.key;o.node=u;if(t){Y(u,t,e,o);t.body[e]=u}else if(s&&s.parent){Y(u,s.parent,s.idx,o);s.parent.body[s.idx]=u}else Y(u,null,null,o);if(i!==false)if(s)if(s.tag!==u.tag||s.key!==u.key){s.vm=u.vm=null;var h=s.el.parentNode;var f=rt(s.el);ct(h,s.el);ht(h,Ot(u),f);s.el=u.el;u.vm=o}else Gt(u,s);else Ot(u);r&&Z(o.hooks,"didRedraw",o,o.data);if(n&&r)Q(o);return o}function Zt(t,e,i,n){var o=this;if(t!=null)if(o.data!==t){Z(o.hooks,"willUpdate",o,t);o.data=t}return o._redraw(e,i,n)}function Qt(t,e,i,n){var o,r;if(i==null)if(s(e))o=e;else r=e;else{o=e;r=i}return z(t,o,r,n)}var te="http://www.w3.org/2000/svg";function ee(t,e,i,n){var o=Qt(t,e,i,n);o.ns=te;return o}function ie(t){var e=new I;e.type=O;e.body=t;return e}function ne(t,e,i,n){this.view=t;this.data=e;this.key=i;this.opts=n}function oe(t,e,i,n){return new ne(t,e,i,n)}function re(t){this.vm=t}function se(t){return new re(t)}function ae(t){var e=new I;e.type=D;e.el=e.key=t;return e}function le(r,s){var o=r.length;var a={items:r,length:o,key:function(t){return s.key(r[t],t)},diff:function(t,e){var i=s.diff(r[t],t);if(e==null)return i;var n=e._diff;var o=i===n||p(n)?m(i,n):v(i,n);return o||i},tpl:function(t){return s.tpl(r[t],t)},map:function(t){s.tpl=t;return a},body:function(t){var e=Array(o);for(var i=0;i<o;i++){var n=a.tpl(i);n._diff=a.diff(i);e[i]=n;Y(n,t,i)}t.body=e}};return a}ne.prototype={constructor:ne,type:M,view:null,data:null,key:null,opts:null},re.prototype={constructor:re,type:T,vm:null};var ce={config:mt,ViewModel:Yt,VNode:I,createView:kt,defineElement:Qt,defineSvgElement:ee,defineText:A,defineComment:ie,defineView:oe,injectView:se,injectElement:ae,lazyList:le,FIXED_BODY:N,DEEP_REMOVE:$,KEYED_LIST:V,LAZY_LIST:W};function de(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(Y(e,t.parent,t.idx,null),Gt(t.parent.body[t.idx]=e,t),i&&k(e),Q(H(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t))}}(this,t,e)}function ue(t,e,i){if(null!=e.type)null==t.vm&&(Y(e,t.parent,t.idx,null),Gt(t.parent.body[t.idx]=e,t),i&&k(e),Q(H(e)));else{var n=Object.create(t);(n=Object.create(t)).attrs=f({},t.attrs);var o=f(t.attrs,e),s;null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t)}}function he(t,e){var i=t.body;if(p(i))for(var n=0;n<i.length;n++){var o=i[n];if(o.vm!=null)e.push(o.vm);else he(o,e)}return e}function fe(t){var e=arguments;var i=e.length;var n,o;if(i>1){var r=1;if(s(e[1])){o=e[1];r=2}if(i===r+1&&(a(e[r])||p(e[r])||o&&(o._flags&W)===W))n=e[r];else n=_(e,r)}return z(t,o,n)}function pe(){var t=fe.apply(null,arguments);return t.ns=te,t}return n.patch=function(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(Y(e,t.parent,t.idx,null),Gt(t.parent.body[t.idx]=e,t),i&&k(e),Q(H(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),St(t,n),i&&k(t))}}(this,t,e)},Xt.emit=function(t){var e=this,i=e,n=_(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());pt[t]&&pt[t].apply(e,n)},Xt.onemit=null,Xt.body=function(){return function t(e,i){var n=e.body;if(p(n))for(var o=0;o<n.length;o++){var r=n[o];null!=r.vm?i.push(r.vm):t(r,i)}return i}(this.node,[])},ce.defineElementSpread=fe,ce.defineSvgElementSpread=function(){var t=fe.apply(null,arguments);return t.ns=te,t},ce}()},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(0),a=i(5),c=i(7),d=i(6),h=i(124),u=i(126),f=i(16),p=i(128),g=i(132),_=i(142),v=i(3),m=i(143),y=i(1),o=(r=c.View,o(x,r),x.prototype.getSeries=function(t){return this._series[t]},x.prototype.eachSeries=function(t){var e,i=[];for(e in this._series)i.push(t.call(this,this._series[e]));return i},x.prototype.destructor=function(){this._tooltip.destructor(),this.events.clear(),this.unmount()},x.prototype.setConfig=function(o){var r,s=this;if(this.config=o,this._layers.clear(),this._series={},this._scales={},o.scales)for(var t in o.scales){var e=l({},o.scales[t]);void 0!==o.scales[t].min&&(r=o.scales[t].min),e.type=e.type||this._detectScaleType(e,t),o.scales.radial&&"radial"!==t&&(e.hidden=!0),this._setScale(e,t)}var i,a=new _.default;this._layers.add(a),o.series.forEach(function(t,e){void 0!==t.baseLine&&t.baseLine<r&&(t.baseLine=void 0);var n=l({},t);switch(n.type=n.type||o.type,n.type){case"bar":case"xbar":case"area":case"splineArea":n.color||(n.color=n.fill||v.getDefaultColor(e)),n.fill||(n.fill=n.color||v.getDefaultColor(e));break;case"treeMap":n.legendType=o.legend.type||"groupName",o.legend.treeSeries.map(function(t,e){var i;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(i=t.id)&&void 0!==i?i:y.uid(),t.color||(t.color=v.getDefaultColor(e,"range"===n.legendType))}),n.treeSeries=o.legend.treeSeries;break;case"radar":case"scatter":n.pointColor||(n.pointColor=n.color||v.getDefaultColor(e))}t=g.default[n.type];(n.barWidth||s.config.barWidth)&&(n.barWidth=n.barWidth||s.config.barWidth);var i=new t(s.data,n,s.events),t=v.getScales(o.scales);(1<t.length&&"radial"!==t[0]||"radial"===t[0]?t:["bottom","left"]).forEach(function(t){var e=s._scales[t];e&&(i.addScale(t,e),n.stacked?e.add(a):e.add(i))}),s._series[i.id]=i,(n.stacked?a:s._layers).add(i)}),o.legend&&((i=l({},o.legend)).series&&(i.$seriesInfo=i.series.map(function(t){return s._series[t]})),i=new u.Legend(this.data,i,this.events),this._layers.add(i)),this.paint()},x.prototype._setScale=function(t,e){t=new p.default[t.type](this.data,t,e);"radial"!==t.config.type&&this._layers.add(t.scaleGrid()),this._layers.add(t),this._scales[e]=t},x.prototype._detectScaleType=function(t,e){return"radial"===e?e:t.text?"text":"numeric"},x.prototype._initEvents=function(){var i=this;this.events.on(f.ChartEvents.toggleSeries,function(t,e){"treeMap"===i.config.type?(Object.values(i._series)[0].toggle(t),i.paint()):e?(e=i._series[Object.keys(i._series)[0]])&&(e.toggle(t),i.paint()):i._series[t]&&(i._series[t].toggle(),i.paint())},this),this.events.on(d.DataEvents.change,function(){return i.paint()})},x);function x(t,i){void 0===i&&(i={});var u=r.call(this,null,i)||this;u._width=0,u._height=0,u._left=0,u._top=0;var e={};i.maxPoints&&(e.approximate={value:i.series.map(function(t){return t.value}),maxNum:i.maxPoints}),Array.isArray(i.data)?(u.events=new a.EventSystem(u),u.data=new("treeMap"===i.type?d.TreeCollection:d.DataCollection)(e,u.events),u.data.parse(i.data)):i.data&&i.data.events?(u.data=i.data,u.events=u.data.events,u.events.context=u):(u.events=new a.EventSystem(u),u.data=new("treeMap"===i.type?d.TreeCollection:d.DataCollection)(e,u.events)),u._globalHTMLHandlers={onmousemove:function(t){var e=u._layers.getSizes(),i=e.left,n=e.top,o=e.bottom,r=e.right,s=t.pageX,e=t.pageY,t=u.getRootView().node.el.getBoundingClientRect();u._left=t.left+window.pageXOffset,u._top=t.top+window.pageYOffset;s=s-i-u._left,e=e-n-u._top;0<=s&&s<=u._width-r-i&&0<=e&&e<=u._height-o-n?u.events.fire(f.ChartEvents.chartMouseMove,[s,e,u._left+i,u._top+n]):u.events.fire(f.ChartEvents.chartMouseLeave)},onmouseleave:function(){return u.events.fire(f.ChartEvents.chartMouseLeave)}},u._layers=new h.ComposeLayer,u.setConfig(i),u._initEvents(),u._tooltip=new m.Tooltip(u);e=s.create({render:function(){if(!u.data.getLength())return s.el("div");function t(t){function o(t){return t._isXDirection?"X":"Y"}function r(t){return t.title||t.text||t.value||""}function s(t){return t.steps&&t.steps.length?t.steps[0]:t.min||0}function a(t){return t.steps&&t.steps.length?t.steps[t.steps.length-1]:t.max||t.maxPoints||"max"}function l(t,e){return e[t]}var c=u._scales,i=t.series,n=t.type,d=((n=n||(i&&i.length&&i[0]&&i[0].type||""))||"")+" chart.";return c&&Object.keys(c).forEach(function(t){var e,i=c[t],n=i._axis||i.config;"radial"===t?(e=i._data._order,d+=" X scale "+r(i.config)+": "+t+" axis from "+l(i.config.value,e[0])+" to "+l(i.config.value,e[e.length-1])+".",d+=" "+o(i)+" scale: axis from "+s(n)+" to "+a(n)+"."):d+=" "+o(i)+" scale "+r(i.config)+": "+t+" axis from "+s(n)+" to "+a(n)+"."}),i&&i.length&&(d+=" Series:",i.forEach(function(t,e){d+=" "+("pie"===n||"pie3D"===n||"donut"===n?t.text:t.value),d+=e===i.length-1?".":","})),d}var e=[s.resizer(function(t,e){u._width=t,u._height=e||400;e=u.getRootView();e&&e.node&&e.node.el&&(e=e.node.el.getBoundingClientRect(),u._left=e.left+window.pageXOffset,u._top=e.top+window.pageYOffset),u.events.fire(f.ChartEvents.resize,[u._width,u._height]),u.paint(),!document.querySelector(".dhx_widget.dhx_chart")&&u._tooltip&&u._tooltip.destructor()})];return u._width&&u._height&&e.push(u._layers.toVDOM(u._width,u._height)),s.el(".dhx_widget.dhx_chart",l(l({class:i.css||"",onmousemove:u._globalHTMLHandlers.onmousemove,onmouseleave:u._globalHTMLHandlers.onmouseleave},{"aria-label":t(i)}),{tabIndex:0}),e)},hooks:{didMount:function(t){t&&t.node&&t.node.parent&&t.node.parent.el&&(u._width=t.node.parent.el.offsetWidth,u._height=t.node.parent.el.offsetHeight||400,u.paint())}}});return u.mount(t,e),u}e.Chart=o},function(t,i,n){"use strict";(function(s){var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0});var c=n(10),d=n(9),t=(e.prototype.load=function(t,e){var i=this;if(!t.config||this._parent.events.fire(d.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then(function(t){return t?i.parse(t,e):[]}).catch(function(t){i._parent.events.fire(d.DataEvents.loadError,[t])})},e.prototype.parse=function(t,e){var n=this;if(void 0===e&&(e=d.DataDriver.json),"json"!==e||c.hasJsonOrArrayStructure(t)||this._parent.events.fire(d.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=c.toDataDriver(e)).toJsonArray(t))instanceof Array)){var i=t.total_count-1,o=t.from;if(t=t.data,0!==this._parent.getLength())return t.forEach(function(t,e){var i=o+e,e=n._parent.getId(i);e?(i=n._parent.getItem(e))&&i.$empty&&(n._parent.changeId(e,t.id,!0),n._parent.update(t.id,l(l({},t),{$empty:void 0}),!0)):c.dhxWarning("item not found")}),this._parent.events.fire(d.DataEvents.afterLazyLoad,[o,t.length]),this._parent.events.fire(d.DataEvents.change),t;for(var r=[],s=0,a=0;s<=i;s++)o<=s&&s<=o+t.length-1?(r.push(t[a]),a++):r.push({$empty:!0});t=r}return this._parent.getInitialData()&&this._parent.removeAll(),this._parent.$parse(t),t},e.prototype.save=function(o){for(var r=this,t=this._getUniqueOrder(),e=this,i=0,n=t;i<n.length;i++)!function(i){var n,t;i.saving||i.pending?c.dhxWarning("item is saving"):(n=e._findPrevState(i.id))&&n.saving?(t=new s(function(t,e){n.promise.then(function(){i.pending=!1,t(r._setPromise(i,o))}).catch(function(t){r._removeFromOrder(n),r._setPromise(i,o),c.dhxWarning(t),e(t)})}),e._addToChain(t),i.pending=!0):e._setPromise(i,o)}(n[i]);t.length&&this._parent.saveData.then(function(){r._saving=!1})},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(e,t){var i,n=this;switch(e.status){case"remove":i="delete";break;case"add":i="insert";break;default:i=e.status}return e.promise=t.save(e.obj,i),e.promise.then(function(){n._removeFromOrder(e)}).catch(function(t){e.saving=!1,e.error=!0,c.dhxError(t)}),e.saving=!0,this._saving=!0,this._addToChain(e.promise),e.promise},e.prototype._addToChain=function(t){this._parent.saveData&&this._saving?this._parent.saveData=this._parent.saveData.then(function(){return t}):this._parent.saveData=t},e.prototype._findPrevState=function(t){for(var e=0,i=this._changes.order;e<i.length;e++){var n=i[e];if(n.id===t)return n}return null},e.prototype._removeFromOrder=function(e){this._changes.order=this._changes.order.filter(function(t){return!c.isEqualObj(t,e)})},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce(function(t,e){var i=t.findIndex(function(t){return t.id===e.id}),n=-1<i?t[i]:null;return n&&!1===n.saving&&"add"===n.status?"remove"===e.status?t.splice(i,1):n.obj=e.obj:n&&!1===n.saving&&"update"===n.status?t.splice(i,1,e):t.push(e),t},[])},e);function e(t,e){this._parent=t,this._changes=e}i.Loader=t}).call(this,n(12))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(81);o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.toJsonObject=function(t){var e;return"string"==typeof t&&(e=this._fromString(t)),function t(e,i){i=i||{};var n=e.attributes;if(n&&n.length)for(var o=0;o<n.length;o++)i[n[o].name]=n[o].value;for(var r,s=e.childNodes,o=0;o<s.length;o++)1===s[o].nodeType&&(i[r=s[o].tagName]?("function"!=typeof i[r].push&&(i[r]=[i[r]]),i[r].push(t(s[o],{}))):i[r]=t(s[o],{}));return i}(e)},o.prototype.serialize=function(t){return n.jsonToXML(t)},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){if("string"==typeof t&&(t=this._fromString(t)),t){t=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes;return t&&t.length?this._getRows(t):null}return[]},o.prototype._getRows=function(t){for(var e=[],i=0;i<t.length;i++)"item"===t[i].tagName&&e.push(this._nodeToJS(t[i]));return e},o.prototype._fromString=function(t){try{return(new DOMParser).parseFromString(t,"text/xml")}catch(t){return null}},o.prototype._nodeToJS=function(t){var e={};if(this._haveAttrs(t))for(var i=t.attributes,n=0;n<i.length;n++){var o=i[n],r=o.name,o=o.value;e[r]=this._toType(o)}if(3===t.nodeType)return e.value=e.value||this._toType(t.textContent),e;var s=t.childNodes;if(s)for(n=0;n<s.length;n++){var a=s[n],l=a.tagName;l&&("items"===l&&a.childNodes?e[l]=this._getRows(a.childNodes):this._haveAttrs(a)?e[l]=this._nodeToJS(a):e[l]=this._toType(a.textContent))}return e},o.prototype._toType=function(t){return"false"===t||"true"===t?"true"===t:t},o.prototype._haveAttrs=function(t){return t.attributes&&t.attributes.length},i=o;function o(){}e.XMLDriver=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=4;function s(t){return" ".repeat(t)}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var i='<?xml version="1.0" encoding="iso-8859-1"?>\n<'+e+">",n=0;n<t.length;n++)i+="\n"+function e(t,i){void 0===i&&(i=r);var n,o=s(i)+"<item>\n";for(n in t)Array.isArray(t[n])?(o+=s(i+r)+"<"+n+">\n",o+=t[n].map(function(t){return e(t,i+2*r)}).join("\n")+"\n",o+=s(i+r)+"</"+n+">\n"):o+=s(i+r)+("<"+n+">"+t[n])+"</"+n+">\n";return o+=s(i)+"</item>"}(t[n]);return i+"\n</"+e+">"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(10),i=(n.prototype.sort=function(t,e,i){this._createSorter(e),i===e&&(e=null),(i||e)&&this._sort(t,i,e)},n.prototype._createSorter=function(i){var n=this;i&&!i.rule&&(i.rule=function(t,e){t=null!==(t=n._checkVal(i.as,t[i.by]))&&void 0!==t?t:"",e=null!==(e=n._checkVal(i.as,e[i.by]))&&void 0!==e?e:"";return o.naturalCompare(t.toString(),e.toString())})},n.prototype._checkVal=function(t,e){return t?t.call(this,e):e},n.prototype._sort=function(t,n,o){var r=this,s={asc:1,desc:-1};return t.sort(function(t,e){var i=0;return n&&(i=n.rule.call(r,t,e)*(s[n.dir]||s.asc)),0===i&&o&&(i=o.rule.call(r,t,e)*(s[o.dir]||s.asc)),i})},n);function n(){}e.Sort=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var d=i(1),s=i(35),a=i(13),u=i(10),h=i(9);function l(t,e,i,n){void 0!==n&&-1!==n&&t[i]&&t[i][n]?t[i].splice(n,0,e):(t[i]||(t[i]=[]),t[i].push(e))}var c,o=(c=s.DataCollection,o(f,c),f.prototype.add=function(t,i,n){var o=this;if(void 0===i&&(i=-1),void 0===n&&(n=this._root),this.events.fire(h.DataEvents.beforeAdd,[t]))return"object"!=typeof t&&(t={value:t}),t=Array.isArray(t)?t.map(function(t,e){return o._add(t,i,n,e)}):this._add(t,i,n),this._applySmart(),t},f.prototype.getRoot=function(){return this._root},f.prototype.getParent=function(t,e){if(void 0===e&&(e=!1),!this._pull[t])return null;t=this._pull[t].parent;return e?this._pull[t]:t},f.prototype.getItems=function(t){return this._childs&&this._childs[t]?this._childs[t]:[]},f.prototype.getLength=function(t){return void 0===t&&(t=this._root),this._childs[t]?this._childs[t].length:null},f.prototype.removeAll=function(t){if(t){if(this._childs[t])for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}}else{c.prototype.removeAll.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype.getIndex=function(e){var t=this.getParent(e);return t&&this._childs[t]?d.findIndex(this._childs[t],function(t){return t.id===e}):-1},f.prototype.sort=function(t){var e=this;if(t){for(var i in this._childs)this._sort.sort(this._childs[i],t);if(this._initChilds&&Object.keys(this._initChilds).length)for(var i in this._initChilds)this._sort.sort(this._initChilds[i],t)}else this._childs={},this._parse_data(Object.keys(this._pull).map(function(t){return e._pull[t]})),this._filters&&this.filter(this._filters.filters,this._filters.config);this.events.fire(h.DataEvents.change)},f.prototype.filter=function(t,e){var n=this;if(void 0===e&&(e={}),t&&e.add||(this.restoreOrder(),t)){if(this._initOrder||(this._initOrder=this._order),this._initChilds||(this._initChilds=this._childs),e.type=e.type||h.TreeFilterType.all,this._filters={filters:{},config:e},"function"!=typeof t)if(t.by)this._filters.filters[t.by]=t;else for(var i in t)this._filters.filters[i]=t[i];else this._filters.filters=t;var o={};this._recursiveFilter(this._filters.filters,e,this._root,0,o),e&&!e.smartFilter&&(this._filters=null),Object.keys(o).forEach(function(t){for(var e=n.getParent(t),i=n.getItem(t);e;)o[e]||(o[e]=[]),i&&!o[e].find(function(t){return t.id===i.id})&&o[e].push(i),i=n.getItem(e),e=n.getParent(e)}),this._childs=o,this.events.fire(h.DataEvents.change)}},f.prototype.restoreOrder=function(){this._initChilds&&(this._childs=this._initChilds,this._initChilds=null),this.events.fire(h.DataEvents.change)},f.prototype.copy=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},f.prototype.move=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o)},f.prototype.forEach=function(t,e,i){if(void 0===e&&(e=this._root),void 0===i&&(i=1/0),this.haveItems(e)&&!(i<1))for(var n=this._childs[e],o=0;o<n.length;o++)t.call(this,n[o],o,n),this.haveItems(n[o].id)&&this.forEach(t,n[o].id,--i)},f.prototype.eachChild=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=function(){return!0}),this.haveItems(t))for(var o=0;o<this._childs[t].length;o++)e.call(this,this._childs[t][o],o),i&&n(this._childs[t][o])&&this.eachChild(this._childs[t][o].id,e,i,n)},f.prototype.getNearId=function(t){return t},f.prototype.loadItems=function(e,i){var n=this;void 0===i&&(i=h.DataDriver.json);var t=this.config.autoload.toString(),t=t+(t.includes("?")?"&id="+e:"?id="+e);new a.DataProxy(t).load().then(function(t){t=(i=u.toDataDriver(i)).toJsonArray(t),n._parse_data(t,e),n.events.fire(h.DataEvents.change)})},f.prototype.refreshItems=function(t,e){void 0===e&&(e=h.DataDriver.json),this.removeAll(t),this.loadItems(t,e)},f.prototype.eachParent=function(t,e,i){void 0===i&&(i=!1);t=this.getItem(t);t&&(i&&e.call(this,t),t.parent!==this._root&&(i=this.getItem(t.parent),e.call(this,i),this.eachParent(t.parent,e)))},f.prototype.haveItems=function(t){return t in this._childs},f.prototype.canCopy=function(e,t){if(e===t)return!1;var i=!0;return this.eachParent(t,function(t){return t.id===e?i=!1:null}),i},f.prototype.serialize=function(t,e){void 0===t&&(t=h.DataDriver.json);e=this._serialize(this._root,e),t=u.toDataDriver(t);if(t)return t.serialize(e)},f.prototype.getId=function(t,e){if(void 0===e&&(e=this._root),this._childs[e]&&this._childs[e][t])return this._childs[e][t].id},f.prototype.map=function(t,e,i){void 0===e&&(e=this._root),void 0===i&&(i=!0);var n=[];if(!this.haveItems(e))return n;for(var o,r=0;r<this._childs[e].length;r++)n.push(t.call(this,this._childs[e][r],r,this._childs)),i&&(o=this.map(t,this._childs[e][r].id,i),n=n.concat(o));return n},f.prototype.getRawData=function(t,e,i,n,o){return o=o||this._root,this._childs[o]?(o=o===this._root?c.prototype.getRawData.call(this,t,e,this._childs[o]):this._childs[o],2===n?this.flatten(o):o):[]},f.prototype.flatten=function(t){var i=this,n=[];return t.forEach(function(t){n.push(t);var e=i._childs[t.id];e&&t.$opened&&(n=n.concat(i.flatten(e)))}),n},f.prototype._add=function(t,e,i,n){void 0===e&&(e=-1),void 0===i&&(i=this._root),t.parent=t.parent?t.parent.toString():i,0<n&&-1!==e&&(e+=1);e=c.prototype._add.call(this,t,e);if(Array.isArray(t.items))for(var o=0,r=t.items;o<r.length;o++){var s=r[o];this.add(s,-1,t.id)}return e},f.prototype._copy=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;var r=this._childs[t];if(o&&(e=-1===e?-1:e+o),i===this&&!this.canCopy(t,n))return null;o=u.copyWithoutInner(this.getItem(t),{items:!0});if(i.exists(t)&&(o.id=d.uid()),u.isTreeCollection(i)){if(this.exists(t)&&(o.parent=n,i!==this&&n===this._root&&(o.parent=i.getRoot()),i.add(o,e),t=o.id),r)for(var s=0,a=r;s<a.length;s++){var l=a[s].id,c=this.getIndex(l);"string"==typeof t&&this.copy(l,c,i,t)}return t}i.add(o,e)},f.prototype._move=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;if(o&&(e=-1===e?-1:e+o),i!==this){if(!u.isTreeCollection(i))return i.add(u.copyWithoutInner(this.getItem(t)),e),void this.remove(t);var r=this.copy(t,e,i,n);return this.remove(t),r}if(!this.canCopy(t,n))return null;i=this.getParent(t),r=this.getIndex(t),r=this._childs[i].splice(r,1)[0];return r.parent=n,this._childs[i].length||delete this._childs[i],this.haveItems(n)||(this._childs[n]=[]),-1===e?e=this._childs[n].push(r):this._childs[n].splice(e,0,r),this.events.fire(h.DataEvents.change,[t,"update",this.getItem(t)]),t},f.prototype._reset=function(t){if(t)for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}else{c.prototype._reset.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype._removeCore=function(e){var t;this._pull[e]&&(t=this.getParent(e),this._childs[t]=this._childs[t].filter(function(t){return t.id!==e}),t===this._root||this._childs[t].length||delete this._childs[t],this._initChilds&&this._initChilds[t]&&(this._initChilds[t]=this._initChilds[t].filter(function(t){return t.id!==e}),t===this._root||this._initChilds[t].length||delete this._initChilds[t]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e})),this._fastDeleteChilds(this._childs,e),this._initChilds&&this._fastDeleteChilds(this._initChilds,e))},f.prototype._addToOrder=function(t,e,i){var n=this._childs,o=this._initChilds,r=e.parent;(this._pull[e.id]=e).parent&&this._pull[e.parent]&&this._pull[e.parent].items&&!this._pull[e.parent].items.find(function(t){return t.id===e.id})&&this._pull[e.parent].items.push(e),c.prototype._addToOrder.call(this,t,e,i),l(n,e,r,i),o&&l(o,e,r,i)},f.prototype._parse_data=function(t,e){var i;void 0===e&&(e=this._root);for(var n=this._order.length,o=0,r=t;o<r.length;o++){var s=r[o];this.config.init&&(s=this.config.init(s)),s&&"object"!=typeof s&&(s={value:s}),s.id=null!==(i=s.id)&&void 0!==i?i:d.uid(),s.parent=void 0===s.parent||null===s.parent||s.parent&&s.$items?e:s.parent,this._pull[s.id]&&u.dhxError("Item "+s.id+" already exist"),this._pull[s.id]=s,this._order[n++]=s,this._childs[s.parent]||(this._childs[s.parent]=[]),this._childs[s.parent].push(s),s.items&&s.items instanceof Object&&this._parse_data(s.items,s.id)}},f.prototype._applySmart=function(){this._filters&&this.filter(this._filters.filters,this._filters.config)},f.prototype._fastDeleteChilds=function(t,e){if(this._pull[e]&&delete this._pull[e],t[e]){for(var i=0;i<t[e].length;i++)this._fastDeleteChilds(t,t[e][i].id);delete t[e]}},f.prototype._recursiveFilter=function(o,e,t,i,n){var r=this,s=this._childs[t];if(s){var a,l=function(t){switch(e.type){case h.TreeFilterType.all:return!0;case h.TreeFilterType.level:return i===e.level;case h.TreeFilterType.leafs:return!r.haveItems(t.id)}};a="function"==typeof o?function(t){return l(t)&&o(t)}:function(t){var e,i,n=!0;for(i in o)if(o[i].by&&""!==o[i].match&&(n=o[i].compare?o[i].compare(t[o[i].by],o[i].match,t):-1!==(null===(e=t[o[i].by])||void 0===e?void 0:e.toString().toLocaleLowerCase().indexOf(o[i].match.toString().toLowerCase()))),!n)break;return l(t)&&n},(a=s.filter(a)).length?n[t]=a:t===this._root&&(n[t]=[]);for(var c=0,d=s;c<d.length;c++){var u=d[c];this._recursiveFilter(o,e,u.id,i+1,n)}}},f.prototype._serialize=function(t,n){var o=this;return void 0===t&&(t=this._root),this.map(function(t){var e,i={};for(e in t)"parent"===e||"items"===e||e.startsWith("$")||(i[e]=t[e]);return n&&(i=n(i)),o.haveItems(t.id)&&(i.items=o._serialize(t.id,n)),i},t,!1)},f);function f(t,e){var i=c.call(this,t,e)||this;i._childs={};e=i._root=t&&t.rootId||"_ROOT_"+d.uid();return i._childs=((t={})[e]=[],t),i._initChilds=null,i}e.TreeCollection=o},function(t,e,i){"use strict";var v=this&&this.__assign||function(){return(v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var h=i(2),m=i(39),f=i(121),p=i(9),y=i(10),x=i(1);var n=(o.prototype.setItem=function(t,e){f.collectionStore.setItem(t,e)},o.prototype.onMouseDown=function(t,e,i){var n,o,r,s;1!==t.which&&!t.targetTouches||(t.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp)),o=(n=h.locateNode(t,"data-dhx-id"))&&n.getAttribute("data-dhx-id"),r=h.locate(t,"data-dhx-widget-id"),Array.isArray(e)&&e.includes(o)?(this._transferData.source=a(e),this._itemsForGhost=i):(this._transferData.source=[o],this._itemsForGhost=null),o&&r&&(e=(s=h.getBox(n)).left,i=s.top,s=(t.targetTouches?t.targetTouches[0]:t).pageX,t=(t.targetTouches?t.targetTouches[0]:t).pageY,this._transferData.initXOffset=s-e,this._transferData.initYOffset=t-i,this._transferData.x=s,this._transferData.y=t,this._transferData.componentId=r,this._transferData.start=o,this._transferData.item=n))},o.prototype.isDrag=function(){return this._isDrag},o.prototype.cancelCanDrop=function(t){this._canMove=!1,this._isDrag=!1;var e=this._transferData,i=e.start,n=e.source,o=e.target,e=e.dropComponentId,n={start:i,source:n,target:o},e=f.collectionStore.getItem(e);e&&o&&e.events.fire(p.DragEvents.cancelDrop,[n,t]),this._transferData.dropComponentId=null,this._transferData.target=null},o.prototype._moveGhost=function(t,e){this._transferData.ghost&&(this._transferData.ghost.style.left=t-this._transferData.initXOffset+"px",this._transferData.ghost.style.top=e-this._transferData.initYOffset+"px")},o.prototype._removeGhost=function(){document.body.removeChild(this._transferData.ghost)},o.prototype._onDrop=function(t){var e,i,n,o,r;this._canMove&&(r=(o=this._transferData).start,i=o.source,e=o.target,n=o.dropComponentId,i={start:r,source:i,target:e,dropPosition:o.dropPosition},n=(o=f.collectionStore.getItem(n))&&o.config,o&&"source"!==n.dragMode&&o.events.fire(p.DragEvents.beforeDrop,[i,t])&&(o={id:e,component:o},r={id:r,component:this._transferData.component,newId:null},this._move(r,o),r.newId&&r.component!==o.component&&(i.start=r.newId),o.component.events.fire(p.DragEvents.afterDrop,[i,t]))),this._endDrop(t)},o.prototype._onDragStart=function(t,e,i){var n=f.collectionStore.getItem(e),o=n.config,r=this._transferData,e={start:r.start,source:r.source,target:r.target};if("target"===o.dragMode||n._pregroupData)return null;r=function(t,e,i){void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=document.createElement("div"),r=t.cloneNode(!0);return r.style.width=n.width+"px",r.style.height=n.height+"px",r.style.maxHeight=n.height+"px",r.style.fontSize=window.getComputedStyle(t.parentElement).fontSize,r.style.opacity="0.8",r.style.fontSize=window.getComputedStyle(t.parentElement).fontSize,i&&e&&e.length||o.appendChild(r),e&&e.length&&e.forEach(function(t,e){t=t.cloneNode(!0);t.style.width=n.width+"px",t.style.height=n.height+"px",t.style.maxHeight=n.height+"px",t.style.top=12*(e+1)-n.height-n.height*e+"px",t.style.left=12*(e+1)+"px",t.style.opacity="0.6",t.style.zIndex=""+(-e-1),o.appendChild(t)}),o.className="dhx_drag-ghost",o}(this._transferData.item,this._itemsForGhost,"column"===o.dragItem||"both"===o.dragItem);return n.events.fire(p.DragEvents.beforeDrag,[e,i,r])&&t?(n.events.fire(p.DragEvents.dragStart,[e,i]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.component=n,this._transferData.dragConfig=o,r):null},o.prototype._onDrag=function(t){var e=(t.targetTouches?t.targetTouches[0]:t).clientX,i=(t.targetTouches?t.targetTouches[0]:t).clientY,n=document.elementFromPoint(e,i),o=h.locate(n,"data-dhx-widget-id");if(o){var r=f.collectionStore.getItem(o),s=!!h.locateNodeByClassName(n,"dhx_grid-header")||!!h.locateNodeByClassName(n,"dhx_grid-footer"),a=r&&r.config.columns?r.config:void 0,l=a&&("both"===a.dragItem||"column"===a.dragItem);if(!s||l){var c=h.locate(n,"data-dhx-id"),d=h.locate(n,"data-dhx-root-id");if(!c&&!d)return this.cancelCanDrop(t),this._transferData.dropComponentId=o,this._transferData.target=null,void this._canDrop(t);var u=this._transferData,e=u.dropComponentId,i=u.start,a=u.source,s=u.target,l=u.componentId,n=u.dropPosition;if("complex"===r.config.dropBehaviour){u=function(t){var e=t.clientY;if(!(t=h.locateNode(t)))return null;if(t=t.childNodes[0]){t=t.getBoundingClientRect();return(e-t.top)/t.height}}(t);this._transferData.dropPosition=u<=.25?"top":.75<=u?"bottom":"in"}else if((s===c||!c&&s===d)&&e===o)return;e={id:i,component:this._transferData.component};"source"!==r.config.dragMode&&(e.component.events.fire(p.DragEvents.dragOut,[{start:i,source:a,target:s},t]),o!==l||!y.isTreeCollection(e.component.data)||y.isTreeCollection(e.component.data)&&e.component.data.canCopy(e.id,c)?(this.cancelCanDrop(t),this._transferData.target=c||d,this._transferData.dropComponentId=o,e.component.events.fire(p.DragEvents.dragIn,[{start:i,source:a,target:s,dropPosition:n},t])&&this._canDrop(t)):this.cancelCanDrop(t))}else this._canMove&&this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)},o.prototype._move=function(i,e){var n=i.component.data,o=e.component.data,r=0,s=e.id,t=y.isTreeCollection(o)?e.component.config.dropBehaviour:void 0,a=i.component.config.columns?i.component.config:void 0,a=a&&("both"===a.dragItem||"column"===a.dragItem)&&a.columns.map(function(t){return t.id}).filter(function(t){return t===i.id||t===e.id}).length;if(a&&i.component===e.component){if(i.id===e.id)return;var l=(c=(d=i.component).config.columns.map(function(t){return v({},t)})).findIndex(function(t){return t.id===i.id});return-1===(h=c.findIndex(function(t){return t.id===e.id}))?void 0:(c.splice(h,0,c.splice(l,1)[0]),d.setColumns(c),void d.paint())}if(a&&i.component instanceof m.ProGrid&&e.component instanceof m.ProGrid){var c,d=i.component,u=e.component,l=(c=d.config.columns.map(function(t){return v({},t)})).findIndex(function(t){return t.id===i.id}),a=u.config.columns.map(function(t){return v({},t)}),h=a.findIndex(function(t){return t.id===e.id}),f=0<=a.findIndex(function(t){return t.id===i.id})?i.id+"_copy":i.id,p=[];d.data.forEach(function(t){var e;p.push(((e={})[f]=t[i.id],e))}),u.data.forEach(function(t,e){u.data.update(t.id,v(v({},t),p[e]))});l=c.splice(l,1)[0];return l.id=f,a.splice(h,0,l),u.setColumns(a),u.paint(),d.setColumns(c),void d.paint()}var g=e.id===e.component.config.rootParent;switch(t){case"child":break;case"sibling":s=o.getParent(s),r=o.getIndex(e.id)+1;break;case"complex":var _=this._transferData.dropPosition;g?(s=e.id,r=o.getLength()):"top"===_?(s=o.getParent(s),r=o.getIndex(e.id)):"bottom"===_&&(s=o.getParent(s),r=o.getIndex(e.id)+1);break;default:r=e.id?i.component===e.component&&o.getIndex(i.id)<o.getIndex(e.id)?o.getIndex(e.id)-1:(-1<o.getIndex(i.id)&&(i.newId=x.uid()),o.getIndex(e.id)):-1}this._transferData.dragConfig.dragCopy?this._transferData.source instanceof Array&&1<this._transferData.source.length?this._transferData.source.map(function(t){n.copy(t,r,o,s),-1<r&&r++}):n.copy(i.id,r,o,s):this._transferData.source instanceof Array&&1<this._transferData.source.length?this._transferData.source.map(function(t){n.move(t,r,o,s),-1<r&&r++}):n.move(i.id,r,o,s,i.newId)},o.prototype._endDrop=function(t){var e;this._toggleTextSelection(!1),this._transferData.component&&(e={start:(e=this._transferData).start,source:e.source,target:e.target},this._transferData.component.events.fire(p.DragEvents.afterDrag,[e,t])),this.cancelCanDrop(t),this._canMove=!0,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null},o.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,i={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},e=f.collectionStore.getItem(this._transferData.dropComponentId);e&&this._transferData.target&&e.events.fire(p.DragEvents.canDrop,[i,t])},o.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},o);function o(){var a=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._onMouseMove=function(t){if(a._transferData.start){var e=(t.targetTouches?t.targetTouches[0]:t).pageX,i=(t.targetTouches?t.targetTouches[0]:t).pageY,n=a._transferData,o=n.x,r=n.y,s=n.start,n=n.componentId;if(!a._transferData.ghost){if(Math.abs(o-e)<3&&Math.abs(r-i)<3)return;n=a._onDragStart(s,n,t);if(!n)return void a._endDrop(t);a._transferData.ghost=n,document.body.appendChild(a._transferData.ghost)}a._moveGhost(e,i),a._onDrag(t)}},this._onMouseUp=function(t){a._transferData.x&&(a._transferData.ghost?(a._removeGhost(),a._onDrop(t)):a._endDrop(t),t.targetTouches?(document.removeEventListener("touchmove",a._onMouseMove),document.removeEventListener("touchend",a._onMouseUp)):(document.removeEventListener("mousemove",a._onMouseMove),document.removeEventListener("mouseup",a._onMouseUp)))}}i=window.dhxHelpers=window.dhxHelpers||{};i.dragManager=i.dragManager||new n,e.dragManager=i.dragManager},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var v=i(8),l=i(6),o=i(1),m=i(14);r.prototype.xlsx=function(t){return this._export(t)},r.prototype.csv=function(t){var e;void 0===t&&(t={}),t=n({asFile:!0,rowDelimiter:"\n",columnDelimiter:",",skipHeader:0},t),e="getRoot"in this._view.data&&t.flat?this.getFlatCSV(t):this._getCSV(t);var i=t.name||"grid_export";return t.asFile&&o.downloadFile(e,i+".csv","text/csv"),e},r.prototype._export=function(t){void 0===t&&(t={});for(var c=this._view.config.columns.filter(function(t){return!t.hidden}),d={},e=v.transpose(c.map(function(t){return t.header.map(function(t){return t.text||" "})})),u=[],h={default:{color:"#000000",background:"#FFFFFF",fontSize:14}},f=[],o={},i=this._view.data.serialize().map(function(n,t){return d[n.id]=t,c.map(function(t,e){var i;return o[t.id]=e,n[t.id]instanceof Date&&(i=t.format||"%M %d %Y","string"==typeof n[t.id]?n[t.id]=m.getFormattedDate(i,m.stringToDate(n[t.id],i)):"object"==typeof n[t.id]&&(n[t.id]=m.getFormattedDate(i,n[t.id]))),n[t.id]||e||!n.$groupName?v.removeHTMLTags(n[t.id]):"^ "+n.$groupName})}),p=[],g=this._view.content,_=this,n=0,r=c;n<r.length;n++)!function(t){var n,e,o,i,r;for(r in t.footer&&(n=t.id,i=e=_._view.data.serialize().reduce(function(t,e){return void 0===e[n]||""===e[n]||isNaN(e[n])||t.push(parseFloat(e[n])),t},[]),"tree"===_._view.config.type&&(i=(o=_._view.data).serialize().reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[n]||""===e[n]||isNaN(e[n])?(i=0,o.eachChild(e.id,function(t){o.haveItems(t.id)||(i+=parseFloat(t[n]))}),t.push(i)):t.push(parseFloat(e[n])||0)),t},[])),t.footer[0].content?(i=g[t.footer[0].content].calculate(e,i),p.push(i.toString())):p.push(t.footer[0].css||t.footer[0].text||" ")),u.push({width:t.width}),t.$cellCss){var s,a=t.$cellCss[r],l=a.split("").reduce(function(t,e){e=(t<<5)-t+e.charCodeAt(0);return Math.abs(e&e)},0).toString();h[l]||(s=document.body,(s=v.getStyleByClass(a,s,"dhx_grid-row",h.default))&&(h[l]=s)),h[l]&&f.push([d[r],c.indexOf(t),l])}}(r[n]);p.length&&i.push(p);var s,i={name:t.name||"data",columns:u,header:e,data:i,styles:{cells:f,css:h}};return t.url&&((s=document.createElement("form")).setAttribute("target","_blank"),s.setAttribute("action",t.url),s.setAttribute("method","POST"),s.style.visibility="hidden",(t=document.createElement("textarea")).setAttribute("name","data"),t.value=JSON.stringify(i),s.appendChild(t),document.body.appendChild(s),s.submit(),setTimeout(function(){s.parentNode.removeChild(s)},100)),i},r.prototype.getFlatCSV=function(o){var e=this._view.data,t=e.getRoot(),r=this._view.config.columns[0],s=e.getMaxLevel(),i="";e.eachChild(t,function(n){var t=function(t,e){for(var i,n=[],o=0;o<=s;o++)t&&t[r.id]?(n[t.$level]=t[r.id],t=(i=e.getParent(t.id,!0))&&i.id?i:null):n[o]="";return n}(n,e).join(o.columnDelimiter);i+=t+Object.keys(n).reduce(function(t,e,i){return"id"===e||"parent"===e||e.startsWith("$")||0===i?t:t+o.columnDelimiter+(null===n[e]?"":n[e])},""),i+=o.rowDelimiter});var t=this._export(o),n=function(t,e){for(var i=0;i<t.length;i++)t[i]=e;return t}(new Array(s+1),""),t=t.header.map(function(t){return t.splice.apply(t,a([0,1],n)),t});return new l.CsvDriver(o).serialize(t,!0)+o.rowDelimiter+i},r.prototype._getCSV=function(t){var e=this._export(t),i=e.header,t=new l.CsvDriver(t);return t.serialize(i,!0)+"\n"+t.serialize(e.data,!0)},i=r;function r(t){this._view=t}e.Exporter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var C=i(0),E=i(1),o=i(6),r=i(5),h=i(4),f=i(18),i=(n.prototype.setCell=function(e,i,t,n){var o,r,s,a,l,c,d,u=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this._gridId&&f.focusManager.getFocusId()!==this._gridId&&f.focusManager.setFocusId(this._gridId),this.config.disabled||this._grid.config.$editable||!this._multiselection&&this._oldSelectedCell&&this._oldSelectedCell.row.id===(e&&e.id||e)&&this._oldSelectedCell.column.id===(i&&i.id||i)||this._multiselection&&1===this._selectedCells.length&&this._selectedCells[0].row.id===(e&&e.id||e)&&this._selectedCells[0].column.id===(i&&i.id||i)||((!this._multiselection||t||n)&&this._multiselection||this._selectedCells.length&&this._removeCells(),this._multiselection&&"cell"===this._type&&this._selectedCells.find(function(t){return t.row.id===(e&&e.id||e)&&t.column.id===(i&&i.id||i)})?this.removeCell(e&&e.id||e,i&&i.id||i):(l=this._oldSelectedCell||void 0,e=this._grid.data.getItem(e&&e.id||e),o=this._grid.config.columns.filter(function(t){return!t.hidden}),i=i||o[0],(i=this._grid.getColumn(i.id||i))&&e&&(i=i.id?i:this._grid.getColumn(i),this.events.fire(h.GridSelectionEvents.beforeSelect,[e,i])&&(this._selectedCell={row:e,column:i},this.events.fire(h.GridSelectionEvents.afterSelect,[e,i]),this._multiselection&&n&&l?this._oldSelectedCell=l:this._oldSelectedCell=this._selectedCell,this._multiselection?n&&!t&&0<this._selectedCells.length?(r=this._grid.data.getIndex(this._oldSelectedCell.row.id),(s=this._grid.data.getIndex(e.id))<r&&(a=r,r=s,s=a),this._selectedCells=[this._oldSelectedCell],"cell"===this._type?(l=(c=o.map(function(t){return t.id})).indexOf(l.column.id),c=c.indexOf(i.id),-1!==l&&-1!==c&&(c<l&&(a=l,l=c,c=a),d=o.slice(l,c+1),this._grid.data.mapRange(r,s,function(e){d.forEach(function(t){t={row:e,column:t};-1===u._findIndex(t)&&u._selectedCells.push(t)})}))):this._grid.data.mapRange(r,s,function(t){t={row:t,column:i};-1===u._findIndex(t)&&u._selectedCells.push(t)})):t&&!n?-1===(n=this._findIndex())?this._selectedCells.push({row:this._selectedCell.row,column:this._selectedCell.column}):1<this._selectedCells.length&&this._selectedCells.splice(n,1):this._selectedCells=[this._selectedCell]:this._selectedCells=[this._selectedCell],C.awaitRedraw().then(function(){u._grid.paint(),u._setBrowserFocus()})))))},n.prototype.getCell=function(){return this._selectedCell},n.prototype.getCells=function(){return this._selectedCells},n.prototype.toHTML=function(){var n=this;if(!this._isUnselected()){if(this._multiselection){var o=[];return this._selectedCells.forEach(function(t,e,i){o.push(n._toHTML(t.row,t.column,e===i.length-1||"cell"===n._type))}),o}return this._toHTML(this._selectedCell.row,this._selectedCell.column,!0)}},n.prototype.disable=function(){this.removeCell(),this.config.disabled=!0,this._grid.paint()},n.prototype.enable=function(){this.config.disabled=!1,this._grid.paint()},n.prototype.removeCell=function(i,n){var t,o=this;i&&n&&"cell"===this._type?(t=this._selectedCells.find(function(t){var e=t.row,t=t.column;return e.id==i&&t.id==n}))&&this._removeCell(t.row,t.column):i?this._selectedCells.filter(function(t){return t.row.id==i}).forEach(function(t){var e=t.row,t=t.column;o._removeCell(e,t)}):this._removeCells(),C.awaitRedraw().then(function(){o._grid.paint()})},n.prototype._removeCell=function(e,i){var t;e&&i&&e.id&&i.id&&this.events.fire(h.GridSelectionEvents.beforeUnSelect,[e,i])&&(t=this._selectedCells.findIndex(function(t){return t.row.id===e.id&&t.column.id===i.id}),this._selectedCells.splice(t,1),this._selectedCell&&i.id===this._selectedCell.column.id&&e.id===this._selectedCell.row.id&&(this._selectedCell=this._selectedCells[this._selectedCells.length-1]||void 0),this._oldSelectedCell&&this._oldSelectedCell.row.id===e.id&&this._oldSelectedCell.column.id===i.id&&(this._oldSelectedCell=void 0),this.events.fire(h.GridSelectionEvents.afterUnSelect,[e,i]))},n.prototype._removeCells=function(){var e=this;this._selectedCells.forEach(function(t){e._removeCell(t&&t.row,t&&t.column)}),this._selectedCells.length&&this._removeCells()},n.prototype._init=function(){var n=this;this._grid.events.on(h.GridEvents.cellClick,function(t,e,i){n.setCell(t,e,i.ctrlKey||i.metaKey,i.shiftKey)}),this._grid.data.events.on(o.DataEvents.beforeRemove,function(t){var e;t&&n._selectedCell&&n._selectedCell.row&&(e=n._grid.data.getIndex(String(n._selectedCell.row.id)),(t=n._grid.data.getId(e+1))?n.setCell(t):(e=n._grid.data.getId(e-1))&&n.setCell(e),n._grid.paint())})},n.prototype._toHTML=function(e,t,i){void 0===i&&(i=!1);var n=this._grid.data.getRawData(0,-1,null,2);if(-1===E.findIndex(n,function(t){return t.id==e.id}))return null;var o=this._grid.config.leftSplit,r=this._grid.config.topSplit,s=this._grid.config.columns.filter(function(t){return!t.hidden}),a=o?s.slice(0,o):[],l=this._grid.config.topSplit?this._grid.data.getRawData(0,this._grid.config.topSplit):[],c=a.map(function(t){return t.id}),d=l.map(function(t){return t.id}),u=a.reduce(function(t,e){return t+e.$width},0),h=l.reduce(function(t,e){return t+e.$height},0),f=this._grid.getCellRect(e.id,t.id),p=this._grid.getScrollState(),g=f.y,_=d.includes(e.id),v=c.includes(t.id),m=a.length&&u>f.x-p.x,y=l.length&&h>f.y-p.y,x=f.width,b=f.height-1,w=null,n=null,s=m?u+p.x:f.x;m&&(x-=(v?0:u)-(f.x-p.x)),y&&(b-=(_?0:h)-(f.y-p.y)-1,g+=f.height-b),_&&(g=f.y+p.y,null!==(h=this._grid.getSpan(e.id,t.id))&&void 0!==h&&h.rowspan?w=l.splice(this._grid.data.getIndex(e.id)).reduce(function(t,e){return t+e.$height},0):b=r===d.indexOf(e.id)+1?f.height-1:f.height),v&&(s=f.x+p.x,null!==(d=this._grid.getSpan(e.id,t.id))&&void 0!==d&&d.colspan?n=a.splice(null===(d=this._grid.config.columns)||void 0===d?void 0:d.indexOf(t)).reduce(function(t,e){return t+e.$width},0):x=o===c.indexOf(t.id)+1?f.width-1:f.width);t=this._grid.config.$totalWidth,f=null;"row"!==this._type&&"complex"!==this._type||(f=C.el(".dhx_grid-selected-row",{style:{width:a.length?t-p.x:t,height:b,minHeight:w,minWidth:n,display:b<0&&!w?"none":"flex",top:g,left:a.length?p.x:0,position:"absolute"}}));p=null;return"cell"!==this._type&&"complex"!==this._type||!i||(p=C.el(".dhx_grid-selected-cell",{style:{width:x,height:b,top:g,minHeight:w,minWidth:n,left:s,position:"absolute",display:x<0&&!n||b<0&&!w?"none":"flex",borderLeft:m&&!v?"none":null,borderTop:y&&!_?"none":null}})),C.el(".dhx_grid-selection",{style:{zIndex:20}},[f,p])},n.prototype._isUnselected=function(){return!this._selectedCell||!this._selectedCell.row||!this._selectedCell.column||0===this._selectedCells.length},n.prototype._findIndex=function(i){var n=this;void 0===i&&(i=this._selectedCell);var o=-1;return this._selectedCells.some(function(t,e){if("cell"===n._type){if(E.compare(t.row,i.row)&&E.compare(t.column,i.column))return o=e,!0}else if("row"===n._type&&E.compare(t.row,i.row))return o=e,!0}),o},n.prototype._setBrowserFocus=function(){var t,e,i=this._grid.getRootView().data.getRootNode();!i||(t=i.querySelector(".dhx_grid_data"))&&this._selectedCell&&this._selectedCell.row&&this._selectedCell.column&&(e=t.querySelector('[data-dhx-id="'+this._selectedCell.row.id+'"]'),t=this._grid.getSpan(this._selectedCell.row.id,this._selectedCell.column.id),!e||(e=(i=t?i.querySelector(".dhx_span-spans"):null)?i.querySelector('[data-dhx-col-id="'+t.column+'"][data-dhx-id="'+t.row+'"]'):e.querySelector('[data-dhx-col-id="'+this._selectedCell.column.id+'"]'))&&(e.tabIndex=0,e.focus({preventScroll:!0})))},n);function n(t,e,i,n){this._grid=t,this.config=e,this._gridId=n,this._selectedCell=void 0,this._oldSelectedCell=void 0,this._selectedCells=[],this._type=["cell","row","complex"].includes(this._grid.config.selection)?this._grid.config.selection:"complex",this._multiselection=t.config.multiselection&&"complex"!==this._type,this.events=i||new r.EventSystem(this),this._init()}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=i(4),s=i(88),a=i(89),l=i(90),c=i(104),d=i(105),u=i(112),h={cell:{row:null,col:null},editor:null,gridId:null};e.getEditor=function(t,e,i){var n="boolean"===e.type?"checkbox":i.$editable.editorType;if(void 0===n&&(n=i.autoHeight?"textarea":"input"),h.cell.row===t.id&&h.cell.col===e.id&&h.gridId===i.gridId&&i.$editable.editor)return h.editor;switch("checkbox"!==n&&(h={cell:{row:t.id,col:e.id},editor:h.editor,gridId:i.gridId}),o||(o=function(){h={cell:{row:null,col:null},editor:null,gridId:null}},i.events.on(r.GridEvents.afterEditEnd,o)),n){case"input":return h.editor=new s.InputEditor(t,e,i);case"textarea":return h.editor=new u.TextAreaEditor(t,e,i);case"select":return h.editor=new a.SelectEditor(t,e,i);case"datePicker":return h.editor=new l.DateEditor(t,e,i);case"checkbox":return new c.CheckboxEditor(t,e,i);case"multiselect":case"combobox":return h.editor=new d.ComboboxEditor(t,e,i);default:return h.editor=new s.InputEditor(t,e,i)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(4),r=i(1),i=(s.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),"string"!==this._cell.col.type&&r.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},s.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];return this._input&&(t=this._input.value),this._config.$editable.editor=this,n.el("input.dhx_cell-editor.dhx_cell-editor__input",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:t})},s.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},didInsert:function(t){t=t.el;(e._input=t).focus(),t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(4),i=(r.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("keydown",this._handlers.onkeydown),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},r.prototype.toHTML=function(){var t=this._cell.col.options.map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[],e=this._cell.row[this._cell.col.id];this._input&&(e=this._input.options[this._input.selectedIndex].value);t=t.map(function(t){return n.el("option",{selected:t.id.toString()===e.toString(),value:t.id},t.value)});return this._config.$editable.editor=this,n.el("select.dhx_cell-editor.dhx_cell-editor__select",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor"},t)},r.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onkeydown:function(t){"Escape"===t.key&&e.endEdit()},didInsert:function(t){t=t.el;(e._input=t).focus(),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onkeydown)}}},r);function r(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.SelectEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),s=i(4),o=i(91),a=i(14),l=i(28),i=(n.prototype.endEdit=function(t,e){var i=this;if(this._handlers){var n=this._calendar.config.dateFormat,o=this._cell.row[this._cell.col.id];if(!t){if(o instanceof Date||e)return this._value=this._calendar.getValue(),this._input.value=this._value,void this._popup.hide();a.stringToDate(this._input.value,n,!0)&&(o&&this._input.value.length===o.length||!o)&&(this._value=this._input.value)}this._config.events.fire(s.GridEvents.beforeEditEnd,[this._value,this._cell.row,this._cell.col])?(this._input.removeEventListener("focus",this._handlers.onFocus),this._input.removeEventListener("change",this._handlers.onChange),document.removeEventListener("mousedown",this._handlers.onOuterClick),r.awaitRedraw().then(function(){i._popup.destructor(),i._calendar.destructor()}),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(s.GridEvents.afterEditEnd,[this._value,this._cell.row,this._cell.col])):this._input.focus()}},n.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];return this._config.$editable.editor=this,document.addEventListener("mousedown",this._handlers.onOuterClick),r.el("input.dhx_cell-editor.dhx_cell-editor__input.dhx_cell-editor__datepicker",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:t})},n.prototype._initHandlers=function(){var i=this;this._handlers={onFocus:function(){r.awaitRedraw().then(function(){i._popup.show(i._input,{centering:!0,mode:"bottom"})})},onChange:function(){i.endEdit()},onOuterClick:function(t){var e;t.target instanceof Node&&(e=i._input&&i._input.contains(t.target),t=i._popup&&i._popup.getRootNode()&&i._popup.getRootNode().contains(t.target),e||t||i._popup.hide())},didInsert:function(t){t=t.el;i._input=t,i._input.addEventListener("focus",i._handlers.onFocus),i._input.addEventListener("change",i._handlers.onChange),t.focus(),t.setSelectionRange(t.value.length,t.value.length)}}},n);function n(t,e,i){var n=this;this._config=i,this._cell={row:t,col:e},this._calendar=new o.Calendar(null,{dateFormat:e.format});t=this._cell.row[this._cell.col.id],e=this._calendar.config.dateFormat;(a.stringToDate(t,e,!0)||t instanceof Date)&&(this._calendar.setValue(t),this._value=this._calendar.getValue(),this._cell.row[this._cell.col.id]=this._value),this._popup=new l.Popup,this._popup.attach(this._calendar),this._calendar.events.on(o.CalendarEvents.change,function(){n.endEdit(!1,!0)}),this._popup.events.on(l.PopupEvents.afterHide,function(){n.endEdit()}),this._initHandlers()}e.DateEditor=i},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(92)),n(e(47))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),b=i(0),a=i(5),l=i(7),c=i(93),d=i(103),w=i(14),u=i(47),h=i(2),o=(r=l.View,o(f,r),f.prototype.setValue=function(t){if(!t||t instanceof Array&&0===t.length)return!1;this._selected=[];var e=t instanceof Array?t[0]:t,i=w.DateHelper.toDateObject(e,this.config.dateFormat),e=w.DateHelper.copy(this._getSelected());return!!this.events.fire(u.CalendarEvents.beforeChange,[i,e,!1])&&(this._setSelected(t),this._timepicker&&(this._timepicker.setValue(i),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(u.CalendarEvents.change,[i,e,!1]),this.paint(),!0)},f.prototype.getValue=function(t){var e=this;return void 0===t&&(t=!1),this._selected[0]?this.config.range?t?this._selected.map(function(t){return w.DateHelper.copy(t)}):this._selected.map(function(t){return w.getFormattedDate(e.config.dateFormat,t)}):t?w.DateHelper.copy(this._selected[0]):w.getFormattedDate(this.config.dateFormat,this._selected[0]):""},f.prototype.getCurrentMode=function(){return this._currentViewMode},f.prototype.showDate=function(t,e){t&&(this._currentDate=w.DateHelper.copy(t)),e&&(this._currentViewMode=e),this.paint()},f.prototype.destructor=function(){this._linkedCalendar&&this._unlink(),this._timepicker&&this._timepicker.destructor(),this.events&&this.events.clear(),this.config=this.events=null,this._uid=this._selected=this._currentDate=this._currentViewMode=this._handlers=this._timepicker=this._time=null,this.unmount()},f.prototype.clear=function(){var t=this.getValue(!0);this.config.timePicker&&(this._timepicker.clear(),this._time=this._timepicker.getValue()),this._selected=[],this.showDate(null,this.config.mode),this.events.fire(u.CalendarEvents.change,[this.getValue(!0),t,!1])},f.prototype.link=function(t){var e=this;this._linkedCalendar&&this._unlink(),this._linkedCalendar=t;var i=this.getValue(!0),n=t.getValue(!0),o=i&&w.DateHelper.dayStart(i),r=n&&w.DateHelper.dayStart(n);this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(o&&r)return o<=t&&t<=r&&function(t){if(w.DateHelper.isSameDay(r,o))return null;var e="dhx_calendar-day--in-range";return w.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--first-date"),w.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--last-date"),e}(t)}),this.config.disabledDates&&this._linkedCalendar.config.disabledDates||(this.config.disabledDates=function(t){if(r)return r<t},this._linkedCalendar.config.disabledDates=function(t){if(o)return t<o}),this.config.thisMonthOnly=!0,t.config.thisMonthOnly=!0,this.events.on(u.CalendarEvents.change,function(t){o=t?w.DateHelper.dayStart(t):null,e._linkedCalendar.paint()},"link"),this._linkedCalendar.events.on(u.CalendarEvents.change,function(t){r=t?w.DateHelper.dayStart(t):null,e.paint()},"link"),this._linkedCalendar.paint(),this.paint()},f.prototype._unlink=function(){this._linkedCalendar&&(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=null,this.config.disabledDates=this._linkedCalendar.config.disabledDates=null,this.events.detach(u.CalendarEvents.change,"link"),this._linkedCalendar.events.detach(u.CalendarEvents.change,"link"),this._linkedCalendar.paint(),this._linkedCalendar=null)},f.prototype._setSelected=function(t){var i,n=this,e=t instanceof Array?t[0]:t,e=w.DateHelper.toDateObject(e,this.config.dateFormat);t instanceof Array&&this.config.range?(i=[],t.forEach(function(t,e){e<2&&i.push(w.DateHelper.toDateObject(t,n.config.dateFormat))}),2===i.length&&i[0]<i[1]?i.forEach(function(t){return n._selected.push(t)}):this._selected[0]=i[0]):this._selected[0]=e},f.prototype._getSelected=function(){return this._selected[this._selected.length-1]},f.prototype._draw=function(){switch(this._currentViewMode){case"calendar":return this.events.fire(u.CalendarEvents.modeChange,["calendar"]),this._drawCalendar();case"month":return this.events.fire(u.CalendarEvents.modeChange,["month"]),this._drawMonthSelector();case"year":return this.events.fire(u.CalendarEvents.modeChange,["year"]),this._drawYearSelector();case"timepicker":return this.events.fire(u.CalendarEvents.modeChange,["timepicker"]),this._drawTimepicker()}},f.prototype._initHandlers=function(){function n(t){void 0===t&&(t=!1);var e=0;switch(o._currentViewMode){case"calendar":e=t?-7:7;break;case"month":e=t?-4:4;break;case"year":e=t?-4:4}return e}var o=this,r={Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Left:"ArrowLeft",Esc:"Escape",Spacebar:"Space"};this._handlers={onkeydown:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){switch(48<=(i=t).which&&i.which<=57||65<=i.which&&i.which<=90?String.fromCharCode(i.which):(i=32===i.which?i.code:i.key,h.isIE()&&r[i]||i)){case"Enter":o._selectDate(t,e);break;case"ArrowLeft":o._moveBrowseFocus(t,e,-1);break;case"ArrowRight":o._moveBrowseFocus(t,e,1);break;case"ArrowUp":o._moveBrowseFocus(t,e,n(!0));break;case"ArrowDown":o._moveBrowseFocus(t,e,n())}var i}},onclick:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){o._selectDate(t,e)},".dhx_calendar-action__cancel":function(){o.showDate(o._getSelected(),"calendar"),o.events.fire(u.CalendarEvents.cancelClick,[])},".dhx_calendar-action__show-month":function(){return o.showDate(null,"month")},".dhx_calendar-action__show-year":function(){return o.showDate(null,"year")},".dhx_calendar-action__next":function(){var t;switch(o._currentViewMode){case"calendar":t=w.DateHelper.addMonth(o._currentDate,1);break;case"month":t=w.DateHelper.addYear(o._currentDate,1);break;case"year":t=w.DateHelper.addYear(o._currentDate,12)}o.showDate(t)},".dhx_calendar-action__prev":function(){var t;switch(o._currentViewMode){case"calendar":t=w.DateHelper.addMonth(o._currentDate,-1);break;case"month":t=w.DateHelper.addYear(o._currentDate,-1);break;case"year":t=w.DateHelper.addYear(o._currentDate,-12)}o.showDate(t)},".dhx_calendar-action__show-timepicker":function(){o._currentViewMode="timepicker",o.paint()}},onmouseover:{".dhx_calendar-day":function(t,e){o.events.fire(u.CalendarEvents.dateMouseOver,[new Date(e.attrs._date),t]),o.events.fire(u.CalendarEvents.dateHover,[new Date(e.attrs._date),t])}}}},f.prototype._getData=function(r){var t,s=this;switch(this._isSelectedInCurrentRange=!1,this.config.weekStart){case"saturday":t=-1;break;case"monday":t=1;break;default:t=0}for(var e=[],i=6,a=w.DateHelper.weekStart(w.DateHelper.monthStart(r),t);i--;){for(var n=w.DateHelper.getWeekNumber(a),l=0,o=7,c=[],d=function(){var t,e=w.DateHelper.isWeekEnd(a),i=r.getMonth()===a.getMonth(),n=u.config.disabledDates&&u.config.disabledDates(a),o=[];u.config.range&&u._selected[0]&&u._selected[1]&&(t=function(){if(s._selected[0]&&s._selected[1]){var t=w.DateHelper.dayStart(s._selected[0]),e=w.DateHelper.dayStart(s._selected[1]);return t<=a&&a<=e&&(w.DateHelper.isSameDay(s._selected[0],s._selected[1])?null:"dhx_calendar-day--in-range")}},u.config.$rangeMark=t),e&&i&&o.push("dhx_calendar-day--weekend"),i||(u.config.thisMonthOnly?(l++,o.push("dhx_calendar-day--hidden")):o.push("dhx_calendar-day--muffled")),!u.config.mark||(i=u.config.mark(a))&&o.push(i),u.config.$rangeMark&&(t=u.config.$rangeMark(a))&&o.push(t),n&&(e?o.push("dhx_calendar-day--weekend-disabled"):o.push("dhx_calendar-day--disabled")),u._selected.forEach(function(t,e){t&&w.DateHelper.isSameDay(t,a)&&(s._isSelectedInCurrentRange=!0,t="dhx_calendar-day--selected",s.config.range&&(t+=" dhx_calendar-day--selected-"+(0===e?"first ":"last")),o.push(t))}),c.push({date:a,day:a.getDate(),css:o.join(" ")}),a=w.DateHelper.addDay(a)},u=this;o--;)d();e.push({weekNumber:n,days:c,disabledWeekNumber:7===l})}return e},f.prototype._drawCalendar=function(){var t,i=this,e=this._currentDate,n=this.config,o=n.weekStart,r=n.thisMonthOnly,s=n.css,a=n.timePicker,l=n.width;switch(o){case"saturday":t=x([w.locale.daysShort[6]],w.locale.daysShort.slice(0,-1));break;case"monday":t=x(w.locale.daysShort.slice(1),[w.locale.daysShort[0]]);break;default:t=w.locale.daysShort}for(var c,n=t.map(function(t){return b.el(".dhx_calendar-weekday",t)}),o=this._getData(e),d=!0,u=this._getSelected(),h=function(t){var e={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(i._isSelectedInCurrentRange?(t=t.date)&&u&&t.getTime()===u.getTime()&&(e.tabindex=0,e["aria-pressed"]="true"):d&&(e.tabindex=0),d=!1),e},f=[],p=[],g=0,_=o;g<_.length;g++){var v=_[g],m=v.days.map(function(t){return b.el("div.dhx_calendar-day",y({class:t.css,_date:t.date},h(t)),t.day)});!this.config.weekNumbers||v.disabledWeekNumber&&r||p.push(b.el("div",{class:"dhx_calendar-week-number"},v.weekNumber)),f=f.concat(m)}this.config.weekNumbers&&(c=b.el(".dhx_calendar__week-numbers",p));s="dhx_calendar dhx_widget"+(s?" "+s:"")+(a?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return b.el("div",y({class:s,style:{width:this.config.weekNumbers?parseInt(l.toString())+48+"px":l}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_calendar-action__show-month.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},w.locale.months[e.getMonth()]+" "+e.getFullYear())),this.config.weekNumbers&&b.el(".dhx_calendar__dates-wrapper",[b.el(".dhx_calendar__weekdays",n),b.el(".dhx_calendar__days",f),c]),!this.config.weekNumbers&&b.el(".dhx_calendar__weekdays",n),!this.config.weekNumbers&&b.el(".dhx_calendar__days",f),a?b.el(".dhx_timepicker__actions",[b.el("button.dhx_calendar__timepicker-button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__show-timepicker",{type:"button"},[b.el("span.dhx_button__icon.dxi.dxi-clock-outline"),b.el("span.dhx_button__text",this._time)])]):null])])},f.prototype._drawMonthSelector=function(){function o(t){return d&&e===t}var t=this._currentDate,e=t.getMonth(),i=this._getSelected()?this._getSelected().getFullYear():null,n=this.config,r=n.css,s=n.timePicker,a=n.weekNumbers,l=n.width,n=n.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),c=!0,d=i===t.getFullYear();return b.el("div",y({class:s,style:{width:a?parseInt(l.toString())+48+"px":l}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_calendar-action__show-year.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},t.getFullYear())),b.el(".dhx_calendar__months",w.locale.monthsShort.map(function(t,e){return b.el("div",y(y({class:"dhx_calendar-month"+(o(e)?" dhx_calendar-month--selected":"")},(i=e,n={role:"button",tabindex:-1,"aria-pressed":"false"},t&&(d?o(i)&&(n.tabindex=0,n["aria-pressed"]="true"):c&&(n.tabindex=0),c=!1),n)),{_date:e}),t);var i,n})),"month"!==n?b.el(".dhx_calendar__actions",[b.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},w.locale.cancel)]):null])])},f.prototype._drawYearSelector=function(){function n(t){return e._getSelected()&&t===e._getSelected().getFullYear()}var e=this,t=this._currentDate,i=w.DateHelper.getTwelweYears(t),o=this.config,r=o.css,s=o.timePicker,a=o.weekNumbers,t=o.width,o=o.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),l=!0,c=this._getSelected()&&i.includes(this._getSelected().getFullYear());return b.el("div",y({class:s,style:{width:a?parseInt(t.toString())+48+"px":t}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},i[0]+"-"+i[i.length-1])),b.el(".dhx_calendar__years",i.map(function(t){return b.el("div",y({class:"dhx_calendar-year"+(n(t)?" dhx_calendar-year--selected":""),_date:t},(i={role:"button",tabindex:-1,"aria-pressed":"false"},(e=t)&&(c?n(e)&&(i.tabindex=0,i["aria-pressed"]="true"):l&&(i.tabindex=0),l=!1),i)),t);var e,i})),"year"!==o&&"month"!==o?b.el(".dhx_calendar__actions",[b.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},w.locale.cancel)]):null])])},f.prototype._drawHeader=function(t){return b.el(".dhx_calendar__navigation",[b.el("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[b.el(".dhx_button__icon.dxi.dxi-chevron-left")]),t,b.el("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[b.el(".dhx_button__icon.dxi.dxi-chevron-right")])])},f.prototype._drawTimepicker=function(){var t=this.config,e=t.css,i=t.weekNumbers,t=t.width;return b.el(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:i?parseInt(t.toString())+48+"px":t}},[b.inject(this._timepicker.getRootView())])},f.prototype._selectDate=function(t,e){var i=e.attrs._date,n=w.DateHelper.copy(this._getSelected());switch(this._currentViewMode){case"calendar":var o=this.config.timePicker?w.DateHelper.mergeHoursAndMinutes(i,this._getSelected()||this._currentDate):i;if(!this.events.fire(u.CalendarEvents.beforeChange,[o,n,!0]))return;this.config.range&&1===this._selected.length&&this._selected[0]<o?this._selected.push(o):(this._selected=[],this._selected[0]=o),e.el.blur(),this.showDate(this._getSelected()),this.events.fire(u.CalendarEvents.change,[i,n,!0]);break;case"month":if("month"!==this.config.mode)w.DateHelper.setMonth(this._currentDate,i),this.showDate(null,"calendar"),this.events.fire(u.CalendarEvents.monthSelected,[i]);else{var r=w.DateHelper.fromYearAndMonth(this._currentDate.getFullYear()||this._getSelected().getFullYear(),i);if(!this.events.fire(u.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(u.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(u.CalendarEvents.monthSelected,[i]),this.paint()}break;case"year":if("year"!==this.config.mode)w.DateHelper.setYear(this._currentDate,i),this.showDate(null,"month"),this.events.fire(u.CalendarEvents.yearSelected,[i]);else{r=w.DateHelper.fromYear(i);if(!this.events.fire(u.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(u.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(u.CalendarEvents.yearSelected,[i]),this.paint()}}},f.prototype._moveBrowseFocus=function(t,e,i){e&&(!(i=e.parent.body[e.idx+i])||(i=i.el)&&(t.target.tabIndex=-1,i.tabIndex=0,i.focus({preventScroll:!0})))},f);function f(t,e){void 0===e&&(e={});var o=r.call(this,t,s.extend({weekStart:"sunday",thisMonthOnly:!1,dateFormat:window&&window.dhx&&window.dhx.dateFormat,width:"250px"},e))||this;switch(o._selected=[],o.events=new a.EventSystem,o.config.disabledDates=o.config.disabledDates||o.config.block,o.config.mode=o.config.mode||o.config.view,o.config.dateFormat||(o.config.timePicker?12===o.config.timeFormat?o.config.dateFormat="%d/%m/%y %h:%i %A":o.config.dateFormat="%d/%m/%y %H:%i":o.config.dateFormat="%d/%m/%y"),o.config.value&&o._setSelected(o.config.value),o.config.date?o._currentDate=w.DateHelper.toDateObject(o.config.date,o.config.dateFormat):o._getSelected()?o._currentDate=w.DateHelper.copy(o._getSelected()):o._currentDate=new Date,o.config.mode){case"month":o._currentViewMode="month";break;case"year":o._currentViewMode="year";break;case"timepicker":o._currentViewMode=o.config.timePicker?"timepicker":"calendar";break;default:o._currentViewMode="calendar"}o._initHandlers(),o.config.timePicker&&(o._timepicker=new c.Timepicker(null,{timeFormat:o.config.timeFormat,controls:!0}),e=o._getSelected()||new Date,o._timepicker.setValue(e),o._time=o._timepicker.getValue(),o._timepicker.events.on(c.TimepickerEvents.afterClose,function(){o._timepicker.setValue(o._time),o.showDate(null,"calendar")}),o._timepicker.events.on(c.TimepickerEvents.afterApply,function(){var t=o._timepicker.getValue(!0),e=t.hour,i=t.minute,n=t.AM,t=o._getSelected(),n=w.DateHelper.withHoursAndMinutes(o._getSelected()||new Date,e,i,n);o.events.fire(u.CalendarEvents.beforeChange,[n,t,!0])&&(o._selected[o._selected.length-1]=n,o.events.fire(u.CalendarEvents.change,[n,t,!0])),o._time=o._timepicker.getValue(),o.showDate(null,"calendar")}));return o.mount(t,b.create({render:function(){return o._draw()}})),o}e.Calendar=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(94)),n(e(46))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(5),c=i(7),d=i(25),u=i(98),h=i(101),f=i(102),p=i(46),g=i(2);function _(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}var v,o=(v=c.View,o(m,v),m.prototype.getValue=function(t){12===this.config.timeFormat&&(this._time.hour=this._time.hour%12||12);var e=this._time,i=e.hour,n=e.minute,e=e.AM;if(t){t={hour:i,minute:n};return 12===this.config.timeFormat&&(t.AM=e),t}return(i<10?"0"+i:i)+":"+(n<10?"0"+n:n)+(12===this.config.timeFormat?e?"AM":"PM":"")},m.prototype.setValue=function(t){this._setValue(t),this._hoursSlider.setValue(this._time.hour),this._minutesSlider.setValue(this._time.minute),this._inputsView.paint()},m.prototype.clear=function(){24===this.config.timeFormat?this.setValue("00:00"):this.setValue("12:00AM")},m.prototype.destructor=function(){this._minutesSlider&&this._minutesSlider.destructor(),this._hoursSlider&&this._hoursSlider.destructor(),this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.config=this.events=null,this._handlers=this._time=this._inputsView=this._minutesSlider=this._hoursSlider=null,this.unmount()},m.prototype.getRootView=function(){return this.layout.getRootView()},m.prototype._setValue=function(t){var e,i,n=0,o=0;return"number"==typeof t&&(t=new Date(t)),t instanceof Date?(n=t.getMinutes(),o=t.getHours()):Array.isArray(t)?(o=_(t[0],23),n=_(t[1],59),t[2]&&"pm"===t[2].toLowerCase()&&(e=!0)):"string"==typeof t?(o=_(+(i=t.match(/\d+/g))[0],23),n=_(+i[1],59),t.toLowerCase().includes("pm")&&(e=!0)):"object"==typeof t&&t.hasOwnProperty("hour")&&t.hasOwnProperty("minute")&&(o=t.hour,n=t.minute,e=!t.AM),e&&o<12&&(o+=12),12===this.config.timeFormat&&!f.isTimeCheck(t)&&12<=o&&(e=!0),this._time={hour:o,minute:n,AM:!e}},m.prototype._initUI=function(t){var e=this,i={gravity:!1,css:"dhx_widget dhx_timepicker "+(this.config.css||"")+(this.config.controls?" dhx_timepicker--with-controls":""),rows:[{id:"timepicker",css:"dhx_timepicker__inputs"},{id:"hour-slider",css:"dhx_timepicker__hour"},{id:"minute-slider",css:"dhx_timepicker__minute"}]};this.config.controls&&(i.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),i.rows.push({id:"save-action",css:"dhx_timepicker__save"}));var n=this.layout=new d.Layout(t,i),o=a.create({render:function(){return e._draw()}}),t=this._inputsView=c.toViewLike(o),i=this._minutesSlider=new u.Slider(null,{min:0,max:59,step:1,tooltip:!1,labelPosition:"top",label:h.default.minutes,value:this.config.value?this._time.minute:0}),o=this._hoursSlider=new u.Slider(null,{min:0,max:23,step:1,tooltip:!1,labelPosition:"top",label:h.default.hours,value:!this.config.value||12===this._time.hour&&this._time.AM?0:this._time.hour});n.getCell("timepicker").attach(t),n.getCell("hour-slider").attach(o),n.getCell("minute-slider").attach(i),this.config.controls&&(n.getCell("save-action").attach(function(){return a.el("button.dhx_timepicker__button-save.dhx_button.dhx_button--view_flat.dhx_button--color_primary.dhx_button--size_small.dhx_button--circle.dhx_button--width_full",{onclick:e._outerHandlers.save,type:"button"},h.default.save)}),n.getCell("close-action").attach(function(){return a.el("button.dhx_timepicker__button-close.dhx_button.dhx_button--view_link.dhx_button--size_medium.dhx_button--view_link.dhx_button--color_secondary.dhx_button--icon.dhx_button--circle",{_ref:"close",onclick:e._outerHandlers.close,type:"button","aria-label":"close timepicker"},[a.el("span.dhx_button__icon.dxi.dxi-close")])}))},m.prototype._initHandlers=function(){function e(t){var e=_(parseInt(t.value,10),59);t.value=e.toString(),n._minutesSlider.setValue(e)}function i(t){var e=_(parseInt(t.value,10),23);t.value=e.toString(),n._hoursSlider.setValue(e)}var n=this;this._handlers={onchange:{".dhx_timepicker-input--hour":function(t){return i(t.target)},".dhx_timepicker-input--minutes":function(t){return e(t.target)}},oninput:{".dhx_timepicker-input--hour":function(t){(g.isSafari()||g.isFirefox())&&i(t.target)},".dhx_timepicker-input--minutes":function(t){(g.isSafari()||g.isFirefox())&&e(t.target)}}},this._outerHandlers={close:function(){n.events.fire(p.TimepickerEvents.beforeClose,[n.getValue("timeObject"===n.config.valueFormat)])&&(n.events.fire(p.TimepickerEvents.afterClose,[n.getValue("timeObject"===n.config.valueFormat)]),n.events.fire(p.TimepickerEvents.close,[]))},save:function(){n.events.fire(p.TimepickerEvents.beforeApply,[n.getValue("timeObject"===n.config.valueFormat)])&&(n.events.fire(p.TimepickerEvents.afterApply,[n.getValue("timeObject"===n.config.valueFormat)]),n.events.fire(p.TimepickerEvents.apply,[n.getValue()]),n.events.fire(p.TimepickerEvents.save,[n._time]))}}},m.prototype._initEvents=function(){var e=this;this._hoursSlider.events.on(u.SliderEvents.change,function(t){t<e._hoursSlider.config.min||t>e._hoursSlider.config.max||(12===e.config.timeFormat?(e._time.AM=t<12,e._time.hour=t%12||12):e._time.hour=t,e.events.fire(p.TimepickerEvents.change,[e.getValue("timeObject"===e.config.valueFormat)]),e._inputsView.paint())}),this._minutesSlider.events.on(u.SliderEvents.change,function(t){t<e._minutesSlider.config.min||t>e._minutesSlider.config.max||(e._time.minute=t,e.events.fire(p.TimepickerEvents.change,[e.getValue("timeObject"===e.config.valueFormat)]),e._inputsView.paint())})},m.prototype._draw=function(){return a.el(".dhx_timepicker-inputs",r({},this._handlers),[a.el("input.dhx_timepicker-input.dhx_timepicker-input--hour",{_key:"hour",_ref:"hour",value:1<this.getValue(!0).hour.toString().length?this.getValue(!0).hour:"0"+this.getValue(!0).hour,"aria-label":"hours"}),a.el("span.dhx_timepicker-delimer",":"),a.el("input.dhx_timepicker-input.dhx_timepicker-input--minutes",{_key:"minute",value:1<this.getValue(!0).minute.toString().length?this.getValue(!0).minute:"0"+this.getValue(!0).minute,"aria-label":"minutes"}),12===this.config.timeFormat?a.el(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},m);function m(t,e){void 0===e&&(e={});e=v.call(this,t,s.extend({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},e))||this;return e.events=new l.EventSystem(e),e._time={hour:0,minute:0,AM:!0},12===e.config.timeFormat&&(e._time.hour=12),e.config.controls=e.config.controls||e.config.actions,e.config.value&&e._setValue(e.config.value),e._initUI(t),e._initHandlers(),e._initEvents(),e}e.Timepicker=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBlockRange=function(t,e,i){return void 0===i&&(i=!0),i?{min:t.left+window.pageXOffset,max:e.right+window.pageXOffset}:{min:t.top+window.pageYOffset,max:e.bottom+window.pageYOffset}},e.getMarginSize=function(t,e){return t&&("space"===t.type||"wide"===t.type&&e)?10:0}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(42),a=i(97),o=(r=s.Layout,o(l,r),l.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new l(this,t)):new a.ProCell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},l);function l(t,e){return r.call(this,t,e)||this}e.ProLayout=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,d=i(1),u=i(0),s=i(27),i=i(43),o=(r=i.Cell,o(a,r),a.prototype._getFirstRootView=function(t){return void 0===t&&(t=this),t.getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},a.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this._calculateStyle(),n=d.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",o=this.config.full||this.config.html?i:c(c({},i),n);this.config.html||(e=this._ui?((l=this._ui.getRootView()).render&&(l=u.inject(l)),l?[this.scrollView.render(l)]:l||null):t?this.scrollView.render([t]):t||null);var i=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?u.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),c(c({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[u.el("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,r={};if(this.config.on)for(var s in this.config.on)r["on"+s]=this.config.on[s];var a="",l=this.config.cols||this.config.rows;if(this.config.type&&l)switch(this.config.type){case"line":a=" dhx_layout-line";break;case"wide":a=" dhx_layout-wide";break;case"space":a=" dhx_layout-space"}t=u.el(".dhx_layout-cell-content",{_key:this._uid+"_html",style:n},[u.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),t=u.el("div",c(c(((l={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,l),r),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?a:""),style:o}),this.config.full?[u.el("div",{tabindex:this.config.collapsable?"0":"-1",class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&u.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&u.el(".dhx_layout-cell-header__image-wrapper",[u.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&u.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?u.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):u.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:u.el("div",{style:c(c({},n),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?a:"")},this.config.html?[u.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable?this.scrollView.render([t],this._uid):t]);return i?[t,i]:t}},a);function a(t,e){var i=r.call(this,t,e)||this;return i.scrollView=new s.ScrollView(function(){return i._getFirstRootView()}),i}e.ProCell=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(99)),n(e(45))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),c=i(0),s=i(5),a=i(24),d=i(7),u=i(28),h=i(45),f=i(2);function p(t,e,i){return t<e?e:i<t?i:t}var g,o=(g=d.View,o(_,g),_.prototype.disable=function(){this._disabled=!0,this.paint()},_.prototype.enable=function(){this._disabled=!1,this.paint()},_.prototype.isDisabled=function(){return this._disabled},_.prototype.focus=function(t){this.getRootView().refs[t?"extraRunner":"runner"].el.focus()},_.prototype.blur=function(){this.getRootView().refs[this._isExtraActive?"extraRunner":"runner"].el.blur()},_.prototype.getValue=function(){var t,e;return this.config.range?(t=this._getValue(this._currentPosition))<(e=this._getValue(this._extraCurrentPosition))?[t,e]:[e,t]:[this._getValue(this._currentPosition)]},_.prototype.setValue=function(t){var e=this._getValue(this._currentPosition);if(Array.isArray(t)&&1<t.length){var i=this._getValue(this._extraCurrentPosition);this._setValue(t[0],!1),this.events.fire(h.SliderEvents.change,[t[0],e,!1]),this._setValue(t[1],!0),this.events.fire(h.SliderEvents.change,[t[1],i,!0])}else{if(t=parseFloat(t),isNaN(t))throw new Error("Wrong value type, for more info check documentation https://docs.dhtmlx.com/suite/slider__api__slider_setvalue_method.html");this._setValue(t),this.events.fire(h.SliderEvents.change,[t,e,!1])}this.paint()},_.prototype.destructor=function(){this._keyManager&&this._keyManager.destructor(),document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),this._tooltip=null,this.unmount()},_.prototype._calcSliderPosition=function(){var t=this.getRootView();t&&(t=t.refs.track.el.getBoundingClientRect(),this._offsets={left:t.left+window.pageXOffset,top:t.top+window.pageYOffset},this._length="horizontal"===this.config.mode?t.width:t.height)},_.prototype._initHotkeys=function(){var t,e=this,i={arrowLeft:function(t){t.preventDefault(),e._move(-e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowRight:function(t){t.preventDefault(),e._move(e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowUp:function(t){t.preventDefault(),e._move(e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))},arrowDown:function(t){t.preventDefault(),e._move(-e.config.step,t.target.classList.contains("dhx_slider__thumb--extra"))}};for(t in i)this._keyManager.addHotKey(t,i[t])},_.prototype._move=function(t,e){this.config.inverse&&(t=-t);var i=this.config,n=i.max,o=i.min,r=e?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),i=r+t;this._setValue(r+t,e),(n<i||i<o)&&(i=r),this.events.fire(h.SliderEvents.change,[i,r,e]),this.paint()},_.prototype._initStartPosition=function(){var t,e,i=this.config,n=i.max,o=i.min,r=i.range,i=(t=this.config.value,e=this.config.min,i=this.config.max,(t=void 0===t?[]:Array.isArray(t)?t:"string"==typeof t?t.split(",").map(function(t){return parseInt(t,10)}):[t])[0]=void 0===t[0]?e:p(t[0],e,i),t[1]=void 0===t[1]?i:p(t[1],e,i),t),t=i[0],i=i[1];this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(n-i)/(n-o)*100),this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(i-o)/(n-o)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,r&&(this._extraCurrentPosition=100-this._extraCurrentPosition))},_.prototype._getValue=function(t){this._isInverse()&&(t=100-t);var e=this.config,i=e.min,n=e.max,e=e.step;if(100===t)return n;if(0===t)return i;t=t*(n-i)/100,n=t%e,e=e/2<=n?e:0;return+(Number(i)+Number(t)-n+e).toFixed(5)},_.prototype._setValue=function(t,e){void 0===e&&(e=!1);var i=this.config,n=i.max,i=i.min;if(n<t||t<i)return!1;i=(t-i)/(n-i)*100,i=this._isInverse()?100-i:i;e?this._extraCurrentPosition=i:this._currentPosition=i},_.prototype._initHandlers=function(){function e(t){if(t.targetTouches||t.preventDefault(),t=((t.targetTouches?t.targetTouches[0]:t)[n._axis]-n._getBegining())/n._length*100,n._findNewDirection){if(Math.abs(n._currentPosition-t)<1)return;t>n._currentPosition?n._possibleRange=[n._currentPosition,100]:n._possibleRange=[0,n._currentPosition],n._findNewDirection=null}n._inSide(t)&&n._updatePosition(t,n._isExtraActive),n.paint()}function i(t){var e,i;n._disabled||3===t.which||(n.events.fire(h.SliderEvents.mousedown,[t]),n._isMouseMoving=!0,e=t.target.classList.contains("dhx_slider__thumb--extra")?(n._isExtraActive=!0,n._extraCurrentPosition):(n._isExtraActive=!1,n._currentPosition),n._findNewDirection=null,n.config.range?(t=(i=n._currentPosition>n._extraCurrentPosition?[n._currentPosition,n._extraCurrentPosition]:[n._extraCurrentPosition,n._currentPosition])[0],i=i[1],n._currentPosition===n._extraCurrentPosition?(n._findNewDirection=e,n._possibleRange=[0,100]):n._possibleRange=e<t?[0,t]:[i,100]):n._possibleRange=[0,100])}var n=this,o=function(t){n.events.fire(h.SliderEvents.mouseup,[t]),setTimeout(function(){n._isMouseMoving=!1,n.paint()},4),t.targetTouches?(document.removeEventListener("touchend",o),document.removeEventListener("touchmove",e)):(document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",e))};this.config.helpMessage&&(this._helper=new u.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(t){t.preventDefault(),t.stopPropagation(),n._helper.show(t.target)},onmousedown:function(t){i(t),document.addEventListener("mousemove",e),document.addEventListener("mouseup",o)},ontouchstart:function(t){n._setTooltip(t),n._mouseIn=!1,i(t),document.addEventListener("touchmove",e),document.addEventListener("touchend",o),n.paint()},ontouchend:function(t){n._setTooltip(t),n._mouseIn=!1,n.paint()},onlabelClick:function(){n.getRootView().refs.runner.el.focus()},onclick:function(t){var e;n._disabled||n._isMouseMoving||3===t.which||(e=(t[n._axis]-n._getBegining())/n._length*100,t=n.getRootView().refs,!n.config.range||Math.abs(n._currentPosition-e)<Math.abs(n._extraCurrentPosition-e)?(n._updatePosition(e,!1),t.runner.el.focus()):(n._updatePosition(e,!0),t.extraRunner.el.focus()),n.paint())},onmouseover:function(t){n._setTooltip(t),n._mouseIn=!0,n.paint()},onmouseout:function(t){n._setTooltip(t),n._mouseIn=!1,n.paint()},onfocus:function(t){n._setTooltip(t),n._focusIn=!0,n.events.fire(h.SliderEvents.focus,[]),n.paint()},onblur:function(t){n._setTooltip(t),n._focusIn=!1,n.events.fire(h.SliderEvents.blur,[]),n.paint()},onkeydown:function(t){n.events.fire(h.SliderEvents.keydown,[t])}}},_.prototype._getBegining=function(){return"horizontal"===this.config.mode?this._offsets.left-window.pageXOffset:this._offsets.top-window.pageYOffset},_.prototype._inSide=function(t){var e=this._possibleRange;return t<e[0]?(this._updatePosition(e[0],this._isExtraActive),!1):!(t>e[1])||(this._updatePosition(e[1],this._isExtraActive),!1)},_.prototype._updatePosition=function(t,e){void 0===e&&(e=!1),100<t&&(t=100),t<0&&(t=0);var i=this.config,n=i.max,o=i.min,i=e?this._extraCurrentPosition:this._currentPosition,i=this._getValue(i),t=this._getValue(t);i!==t&&(o=(t-o)/(n-o)*100,o=this._isInverse()?100-o:o,e?this._extraCurrentPosition=o:this._currentPosition=o,this.events.fire(h.SliderEvents.change,[t,i,e]))},_.prototype._getRunnerStyle=function(t){void 0===t&&(t=!1);var e="horizontal"===this.config.mode?"left":"top",i=t?this._extraCurrentPosition:this._currentPosition;return(t={})[e]=i+"%",t},_.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},_.prototype._getRunnerCss=function(t){return void 0===t&&(t=!1),"dhx_slider__thumb"+(t?" dhx_slider__thumb--extra":"")+(this._isMouseMoving&&(t&&this._isExtraActive||!t&&!this._isExtraActive)?" dhx_slider__thumb--active":"")+(this._disabled?" dhx_slider__thumb--disabled":"")+(this._isNullable(t?this._extraCurrentPosition:this._currentPosition)&&!this.config.range?" dhx_slider__thumb--nullable":"")},_.prototype._draw=function(){var t=this.config,e=t.labelPosition,i=t.mode,n=t.hiddenLabel,o=t.tick,r=t.majorTick,s=t.css,a=t.helpMessage,t=f.getLabelStyle(l(l({},this.config),{required:!1}));return!this._tooltip||this._mouseIn&&this._focusIn&&this._isMouseMoving||document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),c.el("div",{class:"dhx_slider dhx_slider--mode_"+i+("left"===e?" dhx_slider--label-inline":"")+(n?" dhx_slider--label_sr":"")+(o?" dhx_slider--ticks":"")+(r?" dhx_slider--major-ticks":"")+(s?" "+s:"")+(this._disabled?" dhx_slider--disabled":"")},[t?c.el("label.dhx_label.dhx_slider__label",{style:t.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},a?[t.label&&c.el("span.dhx_label__holder",t.label),c.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:t.label):null,this._drawSlider()])},_.prototype._drawSlider=function(){return c.el(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[c.el(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),c.el("div",{_ref:"runner",class:this._getRunnerCss(),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(),tabindex:0}),this.config.tooltip&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip():null,this.config.tooltip&&this.config.range&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip(!0):null,this.config.range?c.el("div",{_ref:"extraRunner",class:this._getRunnerCss(!0),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(!0),tabindex:0}):null]),this.config.tick?this._drawTicks():null])},_.prototype._getDetector=function(){var t;if(this._disabled)return c.el(".dhx_slider__range");var e="horizontal"===this.config.mode?"left":"top",i="horizontal"===this.config.mode?"width":"height";if(this.config.range){var n=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition],o=n[0],r=n[1];return c.el(".dhx_slider__range",{style:((n={})[e]=r+"%",n[i]=o-r+"%",n)})}return this._isInverse()?c.el(".dhx_slider__range",{style:((t={})[e]=this._currentPosition+"%",t[i]=100-this._currentPosition+"%",t)}):c.el(".dhx_slider__range",{style:((t={})[e]=0,t[i]=this._currentPosition+"%",t)})},_.prototype._drawTooltip=function(t){var e,i,n;void 0===t&&(t=!1),"none"!==this._activeTooltip&&this.getRootView()&&(e="extraTooltip"===this._activeTooltip?this._extraCurrentPosition:this._currentPosition,i="horizontal"===this.config.mode?"left":"top",n="",(t&&this._isExtraActive||!t&&!this._isExtraActive)&&(n+=" dhx_slider__thumb-label--active"),this._tooltip||(this._tooltip=document.createElement("div")),t=("tooltip"===this._activeTooltip?this.getRootView().refs.runner:this.getRootView().refs.extraRunner).el.getBoundingClientRect(),this._tooltip.className="dhx_slider__thumb-label"+n,this._tooltip.style.left=t.x+("left"==i?6:-30)+window.pageXOffset+"px",this._tooltip.style.top=t.y+("left"==i?-30:6)+window.pageYOffset+"px",this._tooltip.innerText=this._getValue(e).toString(),document.body.appendChild(this._tooltip))},_.prototype._getTicks=function(){for(var t=this.config,e=t.max,i=t.min,n=t.step,o=t.tick,r=t.majorTick,s=e-i,a=n*o/s,l=[],c=0,d=0;c<1;){var u=+(Number(i)+c*s).toFixed(5),h=d%r==0;l.push({position:(this._isInverse()?100*(1-c):100*c)+"%",isMultiple:h,label:h&&"function"==typeof this.config.tickTemplate?this.config.tickTemplate(u):null}),c+=a,d++}return l.push({position:(this._isInverse()?0:100)+"%",isMultiple:!0,label:"function"==typeof this.config.tickTemplate?this.config.tickTemplate(e):null}),l},_.prototype._drawTicks=function(){var i="horizontal"===this.config.mode?"left":"top";return c.el(".dhx_slider__ticks-holder",this._getTicks().map(function(t){var e;return c.el("div",{class:"dhx_slider__tick"+(t.isMultiple?" dhx_slider__tick--major":""),style:((e={})[i]=t.position,e)},void 0!==t.label?[c.el(".dhx_slider__tick-label",t.label)]:null)}))},_.prototype._isNullable=function(t){return this._isInverse()?100===t:0===t},_.prototype._setTooltip=function(t){t.target.classList.contains("dhx_slider__thumb--extra")?this._activeTooltip="extraTooltip":t.target.classList.contains("dhx_slider__thumb")?this._activeTooltip="tooltip":this._activeTooltip="none"},_);function _(t,e){var i=g.call(this,t,r.extend({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},e))||this;i._disabled=!1,i.config.helpMessage=i.config.helpMessage||i.config.help,void 0!==i.config.thumbLabel&&(i.config.tooltip=i.config.thumbLabel),i.config.labelInline&&(i.config.labelPosition="left"),i.events=new s.EventSystem(i),i._axis="horizontal"===i.config.mode?"clientX":"clientY",i._initStartPosition(),i._keyManager=new a.KeyManager(function(){var t;return document.activeElement===(null===(t=null===(t=i.getRootView().refs)||void 0===t?void 0:t[i._isExtraActive?"extraRunner":"runner"])||void 0===t?void 0:t.el)}),i._initHotkeys();e=c.create({render:function(){return i._draw()},hooks:{didMount:function(){return i._calcSliderPosition()},didRedraw:function(){return i._calcSliderPosition()}}});return i._initHandlers(),i.mount(t,e),i}e.Slider=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(1),l=i(0),c=i(5),d=i(2),u=i(7),h=i(44),o=(r=u.View,o(f,r),f.prototype.show=function(t,e,i){var n=this;void 0===e&&(e={}),this.events.fire(h.PopupEvents.beforeShow,[t])&&(t=d.toNode(t),this._isActive?this._setPopupSize(t,e):(i&&this.attach(i),this._popup.style.left="0",this._popup.style.top="0",l.awaitRedraw().then(function(){n._setPopupSize(t,e),n._popup.style.position="fixed",document.body.appendChild(n._popup),n._isActive=!0}).then(function(){n._popup.style.position="absolute",n.events.fire(h.PopupEvents.afterShow,[t]),n._outerClickDestructor=n._detectOuterClick(t)})))},f.prototype.hide=function(){this._hide(!1,null)},f.prototype.isVisible=function(){return this._isActive},f.prototype.attach=function(t,e){return this._html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof u.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},f.prototype.attachHTML=function(t){this._html=t,this.paint()},f.prototype.getWidget=function(){return this._ui},f.prototype.getContainer=function(){return this.getRootView().refs.content.el},f.prototype.toVDOM=function(){var t;return this._html?t=l.el(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=l.inject(t)),l.el("div",{class:"dhx_popup-content",tabindex:0,onclick:this._clickEvent,_key:this._uid,_ref:"content"},[t])},f.prototype.destructor=function(){this.hide(),this._outerClickDestructor&&this._outerClickDestructor(),this._popup=null},f.prototype._setPopupSize=function(t,e,i){var n=this;void 0===i&&(i=3);var o=this._popup.getBoundingClientRect(),r=o.width,o=o.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!i||0!==r&&0!==o){r=d.fitPosition(t,s(s({centering:!0,mode:"bottom"},e),{width:r,height:o})),o=r.left,r=r.top;if(this._popup.style.left=o,this._popup.style.top=r,e.indent&&0!==e.indent)switch(e.mode){case"top":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"bottom":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;case"left":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"right":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;default:this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px"}}else this._timeout=setTimeout(function(){n._isActive&&(n._setPopupSize(t,e,i-1),n._timeout=null)})},f.prototype._detectOuterClick=function(n){var o=this,r=!1,s=new WeakMap,a=function(t){var e=t.target,i=document.querySelectorAll(".dhx_popup");for(r?i.forEach(function(t){return s.has(t)||s.set(t,o._popup)}):(r=Boolean(i.length))&&i.forEach(function(t){return s.set(t,!0)});e;){if(e===n||e===o._popup||s.get(e)===o._popup)return;e=e.parentNode}o._hide(!0,t)&&document.removeEventListener("mousedown",a)};return document.addEventListener("mousedown",a),function(){return document.removeEventListener("mousedown",a)}},f.prototype._hide=function(t,e){if(this._isActive)return!!this.events.fire(h.PopupEvents.beforeHide,[t,e])&&(document.body.removeChild(this._popup),this._isActive=!1,this._outerClickDestructor&&(this._outerClickDestructor(),this._outerClickDestructor=null),this.events.fire(h.PopupEvents.afterHide,[e]),!0)},f);function f(t){void 0===t&&(t={});var e=r.call(this,null,a.extend({},t))||this,i=e._popup=document.createElement("div");return i.className="dhx_widget dhx_popup"+(e.config.css?" "+e.config.css:""),i.style.position="absolute",i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-live","polite"),e.mount(i,l.create({render:function(){return e.toVDOM()}})),e._clickEvent=function(t){return e.events.fire(h.PopupEvents.click,[t])},e.events=t.events||new c.EventSystem(e),e._isActive=!1,e}e.Popup=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={hours:"Hours",minutes:"Minutes",save:"Save"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeCheck=function(t){return/(^12:[0-5][0-9]?AM$)/i.test(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linkButtonClasses=".dhx_button.dhx_button--view_link.dhx_button--icon.dhx_button--size_medium.dhx_button--color_secondary"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(4),i=(s.prototype.endEdit=function(){var t=this._checked;this._config.events.fire(r.GridEvents.beforeEditEnd,[t,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(r.GridEvents.afterEditEnd,[t,this._cell.row,this._cell.col])):this._input.checked=!t},s.prototype.toHTML=function(){void 0===this._checked&&(this._checked=this._cell.row[this._cell.col.id]);var t=n.uid();return o.el("div.dhx_checkbox.dhx_cell-editor__checkbox",[o.el("label",{style:{display:"none"},for:t},this._checked||"false"),o.el("input.dhx_checkbox__input",{type:"checkbox",_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",checked:this._checked,id:t,style:{userSelect:"none"}}),o.el("span.dhx_checkbox__visual-input")])},s.prototype._initHandlers=function(){var e=this;this._handlers={onClick:function(){var t=!e._input.checked;e._config.events.fire(r.GridEvents.beforeEditStart,[e._cell.row,e._cell.col,"checkbox"])?(e._checked=t,e._config.events.fire(r.GridEvents.afterEditStart,[e._cell.row,e._cell.col,"checkbox"]),e.endEdit()):e._input.checked=!t},didInsert:function(t){e._checkbox=t.el.parentNode.lastChild,e._input=t.el.parentNode.querySelector("input"),t.el.parentNode.addEventListener("click",e._handlers.onClick)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.CheckboxEditor=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=i(4),s=i(48),a=i(18),i=(l.prototype.endEdit=function(t){var e,i=this;t||(e=this._input.getValue(),e="multiselect"===this._cell.col.editorType?e.split(",").join(", "):e),this._config.events.fire(r.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.popup.hide(),document.removeEventListener("mousedown",this._handlers.onOuterClick),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),a.focusManager.setFocusId(this._config.gridId),null!=e&&e.toString().split(", ").forEach(function(e){var t=i._cell.col.options.find(function(t){return"string"==typeof t?t===e:t.id.toString()===e});e&&!t&&i._cell.col.options.push(i._input.data.getItem(e))}),this._config.events.fire(r.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},l.prototype.toHTML=function(){var e=this,t=this._cell.col.options.map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[];return this._input||(this._input=new s.Combobox(null,n({itemHeight:37,css:"dhx_cell-editor__combobox",multiselection:"multiselect"===this._cell.col.editorType},this._cell.col.editorConfig)),this._input.data.parse(t),t=this._cell.row[this._cell.col.id],t="multiselect"===this._cell.col.editorType?((null==t?void 0:t.toString())||"").split(", "):t,this._input.setValue(t),this._input.events.on("keydown",this._handlers.onkeydown)),document.addEventListener("mousedown",this._handlers.onOuterClick),this._config.$editable.editor=this,o.awaitRedraw().then(function(){var t=e._input.getRootView().refs.holder.el;e._input.popup.getContainer().style.width=t.offsetWidth+"px",e._input.popup.show(t)}),a.focusManager.setFocusId(this._input._uid),o.inject(this._input.getRootView())},l.prototype._initHandlers=function(){var i=this;this._handlers={onOuterClick:function(t){var e;t.target instanceof Node&&(e=i._input&&i._input.getRootNode()&&i._input.getRootNode().contains(t.target),t=i._input.popup&&i._input.popup.getRootNode()&&i._input.popup.getRootNode().contains(t.target),e||t||i.endEdit())},onkeydown:function(t){"Escape"!==t.key&&"Tab"!==t.key||i.endEdit()}}},l);function l(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.ComboboxEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEY_CODES={BACKSPACE:8,ENTER:13,ESC:27,DOWN_ARROW:40,UP_ARROW:38,LEFT_ARROW:37,RIGHT_ARROW:39}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(108);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(29),i=(r.prototype.endEdit=function(){var t;this._input&&(t=this._input.value,this._list.events.fire(o.ListEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._list.events.fire(o.ListEvents.afterEditEnd,[t,this._item.id])):this._input.focus())},r.prototype.toHTML=function(){this._mode=!0;var t=this._config.itemHeight;return n.el(".dhx_input__wrapper",{role:"presentation"},[n.el("div.dhx_input__container",{role:"presentation"},[n.el("input.dhx_input",{class:this._item.css?" "+this._item.css:"",style:{height:t,width:"100%",padding:"8px 12px"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},r.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},onKeyDown:function(t){"Enter"===t.key&&e._item.value===e._input.value&&e.endEdit(),"Escape"===t.key&&(e._input.value=e._item.value,e.endEdit())},didInsert:function(t){t=t.el;(e._input=t).focus(),t.value=e._item.value,t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onKeyDown)}}},r);function r(t,e){var i=this;this._list=e,this._config=e.config,this._item=t,this._list.events.on(o.ListEvents.focusChange,function(t,e){i._mode&&e!==i._item.id&&i.endEdit()}),this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(27),i=i(51),o=(a=i.List,o(d,a),d.prototype.destructor=function(){a.prototype.destructor.call(this),this.scrollView=null},d.prototype.showItem=function(t){var e,i,n,o=this.getRootView();o&&o.node&&o.node.el&&void 0!==t&&((e=this.getRootNode())&&(i=this.config.virtual,n=this.data.getIndex(t),o=Math.floor(n/e.children.length)||0,t=e.children[n-e.children.length*o],(i||t)&&(o=i?parseInt(this.config.itemHeight):t.clientHeight,(t=i?n*o:t.offsetTop)>=e.scrollTop+e.clientHeight-o?e.scrollTo(0,t-e.clientHeight+o):t<e.scrollTop&&e.scrollTo(0,t))))},d.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});this.config.virtual&&(e=s([l.el(".div",{style:{height:t[2]+"px"}})],e,[l.el(".div",{style:{height:t[3]+"px"}})]));var n=this.scrollView&&this.scrollView.config.enable,t=(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(n?" dhx_list--scroll-view":"");return l.el("ul.dhx_widget.dhx_list",r(r({style:{"max-height":this.config.height,position:"relative"},class:t,"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),n?[].concat(this.scrollView.render(e)):e)},d);function d(t,e){var i=a.call(this,t,e)||this;return i.scrollView=new c.ScrollView(function(){return i.getRootView()}),i.paint(),i}e.ProList=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.startNewListen=function(t){this._isActive=!0,this._sequence="",this._currentAction=t},o.prototype.endListen=function(){this._currentAction=null,this.reset(),this._isActive=!1},o.prototype.reset=function(){this._sequence=""},o.prototype._change=function(){this._currentAction(this._sequence),this._addClearTimeout()},o.prototype._addClearTimeout=function(){var t=this;this._clearTimeout&&clearTimeout(this._clearTimeout),this._clearTimeout=setTimeout(function(){t.reset(),t._clearTimeout=null},2e3)},o);function o(){var e=this;this._sequence="",document.addEventListener("keydown",function(t){e._isActive&&("Backspace"===(t=t.key)&&0<e._sequence.length&&(e._sequence=e._sequence.slice(0,e._sequence.length-1),e._change()),t.length<2&&(e._sequence+=t,e._change()))})}e.KeyListener=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(49),a=i(50),l=i(25),c=i(54),o=(r=s.Combobox,o(d,r),d.prototype._createLayout=function(){var t=this.list=new a.ProList(null,{template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!1,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data}),e=this._layout=new l.ProLayout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(c.selectAllView)},d);function d(t,e){return r.call(this,t,e)||this}e.ProCombobox=o},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=i(4),o=i(1),a=i(11),i=(l.prototype.endEdit=function(t){var e;t||(e=this._editor.value),this._config.events.fire(s.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._editor.removeEventListener("blur",this._handlers.onBlur),this._editor.removeEventListener("change",this._handlers.onChange),this._editor.removeEventListener("input",this._handlers.onInput),"string"!==this._cell.col.type&&o.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(s.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._editor.focus()},l.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];this._editor&&(t=this._editor.value);var e=void 0!==(this._config.$editable.editor=this)._cell.row.height||this._cell.col.htmlEnable?"dhx_cell-editor dhx_cell-editor__textarea_constant-height":"dhx_cell-editor dhx_cell-editor__textarea";return n.el("textarea",{_hooks:{didInsert:this._handlers.didInsert},_ref:"textarea",_key:"cell_editor","data-dhx-id":"cell_editor",value:t,class:e,style:{width:this._width}})},l.prototype._initHandlers=function(){var o=this;this._handlers={onBlur:function(){o.endEdit()},onChange:function(){o.endEdit()},onInput:function(t){if(void 0===o._cell.row.height&&!o._cell.col.htmlEnable){var e=o._getCurrentHeight(o._editor.value,{width:o._cell.col.$width-2,maxHeight:o._config.rowHeight});o._cell.row[o._cell.col.id]=o._editor.value;var i=a.getCalculatedRowHeight(a.getMaxRowHeight(o._cell.row,o._config.columns)),n=a.getCalculatedRowHeight(a.getMaxRowHeight(((n={})[o._cell.col.id]=o._cell.row[o._cell.col.id],n),o._config.columns));if(o._minHeight=i===n?o._config.rowHeight:i,e>=o._minHeight&&e!==o._prevHeight){if(!o._config.events.fire(s.GridEvents.beforeRowResize,[o._cell.row,t,e]))return;o._config.events.fire(s.GridEvents.afterRowResize,[o._cell.row,t,e])}o._prevHeight=e}},didInsert:function(t){o._editor=t.el,o._editor.focus(),o._editor.setSelectionRange(0,o._editor.value.length),o._editor.addEventListener("change",o._handlers.onChange),o._editor.addEventListener("blur",o._handlers.onBlur),o._editor.addEventListener("input",o._handlers.onInput)}}},l.prototype._getCurrentHeight=function(t,e){e=r({width:100,maxHeight:40,lineHeight:20},e);var i=document.createElement("textarea");i.className="dhx_cell-editor dhx_cell-editor__textarea",i.value=t,i.style.width=e.width+"px",i.style.lineHeight=e.lineHeight+"px",i.style.maxHeight=e.maxHeight+"px",i.style.boxSizing="border-box",document.body.appendChild(i);var n=this._getElementHeight(i),o=i.value.split("\n").length,t=Math.round(n/e.lineHeight),n=n<e.maxHeight?e.maxHeight:n;return document.body.removeChild(i),1===o&&o===t?e.maxHeight:n},l.prototype._getElementHeight=function(t){return t.scrollHeight},l);function l(t,e,i){this._config=i,this._cell={row:t,col:e},this._width=this._cell.col.$width;e=0;this._config.firstColId===this._cell.col.id&&this._cell.row.hasOwnProperty("$level")&&(e=a.getTreeCellWidthOffset(this._cell.row)),this._width-=e-4,this._initHandlers()}e.TextAreaEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),l=i(48),c=i(6),d=i(4),u=i(11),h=i(2),o=i(1);function r(e,i,n,o,r){function t(){var t=(h.isIE()||h.isSafari()?r.target:r.path?r.path[0]:r.explicitOriginalTarget).value;o.value[i]=t,e.fire(d.GridEvents.filterChange,[t,i,n])}"selectFilter"!==n?(s&&clearTimeout(s),s=setTimeout(t,500)):t()}function n(t,n,e,i){if(t&&n&&e){var o=t.id,t=i?i(o,n.data):n.data.reduce(function(t,e){return void 0===e[o]||""===e[o]||isNaN(e[o])||t.push(parseFloat(e[o])),t},[]),i=t;return"tree"===n.type&&(i=n.data.reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[o]||""===e[o]||isNaN(e[o])?(i=0,n.datacollection.eachChild(e.id,function(t){n.datacollection.haveItems(t.id)||(i+=parseFloat(t[o]))}),t.push(i)):t.push(parseFloat(e[o])||0)),t},[])),e(t,i)}}e.getContent=function(){function s(i){var t=i.$uniqueData;return"combobox"!==i.editorType&&"select"!==i.editorType&&"multiselect"!==i.editorType||!i.options||(t=t.map(function(e){var t=i.options.find(function(t){return"string"==typeof t?e===t:e===t.id});return t&&"string"!=typeof t?t.value:e})),"string"!==i.type?Array.from(new Set(t.map(function(t){return u.toFormat(t,i.type,i.format)}))):t}var i=this;return{inputFilter:{element:{},toHtml:function(t,e){var i=o.uid(),n=t.id.toString();return this.element[n]=a.el("div.dhx_grid-filter__label.dxi.dxi-magnify",{"aria-label":"Type to search",_ref:t.id+"_filter"},[a.el("label",{style:{display:"none"},"aria-label":"Type to search",for:i},"Type to search"),a.el("input",{type:"text",class:"dhx_input dhx_grid-filter",oninput:[r,e.events,t.id,"inputFilter",this],_key:t.id,id:i,value:this.value[t.id]||""})]),this.element[n]},match:function(t){for(var e=t.val,i=t.match,t=t.col,t=u.toFormat(e,t.type,t.format),n="",o=0;o<i.length;o++){var r=i.charCodeAt(o);n+=32<r&&r<48||63===r||90<r&&r<95||124===r?"\\"+i[o]:i[o]}return new RegExp(""+n,"i").test(t)},value:{}},selectFilter:{element:{},toHtml:function(e,t){var i=this,n=e.id.toString(),o=s(e);return this.element[n]=a.el("label.dhx_grid-filter__label.dxi.dxi-menu-down",{_ref:e.id+"_filter"},[a.el("select.dxi.dxi-menu-down",{type:"text",class:"dhx_input dhx_grid-filter dhx_grid-filter--select",onchange:[r,t.events,e.id,"selectFilter",this],_key:e.id},[a.el("option",{value:""},""),o.map(function(t){return""!==(t=null!=t?t:"")&&a.el("option",{value:t,selected:i.value[e.id]===t.toString()},t)})])]),this.element[n]},match:function(t){var e=t.val,i=t.match,t=t.col,t=u.toFormat(e,t.type,t.format);return!i||(t||"boolean"==typeof t)&&t.toString()==i},value:{}},comboFilter:{element:{},toHtml:function(i,n){var t,e,o,r=i.id.toString();return!this.element[r]&&n.events?(t=s(i),e=i.header.filter(function(t){return void 0!==t.filterConfig})[0],(o=e&&e.filterConfig?new l.Combobox(null,Object.assign({},e.filterConfig)):new l.Combobox(null,{})).data.parse(t.map(function(t){return{value:t}})),n.events.on(c.DataEvents.load,function(){o.data.parse(i.$uniqueData.map(function(t){return{value:t}}))}),(this.element[r]=o).events.on("change",function(t){var e;t&&(e=void 0,(Array.isArray(t)?t.find(function(t){return o.data.getItem(t)}):o.data.getItem(t))?(e=o.config.multiselection?o.list.selection.getItem().map(function(t){if(t&&o.data.getItem(t.id))return t.value}):o.list.selection.getItem().value,n.events.fire(d.GridEvents.filterChange,[e,r,"comboFilter"])):n.events.fire(d.GridEvents.filterChange,["",r,"comboFilter"]))}),n.events.on(c.DataEvents.change,function(t,e){"add"!==e&&"update"!==e&&"remove"!==e||(e=s(i),o.data.parse(e.map(function(t){return{value:t}})),o.events.fire(l.ComboboxEvents.change,[o.list.selection.getItem()]))}),n.events.on(c.DataEvents.removeAll,function(){o.data.parse(i.$uniqueData.map(function(t){return{value:t}})),o.events.fire(l.ComboboxEvents.change,[o.list.selection.getItem()])}),o.popup.events.on("afterHide",function(){o.list.selection.getItem()&&(!o.config.multiselection||o.list.selection.getItem().length)||(o.clear(),n.events.fire(d.GridEvents.filterChange,["",r,"comboFilter"]))})):o=this.element[i.id]||new l.Combobox(null,{}),a.inject(o.getRootView())},match:function(t){var e=t.val,i=t.match,n=void 0===i?"":i,i=t.multi,o=void 0!==i&&i,t=t.col,r=u.toFormat(e,t.type,t.format);if(Array.isArray(n)){for(var s=void 0,a=0;a<n.length;a++)if("break"===function(e){if(s=o?!!r.split(", ").find(function(t){return t===n[e]}):n[e]===r)return"break"}(a))break;return!n||!n.length||s}return""===n||r===n},destroy:function(){if(i.content&&i.content.comboFilter.element){var t,e=i.content.comboFilter.element;for(t in e)e[t].destructor(),delete e[t]}},value:{}},sum:{calculate:function(t,e){return e.reduce(function(t,e){return t+(parseFloat(e)||0)},0)},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},avg:{calculate:function(t,e){return t.length?e.reduce(function(t,e){return t+e},0)/t.length:null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},min:{calculate:function(t){return t.length?Math.min.apply(Math,t):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},max:{calculate:function(t){return t.length?Math.max.apply(Math,t):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},count:{calculate:function(t,e){return e.length},validate:function(i,t){return t.reduce(function(t,e){return void 0!==e[i]&&""!==e[i]&&(isNaN(e)?t.push(1):t.push(e)),t},[])},toHtml:function(t,e){return n(t,e,this.calculate,this.validate)}}}}},function(t,e,i){"use strict";var h=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var f=i(1),p=i(4),g=i(2);e.startResize=function(a,l,t,e){t.targetTouches&&t.preventDefault();var c=(t.targetTouches?t.targetTouches[0]:t).clientX,d=a.config.columns.filter(function(t){return!t.hidden}),u=0;function i(t){var e,i,n=f.findIndex(d,function(t){return t.id===l}),o=(t.targetTouches?t.targetTouches[0]:t).clientX,r=o-a.getRootNode().getBoundingClientRect().left,s=a.config.$totalHeight>a.config.height?g.getScrollbarWidth():0;a.config.leftSplit===n+1&&r>=a.config.width-s-2||(u=u||d[n].$width,e=d[n].minWidth||40,r=d[n].maxWidth,s=o-c,o=h(d),s=u+s,r&&r<=s||s<=e?(s<=e&&(i=e),r<=s&&(i=r)):i=s,o[n].$width=i,o[n].$fixed=!0,a.events.fire(p.GridEvents.resize,[d[n],t]),a.paint())}a.config.$resizing=l;var n=function(){t.targetTouches?(document.removeEventListener("touchmove",i),document.removeEventListener("touchend",n)):(document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",n)),e()};t.targetTouches?(document.addEventListener("touchmove",i),document.addEventListener("touchend",n)):(document.addEventListener("mousemove",i),document.addEventListener("mouseup",n)),a.paint()}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),s=i(2),a=i(30),l=new WeakMap,c=new Map;function d(t,e){var i=document.createElement("div");return i.setAttribute("data-position",e),i.className="dhx_message-container dhx_message-container--"+e+(t===document.body?" dhx_message-container--in-body":""),i}function u(t,e){e&&clearTimeout(l.get(t));var i=t.parentNode,n=i.getAttribute("data-position"),o=i.parentNode,e=c.get(o);e&&(!(e=e[n])||-1!==(e=(n=e.stack).indexOf(t))&&(i.removeChild(t),n.splice(e,1),0===n.length&&o.removeChild(i)))}e.message=function(t){"string"==typeof t&&(t={text:t}),t.position=t.position||a.MessageContainerPosition.topRight;var e=document.createElement("div");e.className="dhx_widget dhx_message "+(t.css||""),e.setAttribute("role","alert"),(o=t.text&&r.uid())&&e.setAttribute("aria-describedby",o),t.html?e.innerHTML=t.html:(e.innerHTML='<span class="dhx_message__text" id='+o+"></span>\n\t\t"+(t.icon?'<span class="dhx_message__icon dxi '+t.icon+'"></span>':""),e.querySelector("#"+o).textContent=t.text);var i=t.node?s.toNode(t.node):document.body;"static"===getComputedStyle(i).position&&(i.style.position="relative"),(o=c.get(i))?o[t.position]||(o[t.position]={stack:[],container:d(i,t.position)}):c.set(i,((n={})[t.position]={stack:[],container:d(i,t.position)},n));var n=(o=c.get(i)[t.position]).stack,o=o.container;0===n.length&&i.appendChild(o),n.push(e),o.appendChild(e),t.expire&&(t=setTimeout(function(){return u(e)},t.expire),l.set(e,t)),e.onclick=function(){return u(e,!0)}}},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(59),i=o(60),c=o(1);n.alert=function(s){var a=s.buttons&&s.buttons[0]?s.buttons[0]:e.default.apply,l=i.blockScreen(s.blockerCss);return new t(function(e){var t="dhx_alert__"+c.uid()+"_content",i="dhx_alert__"+c.uid()+"_header",n=document.createElement("div");n.setAttribute("role","alert"),n.setAttribute("aria-modal","true"),s.text&&n.setAttribute("aria-describedby",t),s.header&&n.setAttribute("aria-labelledby",i),n.className="dhx_widget dhx_alert "+(s.css||"");var o=function(t){"Escape"!==t.key&&"Esc"!==t.key||(r(t),e(!1))};function r(t){t.preventDefault(),l(),document.body.removeChild(n),document.removeEventListener("keydown",o)}n.innerHTML="\n\t\t\t"+(s.header?"<div id="+i+' class="dhx_alert__header"> '+(!1!==s.htmlEnable?s.header:"")+" </div>":"")+"\n\t\t\t"+(s.text?"<div id="+t+' class="dhx_alert__content">'+(!1!==s.htmlEnable?s.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(s.buttonsAlignment?"dhx_alert__footer--"+s.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="confirm" class="dhx_alert__apply-button dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+a+"</button>\n\t\t\t</div>",!1===s.htmlEnable&&(s.header&&(n.querySelector("#"+i).textContent=s.header),s.text&&(n.querySelector("#"+t).textContent=s.text)),document.body.appendChild(n),n.querySelector(".dhx_alert__apply-button").focus(),n.querySelector("button").addEventListener("click",function(t){r(t),e(!0)}),document.addEventListener("keydown",o)})}}).call(this,o(12))},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(59),i=o(60),h=o(1);n.confirm=function(l){l.buttonsAlignment=l.buttonsAlignment||"right";var c=l.buttons&&l.buttons[1]?l.buttons[1]:e.default.apply,d=l.buttons&&l.buttons[0]?l.buttons[0]:e.default.reject,u=i.blockScreen("dhx_alert__overlay-confirm "+(l.blockerCss||""));return new t(function(e){var i=document.createElement("div");i.setAttribute("role","alertdialog"),i.setAttribute("aria-modal","true");var n,t=l.header&&h.uid(),o=l.header&&h.uid();o&&i.setAttribute("aria-describedby",o),t&&i.setAttribute("aria-labelledby",t);function r(t){u(),i.removeEventListener("click",s),document.removeEventListener("keydown",a),document.body.removeChild(i),e(t)}var s=function(t){"BUTTON"===t.target.tagName&&r(t.target.classList.contains("dhx_alert__confirm-aply"))},a=function(t){"Escape"===t.key||"Esc"===t.key?(i.querySelector(".dhx_alert__confirm-aply").focus(),r(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===n?(n="reject",i.querySelector(".dhx_alert__confirm-reject").focus()):(n="aply",i.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};i.className="dhx_widget dhx_alert dhx_alert--confirm"+(l.css?" "+l.css:""),i.innerHTML="\n\t\t"+(l.header?'<div class="dhx_alert__header" id='+t+"> "+(!1!==l.htmlEnable?l.header:"")+" </div>":"")+"\n\t\t"+(l.text?'<div class="dhx_alert__content" id='+o+">"+(!1!==l.htmlEnable?l.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(l.buttonsAlignment?"dhx_alert__footer--"+l.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="reject" class="dhx_alert__confirm-reject dhx_button dhx_button--view_link dhx_button--color_primary dhx_button--size_medium">'+d+'</button>\n\t\t\t\t<button type="button" aria-label="aply"class="dhx_alert__confirm-aply dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+c+"</button>\n\t\t\t</div>",!1===l.htmlEnable&&(l.header&&(i.querySelector("#"+t).textContent=l.header),l.text&&(i.querySelector("#"+o).textContent=l.text)),document.body.appendChild(i),n="aply",i.querySelector(".dhx_alert__confirm-aply").focus(),i.addEventListener("click",s),document.addEventListener("keydown",a)})}}).call(this,o(12))},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),u=i(30),h=750,f=200;function d(t,e,i,n,o,r){var s,a,l;switch(void 0===o&&(o=8),void 0===r&&(r=0),1<r&&(e=u.Position.center),e){case u.Position.center:return(a=t.left+window.pageXOffset+(t.width-i)/2)+o<window.pageXOffset&&(a=t.left+window.pageXOffset),{left:a,top:l=t.top+window.pageYOffset+(t.height-n)/2,pos:s=u.RealPosition.center};case u.Position.right:return(s=u.RealPosition.right,(a=t.right+window.pageXOffset+o)+i>window.innerWidth+window.pageXOffset)?d(t,u.Position.left,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case u.Position.left:return(s=u.RealPosition.left,(a=window.pageXOffset+t.left-i-o)<0)?d(t,u.Position.right,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case u.Position.top:return s=u.RealPosition.top,(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),(l=window.pageYOffset+t.top-n-o)-n<0?d(t,u.Position.bottom,i,n,o,++r):{left:a,top:l,pos:s};case u.Position.bottom:default:return(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),s=u.RealPosition.bottom,(l=window.pageYOffset+t.bottom+o)+n>window.innerHeight+window.pageYOffset?d(t,u.Position.top,i,n,o,++r):{left:a,top:l,pos:s}}}e.findPosition=d;var p=document.createElement("div"),g=document.createElement("span");g.className="dhx_tooltip__text",p.appendChild(g),p.setAttribute("role","tooltip"),p.style.position="absolute";var _,v=null,m=!1,y=null,x=null;function b(t){return t&&(t.classList.contains("dhx_popup--window")&&t.classList.contains("dhx_popup--window_active")||t.classList.contains("dhx_popup--window_modal")||t.classList.contains("dhx_popup"))?2147483647:null!=t&&t.classList.contains("dhx_popup--window")?2147483646:t&&t.offsetParent?b(t.offsetParent):null}function w(t,e,i,n,o,r,s){void 0===o&&(o=!1),void 0===r&&(r=8);var a=t.getBoundingClientRect();s?g.innerHTML=e:g.textContent=e,document.body.appendChild(p),p.className="dhx_widget dhx_tooltip"+(o?" dhx_tooltip--forced":"");var e=p.getBoundingClientRect(),r=d(a,i,e.width,e.height,r),l=r.left,c=r.top,r=r.pos,t=b(t);switch(t&&(p.style.zIndex=t.toString()),r){case u.RealPosition.bottom:case u.RealPosition.top:case u.RealPosition.left:case u.RealPosition.right:case u.RealPosition.center:p.style.left=l+"px",p.style.top=c+"px"}p.className+=" dhx_tooltip--"+r+" "+(n||""),m=!0,o||setTimeout(function(){p.className+=" dhx_tooltip--animate"})}function r(e,t,i){var n=i.force,o=i.showDelay,r=i.hideDelay,s=i.position,a=i.css,l=i.htmlEnable,c=i.margin;n||(x=setTimeout(function(){w(e,t,s||u.Position.bottom,a,!1,c,l)},o||h));var d=function(){var t;m&&(t=r,v&&(y=setTimeout(function(){document.body.removeChild(p),m=!1,y=null},t||f))),clearTimeout(x),e.removeEventListener("mouseleave",d),e.removeEventListener("blur",d),document.removeEventListener("mousedown",d),_=v=null};n&&w(e,t,s,a,n,c,l),e.addEventListener("mouseleave",d),e.addEventListener("blur",d),document.addEventListener("mousedown",d),_=d}function s(t,e){var i=o.toNode(e.node);i!==v&&(_&&(_(),_=null),v=i,y?(clearTimeout(y),y=null,r(i,t,n(n({},e),{force:!0}))):r(i,t,e))}function a(t){t=o.locateNode(t,"dhx_tooltip_text");t&&s(t.getAttribute("dhx_tooltip_text"),{position:t.getAttribute("dhx_tooltip_position")||u.Position.bottom,node:t})}e.getZIndex=b,e.tooltip=s,e.enableTooltip=function(){document.addEventListener("mousemove",a)},e.disableTooltip=function(){document.removeEventListener("mousemove",a)}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(4),d=i(2),a=i(8);function l(t,e,i,n,o,r,s){var a,l,c;void 0===o&&(o=!1),void 0===r&&(r=!1),void 0===s&&(s=!1),e.config.$editable||!e.config.selection||d.locateNodeByClassName(t,"dhx_grid-header-cell")||(t&&t.preventDefault(),a=e.selection.getCell(),t=e.config.columns.filter(function(t){return!t.hidden}),a&&("vertical"===i?o?(l=1===n?e.data.getItem(e.data.getId(e.data.getLength()-1)):e.data.getItem(e.data.getId(0)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):0<=(c=e.data.getIndex(a.row.id.toString()))+n&&c+n<e.data.getLength()&&(l=e.data.getItem(e.data.getId(c+n)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):o?(l=1===n?t[t.length-1]:t[0],e.selection.setCell(a.row.id,l.id,r,s),e.scrollTo(a.row.id.toString(),l.id.toString())):0<=(c=t.indexOf(a.column))+n&&c+n<t.length&&(e.selection.setCell(a.row.id,t[c+n].id,r,s),e.scrollTo(a.row.id.toString(),t[c+n].id.toString()))))}e.selectionMove=l,e.getKeysHandlers=function(o){var t,n="cell"===o.config.selection||"complex"===o.config.selection||!0===o.config.selection,e={};if(o.getRootView()){var i=null===(t=null===(t=null===(t=o.getRootView())||void 0===t?void 0:t.refs)||void 0===t?void 0:t.grid_body)||void 0===t?void 0:t.el;if(!i)return;e={pageUp:function(t){t.preventDefault(),i.scrollTop-=i.clientHeight},pageDown:function(t){t.preventDefault(),i.scrollTop+=i.clientHeight},home:function(t){t.preventDefault(),i.scrollTop=0},end:function(t){t.preventDefault(),i.scrollTop+=i.scrollHeight}}}return r({enter:function(t){var e,i=d.locateNodeByClassName(t,"dhx_grid-header-cell");i&&(e=i.getAttribute("data-dhx-id"),i=t.target.getAttribute("dhx_resized"),!e||(t=o.getColumn(e))&&a.isSortable(o.config,t)&&!i&&o.events.fire(s.GridEvents.afterSort,[e])),n?(e=o.selection.getCell())&&(!1!==e.column.editable&&o.config.editable||e.column.editable)&&(o.config.$editable?o.editEnd():"boolean"!==e.column.type?o.editCell(e.row.id,e.column.id,e.column.editorType):o.events.fire(s.GridEvents.afterEditEnd,[!e.row[e.column.id],e.row,e.column])):o.config.$editable&&o.editEnd()},space:function(t){var e,i=o.selection.getCell();n&&(null!==(e=null==i?void 0:i.column.editable)&&void 0!==e?e:o.config.editable)&&!o.config.$editable&&i&&"boolean"===i.column.type&&(t.preventDefault(),o.events.fire(s.GridEvents.afterEditEnd,[!i.row[i.column.id],i.row,i.column]))},escape:function(){o.config.$editable&&o.editEnd(!0)},tab:function(t){var e,i,n;o.config.selection&&!d.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)+1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):0<=i&&((n=o.data.getIndex(n.row.id.toString())+1)<o.data.getLength()&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[0].id),o.scrollTo(o.data.getId(n).toString(),e[0].id.toString())))))},"shift+tab":function(t){var e,i,n;o.config.selection&&!d.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)-1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):i<o.data.getLength()&&(0<=(n=o.data.getIndex(n.row.id.toString())-1)&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[e.length-1].id),o.scrollTo(o.data.getId(n).toString(),e[e.length-1].id.toString())))))},arrowUp:function(t){l(t,o,"vertical",-1)},"ctrl+arrowUp":function(t){l(t,o,"vertical",-1,!0)},"shift+arrowUp":function(t){o.config.multiselection&&l(t,o,"vertical",-1,!1,!1,!0)},"ctrl+shift+arrowUp":function(t){o.config.multiselection&&l(t,o,"vertical",-1,!0,!1,!0)},arrowDown:function(t){l(t,o,"vertical",1)},"ctrl+arrowDown":function(t){l(t,o,"vertical",1,!0)},"shift+arrowDown":function(t){o.config.multiselection&&l(t,o,"vertical",1,!1,!1,!0)},"ctrl+shift+arrowDown":function(t){o.config.multiselection&&l(t,o,"vertical",1,!0,!1,!0)},arrowRight:function(t){l(t,o,"horizontal",1)},"ctrl+arrowRight":function(t){l(t,o,"horizontal",1,!0)},"shift+arrowRight":function(t){o.config.multiselection&&l(t,o,"horizontal",1,!1,!1,!0)},"ctrl+shift+arrowRight":function(t){o.config.multiselection&&l(t,o,"horizontal",1,!0,!1,!0)},arrowLeft:function(t){l(t,o,"horizontal",-1)},"ctrl+arrowLeft":function(t){l(t,o,"horizontal",-1,!0)},"shift+arrowLeft":function(t){o.config.multiselection&&l(t,o,"horizontal",-1,!1,!1,!0)},"ctrl+shift+arrowLeft":function(t){o.config.multiselection&&l(t,o,"horizontal",-1,!0,!1,!0)}},e)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(40),l=i(4),f=i(6),c=i(2),d=i(11),p=i(41),u=i(0),h=i(27),o=(s=a.Grid,o(g,s),g.prototype._createView=function(){var i=this;return u.create({render:function(t,e){return p.proRender(t,e,i._htmlEvents,i.selection,i._uid)}},this)},g.prototype._setEventHandlers=function(){var r=this;s.prototype._setEventHandlers.call(this),this.events.on(l.GridEvents.headerCellMouseDown,function(t,e){var i=c.locateNodeByClassName(e,"dhx_header-row"),i=i&&i.getAttribute("aria-rowindex");null!==(i=t.header[Number(i)-1])&&void 0!==i&&i.content||(e.targetTouches?r._touch.timer=setTimeout(function(){r._dragStartColumn(e,t)},r._touch.duration):r._dragStartColumn(e,t))}),this._events.on(l.GridSystemEvents.headerCellTouchMove,function(t,e){r._touch.start&&e.preventDefault(),r._clearTouchTimer()}),this._events.on(l.GridSystemEvents.headerCellTouchEnd,function(){r._touch.start=!1,r._clearTouchTimer()}),this.events.on(l.GridEvents.resize,function(){r._parseColumns(),r._checkFilters()}),this.events.on(l.GridEvents.afterResizeEnd,function(){r.config.autoHeight&&(r.config.data=r.data.map(function(t){var e=d.getMaxRowHeight(t,r.config.columns);return t.$height=d.getCalculatedRowHeight(e,{rowHeight:r.config.rowHeight,padding:8}),t}))}),this.events.on(l.GridEvents.afterRowResize,function(t,e,i){var n=r.data.getItem(t.id),o=n.id,t=n.height,n=n.$height;t&&t!==n&&r.data.update(o,{height:i}),r.data.update(o,{$height:i},!0),r.config.data=r.data.map(function(t){return t}),r.paint()}),this.events.on(l.GridEvents.scroll,function(){r._lazyLoad()}),this.events.on(f.DataEvents.dataRequest,function(t,e){var i=r.data.dataProxy;i&&i.config&&r._prepareDataFromTo(r.data,t,e)})},g.prototype._prepareData=function(t){var e,i=this;return this._adjustColumns(),(Array.isArray(t)||f.isTreeCollection(t)?t:0!==(e=t.getInitialData()||[]).length?e:t.getRawData(0,t.getLength())).map(function(t){var e;return i.config.autoHeight&&void 0===t.height?(e=d.getMaxRowHeight(t,i.config.columns),t.$height=d.getCalculatedRowHeight(e,{rowHeight:i.config.rowHeight,padding:8})||i.config.rowHeight):t.$height=t.height||i.config.rowHeight,t})},g.prototype._prepareDataFromTo=function(t,e,i){var n=this;return t.mapRange(e,i,function(t){var e=d.getMaxRowHeight(t,n.config.columns);return t.$height=d.getCalculatedRowHeight(e,{rowHeight:n.config.rowHeight,padding:8})||n.config.rowHeight,t})},g.prototype._lazyLoad=function(){var i=this,t=this.data.dataProxy;if(t&&t.config){var e,n=this.data.getRawData(0,-1,null,2),o=p.getRenderConfig(this,n,{width:this.config.width,height:this.config.height}),r=t.config.limit,s=r,a=o.currentRows,l=a[0],c=a[a.length-1],d=this.data.getIndex(c.id),n=function(t){for(var e=1;e<a.length;e++)if("firstFilledRow"===t&&!a[e].$empty&&a[e-1].$empty||"firstEmptyRow"===t&&a[e].$empty&&!a[e-1].$empty)return i.data.getIndex(a[e].id)};if(l.$empty)if(c.$empty)e=this.data.getIndex(l.id);else{var u=n("firstFilledRow"),o=u-s;o<0&&(o=0);for(var h=o;h<u;h++)if(this.data.getItem(this.data.getId(h)).$empty){s=u-(e=h);break}}else c.$empty?e=n("firstEmptyRow"):(e=null!==(c=n("firstEmptyRow"))&&void 0!==c?c:this.data.getIndex(l.id),s=(null!==(n=n("firstFilledRow"))&&void 0!==n?n:d)-e);!this.data.isDataLoaded(e,d)&&this.data.events.fire(f.DataEvents.beforeLazyLoad,[])&&(t.updateUrl(null,{from:e,limit:s}),t.config.limit=r,this.data.load(t).then(function(){i.config.autoHeight&&i._prepareDataFromTo(i.data,e,d)}))}},g.prototype._getColumnGhost=function(t){var e=this._container||c.toNode(this._uid),i=e.querySelector(".dhx_header-row"),n=i.querySelector('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]'),n=Array.from(i.childNodes).indexOf(n)+1,t=e.querySelectorAll('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]:not(.dhx_span-cell)'),n=e.querySelectorAll(".dhx_grid_data .dhx_grid-cell:nth-child("+n+")"),o=document.createElement("div");return t.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),n.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),o},g.prototype._dragStartColumn=function(t,e){function i(t){return t.classList.contains("dhx_grid-custom-content-cell")}var n=t.target;i(n.parentElement)||i(n.parentElement.parentElement)||!(e.draggable||"column"===this.config.dragItem&&!1!==e.draggable||"both"===this.config.dragItem&&!1!==e.draggable)||c.locateNodeByClassName(t,"dhx_resizer_grip_wrap")||(t.targetTouches&&(this._touch.start=!0),f.dragManager.onMouseDown(t,[e.id],[this._getColumnGhost(e)]))},g);function g(t,e){var i=s.call(this,t,r({autoHeight:!1},e))||this;return i.scrollView=new h.ScrollView(function(){return i.getRootView()},{scrollHandler:function(t){return i.events.fire(l.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])}}),i}e.ProGrid=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.setItem=function(t,e){this._store[t]=e},o.prototype.getItem=function(t){return this._store[t]||null},o);function o(){this._store={}}var r=window.dhxHelpers=window.dhxHelpers||{};r.collectionStore=r.collectionStore||new n,e.collectionStore=r.collectionStore},function(t,l,c){"use strict";(function(t){var n,e=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(l,"__esModule",{value:!0});var o,i=c(13),r=c(1),s=c(23),e=(o=i.DataProxy,e(a,o),a.prototype.load=function(){var i=this;return new t(function(t,e){i._timeout?(clearTimeout(i._timeout),i._timeout=setTimeout(function(){s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0},i.config.delay),i._cooling&&(t(null),i._cooling=!1)):(s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0,i._timeout=setTimeout(function(){}))})},a);function a(t,e){var i=o.call(this,t)||this;return i.config=r.extend({from:0,limit:50,delay:50,prepare:0},e),i.updateUrl(t,{from:i.config.from,limit:i.config.limit}),i}l.LazyDataProxy=e}).call(this,c(12))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),n=i(20),r=i(9),i=(s.prototype.getId=function(){return this._selected},s.prototype.getItem=function(){return this._selected?this._data.getItem(this._selected):null},s.prototype.remove=function(t){return!(t=t||this._selected)||!!this.events.fire(n.SelectionEvents.beforeUnSelect,[t])&&(this._data.update(t,{$selected:!1},!0),this._selected=null,this.events.fire(n.SelectionEvents.afterUnSelect,[t]),!0)},s.prototype.add=function(t){this._selected!==t&&!this.config.disabled&&this._data.exists(t)&&(this.remove(),this._addSingle(t))},s.prototype.enable=function(){this.config.disabled=!1},s.prototype.disable=function(){this.remove(),this.config.disabled=!0},s.prototype._addSingle=function(t){this.events.fire(n.SelectionEvents.beforeSelect,[t])&&(this._selected=t,this._data.update(t,{$selected:!0},!0),this.events.fire(n.SelectionEvents.afterSelect,[t]))},s);function s(t,e,i){var n=this;this.events=i||new o.EventSystem(this),this._data=e,this.config=t,this._data.events.on(r.DataEvents.removeAll,function(){n._selected=null}),this._data.events.on(r.DataEvents.change,function(){var t;!n._selected||(t=n._data.getNearId(n._selected))!==n._selected&&(n._selected=null,t&&n.add(t))})}e.Selection=i},function(t,e,i){"use strict";var c=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var d=i(0),u=i(125),i=(n.prototype.add=function(t){this._data.push(t)},n.prototype.clear=function(){this._data.forEach(function(t){return t.destructor&&t.destructor()}),this._data=[]},n.prototype.getSizes=function(){return this._sizes},n.prototype.toVDOM=function(e,i){var n={left:20,right:20,top:10,bottom:10},t=this._data.filter(function(t){return!t.dataReady||t.dataReady().length});this._data.forEach(function(t){return!t.scaleReady||t.scaleReady(n)});var o=0,r=0;t.forEach(function(t){t.seriesShift&&(o+=t.seriesShift(),r++)});var s=o/r,o=r?(s-o)/2:0;t.forEach(function(t){t.seriesShift&&(t.seriesShift(o),o+=s)}),this._sizes=n;var a=e-n.left-n.right,l=i-n.top-n.bottom,l=d.sv("g",{transform:"translate("+n.left+", "+n.top+")"},c([d.sv("rect.dhx_chart-graph_area",{width:0<a?a:0,height:0<l?l:0,fill:"transparent"})],t.map(function(t){return t.paint(e-(n.left+n.right),i-(n.top+n.bottom))}))),t=d.sv("defs",[u.dropShadow(),u.shadow()]);return d.sv("svg",{width:e,height:i,role:"graphics-document"},[t,l])},n);function n(){this._data=[],this._sizes={left:20,right:20,top:10,bottom:10}}e.ComposeLayer=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0);e.shadow=function(){return n.sv("filter",{id:"shadow"},[n.sv("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[n.sv("feDistantLight",{azimuth:90,elevation:25})]),n.sv("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])},e.dropShadow=function(){return n.sv("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[n.sv("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),n.sv("feComposite",{in2:"offsetblur",operator:"in"}),n.sv("feMerge",[n.sv("feMergeNode"),n.sv("feMergeNode",{in:"SourceGraphic"})])])}},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(6),r=i(16),v=i(0),m=i(3),y=i(127);n.prototype.scaleReady=function(t){var e="column"===this.config.direction&&("left"===this.config.halign||"right"===this.config.halign);switch(this.config.valign){case"middle":"right"===this.config.halign?t.right+=0<=this.config.size?this.config.size:200:"left"===this.config.halign&&(t.left+=0<=this.config.size?this.config.size:200);break;case"top":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.top+=0<=this.config.size?this.config.size:40;break;case"bottom":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.bottom+=0<=this.config.size?this.config.size:40}},n.prototype.paint=function(n,t){var e,i,o=this,r=this._getData(),s=this.config;s.$sizes={width:0,height:0};var a=m.getFontStyle("legend-text"),l=s.margin,c=s.itemPadding,d=[],u="middle"===s.valign,h=0,f=0,p=0,g=0;switch(r.forEach(function(t,e){var i;u||"row"!==s.direction||(i=m.getTextWidth(t.text,a),n<h+i+15&&0!==e&&(h=0,f+=c+2)),d.push(v.sv("g",_(_({transform:"translate("+h+","+f+")",onclick:[o._handlers.onclick,t.id,o.config.values],onkeyup:[o._handlers.onkeyup,t.id,o.config.values],class:"legend-item "+(t.active?"":"not-active")},{role:"button","aria-label":(e=t).active?"Hide chart "+e.text:"Show chart "+e.text}),{tabindex:0}),[v.sv("text",{x:10,y:0,class:"start-text legend-text"},[m.verticalCenteredText(t.text)]),y.legendShape(s.form,t)]));t=15+m.getTextWidth(t.text,a);u||"row"!==s.direction?(h=0,p=t<p?p:t,g=(f+=c+2)<g?g:f):p=(h+=t+c)<p?p:h}),s.valign){case"top":i="row"===s.direction?-l-f-5:"center"===s.halign?5-g:l+5;break;case"middle":i=(t-g)/2+c/2;break;case"bottom":i="row"===s.direction?t+l:t+10-("center"===s.halign?0:l+g)}switch(s.halign){case"left":e=u?-p:5-("row"===s.direction?0:s.size||200);break;case"center":e=(n-p)/2;break;case"right":e=!u&&"row"===s.direction?n-p+c+5:n+l+5}return v.sv("g",{transform:"translate("+e+", "+i+")","aria-label":"Legend",tabindex:0},d)},n.prototype._getData=function(){var i=[];if(this.config.values){var n=m.locator(this.config.values.text),o=m.locator(this.config.values.color);this._data.map(function(t,e){i.push({id:t.id,text:n(t).toString(),alpha:1,fill:o(t).toString()||m.getDefaultColor(e),active:!t.$hidden})})}else if(this.config.treeSeries){var t=this.config.treeSeries;"groupName"===this.config.type?t.forEach(function(t){i.push({id:t.id,text:t.name||t.id,alpha:1,fill:t.color,active:t.active})}):t.forEach(function(t){var e;i.push({id:t.id,text:(e=t).from&&e.to?e.from+" - "+e.to:e.less?"<= "+e.less:e.greater?">= "+e.greater:void 0,alpha:1,fill:t.color,active:t.active})})}else for(var e=0,r=t=this.config.$seriesInfo;e<r.length;e++){var s=r[e].config,a=s.fill&&s.color;i.push({id:s.id,text:s.name||s.value,alpha:s.alpha,fill:s.fill||s.color,color:a&&s.color,active:s.active})}return i},i=n;function n(t,e,i){var n=this;this._data=t,this._events=i;this.config=_(_({},{form:"rect",itemPadding:20,halign:"right",valign:"top",direction:"row",type:"groupName"}),e),this.config.margin=e.margin||function(t,e,i){switch(e){case"middle":switch(t){case"right":return i?20:60;case"left":return 120;case"center":throw new Error("cant place legend on center, middle")}case"top":return 20;case"bottom":return i?20:60}}(this.config.halign,this.config.valign,o.isTreeCollection(this._data)),this._handlers={onclick:function(t,e){return n._events.fire(r.ChartEvents.toggleSeries,[t,e])},onkeyup:function(t,e,i){i.preventDefault(),"Enter"!==i.key&&" "!==i.key||n._events.fire(r.ChartEvents.toggleSeries,[t,e])}}}e.Legend=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(0),r={circle:function(t,e,i){return o.sv("circle",{id:n.uid(),r:5,fill:e,class:"figure "+("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":i,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,i){return o.sv("rect",{id:n.uid(),fill:e,"fill-opacity":i,width:10,"stroke-width":2,height:10,class:"figure "+("none"!==t?"with-stroke":""),stroke:t,transform:"translate(-5, -5)"})}};e.legendShape=function(t,e){return"string"==typeof t&&(t=r[t]),t(e.color||"none",e.fill,e.alpha||1)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(129),o=i(31),i=i(131),o={radial:n.RadialScale,text:i.TextScale,numeric:o.Scale};e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(17),i=i(31),o=(r=i.Scale,o(s,r),s.prototype.paint=function(t,e){var i=this;if(this.config.hidden)return null;var n=this.config.zebra,o=this.config.value,r=this.config.showAxis?this._axis.steps:null,s=this._axis.steps.map(function(t){return i.point(t)}),n={scales:this._data.map(function(t){return t[o]}),axis:s,realAxis:r,zebra:n,attribute:o};return a.radarScale(n,t,e)},s.prototype.point=function(t){return(t-this._axis.min)/(this._axis.max-this._axis.min)},s);function s(t,e){return r.call(this,t,e,"radial")||this}e.RadialScale=o},function(t,e,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),r=[1,2,3,5,10],i=(a.prototype.getScale=function(){var t=this.config.log?this._logSteps():this._calculateSteps(this._getStep());return{min:t[0],max:t[t.length-1],steps:t}},a.prototype._getStep=function(){var t=this.config.maxTicks,e=this.config.max-this.config.min,i=Math.floor(o.log10(e/t)),i=Math.pow(10,i)||1,t=e/i/t;return r[n(r,[t]).sort(function(t,e){return t-e}).indexOf(t)]*i},a.prototype._calculateSteps=function(t){for(var e=Math.floor(this.config.min/t),i=Math.ceil(this.config.max/t),n=[],o="radial"===this.config.type?e-1:e;o<=i;o++){var r=t*o;Math.floor(r)!==r&&(r=parseFloat(r.toFixed(8))),n.push(r)}return n},a.prototype._logSteps=function(){var t=[];if(this.config.min<0){for(var e=Math.ceil(o.log10(-this.config.min));0<e;e--)t.push(-Math.pow(10,e));t.push(0)}if(0<this.config.max)for(var i=Math.ceil(o.log10(this.config.max)),e=0;e<=i;e++)t.push(Math.pow(10,e));return t},a.prototype._addPadding=function(){this.config.min-=this.config.padding},a);function a(t,e){void 0===e&&(e={}),this._data=t;for(var i=[],n=0,o=this._data;n<o.length;n++){var r=o[n];"number"==typeof r&&i.push(r),"string"!=typeof r||isNaN(parseFloat(r))||i.push(parseFloat(r))}t={min:Math.min.apply(Math,i),max:Math.max.apply(Math,i),maxTicks:this._data.length<20?this._data.length:20};this.config=s(s({},t),e),this.config.padding&&this._addPadding()}e.AxisCreator=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(3),l=i(31),i=i(61),c={left:i.left,right:i.right,bottom:i.bottom,top:i.top},u={left:i.leftGrid,right:i.rightGrid,bottom:i.bottomGrid,top:i.topGrid},o=(s=l.Scale,o(d,s),d.prototype.scaleReady=function(t){var e=this._data.getLength()-1,i=this._data.map(this.locator);this._axis={max:e,steps:i},t[this._position]+=this.config.size},d.prototype.point=function(t){var e=this._axis.steps.indexOf(t);if(this._padding){var i=this._axis.max+1,t=.5/i,i=e/i;return this._isXDirection?t+i:1-t-i}return this._isXDirection?e/this._axis.max:1-e/this._axis.max},d.prototype.paint=function(i,n){var o=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t,e){return[o._isXDirection?o._getAxisPoint(e)*i:o.point(t)*n,t]});return c[this._position](t,this.config,i,n)},d.prototype.scaleGrid=function(){var s=this,a=this._position,l=this.config.grid,c=this.config.dashed,d=this.config.hidden;return{paint:function(t,e){var i,n,o=s._axis.steps.indexOf(s.config.targetLine),r=(i=t,n=e,s._axis.steps.map(function(t,e){return[s._isXDirection?s._getAxisPoint(e)*i:s._getAxisPoint(e)*n,t]})),o={targetLine:o,dashed:c,grid:l,hidden:d};return u[a](r,t,e,o)}}},d.prototype._setDefaults=function(t){this.locator=a.locator(t.text),this.config=r(r({},{scalePadding:30,textPadding:12,grid:!0,targetLine:null,showText:!0}),t)},d.prototype._getAxisPoint=function(t){var e=this._axis.max;if(this._padding){var i=e+1,n=.5/i,i=t/i;return this._isXDirection?n+i:1-n-i}return this._isXDirection?t/e:1-t/e},d);function d(){return null!==s&&s.apply(this,arguments)||this}e.TextScale=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(62),o=i(64),r=i(133),s=i(134),a=i(34),l=i(135),c=i(136),d=i(137),u=i(138),h=i(139),f=i(140),i=i(141),i={line:a.default,spline:h.default,area:n.default,splineArea:f.default,scatter:u.default,pie:l.default,pie3D:c.default,donut:s.default,radar:d.default,bar:o.default,xbar:r.default,treeMap:i.default};e.default=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,i=i(64),o=(r=i.default,o(s,r),s.prototype.addScale=function(t,e){t="top"===t||"bottom"===t?"left":"top";r.prototype.addScale.call(this,t,e)},s.prototype.paint=function(t,e,i){return r.prototype.paint.call(this,e,t,i)},s.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition>e?"left":"right"},s.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[1],r[0]);i[0]>s&&(i[0]=s,i[1]=r[1],i[2]=r[0],i[3]=r[2])}return i},s.prototype._getText=function(t){return t[4].toString()},s.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&i<t?1/0:Math.abs(e-n)},s.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+e+" "+(t[0]-this.config.barWidth/2)+"\nH "+t[1]+"\nv "+this.config.barWidth+"\nH "+e},s.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:0},s.prototype._text=function(t,e,i){e=(e+t[1])/2,t=t[0];return{x:e,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+e+" "+t+")":""}},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),G=this&&this.__assign||function(){return(G=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,B=i(0),Y=i(17),X=i(3),i=i(33),o=(r=i.default,o(s,r),s.prototype.paint=function(P,L){function H(t,e,i){return void 0===i&&(i=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":(e||"")+", "+t+" ("+X.roundToTwoNumAfterPoint(i)+"%)"}}var I=this,t=this.config,A=t.stroke,e=t.strokeWidth,j=t.useLines,R=t.subType,F=!e||e<1?4:15<e?15:e,$=P<L?P/2:L/2,N=-.25,V=[],W=[],z=[];return 1<this._points.length&&A&&V.push(B.sv("circle",{cx:0,cy:0,r:$-.5,fill:A})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=Y.getCoordinates(N,$,$,1<I._points.length&&A?F/2:null),d=c[0],u=c[1],h=N+n/2;N+=n+l;var f=Y.getCoordinates(N,$,$,1<I._points.length&&A?-F/2:null),p=f[0],g=f[1],_=.5<n?1:0,v=Y.getCoordinates(h,$,$),m=-.25<h&&h<.25,y=.5<h||h<0,x=h<.25?5:-5,c=[5,30],l=c[0],b=c[1],f=[Y.getCoordinates(h,$+l,$+l),Y.getCoordinates(h,$+b,$+b)],c=f[0],w=f[1];switch(I.config.subType){case"basic":var C=m?"donut-value-title start-text":"donut-value-title end-text",E=y?-20:10,S=Y.getCoordinates(h,$+10,$+10),k=m?"donut-value start-text":"donut-value end-text",D={text1:{x:(j?w:S)[0],y:(j?w:S)[1]+E,width:0,height:0,class:""},text2:{x:(j?w:S)[0],y:(j?w:S)[1]+E+16,width:0,height:0,class:""},changeSector:!1,line:x,right:m,dy:E},O=B.sv("text",G(G({x:(j?w:S)[0],y:(j?w:S)[1]+E,class:C},H(o,s,n)),{tabindex:0}),[X.verticalCenteredText(s.toString())]),C=B.sv("text",{x:(j?w:S)[0],y:(j?w:S)[1]+E+16,class:k,"aria-hidden":"true"},[X.verticalCenteredText(o.toString())]),k=X.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});D.text1.width=k[0],D.text1.height=k[1],k=X.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),D.text2.width=k[0],D.text2.height=k[1];var M=j?$+b:$+10;0!==W.length&&(m?(W.forEach(function(t){X.checkPositions(D.text1,t.text1,M,M,D),X.checkPositions(D.text1,t.text2,M,M,D)}),D.text1.class&&(D.text2.class=D.text1.class)):(W.forEach(function(t){X.checkPositions(D.text2,t.text2,M,M,D),X.checkPositions(D.text2,t.text1,M,M,D)}),D.text2.class&&(D.text1.class=D.text2.class)),O.attrs.x=D.text1.x,O.attrs.y=D.text1.y,C.attrs.x=D.text2.x,C.attrs.y=D.text2.y,(D.text1.class||D.text2.class)&&(O.attrs.class=D.text1.class,C.attrs.class=D.text2.class),x=D.line,j?(w[0]=D.text1.x,w[1]=D.text1.y-E):(S[0]=D.text1.x,S[1]=D.text1.y-E)),W.push(D);S=B.sv("text",G({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},H(o,s,n)),[X.verticalCenteredText(Math.round(100*n)+"%")]);i.push(B.sv("g",{id:r+"-text",class:"chart donut"},[O,C])),i.push(S);break;case"valueOnly":var T=B.sv("text",G(G({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},H(o,s,n)),{tabindex:0}),[X.verticalCenteredText(""+o)]);i.push(T);break;case"percentOnly":T=B.sv("text",G(G({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},H(o,s,n)),{tabindex:0}),[X.verticalCenteredText(Math.round(100*n)+"%")]);i.push(T)}j&&"basic"===R&&(E=y?3:0,i.push(B.sv("path",{d:"M"+c[0]+" "+c[1]+" L"+w[0]+"\n\t\t\t\t\t\t\t"+(w[1]+E)+" h "+x,id:r+"-connector",class:"pie-value-connector chart donut"})));l=0,f=0,c=F/(2*Math.sin(Math.PI/I._points.length));1<I._points.length&&A&&(l=(c=Y.getCoordinates(h,c,c))[0],f=c[1]);g="M "+d+" "+u+" A "+$+" "+$+" 0 "+_+" 1 "+p+" "+g+"\n\t\t\t\tL "+(0+l)+" "+(0+f),l=Y.getCoordinates(h,4,4),f=l[0],l=l[1],l=B.sv("path",{d:g,_key:r,fill:a||X.getDefaultColor(e),class:"chart donut",onclick:[I._handlers.onclick,t[1],t[2]],onmouseout:[Y.pieLikeHandlers.onmouseout],onmouseover:[Y.pieLikeHandlers.onmouseover,f,l],role:"presentation"});i.unshift(l),V.push(B.sv("g",{id:r},i)),1===I._points.length?z.push([P/2,L/2]):z.push([.8*v[0]+P/2,.8*v[1]+L/2])}),this._center=[P/2,L/2],this._tooltipData=z,(V=V.concat([])).push(B.sv("circle",{cx:0,cy:0,r:5*$/9,fill:"#FFFFFF",role:"presentation"})),B.sv("g",G(G({transform:"translate("+P/2+", "+L/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),V)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),X=this&&this.__assign||function(){return(X=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,q=i(1),U=i(0),K=i(17),J=i(3),i=i(33),o=(r=i.default,o(s,r),s.prototype.paint=function(P,L){var H=this,t=this.config,I=t.stroke,e=t.strokeWidth,A=t.gradient,j=t.useLines,R=t.showText,F=t.showTextTemplate,$=t.subType,N=!e||e<1?4:15<e?15:e,V=P<L?P/2:L/2,W=-.25,z=[],G=[],e=[],B=[],Y=[];return 1<this._points.length&&I&&e.push(U.sv("circle",{cx:0,cy:0,r:V-.5,fill:I})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=a||J.getDefaultColor(e);A&&(p=A(a),g="gradient"+q.uid(),_=J.getRadialGradient(p.options,p.stops,g),c="url(#"+g+")",B.push(_));var d=K.getCoordinates(W,V,V,1<H._points.length&&I?N/2:null),e=d[0],a=d[1],u=W+n/2,h=u<.25?5:-5,f=K.getCoordinates(u,V,V);W+=n+l;var p=K.getCoordinates(W,V,V,1<H._points.length&&I?-N/2:null),g=p[0],_=p[1],d=.5<n?1:0,l=[5,30],p=l[0],v=l[1],l=[K.getCoordinates(u,V+p,V+p),K.getCoordinates(u,V+v,V+v)],p=l[0],m=l[1],y=-.25<u&&u<.25,x=.5<u||u<0,b=-.25<u&&u<.25?"pie-value start-text":"pie-value end-text";switch((R||F)&&!1!==R&&(T=U.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[F?J.verticalCenteredText(F(o.toString())):J.verticalCenteredText(o.toString())]),i.push(T)),H.config.subType){case"basic":var w=x?-20:10,C=K.getCoordinates(u,V+10,V+10),E=y?"donut-value start-text":"donut-value end-text",S={text1:{x:(j?m:C)[0],y:(j?m:C)[1]+w,width:0,height:0,class:""},text2:{x:(j?m:C)[0],y:(j?m:C)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:w},k=U.sv("text",X({x:(j?m:C)[0],y:(j?m:C)[1]+w,class:b},(D=n,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(s||"")+", "+o+" ("+J.roundToTwoNumAfterPoint(D)+"%)"})),[J.verticalCenteredText(s.toString())]),D=U.sv("text",{x:(j?m:C)[0],y:(j?m:C)[1]+w+16,class:E,"aria-hidden":"true"},[J.verticalCenteredText(o.toString())]),E=J.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});S.text1.width=E[0],S.text1.height=E[1],E=J.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),S.text2.width=E[0],S.text2.height=E[1];var O=j?V+v:V+10;0!==z.length&&(y?(z.forEach(function(t){J.checkPositions(S.text1,t.text1,O,O,S),J.checkPositions(S.text1,t.text2,O,O,S)}),S.text1.class&&(S.text2.class=S.text1.class)):(z.forEach(function(t){J.checkPositions(S.text2,t.text2,O,O,S),J.checkPositions(S.text2,t.text1,O,O,S)}),S.text2.class&&(S.text1.class=S.text2.class)),k.attrs.x=S.text1.x,k.attrs.y=S.text1.y,D.attrs.x=S.text2.x,D.attrs.y=S.text2.y,(S.text1.class||S.text2.class)&&(k.attrs.class=S.text1.class,D.attrs.class=S.text2.class),h=S.line,j?(m[0]=S.text1.x,m[1]=S.text1.y-w):(C[0]=S.text1.x,C[1]=S.text1.y-w)),z.push(S);C=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(U.sv("g",{id:r+"-text",class:"chart donut"},[k,D])),i.push(C);break;case"valueOnly":var M=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(""+o)]);i.push(M);break;case"percentOnly":M=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(M)}j&&"basic"===$&&(w=x?3:0,i.push(U.sv("path",{d:"M"+p[0]+" "+p[1]+" L"+m[0]+"\n\t\t\t\t\t\t\t"+(m[1]+w)+" h "+h,id:r+"-connector",class:"pie-value-connector chart pie"})));var l=0,T=0,p=N/(2*Math.sin(Math.PI/H._points.length));1<H._points.length&&I&&(l=(p=K.getCoordinates(u,p,p))[0],T=p[1]);_="M "+e+" "+a+" A "+V+" "+V+" 0 "+d+" 1 "+g+" "+_+"\n\t\t\t\tL "+(0+l)+" "+(0+T),l=K.getCoordinates(u,4,4),T=l[0],l=l[1],l=U.sv("path",{d:_,class:"chart pie",_key:r,fill:c,onclick:[H._handlers.onclick,t[1],t[2]],onmouseover:[K.pieLikeHandlers.onmouseover,T,l],onmouseout:[K.pieLikeHandlers.onmouseout],role:"presentation"});i.unshift(l),Y.push(U.sv("g",{id:r},i)),1===H._points.length?G.push([P/2,L/2]):G.push([.7*f[0]+P/2,.7*f[1]+L/2])}),this._center=[P/2,L/2],this._tooltipData=G,e.push(U.sv("defs",B)),e=(e=e.concat(Y)).concat([]),U.sv("g",X(X({transform:"translate("+P/2+", "+L/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),e)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),X=this&&this.__assign||function(){return(X=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,q=i(0),U=i(17),K=i(3),i=i(33),o=(r=i.default,o(s,r),s.prototype.paint=function(L,H){var I=this,t=this.config,A=t.subType,j=t.useLines,R=t.showText,F=t.showTextTemplate,$=L<H?L/2:H/2,N=.5*$,V=$/5,W=[],z=-.25,G=[],B=[],Y=[];return this._points.forEach(function(t,e){var i=t[0],n=t[1],o=t[2],r=t[3],s=t[4],a=0===i||1===i?-1e-6:0,l=U.getCoordinates(z,$,N),c=l[0],d=l[1],u=z+i/2,h=u<.25?5:-5,f=U.getCoordinates(u,$,N),p=0;0<u&&u<.5&&(p=V*Math.sin(2*Math.PI*u));var g=U.getCoordinates(u,$+5+p,5+N+p),_=U.getCoordinates(u,$+30+p,30+N+p),v=z+i+a,m=U.getCoordinates(v,$,N),l=m[0],a=m[1],m=.5<i?1:0,y=-.25<u&&u<.25,x=.5<u||u<0,b=y?"pie-value start-text":"pie-value end-text";switch(I.config.subType){case"basic":var w=x?-20:10,C=y?"donut-value start-text":"donut-value end-text",E={text1:{x:(j?_:g)[0],y:(j?_:g)[1]+w,width:0,height:0,class:""},text2:{x:(j?_:g)[0],y:(j?_:g)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:w},S=q.sv("text",X({x:(j?_:g)[0],y:(j?_:g)[1]+w,dx:j?0<h/2+h?10:-10:null,class:b},(D=i,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(r||"")+", "+n+" ("+K.roundToTwoNumAfterPoint(D)+"%)"})),[K.verticalCenteredText(r.toString())]),k=q.sv("text",{x:(j?_:g)[0],y:(j?_:g)[1]+w+16,dx:j?0<h/2+h?10:-10:null,class:C,"aria-hidden":"true"},[K.verticalCenteredText(n.toString())]),D=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]),C=K.getSizesSVGText(r.toString(),{font:"normal 14px Roboto",lineHeight:14});E.text1.width=C[0],E.text1.height=C[1],C=K.getSizesSVGText(n.toString(),{font:"normal 12px Roboto",lineHeight:12}),E.text2.width=C[0],E.text2.height=C[1];var O=j?$+30+p:$+5+p,M=j?30+N+p:5+N+p;0!==Y.length&&(y?(Y.forEach(function(t){K.checkPositions(E.text1,t.text1,O,M,E),K.checkPositions(E.text1,t.text2,O,M,E)}),E.text1.class&&(E.text2.class=E.text1.class)):(Y.forEach(function(t){K.checkPositions(E.text2,t.text2,O,M,E),K.checkPositions(E.text2,t.text1,O,M,E)}),E.text2.class&&(E.text1.class=E.text2.class)),S.attrs.x=E.text1.x,S.attrs.y=E.text1.y,k.attrs.x=E.text2.x,k.attrs.y=E.text2.y,(E.text1.class||E.text2.class)&&(S.attrs.class=E.text1.class,k.attrs.class=E.text2.class),h=E.line,j?(_[0]=E.text1.x,_[1]=E.text1.y-w):(g[0]=E.text1.x,g[1]=E.text1.y-w)),Y.push(E),B.push(S,k,D);break;case"valueOnly":var T=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(n.toString())]);B.push(T);break;case"percentOnly":T=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]);B.push(T)}j&&"basic"===A&&B.push(q.sv("path",{d:"M"+g[0]+" "+g[1]+" L"+_[0]+" "+_[1]+" h "+h,class:"pie-value-connector"})),(R||F)&&!1!==R&&(P=q.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[F?K.verticalCenteredText(F(n)):K.verticalCenteredText(n.toString())]),B.push(P));var P="";z<=0&&.5<=v?P="M "+$+" 0 v "+V+" A "+$+" "+N+" 0 1 1 "+-$+" "+V+" v "+-V:z<=0&&v<.5?P="M "+$+" 0 v "+V+" A "+$+" "+N+" 0 0 1 "+l+" "+(a+V)+" v "+-V:0<z&&z<=.5&&.5<=v?P="M "+c+" "+d+" v "+V+" A "+$+" "+N+" 0 0 1 "+-$+" "+V+" v "+-V:0<z&&v<.5&&(P="M "+c+" "+d+" v "+V+" A "+$+" "+N+" 0 0 1 "+l+" "+(a+V)+" v "+-V),P&&(P=q.sv("path",{_key:o+"__shadow__",d:P,fill:s||K.getDefaultColor(e),onclick:[I._handlers.onclick,t[1],t[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"}),G.push(P));a="M "+c+" "+d+" A "+$+" "+N+" 0 "+m+" 1 "+l+" "+a+" L 0 0";G.push(q.sv("path",{d:a,_key:o,fill:s||K.getDefaultColor(e),stroke:"none",onclick:[I._handlers.onclick,t[1],t[2]],class:"chart pie3d",role:"presentation"})),1===I._points.length?W.push([L/2,H/2]):W.push([.7*f[0]+L/2,.7*f[1]+H/2]),z=v}),this._center=[L/2,H/2],this._tooltipData=W,G=G.concat(B),q.sv("g",X(X({transform:"translate("+L/2+", "+H/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),G)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),c=i(17),l=i(3),i=i(21),o=(s=i.default,o(d,s),d.prototype.addScale=function(t,e){this._scale=e},d.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},d.prototype.dataReady=function(n){var o=this;if(!this.config.active)return this._points=[];var r=l.locator(this._scale.config.value);return this._points=this._data.map(function(t,e){var i=o._locator(t),i=[i,i,t.id,i,i];return n&&(i[1]+=n[e][1]),r&&i.push(r(t)),i}),this._points},d.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t}},d.prototype.paint=function(t,e){var o=this;s.prototype.paint.call(this,t,e);if(this.config.active){var i=this.config,t=[],e=this._points.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ")+"Z";return t.push(a.sv("path",{d:e,stroke:i.color,"stroke-width":i.strokeWidth,fill:i.fill,"fill-opacity":i.alpha,class:"chart radar"})),i.pointType&&(e=this._points.map(function(t){return o._drawPointType(t[0],t[1],l.calcPointRef(t[2],o.id))}).map(function(t){var e,i,n;return t&&t.attrs&&(t.attrs=r(r({},t.attrs),(e=t.key,i=o._points,e&&(n=i.find(function(t){return e.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":n?"point x="+n[5]+" y="+n[4]:"",tabindex:0}))),t}),t.push(a.sv("g",e))),a.sv("g",r(r({id:"seria"+i.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),t)}},d.prototype._calckFinalPoints=function(n,o){var r=this,s=n<o?n/2:o/2,a=1/this._data.getLength(),l=-.25-a;this._points.forEach(function(t,e){l+=a;var i=r._scale.point(t[0]),i=c.getCoordinates(l,i*s,i*s);t[0]=i[0]+n/2,t[1]=i[1]+o/2})},d.prototype._defaultLocator=function(t){return this._locator(t)},d.prototype._setDefaults=function(t){this._locator=l.locator(t.value),t.scales=t.scales||["radial"],this.config=r(r({},{strokeWidth:2,active:!0,tooltip:!0,paddings:5,color:"none",fill:"none",pointType:"circle"}),t),this.config.pointType&&(t=this.config.pointColor||this.config.color,this._drawPointType=this._getPointType(this.config.pointType,t))},d);function d(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(34),l=i(3),o=(s=a.default,o(c,s),c.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=l.locator(this.config.value)):(this.yScale=e,this._yLocator=l.locator(this.config.valueY))},c.prototype._setDefaults=function(t){this.config=r(r({},{active:!0,tooltip:!0,pointType:"rect"}),t);var e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(0),l=i(65),i=i(34),o=(r=i.default,o(s,r),s.prototype._getForm=function(t,e,i,n,o){var r=e.color,s=e.css,t=l.default(t);return a.sv("path",{id:"seria"+e.id,d:t,class:s,stroke:r,"stroke-width":2,fill:"none"})},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,h=i(0),f=i(65),i=i(62),o=(r=i.default,o(s,r),s.prototype._form=function(t,e,i,n){var o=this.config,r=o.fill,s=o.alpha,a=o.strokeWidth,l=o.color,c=o.id,d=this.config.css,u="",o=this._points[0],u=n?f.default([].concat(n).reverse())+" "+f.default(this._points,!0)+" Z":"M"+o[0]+" "+e+" V "+o[1]+" "+f.default(this._points)+" V"+e+" H "+o[0];a&&(o=f.default(this._points),l=h.sv("path",{d:o,"stroke-width":a,stroke:l,fill:"none","stroke-linecap":"butt",class:d}),i.push(l));s=h.sv("path",{id:"seria"+c,d:u,class:d,fill:r,"fill-opacity":s,stroke:"none"});return i.push(s),i},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),C=this&&this.__assign||function(){return(C=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,E=i(1),S=i(0),s=i(6),k=i(3),a=i(16),i=i(21),o=(r=i.default,o(l,r),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.toggle=function(e){var t=this.config.treeSeries.find(function(t){return t.id===e});t&&(t.active=!t.active)},l.prototype.dataReady=function(){var s=this;if(!this.config.active)return this._points=[];var a="groupName"===this.config.legendType;return this._sum=0,this._data.forEach(function(t){var e,i=s._data.getItem(s._data.getParent(t.id));i&&i.$hidden&&1<s._maxLevel||(e=s._valueLocator(t))&&(i=s._getSerie(a?t.id:e,a),t.color=(i||t).color,t.$hidden=!!i&&!i.active,!t.$hidden&&e&&(s._sum+=parseFloat(t[s.config.value])))}),this._points=[],this._data.eachChild(this._data.getRoot(),function(t){var o,e,r,i;t.$hidden||(o=s._valueLocator(t),e=s._textLocator(t),r=[],!o&&s._data.haveItems(t.id)&&(o=0,s._data.eachChild(t.id,function(t){var e,i,n;t.$hidden||(e=s._valueLocator(t),i=s._textLocator(t),n=t.color||(null===(n=s._getSerie(a?t.id:e,a))||void 0===n?void 0:n.color),e&&(o+=e),r.push([0,e,t.id,i,n]))})),t.percent=parseFloat(o)/s._sum,i=t.color||(null===(i=s._getSerie(a?t.id:o,a))||void 0===i?void 0:i.color),s._points.push([t.percent,o,t.id.toString(),e,i,{items:r}]))},!1),this._maxLevel=this._getMaxLevel(),this._points},l.prototype.paint=function(t,e){var p=this;if(!!this.config.treeSeries.find(function(t){return t.active})){var g=this.config.strokeWidth,_=[],v=[],i=[],n=1<this._maxLevel?2*g:g,t=t-n,e=e-n;this._layout={id:E.uid(),area:t*e,width:t,height:e,restArea:t*e,restWidth:t,restHeight:e,startX:n/2,startY:n/2,stroke:n};var m=this._layout.startX,y=this._layout.startY;return this._layout.width>=this._layout.height?this._layout.cols=[]:this._layout.rows=[],this._points.sort(function(t,e){return e[0]-t[0]}),this._points.forEach(function(e,t,i){var n,o,r,s,a,l,c,d,u=e[0],h=(e[1],e[2]),f=(e[3],e[4],e[5]);0!==u&&(n=(r=p._drawBar(e,t,i,p._layout,m,y,!(!f||null===(a=f.items)||void 0===a||!a.length)))[0],o=r[1],u=r[2],t=r[3],i=r[4],a=r[5],r=r[6],m=a[0],y=a[1],v.push(S.sv("g",{id:h},[n,o,r])),_.push(u),f&&null!==(s=f.items)&&void 0!==s&&s.length&&(s=a[2]-g,a=a[3]-g,l={id:E.uid(),parent:p._layout.id,area:s*a,width:s,height:a,restArea:s*a,restWidth:s,restHeight:a,startX:m+g/2,startY:y+g/2+("asc"!==p.config.direction&&r?g/2:0),stroke:g},c=l.startX,d=l.startY,l.width>=l.height?l.cols=[]:l.rows=[],f.items.map(function(t){return t[0]=t[1]/e[1]}),f.items.sort(function(t,e){return e[0]-t[0]}),f.items.forEach(function(t,e,i){var n=t[2],o=p._drawBar(t,e,i,l,c,d,!1),r=o[0],t=o[1],e=o[2],i=o[3],o=o[4];v.push(S.sv("g",{id:n},[r,t])),_.push(e),c=i,d=o})),m=t,y=i)}),i.push(S.sv("defs",_)),i=i.concat(v),S.sv("g",C(C({id:"seria"+this.config.id},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0,transform:"asc"===this.config.direction?"rotate(180 "+(this._layout.startX+this._layout.width/2)+" "+(this._layout.startY+this._layout.height/2)+")":""}),i)}},l.prototype._drawBar=function(t,e,i,n,o,r,s){var a=this,l=t[0],c=t[1],d=t[2],u=t[3],h=t[4],f=this.config,p=f.stroke,g=f.showText,_=f.showTextTemplate,v=l*n.area,m=this._getDeepParent(n),y=s&&0<l&&u,x=n.startX+n.width-m.restWidth,b=n.startY+n.height-m.restHeight;o=x<o?x:o,r=b<r?b:r;f=this._getBar(m,v,o,r,i,e,n.area),x=f[0],b=f[1],m=f[2],o=f[3],r=f[4];if(!(x[2]<0||x[3]<0)){this._recountParentArea(v,r,n);var w,f=y?S.sv("rect",{x:x[0]+n.stroke/4,y:"asc"===this.config.direction?x[1]+x[3]-this._headerHeight-n.stroke/2:x[1]+n.stroke/4,width:x[2]-n.stroke/2,height:this._headerHeight+n.stroke/4,stroke:p,"stroke-width":n.stroke/2,class:"treeMap-header",_key:d,onclick:function(){return a._toggleGroup(d)}}):null,v=y?S.sv("text",{x:x[0]+x[2]/2,y:"asc"===this.config.direction?x[1]+x[3]-this._headerHeight/2-n.stroke/2:x[1]+this._headerHeight/2+n.stroke/2,class:"header-text","aria-hidden":"true",transform:"asc"===this.config.direction?"rotate(180 "+(x[0]+x[2]/2)+" "+(x[1]+x[3]-this._headerHeight/2-n.stroke/2)+")":""},[_?k.verticalCenteredText(_(null==u?void 0:u.toString())):k.verticalCenteredText(null==u?void 0:u.toString())]):null,r=s&&0<l&&u?S.sv("g",{},[f,v]):null,y=_?_(null==u?void 0:u.toString()):null==u?void 0:u.toString(),f=k.getSizesSVGText(y,{font:"normal 12px Roboto",lineHeight:14})[0]<x[2]-2*n.stroke,v=E.uid(),_=x[2]>2*n.stroke&&x[3]>2*n.stroke?S.sv("clipPath",{id:v,"clip-rule":"nonzero"},[S.sv("rect",{x:x[0]+n.stroke,y:x[1]+n.stroke,width:x[2]-2*n.stroke,height:x[3]-2*n.stroke,fill:"none",stroke:"black"})]):null,e=S.sv("rect",C(C({},(w=l,{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":(u||"")+", "+c+" ("+k.roundToTwoNumAfterPoint(w)+"%)"})),{x:x[0],y:x[1],width:x[2],height:x[3],stroke:p,"stroke-width":n.stroke,class:"chart treeMap",_key:d,fill:h,onclick:[this._handlers.onclick,t[1],t[2]],onmousemove:1<this._maxLevel&&1===this._getDataLevel(d)?"":[this._handlers.onmousemove,i[e][2],this.id],onmouseleave:1<this._maxLevel&&1===this._getDataLevel(d)?"":[this._handlers.onmouseleave,i[e][2],this.id]})),y=g?S.sv("text",{x:f?b[0]:x[0]+n.stroke,y:b[1],class:"treeMap-inner-value "+(f?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'+v+'")',transform:"asc"===this.config.direction?"rotate(180 "+b[0]+" "+b[1]+")":""},[k.verticalCenteredText(y)]):null;return s&&r&&(x[1]+="asc"===this.config.direction?0:this._headerHeight,x[3]-=this._headerHeight+n.stroke/4),[e,y,_,m,o,x,r]}},l.prototype._getBar=function(t,e,i,n,l,c,d){var o,r,s,a,u=this,h=function(t,e,i,n){for(var o={area:0,width:t.width,height:t.height},r=e;r<=i;r++)o.area+=l[r][0]*d;"rows"===n?o.width=o.area/o.height:o.height=o.area/o.width;var s="rows"===n?o.width:t.area/o.height,a="rows"===n?t.area/o.width:o.height;return(s/a>u._aspectRatio||a/s>u._aspectRatio)&&.01<l[c][0]&&i!==u._points.length-1?h(t,e,i+1,n):[s,a,o]},f=i,p=n,g=t.restWidth>t.restHeight?"cols":"rows",_="cols"==g?"rows":"cols",v="cols"==g?e/t.restHeight:t.restWidth,m="cols"==g?t.restHeight:e/t.restWidth;return(m/v>this._aspectRatio||v/m>this._aspectRatio)&&0!==Math.round(e-t.restArea)&&c<l.length-2&&e<t.restArea?(o=void 0,r={id:E.uid(),area:e,width:v,height:m},s=h(r,c,c+1,_),r.width=s[0],r.height=s[1],o=s[2],v=r.width,m=r.height,(s={id:E.uid(),area:o.area,width:o.width,height:o.height,restArea:o.area,restWidth:"cols"==_?o.width-v:o.width,restHeight:"cols"==_?o.height:o.height-m})[_]=[r],o=s,r.parent=o.id,t[g]||t[_]?t[_]?(a=E.uid(),t[_].push(((s={id:a,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"==g?t.restWidth-o.width:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-o.height})[g]=[o],s)),o.parent=a):(t[g].push(o),o.parent=t.id):(t[g]=[o],o.parent=t.id),"cols"==g?(t.restWidth-=o.width,p+=m):(t.restHeight-=o.height,f+=v)):(r={id:E.uid(),area:e,width:v,height:m},t[_]&&t.restArea.toFixed(2)>e.toFixed(2)?(a=E.uid(),t[_].push(((_={id:a,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"==g?t.restWidth-v:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-m})[g]=[r],_)),r.parent=a):((t.cols||t.rows).push(r),r.parent=t.id,"cols"==g?t.restWidth-=v:t.restHeight-=m),"cols"==g?(f+=v,p=0===Math.round(t.restArea-e)?p+m:p):(p+=m,f=0===Math.round(t.restArea-e)?f+v:f)),[[i,n,r.width,r.height],[i+r.width/2,n+r.height/2],f,p,r.parent]},l.prototype._setDefaults=function(t){this.config=C(C({},{active:!0,stroke:"#FFFFFF",strokeWidth:2,showText:!0,tooltip:!0,paddings:5,color:"none",fill:"none",direction:"desc"}),t),this._headerHeight=25,this._aspectRatio=2.5,this._valueLocator=k.locator(t.value),this._textLocator=k.locator(t.text)},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getSerie=function(i,n){var o=this;return this.config.treeSeries.find(function(t){if(n){var e=o._data.getParent(i);return t.id===e||t.id===i}return t.from&&t.to&&i>=t.from&&i<t.to||t.less&&i<t.less||t.greater&&i>t.greater})},l.prototype._getDataLevel=function(t){var e=1;return this._data.eachParent(t,function(){e++}),e},l.prototype._getMaxLevel=function(){var e=this,i=1;return this._data.forEach(function(t){t=e._getDataLevel(t.id);i=Math.max(t,i)}),i},l.prototype._getDeepParent=function(t){var e=null===(e=t.cols||t.rows)||void 0===e?void 0:e.find(function(t){return t.restArea&&0<Math.round(t.restArea)});return e?this._getDeepParent(e):t},l.prototype._getLayoutObj=function(t,e){var i;if(void 0===e&&(e=this._layout),e.id===t)i=e;else{var n=e.cols||e.rows;if(!n||!n.length)return;for(var o=0;o<n.length&&!(i=this._getLayoutObj(t,n[o]));o++);}return i},l.prototype._recountParentArea=function(t,e,i){e=this._getLayoutObj(e,i);e&&e.id!==i.parent&&(e.restArea-=t,e.parent&&this._recountParentArea(t,e.parent,i))},l.prototype._toggleGroup=function(e){var i=this,n=0;this.config.treeSeries.forEach(function(t){t.active&&n++}),this._data.eachChild(this._data.getRoot(),function(t){t.id!==e&&("groupName"===i.config.legendType?(1<n&&(i._getSerie(t.id,!0).active=!0),i._events.fire(a.ChartEvents.toggleSeries,[t.id])):(t.$hidden=!t.$hidden,i._events.fire(s.DataEvents.change)))},!1)},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(0),i=(n.prototype.add=function(t){this._series.push(t)},n.prototype.dataReady=function(e){return this._toPaint=this._series.filter(function(t){t=t.dataReady(e);return!!t.length&&(e=t,!0)}),e||[]},n.prototype.getPoints=function(){return this._toPaint.length?this._toPaint[0].getPoints().concat(this._toPaint[this._toPaint.length-1].getPoints()):[]},n.prototype.paint=function(n,o,r){var s=[],a=[];return this._toPaint.forEach(function(t){var e,i;t.paintformAndMarkers?(i=(e=t.paintformAndMarkers(n,o,r))[0],e=e[1],s.push(i),a.push(e)):(i=t.paint(n,o,r),s.push(i)),r=t.getPoints()}),l.sv("g",s.concat(a))},n);function n(){this._series=[]}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var g=i(58),s=i(3),_=i(63),n=i(16),i=(o.prototype.destructor=function(){this._tooltip&&(document.body.removeChild(this._tooltip),this._tooltip=null)},o.prototype._showLineTooltip=function(t){for(var e,i,n,o,r,s="",a=this._chart.getRootView(),l=0,c=0,d=t;c<d.length;c++){var u,h,f,p=d[c];l+=p.top,this._prevLine=a&&a.refs&&a.refs["line"+Math.round(p.left)]&&a.refs["line"+Math.round(p.left)].el,this._prevLine.classList.add("grid-line__active"),!p.text||(h=(u=this._chart.getSeries(p.seriaId)).getPoints()).length&&u.config.tooltip&&(f=u.config.pointColor||(u.config.color&&"none"!==u.config.color?u.config.color:u.config.fill),f=_.getShadeHTMLHelper("empty"!==u.config.pointType&&u.config.pointType?u.config.pointType:"simpleRect",f),s+='<div class="line-point" _ref="dhx_tooltip_'+u.config.id+'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">'+f(4,4,h[0][2])+'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_'+u.config.id+'_text">'+p.text+"</span>\n\t\t\t</div>")}s&&(this._tooltip||this._createTooltip(),e=document.body.offsetHeight,r=document.body.offsetWidth,this._tooltip.innerHTML=s,this._tooltip.classList.add("dhx_chart_tooltip__visible"),o=l/t.length,i=this._prevLine.getBoundingClientRect(),n=this._tooltip.offsetHeight,t=this._tooltip.offsetWidth,e<(o=o-n/2+i.top+window.scrollY)+n&&(o-=o+n-e),r<(r=i.left+10)+t&&(r=i.left-t-10),(t=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=t.toString()),this._tooltip.style.left=r+"px",this._tooltip.style.top=o+"px")},o.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var i=document.body.offsetHeight,n=document.body.offsetWidth;this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible");var o=this._tooltip.offsetHeight,r=this._tooltip.offsetWidth,s=e.pageY+10,t=e.pageX+10;i<s+o&&(s=e.pageY-o),n<t+r&&(t=e.pageX-r-10);r=g.getZIndex(this._chart.getRootNode());r&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=t+"px",this._tooltip.style.top=s+"px"},o.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e,i,n,o,r=this._chart.getSeries(t[4]);!r||(o=r.getTooltipText(t[3]))&&(e=this._chart._layers.getSizes(),i=this._chart.getRootNode().getBoundingClientRect(),this._tooltip.innerHTML=o,this._tooltip.classList.add("dhx_chart_tooltip__visible"),n=document.body.offsetHeight,r=this._tooltip.offsetHeight,n<(o=t[2]+i.top+r/2+e.top-("radar"===this._chart.config.type?10:15))+r&&(o=t[2]+i.top-r/2+e.top-("radar"===this._chart.config.type?10:15)),n<o+r&&this._tooltip.classList.remove("dhx_chart_tooltip__visible"),(r=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=i.left+t[1]+10+"px",this._tooltip.style.top=o+"px")},o.prototype._createTooltip=function(){this._tooltip=document.createElement("div"),this._tooltip.setAttribute("data-dhx-widget-id",this._chart._uid),this._tooltip.classList.add("dhx_chart_tooltip","dhx_chart_tooltip_line","dhx_chart_tooltip__hidden","tooltip-text"),document.body.appendChild(this._tooltip)},o.prototype._initEvents=function(){var a=this;this._chart.events.on(n.ChartEvents.chartMouseMove,function(n,o){var r,s;a._prevLine&&a._prevLine.classList.remove("grid-line__active"),a._mouseOverBar||(r=[],s=[1/0,null,null,null,null],a._chart.eachSeries(function(t){var e,i=t.config.type;"line"===i||"spline"===i||"splineArea"===i||"area"===i?"number"==typeof(e={value:(e=t.getClosestVertical(n))[4],text:t.getTooltipText(e[3]),seriaId:t.config.id,left:e[1],top:e[2]}).left&&"number"==typeof e.top&&r.push(e):"pie"!==i&&"pie3D"!==i&&"donut"!==i&&"radar"!==i||(i=t.getClosest(n,o),s[0]>i[0]&&(s[0]=i[0],s[1]=i[1],s[2]=i[2],s[3]=i[3],s[4]=t.id))}),r.length?(r.sort(function(t,e){return e.value-t.value}),a._showLineTooltip(r)):a._showTooltipOnClosest(s))}),this._chart.events.on(n.ChartEvents.seriaMouseMove,function(t,e,i){a._mouseOverBar=!0;var n=a._chart.getRootView(),o=a._chart.getSeries(e),r=o.getTooltipText(t),e=n&&n.refs&&n.refs[s.calcPointRef(t,e)].el;null!=e&&e.setAttribute("fill-opacity",.6<o.config.alpha?o.config.alpha-.4:1),r?a._showTooltip(r,i):a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.seriaMouseLeave,function(t,e){a._mouseOverBar=!1;var i=a._chart.getRootView(),n=a._chart.getSeries(e);"area"!==n.config.type&&"treeMap"!==n.config.type&&(i&&i.refs&&i.refs[s.calcPointRef(t,e)].el).setAttribute("fill-opacity",n.config.alpha),a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.chartMouseLeave,function(){a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible"),a._prevLine&&a._prevLine.classList.remove("grid-line__active")})},o);function o(t){this._chart=t,this._initEvents()}e.Tooltip=i}],o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/codebase/",o(o.s=66);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var i,n}),window.dhx_legacy){if(window.dhx)for(var key in dhx)dhx_legacy[key]=dhx[key];window.dhx=dhx_legacy,delete window.dhx_legacy}