dhx-chart 8.2.5 → 8.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/codebase/chart.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
3
|
|
|
4
|
-
dhtmlxChart v.8.2.
|
|
4
|
+
dhtmlxChart v.8.2.6 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 i=[function(t,o,r){"use strict";!function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.setTheme=o.awaitRedraw=o.resizeHandler=o.resizer=o.disableHelp=o.KEYED_LIST=o.inject=o.create=o.view=o.sv=o.el=void 0;var e=r(78),n=r(2);function i(i){function e(t){var e=t.el.offsetHeight,t=t.el.offsetWidth;i(t,e)}var n=window.ResizeObserver;return n?(0,o.el)("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n(function(){return e(t)}).observe(t.el)}}}):(0,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(0,o.create)({render:function(){return i(e)}}).mount(t)},o.awaitRedraw=function(){return new t(function(t){requestAnimationFrame(function(){t()})})},o.setTheme=function(t,e){void 0===t&&(t="light");var i="data-dhx-theme";e||document.querySelectorAll("[".concat(i,"]")).forEach(function(t){return t.removeAttribute(i)}),e=e||document.documentElement,(0,n.toNode)(e).setAttribute(i,t)}}.call(this,r(14))},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)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.getTextLines=e.getCloneObject=e.rgbToHex=e.getStringWidth=e.getMinArrayNumber=e.getMaxArrayNumber=e.isEmptyObj=e.isType=e.compare=e.debounce=e.downloadFile=e.isNumeric=e.range=e.isId=e.isDefined=e.wrapBox=e.unwrapBox=e.detectWidgetClick=e.singleOuterClick=e.isEqualString=e.findIndex=e.naturalSort=e.copy=e.extend=e.uid=void 0,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){function i(t){e(t)&&document.removeEventListener("click",i)}document.addEventListener("click",i)},e.detectWidgetClick=function(e,i){function t(t){return i((0,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.isId=function(t){return"number"==typeof t||"string"==typeof t&&""!==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,t=new Blob([t],{type:i});window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(t,e):(n=document.createElement("a"),o=URL.createObjectURL(t),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]))break;return!1;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.getMaxArrayNumber=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.getMinArrayNumber=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=(e.font&&(n.font=e.font),n.measureText(t).width);return(0,r.isIE)()||i.remove(),e};e.rgbToHex=function(t){var e,i;return"#"===t.substr(0,1)?t:"rgb"===t.substr(0,3)?(t=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t),e=parseInt(t[2],10).toString(16).padStart(2,"0"),i=parseInt(t[3],10).toString(16).padStart(2,"0"),t=parseInt(t[4],10).toString(16).padStart(2,"0"),"#".concat(e).concat(i).concat(t)):void 0},e.getCloneObject=function t(e){if(!e)return e;var i,n=Array.isArray(e)?[]:{};for(i in e){var o=e[i];o instanceof Date?n[i]=new Date(o):n[i]="object"==typeof o?t(o):o}return n},e.getTextLines=function(t,e,i){for(var n=e.split(" "),o="",r="",s=[],a=0;a<n.length;a++)r+="".concat(n[a]," "),i<t.measureText(r.trimEnd()).width&&0<a?(s.push(o),o="".concat(n[a]," "),r="".concat(n[a]," ")):o+="".concat(n[a]," "),a===n.length-1&&s.push(o);return s}},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.getPageLinksCss=e.getPageInlineCss=e.getLabelStyle=e.getPageCss=e.fitPosition=e.calculatePosition=e.getRealPosition=e.isFirefox=e.isSafari=e.isIE=e.getScrollbarHeight=e.getScrollbarWidth=e.getBox=e.locateNodeByClassName=e.locate=e.locateNode=e.eventHandler=e.toNode=void 0,e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector("[data-cell-id=".concat(t,"]"))||document.querySelector(t)||(null==(e=document.querySelector("[data-dhx-root-id=".concat(t,"]")))?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(t=n(t,e=void 0===e?"data-dhx-id":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 t=t.getBoundingClientRect(),e=document.body,i=window.pageYOffset||e.scrollTop,n=window.pageXOffset||e.scrollLeft;return{top:t.top+i,left:t.left+n,right:e.offsetWidth-t.right,bottom:e.offsetHeight-t.bottom,width:t.right-t.left,height:t.bottom-t.top}};var o=-1;e.getScrollbarWidth=function(){var t;return-1<o||(t=document.createElement("div"),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,s=d(),a=s.rightBorder,s=s.bottomBorder-t.bottom-e.height,l=t.top-e.height;if("bottom"===e.mode?0<=s?i=t.bottom:0<=l&&(i=l):0<=l?i=l:0<=s&&(i=t.bottom),s<0&&l<0){if(e.auto)return u(t,c(c({},e),{mode:"right",auto:!1}));i=l<s?t.bottom:l}return{left:e.centering?(s=t,l=e.width,n=a,o=(l-(t.right-t.left))/2,r=t.left-o,s=t.right+o,0<=r&&s<=n?r:r<0?0:n-l):(o=a-t.left-e.width,s=t.right-e.width,0<=o||!(0<=s)&&o<s?t.left:s),top:i}}function u(t,e){var i,n,o=d(),r=o.rightBorder,o=o.bottomBorder,s=r-t.right-e.width,a=t.left-e.width;if("right"===e.mode?0<=s?i=t.right:0<=a&&(i=a):0<=a?i=a:0<=s&&(i=t.right),a<0&&s<0){if(e.auto)return l(t,c(c({},e),{mode:"bottom",auto:!1}));i=s<a?a:t.right}return{left:i,top:e.centering?(s=t,a=e.height,i=r,r=(a-(t.bottom-t.top))/2,n=t.top-r,s=t.bottom+r,0<=n&&s<=i?n:n<0?0:i-a):(r=t.bottom-e.height,!(0<=(s=o-t.top-e.height))&&(0<r||s<r)?r:t.top)}}function a(t,e){var t=("bottom"===e.mode||"top"===e.mode?l:u)(t,e),i=t.left,t=t.top;return{left:Math.round(i)+"px",top:Math.round(t)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){var t;return-1<r||(t=document.createElement("div"),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("".concat(r.selectorText," {\n").concat(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"),i="text"!==i&&t.required;return!!(e||i||o&&!r||n&&!r)&&{style:(o||n)&&!r&&{width:n,"max-width":"100%"},label:o&&r?null:o}};var h=function(t){return t.href&&!t.href.startsWith(window.location.origin)};e.getPageInlineCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++){var i=document.styleSheets[e];if(!h(i))for(var n=("cssRules"in i&&i.cssRules.length?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push("".concat(r.selectorText," {\n").concat(r.style.cssText,"\n}\n"))}}return t.join("\n")},e.getPageLinksCss=function(t){var e=[];if(t)t.forEach(function(t){return e.push('<link href="'.concat(t,'" rel="stylesheet"/>'))});else for(var i=0;i<document.styleSheets.length;i++){var n=document.styleSheets[i];h(n)&&e.push('<link href="'.concat(n.href,'" rel="stylesheet"/>'))}return e.join("\n")}},function(t,n,e){"use strict";var r,s,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)},a=(Object.defineProperty(n,"__esModule",{value:!0}),n.checkPositions=n.superposition=n.getSizesSVGText=n.getScales=n.getClassesForRotateScale=n.calcPointRef=n.verticalBottomText=n.verticalTopText=n.verticalCenteredText=n.roundToTwoNumAfterPoint=n.euclideanDistance=n.getRadialGradient=n.linearGradient=n.getFontStyle=n.getColorShade=n.getTextWidth=n.log10=n.locator=n.getDefaultColor=void 0,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(e?l:i)[t=void 0===t?0: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),[(t=e.getImageData(1,1,1,1).data)[0],t[1],t[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){var i=(t=d(t).map(function(t){return Math.floor(t*e+255*(1-e))}))[0],n=t[1],t=t[2];return"rgb(".concat(i,",").concat(n,",").concat(t,")")},n.getFontStyle=c(function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=(e.setAttribute("class","dhx_chart"),document.createElementNS("http://www.w3.org/2000/svg","text")),t=(i.setAttribute("class",t),e.setAttribute("visibility","hidden"),i.textContent="test",e.appendChild(i),document.body.appendChild(e),getComputedStyle(i)),i="".concat(t.fontSize," ").concat(t.fontFamily);return document.body.removeChild(e),i}),n.linearGradient=function(t,e){return t=t.stops.map(function(t){return(0,a.sv)("stop",{offset:"".concat(100*t.offset,"%"),"stop-color":t.color,"stop-opacity":t.opacity||1})}),(0,a.sv)("linearGradient",{id:e,gradientTransform:"rotate(90)"},t)},n.getRadialGradient=function(t,e,i){return e=e.map(function(t){return(0,a.sv)("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}),(0,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(0,a.sv)("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},n.verticalTopText=function(t){return(0,a.sv)("tspan",{dy:"-0.5ex"},t)},n.verticalBottomText=function(t){return(0,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((0,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),i=Math.sqrt(Math.pow(i,2)-Math.pow((e-o.dy)*i/n,2)),i=o.right?i:-i,o.changeSector&&(i*=-1,o.line*=-1,t.class=o.right?"pie-value end-text":"pie-value start-text"),o.text1.x=i,o.text1.y=e,o.text2.x=i,o.text2.y=e+16)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Split=e.GridSelectionEvents=e.GridSystemEvents=e.GridEvents=e.HeaderFilterEvent=void 0,(e.HeaderFilterEvent={}).change="change",e.GridEvents={scroll:"scroll",expand:"expand",filterChange:"filterChange",beforeFilter:"beforeFilter",beforeResizeStart:"beforeResizeStart",resize:"resize",afterResizeEnd:"afterResizeEnd",cellClick:"cellClick",cellRightClick:"cellRightClick",cellMouseOver:"cellMouseOver",cellMouseDown:"cellMouseDown",cellDblClick:"cellDblClick",headerCellClick:"headerCellClick",footerCellClick:"footerCellClick",headerCellMouseOver:"headerCellMouseOver",footerCellMouseOver:"footerCellMouseOver",headerCellMouseDown:"headerCellMouseDown",footerCellMouseDown:"footerCellMouseDown",headerCellDblClick:"headerCellDblClick",footerCellDblClick:"footerCellDblClick",headerCellRightClick:"headerCellRightClick",footerCellRightClick:"footerCellRightClick",beforeEditStart:"beforeEditStart",afterEditStart:"afterEditStart",beforeEditEnd:"beforeEditEnd",afterEditEnd:"afterEditEnd",beforeKeyDown:"beforeKeyDown",afterKeyDown:"afterKeyDown",beforeColumnHide:"beforeColumnHide",afterColumnHide:"afterColumnHide",beforeColumnShow:"beforeColumnShow",afterColumnShow:"afterColumnShow",beforeRowHide:"beforeRowHide",afterRowHide:"afterRowHide",beforeRowShow:"beforeRowShow",afterRowShow:"afterRowShow",beforeRowDrag:"beforeRowDrag",dragRowStart:"dragRowStart",dragRowOut:"dragRowOut",dragRowIn:"dragRowIn",canRowDrop:"canRowDrop",cancelRowDrop:"cancelRowDrop",beforeRowDrop:"beforeRowDrop",afterRowDrop:"afterRowDrop",afterRowDrag:"afterRowDrag",beforeColumnDrag:"beforeColumnDrag",dragColumnStart:"dragColumnStart",dragColumnOut:"dragColumnOut",dragColumnIn:"dragColumnIn",canColumnDrop:"canColumnDrop",cancelColumnDrop:"cancelColumnDrop",beforeColumnDrop:"beforeColumnDrop",afterColumnDrop:"afterColumnDrop",afterColumnDrag:"afterColumnDrag",beforeRowResize:"beforeRowResize",afterRowResize:"afterRowResize",beforeSort:"beforeSort",afterSort:"afterSort"},e.GridSystemEvents={cellTouchMove:"cellTouchMove",cellTouchEnd:"cellTouchEnd",headerCellTouchMove:"headerCellTouchMove",headerCellTouchEnd:"headerCellTouchEnd"},e.GridSelectionEvents={beforeUnSelect:"beforeUnSelect",afterUnSelect:"afterUnSelect",beforeSelect:"beforeSelect",afterSelect:"afterSelect"},e.Split={left:"leftSplit",right:"rightSplit",top:"topSplit",bottom:"bottomSplit"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventsMixin=e.EventSystem=void 0;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={}};var n=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,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(11),e),o(i(37),e),o(i(84),e),o(i(85),e),o(i(15),e),o(i(126),e),o(i(12),e),o(i(40),e),o(i(39),e),o(i(127),e),o(i(38),e),o(i(24),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scrollFixedColsAndRows=e.getTotalHeight=e.getTotalWidth=e.isHtmlEnable=e.isTooltip=e.isContentTooltip=e.showTooltip=e.isAutoWidth=e.isSortable=e.isRowEmpty=e.isCssSupport=e.removeHTMLTags=e.getStyleByClass=e.transpose=void 0;var o=i(1),n=i(2),r=i(43);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="'.concat(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:(0,o.rgbToHex)(t.color),background:"rgba(0, 0, 0, 0)"===t.backgroundColor?n.background:(0,o.rgbToHex)(t.backgroundColor),fontSize:Math.round(parseFloat(t.fontSize)),bold:["bold","700","600","500"].includes(t.fontWeight)},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?"":"".concat(null==t?"":t).replace(/<[^>]*>/g,"").replace(/["]/g,""").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){var i;return t?!1!==t.autoWidth&&e.autoWidth||t.autoWidth:(i=!1,e.columns.map(function(t){(!1!==t.autoWidth&&e.autoWidth||t.autoWidth)&&(i=!0)}),i)},e.showTooltip=function(t){var e=t.node,i=t.value,t=void 0!==(t=t.htmlEnable)&&t;e&&(0,r.tooltip)(i.toString(),{css:"dhx_grid_tooltip",node:e,htmlEnable:t})},e.isContentTooltip=function(t,e,i,n){for(var o=!1,n="header"===n?t.headerTooltip:t.footerTooltip,r=[t.tooltip,n,e.tooltip,null==i?void 0:i.tooltip],s=0;s<r.length;s++)"boolean"==typeof r[s]&&(o=r[s]);return o},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=(0,n.locateNode)(t,"data-dhx-widget-id").querySelector(".dhx_grid-body"),i=t.deltaY,t=t.shiftKey?[i,0]:[0,i];null!=e&&e.scrollBy.apply(e,t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toViewLike=e.View=void 0;var n=i(1),o=i(2);function r(t,e){this.config=e||{},this._uid=null!=(e=this.config.rootId)?e:(0,n.uid)()}r.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=(0,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())},e.View=r,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";var n=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},v=(Object.defineProperty(e,"__esModule",{value:!0}),e.getEditorOptions=e.toFormat=e.getMaxColsWidth=e.getTreeCellWidthOffset=e.getCalculatedRowHeight=e.getMaxRowHeight=e.getUnique=e.calculatePositions=e.countColumns=e.normalizeColumns=void 0,i(1)),k=i(7),T=i(13);function l(t,e){t[e]&&("string"==typeof t[e]?t[e]=[{text:"".concat(t[e])}]:t[e]=t[e].map(function(t){return t="string"==typeof 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(a&&(t.footer=t.footer||[]),t.header.length<n)for(var e=0;e<n;e++)t.header[e]=t.header[e]||{text:""};if(t.footer){if(t.footer.length<o)for(e=0;e<o;e++)t.footer[e]=t.footer[e]||{text:""};for(e=0;e<t.footer.length;e++)t.footer[e].id||(t.footer[e].id=(0,v.uid)())}t.header=t.header.map(function(t){return(t="object"!=typeof t?{text:t}:t).css=t.css||"",t.text||t.css.includes("dhx_cell-empty")||(t.css+=" dhx_cell-empty"),t.id||(t.id=(0,v.uid)()),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=n.leftSplit?n.columns.slice(0,n.leftSplit).filter(function(t){return!t.hidden}).length:0,c=null!=(c=n.topSplit)?c:0,d=null!=(d=n.rightSplit)?d:0,u=null!=(u=n.bottomSplit)?u:0,h=0,f=i.left,p=n.$totalWidth/s,g=0;g<s;g++){var _=r[g];if(!_.hidden){if(!(0<(f-=_.$width)+p/2))break;h++}}for(var v=0,m=i.top,y=n.$totalHeight/l,g=0;g<l;g++){var x=a[g];if(!x.hidden){if(!(0<(m-=x.$height)+y/2))break;v++}}for(var b=0,w=0,C=-1/0,S=1/0,E=0;E<s;E++){var D=r[E];h<=E&&b<t&&!D.hidden&&(b+=D.$width,w++),D.$width>C&&(C=D.$width),D.$width<S&&(S=D.$width)}for(var O=0,k=0,T=-1/0,M=1/0,E=0;E<l;E++){x=a[E];v<=E&&O<e&&!x.hidden&&(O+=x.$height,k++),x.$height>T&&(T=x.$height),x.$height<M&&(M=x.$height)}var M=M<n.rowHeight?M:n.rowHeight,i=Math.round(C/S),P=Math.round(T/M),H=h+w+i,n=(n.leftSplit||0)-o,d=r.length-d-n,n=v+k+P,u=a.length-u;return{xStart:o<=h-i?h-i:o,xEnd:H<d?H:d,yStart:c<=v-P?v-P:c,yEnd:n<u?n:u}},e.getUnique=function(t,e,i){var n=t.map(function(t){return t[e]});return i&&n.forEach(function(t,e){"string"==typeof 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&&(0,v.isDefined)(t)}).sort()};e.getMaxRowHeight=function(t,e,i){void 0===i&&(i={font:"14px Arial",lineHeight:20});for(var n=document.createElement("canvas"),o=n.getContext("2d",{alpha:!1}),r=(o.font=i.font,{}),s=e.length,a=0;a<s;a++)e[a].template?r[e[a].id]={width:e[a].$width-16||0,htmlEnable:e[a].$htmlEnable,template:e[a].template,cols:e[a]}:r[e[a].id]={width:e[a].$width-16||0,htmlEnable:e[a].$htmlEnable};for(var l=[],c=[],d=0,u=Object.entries(t);d<u.length;d++){var h,f,p=u[d],g=p[0],p=p[1];!r[g]||"id"===g||"height"===g||g.startsWith("$")||"string"!=typeof p&&"number"!=typeof p||(h="",h=null!=(f=r[g])&&f.template?(f=r[g].template(p,t,r[g].cols),r[g].htmlEnable?(0,k.removeHTMLTags)(f):f):"string"==typeof p?r[g].htmlEnable?(0,k.removeHTMLTags)(p):p:p.toString(),1<(f=Math.ceil(o.measureText(h).width/r[g].width))&&(f=(0,v.getTextLines)(o,h,null==(p=r[g])?void 0:p.width).length),c.push(f),l.push(h.split("\n").length))}var _=Math.max((0,v.getMaxArrayNumber)(l),(0,v.getMaxArrayNumber)(c));return n.remove(),_*i.lineHeight+8},e.getCalculatedRowHeight=function(t,e){var i=(e=void 0===e?{rowHeight:40,padding:8}: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){for(var o=document.createElement("canvas"),r=o.getContext("2d",{alpha:!1}),s=(r.font=i.font,{}),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,b=v[_],w=b[0],C=b[1],b=s[w];b&&"id"!==w&&"height"!==w&&!w.startsWith("$")&&("string"==typeof C||"number"==typeof C||C instanceof Date)&&(d=b.template,y=b.cols,h=b.format,p=b.type,x=b.htmlEnable,b=b.width,m=void 0,m="function"==typeof d?(y=d(C,t[l],y),x?(0,k.removeHTMLTags)(y):y):x?(0,k.removeHTMLTags)(C):C.toString(),null!=(y=h&&"date"===p&&new Date(m))&&y.valueOf()&&(m=(0,T.getFormattedDate)(h,y)),b<(x=r.measureText(m).width))&&(s[w].width=x)}o.remove();for(var S={},E=0,D=Object.entries(s);E<D.length;E++){var O=D[E],w=O[0],C=O[1];S[w]=Math.ceil(C.width)}return S}},e.toFormat=function(t,e,i){if("boolean"==typeof t)return t;if(!t&&"number"!=typeof t)return t;var n,o,r,s,a,l;switch(e){case"number":case"percent":return i=i||"#",(0,v.isDefined)(t)&&!isNaN(Number(t))?(n=e,s=i.replace(/#+/g,"#").split("#").filter(function(t){return t}),a=i.match(/0/g)&&i.match(/0/g).length,t=("percent"===n?100*Number(t):t).toString(),l=Math.trunc(Number(t)),a&&(r=t.split(".")[1]||"0",o=s.find(function(t){return t.includes("0")}).replace(/0+/g,""),r=Number("0."+r).toFixed(a),1<=Number(r)&&l++,r=r.toString().split(".")[1].padEnd(a,"0")),a="".concat(t<0&&0===Math.abs(l)?"-":"").concat(l),s=(l=s.find(function(t){return!t.includes("0")}))?a.replace(/(\d)(?=(\d{3})+(\D|$))/g,"$1".concat(l)):a,s+=(o||"")+(r||""),"percent"===n?"".concat(s,"%"):s):t;case"date":return i=i||"%M %d %Y","string"==typeof t?t=(0,T.getFormattedDate)(i,(0,T.stringToDate)(t,i)):"object"==typeof t&&(t=(0,T.getFormattedDate)(i,t)),t;default:return t}},e.getEditorOptions=function(t,e){return n(n([],("function"==typeof t.options?t.options(t,e):t.options)||[],!0),t.$customOptions||[],!0)}},function(t,C,e){"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)},d=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},E=(Object.defineProperty(C,"__esModule",{value:!0}),C.proRender=C.render=C.applyAutoWidth=C.getEvents=C.getElementSizes=C.getRenderConfig=C.getCurrFixedCols=C.calcScrollBarWidth=C.BORDERS=void 0,e(0)),u=e(2),c=e(9),D=e(7),O=e(4),k=e(16),T=e(59),M=e(60),f=e(1);function P(t,e,i){void 0===e&&(e=!1);var n=t.headerHeight,n=void 0===n?t.$headerLevel*t.headerRowHeight:n,o=t.footerHeight,o=void 0===o?t.$footerLevel*t.footerRowHeight:o,o=t.$totalHeight+n+o+C.BORDERS>(null!=(n=null==i?void 0:i.height)?n:t.$height),n=!o||e?0:(0,u.getScrollbarWidth)(),i=t.$totalWidth+C.BORDERS+n>(null!=(i=null==i?void 0:i.width)?i:t.$width);return{x:!i||e?0:(0,u.getScrollbarWidth)(),y:n,xState:i,yState:o}}function h(t,e){return t[e]?(e===O.Split.left?t.columns.slice(0,t.leftSplit):t.columns.slice(-t.rightSplit)).filter(function(t){return!t.hidden}):[]}function H(t,e,i){var n=t.config,o=n.columns.filter(function(t){return!t.hidden}),i=(0,c.calculatePositions)(i.width,i.height,t._scroll,n,e),r=o.slice(i.xStart,i.xEnd),s=e.slice(i.yStart,i.yEnd),a={left:h(n,O.Split.left),right:h(n,O.Split.right)},l={top:e.slice(0,n.topSplit||0),bottom:n.bottomSplit?e.slice(-n.bottomSplit):[]};return S(S({},n),{data:e,columns:n.columns,scroll:t._scroll,$positions:i,headerHeight:n.$headerLevel*n.headerRowHeight,footerHeight:n.$footerLevel*n.footerRowHeight,firstColId:o[0]&&o[0].id,events:t.events,_events:t._events,filteredColumns:o,currentColumns:r,currentRows:s,fixedColumns:a,fixedRows:l,sortBy:t._sortBy,sortDir:t._sortDir,content:t.content,gridId:t._uid,$renderFrom:"render"})}function L(t){var e,i;if(t&&(t=t.tagName?t:t._parent._container))return i=t.currentStyle||window.getComputedStyle(t),e=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)||0,i=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)||0,{width:t.clientWidth-e,height:t.clientHeight-i}}function p(t,r){var e,s=t.currentColumns,a=t.currentRows,l=t.fixedRows,c=t.fixedColumns,i=t.eventHandlers,n={};if(i)for(var o in i)i.hasOwnProperty(o)&&(e=i[o],n[o]=(0,u.eventHandler)(function(t){var e,i,n=(0,u.locate)(t,"data-dhx-id"),o=(0,u.locate)(t,"data-dhx-col-id");switch(r){case O.Split.left:case O.Split.right:e=d(d(d([],l.top,!0),l.bottom,!0),a,!0).find(function(t){return t.id.toString()===n}),i=d(d([],c.left,!0),c.right,!0).find(function(t){return t.id===o});break;case O.Split.top:case O.Split.bottom:e=d(d([],l.top,!0),l.bottom,!0).find(function(t){return(null==t?void 0:t.id.toString())===n}),i=d(d(d([],c.left,!0),c.right,!0),s,!0).find(function(t){return t.id===o});break;default:e=a.find(function(t){return t.id.toString()===n}),i=s.find(function(t){return t.id===o})}return{row:n?e:{},col:o?i:{}}},S({},e)));return n}function j(t,e){var i,n=(0,k.getCells)(t),o=t.filteredColumns,r=t.$resizing,s=t.$totalHeight,a=t.$totalWidth,l=t.leftSplit,c=t.data,d=t.$positions,u=(0,k.getSpans)(t);r&&(i=(0,f.findIndex)(o,function(t){return t.id===r}),o=(0,D.getTotalWidth)(o.slice(0,i))+o[i].$width,i=(0,E.el)(".dhx_grid-resize-line",{style:{top:0,left:o,height:s}}));var o="string"==typeof(o=t.selection?t.selection.toHTML():null)?(0,E.el)("div.dhx_selection",{".innerHTML":o}):o,h=p(t);return(0,E.el)(".dhx_data-wrap",S({style:{height:s,width:a,"padding-left":e.x,"padding-top":e.y},role:"presentation"},h),[(0,E.el)(".dhx_grid_data".concat(l?".dhx_grid_fixed_left":""),S(S({_flags:E.KEYED_LIST},(0,k.getHandlers)(d.yStart,d.xStart,t)),{role:"rowgroup","aria-rowcount":c.length}),n),(0,E.el)(".dhx_span-spans",S({role:"presentation"},(0,k.getHandlers)(d.yStart,d.xStart,t)),u),(0,E.el)(".dhx_grid_selection",{_ref:"selection","aria-hidden":"true"},[o,i])])}function R(t,e,i){i=i.height-C.BORDERS,i=e?i:i-t.headerHeight;return!t.$footer||e?i:i-t.footerHeight}function I(e,t,o,r,i){void 0===o&&(o=!0),void 0===r&&(r=!1);var s,n=!(i=void 0===i?!1:i)&&e.$totalHeight>=t.height-e.headerRowHeight?(0,u.getScrollbarWidth)():0,a=t.width-C.BORDERS-n,n=e.columns.filter(function(t){return!t.hidden}),l=n.filter(function(t){return!t.width&&!t.$fixed&&(0,D.isAutoWidth)(e,t)}),c=(0,D.getTotalWidth)(n.filter(function(t){return t.width||t.$fixed||!(0,D.isAutoWidth)(e,t)})),d=l.reduce(function(t,e){return t+(e.gravity||1)},0);a<e.$totalWidth?(s=l.reduce(function(t,e){return t+(e.maxWidth||e.$width)},0),l.length&&l.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)})):l.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&&I(e,t,!1,r,i)}C.BORDERS=2,C.calcScrollBarWidth=P,C.getCurrFixedCols=h,C.getRenderConfig=H,C.getElementSizes=L,C.getEvents=p,C.applyAutoWidth=I,C.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&&(l=L(t.node.parent.el),e.config.$width=l.width,e.config.$height=l.height);var r,s,a,l,c,d,u,h,f,p,g,_,v,m,y,x,b=e.config;return b?b.columns.length?(l=e.data.getRawData(0,-1,null,2),b.columns.reduce(function(t,e){return e.hidden&&t},!0)?b.$totalHeight=0:b.$totalHeight=l.reduce(function(t,e){return t+(e.$height||0)},0),a=L(e._container),s=b.$width||(b.width&&"number"==typeof b.width?b.width:null==a?void 0:a.width),a=b.$height||(b.height&&"number"==typeof b.height?b.height:null==a?void 0:a.height),r={width:s||0,height:a||0},(0,D.isAutoWidth)(b)&&(I(b,r),b.$totalWidth=(0,D.getTotalWidth)(b.columns.filter(function(t){return!t.hidden}))),b.$width=r.width,b.$height=r.height,(s=H(e,l,r)).selection=n,s.datacollection=e.data,a=(0,k.getShifts)(s),s.$scrollBarWidth=P(s),n=R(s,l=(0,D.isCssSupport)("position","sticky"),r),d=(0,M.getFixedRows)(s,S(S({},c={wrapper:r,sticky:l,shifts:a,gridBodyHeight:n}),{name:"header",position:"top"})),u=s.$footer?(0,M.getFixedRows)(s,S(S({},c),{name:"footer",position:"bottom"})):null,h=s.$totalWidth+C.BORDERS<r.width?"dhx_grid-less-width":"",f=s.$totalHeight+C.BORDERS<r.height?"dhx_grid-less-height":"",p=s.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",g=b.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"",t.node||(t=e.getScrollState(),_=t.x,v=t.y,(0,E.awaitRedraw)().then(function(){e.scroll(_,v)})),(0,E.el)(".dhx_grid.dhx_widget",S({class:(s.css||"")+(l?"":" dhx_grid_border")+(b.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":o,"data-dhx-root-id":b.rootParent},(t=s.data,m=b.columns,y=s.editable,x=s.multiselection,{role:"grid","aria-rowcount":t.length,"aria-colcount":m.filter(function(t){return!t.hidden}).length,"aria-readonly":y?"false":"true","aria-multiselectable":x?"true":"false"})),[(0,E.resizer)(function(t){return(0,D.isAutoWidth)(e.config)&&t&&(b.$totalWidth=0,I(b,r,!0,!0)),e.paint()}),(0,E.el)(".dhx_grid-content",{style:S({},r),onclick:i.onclick,onmouseover:i.onmouseover,class:"".concat(h," ").concat(f," ").concat(p," ").concat(g).trim(),role:"presentation"},[l?null:d,(0,E.el)(".dhx_grid-body",{style:{height:n,width:r.width-C.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[(0,E.el)("div",{},[l?d:null,j(s,a),l?u:null])]),(0,T.getFixedColsHeader)(s,c,O.Split.left),(0,T.getFixedColsHeader)(s,c,O.Split.right),(0,T.getFixedCols)(s,c,O.Split.left),(0,T.getFixedCols)(s,c,O.Split.right),(0,M.getFixedDataRows)(s,c,O.Split.top),(0,M.getFixedDataRows)(s,c,O.Split.bottom),l?null:u])])):(0,E.el)(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":b.rootParent,role:"empty-grid"}):(0,E.el)("div")},C.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&&(s=L(t.node.parent.el),e.config.$width=s.width,e.config.$height=s.height);var r,s,a,l,c,d,u,h,f,p,g,_,v,m,y,x,b,w=e.config;return w?w.columns.length?(h=e.data.getRawData(0,-1,null,2),w.columns.reduce(function(t,e){return e.hidden&&t},!0)?w.$totalHeight=0:w.$totalHeight=h.reduce(function(t,e){return t+(e.$height||0)},0),f=L(e._container),"auto"===e.config.height&&(r=w,s=s||f,a=(d=e)._container,l=r.$headerLevel*r.headerRowHeight,u=r.$footerLevel*r.footerRowHeight,l=l+(u&&1+u)+r.$totalHeight+C.BORDERS,a=a?(a=(u=window.getComputedStyle(a)).minHeight,u=u.maxHeight,l<=parseFloat(a)?parseFloat(a):l>=parseFloat(u)?parseFloat(u):l+P(r,!(null==(a=d.scrollView)||!a.config.enable),s).x):l+(s?P(r,!(null==(u=d.scrollView)||!u.config.enable),s).x:0)),l=w.$width||(w.width&&"number"==typeof w.width?w.width:null==f?void 0:f.width),r=w.$height||(w.height&&"number"==typeof w.height?w.height:null==f?void 0:f.height),c={width:l||0,height:("auto"===e.config.height?a:r)||0},(0,D.isAutoWidth)(w)&&(I(w,c,!0,!1,e.scrollView&&e.scrollView.config.enable),w.$totalWidth=(0,D.getTotalWidth)(w.columns.filter(function(t){return!t.hidden}))),w.$width=c.width,w.$height=c.height,(d=H(e,h,c)).selection=n,d.datacollection=e.data,u=(0,k.getShifts)(d),d.$scrollBarWidth=P(d,!(null==(f=e.scrollView)||!f.config.enable)),n=R(d,h=(0,D.isCssSupport)("position","sticky"),c),p=(0,M.getFixedRows)(d,S(S({},f={wrapper:c,sticky:h,shifts:u,gridBodyHeight:n}),{name:"header",position:"top"})),g=d.$footer?(0,M.getFixedRows)(d,S(S({},f),{name:"footer",position:"bottom"})):null,_=d.$totalWidth+C.BORDERS<c.width?"dhx_grid-less-width":"",v=d.$totalHeight+C.BORDERS<c.height?"dhx_grid-less-height":"",m=d.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",y=w.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"",t.node||(t=e.getScrollState(),x=t.x,b=t.y,(0,E.awaitRedraw)().then(function(){e.scroll(x,b)})),t=(0,E.el)("div",{},[h?p:null,j(d,u),h?g:null]),(0,E.el)(".dhx_grid.dhx_widget",{class:(d.css||"")+(h?"":" dhx_grid_border")+(w.multiselection?" dhx_no-select--pointer":""),style:{height:null!=a?a:null},"data-dhx-widget-id":o,"data-dhx-root-id":w.rootParent,role:"grid","aria-rowcount":d.data.length,"aria-colcount":w.columns.filter(function(t){return!t.hidden}).length},[(0,E.resizer)(function(t){return(0,D.isAutoWidth)(e.config)&&t&&(w.$totalWidth=0,I(w,c,!0,!0)),e.paint()}),(0,E.el)(".dhx_grid-content",{style:S({},c),onclick:i.onclick,onmouseover:i.onmouseover,class:"".concat(_," ").concat(v," ").concat(m," ").concat(y).trim(),role:"presentation"},[h?null:p,(0,E.el)(".dhx_grid-body",{style:{height:n,width:c.width-C.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[e.scrollView&&e.scrollView.config.enable?e.scrollView.render([t]):t]),(0,T.getFixedColsHeader)(d,f,O.Split.left),(0,T.getFixedColsHeader)(d,f,O.Split.right),(0,T.getFixedCols)(d,f,O.Split.left),(0,T.getFixedCols)(d,f,O.Split.right),(0,M.getFixedDataRows)(d,f,O.Split.top),(0,M.getFixedDataRows)(d,f,O.Split.bottom),h?null:g])])):(0,E.el)(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":w.rootParent,role:"empty-grid"}):(0,E.el)("div")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataDriver=e.DragEvents=e.DataEvents=e.TreeFilterType=void 0,e.TreeFilterType={all:"all",level:"level",leafs:"leafs"},e.DataEvents={afterAdd:"afteradd",beforeAdd:"beforeadd",removeAll:"removeall",beforeRemove:"beforeremove",afterRemove:"afterremove",change:"change",filter:"filter",dataRequest:"dataRequest",load:"load",loadError:"loaderror",beforeLazyLoad:"beforelazyload",afterLazyLoad:"afterlazyload",beforeItemLoad:"beforeItemLoad",afterItemLoad:"afterItemLoad"},e.DragEvents={beforeDrag:"beforeDrag",dragStart:"dragStart",dragOut:"dragOut",dragIn:"dragIn",canDrop:"canDrop",cancelDrop:"cancelDrop",beforeDrop:"beforeDrop",afterDrop:"afterDrop",afterDrag:"afterDrag"},e.DataDriver={json:"json",csv:"csv",xml:"xml"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isOnlyPermanentFilters=e.hasJsonOrArrayStructure=e.isTreeCollection=e.copyWithoutInner=e.toDataDriver=e.toProxy=e.dhxError=e.dhxWarning=e.isDebug=e.findByConf=e.naturalCompare=e.isEqualObj=void 0;var n=i(1),o=i(15),r=i(38);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(),i=i[0]-r[0]||i[1].localeCompare(r[1]);if(i)return i}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 o.DataProxy(t):"object"==e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,e=e&&e.dataDrivers||r.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}},e.isOnlyPermanentFilters=function(e){return!(!e||(0,n.isEmptyObj)(e))&&Object.keys(e).every(function(t){return null==(t=e[t].config)?void 0:t.permanent})}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DateHelper=r.stringToDate=r.getFormattedDate=r.locale=void 0;var v,i=e(1),s=e(1),n=(r.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"},{"%d":function(t){t=t.getDate();return t<10?"0"+t:t},"%j":function(t){return t.getDate()},"%l":function(t){return r.locale.days[t.getDay()]},"%D":function(t){return r.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 r.locale.monthsShort[t.getMonth()]},"%F":function(t){return r.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(t=0===t?12:t)<10?"0"+t:t},"%g":function(t){t=t.getHours()%12;return t=0===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,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,e,i,n){var o=(0,s.findIndex)(r.locale.monthsShort,function(t){return t===e});if(n)return-1!==o;-1===o?t.setMonth(0):t.setMonth(o),-1!==o&&t.getMonth()!==o&&t.setMonth(o)},"%F":function(t,e,i,n){var o=(0,s.findIndex)(r.locale.months,function(t){return t===e});if(n)return-1!==o;-1===o?t.setMonth(0):t.setMonth(o),-1!==o&&t.getMonth()!==o&&t.setMonth(o)},"%y":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e,i,n){var o=/(^([0-9][0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,i,n){var o=/(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,i,n){var o=/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e,i,n){var o=/(^[0-2][0-9]$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e,i,n){var o=/(^[1-9][0-9]?$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e,i,n){var o=/(^([0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e,i,n){if(n)return"pm"===e||"am"===e;"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e,i,n){if(n)return"PM"===e||"AM"===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 o(e,t,i){if("string"==typeof e){for(var n,o=y(t=t.replace(/(?<=[a-z])%a/i,function(t){return e=e.replace(/(am|pm)/i," $&")," "+t})),r=[],s=0,a=null,l="Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html",c=0;c<o.length;c++)if(o[c].type===v.separator){var d=e.indexOf(o[c].value,s);if(-1===d){if(i)return!1;throw new Error(l)}a&&(r.push({formatter:a,value:e.slice(s,d)}),a=null),s=d+o[c].value.length}else if(o[c].type===v.datePart){if(o[c+1]&&o[c+1].type!==v.separator){if(i)return!1;throw new Error(l)}a=o[c].value}"%A"===a||"%a"===a?r.unshift({formatter:a,value:e.slice(s)}):a&&r.push({formatter:a,value:e.slice(s)}),r.reverse();for(var u=0,h=r;u<h.length;u++)"%A"!==(f=h[u]).formatter&&"%a"!==f.formatter||(n=f.value);for(var f,p=new Date(0),g=0,_=r;g<_.length;g++)if(m[(f=_[g]).formatter]){if(i&&!m[f.formatter](p,f.value,n,i))return!1;m[f.formatter](p,f.value,n)}return!!i||p}}(e=v=v||{})[e.separator=0]="separator",e[e.datePart=1]="datePart",r.getFormattedDate=function(t,i){return y(t).reduce(function(t,e){return e.type===v.separator?t+e.value:n[e.value]?t+n[e.value](i):t},"")},r.stringToDate=o;r.DateHelper=(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(0,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?o(t,e):new Date(t)},a.nullTimestampDate=new Date(0),a);function a(){}},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=[],a=((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)},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();var o;return n instanceof Array?(o=new u,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.reject(TypeError())},u.race=function(n){if(1!=this._d)throw TypeError();var o;return n instanceof Array?0==n.length?new u:(o=new u,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.reject(TypeError())},u._d=1,t.exports=u}()}.call(this,i(23),i(75).setImmediate)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataProxy=void 0;var n=i(24);function o(t,e){this.url=this._url=t,this.config=e}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+="".concat(i,"=").concat(encodeURIComponent(e[i]),"&");this.url=this.url.slice(0,-1)},o.prototype.load=function(){return n.ajax.get(this.url,void 0,{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);default:return n.ajax.post(this.url,t)}},e.DataProxy=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)},X=(Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeSpan=e.getShifts=e.getSpans=e.getCells=e.getTreeCell=e.getHandlers=void 0,i(1)),q=i(0),U=i(21),K=i(7),J=i(4),n=i(92),c=i(2),Z=i(9),Q=i(10);function o(t,e,i,n,o){e=(0,c.locateNodeByClassName)(o.target,"dhx_grid-fixed-cols-wrap")?0:e;var r,s,a,e=(0,c.locateNodeByClassName)(o.target,"dhx_grid-cell"),l=(0,c.locateNodeByClassName)(o.target,"dhx_span-cell");(e||l)&&n&&(r=e?e.parentNode:l,s=(e||l).getAttribute("data-dhx-col-id"),e=i.filteredColumns.find(function(t){return t.id===s}),a=r.getAttribute("data-dhx-id"),l=(i.$data||i.data).find(function(t){return t.id.toString()===a}),(n.toLocaleLowerCase().includes("touch")?i._events:i.events).fire(n,[l,e,o]))}function _(t,e,i,n){var o=n.$editable&&n.$editable.row===e.id&&n.$editable.col===i.id,r=!n.fixedColumns.left.length||"leftFixedCols"===n.$renderFrom,s=i.align?"dhx_align-".concat(i.align):"dhx_align-left",a="",o=(r&&(a="dhx_tree-cell ".concat(i.$cellCss[e.id]||""," ").concat(s),e.$items&&(a+=" dhx_grid-expand-cell"),o&&(a+=" dhx_tree-editing-cell"),n.dragMode)&&!o&&(a+=(e.$drophere?" dhx_grid-cell--drophere":"")+(e.$dragtarget?" dhx_grid-cell--dragtarget":"")),(0,Z.getTreeCellWidthOffset)(e));return(0,q.el)(".dhx_grid-cell",y({class:a,style:{width:i.$width,height:e.$height,padding:e.$items?0:"0 0 0 ".concat(o,"px")},"data-dhx-col-id":i.id},{role:"gridcell","aria-colindex":1}),r?[e.$items?(0,q.el)(".dhx_grid-expand-cell-icon",y(y({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 ".concat(4+o,"px"):"0 0 0 4px"}})):null,(0,q.el)(".dhx_tree-cell",{class:s+"".concat(n.autoHeight?" dhx_tree-cell_auto-height":"")},[t])]:null)}function tt(t,e,i){return(0,n.getEditor)(t,e,i)}function et(t){var e=t.$scrollBarWidth,i=t.$headerLevel*t.headerRowHeight,n=t.$footerLevel*t.footerRowHeight,o=t.$totalWidth-t.$width+Q.BORDERS+e.y,i=t.$totalHeight-t.$height+i+n+Q.BORDERS+e.x;return{x:0<o?o-t.scroll.left:0,y:0<i?i-t.scroll.top:0}}e.getHandlers=function(t,e,i){return{onclick:[o,t,e,i,J.GridEvents.cellClick],onmouseover:[o,t,e,i,J.GridEvents.cellMouseOver],onmousedown:[o,t,e,i,J.GridEvents.cellMouseDown],ondblclick:[o,t,e,i,J.GridEvents.cellDblClick],oncontextmenu:[o,t,e,i,J.GridEvents.cellRightClick],ontouchstart:[o,t,e,i,J.GridEvents.cellMouseDown],ontouchmove:[o,t,e,i,J.GridSystemEvents.cellTouchMove],ontouchend:[o,t,e,i,J.GridSystemEvents.cellTouchEnd]}},e.getTreeCell=_,e.getCells=function(h){var f,o,r,p,g,s,t;return h.data&&h.filteredColumns?(f=h.$positions,o=h.data?h.data.slice(f.yStart,f.yEnd):[],r=h.filteredColumns.slice(f.xStart,f.xEnd),p=h.selection.getCell(),g=!0,(t=document.querySelector(".dhx_drag-ghost"))&&(t=Array.from(t.querySelectorAll(".dhx_grid-row")).map(function(t){return Number(t.getAttribute("aria-rowindex"))-1})).length&&(s=t.map(function(t){return h.data[t]}).filter(function(e){return e&&!o.find(function(t){return t.id===e.id})}),o.push.apply(o,s)),o.map(function(u,t){var e=null==s?void 0:s.some(function(t){return t.id===u.id}),i=o.length-1===t,n="";return h.rowCss&&(n=h.rowCss(u)),u.$css&&(n+=u.$css),(0,q.el)(".dhx_grid-row",y({style:{height:i?u.$height+1:u.$height,display:e?"none":null},"data-dhx-id":u.id,class:n,_key:u.id,_flags:q.KEYED_LIST},e?{}:{role:"row","aria-rowindex":f.yStart+t+1}),u.$customRender?[u.$customRender(u,h)]:r.map(function(t,e){var i,n,o,r,s,a,l,c,d;if(!t.hidden)return d=u[t.id],i=(0,Z.getEditorOptions)(t,u),(t.editable||h.editable&&!1!==t.editable)&&("select"===t.editorType||"combobox"===t.editorType||"multiselect"===t.editorType)&&i&&(d=(d="string"==typeof d&&"multiselect"===t.editorType?d.split(",").map(function(t){return t.trim()}):[null==d?void 0:d.toString()]).map(function(e){var t;return null!=(t=null==(t=i.find(function(t){return t.id&&t.id.toString()===e}))?void 0:t.value)?t:e}).join(", ")),d=(0,Z.toFormat)(d,t.type,t.format),n=function(t,e){var i={tabindex:-1};return p?p.row.id===e.id&&p.column.id===t.id&&(i.tabindex=0):g&&(i.tabindex=0,i.onfocus=function(t){var e;h.selection&&!p&&(e=t.target.parentNode.getAttribute("data-dhx-id"),t=t.target.getAttribute("data-dhx-col-id"))&&e&&(h.selection.setCell(e,t),p=h.selection.getCell())}),g=!1,i},"string"==typeof(d=t.template?t.template(d,u,t):"boolean"!=typeof(d=d)&&"boolean"!==t.type||"string"==typeof d?d||0===d?d:"":"".concat(Boolean(d)))&&(d=(0,K.isHtmlEnable)(h,t)?(0,q.el)("div.dhx_grid-cell__content",y({".innerHTML":d},{role:"button","aria-label":"Edit content"})):d),o="".concat(t.$cellCss&&t.$cellCss[u.id]||""," dhx_").concat(t.type,"-cell").replace(/\s+/g," "),r=t.$width,s=h.$editable&&h.$editable.row===u.id&&h.$editable.col===t.id&&!h.$editable.isSpan,c=h.leftSplit,a=h.filteredColumns,(s||"boolean"===t.type&&(h.editable&&(null==(l=t.editable)||l)||!h.editable&&t.editable))&&(d=tt(u,t,h).toHTML(),o+=" dhx_grid-cell__editable",c===a.indexOf(t)+1)&&--r,"tree"===h.type&&h.firstColId===t.id?_(d,u,t,h):(h.dragMode&&!s&&(o+=(u.$drophere?" dhx_grid-cell--drophere":"")+(u.$dragtarget?" dhx_grid-cell--dragtarget":"")),t.align&&(o+=" dhx_align-".concat(t.align)),(0,K.isHtmlEnable)(h,t)&&(o+=" dhx_grid-cell__content_html-enable"),h.autoHeight&&(o+=" dhx_grid-cell__content_auto-height"),(0,q.el)(".dhx_grid-cell",y({class:o,style:{width:r,height:u.$height+"px"},_key:t.id,"data-dhx-col-id":t.id},(l=f.xStart+e+1,c=h.editable,y({role:"gridcell","aria-colindex":l,"aria-readonly":c?"false":"true"},n(t,u)))),[d]))}))})):[]},e.getSpans=function(A,F){var $,N=[],V=A.columns,W=A.filteredColumns,z=A.data,t=A.spans,B=A.bottomSplit;if(!W.length||!t)return null;for(var G=A.fixedColumns.right.length,Y=t.filter(function(t){return null==(t=t.$renderFrom)?void 0:t.includes(A.$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<Y.length;e++)!function(t){var e=Y[t].row,i=Y[t].column,n=Y[t].rowspan||1,o=Y[t].colspan||1,r=Y[t].text,s=Y[t].css,a=Y[t].$markCss,l=Y[t].$type,c=F===J.Split.bottom&&A.$renderFrom.endsWith("FixedCols"),d=c?A.$data:z,u=(0,X.findIndex)(W,function(t){return"".concat(t.id)==="".concat(i)}),h=(0,X.findIndex)(d,function(t){return"".concat(t.id)==="".concat(e)});if(u<0||h<0)return;if(c){var I=A.$data[h+n-1];if(!z.find(function(t){return t.id===(null==I?void 0:I.id)}))return}var f=W[u],p=d[h];if(f.hidden)return;var g=void 0,r=(g=(0,X.isDefined)(r)?r.toString():void 0===p[i]?"":(0,Z.toFormat)(p[i],f.type,f.format),g=(f.template||function(t,e,i){return t||0===t?t:""})(g,p,f),(0,K.isHtmlEnable)(A,f)),r=(g="string"==typeof g?(0,q.el)("div.dhx_span-cell-content",{".innerHTML":r?g:null},r?null:g):g,void 0),_=(r="bottomFixedRows"===A.$renderFrom||c?h<(c=d.length-B)?-(0,K.getTotalHeight)(d.slice(h,c)):(0,K.getTotalHeight)(d.slice(c,h)):(0,K.getTotalHeight)(d.slice(0,h))-(F?0:1),0);if("rightFixedCols"===A.$renderFrom)c=W.length-A.fixedColumns.right.length,_=u<c?-(0,K.getTotalWidth)(W.slice(u,c)):(0,K.getTotalWidth)(W.slice(c,u));else for(var v=u-1;0<=v;v--)_+=W[v].$width;var m,y,x,b,w,C,S,E,D,O,k,c=p.$items&&0===u,T=u===W.length-1,M=u+(0,U.getReducedColspan)(V,i,o)===W.length,P=G&&u===W.length-G,H=F===J.Split.bottom&&A.fixedRows.bottom.find(function(t){return t.id===e}),L=B&&h+n>d.length-B,j=G&&u+o===W.length-G,R=f.header[0].text?" dhx_span-cell":" dhx_span-cell dhx_span-cell--title",a=(R=(R=(R=(R=(R=(R=(R=(R+=c?" dhx_span-expand-cell":"")+(a?" ".concat(a):""))+(s?" ".concat(s):""))+(0===h?" dhx_span-first-row":"")+(h+n===d.length?" dhx_grid__span_bottom--last-row":""))+(0===u||P?" dhx_span-first-col":"")+(T||M?" dhx_span-last-col":""))+(1===o?" dhx_span-".concat(f.type||"string","-cell"):" dhx_span-string-cell"))+(f.align?" dhx_align-".concat(f.align):" dhx_".concat(l,"-cell"))+(H?" dhx_grid__span_bottom--all-fixed":""))+(L?" dhx_grid__span_bottom--part-fixed":"")+(j?" dhx_grid__span_right--before-fixed":""),(0,X.findIndex)(V,function(t){return t.id===i})),s=1<o?(0,U.getWidth)(V,o,a):f.$width,P=void 0,l=(1<n?(P=(0,U.getHeight)(d,n,h),F===J.Split.top&&A.$renderFrom.endsWith("FixedCols")&&0<(T=h+n-d.length)&&(M=A.fixedRows.top.length,P+=(0,K.getTotalHeight)(A.$data.slice(M,M+T)))):P=p.$height,null);((null==($=A.$editable)?void 0:$.isSpan)&&A.$editable.row===e&&A.$editable.col===i||"boolean"===f.type&&(A.editable&&(null==($=f.editable)||$)||!A.editable&&f.editable))&&(H=A.topSplit,j=(L=A.fixedColumns.left.length)&&u+o<=L||G&&u>=W.length-G,a=h<(H||0)||h+n>d.length-(B||0),M=H&&h+n<=H||B&&h>=d.length-B,T=u<(L||0)||u+o>W.length-(G||0),"render"===A.$renderFrom||j&&!a||M&&!T)&&(H=A.$height,a=A.$scrollBarWidth,T=A.scroll,m=A.fixedRows,y=A.fixedColumns,t=Y[t].text,x=0,g=tt(p,f,A).toHTML(t),R+=" dhx_span__editable",M||(t=A.$headerLevel*A.headerRowHeight,S=A.$footerLevel*A.footerRowHeight,b=(0,K.getTotalHeight)(m.top),k=(0,K.getTotalHeight)(m.bottom),S=(H=a.yState?H-t-S-a.x-Q.BORDERS:A.$totalHeight)-k<(t=r+P-T.top),(w=r-b<T.top)&&S&&a.xState&&(x=1),r=w?T.top+b-(b&&!j?1:0):r,P=S?H-r-k+T.top-x:w?t-b:P),"render"===A.$renderFrom&&(l=12,y.left.find(function(t){return t.id===i})&&(_=T.left+(0,K.getTotalWidth)(y.left.slice(0,u)),j||(C=(0,K.getTotalWidth)(y.left.slice(u,L)),s=s-T.left>C?s-T.left:C)),m.top.find(function(t){return t.id===e})&&(r=T.top+(0,K.getTotalHeight)(m.top.slice(0,h)),M||(O=(0,K.getTotalHeight)(A.fixedRows.top.slice(h,A.topSplit)),P=0<P?O+P-x:O)),y.right.find(function(t){return t===W[W.indexOf(f)+o-1]})&&(E=W.length,D=et(A),C=(a=E-W.indexOf(f)-o)?(0,K.getTotalWidth)(y.right.slice(0,-a)):(0,K.getTotalWidth)(y.right),S=(0,K.getTotalWidth)(W.slice(u,E-G)),_=D.x>S?_-D.x+S:_,j||(s=D.x<S?s-D.x-1:C-1)),m.bottom.find(function(t){return t===d[d.indexOf(p)+n-1]}))&&(E=d.length,D=et(A),O=(H=E-d.indexOf(p)-n)?(0,K.getTotalHeight)(m.bottom.slice(0,-H)):(0,K.getTotalHeight)(A.fixedRows.bottom),k=(0,K.getTotalHeight)(d.slice(h,E-B)),r=D.y>k?r-D.y+k:r,M||(P=D.y<k?O+P-x-(H?-1:x?0:1):O-(H?-1:1))),L===u+1&&--s,u===W.length-G)&&(_+=1,--s),N.push((0,q.el)("div",{class:R,style:{width:s,height:P,top:r,left:_,zIndex:l},"data-dhx-col-id":i,"data-dhx-id":e,"aria-hidden":"true"},[c?(0,q.el)(".dhx_span-expand-cell-icon",{class:p.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":p.id,role:"button","aria-label":p.$opened?"Collapse group":"Expand group",style:{padding:"0 0 0 ".concat(4+(0,Z.getTreeCellWidthOffset)(p),"px")}}):null,g]))}(e);return N},e.getShifts=function(t){var e=t.filteredColumns.slice(0,t.$positions.xStart),t=t.data.slice(0,t.$positions.yStart);return{x:(0,K.getTotalWidth)(e),y:(0,K.getTotalHeight)(t)}},e.normalizeSpan=function(t,e){var i=void 0===(i=e.topSplit)?0:i,n=void 0===(n=e.bottomSplit)?0:n,o=e.data,r=e.columns,s=(0,Q.getCurrFixedCols)(e,J.Split.left).length,e=(0,Q.getCurrFixedCols)(e,J.Split.right).length,a=t.column,l=t.row,c=t.colspan,d=t.rowspan,u=r.findIndex(function(t){return t.id==a}),h=(0,X.isDefined)(t.text)?"string":r[u].type,f=o.findIndex(function(t){return t.id==l}),d=f+(d?d-1:0),p=[],g=u<s,_=f<i,v=(c=u+(c?c-1:0))>=r.length-e,m=d>=o.length-n;return s<=c&&i<=d&&u<r.length-e&&f<o.length-n&&p.push("render"),g&&p.push("leftFixedCols"),v&&p.push("rightFixedCols"),!_||g||v?_&&!p.includes("render")&&p.push("render"):p.push("topFixedRows"),!m||g||v?m&&!p.includes("render")&&p.push("render"):p.push("bottomFixedRows"),y(y({},t),{$renderFrom:p,$type:h})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChartEvents=void 0,e.ChartEvents={toggleSeries:"toggleSeries",chartMouseMove:"chartMouseMove",chartMouseLeave:"chartMouseLeave",resize:"resize",serieClick:"serieClick",seriaMouseMove:"seriaMouseMove",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)},v=(Object.defineProperty(e,"__esModule",{value:!0}),e.radarScale=e.pieLikeHandlers=e.shiftCoordinates=e.getCoordinates=void 0,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(".concat(e,", ").concat(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".concat(-t,",0A").concat(t,",").concat(t," 0 ").concat(e?0:1," 1 ").concat(t,",0A").concat(t,",").concat(t," 0 ").concat(e?0:1," 1 ").concat(-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!=="".concat(o,"-text")&&t.attrs.id!=="".concat(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!=="".concat(i,"-text")&&t.attrs.id!=="".concat(i,"-connector")||n(t.el)})}},e.radarScale=function(t,e,i){for(var n,a=e<i?e/2:i/2,l=1/t.scales.length,c=.5<l?1:0,d=[],o=(o=a,n="#fafafa",(0,v.sv)("circle",{cx:0,cy:0,r:o,fill:n,stroke:"none",class:"background-circle"})),u=(d.push(o),-.25),r=[],s=t.axis,h="radar-grid ".concat(t.zebra?"zebra":""),f=1;f<s.length;f+=2){var p=a*s[f-1],g=a*s[f],p="".concat(b(p,!0)," ").concat(b(g,!1)),g=(0,v.sv)("path",{d:p,fill:"none",stroke:"black",class:h});r.push(g)}return d.push(r),t.scales.forEach(function(t){var e,i=y(u,a,a),n=i[0],i=i[1],o=u+l,r=y(o,a,a),s=r[0],r=r[1],s="M ".concat(n," ").concat(i," A ").concat(a," ").concat(a," 0 ").concat(c," 1 ").concat(s," ").concat(r," L 0 0"),r=(0,v.sv)("path",{d:s,stroke:"black",fill:"none",class:"radar-scale"}),s=(d.push(r),[8,8]),r=s[0],s=s[1],r=x(u,0)||x(u,.5)?0:u<0||.5<u?-r:r,s=x(u,-.25)||x(u,.25)?0:u<-.25||.25<u?-s:s;n=x(u,-.25)||x(u,.25)?(e=x(u,-.25)?m.verticalTopText:m.verticalBottomText,(0,v.sv)("text",{x:n+s,y:i+r,class:"scale-text"},[e(t)])):(e=-.25<=u&&u<=.25?"start-text scale-text":"end-text scale-text",(0,v.sv)("text",{x:n+s,y:i+r,class:e},[(0,m.verticalCenteredText)(t)])),d.push(n),u=o}),u=-.25,t.realAxis&&(n=t.realAxis.map(function(t,e){var e=y(-.25,a*s[e],a*s[e]),i=e[0],e=e[1];return(0,v.sv)("text",{x:i,y:e,dx:-10,class:"radar-axis-text"},[(0,m.verticalCenteredText)(t.toString())])}),d.push(n)),(0,v.sv)("g",_({transform:"translate(".concat(e/2,", ").concat(i/2,")")},(o=t.attribute,{"aria-label":"x-axis".concat(o?", "+o:"")})),d)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),r=i(17),s=i(3),n=i(63),a=i(13);function l(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||(0,o.uid)(),this._events=i,this._points=[],this._setDefaults(e)}l.prototype.toggle=function(){this.config.active=!this.config.active},l.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]);s<i[0]&&(i[0]=s,i[1]=r[0],i[2]=r[1],i[3]=r[2])}return i},l.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);r<e[0]&&(e[0]=r,e[1]=o[0],e[2]=o[1],e[3]=o[2],e[4]=o[4])}return e},l.prototype.getTooltipType=function(t){return"top"},l.prototype.getTooltipText=function(e){var t,i,n;return(this._data.getItem(e)||"calendarHeatMap"===this.config.type)&&this.config.tooltip?(n=t=void 0,"calendarHeatMap"===this.config.type?(n=this._points.find(function(t){return t[2]===e.toString()}))&&((i=new Date).setTime(n[0]),n=[(0,a.getFormattedDate)(this.config.dateFormat,i),n[1]]):t=this._defaultLocator(this._data.getItem(e)),this.config.tooltipTemplate?this.config.tooltipTemplate(t||n):t?t[0]:"".concat(n[1],", <br>").concat(n[0])):void 0},l.prototype.dataReady=function(t){return this._points=[]},l.prototype.paint=function(t,e){return this._calckFinalPoints(t,e)},l.prototype.getPoints=function(){return this._points},l.prototype.addScale=function(t,e){},l.prototype._getClosestDist=function(t,e,i,n){return(0,s.euclideanDistance)(t,e,i,n)},l.prototype._calckFinalPoints=function(t,e){},l.prototype._setDefaults=function(t){this.config=t},l.prototype._defaultLocator=function(t){return[null,null]},l.prototype._getPointType=function(t,e){return(0,n.getShadeHelper)(t,e)},e.default=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.focusManager=void 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=(0,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}),e.getReducedColspan=e.getHeight=e.getWidth=void 0,e.getWidth=function(t,e,i){return t.slice(i,i+(e||1)).filter(function(t){return!t.hidden}).reduce(function(t,e){return t+e.$width},0)},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.getReducedColspan=function(t,e,i){var n=t.findIndex(function(t){return t.id===e});return t.slice(n,n+(i||1)).filter(function(t){return!t.hidden}).length}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionEvents=void 0,e.SelectionEvents={beforeUnSelect:"beforeunselect",afterUnSelect:"afterunselect",beforeSelect:"beforeselect",afterSelect:"afterselect"}},function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";!function(c){Object.defineProperty(e,"__esModule",{value:!0}),e.ajax=void 0;var d=i(11),u=i(12);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+(o.includes("?")?"&":"?")+t),r=null),window.fetch?("application/json"===l["Content-Type"]&&r&&"object"==typeof r&&(r=JSON.stringify(r)),window.fetch(o,{method:s,body: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=(0,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=(0,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;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(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyManager=void 0;var r=i(20),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"};function n(t){var o=this;this._keysStorage={},this._initHandler=function(t){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,(0,s.isIE)()&&l[e]||e);var e,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)}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?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},e.KeyManager=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageContainerPosition=e.Position=e.RealPosition=void 0,e.RealPosition={left:"left",right:"right",top:"top",bottom:"bottom",center:"center"},e.Position={right:"right",bottom:"bottom",center:"center",left:"left",top:"top"},e.MessageContainerPosition={topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right"}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(28),e),o(i(101),e),o(i(29),e)},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0,i(29)),a=i(46),l=i(0),i=(o=a.Cell,r(c,o),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(){var t,e;return this._isViewLayout?(t=[this.getCell(this.config.activeView).toVDOM()],o.prototype.toVDOM.call(this,t)):(e=[],this._inheritTypes(),this._cells.forEach(function(t){t=t.toVDOM();Array.isArray(t)?e=e.concat(t):e.push(t)}),o.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);var 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._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.progressShow=function(){this._progress=!0,this.paint()},c.prototype.progressHide=function(){this._progress=!1,this.paint()},c.prototype._getCss=function(t){var e,i=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",n=this.config.align?" "+i+"--"+this.config.align:"";return t?i+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:""):(t=this.config.parent?o.prototype._getCss.call(this):"dhx_widget dhx_layout",e=this.config.parent?"":" dhx_layout-cell",t+(this.config.full?e:" "+i)+n)},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=new(t.rows||t.cols||t.views?(t.parent=this._root,c):a.Cell)(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},c.prototype._haveCells=function(t){return t?(t=this._root._all[t])._cells&&0<t._cells.length: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=o.call(this,t,e)||this;return i._root=i.config.parent||i,i._all={},i._parseConfig(),i._progress=!1,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=(0,l.create)({render:function(){return i.toVDOM()}},i),i.mount(t,e)),i}e.Layout=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutEvents=void 0,e.LayoutEvents={beforeShow:"beforeShow",afterShow:"afterShow",beforeHide:"beforeHide",afterHide:"afterHide",beforeResizeStart:"beforeResizeStart",resize:"resize",afterResizeEnd:"afterResizeEnd",beforeAdd:"beforeAdd",afterAdd:"afterAdd",beforeRemove:"beforeRemove",afterRemove:"afterRemove",beforeCollapse:"beforeCollapse",afterCollapse:"afterCollapse",beforeExpand:"beforeExpand",afterExpand:"afterExpand"}},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ScrollView=i.scrollViewConfig=void 0;var s=e(1),o=e(0),v=e(2),e=(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(!this.config.enable||!t.length)return t;(e=void 0===e?"":e)&&(this._uid=e);var n=this.config.enable?[(0,o.el)(".y-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-y-area-".concat(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),[(0,o.el)(".scroll-runner",{_ref:e?"scroll-y-runner-".concat(e):"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),(0,o.el)(".x-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-x-area-".concat(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),[(0,o.el)(".scroll-runner",{_ref:e?"scroll-x-runner-".concat(e):"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return(0,o.el)(".scroll-view-wrapper",[(0,o.el)(".scroll-view",{onscroll:this._handlers.onscroll,_ref:e?"scroll-view-".concat(e):"scroll-view",_hooks:{didInsert:function(){i.update()},didRecycle:function(){i.update()}},style:{width:"calc(100% + ".concat(this._scrollWidth,"px)"),height:"calc(100% + ".concat(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=(0,s.debounce)(function(){i.style.opacity=0,e.style.width="6px",n.style.opacity=0,t.style.height="6px"},this.config.timeout)):this._autoHideFunc=(0,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-".concat(this._uid)]||!t.refs["scroll-x-runner-".concat(this._uid)]&&!t.refs["scroll-y-runner-".concat(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-".concat(this._uid)].el,areaY:t.refs["scroll-y-area-".concat(this._uid)].el,areaX:t.refs["scroll-x-area-".concat(this._uid)].el,runnerY:t.refs["scroll-y-runner-".concat(this._uid)].el,runnerX:t.refs["scroll-x-runner-".concat(this._uid)].el}:void 0},n);function n(t,e){var _=this;this.config=(0,s.extend)({enable:i.scrollViewConfig.enable,autoHide:i.scrollViewConfig.autoHide,timeout:i.scrollViewConfig.timeout,scrollHandler:i.scrollViewConfig.scrollHandler},e=void 0===e?{}:e),this._wheelName=(0,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=(0,v.getScrollbarWidth)(),this._scrollHeight=(0,v.getScrollbarHeight)(),this._handlers=((e={onscroll:function(t){_.config.scrollHandler(t),_.update()}})[this._wheelName]=function(t){var e=!!(0,v.locateNodeByClassName)(t.target,"y-scroll");t.preventDefault();var i,t=40*(0<(t.deltaY||-t.wheelDelta)?1:-1),n=_._getRefs().area;e?(e=n.scrollHeight-_._runnerHeight,i=_._scrollYTop+t,n.scrollTop=i<0?0:e<i?e:i):(e=n.scrollWidth-_._runnerWidth,i=_._scrollXLeft+t,n.scrollLeft=i<0?0:e<i?e:i),_.update()},e.onmousedownRunner=function(t){t.preventDefault();var i=!!(0,v.locateNodeByClassName)(t.target,"y-scroll"),e=_._getRefs(),n=e.area,o=e.runnerY,e=e.runnerX,r=n.getBoundingClientRect(),s=r.top+window.pageYOffset,a=r.bottom+window.pageYOffset,l=n.scrollHeight-_._runnerHeight,c=t.pageY-o.getBoundingClientRect().top-window.pageYOffset,d=r.left+window.pageXOffset,u=r.right+window.pageXOffset,h=n.scrollWidth-_._runnerWidth,f=t.pageX-e.getBoundingClientRect().left-window.pageXOffset,p=function(t){var e;i?(e=t.pageY-c,n.scrollTop=e<=s?0:a<e?l:(e-s)/_._visibleYArea):(e=t.pageX-f,n.scrollLeft=e<=d?0:u<e?h:(e-d)/_._visibleXArea),_.update()},g=function(){document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",g),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",p),document.addEventListener("mouseup",g)},e.onmousedownArea=function(t){var e,i,n,o;(0,v.locateNodeByClassName)(t,"scroll-runner")||(t.preventDefault(),e=!!(0,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())},e.onmouseenter=function(t){var e,i;(0,v.locateNodeByClassName)(t,"scroll-runner")||(i=_._getRefs())&&(t=!!(0,v.locateNodeByClassName)(t.target,"y-scroll"),e=i.areaX,i=i.areaY,t&&0<_._runnerHeight?i.style.background="#eee":!t&&0<_._runnerWidth&&(e.style.background="#eee"))},e.onmouseleave=function(t){var e,i;(0,v.locateNodeByClassName)(t,"scroll-runner")||(i=_._getRefs())&&(t=!!(0,v.locateNodeByClassName)(t.target,"y-scroll"),e=i.areaX,i=i.areaY,t&&0<_._runnerHeight?i.style.background="transparent":!t&&0<_._runnerWidth&&(e.style.background="transparent"))},e)}i.ScrollView=e},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(105),e),o(i(47),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListEvents=void 0,e.ListEvents={click:"click",doubleClick:"doubleclick",focusChange:"focuschange",beforeEditStart:"beforeEditStart",afterEditStart:"afterEditStart",beforeEditEnd:"beforeEditEnd",afterEditEnd:"afterEditEnd",itemRightClick:"itemRightClick",itemMouseOver:"itemMouseOver",contextmenu:"contextmenu"}},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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.Scale=void 0,i(134)),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};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))}l.prototype.addPadding=function(){this._padding=!0},l.prototype.getSize=function(){return this.config.size},l.prototype.scaleReady=function(t){var e=[],i=(this._charts.forEach(function(t){t.getPoints().forEach(function(t){return e.push(t[1])})}),this._axis=new o.AxisCreator(e,this.config).getScale(),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 t,n=this;return this.config.hidden?null:(0===(t=this._axis.steps.map(function(t){return[n._isXDirection?n.point(t)*e:n.point(t)*i,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);return h[l](r,t,e,{targetLine:o,dashed:d,grid:c,targetValue:s,hidden:u})}}},l.prototype._setDefaults=function(t){t.locator&&(this.locator=(0,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 o=-1!==o?o/n:((this._axis.min<0?i.indexOf(0):0)+e*(0,s.log10)(Math.abs(t)))/n,this._isXDirection?o:1-o},e.Scale=l},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),i(3)),i=i(19),i=(o=i.default,r(a,o),a.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=e.locator):(this.yScale=e,this._yLocator=(0,s.locator)(this.config.value))},a.prototype.paint=function(t,e){o.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),t=[i,n,t.id,i,n];return o&&(t[1]+=o[e][1]),t}),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!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),i(3)),i=i(19),i=(o=i.default,r(l,o),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){var n,o,r;return e.$hidden||(n=s._textLocator(e),r=(o=s._valueLocator(e))/s._sum,i=s._colorLocator?s._colorLocator(e):(0,a.getDefaultColor)(i),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)return t=this._defaultLocator(this._data.getItem(t)),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=s(s({},t),e),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=(0,a.locator)(e.value),this._textLocator=(0,a.locator)(e.text),e.color?this._colorLocator=(0,a.locator)(e.color):e.monochrome&&(this._colorLocator=function(t){return(0,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!==o&&o.apply(this,arguments)||this;return t._center=[0,0],t._tooltipData=[],t}e.default=i},function(t,e,i){"use strict";var n,a,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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)},c=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),d=i(3),i=i(34),i=(a=i.default,o(r,a),r.prototype.paint=function(t,e){var i,r=this,n=(a.prototype.paint.call(this,t,e),this.config.pointColor||this.config.color),o="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(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],(0,d.calcPointRef)(t[2],r.id))}).map(function(t,e){var i,n,o;return t&&t.attrs&&(t.attrs=l(l({},t.attrs),(i=t.key,n=r._points,{role:"graphics-symbol","aria-roledescription":"point","aria-label":(o=i?n.find(function(t){return i.includes(t[2])}):o)?"point x=".concat(o[3]," y=").concat(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}))),(0,c.sv)("g",l(l({class:"seria",_key:this.id},(o=this.config,{"aria-label":"chart ".concat(o.value||"")})),{tabindex:0}),s)},r.prototype._getForm=function(t,e,i,n,o){t=t.map(function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])}).join(" ");return(0,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=l(l({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},r);function r(){return null!==a&&a.apply(this,arguments)||this}e.default=i},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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.DataCollection=void 0,i(5)),r=i(80),s=i(83),a=i(15),c=i(12),d=i(11),p=i(1);function u(t,e){var n=this;this._filters={},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?(0,c.dhxError):(0,c.dhxWarning))(t)},0)}),this._reset()}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]))return t=Array.isArray(t)?t.map(function(t,e){return 0!==e&&(i+=1),n._add(t,i)}):this._add(t,i),this._reapplyFilters(!0),t},u.prototype.remove=function(t){var e=this;t instanceof Array?n([],t,!0).map(function(t){e._remove(t)}):(0,p.isId)(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?(0,c.isEqualObj)(e,n)||((0,p.isId)(e.id)&&t!==e.id?((0,c.dhxWarning)("this method doesn't allow change id"),(0,c.isDebug)()):(e.parent&&n.parent&&e.parent!==n.parent&&this.move(t,-1,this,e.parent),(0,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._reapplyFilters(!0)):(0,c.dhxWarning)("item not found")},u.prototype.getIndex=function(e){return(0,p.isId)(e)&&(0,p.isDefined)(this._pull[e])?(0,p.findIndex)(this._order,function(t){return t&&t.id.toString()===e.toString()}):-1},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===e&&(e=this._order.length),(0,p.isNumeric)(t=void 0===t?0:t)&&(0,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,i){var n,o;if(this.isDataLoaded()){if(null!=e&&e.$restore&&(t=this._normalizeFilters(t||this._filters)),!(null!=e&&e.add||(this._order=this._initOrder||this._order,(this._initOrder=null)!=e&&e.$restore)))for(var r in this._filters){var s=this._filters[r];null!=(n=s.config)&&n.permanent?this._applyFilters(s.rule):delete this._filters[r]}if(!t||null!=e&&e.$restore||(o=(null==e?void 0:e.id)||(0,p.uid)(),this._filters[o]={rule:t,config:e||{}}),t&&"function"!=typeof t)if((0,p.isDefined)(t.by))this._applyFilters(t);else for(var r in t)this._applyFilters(t[r]);else this._applyFilters(t);return i||(e=this._getPureFilters(this._filters),this.events.fire(d.DataEvents.filter,[(0,p.isEmptyObj)(e)?null:e])),o}(0,c.dhxWarning)("the method doesn't work with lazyLoad")},u.prototype.resetFilter=function(t,e){var i,n=t||{},o=n.id,n=n.permanent;if((0,p.isEmptyObj)(t))for(var r in this._filters)null!=(i=this._filters[r].config)&&i.permanent||delete this._filters[r];else n?this._filters={}:o&&delete this._filters[o];return this.filter(null,{$restore:!0},e),(0,p.isEmptyObj)(this._getPureFilters(this._filters))},u.prototype.getFilters=function(t){t=this.getRawFilters(t),t=t?this._getPureFilters(t):{};return(0,p.isEmptyObj)(t)?null:t},u.prototype.getRawFilters=function(t){var n=this._filters;return null!=t&&t.permanent&&(n=Object.keys(n).reduce(function(t,e){var i;return null!=(i=n[e].config)&&i.permanent&&(t[e]=n[e]),t},{})),(0,p.isEmptyObj)(n)?null:n},u.prototype.find=function(t){for(var e in this._pull){e=(0,c.findByConf)(this._pull[e],t);if(e)return e}return null},u.prototype.findAll=function(t){var e,i=[];for(e in this._pull){var n=(0,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,[void 0,"sort",t])):(0,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._reapplyFilters(!0),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=(0,p.uid)()),i||this.isDataLoaded()?(n=this.getItem(t))?(n.id=e,(0,p.extend)(this._pull[t],n),this._pull[e]=this._pull[t],i||this._onChange("update",e,this._pull[e]),delete this._pull[t]):(0,c.dhxWarning)("item not found"):(0,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){e>this._order.length-1&&(e=this._order.length-1);for(var n=this._order.slice(t=t<0?0: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=(0,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))||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;if(this._range&&(t=this._range[0]+t,e=-1===e||t+(n=Math.abs(e-t))>this._range[1]?this._range[1]:t+n),!e||0===t&&(-1===e||e===i.length))return i;if(t>=i.length)return[];(-1===e||e>i.length)&&(e=i.length);n=i.slice(t,e);return 0!==n.filter(function(t){return t.$empty}).length&&this.events.fire(d.DataEvents.dataRequest,[t,e]),n},u.prototype._add=function(t,e){if(this.isDataLoaded())return e=this._addCore(t,e),this._onChange("add",t.id,t),this.events.fire(d.DataEvents.afterAdd,[t]),e;(0,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(0,c.dhxWarning)("the method doesn't work with lazyLoad")},u.prototype._copy=function(t,e,i,n,o){var r;if(this.isDataLoaded())return this.exists(t)?(r=(0,p.uid)(),o&&(e=-1===e?-1:e+o),i?i instanceof u||!n?i.exists(t)?(i.add(l(l({},(0,c.copyWithoutInner)(this.getItem(t))),{id:r}),e),r):(i.add((0,c.copyWithoutInner)(this.getItem(t)),e),t):void i.add((0,c.copyWithoutInner)(this.getItem(t)),e):(this.add(l(l({},(0,c.copyWithoutInner)(this.getItem(t))),{id:r}),e),r)):null;(0,c.dhxWarning)("the method doesn't work with lazyLoad")},u.prototype._move=function(t,e,i,n,o,r){if(this.isDataLoaded())return o&&(e=-1===e?-1:e+o),i&&i!==this&&this.exists(t)?(o=(0,p.copy)(this.getItem(t),!0),r&&(o.id=r),(!r&&i.exists(t)||i.exists(r))&&(o.id=(0,p.uid)()),n&&(o.parent=n),i.add(o,e),this.remove(t),o.id):this.getIndex(t)===e?null:(r=this._order.splice(this.getIndex(t),1)[0],-1===e&&(e=this._order.length),this._order.splice(e,0,r),this.events.fire(d.DataEvents.change,[t,"update",this.getItem(t)]),t);(0,c.dhxWarning)("the method doesn't work with lazyLoad")},u.prototype._addCore=function(t,e){var i;return(t=this.config.init?this.config.init(t):t).id=null!=(i=t.id)?i:(0,p.uid)(),this._pull[t.id]&&(0,c.dhxError)("Item ".concat(t.id," already exist")),this._initOrder&&!(0,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){for(var e=this._order.length,i=0,n=t=this.config.prep?this.config.prep(t):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=(0,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._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(t){var e;t&&(e="function"!=typeof t?this._getRuleCallback(t):t,t=this._order.filter(function(t){return e(t)}),this._initOrder||(this._initOrder=this._order),this._order=t)},u.prototype._reapplyFilters=function(t){void 0===t&&(t=!1);var e=this.getFilters({permanent:!0});e&&this.filter(e,{$restore:!0,add:!0},!0),t&&this._sorter&&this._applySorters()},u.prototype._getRuleCallback=function(e){if((0,p.isDefined)(e.by)&&(0,p.isDefined)(e.match))return e.compare?function(t){return e.compare(t[e.by],e.match,t,e.multi)}:function(t){return t[e.by]==e.match}},u.prototype._getPureFilters=function(n){return Object.keys(n).reduce(function(t,e){var i;return null!=(i=n[e].config)&&i.$local||(t[e]=n[e]),t},{})},u.prototype._normalizeFilters=function(t){var e,i=[];for(e in t){var n=t[e].rule;if("function"!=typeof n)if((0,p.isDefined)(n.by))i.push(this._getRuleCallback(n));else for(var o in n)i.push(this._getRuleCallback(n[o]));else i.push(n)}return l({},i)},e.DataCollection=u},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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.dataDriversPro=e.dataDrivers=void 0,i(39)),r=i(40),i=i(81);e.dataDrivers={json:o.JsonDriver,csv:r.CsvDriver},e.dataDriversPro=n(n({},e.dataDrivers),{xml:i.XMLDriver})},function(t,e,i){"use strict";function n(){}Object.defineProperty(e,"__esModule",{value:!0}),e.JsonDriver=void 0,n.prototype.toJsonArray=function(t){return this.getRows(t)},n.prototype.serialize=function(t){return t},n.prototype.getFields=function(t){return t},n.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.CsvDriver=void 0,r.prototype.getFields=function(t,e){for(var i=new RegExp('(?<!")'.concat(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,i=this,t=this.getRows(t),n=this.config.names;return this.config.skipHeader&&(e=t.splice(0,this.config.skipHeader),this.config.nameByHeader)&&(n=e[0].trim().split(this.config.columnDelimiter)),t.map(function(t){return i.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:"".concat(t).concat(n[e].replaceAll(/[,;"]/gi,function(t){return'"'.concat(t,'"')})).concat(i===n.length-1?"":o.config.columnDelimiter)},"");return n.items?"".concat(t).concat(t?"\n":"").concat(e).concat(o._serialize(n.items)):"".concat(t).concat(t?o.config.rowDelimiter:"").concat(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,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.getTreeCell=void 0,o(i(42),e),o(i(124),e),o(i(4),e),o(i(21),e),i(16));Object.defineProperty(e,"getTreeCell",{enumerable:!0,get:function(){return r.getTreeCell}}),o(i(9),e),o(i(7),e)},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),p=this&&this.__assign||function(){return(p=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.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i},_=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.Grid=void 0,i(0)),a=i(5),c=i(2),v=i(1),d=i(25),u=i(8),h=i(6),f=i(86),m=i(9),g=i(21),y=i(7),x=i(91),b=i(4),w=i(10),C=i(13),S=i(118),E=i(122),D=i(123),O=i(20),k=i(16),i=(o=u.View,r(T,o),T.prototype.destructor=function(){this._destructed=!0,this._destroyContent(),this.keyManager&&this.keyManager.destructor(),this.events&&this.events.clear(),this._events&&this._events.clear(),this.export=this.content=this.selection=null,this._activeFilters=this._filterData=this._scroll=this._touch=this._htmlEvents=this._hiddenFilters=null,this.unmount()},T.prototype.setColumns=function(t){var e=this;this._destroyContent(),this.config.columns=t,this._parseColumns(!0),this._adjustColumns(),this._checkFilters(),this._checkMarks(),this.paint(),this.config.keyNavigation&&(0,l.awaitRedraw)().then(function(){e._initHotKey(!0),e.paint()})},T.prototype.addRowCss=function(t,e){var t=this.data.getItem(t),i=t.$css||"";i.match(new RegExp(e,"g"))||(t.$css=i+" ".concat(e),this.paint())},T.prototype.removeRowCss=function(t,e){t=this.data.getItem(t),e=t.$css?t.$css.replace(e,""):"";t.$css=e,this.paint()},T.prototype.addCellCss=function(t,e,i){var n,o=this.getColumn(e),e=this.config.spans?this.getSpan(t,e):null;(e||o)&&((n=e?e.css:o.$cellCss[t])?(n=n.match(new RegExp(i,"g"))?"":" ".concat(i),e?e.css+=n:o.$cellCss[t]+=n):this.data.getItem(t)&&(e?e.css="".concat(i," "):o.$cellCss[t]="".concat(i," ")),this.paint())},T.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]=""))},T.prototype.showColumn=function(t){var e,t=this.getColumn(t);t&&t.hidden&&this.events.fire(b.GridEvents.beforeColumnShow,[t])&&(t.hidden=!1,this.config.$totalWidth+=t.$width,(e=this._hiddenFilters&&this._hiddenFilters[t.id])&&(this._activeFilters[t.id]=e,delete this._hiddenFilters[t.id],this._checkFilters(),this._checkSelectFilterValue()),this.paint(),this.events.fire(b.GridEvents.afterColumnShow,[t]))},T.prototype.hideColumn=function(t){var e,t=this.getColumn(t);t&&!t.hidden&&this.events.fire(b.GridEvents.beforeColumnHide,[t])&&(t.hidden=!0,this.config.$totalWidth-=t.$width,(e=this._activeFilters&&this._activeFilters[t.id])&&(this._hiddenFilters||(this._hiddenFilters={}),this._hiddenFilters[t.id]=e,delete this._activeFilters[t.id],this._checkFilters()),this.paint(),this.events.fire(b.GridEvents.afterColumnHide,[t]))},T.prototype.isColumnHidden=function(t){t=this.getColumn(t);if(t)return!!t.hidden},T.prototype.showRow=function(t){var e;(0,v.isDefined)(t)&&(t=t.toString(),e=this.data.getItem(t))&&e.hidden&&this.events.fire(b.GridEvents.beforeRowShow,[e])&&(this.data.update(t,{hidden:!1}),this._checkFilters(!0),this.paint(),this.events.fire(b.GridEvents.afterRowShow,[e]))},T.prototype.hideRow=function(t){var e;(0,v.isDefined)(t)&&(t=t.toString(),e=this.data.getItem(t))&&this.events.fire(b.GridEvents.beforeRowHide,[e])&&(this.data.update(t,{hidden:!0}),this._checkFilters(!0),this._checkSelectFilterValue(),this.paint(),this.events.fire(b.GridEvents.afterRowHide,[e]))},T.prototype.isRowHidden=function(t){return(0,v.isDefined)(t)&&(t=this.data.getItem(t.toString()))?!!t.hidden:void 0},T.prototype.getScrollState=function(){return{x:this._scroll.left,y:this._scroll.top}},T.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()},T.prototype.scrollTo=function(e,i){var t=this.selection.getCell(),n=this.config.columns.filter(function(t){return!t.hidden}),o=(0,v.findIndex)(n,function(t){return t.id==i}),r=t?t.column:this.config.columns[0],t=(0,v.findIndex)(n,function(t){return t.id==r.id}),s=this.config.leftSplit?(0,y.getTotalWidth)(n.slice(0,this.config.leftSplit)):0,t=(0,y.getTotalWidth)(n.slice(0,o))-(o-t<0?s:0),s=this.data.getRawData(0,-1),a=(0,v.findIndex)(s,function(t){return t.id==e}),l=(0,y.getTotalHeight)(s.slice(0,a)),c=this.getScrollState(),d=this.config.$width+c.x,u=this.config.$height+c.y-this.config.headerRowHeight*this.config.$headerLevel,h=l-c.y-s[a].$height,f=t-c.x-n[o].$width,l=l+2*s[a].$height+18-u,s=t+2*n[o].$width+18-d;this.scroll((0<f&&s<0?0:f<0?f:s)+c.x,(0<h&&l<0?0:h<0?h:l)+c.y)},T.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({rows:this.config.data,cols:n,totalCols:i,adjust: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()},T.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=(0,v.findIndex)(t,function(t){return t.id==(o?o.column:i)}),s=(0,v.findIndex)(n,function(t){return t.id==(o?o.row:e)});return{x:(0,y.getTotalWidth)(t.slice(0,r)),y:(0,y.getTotalHeight)(n.slice(0,s)),height:null!=o&&o.rowspan?(0,g.getHeight)(n,o.rowspan,s):n[s]?n[s].$height:0,width:null!=o&&o.colspan?(0,g.getWidth)(this.config.columns,o.colspan,(0,v.findIndex)(this.config.columns,function(t){return t.id===o.column})):t[r]?t[r].$width:0}},T.prototype.getColumn=function(t){for(var e,i=0,n=null==(e=this.config)?void 0:e.columns;i<n.length;i++){var o=n[i];if(o.id==t)return o}},T.prototype.addSpan=function(e){this.config.spans=this.config.spans||[];var t=(0,v.findIndex)(this.config.spans,function(t){return"".concat(t.row)==="".concat(e.row)&&"".concat(t.column)==="".concat(e.column)});0<=t?this.config.spans[t]=e:(this.config.spans.push((0,k.normalizeSpan)(e,this.config)),this._checkMarks(),this.paint())},T.prototype.getSpan=function(t,e){var i,r,s,a=this;if(this.config.spans)return r=this.data.getIndex(t.toString()),s=this.config.columns.findIndex(function(t){return t.id===e}),t=(0,v.findIndex)(this.config.spans,function(e){var t=a.data.getIndex(e.row.toString()),i=a.config.columns.findIndex(function(t){return t.id===e.column}),n=t,t=e.rowspan?t+e.rowspan:t+1,o=i,i=e.colspan?i+e.colspan:i+1;return n<=r&&r<t&&o<=s&&s<i}),null==(i=this.config)?void 0:i.spans[t]},T.prototype.removeSpan=function(e,i){var t;this.config.spans&&(t=(0,v.findIndex)(this.config.spans,function(t){return"".concat(t.row)=="".concat(e)&&"".concat(t.column)=="".concat(i)}),this.config.spans.splice(t,1),this.paint())},T.prototype.editCell=function(t,e,i){var n,o,r=this.data.getItem(t),s=this.getColumn(e);r&&s?(n=s.editorType,o=this.getSpan(r.id,s.id),i||("date"===s.type&&(i="datePicker"),"boolean"===s.type&&(i="checkbox"),n&&(i=n),(0,v.isDefined)(null==o?void 0:o.text)&&(i=this.config.autoHeight?"textarea":"input")),!this.events.fire(b.GridEvents.beforeEditStart,[r,s,i])||null!=(n=this.config.$editable)&&n.editor||this.config.$editable&&this.config.$editable.row===t&&this.config.$editable.col===e&&this.config.$editable.editorType===i||(this.config.$editable={row:r.id,col:s.id,isSpan:!!o,editorType:i},this.selection.config.disabled||this.selection.setCell(t.toString(),e.toString()),this.paint(),this.events.fire(b.GridEvents.afterEditStart,[r,s,i]))):(0,h.dhxWarning)("item not found")},T.prototype.editEnd=function(t){this.config.$editable&&this.config.$editable.editor&&this.config.$editable.editor.endEdit(t)},T.prototype.getSortingState=function(){return{dir:this._sortDir,by:this._sortBy}},T.prototype.getHeaderFilter=function(e){var i,n=this,t=this.getColumn(e);if(t)return i=null,t.header.forEach(function(t){t.content&&(i=n.content[t.content].element[e])}),i},T.prototype.edit=function(t,e,i){this.editCell(t,e,i)},T.prototype.paint=function(){var t=this.config.hotkeys?Object.keys(this.config.hotkeys).length:0;!this.keyManager||this.keyManager.getKeyStorageLength()-t||this._initHotKey(!0),o.prototype.paint.call(this)},T.prototype._createView=function(){var i=this;return(0,l.create)({render:function(t,e){return i._destructed?(0,l.el)("div"):(0,w.render)(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},T.prototype._parseColumns=function(t){(0,m.normalizeColumns)(this.config,t=void 0===t?!1:t);t=this.config.columns.filter(function(t){return!t.hidden});(0,m.countColumns)(this.config,t)},T.prototype._parseData=function(){this.config.data=this.data.map(function(t){return t}),this.config.data=this._prepareData(this.data),this._detectColsTypes(),this._checkMarks(),this.data.filter(function(t){return!t.hidden},{$local:!0,permanent:!0},!0),this._checkFilters(),this._render()},T.prototype._createCollection=function(t){this.data=new h.DataCollection({prep:t},this.events)},T.prototype._getRowIndex=function(t){return this.data.getIndex(t)},T.prototype._setEventHandlers=function(){function r(t){var e=t.source,i=t.target,n=s(t,["source","target"]);null!=e&&e.length&&e.map(function(t){return g.data.exists(t)&&g.data.update(t,n)}),g.data.exists(i)&&g.data.update(i,n)}var g=this;this.data.events.on(h.DataEvents.load,function(){g.data.filter(function(t){return t},{$local:!0},!0),g._parseData(),g.config.data instanceof h.DataCollection?(0,l.awaitRedraw)().then(function(){return g._normalizeSpans()}):g._normalizeSpans()}),this.data.events.on(h.DataEvents.change,function(e,t,i){if("setPage"===t)(0,l.awaitRedraw)().then(function(){var t=g.config.columns.find(function(t){return!0!==t.hidden});g.scrollTo(g.data.getId(i[0]).toString(),t.id.toString()),g._render()});else{if("sort"===t?(i.dir?g._sortDir=i.dir:g._sortBy===i.by?g._sortDir="asc"===g._sortDir?"desc":"asc":g._sortDir="asc",g._sortBy=i.by):"add"===t||"update"===t||"remove"===t?((0,v.isId)(e)&&"remove"===t&&(t=g.selection.getCells().find(function(t){return t.row.id===e}))&&g.selection.removeCell(t.row.id,t.column.id),g.config.data=g._prepareData(g.data)):((0,h.isTreeCollection)(g.data)&&(g.config.data=g._prepareData(g.data)),g._adjustColumns()),(0,v.isId)(e)&&(g._checkFilters(),g._checkSelectFilterValue()),g._detectColsTypes(),g._removeMarks(),g._checkMarks(),g.config.autoEmptyRow&&(!g._activeFilters||(0,v.isEmptyObj)(g._activeFilters))){t=g.data.find({by:"$emptyRow",match:!0});if(t){if(t.id===e)return;g.data.move(t.id,g.data.getLength()-1)}else g._addEmptyRow()}g._render()}}),this.data.events.on(h.DataEvents.filter,function(t){t||g.data.getRawFilters({permanent:!0})||g.data.filter(function(t){return!t.hidden},{$local:!0,permanent:!0},!0),!t||(0,h.isOnlyPermanentFilters)(t)?(g._filterData=g.data.map(function(t){return t})||[],g._setUniqueData(),g._clearFilterValue()):g._checkFilters(),g.paint()}),this.data.events.on(h.DataEvents.removeAll,function(){g._hiddenFilters={},g.config.columns.map(function(e){e.header.map(function(t){!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(e.$uniqueData=[])})}),(0,v.isEmptyObj)(g._activeFilters)||g.data.resetFilter(),g._clearFilterValue(!0)}),this.events.on(h.DragEvents.beforeDrag,function(t,e){return g.data.getItem(t.start)?g.events.fire(b.GridEvents.beforeRowDrag,[t,e]):"column"===g.config.dragItem||"both"===g.config.dragItem?g.events.fire(b.GridEvents.beforeColumnDrag,[t,e]):void 0}),this.events.on(h.DragEvents.dragStart,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$dragtarget:!0}),g.data.getItem(o)?(g.events.fire(b.GridEvents.dragRowStart,[t,e]),g._autoScroll("vertical")):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||(g.events.fire(b.GridEvents.dragColumnStart,[t,e]),g._autoScroll("horizontal"))}),this.events.on(h.DragEvents.dragIn,function(t,e){g.data.getItem(t.start)?g.events.fire(b.GridEvents.dragRowIn,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.dragColumnIn,[t,e])}),this.events.on(h.DragEvents.dragOut,function(t,e){g.data.getItem(t.start)?g.events.fire(b.GridEvents.dragRowOut,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.dragColumnOut,[t,e])}),this.events.on(h.DragEvents.canDrop,function(t,e){var i=t.source,n=t.target,o=t.dragItem;delete t.dragItem,r({source:i,target:n,$drophere:!0}),"row"===o?g.events.fire(b.GridEvents.canRowDrop,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.canColumnDrop,[t,e])}),this.events.on(h.DragEvents.cancelDrop,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$drophere:void 0,$dragtarget:void 0}),g.data.getItem(o)?g.events.fire(b.GridEvents.cancelRowDrop,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.cancelColumnDrop,[t,e])}),this.events.on(h.DragEvents.beforeDrop,function(t,e){return"row"!==g.config.dragItem||"both"!==g.config.dragMode&&"target"!==g.config.dragMode?"column"===g.config.dragItem||"both"===g.config.dragItem?g.events.fire(b.GridEvents.beforeColumnDrop,[t,e]):void 0:g.events.fire(b.GridEvents.beforeRowDrop,[t,e])}),this.events.on(h.DragEvents.afterDrop,function(e,t){var i,n;if(g.data.getItem(e.start)){var o=e.source;if(!o.some(function(t){return t==e.target})){for(var r=g.data.getItem(e.start),s=0,a=g.config.columns;s<a.length;s++){var l=a[s];void 0===r[l.id]&&g.data.update(r.id,((i={})[l.id]=null,i),!0)}var c=g.data.getInitialData(),d=null==c?void 0:c.findIndex(function(t){return t.id==e.start}),u=null==c?void 0:c.findIndex(function(t){return t.id==e.target});if(-1<d&&-1<u)if(1<(null==(n=e.source)?void 0:n.length)){for(var h=[],f=0,p=o;f<p.length;f++)!function(e){var t=null==c?void 0:c.findIndex(function(t){return t.id==e}),t=null==c?void 0:c.splice(t,1)[0];h.push(t)}(p[f]);0<(u=null==c?void 0:c.findIndex(function(t){return t.id==e.target}))&&++u,null!=c&&c.splice.apply(c,_([u,0],h,!1))}else null!=c&&c.splice(u,0,null==c?void 0:c.splice(d,1)[0]);g.config.data=g._prepareData(c||g.data.map(function(t){return t})),g.data.parse(g.config.data),g._checkFilters(),g.paint(),g.events.fire(b.GridEvents.afterRowDrop,[e,t])}}else"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.afterColumnDrop,[e,t])}),this.events.on(h.DragEvents.afterDrag,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$dragtarget:void 0}),g.data.getItem(o)?g.events.fire(b.GridEvents.afterRowDrag,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.afterColumnDrag,[t,e]),g.config.data=g._prepareData(g.data instanceof Array?g.data.map(function(t){return t}):g.data.getInitialData()||g.data),g.data.parse(g.config.data)}),this.events.on(b.GridEvents.cellMouseDown,function(t,e,i){i.targetTouches?(g._touch.timer=setTimeout(function(){g._dragStart(i)},g._touch.duration),g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+i.timeStamp.toFixed()&&((!1!==e.editable&&g.config.editable||e.editable)&&g.editCell(t.id,e.id,e.editorType),i.preventDefault(),g.events.fire(b.GridEvents.cellDblClick,[t,e,i])),g._touch.timeStamp=null):g._touch.timeStamp=+i.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration)):g._dragStart(i)}),this._events.on(b.GridSystemEvents.cellTouchMove,function(t,e,i){g._touch.start&&i.preventDefault(),g._clearTouchTimer()}),this._events.on(b.GridSystemEvents.cellTouchEnd,function(){g._touch.start=!1,g._clearTouchTimer()}),this.events.on(b.GridEvents.filterChange,function(e,t,o,i){var n,r,s,a,l;g.events.fire(b.GridEvents.beforeFilter,[e,t])&&(g.config.autoEmptyRow&&(r=g.data.find({by:"$emptyRow",match:!0}))&&g.data.remove(r.id),g._activeFilters||(g._activeFilters={}),s=(r=g.getColumn(t)).header.filter(function(t){return t.content===o&&void 0!==t.customFilter})[0],"comboFilter"===o&&void 0!==e||"comboFilter"!==o&&""!==e?(a=(0,m.getEditorOptions)(r),"combobox"!==r.editorType&&"select"!==r.editorType&&"multiselect"!==r.editorType||!a||(e=Array.isArray(e)?e.map(function(e){var t;return(null==(t=a.find(function(t){return"string"==typeof t?t===e:t.value===e}))?void 0:t.id)||e}):null!=(n=null==(n=a.find(function(t){return"string"==typeof t?t===e:t.value===e}))?void 0:n.id)?n:e),g._activeFilters[t]={by:t,match:e,compare:null!=(n=null==s?void 0:s.customFilter)?n:(l=g.getColumn(t),function(t,e,i,n){return g.content[o].match({val:t,match:e,obj:i,multi:n,col:l})}),multi:"multiselect"===(null==r?void 0:r.editorType)}):delete g._activeFilters[t],i||g.data.filter(g._activeFilters))}),this.events.on(b.GridEvents.scroll,function(t){g._scroll={top:t.y,left:t.x},g.editEnd(),g.paint()}),this.events.on(b.GridEvents.cellDblClick,function(t,e,i){(0,c.locateNodeByClassName)(i,"dhx_boolean-cell")||t.hasOwnProperty("$groupName")||(!1!==e.editable&&g.config.editable||e.editable)&&g.editCell(t.id,e.id,e.editorType)}),this.events.on(b.GridEvents.afterEditEnd,function(t,e,i){var n,o;null!=(o=g.config.$editable)&&o.editor&&(g.config.$editable.col!==i.id||g.config.$editable.row!==e.id)||(o=g.config.$editable?(n=g.config.$editable.row,g.config.$editable.col):(n=e.id,i.id),e=g.getSpan(n,o),(0,v.isDefined)(null==e?void 0:e.text)&&void 0!==t?e.text=t.toString():(delete(i=g.data.getItem(n)).$emptyRow,void 0!==t&&g.data.update(n,p(p({},i),((e={})[o]=t,e)))),g.config.$editable=null,g.paint())}),this.events.on(b.GridEvents.headerCellMouseDown,function(t,e){var i=e.target.getAttribute("dhx_resized");i&&g.events.fire(b.GridEvents.beforeResizeStart,[t,e])&&(0,E.startResize)(g,i.toString(),e,function(){g.paint(),g.config.$resizing=null,g.events.fire(b.GridEvents.afterResizeEnd,[t,e])}),e.targetTouches&&(g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),g.events.fire(b.GridEvents.headerCellDblClick,[t,e])),g._touch.timeStamp=null):g._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration))}),this.events.on(b.GridEvents.footerCellDblClick,function(t,e){e.targetTouches&&(g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),g.events.fire(b.GridEvents.footerCellDblClick,[t,e])),g._touch.timeStamp=null):g._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration))}),this.events.on(b.GridEvents.resize,function(){g._parseColumns(),g._setUniqueData(!0)}),this.events.on(b.GridEvents.afterResizeEnd,function(e){var t;g.config.columns=null==(t=g.config.columns)?void 0:t.map(function(t){return t.id==e.id&&(t.width=e.$width),t}),g._parseColumns(),g._setUniqueData(!0)})},T.prototype._addEmptyRow=function(){var t=this.data.getId(this.data.getLength()-1),t=this.data.getItem(t),e=this.config.columns.filter(function(t){return!t.hidden});(0,y.isRowEmpty)(t)||this.data.add(e.reduce(function(t,e){return t[e.id]="",t},{$emptyRow:!0}))},T.prototype._sort=function(i,t,e){var n=this;t=t||(this._sortBy===i&&"asc"===this._sortDir?"desc":"asc");this.data.sort({by:i,dir:t,as:null!=e?e:function(t){var e=n.getColumn(i);return t&&"date"===e.type?("string"==typeof t?(0,C.stringToDate)(t,e.format):t).getTime():t?"".concat(t):""}}),this.events.fire(b.GridEvents.afterSort,[this.getColumn(i),t])},T.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},T.prototype._checkFilters=function(t){void 0===t&&(t=!1),(0,v.isEmptyObj)(this._activeFilters)?(t&&this.data.resetFilter(),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData()):(t=this.data.getRawFilters({permanent:!0}),this.data.filter(t,{$restore:!0},!0),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData(),this.data.filter(null,{$restore:!0},!0),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData(!0))},T.prototype._setUniqueData=function(n){var o=this;void 0===n&&(n=!1),this._filterData&&this.config.columns.forEach(function(e){e.header.forEach(function(t){var i;!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(t=e.header.some(function(t){return null==(t=t.filterConfig)?void 0:t.multiselection}),n&&t)||(t=(0,m.getUnique)(o._filterData,e.id,t),i=(0,m.getEditorOptions)(e),"combobox"!==e.editorType&&"select"!==e.editorType&&"multiselect"!==e.editorType||!i||(t=t.map(function(e){var t=i.find(function(t){return"string"==typeof t?e===t:e===t.id});return t&&"string"!=typeof t?t.value:e})),t="string"!==e.type?Array.from(new Set(t.map(function(t){return(0,m.toFormat)(t,e.type,e.format)}))):t,n?e.$activeFilterData=t:(e.$uniqueData=t,e.$activeFilterData&&delete e.$activeFilterData))})})},T.prototype._checkSelectFilterValue=function(){var t,e=null==(t=this.content)?void 0:t.selectFilter;if(e)for(var i in e.value){var n=this.getColumn(i),o=e.value[i];n.hidden||!o||n.$uniqueData.includes(o)||e.element[i].clear()}},T.prototype._clearFilterValue=function(i){var n=this;void 0===i&&(i=!1),["selectFilter","inputFilter"].map(function(t){var e;return null==(e=n.content)?void 0:e[t]}).filter(function(t){return t}).forEach(function(t){for(var e in t.value)!t.value[e]||!i&&n.getColumn(e).hidden||t.element[e].clear(!0)})},T.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({rows:t,cols:e,totalCols: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)})},T.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})},T.prototype._adjustColumnsWidth=function(t){var e=t.rows,i=t.cols,t=t.adjust,t=void 0===t?this.config.adjust:t,n={};if("header"===t||!0===t){var o=i.filter(function(t){return t.header});if(d=(0,m.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+((0,y.isSortable)(this.config,this.getColumn(l))?36:16),a))}if("footer"===t||!0===t){var d,o=i.filter(function(t){return t.footer});if(d=(0,m.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"===t||!0===t)&&(d=(0,m.getMaxColsWidth)(e,i,{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},T.prototype._prepareColumnData=function(t,e){for(var i,n=[],o=0;o<t.length;o++){for(var r=[],s=0;s<(null==(l=t[o])?void 0:l[e].length);s++){var a,l={};null!=(a=null==(a=t[o])?void 0:a[e][s])&&a.text?(l[t[o].id]=(null==(a=null==(a=t[o])?void 0:a[e][s])?void 0:a.text)||"",r.push(l)):null!=(a=null==(a=t[o])?void 0:a[e][s])&&a.content&&("function"==typeof(a=null==(a=this.content)?void 0:a[null==(a=null==(a=t[o])?void 0:a[e][s])?void 0:a.content]).calculate?l[t[o].id]=(null==a?void 0:a.toHtml(this.getColumn(t[o].id),this.config))||"":l[t[o].id]="",r.push(l))}for(var c=0;c<r.length;c++)for(var d=0,u=Object.entries(r[c]);d<u.length;d++){var h=u[d],f=h[0],h=h[1];n[c]=p({},n[c])||{},n[c]=Object.assign(n[c],((i={})[f]=h,i))}}return n},T.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))return e=(e=(0,c.locateNode)(t,"data-dhx-id"))&&e.getAttribute("data-dhx-id"),t.targetTouches&&(this._touch.start=!0),h.dragManager.onMouseDown(t,[e],[this._getRowGhost([e])])}},T.prototype._getRowGhost=function(t){var e=this._container||(0,c.toNode)(this._uid),t=t.map(function(t){return e.querySelector('.dhx_grid-row[data-dhx-id="'.concat(t,'"]'))}),i=document.createElement("div");return t.forEach(function(t){return t&&i.appendChild(t.cloneNode(!0))}),i},T.prototype._initHooks=function(){var i=this;return{didMount:function(){var t,e;i._canDataParse(!0)&&(i._container||(t=i.getRootView().node.parent.el,t=(0,w.getElementSizes)(t),e=null==(e=i.scrollView)?void 0:e.config.enable,(0,w.applyAutoWidth)(i.config,t,!0,!1,e)),i.data.parse(i.config.data))}}},T.prototype._canDataParse=function(t){var e;return void 0===t&&(t=!1),!!(null!=(e=this.config.data)&&e.length&&this.config.data instanceof Array&&this.config.columns)&&(this.config.autoWidth&&this.config.autoHeight?t:!t)},T.prototype._init=function(){this.events=new a.EventSystem(this),this._events=new a.EventSystem(this),this._attachDataCollection(),this.export=new f.Exporter("grid",this.version,this),this._setEventHandlers()},T.prototype._attachDataCollection=function(){var e=this;this.config.data instanceof h.DataCollection?(this.data=this.config.data,this.data.config.collapsed=this.config.collapsed,this.config.data=this.data.serialize()):this._createCollection(function(t){return t.spans&&(e.config.spans=t.spans,t=t.data),t})},T.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)}),n=e.join(" "),i=a.getSpan(t.id,o.id),o.$cellCss[t.id]=n,i)&&(i.rowspan||i.colspan&&i.column===o.id)&&i.$markCss!==n&&(i.$markCss=n)}(i[e])},T.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=(e.forEach(function(t){null!=t&&""!==t&&i.push(parseFloat(t))}),(0,v.getMinArrayNumber)(i)),n=(0,v.getMaxArrayNumber)(i);return o.max&&n===parseFloat(t)?o.max:!(!o.min||e!==parseFloat(t))&&o.min}))})},T.prototype._removeMarks=function(){var t;this.config.columns.forEach(function(t){t.mark&&(t.$cellCss={})}),null!=(t=this.config.spans)&&t.forEach(function(t){t.$markCss&&delete t.$markCss})},T.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"))})},T.prototype._destroyContent=function(){for(var t in this.content)"comboFilter"===t&&this.content[t].destroy()},T.prototype._render=function(){this.paint()},T.prototype._initHotKey=function(t){void 0===t&&(t=!1);var e=(0,D.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])},T.prototype._normalizeConfig=function(e){return Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),e},T.prototype._normalizeSpans=function(){var t,e=this;this.config.spans=null==(t=this.config.spans)?void 0:t.map(function(t){return(0,k.normalizeSpan)(t,e.config)})},T.prototype._autoScroll=function(n){var o,r,s,a,l,t,e,i,c,d,u,h,f=null!=(e=this.scrollView)&&e.config.enable?null==(e=this.getRootNode())?void 0:e.querySelector(".scroll-view"):null==(e=this.getRootNode())?void 0:e.querySelector(".dhx_grid-body");f&&(o=null,e=f.getBoundingClientRect(),r=e.top,s=e.bottom,a=e.left,l=e.right,t=e.height,e=e.width,i=40,c=100,d=30,u=function(t){"up"===t||"down"===t?f.scrollBy(0,"up"===t?-i:i):f.scrollBy("left"===t?-i:i,0),o=setTimeout(function(){u(t)},c)},h=function(t){var e=t.clientX,i=t.clientY;switch(n){case"horizontal":l-d<e&&e<l&&r<i&&i<s?o||u("right"):a<e&&e<a+d&&r<i&&i<s?o||u("left"):o&&(clearTimeout(o),o=null);break;case"vertical":s-d<i&&i<s&&a<e&&e<l?o||u("down"):r<i&&i<r+d&&a<e&&e<l?o||u("up"):o&&(clearTimeout(o),o=null)}},e<f.scrollWidth||t<f.scrollHeight)&&(document.addEventListener("pointermove",h),document.addEventListener("pointerup",function(){document.removeEventListener("pointermove",h),o&&clearTimeout(o)},{once:!0}))},T);function T(t,e){function n(e,i,t){var n,o,r,s;e&&i&&(0,y.isTooltip)(a.config,i)&&(n=void 0,"combobox"===i.editorType||"select"===i.editorType?n=(s=(0,m.getEditorOptions)(i,e).find(function(t){return(t instanceof Object?t.id.toString():t)===(null==(t=e[i.id])?void 0:t.toString())}))instanceof Object?s.value:s:"multiselect"===i.editorType&&null!=(o=null==(s=e[i.id])?void 0:s.toString().split(", "))&&o.length&&(n=(0,m.getEditorOptions)(i,e).filter(function(t){return o.includes(t instanceof Object?t.id.toString():t)}).map(function(t){return t instanceof Object?t.value:t}).join(", ")),r=(0,m.toFormat)(n||e[i.id],i.type,i.format),s=function(){return!!r||"boolean"==typeof r},i.tooltipTemplate?r=i.tooltipTemplate(r,e,i)||null:s()&&i.template&&(r=i.template(r,e,i)),s())&&(0,y.showTooltip)({value:r,node:t,htmlEnable:(0,y.isHtmlEnable)(a.config,i)})}function i(t,e){void 0===e&&(e="header");var i,n=(t=t.target).getAttribute("data-dhx-text-id"),o=a.getColumn(t.getAttribute("data-dhx-id"));n&&o&&(i=null==(i=o[e])?void 0:i.find(function(t){return t.id===n}),(0,y.isContentTooltip)(a.config,o,i,e))&&(e=(null==i?void 0:i.content)&&["avg","sum","max","min","count"].includes(i.content)?null==(e=a.content[i.content])?void 0:e.toHtml(o,p(p({},a.config),{datacollection:a.data})):null==i?void 0:i.text,null!=(e="function"==typeof(null==i?void 0:i.tooltipTemplate)?i.tooltipTemplate(e,i,o):e))&&e.toString().length&&(0,y.showTooltip)({value:e,node:t,htmlEnable:(0,y.isHtmlEnable)(a.config,o)})}var a=o.call(this,t,e)||this;a._touch={duration:350,dblDuration:300,timer:null,start:!1},a._destructed=!1,a.version="8.2.5",a.config=(0,v.extend)({rowHeight:40,headerRowHeight:40,footerRowHeight:40,keyNavigation:!0,sortable:!0,columns:[],data:[],tooltip:!0,rootParent:"string"==typeof t&&t||a._uid,headerSort:!0},a._normalizeConfig(e)),a.content=(0,S.getContent)(),a._scroll={top:0,left:0},a.config.autoWidth=a.config.autoWidth||a.config.fitToContainer,a.config.adjust=a.config.adjust||a.config.columnsAutoWidth,a.config.editable=a.config.editable||a.config.editing,a.config.leftSplit=a.config.leftSplit||a.config.splitAt,a.config.sortable&&a.config.headerSort||(a.config.sortable=!1),a.config.columns.forEach(function(t){t.format=t.format||t.dateFormat});return a._htmlEvents={onclick:(0,c.eventHandler)(function(t){return(0,c.locate)(t)},{"dhx_grid-header-cell--sortable":function(t,e){var i,n=t.target.getAttribute("dhx_resized"),o=a.getColumn(e);o&&(0,y.isSortable)(a.config,o)&&!n&&a.events.fire(b.GridEvents.beforeSort,[o,a._sortDir?"asc":"desc"])&&(t=(i=null==(n=(0,c.locateNodeByClassName)(t,"dhx_grid-header-cell"))?void 0:n.querySelector(".dhx_grid-header-cell-text_content").innerHTML)?o.header.find(function(t){return t.text===i}):null,n="asc"===a._sortDir&&a._sortBy===e?"desc":"asc",a._sort(e,n,null==t?void 0:t.sortAs))},"dhx_grid-expand-cell":function(t,e){t.target.classList.contains("dhx_grid-expand-cell-icon")&&a.events.fire(b.GridEvents.expand,[e])},"dhx_span-expand-cell":function(t,e){t.target.classList.contains("dhx_span-expand-cell-icon")&&a.events.fire(b.GridEvents.expand,[e])}}),onscroll:function(t){a.events.fire(b.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=a.data.getItem(e[2].getAttribute("data-dhx-id")),e=a.getColumn(e[1].getAttribute("data-dhx-col-id"));n(i,e,t.target)},".dhx_grid-cell:not(.dhx_boolean-cell)":function(t){var e=a.data.getItem(t.composedPath()[1].getAttribute("data-dhx-id")),i=a.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=a.data.getItem(e[2].getAttribute("data-dhx-id")),e=a.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 t=t.composedPath(),e=a.data.getItem(t[3].getAttribute("data-dhx-id")),i=a.getColumn(t[2].getAttribute("data-dhx-col-id"));n(e,i,t[2])},".dhx_span-cell:not(.dhx_grid-header-cell)":function(t){var e,t=t.target,i=a.data.getItem(t.getAttribute("data-dhx-id")),n=a.getColumn(t.getAttribute("data-dhx-col-id")),o=a.getSpan(i.id,n.id);i&&o&&(0,y.isTooltip)(a.config,o)&&(e=o.text||(0,m.toFormat)(i[n.id],n.type,n.format),o.tooltipTemplate?e=o.tooltipTemplate(e,o):n.template&&(e=n.template(e,i,n)),e)&&(0,y.showTooltip)({value:e,node:t,htmlEnable:!0})},".dhx_grid-header-cell":function(t){return i(t,"header")},".dhx_grid-footer-cell":function(t){return i(t,"footer")}}},(a.config.dragMode||a.config.dragItem)&&(h.dragManager.setItem(a._uid,a),a.config.dragItem||(a.config.dragItem="row"),a.config.dragMode||(a.config.dragMode="both")),a._init(),a.config.columns&&a._parseColumns(!0),a._canDataParse()&&a.data.parse(a.config.data),a.selection=new x.Selection(a,{disabled:!a.config.selection},a.events,a._uid),a.mount(t,a._createView()),(0,l.awaitRedraw)().then(function(){a.config.keyNavigation&&(a.keyManager=new d.KeyManager(function(t,e){return!(e!==a._uid||!a.events.fire(b.GridEvents.beforeKeyDown,[t])||(a.events.fire(b.GridEvents.afterKeyDown,[t]),0))}),a._initHotKey(),O.focusManager.setFocusId(a._uid))}),e.autoEmptyRow&&0===a.data.getLength()&&(a._addEmptyRow(),a.paint()),a}e.Grid=i},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(87),e),o(i(88),e),o(i(89),e),o(i(90),e),o(i(26),e)},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=void 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 n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=this&&this.__assign||function(){return(u=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)},h=(Object.defineProperty(e,"__esModule",{value:!0}),e.Cell=void 0,i(1)),f=i(0),s=i(8),l=i(29),c=i(100),a=i(5),d=i(41),p=i(28),i=(o=s.View,r(g,o),g.prototype.paint=function(){var t;this.isVisible()&&((t=this.getRootView())?t.redraw():null!=(t=this._parent)&&t.paint())},g.prototype.isVisible=function(){var t;return this._parent?!((t=null==(t=this._parent.config)?void 0:t.activeView)&&t!==this.id||this.config.hidden)&&(!this._parent||this._parent.isVisible()):!(!this._container||!this._container.tagName)||Boolean(this.getRootNode())},g.prototype.hide=function(){this.events.fire(l.LayoutEvents.beforeHide,[this.id])&&(this.config.hidden=!0,this._resetCellsSize(),this._parent&&this._parent.paint&&this._parent.paint(),this.events.fire(l.LayoutEvents.afterHide,[this.id]))},g.prototype.show=function(){var t=this;this.events.fire(l.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 d.Grid&&this._ui.config.keyNavigation&&(0,f.awaitRedraw)().then(function(){t._ui.setColumns(t._ui.config.columns),t.paint()}),this.events.fire(l.LayoutEvents.afterShow,[this.id]))},g.prototype.expand=function(){this.events.fire(l.LayoutEvents.beforeExpand,[this.id])&&(this.config.collapsed=!1,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(l.LayoutEvents.afterExpand,[this.id]),this.paint())},g.prototype.collapse=function(){this.events.fire(l.LayoutEvents.beforeCollapse,[this.id])&&(this.config.collapsed=!0,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(l.LayoutEvents.afterCollapse,[this.id]),this.paint())},g.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse()},g.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())},g.prototype.getParent=function(){return this._parent},g.prototype.destructor=function(){var t;this.events&&this.events.clear(),window.removeEventListener("resize",this._afterWindowResized),"function"==typeof(null==(t=this.getWidget())?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()},g.prototype.getWidget=function(){return this._ui},g.prototype.getCellView=function(){return this._parent&&this._parent.getRefs(this._uid)},g.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 d.Grid&&this._ui.config.keyNavigation&&(0,f.awaitRedraw)().then(function(){i._ui.setColumns(i._ui.config.columns),i.paint()}),this._ui},g.prototype.attachHTML=function(t){this.config.html=t,this.paint()},g.prototype.detach=function(){this._stopProgressDefault=!1,this._ui=this.config.html=null,this.paint()},g.prototype.progressShow=function(){this.config.progressDefault&&(this._stopProgressDefault=!1),this._progress=!0,this.paint()},g.prototype.progressHide=function(){this.config.progressDefault&&(this._stopProgressDefault=!0),this._progress=!1,this.paint()},g.prototype.isVisibleProgress=function(){return this._progress},g.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this.config.$fieldset,n=this._calculateStyle(),o=(0,h.isDefined)(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:"".concat(this.config.padding,"px")}:"",r=this.config.full||this.config.html?n:u(u({},n),o),t=(this.config.html||(e=this._ui?[e=(e=this._ui.getRootView()).render?(0,f.inject)(e):e]:t||null),this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?(0,f.el)(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),u(u({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[(0,f.el)("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null),s={};if(this.config.on)for(var a in this.config.on)s["on"+a]=this.config.on[a];var l="",c=this.config.cols||this.config.rows;if(this.config.type&&c)switch(this.config.type){case"line":l=" dhx_layout-line";break;case"wide":l=" dhx_layout-wide";break;case"space":l=" dhx_layout-space"}var d=(0,f.el)("div",u(u(((c={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,c["data-cell-id"]=null!=(d=this.config.id)?d:null,c),s),{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?l:""),style:i?n:r}),[i?(0,f.el)("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:o,disabled:this.config.$disabled},[(0,f.el)("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--".concat(this.config.labelAlignment||"left")},this.config.label),(0,f.el)(".dhx_layout-cell-content",{class:this._getCss(!1)},[e])]):this.config.full?[(0,f.el)("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to ".concat(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&&(0,f.el)("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&(0,f.el)(".dhx_layout-cell-header__image-wrapper",[(0,f.el)("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&(0,f.el)("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?(0,f.el)("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):(0,f.el)("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:(0,f.el)("div",{style:u(u({},o),{height:"calc(100% - ".concat(this.config.headerHeight||37,"px)")}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?l:"")},this.config.html?[(0,f.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:(0,f.el)(".dhx_layout-cell-content",{style:o},[(0,f.el)(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])],this._checkProgress()&&this._getProgressBar()]);return t?[d,t]:d}},g.prototype._getProgressBar=function(){return(0,f.el)("span",{class:"dhx_progress-bar"},[(0,f.sv)("svg",{viewBox:"25 25 50 50",class:"dhx_spinner"},[(0,f.sv)("circle",{cx:"50",cy:"50",r:"20",class:"path"})])])},g.prototype._getCss=function(t){return"dhx_layout-cell"},g.prototype._initHandlers=function(){function i(t){var e,i,n;t.targetTouches&&t.preventDefault(),3!==t.which&&(s.isActive&&a(t),r.events.fire(l.LayoutEvents.beforeResizeStart,[r.id]))&&(document.body.classList.add("dhx_no-select--resize"),t=r.getCellView(),n=(e=r._getNextCell()).getCellView(),i=r._getResizerView(),t=t.el.getBoundingClientRect(),i=i.el.getBoundingClientRect(),n=n.el.getBoundingClientRect(),s.xLayout=r._isXDirection(),s.left=t.left+window.pageXOffset,s.top=t.top+window.pageYOffset,s.collapsedSize=r._getCollapsedSize(r,e),s.margin=(0,c.getMarginSize)(r.getParent().config),s.range=(0,c.getBlockRange)(t,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?i.width:i.height)}var r=this,s=(window.addEventListener("resize",this._afterWindowResized),{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}),n=function(t,e){var i,n,o;void 0===e&&(e={x:0,y:0}),s.isActive&&(i=s.xLayout,n=t.targetTouches?t.targetTouches[0].clientX:t.clientX+e.x,t=t.targetTouches?t.targetTouches[0].clientY:t.clientY+e.y,e=i?"width":"height",(n=i?n-s.range.min+window.pageXOffset:t-s.range.min+window.pageYOffset)<0?n=s.resizerLength/2:n>s.size&&(n=s.size-s.resizerLength),o=(t=function(t){return parseInt(null==(t=r.config[t])?void 0:t.toString())})(i?"maxWidth":"maxHeight"),t=t(i?"minWidth":"minHeight"),!o||n<o)&&(!t||t<n)&&(r.config[e]=n-s.resizerLength/2+"px",s.nextCell.config[e]=s.size-n-s.resizerLength/2+"px",s.nextCell._getAnyFlexCell()&&(s.nextCell._getAnyFlexCell().config[e]=void 0),r.paint(),r.events.fire(l.LayoutEvents.resize,[r.id]))},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(l.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()}}},g.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)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},g.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"},g.prototype._isLastCell=function(){var t=this._parent;return t&&t._cells.indexOf(this)===t._cells.length-1},g.prototype._getNextCell=function(){var t=this._parent,e=t._cells.indexOf(this),t=!this._isLastCell()&&t._cells[e+1];return!!t&&(t.config.hidden||t.config.collapsed?t._getNextCell():t)},g.prototype._getAnyFlexCell=function(e){var i=this,t=(void 0===e&&(e=!1),this._parent),n=this._isXDirection()?"$autoWidth":"$autoHeight",t=null==(t=null==t?void 0:t._cells)?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]},g.prototype._getResizerView=function(){return this._parent.getRefs("resizer_"+this._uid)},g.prototype._isXDirection=function(){return this._parent&&this._parent._xLayout},g.prototype._checkProgress=function(){return this instanceof p.Layout?this.isVisibleProgress():(this._calculateProgressState(),(this._progress||this._checkAutoProgress())&&!this.config.collapsed&&!this.config.hidden&&!this._parent.isVisibleProgress())},g.prototype._checkAutoProgress=function(){var t,e;return!this._stopProgressDefault&&(e=(t=this.config).html,t.progressDefault)&&!this._ui&&!e},g.prototype._calculateProgressState=function(){var t,e;this._stopProgressDefault||(t=(e=this.config).html,!(e=e.progressDefault)||this._ui||t||(this._progress=!0),e&&(this._ui||t)&&(this._progress=!1))},g.prototype._calculateStyle=function(){var t,e,i,n,o,r,s,a,l,c,d,u,h,f,p,g,_,v=this.config;if(v)return i=e=!(t={}),isNaN(Number(v.width))||(v.width=v.width+"px"),isNaN(Number(v.height))||(v.height=v.height+"px"),isNaN(Number(v.minWidth))||(v.minWidth=v.minWidth+"px"),isNaN(Number(v.minHeight))||(v.minHeight=v.minHeight+"px"),isNaN(Number(v.maxWidth))||(v.maxWidth=v.maxWidth+"px"),isNaN(Number(v.maxHeight))||(v.maxHeight=v.maxHeight+"px"),"content"===v.width&&(e=!0),"content"===v.height&&(i=!0),n=v.width,o=v.height,r=v.cols,s=v.rows,a=v.minWidth,l=v.minHeight,c=v.maxWidth,d=v.maxHeight,p=v.gravity,u=v.collapsed,f=v.$fixed,h=-1===Math.sign(p)?0:p,"boolean"==typeof p&&(h=p?1:0),g="boolean"==typeof p?!p:-1===Math.sign(p),this._isXDirection()?(f||n||void 0===p&&(a||c))&&(g=!0):(f||o||void 0===p&&(l||d))&&(g=!0),f=this._checkFullSizeCell(),p=g&&!f?0:!f&&h||1,g=this._isXDirection()?"x":"y",void 0===a||u||(t.minWidth=a),void 0===l||u||(t.minHeight=l),void 0!==c&&(t.maxWidth=c),void 0!==d&&(t.maxHeight=d),void 0===this._parent&&(g=!0),f||void 0===n||"content"===n?!0===g?t.width="100%":"x"===g&&(e?t.flex="0 0 auto":(_=this._isXDirection()?"1px":"auto",t.flex="".concat(p," ").concat(r||s?"0 ".concat(_):"1 auto"))):t.width=n,f||void 0===o||"content"===o?!0===g?t.height="100%":"y"===g&&(i?t.flex="0 0 auto":(_=this._isXDirection()?"auto":"1px",t.flex="".concat(p," ").concat(r||s?"0 ".concat(_):"1 auto"))):t.height=o,!0===g&&void 0===v.width&&void 0===v.height&&(t.flex="".concat(p," 1 auto")),u&&(this._isXDirection()?t.width="auto":t.height="auto",t.flex="0 0 auto"),t},g.prototype._resizedWindow=function(){var t;void 0===this._isLastFlexCell?this._isLastFlexCell=(null==(t=this._getAnyFlexCell(!0))?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())},g.prototype._resetCellsSize=function(){var e=this,t=this._parent._cells.filter(function(t){return t!==e&&!t.config.hidden&&!t.config.collapsed}),i=this._isXDirection(),n=i?"$autoWidth":"$autoHeight",o=i?"width":"height";t.forEach(function(t){t.config[n]&&(t.config[o]=void 0)})},g.prototype._checkFullSizeCell=function(){var t,e=this;return!!this._parent&&(t=this._isXDirection()?"$autoWidth":"$autoHeight",!!this.config[t])&&!!(t=this._parent._cells.filter(function(t){return t!==e&&!t.config.hidden})).length&&t.every(function(t){return t.config.collapsed})},g);function g(t,e){var i=o.call(this,t,e)||this;i._disabled=[];return 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||(0,h.uid)(),i._progress=!!i.config.progressDefault,i._stopProgressDefault=!1,i._isXDirection()&&!e.width&&(e.$autoWidth=!0),i._isXDirection()||e.height||(e.$autoHeight=!0),i}e.Cell=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopupEvents=void 0,e.PopupEvents={beforeHide:"beforeHide",beforeShow:"beforeShow",afterHide:"afterHide",afterShow:"afterShow",click:"click"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SliderEvents=void 0,e.SliderEvents={beforeChange:"beforeChange",change:"change",focus:"focus",blur:"blur",keydown:"keydown",mousedown:"mousedown",mouseup:"mouseup"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimepickerEvents=void 0,e.TimepickerEvents={beforeChange:"beforeChange",change:"change",beforeApply:"beforeApply",afterApply:"afterApply",beforeClose:"beforeClose",afterClose:"afterClose",apply:"apply",close:"close",save:"save"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CalendarEvents=void 0,e.CalendarEvents={change:"change",beforeChange:"beforechange",modeChange:"modeChange",monthSelected:"monthSelected",yearSelected:"yearSelected",cancelClick:"cancelClick",dateMouseOver:"dateMouseOver",dateHover:"dateHover"}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(52),e),o(i(116),e),o(i(58),e)},function(t,f,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),p=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},o=(Object.defineProperty(f,"__esModule",{value:!0}),f.Combobox=f.$template=void 0,e(1)),g=e(0),r=e(5),_=e(2),s=e(111),a=e(8),l=e(6),c=e(27),d=e(53),u=e(31),h=e(115),v=e(56),m=e(22),y=e(57),x=e(58);f.$template=function(t){return t.icon?(0,g.el)("div.dhx_combobox-options-wrapper",[(0,g.el)("span",{class:"".concat(t.icon," dhx_combobox-options__icon")}),(0,g.el)("span",{class:"dhx_combobox-options__value"},t.value)]):t.src?(0,g.el)("div.dhx_combobox-options-wrapper",[(0,g.el)("img",{class:"dhx_combobox-options__image",alt:t.value,src:t.src}),(0,g.el)("span",{class:"dhx_combobox-options__value"},t.value)]):(0,g.el)("span",{class:"dhx_combobox-options__value"},t.value)},b=a.View,i(w,b),w.prototype.focus=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.focus()},w.prototype.blur=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.blur(),this.popup.hide()},w.prototype.enable=function(){this.config.disabled=!1,this.paint()},w.prototype.disable=function(){this.config.disabled=!0,this.paint()},w.prototype.isDisabled=function(){return this.config.disabled},w.prototype.clear=function(){this.list.selection.remove(),this._state.value="",this._filter(),this.paint()},w.prototype.getValue=function(t){var e=this.list.selection.getId();return t?(0,o.wrapBox)(e):Array.isArray(e)?e.join(","):e},w.prototype.setValue=function(t,e){return this._setValue(t,e)},w.prototype.addOption=function(t,e){var i;void 0===e&&(e=!0),t&&("string"==typeof t?i=this.data.add({value:t}):"object"==typeof t&&(i=this.data.add(t)),t=this.config.multiselection&&e?p(p([],this.list.selection.getId(),!0),[i],!1):i,this.setValue(t))},w.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()},w.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()},w.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(null,e),this.config.multiselection?(t="number"==typeof(t="string"==typeof t?t.split(","):t)?[t]:t).forEach(function(t){i.list.selection.add(t,!1,!1,e)}):(t=(0,o.unwrapBox)(t),this.list.selection.add(t,!1,!1,e),(t=this.data.getItem(t))&&(this._state.value=this._getItemText(t))),this.paint()},w.prototype._createLayout=function(){var t=this.list=new d.List(null,{$template:f.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data}),e=this._layout=new c.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)},w.prototype._initHandlers=function(){var i=this;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={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",theme:t.target})},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!==s.KEY_CODES.DOWN_ARROW||i._showOptions(),i.popup.isVisible()&&(t.which===s.KEY_CODES.RIGHT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(d.MOVE_DOWN),t.preventDefault()),t.which===s.KEY_CODES.LEFT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(d.MOVE_UP),t.preventDefault()),t.which===s.KEY_CODES.DOWN_ARROW&&(i.list.moveFocus(d.MOVE_DOWN),t.preventDefault()),t.which===s.KEY_CODES.UP_ARROW&&(i.list.moveFocus(d.MOVE_UP),t.preventDefault()),t.which===s.KEY_CODES.ESC&&i._hideOptions(),t.which===s.KEY_CODES.ENTER)&&(i.data.getLength()?(e=i.list.getFocus(),e=i.config.multiselection?p(p([],i.list.selection.getId(),!0),[e],!1):e,i.setValue(e)):i.config.newOptions&&i.addOption(i._state.value,!0),i.config.multiselection?i._updatePopup():i.data.getLength()&&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===s.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){var e;if(!i.config.disabled){if(i.focus(),t.target.classList.contains("dhx_combobox__action-remove"))return e=null==(e=i.data.getItem((0,_.locate)(t)))?void 0:e.id,(0,o.isId)(e)?(i.list.selection.remove(e),i._changePopupPosition(),void i.paint()):void 0;t.target.classList.contains("dhx_combobox__action-clear-all")?(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),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.fire(x.ComboboxEvents.focus,[])},onblur:function(){var t;return null==(t=i.events)?void 0:t.fire(x.ComboboxEvents.blur,[])}}},w.prototype._initEvents=function(){var i=this;this.data.events.on(l.DataEvents.load,function(){i.config.value&&i._setValue(i.config.value,!0)}),this.data.events.on(l.DataEvents.afterAdd,function(){i.config.multiselection?i._changePopupPosition():i._hideOptions()}),this.list.events.on(d.ListEvents.click,function(){i.config.multiselection||i._hideOptions(),i._changePopupPosition()}),this.list.selection.events.on(m.SelectionEvents.beforeSelect,function(t){t=i.config.multiselection?p(p([],i.getValue(i.config.multiselection),!0),[t],!1):t;return i.events.fire(x.ComboboxEvents.beforeChange,[t])}),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.beforeUnSelect,function(e){var t=i.config.multiselection?i.getValue(i.config.multiselection).filter(function(t){return t!=e}):e;return i.events.fire(x.ComboboxEvents.beforeChange,[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(u.PopupEvents.beforeShow,function(){if(!i.popup.isVisible()&&!i._isPopupConfiqureted)return i._configurePopup(),!1}),this.config.readOnly&&this.popup.events.on(u.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)})})},w.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))},w.prototype._configurePopup=function(){this._isPopupConfiqureted=!0;var t=this.getRootView();return!!(t&&t.refs&&t.refs.holder)&&(this.popup.isVisible()||this._updatePopup(),!0)},w.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=""),(0,g.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())},w.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):(0,o.isEqualString)(n._state.value,n._getItemText(t))}),this.config.multiselection?this.list.setFocus(this.data.getId(0)):(t=this.data.getIndex(this.list.selection.getId()),this.list.setFocus(this.data.getId(-1<t?t: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=(0,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=(0,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()))))},w.prototype._findBest=function(e){var i=this,t=this.data.find(function(t){return(0,o.isEqualString)(e,i._getItemText(t))});t&&this.list.selection.getId()!==t.id&&(this.list.setFocus(t.id),this.paint())},w.prototype._exsistId=function(t){var e=this;return t instanceof Array?t.every(function(t){return e.data.exists(t)}):this.data.exists(t)},w.prototype._draw=function(){var t,e,i,n,o,r,s,a,l,c,d,u,h;return this.config?(l=(a=this.config).multiselection,t=a.labelPosition,e=a.hiddenLabel,i=a.required,n=a.disabled,o=a.css,r=a.helpMessage,s=a.readOnly,a=a.placeholder,l=l?null:this.data.getItem(this.list.selection.getId()),c=!this.list.selection.getId()||"object"==typeof this.list.selection.getId()&&0===this.list.selection.getId().length,d=(0,_.getLabelStyle)(this.config),u=(h=!this.config.multiselection&&(this.config.readOnly||!this.popup.isVisible()))&&this.config.htmlEnable&&this.config.template,h=h&&((null==l?void 0:l.icon)||(null==l?void 0:l.src))&&!this.config.template,(0,g.el)("div",{"data-dhx-widget-id":this._uid,onkeydown:this._handlers.onkeydown,onkeyup:this._handlers.onkeyup,class:"dhx_widget dhx_combobox"+("left"===t?" dhx_combobox--label-inline":"")+(e?" dhx_combobox--sr_only":"")+(i?" dhx_combobox--required":"")+(n?" dhx_combobox--disabled":"")+(o?" ".concat(o):"")},[d?(0,g.el)("label.dhx_label.dhx_combobox__label",{style:d.style,class:r?"dhx_label--with-help":"",onclick:this._handlers.oninputclick},r?[(d.label||i)&&(0,g.el)("span.dhx_label__holder",d.label),(0,g.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,id:"dhx_label__help_".concat(this._uid)})]:d.label):null,(0,g.el)("div.dhx_combobox-input-box"+(n?".dhx_combobox-input-box--disabled":"")+(s?".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"},[(0,g.el)("div.dhx_combobox-input__icon",{onclick:this._handlers.toggleIcon},[(0,g.el)("span"+(this.popup.isVisible()?".dxi.dxi-menu-up":".dxi.dxi-menu-down"))]),(0,g.el)("div.dhx_combobox-input-list-wrapper",{onclick:this._handlers.oninputclick},[(0,g.el)("ul.dhx_combobox-input-list",p(p([],this._drawSelectedItems(),!0),[(0,g.el)("li.dhx_combobox-input-list__item.dhx_combobox-input-list__item--input",[(u||h)&&l?(0,g.el)("div.dhx_combobox-input__template",{".innerHTML":u?this.config.template(l):null},h?[(0,f.$template)(l)]:null):null,(0,g.el)("input.dhx_combobox-input",{style:{opacity:u||h?0:null},oninput:this._handlers.oninput,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_ref:"input",_key:this._uid,type:"text",placeHolder:c&&a?a:void 0,value:s&&l?this._getItemText(l):this._state.value,readOnly:s||n,required:i,"aria-label":s?"Select value":"Type or select value","aria-describedby":r?"dhx_label__help_".concat(this._uid):null,"aria-expanded":!0})])],!1))])])])):(0,g.el)("div")},w.prototype._drawSelectedItems=function(){var t,e,n=this;return this.config.multiselection?this.config.itemsCount?(t=this.list.selection.getId().length)?[(0,g.el)("li.dhx_combobox-input-list__item.dhx_combobox-tag",[(0,g.el)("span.dhx_combobox-tag__value",(t=t,"function"==typeof(e=this.config.itemsCount)?e(t):t+" "+v.default.selectedItems)),(0,g.el)("button.dhx_button.dhx_combobox-tag__action.dhx_combobox__action-clear-all",{"aria-label":"clear all"},[(0,g.el)("span.dhx_button__icon.dxi.dxi-close-circle")])])]:[]:this.list.selection.getId().map(function(t){var e,i=n.data.getItem(t);return i?(e=n._drawImageOrIcon(i),(0,g.el)("li.dhx_combobox-input-list__item.dhx_combobox-tag",{"data-dhx-id":t},p(p([],e||!n.config.template?[e,(0,g.el)("span.dhx_combobox-tag__value",n._getItemText(i))]:[(0,g.el)("span.dhx_combobox-tag__template",{".innerHTML":n.config.template(i)})],!0),[(0,g.el)("button.dhx_button.dhx_button--icon.dhx_combobox-tag__action.dhx_combobox__action-remove",{type:"button","aria-label":"remove"},[(0,g.el)("span.dhx_button__icon.dxi.dxi-close-circle")])],!1))):null}):[]},w.prototype._drawImageOrIcon=function(t){return t.src?(0,g.el)("img.dhx_combobox-tag__image",{src:t.src,alt:""}):t.icon?(0,g.el)("span.dhx_combobox-tag__icon",{class:t.icon}):null},w.prototype._getItemText=function(t){return t?t.value:null},w.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)))?t:"",this.paint()},w.prototype._changePopupPosition=function(){var t=this;this.config.multiselection&&(0,g.awaitRedraw)().then(function(){t._updatePopup()})},w.prototype._updatePopup=function(){var t=this.getRootView().refs.holder.el,e=(this.popup.getContainer().style.width=t.offsetWidth+"px",this.data.getLength()*(this.config.itemHeight||36)),e=(this.config.listHeight=parseFloat(this.config.listHeight),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",theme:this.getRootNode()})};var b,e=w;function w(t,e){var i=b.call(this,t,(0,o.extend)({listHeight:224,itemHeight:36,disabled:!1,readOnly:!1,newOptions:!1,htmlEnable:!0},e))||this,e=(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 r.EventSystem(i),i.data=new l.DataCollection({}),i.data.parse(i.config.data)):i.config.data?(i.data=i.config.data,i.events=new r.EventSystem(i),i.events.context=i):(i.events=new r.EventSystem(i),i.data=new l.DataCollection({})),i.popup=new u.Popup,i.popup.events.on(u.PopupEvents.afterShow,function(){i.paint()}),i.popup.events.on(u.PopupEvents.afterHide,function(){i.config.multiselection&&(i._state.value=""),i.paint()}),i.popup.events.on(u.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 h.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(),(0,g.create)({render:function(){return i._draw()},hooks:{didRedraw:function(){i.popup.isVisible()&&(i.focus(),i._configurePopup())}}}));return i.mount(t,e),i}f.Combobox=e},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(114),e),o(i(55),e),o(i(32),e)},function(t,r,e){"use strict";var n,d,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.List=r.MOVE_DOWN=r.MOVE_UP=void 0,e(1)),h=e(6),f=e(0),p=e(25),g=e(22),o=e(8),_=e(55),v=e(2),m=e(32),l=e(112),e=(r.MOVE_UP=1,r.MOVE_DOWN=2,d=o.View,i(c,d),c.prototype._didRedraw=function(t){},c.prototype._dblClick=function(t){var e=(0,v.locate)(t);e&&(e=this.data.getItem(e).id,this.config.editable&&this.editItem(e),this.events.fire(m.ListEvents.doubleClick,[e,t]))},c.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},c.prototype._dragStart=function(t){var e=this,i=(this._touch.start=!0,[]),n=(0,v.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,!0)),"string"==typeof n&&(n=[n]),this.config.dragMode&&!this._edited?h.dragManager.onMouseDown(t,n||[o],i):null},c.prototype.disableSelection=function(){this.selection.disable()},c.prototype.enableSelection=function(){this.selection.enable()},c.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(m.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(m.ListEvents.afterEditStart,[t])):this._edited=null},c.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())},c.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},c.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.events.fire(m.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.scrollTo(t),this.paint())},c.prototype.getFocus=function(){return this._focus},c.prototype.destructor=function(){this._destructed=!0,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()},c.prototype.scrollTo=function(t){var e=this.getRootView();e&&e.node&&e.node.el&&void 0!==t&&(e=this.getRootNode(),this._scrollTo(t,e))},c.prototype._scrollTo=function(t,e){var i,n,o;e&&-1!==(t=this.data.getIndex(t))&&(o=this.config.virtual,i=Math.floor(t/e.children.length)||0,i=e.children[t-e.children.length*i],o||i)&&(n=o?parseInt(this.config.itemHeight):i.clientHeight,(o=o?t*n:i.offsetTop)>=e.scrollTop+e.clientHeight-n?e.scrollTo(0,o-e.clientHeight+n):o<e.scrollTop&&e.scrollTo(0,o))},c.prototype._renderItem=function(t,e){var i,n,o,r=this.config.itemHeight;return t.$empty?(0,f.el)("li",{class:"dhx_list-item",style:{height:r}}):(i="",this.config.template&&(i=this.config.template(t)),t.html&&(i=t.html),n=t.id==this._focus&&this.config.keyNavigation,t.id==this._edited?(0,l.getEditor)(t,this).toHTML():(o=this.data.getMetaMap(t),o=s(s(s(s({},this._events),{class:"dhx_list-item"+(o&&o.selected?" dhx_list-item--selected":"")+(n?" dhx_list-item--focus":"")+(o&&o.drop&&!this._edited?" dhx_list-item--drophere":"")+(o&&o.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:r},_key:t.id}),this.getItemAriaAttrs(this,t)),{tabindex:n?0:-1}),i?i===t.html||this.config.htmlEnable?(o[".innerHTML"]=i,(0,f.el)("li",o)):(0,f.el)("li",o,i):this.config.$template?(0,f.el)("li",o,[this.config.$template(t)]):(r=t.text||t.value,this.config.htmlEnable?o[".innerHTML"]=r:o.class+=" dhx_list-item--text",this.config.htmlEnable?(0,f.el)("li",o):(0,f.el)("li",o,r))))},c.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(a([(0,f.el)(".div",{style:{height:t[2]+"px"}})],e,!0),[(0,f.el)(".div",{style:{height:t[3]+"px"}})],!1)),(0,f.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)},c.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))},c.prototype._getRange=function(){var t,e,i,n,o,r;return this.config.virtual?(t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight),i=(r=this.data.getRawData(0,-1).length)*e,n=this._topOffset,n=Math.max(0,Math.min(n,i-t)),o=Math.floor(n/e),r=Math.min(r-o,Math.floor(t/e)+5),this._topOffset=n,[o,r+o,o*e,i-e*(r+o)]):[0,-1,0,0]},c.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.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(m.ListEvents.click,[n._focus,t]))},"shift+enter":function(t){n.selection.add(n._focus,!1,!0),n.events.fire(m.ListEvents.click,[n._focus,t])},"ctrl+enter":function(t){n.selection.add(n._focus,!0,!1),n.events.fire(m.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)}))}}},c.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])},c.prototype.getItemAriaAttrs=function(t,e){var i;return s(s({role:"option","aria-selected":e.$selected?"true":"false"},(e=e,(i=t).config.dragMode&&!i._edited?{"aria-grabbed":Boolean(e.$dragtarget&&!i._edited).toString()}:{})),(e=t).config.editable?{"aria-roledescription":"".concat(e._edited?"Press Enter to stop editing":"Double click to edit content")}:{})},c.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox ".concat(t.title||"",", count of options = ").concat(e,".").concat(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},c);function c(t,e){function i(e){return function(t){o.data.setMeta(o.data.getItem(t.target),"drop",e),o.paint()}}function n(e){return function(t){t.source.map(function(t){return o.data.setMeta(o.data.getItem(t),"drag",e)}),o.paint()}}var o=this,r=(e=void 0===e?{}:e).itemHeight||(e.virtual?37:null),r=(r&&"number"==typeof r&&(r=r.toString()+"px"),(o=d.call(this,t,(0,u.extend)({itemHeight:r,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},e))||this)._destructed=!1,o._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},o.config.data),e=(r instanceof h.DataCollection?(o.data=r,o.events=r.events):(o.data=new h.DataCollection({}),o.events=o.data.events,r&&o.data.parse(r)),o.selection=new _.Selection({disabled:!o.config.selection,multiselection:o.config.multiselection},o.data,o.events),o.config.keyNavigation&&(o.keyManager=new p.KeyManager(function(t,e){return e==o._uid&&(!o._edited||o._edited&&"escape"!==t.key)}),o._initHotKey()),o.events.on(h.DataEvents.change,function(t,e,i){"setPage"===e&&o.scrollTo(o.data.getId(i[0])),o.paint()}),o.events.on(h.DataEvents.filter,function(){o.paint()}),o.events.on(g.SelectionEvents.afterUnSelect,function(){return o.paint()}),o.events.on(g.SelectionEvents.afterSelect,function(t){(0,u.isId)(t)&&o.config.selection&&o.setFocus(t),o.paint()}),o.events.on(m.ListEvents.afterEditEnd,o.editEnd.bind(o)),o.events.on(h.DragEvents.canDrop,i(!0)),o.events.on(h.DragEvents.cancelDrop,i(!1)),o.events.on(h.DragEvents.dragStart,n(!0)),o.events.on(h.DragEvents.afterDrag,n(!1)),o._handlers={onmousedown:function(t){o._dragStart(t)},ontouchstart:function(t){o._touch.timer=setTimeout(function(){o._dragStart(t)},o._touch.duration),o._touch.timeStamp?(o._touch.dblDuration>=o._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),o._dblClick(t)),o._touch.timeStamp=null):o._touch.timeStamp=+t.timeStamp.toFixed(),setTimeout(function(){o._touch.timeStamp=null},o._touch.dblDuration)},ontouchmove:function(t){o._touch.start&&t.preventDefault(),o._clearTouchTimer()},ontouchend:function(){o._touch.start=!1,o._clearTouchTimer()},ondragstart:function(){return!(o.config.dragMode&&!o._edited)&&null},oncontextmenu:function(t){var e=null==(e=o.data.getItem((0,v.locate)(t)))?void 0:e.id;(0,u.isId)(e)&&o.events.fire(m.ListEvents.itemRightClick,[e,t])},onclick:function(t){var e=null==(e=o.data.getItem((0,v.locate)(t)))?void 0:e.id;(0,u.isId)(e)&&(o.selection.add(e,t.ctrlKey||t.metaKey,t.shiftKey),o.config.selection&&(o._focus=e),o.events.fire(m.ListEvents.click,[e,t]),o.paint())},ondblclick:function(t){o._dblClick(t)},onscroll:function(t){o.config.virtual&&(o._topOffset=t.target.scrollTop,o._visibleHeight=t.target.offsetHeight,o.paint())},onmouseover:function(t){var e=null==(e=o.data.getItem((0,v.locate)(t)))?void 0:e.id;(0,u.isId)(e)&&e!==(0,v.locate)(t.relatedTarget)&&o.events.fire(m.ListEvents.itemMouseOver,[e,t])}},o.config.eventHandlers);if(e)for(var s=0,a=Object.entries(e);s<a.length;s++){var l=a[s],c=l[0],l=l[1];o._handlers[c]=(0,v.eventHandler)(function(t){return(0,v.locate)(t)},l,o._handlers[c])}o.config.dragMode&&h.dragManager.setItem(o._uid,o);r=(o._topOffset=o._visibleHeight=0,f.create)({render:function(){return o._destructed?(0,f.el)("div"):o._renderList()},hooks:{didMount:function(t){o.config.virtual&&(o._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return o._didRedraw(t)}}});return o.mount(t,r),o}r.List=e},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var n=i(22),o=i(6),r=i(1);function s(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&&(t=n._data.getIndex(t.id),1<(e=n._data.getLength()))&&(n._nextSelection=n._data.getId(e==t-1?t-1:t+1))}),this._data.events.on(o.DataEvents.afterRemove,function(t){t=n._selected.indexOf(t.id);-1!==t&&n._selected.splice(t,1),(0,r.isId)(n._nextSelection)&&(n.add(n._nextSelection),n._nextSelection=null)})}s.prototype.enable=function(){this.config.disabled=!1},s.prototype.disable=function(){this.remove(),this.config.disabled=!0},s.prototype.getId=function(){return this.config.multiselection?this._selected:this._selected[0]},s.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},s.prototype.contains=function(t){return(0,r.isId)(t)?this._selected.includes(t):0<this._selected.length},s.prototype.remove=function(t,e){var i=this;(0,r.isId)(t)?this._unselectItem(t,e):(this._selected.forEach(function(t){return i._unselectItem(t,e)}),this._selected=[])},s.prototype.add=function(t,e,i,n){var o,r=this;this.config.disabled||(void 0===t?this._data.serialize().filter(function(t){t=t.id;return!r._selected.includes(t)}).forEach(function(t){t=t.id;r._addMulti(t,n)}):(o=this.config.multiselection,i&&this._selected.length&&o?this._addMulti(t,n):this._addSingle(t,o&&("ctrlClick"!==o||e),n)))},s.prototype.destructor=function(){var e=this;this._selected.forEach(function(t){return e._unselectItem(t,!0)})},s.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=(i=[o,n])[0],o=i[1]);n<=o;n++){var r=this._data.getId(n);this._selectItem(r,e)}},s.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)},s.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]))},s.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]))},e.Selection=s},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}),e.emptyListHeight=e.emptyListView=e.unselectAllView=e.selectAllView=void 0;var n=i(0),o=i(56);e.selectAllView=function(){return(0,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(0,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(0,n.el)("ul.dhx_list",[(0,n.el)("li.dhx_list-item.dhx_combobox-options__item".concat(t?".dhx_combobox-options__action-create-option":""),{},t?"".concat(o.default.createItem,' "').concat(t,'"'):o.default.notFound)])},e.emptyListHeight=function(t,e){var i=document.createElement("canvas").getContext("2d",{alpha:!1}),t=(i.font="normal 14px Roboto",t?"".concat(o.default.createItem,' "').concat(t,'"'):o.default.notFound);return 13+20*Math.ceil(i.measureText(t).width/(e-16))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComboState=e.ComboboxEvents=void 0,e.ComboboxEvents={beforeChange:"beforeChange",change:"change",focus:"focus",blur:"blur",keydown:"keydown",input:"input",beforeOpen:"beforeOpen",afterOpen:"afterOpen",beforeClose:"beforeClose",afterClose:"afterClose",open:"open",close:"close"},e.ComboState={default:0,0:"default",error:1,1:"error",success:2,2:"success"}},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)},C=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},S=(Object.defineProperty(e,"__esModule",{value:!0}),e.getFixedCols=e.getFixedColsHeader=void 0,i(0)),E=i(4),D=i(16),O=i(60),k=i(7),T=i(10);e.getFixedColsHeader=function(t,e,i){var n,o,r,s,a,l,c,d;if((i!==E.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==E.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length))return n=t.leftSplit,o=t.rightSplit,d=t.$positions,r=t.$totalWidth,s=t.$scrollBarWidth,l=(a=i===E.Split.right)?t.fixedColumns.right:t.fixedColumns.left,c=(0,k.getTotalWidth)(l),t=(0,O.getFixedRows)(w(w({},t),{currentColumns:l,$positions:w(w({},d),{xStart:0,xEnd:a?o:n}),scroll:{top:0,left:0},filteredColumns:l}),w(w({},e),{name:"header",position:"top",shifts:{x:0,y:0}}),i),d=w(w({},e),{name:"header",position:"top"}),(0,S.el)(".dhx_".concat(d.name,"-fixed-cols"),w({onwheel:k.scrollFixedColsAndRows,class:a?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:0,left:a?r<e.wrapper.width-s.y-T.BORDERS?r-c:e.wrapper.width-c-s.y-T.BORDERS:0,width:c,overflow:"hidden"}},{role:"rowgroup","aria-rowcount":t.length}),t.body)},e.getFixedCols=function(t,e,i,n){var o,r,s,a,l,c,d,u,h,f,p,g,_,v,m,y,x,b;if((i!==E.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==E.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length))return b=t.leftSplit,x=t.rightSplit,o=t.$totalWidth,r=t.$totalHeight,s=t.headerHeight,h=t.footerHeight,a=t.$positions,l=t.scroll,c=t.data,d=t.$scrollBarWidth,u=i===E.Split.right,h=(h=r+s+h)>e.gridBodyHeight?t.$footer?h-d.x:e.gridBodyHeight:h<e.gridBodyHeight-d.x?h:t.$footer?e.gridBodyHeight:e.gridBodyHeight-d.x,m=u?t.fixedColumns.right:t.fixedColumns.left,f=(0,k.getTotalWidth)(m),p=u?"rightFixedCols":"leftFixedCols",g=(0,D.getCells)(w(w({},t),{filteredColumns:m,$renderFrom:p,$positions:w(w({},a),{xStart:0,xEnd:u?x:b})})),_=e.sticky,y=w(w({},e),{name:"footer",position:"bottom"}),x=(0,O.getRows)(w(w({},t),{currentColumns:m,$positions:w(w({},a),{xStart:0,xEnd:u?x:b})}),w(w({},e),{name:"footer",position:"bottom"})),v=0,x.forEach(function(t){return v+=t.attrs.style.height}),b=(0,O.getFixedSpans)(w(w({},t),{filteredColumns:m}),w(w({},e),{name:"footer",position:"bottom"}),i),m=function(t){return{role:"rowgroup","aria-rowcount":t}},i=_?(0,S.el)(".dhx_".concat(y.name,"-fixed-cols"),w({onwheel:k.scrollFixedColsAndRows,class:u?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:h<e.gridBodyHeight?h-v:null,left:u?o<e.wrapper.width-d.y-T.BORDERS?o-f:e.wrapper.width-f-d.y-T.BORDERS:0,bottom:h>=e.gridBodyHeight?"".concat(_?d.x:0,"px"):null}},m(x.length)),[x,(0,S.el)("span.dhx_span-spans",{class:"dhx_footer-spans",role:"presentation"},b)]):null,y=a,x=(0,T.getEvents)(t,u?E.Split.right:E.Split.left),b=(0,D.getSpans)(w(w({},t),{$renderFrom:p}),n||(u?E.Split.right:E.Split.left)),[(0,S.el)(".dhx_grid-fixed-cols-wrap",w(w({style:{left:u?o<e.wrapper.width-d.y-T.BORDERS?o-f:e.wrapper.width-f-d.y-T.BORDERS:0,height:h>=e.gridBodyHeight?(_?e.gridBodyHeight:e.gridBodyHeight+s)-d.x:h,paddingTop:s,overflow:"hidden",width:f}},x),{role:"presentation","aria-label":"Fixed column"}),[(0,S.el)(".dhx_grid-fixed-cols",w(w({onwheel:k.scrollFixedColsAndRows,class:u?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{top:-l.top+s-1+"px",paddingTop:e.shifts.y,height:r,position:"absolute"},_flags:S.KEYED_LIST},(0,D.getHandlers)(y.yStart,y.xStart,t)),m(c.length)),C(C([],g,!0),[b&&(0,S.el)("span.dhx_span-spans",{role:"presentation"},[b])],!1)),u?(0,S.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:0}}):(0,S.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{right:0}})]),t.$footer?i:null]}},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)},w=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},k=(Object.defineProperty(e,"__esModule",{value:!0}),e.getFixedDataRows=e.getFixedRows=e.getFixedSpans=e.getRows=void 0,i(0)),T=i(21),M=i(7),P=i(4),C=i(16),S=i(59),E=i(10),H=i(1),L=2;function n(t,e,i,n){i&&(i.toLocaleLowerCase().includes("touch")?e._events:e.events).fire(i,[t,n])}function j(t,e,i){return{onclick:[n,t,i,P.GridEvents[e+"CellClick"]],onmouseover:[n,t,i,P.GridEvents[e+"CellMouseOver"]],onmousedown:[n,t,i,P.GridEvents[e+"CellMouseDown"]],ontouchstart:[n,t,i,P.GridEvents[e+"CellMouseDown"]],ondblclick:[n,t,i,P.GridEvents[e+"CellDblClick"]],oncontextmenu:[n,t,i,P.GridEvents[e+"CellRightClick"]],ontouchmove:[n,t,i,P.GridSystemEvents[e+"CellTouchMove"]],ontouchend:[n,t,i,P.GridSystemEvents[e+"CelltouchEnd"]]}}function R(t,e,i,n,o,r){void 0===o&&(o="");var s=e.type?"dhx_".concat(e.type,"-cell"):"dhx_string-cell",t=i.content[t.content]&&i.content[t.content].toHtml(e,i),a={};return i.filteredColumns.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}),(0,k.el)(".".concat(s),{style:{class:o.trim(),padding:0}},[t&&("string"==typeof t||"number"==typeof t?(0,k.el)("div",{class:"dhx_grid-footer-cell-text",role:"presentation",".innerHTML":e.template&&"string"==typeof t?e.template(t,a,e):t}):t)])}function u(u,t){var h,f,p,g,_,e,v,m;return u.data&&u.filteredColumns?(h=u.$positions,f=t.name,p=u.currentColumns,g=u["".concat(f,"RowHeight")]||40,e=f,t=(t=p).map(function(t){return t[e]||[{}]}),_=(0,M.transpose)(t),m=1,_.map(function(t,d){return(0,k.el)(".dhx_".concat(f,"-row"),O({style:{height:g}},{role:"row","aria-rowindex":d+1}),t.map(function(n,t){function e(t,e,i){return e={"aria-colindex":e},"footer"===t||n.content?e.role="gridcell":(e.role="columnheader",e["aria-sort"]=i),e}var i=n.css||"",o=p[t],r=h.xStart+t+1,s="dxi dxi-sort-variant dhx_grid-sort-icon",a="none",l=(u.sortBy&&"".concat(o.id)===u.sortBy&&!n.content&&(l=u.sortDir||"asc",s+=" dhx_grid-sort-icon--".concat(l),i+=" dhx_grid-".concat(f,"-cell--sorted "),a="asc"===l?"ascending":"descending"),(0,M.isSortable)(u,o)&&n.text&&"footer"!==f&&!1!==n.headerSort),c=(l&&(i+=" dhx_grid-header-cell--sortable"),0===t?"dhx_first-column-cell":""),t=t===p.length-1?"dhx_last-column-cell":"",c=(n.content||(n.align?i+=" dhx_grid-header-cell--align_".concat(n.align," "):i+=" dhx_grid-header-cell--".concat("number"===o.type||"percent"===o.type||"date"===o.type?"align_right":"align_left"," ")),i+="".concat(c," ").concat(t),(void 0!==o.resizable?o:u).resizable);c&&(t=u.rightSplit&&u.$scrollBarWidth.xState&&u.fixedColumns.right.includes(o),c=(0,k.el)("div",{class:"dhx_resizer_grip_wrap","aria-hidden":"true"},[(0,k.el)("div",{class:"dhx_resizer_grip"+(t?" dhx_resizer_grip--left":" dhx_resizer_grip--right"),dhx_resized:o.id,style:{height:"".concat(100*_.length,"%")}},[(0,k.el)("div",{class:"dhx_resizer_grip_line"})])]),(t=o.header&&(null==(t=o.header[0])?void 0:t.colspan))&&(v=t,m=1),v&&m!==v&&(0===d&&(c=null),m++),"footer"===f)&&(c=null),n.align&&(i+=" dhx_align-".concat(n.align));return n.content?(0,k.el)(".dhx_grid-".concat(f,"-cell.dhx_grid-custom-content-cell"),O(O({class:i.trim(),"data-dhx-id":o.id,"data-dhx-text-id":n.id,_key:o.id,style:{width:o.$width,height:"footer"===f?g+L/2+"px":g+"px"}},j(o,f,u)),e(f,r,a)),[R(n,o,u,f,"",d),c||null]):(t="dhx_grid-header-cell-text_content",u.autoHeight&&(t+=" dhx_grid-header-cell-text_content-auto-height"),(0,k.el)(".dhx_grid-".concat(f,"-cell"),O(O({class:i.trim(),"data-dhx-id":o.id,"data-dhx-text-id":n.id,_key:o.id,style:{width:o.$width,height:"footer"===f?g+L/2+"px":g+"px"}},j(o,f,u)),e(f,r,a)),[(0,k.el)("div.dhx_grid-header-cell-text",{role:"presentation"},[(0,k.el)("span",O(O({class:t},(i=n.text,l?{role:"button","aria-label":"Sort by ".concat(i)}:{})),{".innerHTML":n.text})),c||null]),l&&(0,k.el)("div",{class:s,"aria-hidden":"true"})]))}))})):[]}function h(y,x,b){var w=y.columns,C=y.filteredColumns,t=(0,M.transpose)(C.map(function(t){return t[x.name]||[]})),S=y["".concat(x.name,"RowHeight")]||40,E=x.name,D=0;return t.map(function(t,m){return(D=0,k.el)(".dhx_span-row",{style:{top:S*m+"px",height:S},class:"dhx_header-row","aria-hidden":"true"},t.map(function(t,e){var i,n=C[e];if(b===P.Split.right&&0===e&&!t.colspan){var o=(0,M.transpose)(w.map(function(t){return t[x.name]||[]}));t:for(var r=0;r<o[m].length;r++){var s=o[m][r];if(1<s.colspan)for(var a=w.slice(r,r+s.colspan),l=0;l<a.length;l++)if(a[l].id===n.id){i={cell:s,col:w[r],widthBefore:(0,T.getWidth)(a,l,0),isLastCol:r+s.colspan>=w.length};break t}}}var c=(null==i?void 0:i.cell)||t,d=(null==i?void 0:i.col)||n,u=(D+=d.hidden?0:d.$width,0===e?"dhx_first-column-cell":""),h=b?1:y.fixedColumns.right.length+1,t=t.colspan&&(0,T.getReducedColspan)(w,n.id,t.colspan),h=null!=i&&i.isLastCol||e===C.length-h||(t||1)+(e-1)>=C.length-h?"dhx_last-column-cell":"",f=S,p=(c.rowspan&&(f=f*c.rowspan-1),"footer"===x.name&&1<c.rowspan&&f++,(0,M.isSortable)(y,d)&&c.rowspan&&c.text&&"footer"!==x.name&&!1!==c.headerSort),g="dxi dxi-sort-variant dhx_grid-sort-icon",_=(y.sortBy&&"".concat(d.id)===y.sortBy&&!c.content&&(g+=" dhx_grid-sort-icon--".concat(y.sortDir||"asc")),d.align?"dhx_align-".concat(d.align):"number"!==d.type&&"percent"!==d.type&&"date"!==d.type||c.colspan?"dhx_align-left":"dhx_align-right"),u="dhx_grid-header-cell ".concat(u," ").concat(h," ").concat(c.rowspan?"dhx_span-cell__rowspan":""," ").concat(c.align?"dhx_align-".concat(c.align):_," ").concat(c.css||""),h=(p&&(u+=" dhx_grid-header-cell--sortable"),c.content||(c.align?u+=" dhx_grid-header-cell--align_".concat(c.align," "):u+=" dhx_grid-header-cell--".concat("number"===d.type||"percent"===d.type||"date"===d.type?"align_right":"align_left"," ")),null),_=(c.content&&((h=R(c,d,y,E,u,m)).attrs.style=O(O({},h.attrs.style),{width:"100%",borderRight:"0"})),""),v=(0<D-d.$width&&(_="var(--dhx-border)"),"dhx_grid-header-cell-text_content");return y.autoHeight&&(v+=" dhx_grid-header-cell-text_content-auto-height"),c.colspan||c.rowspan?(0,k.el)(".dhx_span-cell",O({style:{width:(0,T.getWidth)(w,c.colspan,(0,H.findIndex)(w,function(t){return t.id===d.id})),height:f,left:D-d.$width-((null==i?void 0:i.widthBefore)||0),borderLeft:_,top:S*m},class:u.trim(),"data-dhx-id":d.id,"data-dhx-text-id":c.id},j(d,E,y)),[h||c.rowspan?(0,k.el)("div.dhx_grid-header-cell-text",{role:"presentation"},[(0,k.el)("span",{class:v,".innerHTML":c.text})]):(0,k.el)("span",{class:v,".innerHTML":c.text}),p&&(0,k.el)("div",{class:g}),b===P.Split.left&&t&&e+t>C.length||i?(0,k.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:((null==i?void 0:i.widthBefore)||(0,T.getWidth)(C,C.length-e,e))-L/2}}):null]):null}).filter(function(t){return t}))})}function D(t){return{role:"rowgroup","aria-rowcount":t}}e.getRows=u,e.getFixedSpans=h,e.getFixedRows=function(i,n,t){var o,r,e,s,a=i.leftSplit,l=i.$totalWidth,c=u(i,n),t=h(i,n,t),d=null;return"footer"!==n.name||n.sticky||(o=i.rightSplit,r=i.fixedColumns,d=w(w([],(s=function(t){var e=(t=void 0===t?!1:t)?r.right:r.left;return!t&&0<=a||t&&0<=o?u(O(O({},i),{currentColumns:e,$positions:O(O({},i.$positions),{xStart:0,xEnd:t?o:a})}),n):[]})(),!0),s(!0),!0)),(s={position:"sticky"})[n.position]=0,n.sticky||(s.left=-i.scroll.left,e=-i.scroll.left,s.position="relative"),(0,k.el)(".dhx_".concat(n.name,"-wrapper").concat(i.rightSplit?".dhx_grid__rows_right--fixed":""),{class:n.sticky?"":"dhx_compatible-".concat(n.name),style:O(O({},s),{left:n.sticky?e:0,height:"footer"===n.name?i[n.name+"Height"]+L/2:i[n.name+"Height"],width:n.sticky?l:n.wrapper.width-L}),role:"presentation"},[(0,k.el)(".dhx_grid-".concat(n.name).concat(a?".dhx_grid_fixed_left":""),{style:{height:"footer"===n.name?i[n.name+"Height"]+L/2:i[n.name+"Height"],left:e,paddingLeft:n.shifts.x,width:l},role:"presentation"},[(0,k.el)(".dhx_".concat(n.name,"-rows"),O({},D(w([],c,!0).length)),w([],c,!0)),(0,k.el)(".dhx_".concat(n.name,"-spans"),{style:{marginLeft:-n.shifts.x},class:"dhx_".concat(n.name,"-rows"),role:"presentation"},t),d&&(0,k.el)(".dhx_".concat(n.name,"-fixed-cols"),{style:{position:"absolute",top:0,left:i.scroll.left+"px",height:"100%"}},d)]),(0,k.el)("div",{style:{width:l},role:"presentation"})])},e.getFixedDataRows=function(e,i,n){var t,o,r,s,a,l,c,d,u,h,f,p,g,_,v,m,y,x,b;if(!(n===P.Split.top&&"number"!=typeof e.topSplit||n===P.Split.bottom&&"number"!=typeof e.bottomSplit))return t=e.$totalWidth,o=e.topSplit,r=e.bottomSplit,s=e.$positions,a=e.data,l=e.$totalHeight,c=e.$width,d=e.headerHeight,u=e.footerHeight,h=e.$scrollBarWidth,f=n===P.Split.bottom,p=f?e.fixedRows.bottom:e.fixedRows.top,g=f?"bottomFixedRows":"topFixedRows",_=(0,C.getCells)(O(O({},e),{data:p,$renderFrom:g,$positions:O(O({},s),{yStart:0,yEnd:f?r:o})})),v=(0,E.getEvents)(e,f?P.Split.bottom:P.Split.top),m=p.reduce(function(t,e){return t+e.$height},0),y=(0,C.getSpans)(O(O({},e),{$renderFrom:g,data:a}),f?P.Split.bottom:P.Split.top),x=(0,M.getTotalHeight)(e.fixedRows.bottom),b=w(w([],(b=function(t){return(0,S.getFixedCols)(O(O({},e),{headerHeight:0,data:p,$renderFrom:g,scroll:O(O({},e.scroll),{top:-1}),$positions:O(O({},s),{yStart:0,yEnd:f?r:o}),$totalHeight:m,$data:a}),O(O({},i),{shifts:O(O({},i.shifts),{y:0})}),t,n)||[]})(P.Split.left),!0),b(P.Split.right),!0),[(0,k.el)(".dhx_grid-fixed-data-rows-wrap",{class:f?"dhx_grid__rows_bottom--fixed":"",style:{top:f?l<i.wrapper.height-h.x-L?l+d-x+L/2:i.wrapper.height-x-u-L/2-h.x:d,overflow:"hidden",height:m>i.wrapper.height?i.wrapper.height:m,width:t+h.y+L<c?t:c-h.y-L}},w(w([(0,k.el)(".dhx_grid-fixed-cols",O(O({onwheel:M.scrollFixedColsAndRows,style:{left:-e.scroll.left+"px",paddingLeft:i.shifts.x,position:"absolute",width:t},_flags:k.KEYED_LIST},(0,C.getHandlers)(0,s.xStart,e)),D(a.length)),[(0,k.el)(".dhx_grid-fixed-rows",O({class:e.rightSplit?"dhx_grid__rows_right--fixed":""},v),w(w([],_,!0),[y&&(0,k.el)(".dhx_span-spans",{role:"presentation"},[y])],!1))])],b,!0),[e.bottomSplit?(0,k.el)(".dhx_grid__rows-border--frozen",{role:"presentation"}):null],!1))]}},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)},v=(Object.defineProperty(e,"__esModule",{value:!0}),e.rightGrid=e.right=e.leftGrid=e.left=e.topGrid=e.top=e.bottomGrid=e.bottom=void 0,i(1)),m=i(0),y=i(3),x=function(t){return t.toString()},b=function(t,e){return{role:"graphics-object","aria-label":"".concat(t,"-axis").concat(e?", "+e:"")}};e.bottom=function(t,e,i,n){var o,r,s=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,c=[],f=0,d=(d&&(f=a,o=u&&!isNaN(u),r=n+a,c=t.map(function(t){var e=t[0],i=o?"rotate(".concat(u," ").concat(e," ").concat(r,")"):"",n=["scale-text","top-text"];return o&&n.push((0,y.getClassesForRotateScale)("bottom",u%360)),(0,m.sv)("text",{x:e,y:r,class:n.join(" "),transform:i},[(0,y.verticalCenteredText)(h(t[1]))])})),(0,v.uid)()),a=null,t=(0,m.sv)("path",{class:"main-scale",d:"M0 ".concat(n," H").concat(i-.5),id:d});return s&&(a=(0,m.sv)("text",{dx:i/2,dy:l+f},[(0,m.sv)("textPath",{href:"#".concat(d),class:"scale-title "},s)])),(0,m.sv)("g",_({},b("x",s||e.text)),[t,a].concat(c))},e.bottomGrid=function(t,e,i,n){for(var o,r,s,a,l=n.dashed,c=n.grid,d=n.targetLine,u=n.targetValue,h=t.length,f=[],p="grid-line ".concat(l?"dash-line":""," ").concat(c?"":"hidden-line"),g=0;g<h;g++)0===g&&0===t[g][0]&&!n.hidden||(g===d?(o="M".concat(t[g][0]," 0 V ").concat(i),o=(0,m.sv)("path",{d:o,class:"".concat(p," spec-grid-line")}),f.push(o)):(s="M".concat(t[g][0]," 0 V ").concat(i),a=(0,m.sv)("path",{d:s,class:p,_ref:"line"+Math.round(t[g][0])}),f.push(a),g===h-1&&t[g][0]!==e&&(o="M".concat(e," 0 V ").concat(i),r=(0,m.sv)("path",{d:o,class:p}),f.push(r))));return u&&(s="M".concat(u*e," 0 V ").concat(i),a=(0,m.sv)("path",{d:s,class:"".concat(p," spec-grid-line")}),f.push(a)),(0,m.sv)("g",f)},e.top=function(t,e,i,n){var o,r,s=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,c=[],f=0,d=(d&&(f=a,o=u&&!isNaN(u),r=-a,c=t.map(function(t){var e=["scale-text"],i=t[0],n=o?"rotate(".concat(u," ").concat(i," ").concat(r,")"):"";return o&&e.push((0,y.getClassesForRotateScale)("top",u%360)),(0,m.sv)("text",{x:i,y:r,class:e.join(" "),transform:n},[(0,y.verticalCenteredText)(h(t[1]))])})),(0,v.uid)()),a=(0,m.sv)("path",{d:"M0 0 H".concat(i),class:"main-scale",id:d}),t=null;return s&&(t=(0,m.sv)("text",{dx:i/2,dy:-l-f},[(0,m.sv)("textPath",{href:"#".concat(d),class:"scale-title"},s)])),(0,m.sv)("g",_({},b("x",s||e.text)),[a,t].concat(c))},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 ".concat(s?"dash-line":""," ").concat(a?"":"hidden-line"),h=0;h<c;h++)0===h&&0===t[h][0]&&!n.hidden||(h===l?(o="M".concat(t[h][0]," 0 V ").concat(i),o=(0,m.sv)("path",{d:o,class:"".concat(u," spec-grid-line")}),d.push(o)):(o="M".concat(t[h][0]," 0 V ").concat(i),r=(0,m.sv)("path",{d:o,class:u,_ref:"line"+Math.round(t[h][0])}),d.push(r),h===c-1&&0!==t[h][0]&&(r="M0 0 V ".concat(i),r=(0,m.sv)("path",{d:r,class:u}),d.push(r))));return(0,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,r=[],p=0,u=(u&&(s=(0,y.getFontStyle)("scale-text"),a=0,l=h&&!isNaN(h),r=t.map(function(t){var e,i=t[0],n=-d,o=l?"rotate(".concat(h," ").concat(n," ").concat(i,")"):"",r=["scale-text"],t=f(t[1]);return c&&(e=(0,y.getTextWidth)(t,s),a<e)&&(a=e),r.push(l?(0,y.getClassesForRotateScale)("left",h%360):"end-text"),(0,m.sv)("text",{x:n,y:i,class:r.join(" "),transform:o},[(0,y.verticalCenteredText)(t)])}),p=a+d),(0,v.uid)()),t=(0,m.sv)("path",{class:"main-scale",d:"M0 ".concat(n," V 0.5"),id:u,_ref:t.length?"line0":null}),g=null;return c&&(g=(0,m.sv)("text",{dx:n/2,dy:-o-p},[(0,m.sv)("textPath",{href:"#".concat(u),class:"scale-title"},c)])),(0,m.sv)("g",_({},b("y",c||e.text)),[t,g].concat(r))},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 ".concat(a?"dash-line":""),p=0;p<u;p++)0===p&&t[p][0]===i&&!n.hidden||(c===p?(r="M0 ".concat(t[p][0]," H ").concat(e),s=(0,m.sv)("path",{d:r,class:"".concat(f," spec-grid-line")}),h.push(s)):l&&(r="M0 ".concat(t[p][0]," H ").concat(e),s=(0,m.sv)("path",{d:r,class:f}),h.push(s),p===u-1)&&t[p][0]!==e&&(o="M0 0 H".concat(e),o=(0,m.sv)("path",{d:o,class:f}),h.push(o)));return d&&(r="M0 ".concat(d*i," H ").concat(e),s=(0,m.sv)("path",{d:r,class:"".concat(f," spec-grid-line")}),h.push(s)),(0,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,o=[],p=0,r=(r&&(a=(0,y.getFontStyle)("scale-text"),l=0,c=h&&!isNaN(h),o=t.map(function(t){var e,i=f(t[1]),t=t[0],n=s+u,o=c?"rotate(".concat(h," ").concat(n," ").concat(t,")"):"",r=["scale-text"];return d&&(e=(0,y.getTextWidth)(i,a),l<e)&&(l=e),r.push(c?(0,y.getClassesForRotateScale)("right",h%360):"start-text"),(0,m.sv)("text",{x:n,y:t,class:r.join(" "),transform:o},[(0,y.verticalCenteredText)(i)])}),p=u+l),(0,v.uid)()),t=(0,m.sv)("path",{d:"M".concat(s," ").concat(i," V 0"),class:"main-scale",id:r,_ref:t.length?"line0":null}),g=null;return d&&(g=(0,m.sv)("text",{dx:i/2,dy:n+p},[(0,m.sv)("textPath",{href:"#".concat(r),class:"scale-title"},d)])),(0,m.sv)("g",_({},b("y",d||e.text)),[t,g].concat(o))},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 ".concat(a?"dash-line":""),f=0;f<d;f++)0===f&&t[f][0]===i&&!n.hidden||(c===f?(o="M0 ".concat(t[f][0]," H ").concat(e),r=(0,m.sv)("path",{d:o,class:"".concat(h," spec-grid-line")}),u.push(r)):l&&(o="M0 ".concat(t[f][0]," H ").concat(e),r=(0,m.sv)("path",{d:o,class:h}),u.push(r),f===d-1)&&t[f][0]!==e&&(s="M0 0 H".concat(e),s=(0,m.sv)("path",{d:s,class:h}),u.push(s)));return(0,m.sv)("g",u)}},function(t,e,i){"use strict";var n,r,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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)},v=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),a=i(3),i=i(34),i=(r=i.default,o(l,r),l.prototype.paint=function(t,e,i){r.prototype.paint.call(this,t,e);var n=[];return this._form(t,e,n,i),this._markers(n),(0,v.sv)("g",s(s({class:"seria",_key:this.id},(t=this.config,{"aria-label":"chart ".concat(t.value||"")})),{tabindex:0}),n)},l.prototype.paintformAndMarkers=function(t,e,i){r.prototype.paint.call(this,t,e);var n=[],o=[];return this._form(t,e,n,i),this._markers(o),[(0,v.sv)("g",{class:"seria",_key:this.id},n),(0,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],(0,a.calcPointRef)(t[2],n.id))})))},l.prototype._form=function(t,i,e,n){var o,r,s="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":""),a=this.config,l=a.id,c=a.fill,d=a.alpha,u=a.color,a=a.strokeWidth,h=this._points,f=h[h.length-1],p="";if(n){for(var g=n.length-1;0<=g;g--){var _=n[g];p+=(g===h.length-1?"M":"L").concat(_[0]," ").concat(_[1]," ")}p+=h.map(function(t,e){return(e?"L ".concat(t[0]," "):"V ").concat(t[1])}).join(" ")+"Z"}else p+=h.map(function(t,e){return(e?"L":"M0 ".concat(i," L0 ").concat(t[1]," L")).concat(t[0]," ").concat(t[1])}).join(" ")+"L".concat(t," ").concat(f[1]," V ").concat(i);a&&(o=h.length-1,r=function(t){return t===o?-.5:t?0:.5},t=h.map(function(t,e){return(e?"L":"M0 ".concat(t[1]," L0 ").concat(t[1]+r(e)," L")).concat(t[0]+r(e)," ").concat(t[1])}).join(" ")+"L".concat(t," ").concat(f[1]),f=(0,v.sv)("path",{d:t,"stroke-width":a,stroke:u,fill:"none",class:s}),e.push(f));t=(0,v.sv)("path",{id:"seria"+l,d:p,class:s,fill:c,_ref:l,"fill-opacity":d,stroke:"none"});return e.push(t),e},l.prototype._setDefaults=function(t){var e={alpha:.3,strokeWidth:2,fill:t.color||"#5E83BA",color:"#5E83BA",active:!0,tooltip:!0,pointType:"empty"},e=(this.config=s(s({},e),t),this.config.pointType),t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShadeHTMLHelper=e.getShadeHelper=e.getHTMLHelper=e.getHelper=void 0;var s=i(0),a=i(3),n={circle:function(t,e,i,n,o,r){return(0,s.sv)("circle",{_ref:r,cx:n,cy:o,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2})},rect:function(t,e,i,n,o,r){return(0,s.sv)("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){r={_ref:r,points:"".concat(n-5,",").concat(o," ").concat(n,",").concat(o+5," ").concat(n+5,",").concat(o," ").concat(n,",").concat(o-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return(0,s.sv)("polygon",r)},triangle:function(t,e,i,n,o,r){r={_ref:r,points:"".concat(n,",").concat(o-5," ").concat(n+5,",").concat(o+5," ").concat(n-5,",").concat(o+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return(0,s.sv)("polygon",r)},simpleCircle:function(t,e,i,n,o,r){return(0,s.sv)("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(0,s.sv)("rect",{_ref:r,x:n-3,y:o-3,width:6,height:6,class:"figure point-simple-rect",fill:t})},empty:function(){return null}},o={circle:function(t,e,i,n,o,r){return'<circle class="figure point-circle" _ref="'.concat(r,'" cx="').concat(n,'" cy="').concat(o,'" r="4" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rect:function(t,e,i,n,o,r){return'<rect _ref="'.concat(r,'" x="').concat(n-4,'" y="').concat(o-4,'" width="8" height="8" class="figure point-rect" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rhombus:function(t,e,i,n,o,r){return'<polygon _ref="'.concat(r,'" points="').concat(n-5,",").concat(o," ").concat(n,",").concat(o+5," ").concat(n+5,",").concat(o," ").concat(n,",").concat(o-5,'" class="figure point-rhombus" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},triangle:function(t,e,i,n,o,r){return'<polygon _ref="'.concat(r,'" points="').concat(n,",").concat(o-5," ").concat(n+5,",").concat(o+5," ").concat(n-5,",").concat(o+5,'" class="figure point-triangle" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},simpleCircle:function(t,e,i,n,o,r){return'<circle _ref="'.concat(r,'" cx="').concat(n,'" cy="').concat(o,'" r="3" class="figure point-simple-circle" fill="').concat(t,'"/>')},simpleRect:function(t,e,i,n,o,r){return'<rect _ref="id" x="'.concat(n-3,'" y="').concat(o-3,'" width="6" height="6" class="figure point-simple-rect" fill="').concat(t,'"/>')},empty:function(){return null}};function l(t){t=n[t.toString()];if(t)return t;throw new Error("unknown point type")}function c(t){t=o[t.toString()];if(t)return t;throw new Error("unknown point type")}e.getHelper=l,e.getHTMLHelper=c,e.getShadeHelper=function(t,n){var o=l(t),r=(n=n||"none",(0,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),r=(n=n||"none",(0,a.getColorShade)(n,.2));return function(t,e,i){return o(n,r,"",t,e,i)}}},function(t,e,i){"use strict";var n,r,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),_=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)},s=(Object.defineProperty(e,"__esModule",{value:!0}),i(1)),v=i(0),m=i(3),i=i(34),i=(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);var n,o;return this.config.active?(o=[],this._gradient&&o.push((0,v.sv)("defs",[this._gradient()])),n="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":""),n=this._getForm(this._points,n,t,e,i),o=o.concat(n),(0,v.sv)("g",_(_({class:"seria",_key:this.id},(t=this.config,{"aria-label":"chart ".concat(t.value||"")})),{tabindex:0}),o)):null},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 ".concat(t[0]-this.config.barWidth/2," ").concat(e,"\nV ").concat(t[1],"\nh ").concat(this.config.barWidth,"\nV ").concat(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],e=(e+t[1])/2;return{x:n,y:e,class:"bar-text",transform:i&&!isNaN(i)?"rotate(".concat(i," ").concat(n," ").concat(e,")"):""}},a.prototype._getForm=function(t,i,e,n,o){var r=this,s=function(t,e,i){var n=e[3],o=i=void 0===i?0:i,e=e[4];return e<i&&(o=e,e=i),("xbar"===t?"bar y=".concat(n,", x from "):"bar x=".concat(n,", y from ")).concat(o," to ").concat(e)},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),g=function(t){return o?o[t][1]:p},n=t.map(function(t,e){return(0,v.sv)("path",_(_({_key:"seria"+r.config.id+e,_ref:(0,m.calcPointRef)(t[2],r.config.id),d:r._path(t,g(e)),class:i,fill:c,onclick:[r._handlers.onclick,t[2],r.config.value],onmousemove:[r._handlers.onmousemove,t[2],r.config.id],onmouseleave:[r._handlers.onmouseleave,t[2],r.config.id],"fill-opacity":d},(e=r.config.type,{role:"graphics-symbol","aria-roledescription":"bar","aria-label":s(e,t,l)})),{tabindex:0}))});return a.push.apply(a,n),(u||h||f)&&!1!==u&&(n=t.map(function(t,e){var i,n=r._getText(t);return i=t,16<Math.abs(g(e)-i[1])?(0,v.sv)("text",_(_({},r._text(t,g(e),f)),{"aria-hidden":"true"}),[h?(0,m.verticalCenteredText)(h(n)):(0,m.verticalCenteredText)(n)]):null}),a.push.apply(a,n)),a},a.prototype._getText=function(t){return t[4].toString()},a.prototype._setDefaults=function(t){this.config=_(_({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e,i,t=this.config.pointType,n=this.config.pointColor||this.config.color;t&&(this.config.pointType=t,this._drawPointType=this._getPointType(t,n)),this.config.gradient&&(e="gradient"+(0,s.uid)(),i=this.config.gradient(this.config.fill),this._gradient=function(){return(0,m.linearGradient)(i,e)},this.config.fill="url(#".concat(e,")"))},a);function a(){var t=null!==r&&r.apply(this,arguments)||this;return t._shift=0,t}e.default=i},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".concat(d[0]," ").concat(d[1],"\n\t\t\t\t").concat(d[2]," ").concat(d[3],"\n\t\t\t\t").concat(d[4]," ").concat(d[5]):5===u?"L".concat(d[0]," ").concat(d[1]):"S".concat(d[0]," ").concat(d[1],"\n\t\t\t\t").concat(d[2]," ").concat(d[3]):c=(c+=e?"L":"M")+(5===u?"".concat(d[0]," ").concat(d[1]):"".concat(d[u-2]," ").concat(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)for(var o,r,e=0|e,s=Math.max(0<=e?e:n-Math.abs(e),0);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!((e="number"!=typeof 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 this.indexOf(t,e=e||0)===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){var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;this.path.push(document,window)}return 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}),e.Chart=e.setTheme=e.awaitRedraw=e.resizeHandler=e.vmdom=void 0,i(73),i(74);var n=i(0),o=(e.vmdom={sv:n.sv},i(0)),r=(Object.defineProperty(e,"resizeHandler",{enumerable:!0,get:function(){return o.resizeHandler}}),Object.defineProperty(e,"awaitRedraw",{enumerable:!0,get:function(){return o.awaitRedraw}}),Object.defineProperty(e,"setTheme",{enumerable:!0,get:function(){return o.setTheme}}),i(79));Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r.Chart}})},function(t,e,i){"use strict";i.r(e)},function(t,e,i){"use strict";i.r(e)},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(76),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(23))},function(t,e,i){!function(t,f){!function(i,r){"use strict";var n,s,a,o,l,c,e,t;function d(t){delete s[t]}function u(t){if(a)setTimeout(u,0,t);else{var e=s[t];if(e){a=!0;try{var i=e,n=i.callback,o=i.args;switch(o.length){case 0:n();break;case 1:n(o[0]);break;case 2:n(o[0],o[1]);break;case 3:n(o[0],o[1],o[2]);break;default:n.apply(r,o)}}finally{d(t),a=!1}}}}function h(){function t(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(e)&&u(+t.data.slice(e.length))}var e="setImmediate$"+Math.random()+"$";i.addEventListener?i.addEventListener("message",t,!1):i.attachEvent("onmessage",t),l=function(t){i.postMessage(e+t,"*")}}i.setImmediate||(n=1,a=!(s={}),o=i.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&t.setTimeout?t:i,"[object process]"==={}.toString.call(i.process)?l=function(t){f.nextTick(function(){u(t)})}:!function(){var t,e;if(i.postMessage&&!i.importScripts)return t=!0,e=i.onmessage,i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}()?l=i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){u(t.data)},function(t){e.port2.postMessage(t)}):o&&"onreadystatechange"in o.createElement("script")?(c=o.documentElement,function(t){var e=o.createElement("script");e.onreadystatechange=function(){u(t),e.onreadystatechange=null,c.removeChild(e),e=null},c.appendChild(e)}):function(t){setTimeout(u,0,t)}:h(),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 s[n]={callback:t,args:e},l(n),n++},t.clearImmediate=d)}("undefined"==typeof self?void 0===t?this:t:self)}.call(this,i(23),i(77))},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")}try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return(i=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)}}}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){for(var t=s(u),e=(c=!0,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)(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 i=[function(t,o,r){"use strict";!function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.setTheme=o.awaitRedraw=o.resizeHandler=o.resizer=o.disableHelp=o.KEYED_LIST=o.inject=o.create=o.view=o.sv=o.el=void 0;var e=r(78),n=r(2);function i(i){function e(t){var e=t.el.offsetHeight,t=t.el.offsetWidth;i(t,e)}var n=window.ResizeObserver;return n?(0,o.el)("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n(function(){return e(t)}).observe(t.el)}}}):(0,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(0,o.create)({render:function(){return i(e)}}).mount(t)},o.awaitRedraw=function(){return new t(function(t){requestAnimationFrame(function(){t()})})},o.setTheme=function(t,e){void 0===t&&(t="light");var i="data-dhx-theme";e||document.querySelectorAll("[".concat(i,"]")).forEach(function(t){return t.removeAttribute(i)}),e=e||document.documentElement,(0,n.toNode)(e).setAttribute(i,t)}}.call(this,r(14))},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)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.getTextLines=e.getCloneObject=e.rgbToHex=e.getStringWidth=e.getMinArrayNumber=e.getMaxArrayNumber=e.isEmptyObj=e.isType=e.compare=e.debounce=e.downloadFile=e.isNumeric=e.range=e.isId=e.isDefined=e.wrapBox=e.unwrapBox=e.detectWidgetClick=e.singleOuterClick=e.isEqualString=e.findIndex=e.naturalSort=e.copy=e.extend=e.uid=void 0,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){function i(t){e(t)&&document.removeEventListener("click",i)}document.addEventListener("click",i)},e.detectWidgetClick=function(e,i){function t(t){return i((0,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.isId=function(t){return"number"==typeof t||"string"==typeof t&&""!==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,t=new Blob([t],{type:i});window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(t,e):(n=document.createElement("a"),o=URL.createObjectURL(t),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]))break;return!1;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.getMaxArrayNumber=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.getMinArrayNumber=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=(e.font&&(n.font=e.font),n.measureText(t).width);return(0,r.isIE)()||i.remove(),e};e.rgbToHex=function(t){var e,i;return"#"===t.substr(0,1)?t:"rgb"===t.substr(0,3)?(t=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t),e=parseInt(t[2],10).toString(16).padStart(2,"0"),i=parseInt(t[3],10).toString(16).padStart(2,"0"),t=parseInt(t[4],10).toString(16).padStart(2,"0"),"#".concat(e).concat(i).concat(t)):void 0},e.getCloneObject=function t(e){if(!e)return e;var i,n=Array.isArray(e)?[]:{};for(i in e){var o=e[i];o instanceof Date?n[i]=new Date(o):n[i]="object"==typeof o?t(o):o}return n},e.getTextLines=function(t,e,i){for(var n=e.split(" "),o="",r="",s=[],a=0;a<n.length;a++)r+="".concat(n[a]," "),i<t.measureText(r.trimEnd()).width&&0<a?(s.push(o),o="".concat(n[a]," "),r="".concat(n[a]," ")):o+="".concat(n[a]," "),a===n.length-1&&s.push(o);return s}},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.getPageLinksCss=e.getPageInlineCss=e.getLabelStyle=e.getPageCss=e.fitPosition=e.calculatePosition=e.getRealPosition=e.isFirefox=e.isSafari=e.isIE=e.getScrollbarHeight=e.getScrollbarWidth=e.getBox=e.locateNodeByClassName=e.locate=e.locateNode=e.eventHandler=e.toNode=void 0,e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector("[data-cell-id=".concat(t,"]"))||document.querySelector(t)||(null==(e=document.querySelector("[data-dhx-root-id=".concat(t,"]")))?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(t=n(t,e=void 0===e?"data-dhx-id":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 t=t.getBoundingClientRect(),e=document.body,i=window.pageYOffset||e.scrollTop,n=window.pageXOffset||e.scrollLeft;return{top:t.top+i,left:t.left+n,right:e.offsetWidth-t.right,bottom:e.offsetHeight-t.bottom,width:t.right-t.left,height:t.bottom-t.top}};var o=-1;e.getScrollbarWidth=function(){var t;return-1<o||(t=document.createElement("div"),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,s=d(),a=s.rightBorder,s=s.bottomBorder-t.bottom-e.height,l=t.top-e.height;if("bottom"===e.mode?0<=s?i=t.bottom:0<=l&&(i=l):0<=l?i=l:0<=s&&(i=t.bottom),s<0&&l<0){if(e.auto)return u(t,c(c({},e),{mode:"right",auto:!1}));i=l<s?t.bottom:l}return{left:e.centering?(s=t,l=e.width,n=a,o=(l-(t.right-t.left))/2,r=t.left-o,s=t.right+o,0<=r&&s<=n?r:r<0?0:n-l):(o=a-t.left-e.width,s=t.right-e.width,0<=o||!(0<=s)&&o<s?t.left:s),top:i}}function u(t,e){var i,n,o=d(),r=o.rightBorder,o=o.bottomBorder,s=r-t.right-e.width,a=t.left-e.width;if("right"===e.mode?0<=s?i=t.right:0<=a&&(i=a):0<=a?i=a:0<=s&&(i=t.right),a<0&&s<0){if(e.auto)return l(t,c(c({},e),{mode:"bottom",auto:!1}));i=s<a?a:t.right}return{left:i,top:e.centering?(s=t,a=e.height,i=r,r=(a-(t.bottom-t.top))/2,n=t.top-r,s=t.bottom+r,0<=n&&s<=i?n:n<0?0:i-a):(r=t.bottom-e.height,!(0<=(s=o-t.top-e.height))&&(0<r||s<r)?r:t.top)}}function a(t,e){var t=("bottom"===e.mode||"top"===e.mode?l:u)(t,e),i=t.left,t=t.top;return{left:Math.round(i)+"px",top:Math.round(t)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){var t;return-1<r||(t=document.createElement("div"),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("".concat(r.selectorText," {\n").concat(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"),i="text"!==i&&t.required;return!!(e||i||o&&!r||n&&!r)&&{style:(o||n)&&!r&&{width:n,"max-width":"100%"},label:o&&r?null:o}};var h=function(t){return t.href&&!t.href.startsWith(window.location.origin)};e.getPageInlineCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++){var i=document.styleSheets[e];if(!h(i))for(var n=("cssRules"in i&&i.cssRules.length?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push("".concat(r.selectorText," {\n").concat(r.style.cssText,"\n}\n"))}}return t.join("\n")},e.getPageLinksCss=function(t){var e=[];if(t)t.forEach(function(t){return e.push('<link href="'.concat(t,'" rel="stylesheet"/>'))});else for(var i=0;i<document.styleSheets.length;i++){var n=document.styleSheets[i];h(n)&&e.push('<link href="'.concat(n.href,'" rel="stylesheet"/>'))}return e.join("\n")}},function(t,n,e){"use strict";var r,s,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)},a=(Object.defineProperty(n,"__esModule",{value:!0}),n.checkPositions=n.superposition=n.getSizesSVGText=n.getScales=n.getClassesForRotateScale=n.calcPointRef=n.verticalBottomText=n.verticalTopText=n.verticalCenteredText=n.roundToTwoNumAfterPoint=n.euclideanDistance=n.getRadialGradient=n.linearGradient=n.getFontStyle=n.getColorShade=n.getTextWidth=n.log10=n.locator=n.getDefaultColor=void 0,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(e?l:i)[t=void 0===t?0: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),[(t=e.getImageData(1,1,1,1).data)[0],t[1],t[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){var i=(t=d(t).map(function(t){return Math.floor(t*e+255*(1-e))}))[0],n=t[1],t=t[2];return"rgb(".concat(i,",").concat(n,",").concat(t,")")},n.getFontStyle=c(function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=(e.setAttribute("class","dhx_chart"),document.createElementNS("http://www.w3.org/2000/svg","text")),t=(i.setAttribute("class",t),e.setAttribute("visibility","hidden"),i.textContent="test",e.appendChild(i),document.body.appendChild(e),getComputedStyle(i)),i="".concat(t.fontSize," ").concat(t.fontFamily);return document.body.removeChild(e),i}),n.linearGradient=function(t,e){return t=t.stops.map(function(t){return(0,a.sv)("stop",{offset:"".concat(100*t.offset,"%"),"stop-color":t.color,"stop-opacity":t.opacity||1})}),(0,a.sv)("linearGradient",{id:e,gradientTransform:"rotate(90)"},t)},n.getRadialGradient=function(t,e,i){return e=e.map(function(t){return(0,a.sv)("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}),(0,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(0,a.sv)("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},n.verticalTopText=function(t){return(0,a.sv)("tspan",{dy:"-0.5ex"},t)},n.verticalBottomText=function(t){return(0,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((0,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),i=Math.sqrt(Math.pow(i,2)-Math.pow((e-o.dy)*i/n,2)),i=o.right?i:-i,o.changeSector&&(i*=-1,o.line*=-1,t.class=o.right?"pie-value end-text":"pie-value start-text"),o.text1.x=i,o.text1.y=e,o.text2.x=i,o.text2.y=e+16)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Split=e.GridSelectionEvents=e.GridSystemEvents=e.GridEvents=e.HeaderFilterEvent=void 0,(e.HeaderFilterEvent={}).change="change",e.GridEvents={scroll:"scroll",expand:"expand",filterChange:"filterChange",beforeFilter:"beforeFilter",beforeResizeStart:"beforeResizeStart",resize:"resize",afterResizeEnd:"afterResizeEnd",cellClick:"cellClick",cellRightClick:"cellRightClick",cellMouseOver:"cellMouseOver",cellMouseDown:"cellMouseDown",cellDblClick:"cellDblClick",headerCellClick:"headerCellClick",footerCellClick:"footerCellClick",headerCellMouseOver:"headerCellMouseOver",footerCellMouseOver:"footerCellMouseOver",headerCellMouseDown:"headerCellMouseDown",footerCellMouseDown:"footerCellMouseDown",headerCellDblClick:"headerCellDblClick",footerCellDblClick:"footerCellDblClick",headerCellRightClick:"headerCellRightClick",footerCellRightClick:"footerCellRightClick",beforeEditStart:"beforeEditStart",afterEditStart:"afterEditStart",beforeEditEnd:"beforeEditEnd",afterEditEnd:"afterEditEnd",beforeKeyDown:"beforeKeyDown",afterKeyDown:"afterKeyDown",beforeColumnHide:"beforeColumnHide",afterColumnHide:"afterColumnHide",beforeColumnShow:"beforeColumnShow",afterColumnShow:"afterColumnShow",beforeRowHide:"beforeRowHide",afterRowHide:"afterRowHide",beforeRowShow:"beforeRowShow",afterRowShow:"afterRowShow",beforeRowDrag:"beforeRowDrag",dragRowStart:"dragRowStart",dragRowOut:"dragRowOut",dragRowIn:"dragRowIn",canRowDrop:"canRowDrop",cancelRowDrop:"cancelRowDrop",beforeRowDrop:"beforeRowDrop",afterRowDrop:"afterRowDrop",afterRowDrag:"afterRowDrag",beforeColumnDrag:"beforeColumnDrag",dragColumnStart:"dragColumnStart",dragColumnOut:"dragColumnOut",dragColumnIn:"dragColumnIn",canColumnDrop:"canColumnDrop",cancelColumnDrop:"cancelColumnDrop",beforeColumnDrop:"beforeColumnDrop",afterColumnDrop:"afterColumnDrop",afterColumnDrag:"afterColumnDrag",beforeRowResize:"beforeRowResize",afterRowResize:"afterRowResize",beforeSort:"beforeSort",afterSort:"afterSort"},e.GridSystemEvents={cellTouchMove:"cellTouchMove",cellTouchEnd:"cellTouchEnd",headerCellTouchMove:"headerCellTouchMove",headerCellTouchEnd:"headerCellTouchEnd"},e.GridSelectionEvents={beforeUnSelect:"beforeUnSelect",afterUnSelect:"afterUnSelect",beforeSelect:"beforeSelect",afterSelect:"afterSelect"},e.Split={left:"leftSplit",right:"rightSplit",top:"topSplit",bottom:"bottomSplit"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventsMixin=e.EventSystem=void 0;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={}};var n=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,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(11),e),o(i(37),e),o(i(84),e),o(i(85),e),o(i(15),e),o(i(126),e),o(i(12),e),o(i(40),e),o(i(39),e),o(i(127),e),o(i(38),e),o(i(24),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scrollFixedColsAndRows=e.getTotalHeight=e.getTotalWidth=e.isHtmlEnable=e.isTooltip=e.isContentTooltip=e.showTooltip=e.isAutoWidth=e.isSortable=e.isRowEmpty=e.isCssSupport=e.removeHTMLTags=e.getStyleByClass=e.transpose=void 0;var o=i(1),n=i(2),r=i(43);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="'.concat(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:(0,o.rgbToHex)(t.color),background:"rgba(0, 0, 0, 0)"===t.backgroundColor?n.background:(0,o.rgbToHex)(t.backgroundColor),fontSize:Math.round(parseFloat(t.fontSize)),bold:["bold","700","600","500"].includes(t.fontWeight)},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?"":"".concat(null==t?"":t).replace(/<[^>]*>/g,"").replace(/["]/g,""").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){var i;return t?!1!==t.autoWidth&&e.autoWidth||t.autoWidth:(i=!1,e.columns.map(function(t){(!1!==t.autoWidth&&e.autoWidth||t.autoWidth)&&(i=!0)}),i)},e.showTooltip=function(t){var e=t.node,i=t.value,t=void 0!==(t=t.htmlEnable)&&t;e&&(0,r.tooltip)(i.toString(),{css:"dhx_grid_tooltip",node:e,htmlEnable:t})},e.isContentTooltip=function(t,e,i,n){for(var o=!1,n="header"===n?t.headerTooltip:t.footerTooltip,r=[t.tooltip,n,e.tooltip,null==i?void 0:i.tooltip],s=0;s<r.length;s++)"boolean"==typeof r[s]&&(o=r[s]);return o},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=(0,n.locateNode)(t,"data-dhx-widget-id").querySelector(".dhx_grid-body"),i=t.deltaY,t=t.shiftKey?[i,0]:[0,i];null!=e&&e.scrollBy.apply(e,t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toViewLike=e.View=void 0;var n=i(1),o=i(2);function r(t,e){this.config=e||{},this._uid=null!=(e=this.config.rootId)?e:(0,n.uid)()}r.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=(0,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())},e.View=r,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";var n=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},v=(Object.defineProperty(e,"__esModule",{value:!0}),e.getEditorOptions=e.toFormat=e.getMaxColsWidth=e.getTreeCellWidthOffset=e.getCalculatedRowHeight=e.getMaxRowHeight=e.getUnique=e.calculatePositions=e.countColumns=e.normalizeColumns=void 0,i(1)),k=i(7),T=i(13);function l(t,e){t[e]&&("string"==typeof t[e]?t[e]=[{text:"".concat(t[e])}]:t[e]=t[e].map(function(t){return t="string"==typeof 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(a&&(t.footer=t.footer||[]),t.header.length<n)for(var e=0;e<n;e++)t.header[e]=t.header[e]||{text:""};if(t.footer){if(t.footer.length<o)for(e=0;e<o;e++)t.footer[e]=t.footer[e]||{text:""};for(e=0;e<t.footer.length;e++)t.footer[e].id||(t.footer[e].id=(0,v.uid)())}t.header=t.header.map(function(t){return(t="object"!=typeof t?{text:t}:t).css=t.css||"",t.text||t.css.includes("dhx_cell-empty")||(t.css+=" dhx_cell-empty"),t.id||(t.id=(0,v.uid)()),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=n.leftSplit?n.columns.slice(0,n.leftSplit).filter(function(t){return!t.hidden}).length:0,c=null!=(c=n.topSplit)?c:0,d=null!=(d=n.rightSplit)?d:0,u=null!=(u=n.bottomSplit)?u:0,h=0,f=i.left,p=n.$totalWidth/s,g=0;g<s;g++){var _=r[g];if(!_.hidden){if(!(0<(f-=_.$width)+p/2))break;h++}}for(var v=0,m=i.top,y=n.$totalHeight/l,g=0;g<l;g++){var x=a[g];if(!x.hidden){if(!(0<(m-=x.$height)+y/2))break;v++}}for(var b=0,w=0,C=-1/0,S=1/0,E=0;E<s;E++){var D=r[E];h<=E&&b<t&&!D.hidden&&(b+=D.$width,w++),D.$width>C&&(C=D.$width),D.$width<S&&(S=D.$width)}for(var O=0,k=0,T=-1/0,M=1/0,E=0;E<l;E++){x=a[E];v<=E&&O<e&&!x.hidden&&(O+=x.$height,k++),x.$height>T&&(T=x.$height),x.$height<M&&(M=x.$height)}var M=M<n.rowHeight?M:n.rowHeight,i=Math.round(C/S),P=Math.round(T/M),H=h+w+i,n=(n.leftSplit||0)-o,d=r.length-d-n,n=v+k+P,u=a.length-u;return{xStart:o<=h-i?h-i:o,xEnd:H<d?H:d,yStart:c<=v-P?v-P:c,yEnd:n<u?n:u}},e.getUnique=function(t,e,i){var n=t.map(function(t){return t[e]});return i&&n.forEach(function(t,e){"string"==typeof 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&&(0,v.isDefined)(t)}).sort()};e.getMaxRowHeight=function(t,e,i){void 0===i&&(i={font:"14px Arial",lineHeight:20});for(var n=document.createElement("canvas"),o=n.getContext("2d",{alpha:!1}),r=(o.font=i.font,{}),s=e.length,a=0;a<s;a++)e[a].template?r[e[a].id]={width:e[a].$width-16||0,htmlEnable:e[a].$htmlEnable,template:e[a].template,cols:e[a]}:r[e[a].id]={width:e[a].$width-16||0,htmlEnable:e[a].$htmlEnable};for(var l=[],c=[],d=0,u=Object.entries(t);d<u.length;d++){var h,f,p=u[d],g=p[0],p=p[1];!r[g]||"id"===g||"height"===g||g.startsWith("$")||"string"!=typeof p&&"number"!=typeof p||(h="",h=null!=(f=r[g])&&f.template?(f=r[g].template(p,t,r[g].cols),r[g].htmlEnable?(0,k.removeHTMLTags)(f):f):"string"==typeof p?r[g].htmlEnable?(0,k.removeHTMLTags)(p):p:p.toString(),1<(f=Math.ceil(o.measureText(h).width/r[g].width))&&(f=(0,v.getTextLines)(o,h,null==(p=r[g])?void 0:p.width).length),c.push(f),l.push(h.split("\n").length))}var _=Math.max((0,v.getMaxArrayNumber)(l),(0,v.getMaxArrayNumber)(c));return n.remove(),_*i.lineHeight+8},e.getCalculatedRowHeight=function(t,e){var i=(e=void 0===e?{rowHeight:40,padding:8}: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){for(var o=document.createElement("canvas"),r=o.getContext("2d",{alpha:!1}),s=(r.font=i.font,{}),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,b=v[_],w=b[0],C=b[1],b=s[w];b&&"id"!==w&&"height"!==w&&!w.startsWith("$")&&("string"==typeof C||"number"==typeof C||C instanceof Date)&&(d=b.template,y=b.cols,h=b.format,p=b.type,x=b.htmlEnable,b=b.width,m=void 0,m="function"==typeof d?(y=d(C,t[l],y),x?(0,k.removeHTMLTags)(y):y):x?(0,k.removeHTMLTags)(C):C.toString(),null!=(y=h&&"date"===p&&new Date(m))&&y.valueOf()&&(m=(0,T.getFormattedDate)(h,y)),b<(x=r.measureText(m).width))&&(s[w].width=x)}o.remove();for(var S={},E=0,D=Object.entries(s);E<D.length;E++){var O=D[E],w=O[0],C=O[1];S[w]=Math.ceil(C.width)}return S}},e.toFormat=function(t,e,i){if("boolean"==typeof t)return t;if(!t&&"number"!=typeof t)return t;var n,o,r,s,a,l;switch(e){case"number":case"percent":return i=i||"#",(0,v.isDefined)(t)&&!isNaN(Number(t))?(n=e,s=i.replace(/#+/g,"#").split("#").filter(function(t){return t}),a=i.match(/0/g)&&i.match(/0/g).length,t=("percent"===n?100*Number(t):t).toString(),l=Math.trunc(Number(t)),a&&(r=t.split(".")[1]||"0",o=s.find(function(t){return t.includes("0")}).replace(/0+/g,""),r=Number("0."+r).toFixed(a),1<=Number(r)&&l++,r=r.toString().split(".")[1].padEnd(a,"0")),a="".concat(t<0&&0===Math.abs(l)?"-":"").concat(l),s=(l=s.find(function(t){return!t.includes("0")}))?a.replace(/(\d)(?=(\d{3})+(\D|$))/g,"$1".concat(l)):a,s+=(o||"")+(r||""),"percent"===n?"".concat(s,"%"):s):t;case"date":return i=i||"%M %d %Y","string"==typeof t?t=(0,T.getFormattedDate)(i,(0,T.stringToDate)(t,i)):"object"==typeof t&&(t=(0,T.getFormattedDate)(i,t)),t;default:return t}},e.getEditorOptions=function(t,e){return n(n([],("function"==typeof t.options?t.options(t,e):t.options)||[],!0),t.$customOptions||[],!0)}},function(t,C,e){"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)},d=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},E=(Object.defineProperty(C,"__esModule",{value:!0}),C.proRender=C.render=C.applyAutoWidth=C.getEvents=C.getElementSizes=C.getRenderConfig=C.getCurrFixedCols=C.calcScrollBarWidth=C.BORDERS=void 0,e(0)),u=e(2),c=e(9),D=e(7),O=e(4),k=e(16),T=e(59),M=e(60),f=e(1);function P(t,e,i){void 0===e&&(e=!1);var n=t.headerHeight,n=void 0===n?t.$headerLevel*t.headerRowHeight:n,o=t.footerHeight,o=void 0===o?t.$footerLevel*t.footerRowHeight:o,o=t.$totalHeight+n+o+C.BORDERS>(null!=(n=null==i?void 0:i.height)?n:t.$height),n=!o||e?0:(0,u.getScrollbarWidth)(),i=t.$totalWidth+C.BORDERS+n>(null!=(i=null==i?void 0:i.width)?i:t.$width);return{x:!i||e?0:(0,u.getScrollbarWidth)(),y:n,xState:i,yState:o}}function h(t,e){return t[e]?(e===O.Split.left?t.columns.slice(0,t.leftSplit):t.columns.slice(-t.rightSplit)).filter(function(t){return!t.hidden}):[]}function H(t,e,i){var n=t.config,o=n.columns.filter(function(t){return!t.hidden}),i=(0,c.calculatePositions)(i.width,i.height,t._scroll,n,e),r=o.slice(i.xStart,i.xEnd),s=e.slice(i.yStart,i.yEnd),a={left:h(n,O.Split.left),right:h(n,O.Split.right)},l={top:e.slice(0,n.topSplit||0),bottom:n.bottomSplit?e.slice(-n.bottomSplit):[]};return S(S({},n),{data:e,columns:n.columns,scroll:t._scroll,$positions:i,headerHeight:n.$headerLevel*n.headerRowHeight,footerHeight:n.$footerLevel*n.footerRowHeight,firstColId:o[0]&&o[0].id,events:t.events,_events:t._events,filteredColumns:o,currentColumns:r,currentRows:s,fixedColumns:a,fixedRows:l,sortBy:t._sortBy,sortDir:t._sortDir,content:t.content,gridId:t._uid,$renderFrom:"render"})}function L(t){var e,i;if(t&&(t=t.tagName?t:t._parent._container))return i=t.currentStyle||window.getComputedStyle(t),e=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)||0,i=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)||0,{width:t.clientWidth-e,height:t.clientHeight-i}}function p(t,r){var e,s=t.currentColumns,a=t.currentRows,l=t.fixedRows,c=t.fixedColumns,i=t.eventHandlers,n={};if(i)for(var o in i)i.hasOwnProperty(o)&&(e=i[o],n[o]=(0,u.eventHandler)(function(t){var e,i,n=(0,u.locate)(t,"data-dhx-id"),o=(0,u.locate)(t,"data-dhx-col-id");switch(r){case O.Split.left:case O.Split.right:e=d(d(d([],l.top,!0),l.bottom,!0),a,!0).find(function(t){return t.id.toString()===n}),i=d(d([],c.left,!0),c.right,!0).find(function(t){return t.id===o});break;case O.Split.top:case O.Split.bottom:e=d(d([],l.top,!0),l.bottom,!0).find(function(t){return(null==t?void 0:t.id.toString())===n}),i=d(d(d([],c.left,!0),c.right,!0),s,!0).find(function(t){return t.id===o});break;default:e=a.find(function(t){return t.id.toString()===n}),i=s.find(function(t){return t.id===o})}return{row:n?e:{},col:o?i:{}}},S({},e)));return n}function j(t,e){var i,n=(0,k.getCells)(t),o=t.filteredColumns,r=t.$resizing,s=t.$totalHeight,a=t.$totalWidth,l=t.leftSplit,c=t.data,d=t.$positions,u=(0,k.getSpans)(t);r&&(i=(0,f.findIndex)(o,function(t){return t.id===r}),o=(0,D.getTotalWidth)(o.slice(0,i))+o[i].$width,i=(0,E.el)(".dhx_grid-resize-line",{style:{top:0,left:o,height:s}}));var o="string"==typeof(o=t.selection?t.selection.toHTML():null)?(0,E.el)("div.dhx_selection",{".innerHTML":o}):o,h=p(t);return(0,E.el)(".dhx_data-wrap",S({style:{height:s,width:a,"padding-left":e.x,"padding-top":e.y},role:"presentation"},h),[(0,E.el)(".dhx_grid_data".concat(l?".dhx_grid_fixed_left":""),S(S({_flags:E.KEYED_LIST},(0,k.getHandlers)(d.yStart,d.xStart,t)),{role:"rowgroup","aria-rowcount":c.length}),n),(0,E.el)(".dhx_span-spans",S({role:"presentation"},(0,k.getHandlers)(d.yStart,d.xStart,t)),u),(0,E.el)(".dhx_grid_selection",{_ref:"selection","aria-hidden":"true"},[o,i])])}function R(t,e,i){i=i.height-C.BORDERS,i=e?i:i-t.headerHeight;return!t.$footer||e?i:i-t.footerHeight}function I(e,t,o,r,i){void 0===o&&(o=!0),void 0===r&&(r=!1);var s,n=!(i=void 0===i?!1:i)&&e.$totalHeight>=t.height-e.headerRowHeight?(0,u.getScrollbarWidth)():0,a=t.width-C.BORDERS-n,n=e.columns.filter(function(t){return!t.hidden}),l=n.filter(function(t){return!t.width&&!t.$fixed&&(0,D.isAutoWidth)(e,t)}),c=(0,D.getTotalWidth)(n.filter(function(t){return t.width||t.$fixed||!(0,D.isAutoWidth)(e,t)})),d=l.reduce(function(t,e){return t+(e.gravity||1)},0);a<e.$totalWidth?(s=l.reduce(function(t,e){return t+(e.maxWidth||e.$width)},0),l.length&&l.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)})):l.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&&I(e,t,!1,r,i)}C.BORDERS=2,C.calcScrollBarWidth=P,C.getCurrFixedCols=h,C.getRenderConfig=H,C.getElementSizes=L,C.getEvents=p,C.applyAutoWidth=I,C.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&&(l=L(t.node.parent.el),e.config.$width=l.width,e.config.$height=l.height);var r,s,a,l,c,d,u,h,f,p,g,_,v,m,y,x,b=e.config;return b?b.columns.length?(l=e.data.getRawData(0,-1,null,2),b.columns.reduce(function(t,e){return e.hidden&&t},!0)?b.$totalHeight=0:b.$totalHeight=l.reduce(function(t,e){return t+(e.$height||0)},0),a=L(e._container),s=b.$width||(b.width&&"number"==typeof b.width?b.width:null==a?void 0:a.width),a=b.$height||(b.height&&"number"==typeof b.height?b.height:null==a?void 0:a.height),r={width:s||0,height:a||0},(0,D.isAutoWidth)(b)&&(I(b,r),b.$totalWidth=(0,D.getTotalWidth)(b.columns.filter(function(t){return!t.hidden}))),b.$width=r.width,b.$height=r.height,(s=H(e,l,r)).selection=n,s.datacollection=e.data,a=(0,k.getShifts)(s),s.$scrollBarWidth=P(s),n=R(s,l=(0,D.isCssSupport)("position","sticky"),r),d=(0,M.getFixedRows)(s,S(S({},c={wrapper:r,sticky:l,shifts:a,gridBodyHeight:n}),{name:"header",position:"top"})),u=s.$footer?(0,M.getFixedRows)(s,S(S({},c),{name:"footer",position:"bottom"})):null,h=s.$totalWidth+C.BORDERS<r.width?"dhx_grid-less-width":"",f=s.$totalHeight+C.BORDERS<r.height?"dhx_grid-less-height":"",p=s.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",g=b.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"",t.node||(t=e.getScrollState(),_=t.x,v=t.y,(0,E.awaitRedraw)().then(function(){e.scroll(_,v)})),(0,E.el)(".dhx_grid.dhx_widget",S({class:(s.css||"")+(l?"":" dhx_grid_border")+(b.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":o,"data-dhx-root-id":b.rootParent},(t=s.data,m=b.columns,y=s.editable,x=s.multiselection,{role:"grid","aria-rowcount":t.length,"aria-colcount":m.filter(function(t){return!t.hidden}).length,"aria-readonly":y?"false":"true","aria-multiselectable":x?"true":"false"})),[(0,E.resizer)(function(t){return(0,D.isAutoWidth)(e.config)&&t&&(b.$totalWidth=0,I(b,r,!0,!0)),e.paint()}),(0,E.el)(".dhx_grid-content",{style:S({},r),onclick:i.onclick,onmouseover:i.onmouseover,class:"".concat(h," ").concat(f," ").concat(p," ").concat(g).trim(),role:"presentation"},[l?null:d,(0,E.el)(".dhx_grid-body",{style:{height:n,width:r.width-C.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[(0,E.el)("div",{},[l?d:null,j(s,a),l?u:null])]),(0,T.getFixedColsHeader)(s,c,O.Split.left),(0,T.getFixedColsHeader)(s,c,O.Split.right),(0,T.getFixedCols)(s,c,O.Split.left),(0,T.getFixedCols)(s,c,O.Split.right),(0,M.getFixedDataRows)(s,c,O.Split.top),(0,M.getFixedDataRows)(s,c,O.Split.bottom),l?null:u])])):(0,E.el)(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":b.rootParent,role:"empty-grid"}):(0,E.el)("div")},C.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&&(s=L(t.node.parent.el),e.config.$width=s.width,e.config.$height=s.height);var r,s,a,l,c,d,u,h,f,p,g,_,v,m,y,x,b,w=e.config;return w?w.columns.length?(h=e.data.getRawData(0,-1,null,2),w.columns.reduce(function(t,e){return e.hidden&&t},!0)?w.$totalHeight=0:w.$totalHeight=h.reduce(function(t,e){return t+(e.$height||0)},0),f=L(e._container),"auto"===e.config.height&&(r=w,s=s||f,a=(d=e)._container,l=r.$headerLevel*r.headerRowHeight,u=r.$footerLevel*r.footerRowHeight,l=l+(u&&1+u)+r.$totalHeight+C.BORDERS,a=a?(a=(u=window.getComputedStyle(a)).minHeight,u=u.maxHeight,l<=parseFloat(a)?parseFloat(a):l>=parseFloat(u)?parseFloat(u):l+P(r,!(null==(a=d.scrollView)||!a.config.enable),s).x):l+(s?P(r,!(null==(u=d.scrollView)||!u.config.enable),s).x:0)),l=w.$width||(w.width&&"number"==typeof w.width?w.width:null==f?void 0:f.width),r=w.$height||(w.height&&"number"==typeof w.height?w.height:null==f?void 0:f.height),c={width:l||0,height:("auto"===e.config.height?a:r)||0},(0,D.isAutoWidth)(w)&&(I(w,c,!0,!1,e.scrollView&&e.scrollView.config.enable),w.$totalWidth=(0,D.getTotalWidth)(w.columns.filter(function(t){return!t.hidden}))),w.$width=c.width,w.$height=c.height,(d=H(e,h,c)).selection=n,d.datacollection=e.data,u=(0,k.getShifts)(d),d.$scrollBarWidth=P(d,!(null==(f=e.scrollView)||!f.config.enable)),n=R(d,h=(0,D.isCssSupport)("position","sticky"),c),p=(0,M.getFixedRows)(d,S(S({},f={wrapper:c,sticky:h,shifts:u,gridBodyHeight:n}),{name:"header",position:"top"})),g=d.$footer?(0,M.getFixedRows)(d,S(S({},f),{name:"footer",position:"bottom"})):null,_=d.$totalWidth+C.BORDERS<c.width?"dhx_grid-less-width":"",v=d.$totalHeight+C.BORDERS<c.height?"dhx_grid-less-height":"",m=d.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",y=w.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"",t.node||(t=e.getScrollState(),x=t.x,b=t.y,(0,E.awaitRedraw)().then(function(){e.scroll(x,b)})),t=(0,E.el)("div",{},[h?p:null,j(d,u),h?g:null]),(0,E.el)(".dhx_grid.dhx_widget",{class:(d.css||"")+(h?"":" dhx_grid_border")+(w.multiselection?" dhx_no-select--pointer":""),style:{height:null!=a?a:null},"data-dhx-widget-id":o,"data-dhx-root-id":w.rootParent,role:"grid","aria-rowcount":d.data.length,"aria-colcount":w.columns.filter(function(t){return!t.hidden}).length},[(0,E.resizer)(function(t){return(0,D.isAutoWidth)(e.config)&&t&&(w.$totalWidth=0,I(w,c,!0,!0)),e.paint()}),(0,E.el)(".dhx_grid-content",{style:S({},c),onclick:i.onclick,onmouseover:i.onmouseover,class:"".concat(_," ").concat(v," ").concat(m," ").concat(y).trim(),role:"presentation"},[h?null:p,(0,E.el)(".dhx_grid-body",{style:{height:n,width:c.width-C.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[e.scrollView&&e.scrollView.config.enable?e.scrollView.render([t]):t]),(0,T.getFixedColsHeader)(d,f,O.Split.left),(0,T.getFixedColsHeader)(d,f,O.Split.right),(0,T.getFixedCols)(d,f,O.Split.left),(0,T.getFixedCols)(d,f,O.Split.right),(0,M.getFixedDataRows)(d,f,O.Split.top),(0,M.getFixedDataRows)(d,f,O.Split.bottom),h?null:g])])):(0,E.el)(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":w.rootParent,role:"empty-grid"}):(0,E.el)("div")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataDriver=e.DragEvents=e.DataEvents=e.TreeFilterType=void 0,e.TreeFilterType={all:"all",level:"level",leafs:"leafs"},e.DataEvents={afterAdd:"afteradd",beforeAdd:"beforeadd",removeAll:"removeall",beforeRemove:"beforeremove",afterRemove:"afterremove",change:"change",filter:"filter",dataRequest:"dataRequest",load:"load",loadError:"loaderror",beforeLazyLoad:"beforelazyload",afterLazyLoad:"afterlazyload",beforeItemLoad:"beforeItemLoad",afterItemLoad:"afterItemLoad"},e.DragEvents={beforeDrag:"beforeDrag",dragStart:"dragStart",dragOut:"dragOut",dragIn:"dragIn",canDrop:"canDrop",cancelDrop:"cancelDrop",beforeDrop:"beforeDrop",afterDrop:"afterDrop",afterDrag:"afterDrag"},e.DataDriver={json:"json",csv:"csv",xml:"xml"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isOnlyPermanentFilters=e.hasJsonOrArrayStructure=e.isTreeCollection=e.copyWithoutInner=e.toDataDriver=e.toProxy=e.dhxError=e.dhxWarning=e.isDebug=e.findByConf=e.naturalCompare=e.isEqualObj=void 0;var n=i(1),o=i(15),r=i(38);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(),i=i[0]-r[0]||i[1].localeCompare(r[1]);if(i)return i}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 o.DataProxy(t):"object"==e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,e=e&&e.dataDrivers||r.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}},e.isOnlyPermanentFilters=function(e){return!(!e||(0,n.isEmptyObj)(e))&&Object.keys(e).every(function(t){return null==(t=e[t].config)?void 0:t.permanent})}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DateHelper=r.stringToDate=r.getFormattedDate=r.locale=void 0;var v,i=e(1),s=e(1),n=(r.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"},{"%d":function(t){t=t.getDate();return t<10?"0"+t:t},"%j":function(t){return t.getDate()},"%l":function(t){return r.locale.days[t.getDay()]},"%D":function(t){return r.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 r.locale.monthsShort[t.getMonth()]},"%F":function(t){return r.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(t=0===t?12:t)<10?"0"+t:t},"%g":function(t){t=t.getHours()%12;return t=0===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,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,e,i,n){var o=(0,s.findIndex)(r.locale.monthsShort,function(t){return t===e});if(n)return-1!==o;-1===o?t.setMonth(0):t.setMonth(o),-1!==o&&t.getMonth()!==o&&t.setMonth(o)},"%F":function(t,e,i,n){var o=(0,s.findIndex)(r.locale.months,function(t){return t===e});if(n)return-1!==o;-1===o?t.setMonth(0):t.setMonth(o),-1!==o&&t.getMonth()!==o&&t.setMonth(o)},"%y":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e,i,n){var o=/(^([0-9][0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,i,n){var o=/(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,i,n){var o=/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e,i,n){var o=/(^[0-2][0-9]$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e,i,n){var o=/(^[1-9][0-9]?$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e,i,n){var o=/(^([0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e,i,n){if(n)return"pm"===e||"am"===e;"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e,i,n){if(n)return"PM"===e||"AM"===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 o(e,t,i){if("string"==typeof e){for(var n,o=y(t=t.replace(/(?<=[a-z])%a/i,function(t){return e=e.replace(/(am|pm)/i," $&")," "+t})),r=[],s=0,a=null,l="Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html",c=0;c<o.length;c++)if(o[c].type===v.separator){var d=e.indexOf(o[c].value,s);if(-1===d){if(i)return!1;throw new Error(l)}a&&(r.push({formatter:a,value:e.slice(s,d)}),a=null),s=d+o[c].value.length}else if(o[c].type===v.datePart){if(o[c+1]&&o[c+1].type!==v.separator){if(i)return!1;throw new Error(l)}a=o[c].value}"%A"===a||"%a"===a?r.unshift({formatter:a,value:e.slice(s)}):a&&r.push({formatter:a,value:e.slice(s)}),r.reverse();for(var u=0,h=r;u<h.length;u++)"%A"!==(f=h[u]).formatter&&"%a"!==f.formatter||(n=f.value);for(var f,p=new Date(0),g=0,_=r;g<_.length;g++)if(m[(f=_[g]).formatter]){if(i&&!m[f.formatter](p,f.value,n,i))return!1;m[f.formatter](p,f.value,n)}return!!i||p}}(e=v=v||{})[e.separator=0]="separator",e[e.datePart=1]="datePart",r.getFormattedDate=function(t,i){return y(t).reduce(function(t,e){return e.type===v.separator?t+e.value:n[e.value]?t+n[e.value](i):t},"")},r.stringToDate=o;r.DateHelper=(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(0,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?o(t,e):new Date(t)},a.nullTimestampDate=new Date(0),a);function a(){}},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=[],a=((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)},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();var o;return n instanceof Array?(o=new u,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.reject(TypeError())},u.race=function(n){if(1!=this._d)throw TypeError();var o;return n instanceof Array?0==n.length?new u:(o=new u,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.reject(TypeError())},u._d=1,t.exports=u}()}.call(this,i(23),i(75).setImmediate)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataProxy=void 0;var n=i(24);function o(t,e){this.url=this._url=t,this.config=e}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+="".concat(i,"=").concat(encodeURIComponent(e[i]),"&");this.url=this.url.slice(0,-1)},o.prototype.load=function(){return n.ajax.get(this.url,void 0,{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);default:return n.ajax.post(this.url,t)}},e.DataProxy=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)},X=(Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeSpan=e.getShifts=e.getSpans=e.getCells=e.getTreeCell=e.getHandlers=void 0,i(1)),q=i(0),U=i(21),K=i(7),J=i(4),n=i(92),c=i(2),Z=i(9),Q=i(10);function o(t,e,i,n,o){e=(0,c.locateNodeByClassName)(o.target,"dhx_grid-fixed-cols-wrap")?0:e;var r,s,a,e=(0,c.locateNodeByClassName)(o.target,"dhx_grid-cell"),l=(0,c.locateNodeByClassName)(o.target,"dhx_span-cell");(e||l)&&n&&(r=e?e.parentNode:l,s=(e||l).getAttribute("data-dhx-col-id"),e=i.filteredColumns.find(function(t){return t.id===s}),a=r.getAttribute("data-dhx-id"),l=(i.$data||i.data).find(function(t){return t.id.toString()===a}),(n.toLocaleLowerCase().includes("touch")?i._events:i.events).fire(n,[l,e,o]))}function _(t,e,i,n){var o=n.$editable&&n.$editable.row===e.id&&n.$editable.col===i.id,r=!n.fixedColumns.left.length||"leftFixedCols"===n.$renderFrom,s=i.align?"dhx_align-".concat(i.align):"dhx_align-left",a="",o=(r&&(a="dhx_tree-cell ".concat(i.$cellCss[e.id]||""," ").concat(s),e.$items&&(a+=" dhx_grid-expand-cell"),o&&(a+=" dhx_tree-editing-cell"),n.dragMode)&&!o&&(a+=(e.$drophere?" dhx_grid-cell--drophere":"")+(e.$dragtarget?" dhx_grid-cell--dragtarget":"")),(0,Z.getTreeCellWidthOffset)(e));return(0,q.el)(".dhx_grid-cell",y({class:a,style:{width:i.$width,height:e.$height,padding:e.$items?0:"0 0 0 ".concat(o,"px")},"data-dhx-col-id":i.id},{role:"gridcell","aria-colindex":1}),r?[e.$items?(0,q.el)(".dhx_grid-expand-cell-icon",y(y({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 ".concat(4+o,"px"):"0 0 0 4px"}})):null,(0,q.el)(".dhx_tree-cell",{class:s+"".concat(n.autoHeight?" dhx_tree-cell_auto-height":"")},[t])]:null)}function tt(t,e,i){return(0,n.getEditor)(t,e,i)}function et(t){var e=t.$scrollBarWidth,i=t.$headerLevel*t.headerRowHeight,n=t.$footerLevel*t.footerRowHeight,o=t.$totalWidth-t.$width+Q.BORDERS+e.y,i=t.$totalHeight-t.$height+i+n+Q.BORDERS+e.x;return{x:0<o?o-t.scroll.left:0,y:0<i?i-t.scroll.top:0}}e.getHandlers=function(t,e,i){return{onclick:[o,t,e,i,J.GridEvents.cellClick],onmouseover:[o,t,e,i,J.GridEvents.cellMouseOver],onmousedown:[o,t,e,i,J.GridEvents.cellMouseDown],ondblclick:[o,t,e,i,J.GridEvents.cellDblClick],oncontextmenu:[o,t,e,i,J.GridEvents.cellRightClick],ontouchstart:[o,t,e,i,J.GridEvents.cellMouseDown],ontouchmove:[o,t,e,i,J.GridSystemEvents.cellTouchMove],ontouchend:[o,t,e,i,J.GridSystemEvents.cellTouchEnd]}},e.getTreeCell=_,e.getCells=function(h){var f,o,r,p,g,s,t;return h.data&&h.filteredColumns?(f=h.$positions,o=h.data?h.data.slice(f.yStart,f.yEnd):[],r=h.filteredColumns.slice(f.xStart,f.xEnd),p=h.selection.getCell(),g=!0,(t=document.querySelector(".dhx_drag-ghost"))&&(t=Array.from(t.querySelectorAll(".dhx_grid-row")).map(function(t){return Number(t.getAttribute("aria-rowindex"))-1})).length&&(s=t.map(function(t){return h.data[t]}).filter(function(e){return e&&!o.find(function(t){return t.id===e.id})}),o.push.apply(o,s)),o.map(function(u,t){var e=null==s?void 0:s.some(function(t){return t.id===u.id}),i=o.length-1===t,n="";return h.rowCss&&(n=h.rowCss(u)),u.$css&&(n+=u.$css),(0,q.el)(".dhx_grid-row",y({style:{height:i?u.$height+1:u.$height,display:e?"none":null},"data-dhx-id":u.id,class:n,_key:u.id,_flags:q.KEYED_LIST},e?{}:{role:"row","aria-rowindex":f.yStart+t+1}),u.$customRender?[u.$customRender(u,h)]:r.map(function(t,e){var i,n,o,r,s,a,l,c,d;if(!t.hidden)return d=u[t.id],i=(0,Z.getEditorOptions)(t,u),(t.editable||h.editable&&!1!==t.editable)&&("select"===t.editorType||"combobox"===t.editorType||"multiselect"===t.editorType)&&i&&(d=(d="string"==typeof d&&"multiselect"===t.editorType?d.split(",").map(function(t){return t.trim()}):[null==d?void 0:d.toString()]).map(function(e){var t;return null!=(t=null==(t=i.find(function(t){return t.id&&t.id.toString()===e}))?void 0:t.value)?t:e}).join(", ")),d=(0,Z.toFormat)(d,t.type,t.format),n=function(t,e){var i={tabindex:-1};return p?p.row.id===e.id&&p.column.id===t.id&&(i.tabindex=0):g&&(i.tabindex=0,i.onfocus=function(t){var e;h.selection&&!p&&(e=t.target.parentNode.getAttribute("data-dhx-id"),t=t.target.getAttribute("data-dhx-col-id"))&&e&&(h.selection.setCell(e,t),p=h.selection.getCell())}),g=!1,i},"string"==typeof(d=t.template?t.template(d,u,t):"boolean"!=typeof(d=d)&&"boolean"!==t.type||"string"==typeof d?d||0===d?d:"":"".concat(Boolean(d)))&&(d=(0,K.isHtmlEnable)(h,t)?(0,q.el)("div.dhx_grid-cell__content",y({".innerHTML":d},{role:"button","aria-label":"Edit content"})):d),o="".concat(t.$cellCss&&t.$cellCss[u.id]||""," dhx_").concat(t.type,"-cell").replace(/\s+/g," "),r=t.$width,s=h.$editable&&h.$editable.row===u.id&&h.$editable.col===t.id&&!h.$editable.isSpan,c=h.leftSplit,a=h.filteredColumns,(s||"boolean"===t.type&&(h.editable&&(null==(l=t.editable)||l)||!h.editable&&t.editable))&&(d=tt(u,t,h).toHTML(),o+=" dhx_grid-cell__editable",c===a.indexOf(t)+1)&&--r,"tree"===h.type&&h.firstColId===t.id?_(d,u,t,h):(h.dragMode&&!s&&(o+=(u.$drophere?" dhx_grid-cell--drophere":"")+(u.$dragtarget?" dhx_grid-cell--dragtarget":"")),t.align&&(o+=" dhx_align-".concat(t.align)),(0,K.isHtmlEnable)(h,t)&&(o+=" dhx_grid-cell__content_html-enable"),h.autoHeight&&(o+=" dhx_grid-cell__content_auto-height"),(0,q.el)(".dhx_grid-cell",y({class:o,style:{width:r,height:u.$height+"px"},_key:t.id,"data-dhx-col-id":t.id},(l=f.xStart+e+1,c=h.editable,y({role:"gridcell","aria-colindex":l,"aria-readonly":c?"false":"true"},n(t,u)))),[d]))}))})):[]},e.getSpans=function(A,F){var $,N=[],V=A.columns,W=A.filteredColumns,z=A.data,t=A.spans,B=A.bottomSplit;if(!W.length||!t)return null;for(var G=A.fixedColumns.right.length,Y=t.filter(function(t){return null==(t=t.$renderFrom)?void 0:t.includes(A.$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<Y.length;e++)!function(t){var e=Y[t].row,i=Y[t].column,n=Y[t].rowspan||1,o=Y[t].colspan||1,r=Y[t].text,s=Y[t].css,a=Y[t].$markCss,l=Y[t].$type,c=F===J.Split.bottom&&A.$renderFrom.endsWith("FixedCols"),d=c?A.$data:z,u=(0,X.findIndex)(W,function(t){return"".concat(t.id)==="".concat(i)}),h=(0,X.findIndex)(d,function(t){return"".concat(t.id)==="".concat(e)});if(u<0||h<0)return;if(c){var I=A.$data[h+n-1];if(!z.find(function(t){return t.id===(null==I?void 0:I.id)}))return}var f=W[u],p=d[h];if(f.hidden)return;var g=void 0,r=(g=(0,X.isDefined)(r)?r.toString():void 0===p[i]?"":(0,Z.toFormat)(p[i],f.type,f.format),g=(f.template||function(t,e,i){return t||0===t?t:""})(g,p,f),(0,K.isHtmlEnable)(A,f)),r=(g="string"==typeof g?(0,q.el)("div.dhx_span-cell-content",{".innerHTML":r?g:null},r?null:g):g,void 0),_=(r="bottomFixedRows"===A.$renderFrom||c?h<(c=d.length-B)?-(0,K.getTotalHeight)(d.slice(h,c)):(0,K.getTotalHeight)(d.slice(c,h)):(0,K.getTotalHeight)(d.slice(0,h))-(F?0:1),0);if("rightFixedCols"===A.$renderFrom)c=W.length-A.fixedColumns.right.length,_=u<c?-(0,K.getTotalWidth)(W.slice(u,c)):(0,K.getTotalWidth)(W.slice(c,u));else for(var v=u-1;0<=v;v--)_+=W[v].$width;var m,y,x,b,w,C,S,E,D,O,k,c=p.$items&&0===u,T=u===W.length-1,M=u+(0,U.getReducedColspan)(V,i,o)===W.length,P=G&&u===W.length-G,H=F===J.Split.bottom&&A.fixedRows.bottom.find(function(t){return t.id===e}),L=B&&h+n>d.length-B,j=G&&u+o===W.length-G,R=f.header[0].text?" dhx_span-cell":" dhx_span-cell dhx_span-cell--title",a=(R=(R=(R=(R=(R=(R=(R=(R+=c?" dhx_span-expand-cell":"")+(a?" ".concat(a):""))+(s?" ".concat(s):""))+(0===h?" dhx_span-first-row":"")+(h+n===d.length?" dhx_grid__span_bottom--last-row":""))+(0===u||P?" dhx_span-first-col":"")+(T||M?" dhx_span-last-col":""))+(1===o?" dhx_span-".concat(f.type||"string","-cell"):" dhx_span-string-cell"))+(f.align?" dhx_align-".concat(f.align):" dhx_".concat(l,"-cell"))+(H?" dhx_grid__span_bottom--all-fixed":""))+(L?" dhx_grid__span_bottom--part-fixed":"")+(j?" dhx_grid__span_right--before-fixed":""),(0,X.findIndex)(V,function(t){return t.id===i})),s=1<o?(0,U.getWidth)(V,o,a):f.$width,P=void 0,l=(1<n?(P=(0,U.getHeight)(d,n,h),F===J.Split.top&&A.$renderFrom.endsWith("FixedCols")&&0<(T=h+n-d.length)&&(M=A.fixedRows.top.length,P+=(0,K.getTotalHeight)(A.$data.slice(M,M+T)))):P=p.$height,null);((null==($=A.$editable)?void 0:$.isSpan)&&A.$editable.row===e&&A.$editable.col===i||"boolean"===f.type&&(A.editable&&(null==($=f.editable)||$)||!A.editable&&f.editable))&&(H=A.topSplit,j=(L=A.fixedColumns.left.length)&&u+o<=L||G&&u>=W.length-G,a=h<(H||0)||h+n>d.length-(B||0),M=H&&h+n<=H||B&&h>=d.length-B,T=u<(L||0)||u+o>W.length-(G||0),"render"===A.$renderFrom||j&&!a||M&&!T)&&(H=A.$height,a=A.$scrollBarWidth,T=A.scroll,m=A.fixedRows,y=A.fixedColumns,t=Y[t].text,x=0,g=tt(p,f,A).toHTML(t),R+=" dhx_span__editable",M||(t=A.$headerLevel*A.headerRowHeight,S=A.$footerLevel*A.footerRowHeight,b=(0,K.getTotalHeight)(m.top),k=(0,K.getTotalHeight)(m.bottom),S=(H=a.yState?H-t-S-a.x-Q.BORDERS:A.$totalHeight)-k<(t=r+P-T.top),(w=r-b<T.top)&&S&&a.xState&&(x=1),r=w?T.top+b-(b&&!j?1:0):r,P=S?H-r-k+T.top-x:w?t-b:P),"render"===A.$renderFrom&&(l=12,y.left.find(function(t){return t.id===i})&&(_=T.left+(0,K.getTotalWidth)(y.left.slice(0,u)),j||(C=(0,K.getTotalWidth)(y.left.slice(u,L)),s=s-T.left>C?s-T.left:C)),m.top.find(function(t){return t.id===e})&&(r=T.top+(0,K.getTotalHeight)(m.top.slice(0,h)),M||(O=(0,K.getTotalHeight)(A.fixedRows.top.slice(h,A.topSplit)),P=0<P?O+P-x:O)),y.right.find(function(t){return t===W[W.indexOf(f)+o-1]})&&(E=W.length,D=et(A),C=(a=E-W.indexOf(f)-o)?(0,K.getTotalWidth)(y.right.slice(0,-a)):(0,K.getTotalWidth)(y.right),S=(0,K.getTotalWidth)(W.slice(u,E-G)),_=D.x>S?_-D.x+S:_,j||(s=D.x<S?s-D.x-1:C-1)),m.bottom.find(function(t){return t===d[d.indexOf(p)+n-1]}))&&(E=d.length,D=et(A),O=(H=E-d.indexOf(p)-n)?(0,K.getTotalHeight)(m.bottom.slice(0,-H)):(0,K.getTotalHeight)(A.fixedRows.bottom),k=(0,K.getTotalHeight)(d.slice(h,E-B)),r=D.y>k?r-D.y+k:r,M||(P=D.y<k?O+P-x-(H?-1:x?0:1):O-(H?-1:1))),L===u+1&&--s,u===W.length-G)&&(_+=1,--s),N.push((0,q.el)("div",{class:R,style:{width:s,height:P,top:r,left:_,zIndex:l},"data-dhx-col-id":i,"data-dhx-id":e,"aria-hidden":"true"},[c?(0,q.el)(".dhx_span-expand-cell-icon",{class:p.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":p.id,role:"button","aria-label":p.$opened?"Collapse group":"Expand group",style:{padding:"0 0 0 ".concat(4+(0,Z.getTreeCellWidthOffset)(p),"px")}}):null,g]))}(e);return N},e.getShifts=function(t){var e=t.filteredColumns.slice(0,t.$positions.xStart),t=t.data.slice(0,t.$positions.yStart);return{x:(0,K.getTotalWidth)(e),y:(0,K.getTotalHeight)(t)}},e.normalizeSpan=function(t,e){var i=void 0===(i=e.topSplit)?0:i,n=void 0===(n=e.bottomSplit)?0:n,o=e.data,r=e.columns,s=(0,Q.getCurrFixedCols)(e,J.Split.left).length,e=(0,Q.getCurrFixedCols)(e,J.Split.right).length,a=t.column,l=t.row,c=t.colspan,d=t.rowspan,u=r.findIndex(function(t){return t.id==a}),h=(0,X.isDefined)(t.text)?"string":r[u].type,f=o.findIndex(function(t){return t.id==l}),d=f+(d?d-1:0),p=[],g=u<s,_=f<i,v=(c=u+(c?c-1:0))>=r.length-e,m=d>=o.length-n;return s<=c&&i<=d&&u<r.length-e&&f<o.length-n&&p.push("render"),g&&p.push("leftFixedCols"),v&&p.push("rightFixedCols"),!_||g||v?_&&!p.includes("render")&&p.push("render"):p.push("topFixedRows"),!m||g||v?m&&!p.includes("render")&&p.push("render"):p.push("bottomFixedRows"),y(y({},t),{$renderFrom:p,$type:h})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChartEvents=void 0,e.ChartEvents={toggleSeries:"toggleSeries",chartMouseMove:"chartMouseMove",chartMouseLeave:"chartMouseLeave",resize:"resize",serieClick:"serieClick",seriaMouseMove:"seriaMouseMove",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)},v=(Object.defineProperty(e,"__esModule",{value:!0}),e.radarScale=e.pieLikeHandlers=e.shiftCoordinates=e.getCoordinates=void 0,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(".concat(e,", ").concat(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".concat(-t,",0A").concat(t,",").concat(t," 0 ").concat(e?0:1," 1 ").concat(t,",0A").concat(t,",").concat(t," 0 ").concat(e?0:1," 1 ").concat(-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!=="".concat(o,"-text")&&t.attrs.id!=="".concat(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!=="".concat(i,"-text")&&t.attrs.id!=="".concat(i,"-connector")||n(t.el)})}},e.radarScale=function(t,e,i){for(var n,a=e<i?e/2:i/2,l=1/t.scales.length,c=.5<l?1:0,d=[],o=(o=a,n="#fafafa",(0,v.sv)("circle",{cx:0,cy:0,r:o,fill:n,stroke:"none",class:"background-circle"})),u=(d.push(o),-.25),r=[],s=t.axis,h="radar-grid ".concat(t.zebra?"zebra":""),f=1;f<s.length;f+=2){var p=a*s[f-1],g=a*s[f],p="".concat(b(p,!0)," ").concat(b(g,!1)),g=(0,v.sv)("path",{d:p,fill:"none",stroke:"black",class:h});r.push(g)}return d.push(r),t.scales.forEach(function(t){var e,i=y(u,a,a),n=i[0],i=i[1],o=u+l,r=y(o,a,a),s=r[0],r=r[1],s="M ".concat(n," ").concat(i," A ").concat(a," ").concat(a," 0 ").concat(c," 1 ").concat(s," ").concat(r," L 0 0"),r=(0,v.sv)("path",{d:s,stroke:"black",fill:"none",class:"radar-scale"}),s=(d.push(r),[8,8]),r=s[0],s=s[1],r=x(u,0)||x(u,.5)?0:u<0||.5<u?-r:r,s=x(u,-.25)||x(u,.25)?0:u<-.25||.25<u?-s:s;n=x(u,-.25)||x(u,.25)?(e=x(u,-.25)?m.verticalTopText:m.verticalBottomText,(0,v.sv)("text",{x:n+s,y:i+r,class:"scale-text"},[e(t)])):(e=-.25<=u&&u<=.25?"start-text scale-text":"end-text scale-text",(0,v.sv)("text",{x:n+s,y:i+r,class:e},[(0,m.verticalCenteredText)(t)])),d.push(n),u=o}),u=-.25,t.realAxis&&(n=t.realAxis.map(function(t,e){var e=y(-.25,a*s[e],a*s[e]),i=e[0],e=e[1];return(0,v.sv)("text",{x:i,y:e,dx:-10,class:"radar-axis-text"},[(0,m.verticalCenteredText)(t.toString())])}),d.push(n)),(0,v.sv)("g",_({transform:"translate(".concat(e/2,", ").concat(i/2,")")},(o=t.attribute,{"aria-label":"x-axis".concat(o?", "+o:"")})),d)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),r=i(17),s=i(3),n=i(63),a=i(13);function l(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||(0,o.uid)(),this._events=i,this._points=[],this._setDefaults(e)}l.prototype.toggle=function(){this.config.active=!this.config.active},l.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]);s<i[0]&&(i[0]=s,i[1]=r[0],i[2]=r[1],i[3]=r[2])}return i},l.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);r<e[0]&&(e[0]=r,e[1]=o[0],e[2]=o[1],e[3]=o[2],e[4]=o[4])}return e},l.prototype.getTooltipType=function(t){return"top"},l.prototype.getTooltipText=function(e){var t,i,n;return(this._data.getItem(e)||"calendarHeatMap"===this.config.type)&&this.config.tooltip?(n=t=void 0,"calendarHeatMap"===this.config.type?(n=this._points.find(function(t){return t[2]===e.toString()}))&&((i=new Date).setTime(n[0]),n=[(0,a.getFormattedDate)(this.config.dateFormat,i),n[1]]):t=this._defaultLocator(this._data.getItem(e)),this.config.tooltipTemplate?this.config.tooltipTemplate(t||n):t?t[0]:"".concat(n[1],", <br>").concat(n[0])):void 0},l.prototype.dataReady=function(t){return this._points=[]},l.prototype.paint=function(t,e){return this._calckFinalPoints(t,e)},l.prototype.getPoints=function(){return this._points},l.prototype.addScale=function(t,e){},l.prototype._getClosestDist=function(t,e,i,n){return(0,s.euclideanDistance)(t,e,i,n)},l.prototype._calckFinalPoints=function(t,e){},l.prototype._setDefaults=function(t){this.config=t},l.prototype._defaultLocator=function(t){return[null,null]},l.prototype._getPointType=function(t,e){return(0,n.getShadeHelper)(t,e)},e.default=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.focusManager=void 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=(0,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}),e.getReducedColspan=e.getHeight=e.getWidth=void 0,e.getWidth=function(t,e,i){return t.slice(i,i+(e||1)).filter(function(t){return!t.hidden}).reduce(function(t,e){return t+e.$width},0)},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.getReducedColspan=function(t,e,i){var n=t.findIndex(function(t){return t.id===e});return t.slice(n,n+(i||1)).filter(function(t){return!t.hidden}).length}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionEvents=void 0,e.SelectionEvents={beforeUnSelect:"beforeunselect",afterUnSelect:"afterunselect",beforeSelect:"beforeselect",afterSelect:"afterselect"}},function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";!function(c){Object.defineProperty(e,"__esModule",{value:!0}),e.ajax=void 0;var d=i(11),u=i(12);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+(o.includes("?")?"&":"?")+t),r=null),window.fetch?("application/json"===l["Content-Type"]&&r&&"object"==typeof r&&(r=JSON.stringify(r)),window.fetch(o,{method:s,body: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=(0,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=(0,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;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(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyManager=void 0;var r=i(20),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"};function n(t){var o=this;this._keysStorage={},this._initHandler=function(t){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,(0,s.isIE)()&&l[e]||e);var e,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)}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?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},e.KeyManager=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageContainerPosition=e.Position=e.RealPosition=void 0,e.RealPosition={left:"left",right:"right",top:"top",bottom:"bottom",center:"center"},e.Position={right:"right",bottom:"bottom",center:"center",left:"left",top:"top"},e.MessageContainerPosition={topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right"}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(28),e),o(i(101),e),o(i(29),e)},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0,i(29)),a=i(46),l=i(0),i=(o=a.Cell,r(c,o),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(){var t,e;return this._isViewLayout?(t=[this.getCell(this.config.activeView).toVDOM()],o.prototype.toVDOM.call(this,t)):(e=[],this._inheritTypes(),this._cells.forEach(function(t){t=t.toVDOM();Array.isArray(t)?e=e.concat(t):e.push(t)}),o.prototype.toVDOM.call(this,e))},c.prototype.removeCell=function(e){var t;this.events.fire(s.LayoutEvents.beforeRemove,[e])&&((t=this.config.parent||this)!==this?t.removeCell(e):((t=this.getCell(e))&&(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._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.progressShow=function(){this._progress=!0,this.paint()},c.prototype.progressHide=function(){this._progress=!1,this.paint()},c.prototype._getCss=function(t){var e,i=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",n=this.config.align?" "+i+"--"+this.config.align:"";return t?i+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:""):(t=this.config.parent?o.prototype._getCss.call(this):"dhx_widget dhx_layout",e=this.config.parent?"":" dhx_layout-cell",t+(this.config.full?e:" "+i)+n)},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=new(t.rows||t.cols||t.views?(t.parent=this._root,c):a.Cell)(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},c.prototype._haveCells=function(t){return t?(t=this._root._all[t])._cells&&0<t._cells.length: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=o.call(this,t,e)||this;return i._root=i.config.parent||i,i._all={},i._parseConfig(),i._progress=!1,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=(0,l.create)({render:function(){return i.toVDOM()}},i),i.mount(t,e)),i}e.Layout=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutEvents=void 0,e.LayoutEvents={beforeShow:"beforeShow",afterShow:"afterShow",beforeHide:"beforeHide",afterHide:"afterHide",beforeResizeStart:"beforeResizeStart",resize:"resize",afterResizeEnd:"afterResizeEnd",beforeAdd:"beforeAdd",afterAdd:"afterAdd",beforeRemove:"beforeRemove",afterRemove:"afterRemove",beforeCollapse:"beforeCollapse",afterCollapse:"afterCollapse",beforeExpand:"beforeExpand",afterExpand:"afterExpand"}},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ScrollView=i.scrollViewConfig=void 0;var s=e(1),o=e(0),v=e(2),e=(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(!this.config.enable||!t.length)return t;(e=void 0===e?"":e)&&(this._uid=e);var n=this.config.enable?[(0,o.el)(".y-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-y-area-".concat(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),[(0,o.el)(".scroll-runner",{_ref:e?"scroll-y-runner-".concat(e):"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),(0,o.el)(".x-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-x-area-".concat(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),[(0,o.el)(".scroll-runner",{_ref:e?"scroll-x-runner-".concat(e):"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return(0,o.el)(".scroll-view-wrapper",[(0,o.el)(".scroll-view",{onscroll:this._handlers.onscroll,_ref:e?"scroll-view-".concat(e):"scroll-view",_hooks:{didInsert:function(){i.update()},didRecycle:function(){i.update()}},style:{width:"calc(100% + ".concat(this._scrollWidth,"px)"),height:"calc(100% + ".concat(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=(0,s.debounce)(function(){i.style.opacity=0,e.style.width="6px",n.style.opacity=0,t.style.height="6px"},this.config.timeout)):this._autoHideFunc=(0,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-".concat(this._uid)]||!t.refs["scroll-x-runner-".concat(this._uid)]&&!t.refs["scroll-y-runner-".concat(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-".concat(this._uid)].el,areaY:t.refs["scroll-y-area-".concat(this._uid)].el,areaX:t.refs["scroll-x-area-".concat(this._uid)].el,runnerY:t.refs["scroll-y-runner-".concat(this._uid)].el,runnerX:t.refs["scroll-x-runner-".concat(this._uid)].el}:void 0},n);function n(t,e){var _=this;this.config=(0,s.extend)({enable:i.scrollViewConfig.enable,autoHide:i.scrollViewConfig.autoHide,timeout:i.scrollViewConfig.timeout,scrollHandler:i.scrollViewConfig.scrollHandler},e=void 0===e?{}:e),this._wheelName=(0,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=(0,v.getScrollbarWidth)(),this._scrollHeight=(0,v.getScrollbarHeight)(),this._handlers=((e={onscroll:function(t){_.config.scrollHandler(t),_.update()}})[this._wheelName]=function(t){var e=!!(0,v.locateNodeByClassName)(t.target,"y-scroll");t.preventDefault();var i,t=40*(0<(t.deltaY||-t.wheelDelta)?1:-1),n=_._getRefs().area;e?(e=n.scrollHeight-_._runnerHeight,i=_._scrollYTop+t,n.scrollTop=i<0?0:e<i?e:i):(e=n.scrollWidth-_._runnerWidth,i=_._scrollXLeft+t,n.scrollLeft=i<0?0:e<i?e:i),_.update()},e.onmousedownRunner=function(t){t.preventDefault();var i=!!(0,v.locateNodeByClassName)(t.target,"y-scroll"),e=_._getRefs(),n=e.area,o=e.runnerY,e=e.runnerX,r=n.getBoundingClientRect(),s=r.top+window.pageYOffset,a=r.bottom+window.pageYOffset,l=n.scrollHeight-_._runnerHeight,c=t.pageY-o.getBoundingClientRect().top-window.pageYOffset,d=r.left+window.pageXOffset,u=r.right+window.pageXOffset,h=n.scrollWidth-_._runnerWidth,f=t.pageX-e.getBoundingClientRect().left-window.pageXOffset,p=function(t){var e;i?(e=t.pageY-c,n.scrollTop=e<=s?0:a<e?l:(e-s)/_._visibleYArea):(e=t.pageX-f,n.scrollLeft=e<=d?0:u<e?h:(e-d)/_._visibleXArea),_.update()},g=function(){document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",g),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",p),document.addEventListener("mouseup",g)},e.onmousedownArea=function(t){var e,i,n,o;(0,v.locateNodeByClassName)(t,"scroll-runner")||(t.preventDefault(),e=!!(0,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())},e.onmouseenter=function(t){var e,i;(0,v.locateNodeByClassName)(t,"scroll-runner")||(i=_._getRefs())&&(t=!!(0,v.locateNodeByClassName)(t.target,"y-scroll"),e=i.areaX,i=i.areaY,t&&0<_._runnerHeight?i.style.background="#eee":!t&&0<_._runnerWidth&&(e.style.background="#eee"))},e.onmouseleave=function(t){var e,i;(0,v.locateNodeByClassName)(t,"scroll-runner")||(i=_._getRefs())&&(t=!!(0,v.locateNodeByClassName)(t.target,"y-scroll"),e=i.areaX,i=i.areaY,t&&0<_._runnerHeight?i.style.background="transparent":!t&&0<_._runnerWidth&&(e.style.background="transparent"))},e)}i.ScrollView=e},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(105),e),o(i(47),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListEvents=void 0,e.ListEvents={click:"click",doubleClick:"doubleclick",focusChange:"focuschange",beforeEditStart:"beforeEditStart",afterEditStart:"afterEditStart",beforeEditEnd:"beforeEditEnd",afterEditEnd:"afterEditEnd",itemRightClick:"itemRightClick",itemMouseOver:"itemMouseOver",contextmenu:"contextmenu"}},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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.Scale=void 0,i(134)),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};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))}l.prototype.addPadding=function(){this._padding=!0},l.prototype.getSize=function(){return this.config.size},l.prototype.scaleReady=function(t){var e=[],i=(this._charts.forEach(function(t){t.getPoints().forEach(function(t){return e.push(t[1])})}),this._axis=new o.AxisCreator(e,this.config).getScale(),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 t,n=this;return this.config.hidden?null:(0===(t=this._axis.steps.map(function(t){return[n._isXDirection?n.point(t)*e:n.point(t)*i,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);return h[l](r,t,e,{targetLine:o,dashed:d,grid:c,targetValue:s,hidden:u})}}},l.prototype._setDefaults=function(t){t.locator&&(this.locator=(0,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 o=-1!==o?o/n:((this._axis.min<0?i.indexOf(0):0)+e*(0,s.log10)(Math.abs(t)))/n,this._isXDirection?o:1-o},e.Scale=l},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),i(3)),i=i(19),i=(o=i.default,r(a,o),a.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=e.locator):(this.yScale=e,this._yLocator=(0,s.locator)(this.config.value))},a.prototype.paint=function(t,e){o.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),t=[i,n,t.id,i,n];return o&&(t[1]+=o[e][1]),t}),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!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),i(3)),i=i(19),i=(o=i.default,r(l,o),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){var n,o,r;return e.$hidden||(n=s._textLocator(e),r=(o=s._valueLocator(e))/s._sum,i=s._colorLocator?s._colorLocator(e):(0,a.getDefaultColor)(i),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)return t=this._defaultLocator(this._data.getItem(t)),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=s(s({},t),e),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=(0,a.locator)(e.value),this._textLocator=(0,a.locator)(e.text),e.color?this._colorLocator=(0,a.locator)(e.color):e.monochrome&&(this._colorLocator=function(t){return(0,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!==o&&o.apply(this,arguments)||this;return t._center=[0,0],t._tooltipData=[],t}e.default=i},function(t,e,i){"use strict";var n,a,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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)},c=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),d=i(3),i=i(34),i=(a=i.default,o(r,a),r.prototype.paint=function(t,e){var i,r=this,n=(a.prototype.paint.call(this,t,e),this.config.pointColor||this.config.color),o="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(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],(0,d.calcPointRef)(t[2],r.id))}).map(function(t,e){var i,n,o;return t&&t.attrs&&(t.attrs=l(l({},t.attrs),(i=t.key,n=r._points,{role:"graphics-symbol","aria-roledescription":"point","aria-label":(o=i?n.find(function(t){return i.includes(t[2])}):o)?"point x=".concat(o[3]," y=").concat(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}))),(0,c.sv)("g",l(l({class:"seria",_key:this.id},(o=this.config,{"aria-label":"chart ".concat(o.value||"")})),{tabindex:0}),s)},r.prototype._getForm=function(t,e,i,n,o){t=t.map(function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])}).join(" ");return(0,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=l(l({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},r);function r(){return null!==a&&a.apply(this,arguments)||this}e.default=i},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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.DataCollection=void 0,i(5)),r=i(80),s=i(83),a=i(15),c=i(12),d=i(11),p=i(1);function u(t,e){var n=this;this._filters={},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?(0,c.dhxError):(0,c.dhxWarning))(t)},0)}),this._reset()}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]))return t=Array.isArray(t)?t.map(function(t,e){return 0!==e&&(i+=1),n._add(t,i)}):this._add(t,i),this._reapplyFilters(!0),t},u.prototype.remove=function(t){var e=this;t instanceof Array?n([],t,!0).map(function(t){e._remove(t)}):(0,p.isId)(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?(0,c.isEqualObj)(e,n)||((0,p.isId)(e.id)&&t!==e.id?((0,c.dhxWarning)("this method doesn't allow change id"),(0,c.isDebug)()):(e.parent&&n.parent&&e.parent!==n.parent&&this.move(t,-1,this,e.parent),(0,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._reapplyFilters(!0)):(0,c.dhxWarning)("item not found")},u.prototype.getIndex=function(e){return(0,p.isId)(e)&&(0,p.isDefined)(this._pull[e])?(0,p.findIndex)(this._order,function(t){return t&&t.id.toString()===e.toString()}):-1},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===e&&(e=this._order.length),(0,p.isNumeric)(t=void 0===t?0:t)&&(0,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,i){var n,o;if(this.isDataLoaded()){if(null!=e&&e.$restore&&(t=this._normalizeFilters(t||this._filters)),!(null!=e&&e.add||(this._order=this._initOrder||this._order,(this._initOrder=null)!=e&&e.$restore)))for(var r in this._filters){var s=this._filters[r];null!=(n=s.config)&&n.permanent?this._applyFilters(s.rule):delete this._filters[r]}if(!t||null!=e&&e.$restore||(o=(null==e?void 0:e.id)||(0,p.uid)(),this._filters[o]={rule:t,config:e||{}}),t&&"function"!=typeof t)if((0,p.isDefined)(t.by))this._applyFilters(t);else for(var r in t)this._applyFilters(t[r]);else this._applyFilters(t);return i||(e=this._getPureFilters(this._filters),this.events.fire(d.DataEvents.filter,[(0,p.isEmptyObj)(e)?null:e])),o}(0,c.dhxWarning)("the method doesn't work with lazyLoad")},u.prototype.resetFilter=function(t,e){var i,n=t||{},o=n.id,n=n.permanent;if((0,p.isEmptyObj)(t))for(var r in this._filters)null!=(i=this._filters[r].config)&&i.permanent||delete this._filters[r];else n?this._filters={}:o&&delete this._filters[o];return this.filter(null,{$restore:!0},e),(0,p.isEmptyObj)(this._getPureFilters(this._filters))},u.prototype.getFilters=function(t){t=this.getRawFilters(t),t=t?this._getPureFilters(t):{};return(0,p.isEmptyObj)(t)?null:t},u.prototype.getRawFilters=function(t){var n=this._filters;return null!=t&&t.permanent&&(n=Object.keys(n).reduce(function(t,e){var i;return null!=(i=n[e].config)&&i.permanent&&(t[e]=n[e]),t},{})),(0,p.isEmptyObj)(n)?null:n},u.prototype.find=function(t){for(var e in this._pull){e=(0,c.findByConf)(this._pull[e],t);if(e)return e}return null},u.prototype.findAll=function(t){var e,i=[];for(e in this._pull){var n=(0,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,[void 0,"sort",t])):(0,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._reapplyFilters(!0),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=(0,p.uid)()),i||this.isDataLoaded()?(n=this.getItem(t))?(n.id=e,(0,p.extend)(this._pull[t],n),this._pull[e]=this._pull[t],i||this._onChange("update",e,this._pull[e]),delete this._pull[t]):(0,c.dhxWarning)("item not found"):(0,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){e>this._order.length-1&&(e=this._order.length-1);for(var n=this._order.slice(t=t<0?0: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=(0,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))||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;if(this._range&&(t=this._range[0]+t,e=-1===e||t+(n=Math.abs(e-t))>this._range[1]?this._range[1]:t+n),!e||0===t&&(-1===e||e===i.length))return i;if(t>=i.length)return[];(-1===e||e>i.length)&&(e=i.length);n=i.slice(t,e);return 0!==n.filter(function(t){return t.$empty}).length&&this.events.fire(d.DataEvents.dataRequest,[t,e]),n},u.prototype._add=function(t,e){if(this.isDataLoaded())return e=this._addCore(t,e),this._onChange("add",t.id,t),this.events.fire(d.DataEvents.afterAdd,[t]),e;(0,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(0,c.dhxWarning)("the method doesn't work with lazyLoad")},u.prototype._copy=function(t,e,i,n,o){var r;if(this.isDataLoaded())return this.exists(t)?(r=(0,p.uid)(),o&&(e=-1===e?-1:e+o),i?i instanceof u||!n?i.exists(t)?(i.add(l(l({},(0,c.copyWithoutInner)(this.getItem(t))),{id:r}),e),r):(i.add((0,c.copyWithoutInner)(this.getItem(t)),e),t):void i.add((0,c.copyWithoutInner)(this.getItem(t)),e):(this.add(l(l({},(0,c.copyWithoutInner)(this.getItem(t))),{id:r}),e),r)):null;(0,c.dhxWarning)("the method doesn't work with lazyLoad")},u.prototype._move=function(t,e,i,n,o,r){if(this.isDataLoaded())return o&&(e=-1===e?-1:e+o),i&&i!==this&&this.exists(t)?(o=(0,p.copy)(this.getItem(t),!0),r&&(o.id=r),(!r&&i.exists(t)||i.exists(r))&&(o.id=(0,p.uid)()),n&&(o.parent=n),i.add(o,e),this.remove(t),o.id):this.getIndex(t)===e?null:(r=this._order.splice(this.getIndex(t),1)[0],-1===e&&(e=this._order.length),this._order.splice(e,0,r),this.events.fire(d.DataEvents.change,[t,"update",this.getItem(t)]),t);(0,c.dhxWarning)("the method doesn't work with lazyLoad")},u.prototype._addCore=function(t,e){var i;return(t=this.config.init?this.config.init(t):t).id=null!=(i=t.id)?i:(0,p.uid)(),this._pull[t.id]&&(0,c.dhxError)("Item ".concat(t.id," already exist")),this._initOrder&&!(0,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){for(var e=this._order.length,i=0,n=t=this.config.prep?this.config.prep(t):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=(0,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._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(t){var e;t&&(e="function"!=typeof t?this._getRuleCallback(t):t,t=this._order.filter(function(t){return e(t)}),this._initOrder||(this._initOrder=this._order),this._order=t)},u.prototype._reapplyFilters=function(t){void 0===t&&(t=!1);var e=this.getFilters({permanent:!0});e&&this.filter(e,{$restore:!0,add:!0},!0),t&&this._sorter&&this._applySorters()},u.prototype._getRuleCallback=function(e){if((0,p.isDefined)(e.by)&&(0,p.isDefined)(e.match))return e.compare?function(t){return e.compare(t[e.by],e.match,t,e.multi)}:function(t){return t[e.by]==e.match}},u.prototype._getPureFilters=function(n){return Object.keys(n).reduce(function(t,e){var i;return null!=(i=n[e].config)&&i.$local||(t[e]=n[e]),t},{})},u.prototype._normalizeFilters=function(t){var e,i=[];for(e in t){var n=t[e].rule;if("function"!=typeof n)if((0,p.isDefined)(n.by))i.push(this._getRuleCallback(n));else for(var o in n)i.push(this._getRuleCallback(n[o]));else i.push(n)}return l({},i)},e.DataCollection=u},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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.dataDriversPro=e.dataDrivers=void 0,i(39)),r=i(40),i=i(81);e.dataDrivers={json:o.JsonDriver,csv:r.CsvDriver},e.dataDriversPro=n(n({},e.dataDrivers),{xml:i.XMLDriver})},function(t,e,i){"use strict";function n(){}Object.defineProperty(e,"__esModule",{value:!0}),e.JsonDriver=void 0,n.prototype.toJsonArray=function(t){return this.getRows(t)},n.prototype.serialize=function(t){return t},n.prototype.getFields=function(t){return t},n.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.CsvDriver=void 0,r.prototype.getFields=function(t,e){for(var i=new RegExp('(?<!")'.concat(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,i=this,t=this.getRows(t),n=this.config.names;return this.config.skipHeader&&(e=t.splice(0,this.config.skipHeader),this.config.nameByHeader)&&(n=e[0].trim().split(this.config.columnDelimiter)),t.map(function(t){return i.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:"".concat(t).concat(n[e].replaceAll(/[,;"]/gi,function(t){return'"'.concat(t,'"')})).concat(i===n.length-1?"":o.config.columnDelimiter)},"");return n.items?"".concat(t).concat(t?"\n":"").concat(e).concat(o._serialize(n.items)):"".concat(t).concat(t?o.config.rowDelimiter:"").concat(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,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.getTreeCell=void 0,o(i(42),e),o(i(124),e),o(i(4),e),o(i(21),e),i(16));Object.defineProperty(e,"getTreeCell",{enumerable:!0,get:function(){return r.getTreeCell}}),o(i(9),e),o(i(7),e)},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),p=this&&this.__assign||function(){return(p=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.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i},_=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.Grid=void 0,i(0)),a=i(5),c=i(2),v=i(1),d=i(25),u=i(8),h=i(6),f=i(86),m=i(9),g=i(21),y=i(7),x=i(91),b=i(4),w=i(10),C=i(13),S=i(118),E=i(122),D=i(123),O=i(20),k=i(16),i=(o=u.View,r(T,o),T.prototype.destructor=function(){this._destructed=!0,this._destroyContent(),this.keyManager&&this.keyManager.destructor(),this.events&&this.events.clear(),this._events&&this._events.clear(),this.export=this.content=this.selection=null,this._activeFilters=this._filterData=this._scroll=this._touch=this._htmlEvents=this._hiddenFilters=null,this.unmount()},T.prototype.setColumns=function(t){var e=this;this._destroyContent(),this.config.columns=t,this._parseColumns(!0),this._adjustColumns(),this._checkFilters(),this._checkMarks(),this.paint(),this.config.keyNavigation&&(0,l.awaitRedraw)().then(function(){e._initHotKey(!0),e.paint()})},T.prototype.addRowCss=function(t,e){var t=this.data.getItem(t),i=t.$css||"";i.match(new RegExp(e,"g"))||(t.$css=i+" ".concat(e),this.paint())},T.prototype.removeRowCss=function(t,e){t=this.data.getItem(t),e=t.$css?t.$css.replace(e,""):"";t.$css=e,this.paint()},T.prototype.addCellCss=function(t,e,i){var n,o=this.getColumn(e),e=this.config.spans?this.getSpan(t,e):null;(e||o)&&((n=e?e.css:o.$cellCss[t])?(n=n.match(new RegExp(i,"g"))?"":" ".concat(i),e?e.css+=n:o.$cellCss[t]+=n):this.data.getItem(t)&&(e?e.css="".concat(i," "):o.$cellCss[t]="".concat(i," ")),this.paint())},T.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]=""))},T.prototype.showColumn=function(t){var e,t=this.getColumn(t);t&&t.hidden&&this.events.fire(b.GridEvents.beforeColumnShow,[t])&&(t.hidden=!1,this.config.$totalWidth+=t.$width,(e=this._hiddenFilters&&this._hiddenFilters[t.id])&&(this._activeFilters[t.id]=e,delete this._hiddenFilters[t.id],this._checkFilters(),this._checkSelectFilterValue()),this.paint(),this.events.fire(b.GridEvents.afterColumnShow,[t]))},T.prototype.hideColumn=function(t){var e,t=this.getColumn(t);t&&!t.hidden&&this.events.fire(b.GridEvents.beforeColumnHide,[t])&&(t.hidden=!0,this.config.$totalWidth-=t.$width,(e=this._activeFilters&&this._activeFilters[t.id])&&(this._hiddenFilters||(this._hiddenFilters={}),this._hiddenFilters[t.id]=e,delete this._activeFilters[t.id],this._checkFilters()),this.paint(),this.events.fire(b.GridEvents.afterColumnHide,[t]))},T.prototype.isColumnHidden=function(t){t=this.getColumn(t);if(t)return!!t.hidden},T.prototype.showRow=function(t){var e;(0,v.isDefined)(t)&&(t=t.toString(),e=this.data.getItem(t))&&e.hidden&&this.events.fire(b.GridEvents.beforeRowShow,[e])&&(this.data.update(t,{hidden:!1}),this._checkFilters(!0),this.paint(),this.events.fire(b.GridEvents.afterRowShow,[e]))},T.prototype.hideRow=function(t){var e;(0,v.isDefined)(t)&&(t=t.toString(),e=this.data.getItem(t))&&this.events.fire(b.GridEvents.beforeRowHide,[e])&&(this.data.update(t,{hidden:!0}),this._checkFilters(!0),this._checkSelectFilterValue(),this.paint(),this.events.fire(b.GridEvents.afterRowHide,[e]))},T.prototype.isRowHidden=function(t){return(0,v.isDefined)(t)&&(t=this.data.getItem(t.toString()))?!!t.hidden:void 0},T.prototype.getScrollState=function(){return{x:this._scroll.left,y:this._scroll.top}},T.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()},T.prototype.scrollTo=function(e,i){var t=this.selection.getCell(),n=this.config.columns.filter(function(t){return!t.hidden}),o=(0,v.findIndex)(n,function(t){return t.id==i}),r=t?t.column:this.config.columns[0],t=(0,v.findIndex)(n,function(t){return t.id==r.id}),s=this.config.leftSplit?(0,y.getTotalWidth)(n.slice(0,this.config.leftSplit)):0,t=(0,y.getTotalWidth)(n.slice(0,o))-(o-t<0?s:0),s=this.data.getRawData(0,-1),a=(0,v.findIndex)(s,function(t){return t.id==e}),l=(0,y.getTotalHeight)(s.slice(0,a)),c=this.getScrollState(),d=this.config.$width+c.x,u=this.config.$height+c.y-this.config.headerRowHeight*this.config.$headerLevel,h=l-c.y-s[a].$height,f=t-c.x-n[o].$width,l=l+2*s[a].$height+18-u,s=t+2*n[o].$width+18-d;this.scroll((0<f&&s<0?0:f<0?f:s)+c.x,(0<h&&l<0?0:h<0?h:l)+c.y)},T.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({rows:this.config.data,cols:n,totalCols:i,adjust: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()},T.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=(0,v.findIndex)(t,function(t){return t.id==(o?o.column:i)}),s=(0,v.findIndex)(n,function(t){return t.id==(o?o.row:e)});return{x:(0,y.getTotalWidth)(t.slice(0,r)),y:(0,y.getTotalHeight)(n.slice(0,s)),height:null!=o&&o.rowspan?(0,g.getHeight)(n,o.rowspan,s):n[s]?n[s].$height:0,width:null!=o&&o.colspan?(0,g.getWidth)(this.config.columns,o.colspan,(0,v.findIndex)(this.config.columns,function(t){return t.id===o.column})):t[r]?t[r].$width:0}},T.prototype.getColumn=function(t){for(var e,i=0,n=null==(e=this.config)?void 0:e.columns;i<n.length;i++){var o=n[i];if(o.id==t)return o}},T.prototype.addSpan=function(e){this.config.spans=this.config.spans||[];var t=(0,v.findIndex)(this.config.spans,function(t){return"".concat(t.row)==="".concat(e.row)&&"".concat(t.column)==="".concat(e.column)});0<=t?this.config.spans[t]=e:(this.config.spans.push((0,k.normalizeSpan)(e,this.config)),this._checkMarks(),this.paint())},T.prototype.getSpan=function(t,e){var i,r,s,a=this;if(this.config.spans)return r=this.data.getIndex(t.toString()),s=this.config.columns.findIndex(function(t){return t.id===e}),t=(0,v.findIndex)(this.config.spans,function(e){var t=a.data.getIndex(e.row.toString()),i=a.config.columns.findIndex(function(t){return t.id===e.column}),n=t,t=e.rowspan?t+e.rowspan:t+1,o=i,i=e.colspan?i+e.colspan:i+1;return n<=r&&r<t&&o<=s&&s<i}),null==(i=this.config)?void 0:i.spans[t]},T.prototype.removeSpan=function(e,i){var t;this.config.spans&&(t=(0,v.findIndex)(this.config.spans,function(t){return"".concat(t.row)=="".concat(e)&&"".concat(t.column)=="".concat(i)}),this.config.spans.splice(t,1),this.paint())},T.prototype.editCell=function(t,e,i){var n,o,r=this.data.getItem(t),s=this.getColumn(e);r&&s?(n=s.editorType,o=this.getSpan(r.id,s.id),i||("date"===s.type&&(i="datePicker"),"boolean"===s.type&&(i="checkbox"),n&&(i=n),(0,v.isDefined)(null==o?void 0:o.text)&&(i=this.config.autoHeight?"textarea":"input")),!this.events.fire(b.GridEvents.beforeEditStart,[r,s,i])||null!=(n=this.config.$editable)&&n.editor||this.config.$editable&&this.config.$editable.row===t&&this.config.$editable.col===e&&this.config.$editable.editorType===i||(this.config.$editable={row:r.id,col:s.id,isSpan:!!o,editorType:i},this.selection.config.disabled||this.selection.setCell(t.toString(),e.toString()),this.paint(),this.events.fire(b.GridEvents.afterEditStart,[r,s,i]))):(0,h.dhxWarning)("item not found")},T.prototype.editEnd=function(t){this.config.$editable&&this.config.$editable.editor&&this.config.$editable.editor.endEdit(t)},T.prototype.getSortingState=function(){return{dir:this._sortDir,by:this._sortBy}},T.prototype.getHeaderFilter=function(e){var i,n=this,t=this.getColumn(e);if(t)return i=null,t.header.forEach(function(t){t.content&&(i=n.content[t.content].element[e])}),i},T.prototype.edit=function(t,e,i){this.editCell(t,e,i)},T.prototype.paint=function(){var t=this.config.hotkeys?Object.keys(this.config.hotkeys).length:0;!this.keyManager||this.keyManager.getKeyStorageLength()-t||this._initHotKey(!0),o.prototype.paint.call(this)},T.prototype._createView=function(){var i=this;return(0,l.create)({render:function(t,e){return i._destructed?(0,l.el)("div"):(0,w.render)(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},T.prototype._parseColumns=function(t){(0,m.normalizeColumns)(this.config,t=void 0===t?!1:t);t=this.config.columns.filter(function(t){return!t.hidden});(0,m.countColumns)(this.config,t)},T.prototype._parseData=function(){this.config.data=this.data.map(function(t){return t}),this.config.data=this._prepareData(this.data),this._detectColsTypes(),this._checkMarks(),this.data.filter(function(t){return!t.hidden},{$local:!0,permanent:!0},!0),this._checkFilters(),this._render()},T.prototype._createCollection=function(t){this.data=new h.DataCollection({prep:t},this.events)},T.prototype._getRowIndex=function(t){return this.data.getIndex(t)},T.prototype._setEventHandlers=function(){function r(t){var e=t.source,i=t.target,n=s(t,["source","target"]);null!=e&&e.length&&e.map(function(t){return g.data.exists(t)&&g.data.update(t,n)}),g.data.exists(i)&&g.data.update(i,n)}var g=this;this.data.events.on(h.DataEvents.load,function(){g.data.filter(function(t){return t},{$local:!0},!0),g._parseData(),g.config.data instanceof h.DataCollection?(0,l.awaitRedraw)().then(function(){return g._normalizeSpans()}):g._normalizeSpans()}),this.data.events.on(h.DataEvents.change,function(e,t,i){if("setPage"===t)(0,l.awaitRedraw)().then(function(){var t=g.config.columns.find(function(t){return!0!==t.hidden});g.scrollTo(g.data.getId(i[0]).toString(),t.id.toString()),g._render()});else{if("sort"===t?(i.dir?g._sortDir=i.dir:g._sortBy===i.by?g._sortDir="asc"===g._sortDir?"desc":"asc":g._sortDir="asc",g._sortBy=i.by):"add"===t||"update"===t||"remove"===t?((0,v.isId)(e)&&"remove"===t&&(t=g.selection.getCells().find(function(t){return t.row.id===e}))&&g.selection.removeCell(t.row.id,t.column.id),g.config.data=g._prepareData(g.data)):((0,h.isTreeCollection)(g.data)&&(g.config.data=g._prepareData(g.data)),g._adjustColumns()),(0,v.isId)(e)&&(g._checkFilters(),g._checkSelectFilterValue()),g._detectColsTypes(),g._removeMarks(),g._checkMarks(),g.config.autoEmptyRow&&(!g._activeFilters||(0,v.isEmptyObj)(g._activeFilters))){t=g.data.find({by:"$emptyRow",match:!0});if(t){if(t.id===e)return;g.data.move(t.id,g.data.getLength()-1)}else g._addEmptyRow()}g._render()}}),this.data.events.on(h.DataEvents.filter,function(t){t||g.data.getRawFilters({permanent:!0})||g.data.filter(function(t){return!t.hidden},{$local:!0,permanent:!0},!0),!t||(0,h.isOnlyPermanentFilters)(t)?(g._filterData=g.data.map(function(t){return t})||[],g._setUniqueData(),g._clearFilterValue()):g._checkFilters(),g.paint()}),this.data.events.on(h.DataEvents.removeAll,function(){g._hiddenFilters={},g.config.columns.map(function(e){e.header.map(function(t){!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(e.$uniqueData=[])})}),(0,v.isEmptyObj)(g._activeFilters)||g.data.resetFilter(),g._clearFilterValue(!0)}),this.events.on(h.DragEvents.beforeDrag,function(t,e){return g.data.getItem(t.start)?g.events.fire(b.GridEvents.beforeRowDrag,[t,e]):"column"===g.config.dragItem||"both"===g.config.dragItem?g.events.fire(b.GridEvents.beforeColumnDrag,[t,e]):void 0}),this.events.on(h.DragEvents.dragStart,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$dragtarget:!0}),g.data.getItem(o)?(g.events.fire(b.GridEvents.dragRowStart,[t,e]),g._autoScroll("vertical")):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||(g.events.fire(b.GridEvents.dragColumnStart,[t,e]),g._autoScroll("horizontal"))}),this.events.on(h.DragEvents.dragIn,function(t,e){g.data.getItem(t.start)?g.events.fire(b.GridEvents.dragRowIn,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.dragColumnIn,[t,e])}),this.events.on(h.DragEvents.dragOut,function(t,e){g.data.getItem(t.start)?g.events.fire(b.GridEvents.dragRowOut,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.dragColumnOut,[t,e])}),this.events.on(h.DragEvents.canDrop,function(t,e){var i=t.source,n=t.target,o=t.dragItem;delete t.dragItem,r({source:i,target:n,$drophere:!0}),"row"===o?g.events.fire(b.GridEvents.canRowDrop,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.canColumnDrop,[t,e])}),this.events.on(h.DragEvents.cancelDrop,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$drophere:void 0,$dragtarget:void 0}),g.data.getItem(o)?g.events.fire(b.GridEvents.cancelRowDrop,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.cancelColumnDrop,[t,e])}),this.events.on(h.DragEvents.beforeDrop,function(t,e){return"row"!==g.config.dragItem||"both"!==g.config.dragMode&&"target"!==g.config.dragMode?"column"===g.config.dragItem||"both"===g.config.dragItem?g.events.fire(b.GridEvents.beforeColumnDrop,[t,e]):void 0:g.events.fire(b.GridEvents.beforeRowDrop,[t,e])}),this.events.on(h.DragEvents.afterDrop,function(e,t){var i,n;if(g.data.getItem(e.start)){var o=e.source;if(!o.some(function(t){return t==e.target})){for(var r=g.data.getItem(e.start),s=0,a=g.config.columns;s<a.length;s++){var l=a[s];void 0===r[l.id]&&g.data.update(r.id,((i={})[l.id]=null,i),!0)}var c=g.data.getInitialData(),d=null==c?void 0:c.findIndex(function(t){return t.id==e.start}),u=null==c?void 0:c.findIndex(function(t){return t.id==e.target});if(-1<d&&-1<u)if(1<(null==(n=e.source)?void 0:n.length)){for(var h=[],f=0,p=o;f<p.length;f++)!function(e){var t=null==c?void 0:c.findIndex(function(t){return t.id==e}),t=null==c?void 0:c.splice(t,1)[0];h.push(t)}(p[f]);0<(u=null==c?void 0:c.findIndex(function(t){return t.id==e.target}))&&++u,null!=c&&c.splice.apply(c,_([u,0],h,!1))}else null!=c&&c.splice(u,0,null==c?void 0:c.splice(d,1)[0]);g.config.data=g._prepareData(c||g.data.map(function(t){return t})),g.data.parse(g.config.data),g._checkFilters(),g.paint(),g.events.fire(b.GridEvents.afterRowDrop,[e,t])}}else"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.afterColumnDrop,[e,t])}),this.events.on(h.DragEvents.afterDrag,function(t,e){var i=t.source,n=t.target,o=t.start;r({source:i,target:n,$dragtarget:void 0}),g.data.getItem(o)?g.events.fire(b.GridEvents.afterRowDrag,[t,e]):"column"!==g.config.dragItem&&"both"!==g.config.dragItem||g.events.fire(b.GridEvents.afterColumnDrag,[t,e]),g.config.data=g._prepareData(g.data instanceof Array?g.data.map(function(t){return t}):g.data.getInitialData()||g.data),g.data.parse(g.config.data)}),this.events.on(b.GridEvents.cellMouseDown,function(t,e,i){i.targetTouches?(g._touch.timer=setTimeout(function(){g._dragStart(i)},g._touch.duration),g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+i.timeStamp.toFixed()&&((!1!==e.editable&&g.config.editable||e.editable)&&g.editCell(t.id,e.id,e.editorType),i.preventDefault(),g.events.fire(b.GridEvents.cellDblClick,[t,e,i])),g._touch.timeStamp=null):g._touch.timeStamp=+i.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration)):g._dragStart(i)}),this._events.on(b.GridSystemEvents.cellTouchMove,function(t,e,i){g._touch.start&&i.preventDefault(),g._clearTouchTimer()}),this._events.on(b.GridSystemEvents.cellTouchEnd,function(){g._touch.start=!1,g._clearTouchTimer()}),this.events.on(b.GridEvents.filterChange,function(e,t,o,i){var n,r,s,a,l;g.events.fire(b.GridEvents.beforeFilter,[e,t])&&(g.config.autoEmptyRow&&(r=g.data.find({by:"$emptyRow",match:!0}))&&g.data.remove(r.id),g._activeFilters||(g._activeFilters={}),s=(r=g.getColumn(t)).header.filter(function(t){return t.content===o&&void 0!==t.customFilter})[0],"comboFilter"===o&&void 0!==e||"comboFilter"!==o&&""!==e?(a=(0,m.getEditorOptions)(r),"combobox"!==r.editorType&&"select"!==r.editorType&&"multiselect"!==r.editorType||!a||(e=Array.isArray(e)?e.map(function(e){var t;return(null==(t=a.find(function(t){return"string"==typeof t?t===e:t.value===e}))?void 0:t.id)||e}):null!=(n=null==(n=a.find(function(t){return"string"==typeof t?t===e:t.value===e}))?void 0:n.id)?n:e),g._activeFilters[t]={by:t,match:e,compare:null!=(n=null==s?void 0:s.customFilter)?n:(l=g.getColumn(t),function(t,e,i,n){return g.content[o].match({val:t,match:e,obj:i,multi:n,col:l})}),multi:"multiselect"===(null==r?void 0:r.editorType)}):delete g._activeFilters[t],i||g.data.filter(g._activeFilters))}),this.events.on(b.GridEvents.scroll,function(t){g._scroll={top:t.y,left:t.x},g.editEnd(),g.paint()}),this.events.on(b.GridEvents.cellDblClick,function(t,e,i){(0,c.locateNodeByClassName)(i,"dhx_boolean-cell")||t.hasOwnProperty("$groupName")||(!1!==e.editable&&g.config.editable||e.editable)&&g.editCell(t.id,e.id,e.editorType)}),this.events.on(b.GridEvents.afterEditEnd,function(t,e,i){var n,o;null!=(o=g.config.$editable)&&o.editor&&(g.config.$editable.col!==i.id||g.config.$editable.row!==e.id)||(o=g.config.$editable?(n=g.config.$editable.row,g.config.$editable.col):(n=e.id,i.id),e=g.getSpan(n,o),(0,v.isDefined)(null==e?void 0:e.text)&&void 0!==t?e.text=t.toString():(delete(i=g.data.getItem(n)).$emptyRow,void 0!==t&&g.data.update(n,p(p({},i),((e={})[o]=t,e)))),g.config.$editable=null,g.paint())}),this.events.on(b.GridEvents.headerCellMouseDown,function(t,e){var i=e.target.getAttribute("dhx_resized");i&&g.events.fire(b.GridEvents.beforeResizeStart,[t,e])&&(0,E.startResize)(g,i.toString(),e,function(){g.paint(),g.config.$resizing=null,g.events.fire(b.GridEvents.afterResizeEnd,[t,e])}),e.targetTouches&&(g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),g.events.fire(b.GridEvents.headerCellDblClick,[t,e])),g._touch.timeStamp=null):g._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration))}),this.events.on(b.GridEvents.footerCellDblClick,function(t,e){e.targetTouches&&(g._touch.timeStamp?(g._touch.dblDuration>=g._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),g.events.fire(b.GridEvents.footerCellDblClick,[t,e])),g._touch.timeStamp=null):g._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){g._touch.timeStamp=null},g._touch.dblDuration))}),this.events.on(b.GridEvents.resize,function(){g._parseColumns(),g._setUniqueData(!0)}),this.events.on(b.GridEvents.afterResizeEnd,function(e){var t;g.config.columns=null==(t=g.config.columns)?void 0:t.map(function(t){return t.id==e.id&&(t.width=e.$width),t}),g._parseColumns(),g._setUniqueData(!0)})},T.prototype._addEmptyRow=function(){var t=this.data.getId(this.data.getLength()-1),t=this.data.getItem(t),e=this.config.columns.filter(function(t){return!t.hidden});(0,y.isRowEmpty)(t)||this.data.add(e.reduce(function(t,e){return t[e.id]="",t},{$emptyRow:!0}))},T.prototype._sort=function(i,t,e){var n=this;t=t||(this._sortBy===i&&"asc"===this._sortDir?"desc":"asc");this.data.sort({by:i,dir:t,as:null!=e?e:function(t){var e=n.getColumn(i);return t&&"date"===e.type?("string"==typeof t?(0,C.stringToDate)(t,e.format):t).getTime():t?"".concat(t):""}}),this.events.fire(b.GridEvents.afterSort,[this.getColumn(i),t])},T.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},T.prototype._checkFilters=function(t){void 0===t&&(t=!1),(0,v.isEmptyObj)(this._activeFilters)?(t&&this.data.resetFilter(),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData()):(t=this.data.getRawFilters({permanent:!0}),this.data.filter(t,{$restore:!0},!0),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData(),this.data.filter(null,{$restore:!0},!0),this._filterData=this.data.map(function(t){return t})||[],this._setUniqueData(!0))},T.prototype._setUniqueData=function(n){var o=this;void 0===n&&(n=!1),this._filterData&&this.config.columns.forEach(function(e){e.header.forEach(function(t){var i;!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(t=e.header.some(function(t){return null==(t=t.filterConfig)?void 0:t.multiselection}),n&&t)||(t=(0,m.getUnique)(o._filterData,e.id,t),i=(0,m.getEditorOptions)(e),"combobox"!==e.editorType&&"select"!==e.editorType&&"multiselect"!==e.editorType||!i||(t=t.map(function(e){var t=i.find(function(t){return"string"==typeof t?e===t:e===t.id});return t&&"string"!=typeof t?t.value:e})),t="string"!==e.type?Array.from(new Set(t.map(function(t){return(0,m.toFormat)(t,e.type,e.format)}))):t,n?e.$activeFilterData=t:(e.$uniqueData=t,e.$activeFilterData&&delete e.$activeFilterData))})})},T.prototype._checkSelectFilterValue=function(){var t,e=null==(t=this.content)?void 0:t.selectFilter;if(e)for(var i in e.value){var n=this.getColumn(i),o=e.value[i];n.hidden||!o||n.$uniqueData.includes(o)||e.element[i].clear()}},T.prototype._clearFilterValue=function(i){var n=this;void 0===i&&(i=!1),["selectFilter","inputFilter"].map(function(t){var e;return null==(e=n.content)?void 0:e[t]}).filter(function(t){return t}).forEach(function(t){for(var e in t.value)!t.value[e]||!i&&n.getColumn(e).hidden||t.element[e].clear(!0)})},T.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({rows:t,cols:e,totalCols: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)})},T.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})},T.prototype._adjustColumnsWidth=function(t){var e=t.rows,i=t.cols,t=t.adjust,t=void 0===t?this.config.adjust:t,n={};if("header"===t||!0===t){var o=i.filter(function(t){return t.header});if(d=(0,m.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+((0,y.isSortable)(this.config,this.getColumn(l))?36:16),a))}if("footer"===t||!0===t){var d,o=i.filter(function(t){return t.footer});if(d=(0,m.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"===t||!0===t)&&(d=(0,m.getMaxColsWidth)(e,i,{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},T.prototype._prepareColumnData=function(t,e){for(var i,n=[],o=0;o<t.length;o++){for(var r=[],s=0;s<(null==(l=t[o])?void 0:l[e].length);s++){var a,l={};null!=(a=null==(a=t[o])?void 0:a[e][s])&&a.text?(l[t[o].id]=(null==(a=null==(a=t[o])?void 0:a[e][s])?void 0:a.text)||"",r.push(l)):null!=(a=null==(a=t[o])?void 0:a[e][s])&&a.content&&("function"==typeof(a=null==(a=this.content)?void 0:a[null==(a=null==(a=t[o])?void 0:a[e][s])?void 0:a.content]).calculate?l[t[o].id]=(null==a?void 0:a.toHtml(this.getColumn(t[o].id),this.config))||"":l[t[o].id]="",r.push(l))}for(var c=0;c<r.length;c++)for(var d=0,u=Object.entries(r[c]);d<u.length;d++){var h=u[d],f=h[0],h=h[1];n[c]=p({},n[c])||{},n[c]=Object.assign(n[c],((i={})[f]=h,i))}}return n},T.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))return e=(e=(0,c.locateNode)(t,"data-dhx-id"))&&e.getAttribute("data-dhx-id"),t.targetTouches&&(this._touch.start=!0),h.dragManager.onMouseDown(t,[e],[this._getRowGhost([e])])}},T.prototype._getRowGhost=function(t){var e=this._container||(0,c.toNode)(this._uid),t=t.map(function(t){return e.querySelector('.dhx_grid-row[data-dhx-id="'.concat(t,'"]'))}),i=document.createElement("div");return t.forEach(function(t){return t&&i.appendChild(t.cloneNode(!0))}),i},T.prototype._initHooks=function(){var i=this;return{didMount:function(){var t,e;i._canDataParse(!0)&&(i._container||(t=i.getRootView().node.parent.el,t=(0,w.getElementSizes)(t),e=null==(e=i.scrollView)?void 0:e.config.enable,(0,w.applyAutoWidth)(i.config,t,!0,!1,e)),i.data.parse(i.config.data))}}},T.prototype._canDataParse=function(t){var e;return void 0===t&&(t=!1),!!(null!=(e=this.config.data)&&e.length&&this.config.data instanceof Array&&this.config.columns)&&(this.config.autoWidth&&this.config.autoHeight?t:!t)},T.prototype._init=function(){this.events=new a.EventSystem(this),this._events=new a.EventSystem(this),this._attachDataCollection(),this.export=new f.Exporter("grid",this.version,this),this._setEventHandlers()},T.prototype._attachDataCollection=function(){var e=this;this.config.data instanceof h.DataCollection?(this.data=this.config.data,this.data.config.collapsed=this.config.collapsed,this.config.data=this.data.serialize()):this._createCollection(function(t){return t.spans&&(e.config.spans=t.spans,t=t.data),t})},T.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)}),n=e.join(" "),i=a.getSpan(t.id,o.id),o.$cellCss[t.id]=n,i)&&(i.rowspan||i.colspan&&i.column===o.id)&&i.$markCss!==n&&(i.$markCss=n)}(i[e])},T.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=(e.forEach(function(t){null!=t&&""!==t&&i.push(parseFloat(t))}),(0,v.getMinArrayNumber)(i)),n=(0,v.getMaxArrayNumber)(i);return o.max&&n===parseFloat(t)?o.max:!(!o.min||e!==parseFloat(t))&&o.min}))})},T.prototype._removeMarks=function(){var t;this.config.columns.forEach(function(t){t.mark&&(t.$cellCss={})}),null!=(t=this.config.spans)&&t.forEach(function(t){t.$markCss&&delete t.$markCss})},T.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"))})},T.prototype._destroyContent=function(){for(var t in this.content)"comboFilter"===t&&this.content[t].destroy()},T.prototype._render=function(){this.paint()},T.prototype._initHotKey=function(t){void 0===t&&(t=!1);var e=(0,D.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])},T.prototype._normalizeConfig=function(e){return Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),e},T.prototype._normalizeSpans=function(){var t,e=this;this.config.spans=null==(t=this.config.spans)?void 0:t.map(function(t){return(0,k.normalizeSpan)(t,e.config)})},T.prototype._autoScroll=function(n){var o,r,s,a,l,t,e,i,c,d,u,h,f=null!=(e=this.scrollView)&&e.config.enable?null==(e=this.getRootNode())?void 0:e.querySelector(".scroll-view"):null==(e=this.getRootNode())?void 0:e.querySelector(".dhx_grid-body");f&&(o=null,e=f.getBoundingClientRect(),r=e.top,s=e.bottom,a=e.left,l=e.right,t=e.height,e=e.width,i=40,c=100,d=30,u=function(t){"up"===t||"down"===t?f.scrollBy(0,"up"===t?-i:i):f.scrollBy("left"===t?-i:i,0),o=setTimeout(function(){u(t)},c)},h=function(t){var e=t.clientX,i=t.clientY;switch(n){case"horizontal":l-d<e&&e<l&&r<i&&i<s?o||u("right"):a<e&&e<a+d&&r<i&&i<s?o||u("left"):o&&(clearTimeout(o),o=null);break;case"vertical":s-d<i&&i<s&&a<e&&e<l?o||u("down"):r<i&&i<r+d&&a<e&&e<l?o||u("up"):o&&(clearTimeout(o),o=null)}},e<f.scrollWidth||t<f.scrollHeight)&&(document.addEventListener("pointermove",h),document.addEventListener("pointerup",function(){document.removeEventListener("pointermove",h),o&&clearTimeout(o)},{once:!0}))},T);function T(t,e){function n(e,i,t){var n,o,r,s;e&&i&&(0,y.isTooltip)(a.config,i)&&(n=void 0,"combobox"===i.editorType||"select"===i.editorType?n=(s=(0,m.getEditorOptions)(i,e).find(function(t){return(t instanceof Object?t.id.toString():t)===(null==(t=e[i.id])?void 0:t.toString())}))instanceof Object?s.value:s:"multiselect"===i.editorType&&null!=(o=null==(s=e[i.id])?void 0:s.toString().split(", "))&&o.length&&(n=(0,m.getEditorOptions)(i,e).filter(function(t){return o.includes(t instanceof Object?t.id.toString():t)}).map(function(t){return t instanceof Object?t.value:t}).join(", ")),r=(0,m.toFormat)(n||e[i.id],i.type,i.format),s=function(){return!!r||"boolean"==typeof r},i.tooltipTemplate?r=i.tooltipTemplate(r,e,i)||null:s()&&i.template&&(r=i.template(r,e,i)),s())&&(0,y.showTooltip)({value:r,node:t,htmlEnable:(0,y.isHtmlEnable)(a.config,i)})}function i(t,e){void 0===e&&(e="header");var i,n=(t=t.target).getAttribute("data-dhx-text-id"),o=a.getColumn(t.getAttribute("data-dhx-id"));n&&o&&(i=null==(i=o[e])?void 0:i.find(function(t){return t.id===n}),(0,y.isContentTooltip)(a.config,o,i,e))&&(e=(null==i?void 0:i.content)&&["avg","sum","max","min","count"].includes(i.content)?null==(e=a.content[i.content])?void 0:e.toHtml(o,p(p({},a.config),{datacollection:a.data})):null==i?void 0:i.text,null!=(e="function"==typeof(null==i?void 0:i.tooltipTemplate)?i.tooltipTemplate(e,i,o):e))&&e.toString().length&&(0,y.showTooltip)({value:e,node:t,htmlEnable:(0,y.isHtmlEnable)(a.config,o)})}var a=o.call(this,t,e)||this;a._touch={duration:350,dblDuration:300,timer:null,start:!1},a._destructed=!1,a.version="8.2.6",a.config=(0,v.extend)({rowHeight:40,headerRowHeight:40,footerRowHeight:40,keyNavigation:!0,sortable:!0,columns:[],data:[],tooltip:!0,rootParent:"string"==typeof t&&t||a._uid,headerSort:!0},a._normalizeConfig(e)),a.content=(0,S.getContent)(),a._scroll={top:0,left:0},a.config.autoWidth=a.config.autoWidth||a.config.fitToContainer,a.config.adjust=a.config.adjust||a.config.columnsAutoWidth,a.config.editable=a.config.editable||a.config.editing,a.config.leftSplit=a.config.leftSplit||a.config.splitAt,a.config.sortable&&a.config.headerSort||(a.config.sortable=!1),a.config.columns.forEach(function(t){t.format=t.format||t.dateFormat});return a._htmlEvents={onclick:(0,c.eventHandler)(function(t){return(0,c.locate)(t)},{"dhx_grid-header-cell--sortable":function(t,e){var i,n=t.target.getAttribute("dhx_resized"),o=a.getColumn(e);o&&(0,y.isSortable)(a.config,o)&&!n&&a.events.fire(b.GridEvents.beforeSort,[o,a._sortDir?"asc":"desc"])&&(t=(i=null==(n=(0,c.locateNodeByClassName)(t,"dhx_grid-header-cell"))?void 0:n.querySelector(".dhx_grid-header-cell-text_content").innerHTML)?o.header.find(function(t){return t.text===i}):null,n="asc"===a._sortDir&&a._sortBy===e?"desc":"asc",a._sort(e,n,null==t?void 0:t.sortAs))},"dhx_grid-expand-cell":function(t,e){t.target.classList.contains("dhx_grid-expand-cell-icon")&&a.events.fire(b.GridEvents.expand,[e])},"dhx_span-expand-cell":function(t,e){t.target.classList.contains("dhx_span-expand-cell-icon")&&a.events.fire(b.GridEvents.expand,[e])}}),onscroll:function(t){a.events.fire(b.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=a.data.getItem(e[2].getAttribute("data-dhx-id")),e=a.getColumn(e[1].getAttribute("data-dhx-col-id"));n(i,e,t.target)},".dhx_grid-cell:not(.dhx_boolean-cell)":function(t){var e=a.data.getItem(t.composedPath()[1].getAttribute("data-dhx-id")),i=a.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=a.data.getItem(e[2].getAttribute("data-dhx-id")),e=a.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 t=t.composedPath(),e=a.data.getItem(t[3].getAttribute("data-dhx-id")),i=a.getColumn(t[2].getAttribute("data-dhx-col-id"));n(e,i,t[2])},".dhx_span-cell:not(.dhx_grid-header-cell)":function(t){var e,t=t.target,i=a.data.getItem(t.getAttribute("data-dhx-id")),n=a.getColumn(t.getAttribute("data-dhx-col-id")),o=a.getSpan(i.id,n.id);i&&o&&(0,y.isTooltip)(a.config,o)&&(e=o.text||(0,m.toFormat)(i[n.id],n.type,n.format),o.tooltipTemplate?e=o.tooltipTemplate(e,o):n.template&&(e=n.template(e,i,n)),e)&&(0,y.showTooltip)({value:e,node:t,htmlEnable:!0})},".dhx_grid-header-cell":function(t){return i(t,"header")},".dhx_grid-footer-cell":function(t){return i(t,"footer")}}},(a.config.dragMode||a.config.dragItem)&&(h.dragManager.setItem(a._uid,a),a.config.dragItem||(a.config.dragItem="row"),a.config.dragMode||(a.config.dragMode="both")),a._init(),a.config.columns&&a._parseColumns(!0),a._canDataParse()&&a.data.parse(a.config.data),a.selection=new x.Selection(a,{disabled:!a.config.selection},a.events,a._uid),a.mount(t,a._createView()),(0,l.awaitRedraw)().then(function(){a.config.keyNavigation&&(a.keyManager=new d.KeyManager(function(t,e){return!(e!==a._uid||!a.events.fire(b.GridEvents.beforeKeyDown,[t])||(a.events.fire(b.GridEvents.afterKeyDown,[t]),0))}),a._initHotKey(),O.focusManager.setFocusId(a._uid))}),e.autoEmptyRow&&0===a.data.getLength()&&(a._addEmptyRow(),a.paint()),a}e.Grid=i},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(87),e),o(i(88),e),o(i(89),e),o(i(90),e),o(i(26),e)},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=void 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 n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=this&&this.__assign||function(){return(u=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)},h=(Object.defineProperty(e,"__esModule",{value:!0}),e.Cell=void 0,i(1)),f=i(0),s=i(8),l=i(29),c=i(100),a=i(5),d=i(41),p=i(28),i=(o=s.View,r(g,o),g.prototype.paint=function(){var t;this.isVisible()&&((t=this.getRootView())?t.redraw():null!=(t=this._parent)&&t.paint())},g.prototype.isVisible=function(){var t;return this._parent?!((t=null==(t=this._parent.config)?void 0:t.activeView)&&t!==this.id||this.config.hidden)&&(!this._parent||this._parent.isVisible()):!(!this._container||!this._container.tagName)||Boolean(this.getRootNode())},g.prototype.hide=function(){this.events.fire(l.LayoutEvents.beforeHide,[this.id])&&(this.config.hidden=!0,this._resetCellsSize(),this._parent&&this._parent.paint&&this._parent.paint(),this.events.fire(l.LayoutEvents.afterHide,[this.id]))},g.prototype.show=function(){var t=this;this.events.fire(l.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 d.Grid&&this._ui.config.keyNavigation&&(0,f.awaitRedraw)().then(function(){t._ui.setColumns(t._ui.config.columns),t.paint()}),this.events.fire(l.LayoutEvents.afterShow,[this.id]))},g.prototype.expand=function(){this.events.fire(l.LayoutEvents.beforeExpand,[this.id])&&(this.config.collapsed=!1,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(l.LayoutEvents.afterExpand,[this.id]),this.paint())},g.prototype.collapse=function(){this.events.fire(l.LayoutEvents.beforeCollapse,[this.id])&&(this.config.collapsed=!0,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(l.LayoutEvents.afterCollapse,[this.id]),this.paint())},g.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse()},g.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())},g.prototype.getParent=function(){return this._parent},g.prototype.destructor=function(){var t;this.events&&this.events.clear(),window.removeEventListener("resize",this._afterWindowResized),"function"==typeof(null==(t=this.getWidget())?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()},g.prototype.getWidget=function(){return this._ui},g.prototype.getCellView=function(){return this._parent&&this._parent.getRefs(this._uid)},g.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 d.Grid&&this._ui.config.keyNavigation&&(0,f.awaitRedraw)().then(function(){i._ui.setColumns(i._ui.config.columns),i.paint()}),this._ui},g.prototype.attachHTML=function(t){this.config.html=t,this.paint()},g.prototype.detach=function(){this._stopProgressDefault=!1,this._ui=this.config.html=null,this.paint()},g.prototype.progressShow=function(){this.config.progressDefault&&(this._stopProgressDefault=!1),this._progress=!0,this.paint()},g.prototype.progressHide=function(){this.config.progressDefault&&(this._stopProgressDefault=!0),this._progress=!1,this.paint()},g.prototype.isVisibleProgress=function(){return this._progress},g.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this.config.$fieldset,n=this._calculateStyle(),o=(0,h.isDefined)(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:"".concat(this.config.padding,"px")}:"",r=this.config.full||this.config.html?n:u(u({},n),o),t=(this.config.html||(e=this._ui?[e=(e=this._ui.getRootView()).render?(0,f.inject)(e):e]:t||null),this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?(0,f.el)(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),u(u({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[(0,f.el)("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null),s={};if(this.config.on)for(var a in this.config.on)s["on"+a]=this.config.on[a];var l="",c=this.config.cols||this.config.rows;if(this.config.type&&c)switch(this.config.type){case"line":l=" dhx_layout-line";break;case"wide":l=" dhx_layout-wide";break;case"space":l=" dhx_layout-space"}var d=(0,f.el)("div",u(u(((c={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,c["data-cell-id"]=null!=(d=this.config.id)?d:null,c),s),{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?l:""),style:i?n:r}),[i?(0,f.el)("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:o,disabled:this.config.$disabled},[(0,f.el)("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--".concat(this.config.labelAlignment||"left")},this.config.label),(0,f.el)(".dhx_layout-cell-content",{class:this._getCss(!1)},[e])]):this.config.full?[(0,f.el)("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to ".concat(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&&(0,f.el)("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&(0,f.el)(".dhx_layout-cell-header__image-wrapper",[(0,f.el)("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&(0,f.el)("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?(0,f.el)("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):(0,f.el)("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:(0,f.el)("div",{style:u(u({},o),{height:"calc(100% - ".concat(this.config.headerHeight||37,"px)")}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?l:"")},this.config.html?[(0,f.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:(0,f.el)(".dhx_layout-cell-content",{style:o},[(0,f.el)(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])],this._checkProgress()&&this._getProgressBar()]);return t?[d,t]:d}},g.prototype._getProgressBar=function(){return(0,f.el)("span",{class:"dhx_progress-bar"},[(0,f.sv)("svg",{viewBox:"25 25 50 50",class:"dhx_spinner"},[(0,f.sv)("circle",{cx:"50",cy:"50",r:"20",class:"path"})])])},g.prototype._getCss=function(t){return"dhx_layout-cell"},g.prototype._initHandlers=function(){function i(t){var e,i,n;t.targetTouches&&t.preventDefault(),3!==t.which&&(s.isActive&&a(t),r.events.fire(l.LayoutEvents.beforeResizeStart,[r.id]))&&(document.body.classList.add("dhx_no-select--resize"),t=r.getCellView(),n=(e=r._getNextCell()).getCellView(),i=r._getResizerView(),t=t.el.getBoundingClientRect(),i=i.el.getBoundingClientRect(),n=n.el.getBoundingClientRect(),s.xLayout=r._isXDirection(),s.left=t.left+window.pageXOffset,s.top=t.top+window.pageYOffset,s.collapsedSize=r._getCollapsedSize(r,e),s.margin=(0,c.getMarginSize)(r.getParent().config),s.range=(0,c.getBlockRange)(t,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?i.width:i.height)}var r=this,s=(window.addEventListener("resize",this._afterWindowResized),{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}),n=function(t,e){var i,n,o;void 0===e&&(e={x:0,y:0}),s.isActive&&(i=s.xLayout,n=t.targetTouches?t.targetTouches[0].clientX:t.clientX+e.x,t=t.targetTouches?t.targetTouches[0].clientY:t.clientY+e.y,e=i?"width":"height",(n=i?n-s.range.min+window.pageXOffset:t-s.range.min+window.pageYOffset)<0?n=s.resizerLength/2:n>s.size&&(n=s.size-s.resizerLength),o=(t=function(t){return parseInt(null==(t=r.config[t])?void 0:t.toString())})(i?"maxWidth":"maxHeight"),t=t(i?"minWidth":"minHeight"),!o||n<o)&&(!t||t<n)&&(r.config[e]=n-s.resizerLength/2+"px",s.nextCell.config[e]=s.size-n-s.resizerLength/2+"px",s.nextCell._getAnyFlexCell()&&(s.nextCell._getAnyFlexCell().config[e]=void 0),r.paint(),r.events.fire(l.LayoutEvents.resize,[r.id]))},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(l.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()}}},g.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)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},g.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"},g.prototype._isLastCell=function(){var t=this._parent;return t&&t._cells.indexOf(this)===t._cells.length-1},g.prototype._getNextCell=function(){var t=this._parent,e=t._cells.indexOf(this),t=!this._isLastCell()&&t._cells[e+1];return!!t&&(t.config.hidden||t.config.collapsed?t._getNextCell():t)},g.prototype._getAnyFlexCell=function(e){var i=this,t=(void 0===e&&(e=!1),this._parent),n=this._isXDirection()?"$autoWidth":"$autoHeight",t=null==(t=null==t?void 0:t._cells)?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]},g.prototype._getResizerView=function(){return this._parent.getRefs("resizer_"+this._uid)},g.prototype._isXDirection=function(){return this._parent&&this._parent._xLayout},g.prototype._checkProgress=function(){return this instanceof p.Layout?this.isVisibleProgress():(this._calculateProgressState(),(this._progress||this._checkAutoProgress())&&!this.config.collapsed&&!this.config.hidden&&!this._parent.isVisibleProgress())},g.prototype._checkAutoProgress=function(){var t,e;return!this._stopProgressDefault&&(e=(t=this.config).html,t.progressDefault)&&!this._ui&&!e},g.prototype._calculateProgressState=function(){var t,e;this._stopProgressDefault||(t=(e=this.config).html,!(e=e.progressDefault)||this._ui||t||(this._progress=!0),e&&(this._ui||t)&&(this._progress=!1))},g.prototype._calculateStyle=function(){var t,e,i,n,o,r,s,a,l,c,d,u,h,f,p,g,_,v=this.config;if(v)return i=e=!(t={}),isNaN(Number(v.width))||(v.width=v.width+"px"),isNaN(Number(v.height))||(v.height=v.height+"px"),isNaN(Number(v.minWidth))||(v.minWidth=v.minWidth+"px"),isNaN(Number(v.minHeight))||(v.minHeight=v.minHeight+"px"),isNaN(Number(v.maxWidth))||(v.maxWidth=v.maxWidth+"px"),isNaN(Number(v.maxHeight))||(v.maxHeight=v.maxHeight+"px"),"content"===v.width&&(e=!0),"content"===v.height&&(i=!0),n=v.width,o=v.height,r=v.cols,s=v.rows,a=v.minWidth,l=v.minHeight,c=v.maxWidth,d=v.maxHeight,p=v.gravity,u=v.collapsed,f=v.$fixed,h=-1===Math.sign(p)?0:p,"boolean"==typeof p&&(h=p?1:0),g="boolean"==typeof p?!p:-1===Math.sign(p),this._isXDirection()?(f||n||void 0===p&&(a||c))&&(g=!0):(f||o||void 0===p&&(l||d))&&(g=!0),f=this._checkFullSizeCell(),p=g&&!f?0:!f&&h||1,g=this._isXDirection()?"x":"y",void 0===a||u||(t.minWidth=a),void 0===l||u||(t.minHeight=l),void 0!==c&&(t.maxWidth=c),void 0!==d&&(t.maxHeight=d),void 0===this._parent&&(g=!0),f||void 0===n||"content"===n?!0===g?t.width="100%":"x"===g&&(e?t.flex="0 0 auto":(_=this._isXDirection()?"1px":"auto",t.flex="".concat(p," ").concat(r||s?"0 ".concat(_):"1 auto"))):t.width=n,f||void 0===o||"content"===o?!0===g?t.height="100%":"y"===g&&(i?t.flex="0 0 auto":(_=this._isXDirection()?"auto":"1px",t.flex="".concat(p," ").concat(r||s?"0 ".concat(_):"1 auto"))):t.height=o,!0===g&&void 0===v.width&&void 0===v.height&&(t.flex="".concat(p," 1 auto")),u&&(this._isXDirection()?t.width="auto":t.height="auto",t.flex="0 0 auto"),t},g.prototype._resizedWindow=function(){var t;void 0===this._isLastFlexCell?this._isLastFlexCell=(null==(t=this._getAnyFlexCell(!0))?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())},g.prototype._resetCellsSize=function(){var e=this,t=this._parent._cells.filter(function(t){return t!==e&&!t.config.hidden&&!t.config.collapsed}),i=this._isXDirection(),n=i?"$autoWidth":"$autoHeight",o=i?"width":"height";t.forEach(function(t){t.config[n]&&(t.config[o]=void 0)})},g.prototype._checkFullSizeCell=function(){var t,e=this;return!!this._parent&&(t=this._isXDirection()?"$autoWidth":"$autoHeight",!!this.config[t])&&!!(t=this._parent._cells.filter(function(t){return t!==e&&!t.config.hidden})).length&&t.every(function(t){return t.config.collapsed})},g);function g(t,e){var i=o.call(this,t,e)||this;i._disabled=[];return 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||(0,h.uid)(),i._progress=!!i.config.progressDefault,i._stopProgressDefault=!1,i._isXDirection()&&!e.width&&(e.$autoWidth=!0),i._isXDirection()||e.height||(e.$autoHeight=!0),i}e.Cell=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopupEvents=void 0,e.PopupEvents={beforeHide:"beforeHide",beforeShow:"beforeShow",afterHide:"afterHide",afterShow:"afterShow",click:"click"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SliderEvents=void 0,e.SliderEvents={beforeChange:"beforeChange",change:"change",focus:"focus",blur:"blur",keydown:"keydown",mousedown:"mousedown",mouseup:"mouseup"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimepickerEvents=void 0,e.TimepickerEvents={beforeChange:"beforeChange",change:"change",beforeApply:"beforeApply",afterApply:"afterApply",beforeClose:"beforeClose",afterClose:"afterClose",apply:"apply",close:"close",save:"save"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CalendarEvents=void 0,e.CalendarEvents={change:"change",beforeChange:"beforechange",modeChange:"modeChange",monthSelected:"monthSelected",yearSelected:"yearSelected",cancelClick:"cancelClick",dateMouseOver:"dateMouseOver",dateHover:"dateHover"}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(52),e),o(i(116),e),o(i(58),e)},function(t,f,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),p=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},o=(Object.defineProperty(f,"__esModule",{value:!0}),f.Combobox=f.$template=void 0,e(1)),g=e(0),r=e(5),_=e(2),s=e(111),a=e(8),l=e(6),c=e(27),d=e(53),u=e(31),h=e(115),v=e(56),m=e(22),y=e(57),x=e(58);f.$template=function(t){return t.icon?(0,g.el)("div.dhx_combobox-options-wrapper",[(0,g.el)("span",{class:"".concat(t.icon," dhx_combobox-options__icon")}),(0,g.el)("span",{class:"dhx_combobox-options__value"},t.value)]):t.src?(0,g.el)("div.dhx_combobox-options-wrapper",[(0,g.el)("img",{class:"dhx_combobox-options__image",alt:t.value,src:t.src}),(0,g.el)("span",{class:"dhx_combobox-options__value"},t.value)]):(0,g.el)("span",{class:"dhx_combobox-options__value"},t.value)},b=a.View,i(w,b),w.prototype.focus=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.focus()},w.prototype.blur=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.blur(),this.popup.hide()},w.prototype.enable=function(){this.config.disabled=!1,this.paint()},w.prototype.disable=function(){this.config.disabled=!0,this.paint()},w.prototype.isDisabled=function(){return this.config.disabled},w.prototype.clear=function(){this.list.selection.remove(),this._state.value="",this._filter(),this.paint()},w.prototype.getValue=function(t){var e=this.list.selection.getId();return t?(0,o.wrapBox)(e):Array.isArray(e)?e.join(","):e},w.prototype.setValue=function(t,e){return this._setValue(t,e)},w.prototype.addOption=function(t,e){var i;void 0===e&&(e=!0),t&&("string"==typeof t?i=this.data.add({value:t}):"object"==typeof t&&(i=this.data.add(t)),t=this.config.multiselection&&e?p(p([],this.list.selection.getId(),!0),[i],!1):i,this.setValue(t))},w.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()},w.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()},w.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(null,e),this.config.multiselection?(t="number"==typeof(t="string"==typeof t?t.split(","):t)?[t]:t).forEach(function(t){i.list.selection.add(t,!1,!1,e)}):(t=(0,o.unwrapBox)(t),this.list.selection.add(t,!1,!1,e),(t=this.data.getItem(t))&&(this._state.value=this._getItemText(t))),this.paint()},w.prototype._createLayout=function(){var t=this.list=new d.List(null,{$template:f.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data}),e=this._layout=new c.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)},w.prototype._initHandlers=function(){var i=this;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={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",theme:t.target})},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!==s.KEY_CODES.DOWN_ARROW||i._showOptions(),i.popup.isVisible()&&(t.which===s.KEY_CODES.RIGHT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(d.MOVE_DOWN),t.preventDefault()),t.which===s.KEY_CODES.LEFT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(d.MOVE_UP),t.preventDefault()),t.which===s.KEY_CODES.DOWN_ARROW&&(i.list.moveFocus(d.MOVE_DOWN),t.preventDefault()),t.which===s.KEY_CODES.UP_ARROW&&(i.list.moveFocus(d.MOVE_UP),t.preventDefault()),t.which===s.KEY_CODES.ESC&&i._hideOptions(),t.which===s.KEY_CODES.ENTER)&&(i.data.getLength()?(e=i.list.getFocus(),e=i.config.multiselection?p(p([],i.list.selection.getId(),!0),[e],!1):e,i.setValue(e)):i.config.newOptions&&i.addOption(i._state.value,!0),i.config.multiselection?i._updatePopup():i.data.getLength()&&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===s.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){var e;if(!i.config.disabled){if(i.focus(),t.target.classList.contains("dhx_combobox__action-remove"))return e=null==(e=i.data.getItem((0,_.locate)(t)))?void 0:e.id,(0,o.isId)(e)?(i.list.selection.remove(e),i._changePopupPosition(),void i.paint()):void 0;t.target.classList.contains("dhx_combobox__action-clear-all")?(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),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.fire(x.ComboboxEvents.focus,[])},onblur:function(){var t;return null==(t=i.events)?void 0:t.fire(x.ComboboxEvents.blur,[])}}},w.prototype._initEvents=function(){var i=this;this.data.events.on(l.DataEvents.load,function(){i.config.value&&i._setValue(i.config.value,!0)}),this.data.events.on(l.DataEvents.afterAdd,function(){i.config.multiselection?i._changePopupPosition():i._hideOptions()}),this.list.events.on(d.ListEvents.click,function(){i.config.multiselection||i._hideOptions(),i._changePopupPosition()}),this.list.selection.events.on(m.SelectionEvents.beforeSelect,function(t){t=i.config.multiselection?p(p([],i.getValue(i.config.multiselection),!0),[t],!1):t;return i.events.fire(x.ComboboxEvents.beforeChange,[t])}),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.beforeUnSelect,function(e){var t=i.config.multiselection?i.getValue(i.config.multiselection).filter(function(t){return t!=e}):e;return i.events.fire(x.ComboboxEvents.beforeChange,[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(u.PopupEvents.beforeShow,function(){if(!i.popup.isVisible()&&!i._isPopupConfiqureted)return i._configurePopup(),!1}),this.config.readOnly&&this.popup.events.on(u.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)})})},w.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))},w.prototype._configurePopup=function(){this._isPopupConfiqureted=!0;var t=this.getRootView();return!!(t&&t.refs&&t.refs.holder)&&(this.popup.isVisible()||this._updatePopup(),!0)},w.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=""),(0,g.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())},w.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):(0,o.isEqualString)(n._state.value,n._getItemText(t))}),this.config.multiselection?this.list.setFocus(this.data.getId(0)):(t=this.data.getIndex(this.list.selection.getId()),this.list.setFocus(this.data.getId(-1<t?t: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=(0,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=(0,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()))))},w.prototype._findBest=function(e){var i=this,t=this.data.find(function(t){return(0,o.isEqualString)(e,i._getItemText(t))});t&&this.list.selection.getId()!==t.id&&(this.list.setFocus(t.id),this.paint())},w.prototype._exsistId=function(t){var e=this;return t instanceof Array?t.every(function(t){return e.data.exists(t)}):this.data.exists(t)},w.prototype._draw=function(){var t,e,i,n,o,r,s,a,l,c,d,u,h;return this.config?(l=(a=this.config).multiselection,t=a.labelPosition,e=a.hiddenLabel,i=a.required,n=a.disabled,o=a.css,r=a.helpMessage,s=a.readOnly,a=a.placeholder,l=l?null:this.data.getItem(this.list.selection.getId()),c=!this.list.selection.getId()||"object"==typeof this.list.selection.getId()&&0===this.list.selection.getId().length,d=(0,_.getLabelStyle)(this.config),u=(h=!this.config.multiselection&&(this.config.readOnly||!this.popup.isVisible()))&&this.config.htmlEnable&&this.config.template,h=h&&((null==l?void 0:l.icon)||(null==l?void 0:l.src))&&!this.config.template,(0,g.el)("div",{"data-dhx-widget-id":this._uid,onkeydown:this._handlers.onkeydown,onkeyup:this._handlers.onkeyup,class:"dhx_widget dhx_combobox"+("left"===t?" dhx_combobox--label-inline":"")+(e?" dhx_combobox--sr_only":"")+(i?" dhx_combobox--required":"")+(n?" dhx_combobox--disabled":"")+(o?" ".concat(o):"")},[d?(0,g.el)("label.dhx_label.dhx_combobox__label",{style:d.style,class:r?"dhx_label--with-help":"",onclick:this._handlers.oninputclick},r?[(d.label||i)&&(0,g.el)("span.dhx_label__holder",d.label),(0,g.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,id:"dhx_label__help_".concat(this._uid)})]:d.label):null,(0,g.el)("div.dhx_combobox-input-box"+(n?".dhx_combobox-input-box--disabled":"")+(s?".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"},[(0,g.el)("div.dhx_combobox-input__icon",{onclick:this._handlers.toggleIcon},[(0,g.el)("span"+(this.popup.isVisible()?".dxi.dxi-menu-up":".dxi.dxi-menu-down"))]),(0,g.el)("div.dhx_combobox-input-list-wrapper",{onclick:this._handlers.oninputclick},[(0,g.el)("ul.dhx_combobox-input-list",p(p([],this._drawSelectedItems(),!0),[(0,g.el)("li.dhx_combobox-input-list__item.dhx_combobox-input-list__item--input",[(u||h)&&l?(0,g.el)("div.dhx_combobox-input__template",{".innerHTML":u?this.config.template(l):null},h?[(0,f.$template)(l)]:null):null,(0,g.el)("input.dhx_combobox-input",{style:{opacity:u||h?0:null},oninput:this._handlers.oninput,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_ref:"input",_key:this._uid,type:"text",placeHolder:c&&a?a:void 0,value:s&&l?this._getItemText(l):this._state.value,readOnly:s||n,required:i,"aria-label":s?"Select value":"Type or select value","aria-describedby":r?"dhx_label__help_".concat(this._uid):null,"aria-expanded":!0})])],!1))])])])):(0,g.el)("div")},w.prototype._drawSelectedItems=function(){var t,e,n=this;return this.config.multiselection?this.config.itemsCount?(t=this.list.selection.getId().length)?[(0,g.el)("li.dhx_combobox-input-list__item.dhx_combobox-tag",[(0,g.el)("span.dhx_combobox-tag__value",(t=t,"function"==typeof(e=this.config.itemsCount)?e(t):t+" "+v.default.selectedItems)),(0,g.el)("button.dhx_button.dhx_combobox-tag__action.dhx_combobox__action-clear-all",{"aria-label":"clear all"},[(0,g.el)("span.dhx_button__icon.dxi.dxi-close-circle")])])]:[]:this.list.selection.getId().map(function(t){var e,i=n.data.getItem(t);return i?(e=n._drawImageOrIcon(i),(0,g.el)("li.dhx_combobox-input-list__item.dhx_combobox-tag",{"data-dhx-id":t},p(p([],e||!n.config.template?[e,(0,g.el)("span.dhx_combobox-tag__value",n._getItemText(i))]:[(0,g.el)("span.dhx_combobox-tag__template",{".innerHTML":n.config.template(i)})],!0),[(0,g.el)("button.dhx_button.dhx_button--icon.dhx_combobox-tag__action.dhx_combobox__action-remove",{type:"button","aria-label":"remove"},[(0,g.el)("span.dhx_button__icon.dxi.dxi-close-circle")])],!1))):null}):[]},w.prototype._drawImageOrIcon=function(t){return t.src?(0,g.el)("img.dhx_combobox-tag__image",{src:t.src,alt:""}):t.icon?(0,g.el)("span.dhx_combobox-tag__icon",{class:t.icon}):null},w.prototype._getItemText=function(t){return t?t.value:null},w.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)))?t:"",this.paint()},w.prototype._changePopupPosition=function(){var t=this;this.config.multiselection&&(0,g.awaitRedraw)().then(function(){t._updatePopup()})},w.prototype._updatePopup=function(){var t=this.getRootView().refs.holder.el,e=(this.popup.getContainer().style.width=t.offsetWidth+"px",this.data.getLength()*(this.config.itemHeight||36)),e=(this.config.listHeight=parseFloat(this.config.listHeight),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",theme:this.getRootNode()})};var b,e=w;function w(t,e){var i=b.call(this,t,(0,o.extend)({listHeight:224,itemHeight:36,disabled:!1,readOnly:!1,newOptions:!1,htmlEnable:!0},e))||this,e=(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 r.EventSystem(i),i.data=new l.DataCollection({}),i.data.parse(i.config.data)):i.config.data?(i.data=i.config.data,i.events=new r.EventSystem(i),i.events.context=i):(i.events=new r.EventSystem(i),i.data=new l.DataCollection({})),i.popup=new u.Popup,i.popup.events.on(u.PopupEvents.afterShow,function(){i.paint()}),i.popup.events.on(u.PopupEvents.afterHide,function(){i.config.multiselection&&(i._state.value=""),i.paint()}),i.popup.events.on(u.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 h.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(),(0,g.create)({render:function(){return i._draw()},hooks:{didRedraw:function(){i.popup.isVisible()&&(i.focus(),i._configurePopup())}}}));return i.mount(t,e),i}f.Combobox=e},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(54),e),o(i(114),e),o(i(55),e),o(i(32),e)},function(t,r,e){"use strict";var n,d,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.List=r.MOVE_DOWN=r.MOVE_UP=void 0,e(1)),h=e(6),f=e(0),p=e(25),g=e(22),o=e(8),_=e(55),v=e(2),m=e(32),l=e(112),e=(r.MOVE_UP=1,r.MOVE_DOWN=2,d=o.View,i(c,d),c.prototype._didRedraw=function(t){},c.prototype._dblClick=function(t){var e=(0,v.locate)(t);e&&(e=this.data.getItem(e).id,this.config.editable&&this.editItem(e),this.events.fire(m.ListEvents.doubleClick,[e,t]))},c.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},c.prototype._dragStart=function(t){var e=this,i=(this._touch.start=!0,[]),n=(0,v.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,!0)),"string"==typeof n&&(n=[n]),this.config.dragMode&&!this._edited?h.dragManager.onMouseDown(t,n||[o],i):null},c.prototype.disableSelection=function(){this.selection.disable()},c.prototype.enableSelection=function(){this.selection.enable()},c.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(m.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(m.ListEvents.afterEditStart,[t])):this._edited=null},c.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())},c.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},c.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.events.fire(m.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.scrollTo(t),this.paint())},c.prototype.getFocus=function(){return this._focus},c.prototype.destructor=function(){this._destructed=!0,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()},c.prototype.scrollTo=function(t){var e=this.getRootView();e&&e.node&&e.node.el&&void 0!==t&&(e=this.getRootNode(),this._scrollTo(t,e))},c.prototype._scrollTo=function(t,e){var i,n,o;e&&-1!==(t=this.data.getIndex(t))&&(o=this.config.virtual,i=Math.floor(t/e.children.length)||0,i=e.children[t-e.children.length*i],o||i)&&(n=o?parseInt(this.config.itemHeight):i.clientHeight,(o=o?t*n:i.offsetTop)>=e.scrollTop+e.clientHeight-n?e.scrollTo(0,o-e.clientHeight+n):o<e.scrollTop&&e.scrollTo(0,o))},c.prototype._renderItem=function(t,e){var i,n,o,r=this.config.itemHeight;return t.$empty?(0,f.el)("li",{class:"dhx_list-item",style:{height:r}}):(i="",this.config.template&&(i=this.config.template(t)),t.html&&(i=t.html),n=t.id==this._focus&&this.config.keyNavigation,t.id==this._edited?(0,l.getEditor)(t,this).toHTML():(o=this.data.getMetaMap(t),o=s(s(s(s({},this._events),{class:"dhx_list-item"+(o&&o.selected?" dhx_list-item--selected":"")+(n?" dhx_list-item--focus":"")+(o&&o.drop&&!this._edited?" dhx_list-item--drophere":"")+(o&&o.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:r},_key:t.id}),this.getItemAriaAttrs(this,t)),{tabindex:n?0:-1}),i?i===t.html||this.config.htmlEnable?(o[".innerHTML"]=i,(0,f.el)("li",o)):(0,f.el)("li",o,i):this.config.$template?(0,f.el)("li",o,[this.config.$template(t)]):(r=t.text||t.value,this.config.htmlEnable?o[".innerHTML"]=r:o.class+=" dhx_list-item--text",this.config.htmlEnable?(0,f.el)("li",o):(0,f.el)("li",o,r))))},c.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(a([(0,f.el)(".div",{style:{height:t[2]+"px"}})],e,!0),[(0,f.el)(".div",{style:{height:t[3]+"px"}})],!1)),(0,f.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)},c.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))},c.prototype._getRange=function(){var t,e,i,n,o,r;return this.config.virtual?(t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight),i=(r=this.data.getRawData(0,-1).length)*e,n=this._topOffset,n=Math.max(0,Math.min(n,i-t)),o=Math.floor(n/e),r=Math.min(r-o,Math.floor(t/e)+5),this._topOffset=n,[o,r+o,o*e,i-e*(r+o)]):[0,-1,0,0]},c.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.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(m.ListEvents.click,[n._focus,t]))},"shift+enter":function(t){n.selection.add(n._focus,!1,!0),n.events.fire(m.ListEvents.click,[n._focus,t])},"ctrl+enter":function(t){n.selection.add(n._focus,!0,!1),n.events.fire(m.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)}))}}},c.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])},c.prototype.getItemAriaAttrs=function(t,e){var i;return s(s({role:"option","aria-selected":e.$selected?"true":"false"},(e=e,(i=t).config.dragMode&&!i._edited?{"aria-grabbed":Boolean(e.$dragtarget&&!i._edited).toString()}:{})),(e=t).config.editable?{"aria-roledescription":"".concat(e._edited?"Press Enter to stop editing":"Double click to edit content")}:{})},c.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox ".concat(t.title||"",", count of options = ").concat(e,".").concat(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},c);function c(t,e){function i(e){return function(t){o.data.setMeta(o.data.getItem(t.target),"drop",e),o.paint()}}function n(e){return function(t){t.source.map(function(t){return o.data.setMeta(o.data.getItem(t),"drag",e)}),o.paint()}}var o=this,r=(e=void 0===e?{}:e).itemHeight||(e.virtual?37:null),r=(r&&"number"==typeof r&&(r=r.toString()+"px"),(o=d.call(this,t,(0,u.extend)({itemHeight:r,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},e))||this)._destructed=!1,o._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},o.config.data),e=(r instanceof h.DataCollection?(o.data=r,o.events=r.events):(o.data=new h.DataCollection({}),o.events=o.data.events,r&&o.data.parse(r)),o.selection=new _.Selection({disabled:!o.config.selection,multiselection:o.config.multiselection},o.data,o.events),o.config.keyNavigation&&(o.keyManager=new p.KeyManager(function(t,e){return e==o._uid&&(!o._edited||o._edited&&"escape"!==t.key)}),o._initHotKey()),o.events.on(h.DataEvents.change,function(t,e,i){"setPage"===e&&o.scrollTo(o.data.getId(i[0])),o.paint()}),o.events.on(h.DataEvents.filter,function(){o.paint()}),o.events.on(g.SelectionEvents.afterUnSelect,function(){return o.paint()}),o.events.on(g.SelectionEvents.afterSelect,function(t){(0,u.isId)(t)&&o.config.selection&&o.setFocus(t),o.paint()}),o.events.on(m.ListEvents.afterEditEnd,o.editEnd.bind(o)),o.events.on(h.DragEvents.canDrop,i(!0)),o.events.on(h.DragEvents.cancelDrop,i(!1)),o.events.on(h.DragEvents.dragStart,n(!0)),o.events.on(h.DragEvents.afterDrag,n(!1)),o._handlers={onmousedown:function(t){o._dragStart(t)},ontouchstart:function(t){o._touch.timer=setTimeout(function(){o._dragStart(t)},o._touch.duration),o._touch.timeStamp?(o._touch.dblDuration>=o._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),o._dblClick(t)),o._touch.timeStamp=null):o._touch.timeStamp=+t.timeStamp.toFixed(),setTimeout(function(){o._touch.timeStamp=null},o._touch.dblDuration)},ontouchmove:function(t){o._touch.start&&t.preventDefault(),o._clearTouchTimer()},ontouchend:function(){o._touch.start=!1,o._clearTouchTimer()},ondragstart:function(){return!(o.config.dragMode&&!o._edited)&&null},oncontextmenu:function(t){var e=null==(e=o.data.getItem((0,v.locate)(t)))?void 0:e.id;(0,u.isId)(e)&&o.events.fire(m.ListEvents.itemRightClick,[e,t])},onclick:function(t){var e=null==(e=o.data.getItem((0,v.locate)(t)))?void 0:e.id;(0,u.isId)(e)&&(o.selection.add(e,t.ctrlKey||t.metaKey,t.shiftKey),o.config.selection&&(o._focus=e),o.events.fire(m.ListEvents.click,[e,t]),o.paint())},ondblclick:function(t){o._dblClick(t)},onscroll:function(t){o.config.virtual&&(o._topOffset=t.target.scrollTop,o._visibleHeight=t.target.offsetHeight,o.paint())},onmouseover:function(t){var e=null==(e=o.data.getItem((0,v.locate)(t)))?void 0:e.id;(0,u.isId)(e)&&e!==(0,v.locate)(t.relatedTarget)&&o.events.fire(m.ListEvents.itemMouseOver,[e,t])}},o.config.eventHandlers);if(e)for(var s=0,a=Object.entries(e);s<a.length;s++){var l=a[s],c=l[0],l=l[1];o._handlers[c]=(0,v.eventHandler)(function(t){return(0,v.locate)(t)},l,o._handlers[c])}o.config.dragMode&&h.dragManager.setItem(o._uid,o);r=(o._topOffset=o._visibleHeight=0,f.create)({render:function(){return o._destructed?(0,f.el)("div"):o._renderList()},hooks:{didMount:function(t){o.config.virtual&&(o._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return o._didRedraw(t)}}});return o.mount(t,r),o}r.List=e},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var n=i(22),o=i(6),r=i(1);function s(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&&(t=n._data.getIndex(t.id),1<(e=n._data.getLength()))&&(n._nextSelection=n._data.getId(e==t-1?t-1:t+1))}),this._data.events.on(o.DataEvents.afterRemove,function(t){t=n._selected.indexOf(t.id);-1!==t&&n._selected.splice(t,1),(0,r.isId)(n._nextSelection)&&(n.add(n._nextSelection),n._nextSelection=null)})}s.prototype.enable=function(){this.config.disabled=!1},s.prototype.disable=function(){this.remove(),this.config.disabled=!0},s.prototype.getId=function(){return this.config.multiselection?this._selected:this._selected[0]},s.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},s.prototype.contains=function(t){return(0,r.isId)(t)?this._selected.includes(t):0<this._selected.length},s.prototype.remove=function(t,e){var i=this;(0,r.isId)(t)?this._unselectItem(t,e):(this._selected.forEach(function(t){return i._unselectItem(t,e)}),this._selected=[])},s.prototype.add=function(t,e,i,n){var o,r=this;this.config.disabled||(void 0===t?this._data.serialize().filter(function(t){t=t.id;return!r._selected.includes(t)}).forEach(function(t){t=t.id;r._addMulti(t,n)}):(o=this.config.multiselection,i&&this._selected.length&&o?this._addMulti(t,n):this._addSingle(t,o&&("ctrlClick"!==o||e),n)))},s.prototype.destructor=function(){var e=this;this._selected.forEach(function(t){return e._unselectItem(t,!0)})},s.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=(i=[o,n])[0],o=i[1]);n<=o;n++){var r=this._data.getId(n);this._selectItem(r,e)}},s.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)},s.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]))},s.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]))},e.Selection=s},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}),e.emptyListHeight=e.emptyListView=e.unselectAllView=e.selectAllView=void 0;var n=i(0),o=i(56);e.selectAllView=function(){return(0,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(0,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(0,n.el)("ul.dhx_list",[(0,n.el)("li.dhx_list-item.dhx_combobox-options__item".concat(t?".dhx_combobox-options__action-create-option":""),{},t?"".concat(o.default.createItem,' "').concat(t,'"'):o.default.notFound)])},e.emptyListHeight=function(t,e){var i=document.createElement("canvas").getContext("2d",{alpha:!1}),t=(i.font="normal 14px Roboto",t?"".concat(o.default.createItem,' "').concat(t,'"'):o.default.notFound);return 13+20*Math.ceil(i.measureText(t).width/(e-16))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComboState=e.ComboboxEvents=void 0,e.ComboboxEvents={beforeChange:"beforeChange",change:"change",focus:"focus",blur:"blur",keydown:"keydown",input:"input",beforeOpen:"beforeOpen",afterOpen:"afterOpen",beforeClose:"beforeClose",afterClose:"afterClose",open:"open",close:"close"},e.ComboState={default:0,0:"default",error:1,1:"error",success:2,2:"success"}},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)},C=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},S=(Object.defineProperty(e,"__esModule",{value:!0}),e.getFixedCols=e.getFixedColsHeader=void 0,i(0)),E=i(4),D=i(16),O=i(60),k=i(7),T=i(10);e.getFixedColsHeader=function(t,e,i){var n,o,r,s,a,l,c,d;if((i!==E.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==E.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length))return n=t.leftSplit,o=t.rightSplit,d=t.$positions,r=t.$totalWidth,s=t.$scrollBarWidth,l=(a=i===E.Split.right)?t.fixedColumns.right:t.fixedColumns.left,c=(0,k.getTotalWidth)(l),t=(0,O.getFixedRows)(w(w({},t),{currentColumns:l,$positions:w(w({},d),{xStart:0,xEnd:a?o:n}),scroll:{top:0,left:0},filteredColumns:l}),w(w({},e),{name:"header",position:"top",shifts:{x:0,y:0}}),i),d=w(w({},e),{name:"header",position:"top"}),(0,S.el)(".dhx_".concat(d.name,"-fixed-cols"),w({onwheel:k.scrollFixedColsAndRows,class:a?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:0,left:a?r<e.wrapper.width-s.y-T.BORDERS?r-c:e.wrapper.width-c-s.y-T.BORDERS:0,width:c,overflow:"hidden"}},{role:"rowgroup","aria-rowcount":t.length}),t.body)},e.getFixedCols=function(t,e,i,n){var o,r,s,a,l,c,d,u,h,f,p,g,_,v,m,y,x,b;if((i!==E.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==E.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length))return b=t.leftSplit,x=t.rightSplit,o=t.$totalWidth,r=t.$totalHeight,s=t.headerHeight,h=t.footerHeight,a=t.$positions,l=t.scroll,c=t.data,d=t.$scrollBarWidth,u=i===E.Split.right,h=(h=r+s+h)>e.gridBodyHeight?t.$footer?h-d.x:e.gridBodyHeight:h<e.gridBodyHeight-d.x?h:t.$footer?e.gridBodyHeight:e.gridBodyHeight-d.x,m=u?t.fixedColumns.right:t.fixedColumns.left,f=(0,k.getTotalWidth)(m),p=u?"rightFixedCols":"leftFixedCols",g=(0,D.getCells)(w(w({},t),{filteredColumns:m,$renderFrom:p,$positions:w(w({},a),{xStart:0,xEnd:u?x:b})})),_=e.sticky,y=w(w({},e),{name:"footer",position:"bottom"}),x=(0,O.getRows)(w(w({},t),{currentColumns:m,$positions:w(w({},a),{xStart:0,xEnd:u?x:b})}),w(w({},e),{name:"footer",position:"bottom"})),v=0,x.forEach(function(t){return v+=t.attrs.style.height}),b=(0,O.getFixedSpans)(w(w({},t),{filteredColumns:m}),w(w({},e),{name:"footer",position:"bottom"}),i),m=function(t){return{role:"rowgroup","aria-rowcount":t}},i=_?(0,S.el)(".dhx_".concat(y.name,"-fixed-cols"),w({onwheel:k.scrollFixedColsAndRows,class:u?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:h<e.gridBodyHeight?h-v:null,left:u?o<e.wrapper.width-d.y-T.BORDERS?o-f:e.wrapper.width-f-d.y-T.BORDERS:0,bottom:h>=e.gridBodyHeight?"".concat(_?d.x:0,"px"):null}},m(x.length)),[x,(0,S.el)("span.dhx_span-spans",{class:"dhx_footer-spans",role:"presentation"},b)]):null,y=a,x=(0,T.getEvents)(t,u?E.Split.right:E.Split.left),b=(0,D.getSpans)(w(w({},t),{$renderFrom:p}),n||(u?E.Split.right:E.Split.left)),[(0,S.el)(".dhx_grid-fixed-cols-wrap",w(w({style:{left:u?o<e.wrapper.width-d.y-T.BORDERS?o-f:e.wrapper.width-f-d.y-T.BORDERS:0,height:h>=e.gridBodyHeight?(_?e.gridBodyHeight:e.gridBodyHeight+s)-d.x:h,paddingTop:s,overflow:"hidden",width:f}},x),{role:"presentation","aria-label":"Fixed column"}),[(0,S.el)(".dhx_grid-fixed-cols",w(w({onwheel:k.scrollFixedColsAndRows,class:u?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{top:-l.top+s-1+"px",paddingTop:e.shifts.y,height:r,position:"absolute"},_flags:S.KEYED_LIST},(0,D.getHandlers)(y.yStart,y.xStart,t)),m(c.length)),C(C([],g,!0),[b&&(0,S.el)("span.dhx_span-spans",{role:"presentation"},[b])],!1)),u?(0,S.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:0}}):(0,S.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{right:0}})]),t.$footer?i:null]}},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)},w=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},k=(Object.defineProperty(e,"__esModule",{value:!0}),e.getFixedDataRows=e.getFixedRows=e.getFixedSpans=e.getRows=void 0,i(0)),T=i(21),M=i(7),P=i(4),C=i(16),S=i(59),E=i(10),H=i(1),L=2;function n(t,e,i,n){i&&(i.toLocaleLowerCase().includes("touch")?e._events:e.events).fire(i,[t,n])}function j(t,e,i){return{onclick:[n,t,i,P.GridEvents[e+"CellClick"]],onmouseover:[n,t,i,P.GridEvents[e+"CellMouseOver"]],onmousedown:[n,t,i,P.GridEvents[e+"CellMouseDown"]],ontouchstart:[n,t,i,P.GridEvents[e+"CellMouseDown"]],ondblclick:[n,t,i,P.GridEvents[e+"CellDblClick"]],oncontextmenu:[n,t,i,P.GridEvents[e+"CellRightClick"]],ontouchmove:[n,t,i,P.GridSystemEvents[e+"CellTouchMove"]],ontouchend:[n,t,i,P.GridSystemEvents[e+"CelltouchEnd"]]}}function R(t,e,i,n,o,r){void 0===o&&(o="");var s=e.type?"dhx_".concat(e.type,"-cell"):"dhx_string-cell",t=i.content[t.content]&&i.content[t.content].toHtml(e,i),a={};return i.filteredColumns.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}),(0,k.el)(".".concat(s),{style:{class:o.trim(),padding:0}},[t&&("string"==typeof t||"number"==typeof t?(0,k.el)("div",{class:"dhx_grid-footer-cell-text",role:"presentation",".innerHTML":e.template&&"string"==typeof t?e.template(t,a,e):t}):t)])}function u(u,t){var h,f,p,g,_,e,v,m;return u.data&&u.filteredColumns?(h=u.$positions,f=t.name,p=u.currentColumns,g=u["".concat(f,"RowHeight")]||40,e=f,t=(t=p).map(function(t){return t[e]||[{}]}),_=(0,M.transpose)(t),m=1,_.map(function(t,d){return(0,k.el)(".dhx_".concat(f,"-row"),O({style:{height:g}},{role:"row","aria-rowindex":d+1}),t.map(function(n,t){function e(t,e,i){return e={"aria-colindex":e},"footer"===t||n.content?e.role="gridcell":(e.role="columnheader",e["aria-sort"]=i),e}var i=n.css||"",o=p[t],r=h.xStart+t+1,s="dxi dxi-sort-variant dhx_grid-sort-icon",a="none",l=(u.sortBy&&"".concat(o.id)===u.sortBy&&!n.content&&(l=u.sortDir||"asc",s+=" dhx_grid-sort-icon--".concat(l),i+=" dhx_grid-".concat(f,"-cell--sorted "),a="asc"===l?"ascending":"descending"),(0,M.isSortable)(u,o)&&n.text&&"footer"!==f&&!1!==n.headerSort),c=(l&&(i+=" dhx_grid-header-cell--sortable"),0===t?"dhx_first-column-cell":""),t=t===p.length-1?"dhx_last-column-cell":"",c=(n.content||(n.align?i+=" dhx_grid-header-cell--align_".concat(n.align," "):i+=" dhx_grid-header-cell--".concat("number"===o.type||"percent"===o.type||"date"===o.type?"align_right":"align_left"," ")),i+="".concat(c," ").concat(t),(void 0!==o.resizable?o:u).resizable);c&&(t=u.rightSplit&&u.$scrollBarWidth.xState&&u.fixedColumns.right.includes(o),c=(0,k.el)("div",{class:"dhx_resizer_grip_wrap","aria-hidden":"true"},[(0,k.el)("div",{class:"dhx_resizer_grip"+(t?" dhx_resizer_grip--left":" dhx_resizer_grip--right"),dhx_resized:o.id,style:{height:"".concat(100*_.length,"%")}},[(0,k.el)("div",{class:"dhx_resizer_grip_line"})])]),(t=o.header&&(null==(t=o.header[0])?void 0:t.colspan))&&(v=t,m=1),v&&m!==v&&(0===d&&(c=null),m++),"footer"===f)&&(c=null),n.align&&(i+=" dhx_align-".concat(n.align));return n.content?(0,k.el)(".dhx_grid-".concat(f,"-cell.dhx_grid-custom-content-cell"),O(O({class:i.trim(),"data-dhx-id":o.id,"data-dhx-text-id":n.id,_key:o.id,style:{width:o.$width,height:"footer"===f?g+L/2+"px":g+"px"}},j(o,f,u)),e(f,r,a)),[R(n,o,u,f,"",d),c||null]):(t="dhx_grid-header-cell-text_content",u.autoHeight&&(t+=" dhx_grid-header-cell-text_content-auto-height"),(0,k.el)(".dhx_grid-".concat(f,"-cell"),O(O({class:i.trim(),"data-dhx-id":o.id,"data-dhx-text-id":n.id,_key:o.id,style:{width:o.$width,height:"footer"===f?g+L/2+"px":g+"px"}},j(o,f,u)),e(f,r,a)),[(0,k.el)("div.dhx_grid-header-cell-text",{role:"presentation"},[(0,k.el)("span",O(O({class:t},(i=n.text,l?{role:"button","aria-label":"Sort by ".concat(i)}:{})),{".innerHTML":n.text})),c||null]),l&&(0,k.el)("div",{class:s,"aria-hidden":"true"})]))}))})):[]}function h(y,x,b){var w=y.columns,C=y.filteredColumns,t=(0,M.transpose)(C.map(function(t){return t[x.name]||[]})),S=y["".concat(x.name,"RowHeight")]||40,E=x.name,D=0;return t.map(function(t,m){return(D=0,k.el)(".dhx_span-row",{style:{top:S*m+"px",height:S},class:"dhx_header-row","aria-hidden":"true"},t.map(function(t,e){var i,n=C[e];if(b===P.Split.right&&0===e&&!t.colspan){var o=(0,M.transpose)(w.map(function(t){return t[x.name]||[]}));t:for(var r=0;r<o[m].length;r++){var s=o[m][r];if(1<s.colspan)for(var a=w.slice(r,r+s.colspan),l=0;l<a.length;l++)if(a[l].id===n.id){i={cell:s,col:w[r],widthBefore:(0,T.getWidth)(a,l,0),isLastCol:r+s.colspan>=w.length};break t}}}var c=(null==i?void 0:i.cell)||t,d=(null==i?void 0:i.col)||n,u=(D+=d.hidden?0:d.$width,0===e?"dhx_first-column-cell":""),h=b?1:y.fixedColumns.right.length+1,t=t.colspan&&(0,T.getReducedColspan)(w,n.id,t.colspan),h=null!=i&&i.isLastCol||e===C.length-h||(t||1)+(e-1)>=C.length-h?"dhx_last-column-cell":"",f=S,p=(c.rowspan&&(f=f*c.rowspan-1),"footer"===x.name&&1<c.rowspan&&f++,(0,M.isSortable)(y,d)&&c.rowspan&&c.text&&"footer"!==x.name&&!1!==c.headerSort),g="dxi dxi-sort-variant dhx_grid-sort-icon",_=(y.sortBy&&"".concat(d.id)===y.sortBy&&!c.content&&(g+=" dhx_grid-sort-icon--".concat(y.sortDir||"asc")),d.align?"dhx_align-".concat(d.align):"number"!==d.type&&"percent"!==d.type&&"date"!==d.type||c.colspan?"dhx_align-left":"dhx_align-right"),u="dhx_grid-header-cell ".concat(u," ").concat(h," ").concat(c.rowspan?"dhx_span-cell__rowspan":""," ").concat(c.align?"dhx_align-".concat(c.align):_," ").concat(c.css||""),h=(p&&(u+=" dhx_grid-header-cell--sortable"),c.content||(c.align?u+=" dhx_grid-header-cell--align_".concat(c.align," "):u+=" dhx_grid-header-cell--".concat("number"===d.type||"percent"===d.type||"date"===d.type?"align_right":"align_left"," ")),null),_=(c.content&&((h=R(c,d,y,E,u,m)).attrs.style=O(O({},h.attrs.style),{width:"100%",borderRight:"0"})),""),v=(0<D-d.$width&&(_="var(--dhx-border)"),"dhx_grid-header-cell-text_content");return y.autoHeight&&(v+=" dhx_grid-header-cell-text_content-auto-height"),c.colspan||c.rowspan?(0,k.el)(".dhx_span-cell",O({style:{width:(0,T.getWidth)(w,c.colspan,(0,H.findIndex)(w,function(t){return t.id===d.id})),height:f,left:D-d.$width-((null==i?void 0:i.widthBefore)||0),borderLeft:_,top:S*m},class:u.trim(),"data-dhx-id":d.id,"data-dhx-text-id":c.id},j(d,E,y)),[h||c.rowspan?(0,k.el)("div.dhx_grid-header-cell-text",{role:"presentation"},[(0,k.el)("span",{class:v,".innerHTML":c.text})]):(0,k.el)("span",{class:v,".innerHTML":c.text}),p&&(0,k.el)("div",{class:g}),b===P.Split.left&&t&&e+t>C.length||i?(0,k.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:((null==i?void 0:i.widthBefore)||(0,T.getWidth)(C,C.length-e,e))-L/2}}):null]):null}).filter(function(t){return t}))})}function D(t){return{role:"rowgroup","aria-rowcount":t}}e.getRows=u,e.getFixedSpans=h,e.getFixedRows=function(i,n,t){var o,r,e,s,a=i.leftSplit,l=i.$totalWidth,c=u(i,n),t=h(i,n,t),d=null;return"footer"!==n.name||n.sticky||(o=i.rightSplit,r=i.fixedColumns,d=w(w([],(s=function(t){var e=(t=void 0===t?!1:t)?r.right:r.left;return!t&&0<=a||t&&0<=o?u(O(O({},i),{currentColumns:e,$positions:O(O({},i.$positions),{xStart:0,xEnd:t?o:a})}),n):[]})(),!0),s(!0),!0)),(s={position:"sticky"})[n.position]=0,n.sticky||(s.left=-i.scroll.left,e=-i.scroll.left,s.position="relative"),(0,k.el)(".dhx_".concat(n.name,"-wrapper").concat(i.rightSplit?".dhx_grid__rows_right--fixed":""),{class:n.sticky?"":"dhx_compatible-".concat(n.name),style:O(O({},s),{left:n.sticky?e:0,height:"footer"===n.name?i[n.name+"Height"]+L/2:i[n.name+"Height"],width:n.sticky?l:n.wrapper.width-L}),role:"presentation"},[(0,k.el)(".dhx_grid-".concat(n.name).concat(a?".dhx_grid_fixed_left":""),{style:{height:"footer"===n.name?i[n.name+"Height"]+L/2:i[n.name+"Height"],left:e,paddingLeft:n.shifts.x,width:l},role:"presentation"},[(0,k.el)(".dhx_".concat(n.name,"-rows"),O({},D(w([],c,!0).length)),w([],c,!0)),(0,k.el)(".dhx_".concat(n.name,"-spans"),{style:{marginLeft:-n.shifts.x},class:"dhx_".concat(n.name,"-rows"),role:"presentation"},t),d&&(0,k.el)(".dhx_".concat(n.name,"-fixed-cols"),{style:{position:"absolute",top:0,left:i.scroll.left+"px",height:"100%"}},d)]),(0,k.el)("div",{style:{width:l},role:"presentation"})])},e.getFixedDataRows=function(e,i,n){var t,o,r,s,a,l,c,d,u,h,f,p,g,_,v,m,y,x,b;if(!(n===P.Split.top&&"number"!=typeof e.topSplit||n===P.Split.bottom&&"number"!=typeof e.bottomSplit))return t=e.$totalWidth,o=e.topSplit,r=e.bottomSplit,s=e.$positions,a=e.data,l=e.$totalHeight,c=e.$width,d=e.headerHeight,u=e.footerHeight,h=e.$scrollBarWidth,f=n===P.Split.bottom,p=f?e.fixedRows.bottom:e.fixedRows.top,g=f?"bottomFixedRows":"topFixedRows",_=(0,C.getCells)(O(O({},e),{data:p,$renderFrom:g,$positions:O(O({},s),{yStart:0,yEnd:f?r:o})})),v=(0,E.getEvents)(e,f?P.Split.bottom:P.Split.top),m=p.reduce(function(t,e){return t+e.$height},0),y=(0,C.getSpans)(O(O({},e),{$renderFrom:g,data:a}),f?P.Split.bottom:P.Split.top),x=(0,M.getTotalHeight)(e.fixedRows.bottom),b=w(w([],(b=function(t){return(0,S.getFixedCols)(O(O({},e),{headerHeight:0,data:p,$renderFrom:g,scroll:O(O({},e.scroll),{top:-1}),$positions:O(O({},s),{yStart:0,yEnd:f?r:o}),$totalHeight:m,$data:a}),O(O({},i),{shifts:O(O({},i.shifts),{y:0})}),t,n)||[]})(P.Split.left),!0),b(P.Split.right),!0),[(0,k.el)(".dhx_grid-fixed-data-rows-wrap",{class:f?"dhx_grid__rows_bottom--fixed":"",style:{top:f?l<i.wrapper.height-h.x-L?l+d-x+L/2:i.wrapper.height-x-u-L/2-h.x:d,overflow:"hidden",height:m>i.wrapper.height?i.wrapper.height:m,width:t+h.y+L<c?t:c-h.y-L}},w(w([(0,k.el)(".dhx_grid-fixed-cols",O(O({onwheel:M.scrollFixedColsAndRows,style:{left:-e.scroll.left+"px",paddingLeft:i.shifts.x,position:"absolute",width:t},_flags:k.KEYED_LIST},(0,C.getHandlers)(0,s.xStart,e)),D(a.length)),[(0,k.el)(".dhx_grid-fixed-rows",O({class:e.rightSplit?"dhx_grid__rows_right--fixed":""},v),w(w([],_,!0),[y&&(0,k.el)(".dhx_span-spans",{role:"presentation"},[y])],!1))])],b,!0),[e.bottomSplit?(0,k.el)(".dhx_grid__rows-border--frozen",{role:"presentation"}):null],!1))]}},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)},v=(Object.defineProperty(e,"__esModule",{value:!0}),e.rightGrid=e.right=e.leftGrid=e.left=e.topGrid=e.top=e.bottomGrid=e.bottom=void 0,i(1)),m=i(0),y=i(3),x=function(t){return t.toString()},b=function(t,e){return{role:"graphics-object","aria-label":"".concat(t,"-axis").concat(e?", "+e:"")}};e.bottom=function(t,e,i,n){var o,r,s=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,c=[],f=0,d=(d&&(f=a,o=u&&!isNaN(u),r=n+a,c=t.map(function(t){var e=t[0],i=o?"rotate(".concat(u," ").concat(e," ").concat(r,")"):"",n=["scale-text","top-text"];return o&&n.push((0,y.getClassesForRotateScale)("bottom",u%360)),(0,m.sv)("text",{x:e,y:r,class:n.join(" "),transform:i},[(0,y.verticalCenteredText)(h(t[1]))])})),(0,v.uid)()),a=null,t=(0,m.sv)("path",{class:"main-scale",d:"M0 ".concat(n," H").concat(i-.5),id:d});return s&&(a=(0,m.sv)("text",{dx:i/2,dy:l+f},[(0,m.sv)("textPath",{href:"#".concat(d),class:"scale-title "},s)])),(0,m.sv)("g",_({},b("x",s||e.text)),[t,a].concat(c))},e.bottomGrid=function(t,e,i,n){for(var o,r,s,a,l=n.dashed,c=n.grid,d=n.targetLine,u=n.targetValue,h=t.length,f=[],p="grid-line ".concat(l?"dash-line":""," ").concat(c?"":"hidden-line"),g=0;g<h;g++)0===g&&0===t[g][0]&&!n.hidden||(g===d?(o="M".concat(t[g][0]," 0 V ").concat(i),o=(0,m.sv)("path",{d:o,class:"".concat(p," spec-grid-line")}),f.push(o)):(s="M".concat(t[g][0]," 0 V ").concat(i),a=(0,m.sv)("path",{d:s,class:p,_ref:"line"+Math.round(t[g][0])}),f.push(a),g===h-1&&t[g][0]!==e&&(o="M".concat(e," 0 V ").concat(i),r=(0,m.sv)("path",{d:o,class:p}),f.push(r))));return u&&(s="M".concat(u*e," 0 V ").concat(i),a=(0,m.sv)("path",{d:s,class:"".concat(p," spec-grid-line")}),f.push(a)),(0,m.sv)("g",f)},e.top=function(t,e,i,n){var o,r,s=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,c=[],f=0,d=(d&&(f=a,o=u&&!isNaN(u),r=-a,c=t.map(function(t){var e=["scale-text"],i=t[0],n=o?"rotate(".concat(u," ").concat(i," ").concat(r,")"):"";return o&&e.push((0,y.getClassesForRotateScale)("top",u%360)),(0,m.sv)("text",{x:i,y:r,class:e.join(" "),transform:n},[(0,y.verticalCenteredText)(h(t[1]))])})),(0,v.uid)()),a=(0,m.sv)("path",{d:"M0 0 H".concat(i),class:"main-scale",id:d}),t=null;return s&&(t=(0,m.sv)("text",{dx:i/2,dy:-l-f},[(0,m.sv)("textPath",{href:"#".concat(d),class:"scale-title"},s)])),(0,m.sv)("g",_({},b("x",s||e.text)),[a,t].concat(c))},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 ".concat(s?"dash-line":""," ").concat(a?"":"hidden-line"),h=0;h<c;h++)0===h&&0===t[h][0]&&!n.hidden||(h===l?(o="M".concat(t[h][0]," 0 V ").concat(i),o=(0,m.sv)("path",{d:o,class:"".concat(u," spec-grid-line")}),d.push(o)):(o="M".concat(t[h][0]," 0 V ").concat(i),r=(0,m.sv)("path",{d:o,class:u,_ref:"line"+Math.round(t[h][0])}),d.push(r),h===c-1&&0!==t[h][0]&&(r="M0 0 V ".concat(i),r=(0,m.sv)("path",{d:r,class:u}),d.push(r))));return(0,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,r=[],p=0,u=(u&&(s=(0,y.getFontStyle)("scale-text"),a=0,l=h&&!isNaN(h),r=t.map(function(t){var e,i=t[0],n=-d,o=l?"rotate(".concat(h," ").concat(n," ").concat(i,")"):"",r=["scale-text"],t=f(t[1]);return c&&(e=(0,y.getTextWidth)(t,s),a<e)&&(a=e),r.push(l?(0,y.getClassesForRotateScale)("left",h%360):"end-text"),(0,m.sv)("text",{x:n,y:i,class:r.join(" "),transform:o},[(0,y.verticalCenteredText)(t)])}),p=a+d),(0,v.uid)()),t=(0,m.sv)("path",{class:"main-scale",d:"M0 ".concat(n," V 0.5"),id:u,_ref:t.length?"line0":null}),g=null;return c&&(g=(0,m.sv)("text",{dx:n/2,dy:-o-p},[(0,m.sv)("textPath",{href:"#".concat(u),class:"scale-title"},c)])),(0,m.sv)("g",_({},b("y",c||e.text)),[t,g].concat(r))},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 ".concat(a?"dash-line":""),p=0;p<u;p++)0===p&&t[p][0]===i&&!n.hidden||(c===p?(r="M0 ".concat(t[p][0]," H ").concat(e),s=(0,m.sv)("path",{d:r,class:"".concat(f," spec-grid-line")}),h.push(s)):l&&(r="M0 ".concat(t[p][0]," H ").concat(e),s=(0,m.sv)("path",{d:r,class:f}),h.push(s),p===u-1)&&t[p][0]!==e&&(o="M0 0 H".concat(e),o=(0,m.sv)("path",{d:o,class:f}),h.push(o)));return d&&(r="M0 ".concat(d*i," H ").concat(e),s=(0,m.sv)("path",{d:r,class:"".concat(f," spec-grid-line")}),h.push(s)),(0,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,o=[],p=0,r=(r&&(a=(0,y.getFontStyle)("scale-text"),l=0,c=h&&!isNaN(h),o=t.map(function(t){var e,i=f(t[1]),t=t[0],n=s+u,o=c?"rotate(".concat(h," ").concat(n," ").concat(t,")"):"",r=["scale-text"];return d&&(e=(0,y.getTextWidth)(i,a),l<e)&&(l=e),r.push(c?(0,y.getClassesForRotateScale)("right",h%360):"start-text"),(0,m.sv)("text",{x:n,y:t,class:r.join(" "),transform:o},[(0,y.verticalCenteredText)(i)])}),p=u+l),(0,v.uid)()),t=(0,m.sv)("path",{d:"M".concat(s," ").concat(i," V 0"),class:"main-scale",id:r,_ref:t.length?"line0":null}),g=null;return d&&(g=(0,m.sv)("text",{dx:i/2,dy:n+p},[(0,m.sv)("textPath",{href:"#".concat(r),class:"scale-title"},d)])),(0,m.sv)("g",_({},b("y",d||e.text)),[t,g].concat(o))},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 ".concat(a?"dash-line":""),f=0;f<d;f++)0===f&&t[f][0]===i&&!n.hidden||(c===f?(o="M0 ".concat(t[f][0]," H ").concat(e),r=(0,m.sv)("path",{d:o,class:"".concat(h," spec-grid-line")}),u.push(r)):l&&(o="M0 ".concat(t[f][0]," H ").concat(e),r=(0,m.sv)("path",{d:o,class:h}),u.push(r),f===d-1)&&t[f][0]!==e&&(s="M0 0 H".concat(e),s=(0,m.sv)("path",{d:s,class:h}),u.push(s)));return(0,m.sv)("g",u)}},function(t,e,i){"use strict";var n,r,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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)},v=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),a=i(3),i=i(34),i=(r=i.default,o(l,r),l.prototype.paint=function(t,e,i){r.prototype.paint.call(this,t,e);var n=[];return this._form(t,e,n,i),this._markers(n),(0,v.sv)("g",s(s({class:"seria",_key:this.id},(t=this.config,{"aria-label":"chart ".concat(t.value||"")})),{tabindex:0}),n)},l.prototype.paintformAndMarkers=function(t,e,i){r.prototype.paint.call(this,t,e);var n=[],o=[];return this._form(t,e,n,i),this._markers(o),[(0,v.sv)("g",{class:"seria",_key:this.id},n),(0,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],(0,a.calcPointRef)(t[2],n.id))})))},l.prototype._form=function(t,i,e,n){var o,r,s="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":""),a=this.config,l=a.id,c=a.fill,d=a.alpha,u=a.color,a=a.strokeWidth,h=this._points,f=h[h.length-1],p="";if(n){for(var g=n.length-1;0<=g;g--){var _=n[g];p+=(g===h.length-1?"M":"L").concat(_[0]," ").concat(_[1]," ")}p+=h.map(function(t,e){return(e?"L ".concat(t[0]," "):"V ").concat(t[1])}).join(" ")+"Z"}else p+=h.map(function(t,e){return(e?"L":"M0 ".concat(i," L0 ").concat(t[1]," L")).concat(t[0]," ").concat(t[1])}).join(" ")+"L".concat(t," ").concat(f[1]," V ").concat(i);a&&(o=h.length-1,r=function(t){return t===o?-.5:t?0:.5},t=h.map(function(t,e){return(e?"L":"M0 ".concat(t[1]," L0 ").concat(t[1]+r(e)," L")).concat(t[0]+r(e)," ").concat(t[1])}).join(" ")+"L".concat(t," ").concat(f[1]),f=(0,v.sv)("path",{d:t,"stroke-width":a,stroke:u,fill:"none",class:s}),e.push(f));t=(0,v.sv)("path",{id:"seria"+l,d:p,class:s,fill:c,_ref:l,"fill-opacity":d,stroke:"none"});return e.push(t),e},l.prototype._setDefaults=function(t){var e={alpha:.3,strokeWidth:2,fill:t.color||"#5E83BA",color:"#5E83BA",active:!0,tooltip:!0,pointType:"empty"},e=(this.config=s(s({},e),t),this.config.pointType),t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShadeHTMLHelper=e.getShadeHelper=e.getHTMLHelper=e.getHelper=void 0;var s=i(0),a=i(3),n={circle:function(t,e,i,n,o,r){return(0,s.sv)("circle",{_ref:r,cx:n,cy:o,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2})},rect:function(t,e,i,n,o,r){return(0,s.sv)("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){r={_ref:r,points:"".concat(n-5,",").concat(o," ").concat(n,",").concat(o+5," ").concat(n+5,",").concat(o," ").concat(n,",").concat(o-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return(0,s.sv)("polygon",r)},triangle:function(t,e,i,n,o,r){r={_ref:r,points:"".concat(n,",").concat(o-5," ").concat(n+5,",").concat(o+5," ").concat(n-5,",").concat(o+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return(0,s.sv)("polygon",r)},simpleCircle:function(t,e,i,n,o,r){return(0,s.sv)("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(0,s.sv)("rect",{_ref:r,x:n-3,y:o-3,width:6,height:6,class:"figure point-simple-rect",fill:t})},empty:function(){return null}},o={circle:function(t,e,i,n,o,r){return'<circle class="figure point-circle" _ref="'.concat(r,'" cx="').concat(n,'" cy="').concat(o,'" r="4" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rect:function(t,e,i,n,o,r){return'<rect _ref="'.concat(r,'" x="').concat(n-4,'" y="').concat(o-4,'" width="8" height="8" class="figure point-rect" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rhombus:function(t,e,i,n,o,r){return'<polygon _ref="'.concat(r,'" points="').concat(n-5,",").concat(o," ").concat(n,",").concat(o+5," ").concat(n+5,",").concat(o," ").concat(n,",").concat(o-5,'" class="figure point-rhombus" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},triangle:function(t,e,i,n,o,r){return'<polygon _ref="'.concat(r,'" points="').concat(n,",").concat(o-5," ").concat(n+5,",").concat(o+5," ").concat(n-5,",").concat(o+5,'" class="figure point-triangle" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},simpleCircle:function(t,e,i,n,o,r){return'<circle _ref="'.concat(r,'" cx="').concat(n,'" cy="').concat(o,'" r="3" class="figure point-simple-circle" fill="').concat(t,'"/>')},simpleRect:function(t,e,i,n,o,r){return'<rect _ref="id" x="'.concat(n-3,'" y="').concat(o-3,'" width="6" height="6" class="figure point-simple-rect" fill="').concat(t,'"/>')},empty:function(){return null}};function l(t){t=n[t.toString()];if(t)return t;throw new Error("unknown point type")}function c(t){t=o[t.toString()];if(t)return t;throw new Error("unknown point type")}e.getHelper=l,e.getHTMLHelper=c,e.getShadeHelper=function(t,n){var o=l(t),r=(n=n||"none",(0,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),r=(n=n||"none",(0,a.getColorShade)(n,.2));return function(t,e,i){return o(n,r,"",t,e,i)}}},function(t,e,i){"use strict";var n,r,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),_=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)},s=(Object.defineProperty(e,"__esModule",{value:!0}),i(1)),v=i(0),m=i(3),i=i(34),i=(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);var n,o;return this.config.active?(o=[],this._gradient&&o.push((0,v.sv)("defs",[this._gradient()])),n="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":""),n=this._getForm(this._points,n,t,e,i),o=o.concat(n),(0,v.sv)("g",_(_({class:"seria",_key:this.id},(t=this.config,{"aria-label":"chart ".concat(t.value||"")})),{tabindex:0}),o)):null},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 ".concat(t[0]-this.config.barWidth/2," ").concat(e,"\nV ").concat(t[1],"\nh ").concat(this.config.barWidth,"\nV ").concat(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],e=(e+t[1])/2;return{x:n,y:e,class:"bar-text",transform:i&&!isNaN(i)?"rotate(".concat(i," ").concat(n," ").concat(e,")"):""}},a.prototype._getForm=function(t,i,e,n,o){var r=this,s=function(t,e,i){var n=e[3],o=i=void 0===i?0:i,e=e[4];return e<i&&(o=e,e=i),("xbar"===t?"bar y=".concat(n,", x from "):"bar x=".concat(n,", y from ")).concat(o," to ").concat(e)},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),g=function(t){return o?o[t][1]:p},n=t.map(function(t,e){return(0,v.sv)("path",_(_({_key:"seria"+r.config.id+e,_ref:(0,m.calcPointRef)(t[2],r.config.id),d:r._path(t,g(e)),class:i,fill:c,onclick:[r._handlers.onclick,t[2],r.config.value],onmousemove:[r._handlers.onmousemove,t[2],r.config.id],onmouseleave:[r._handlers.onmouseleave,t[2],r.config.id],"fill-opacity":d},(e=r.config.type,{role:"graphics-symbol","aria-roledescription":"bar","aria-label":s(e,t,l)})),{tabindex:0}))});return a.push.apply(a,n),(u||h||f)&&!1!==u&&(n=t.map(function(t,e){var i,n=r._getText(t);return i=t,16<Math.abs(g(e)-i[1])?(0,v.sv)("text",_(_({},r._text(t,g(e),f)),{"aria-hidden":"true"}),[h?(0,m.verticalCenteredText)(h(n)):(0,m.verticalCenteredText)(n)]):null}),a.push.apply(a,n)),a},a.prototype._getText=function(t){return t[4].toString()},a.prototype._setDefaults=function(t){this.config=_(_({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e,i,t=this.config.pointType,n=this.config.pointColor||this.config.color;t&&(this.config.pointType=t,this._drawPointType=this._getPointType(t,n)),this.config.gradient&&(e="gradient"+(0,s.uid)(),i=this.config.gradient(this.config.fill),this._gradient=function(){return(0,m.linearGradient)(i,e)},this.config.fill="url(#".concat(e,")"))},a);function a(){var t=null!==r&&r.apply(this,arguments)||this;return t._shift=0,t}e.default=i},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".concat(d[0]," ").concat(d[1],"\n\t\t\t\t").concat(d[2]," ").concat(d[3],"\n\t\t\t\t").concat(d[4]," ").concat(d[5]):5===u?"L".concat(d[0]," ").concat(d[1]):"S".concat(d[0]," ").concat(d[1],"\n\t\t\t\t").concat(d[2]," ").concat(d[3]):c=(c+=e?"L":"M")+(5===u?"".concat(d[0]," ").concat(d[1]):"".concat(d[u-2]," ").concat(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)for(var o,r,e=0|e,s=Math.max(0<=e?e:n-Math.abs(e),0);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!((e="number"!=typeof 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 this.indexOf(t,e=e||0)===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){var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;this.path.push(document,window)}return 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}),e.Chart=e.setTheme=e.awaitRedraw=e.resizeHandler=e.vmdom=void 0,i(73),i(74);var n=i(0),o=(e.vmdom={sv:n.sv},i(0)),r=(Object.defineProperty(e,"resizeHandler",{enumerable:!0,get:function(){return o.resizeHandler}}),Object.defineProperty(e,"awaitRedraw",{enumerable:!0,get:function(){return o.awaitRedraw}}),Object.defineProperty(e,"setTheme",{enumerable:!0,get:function(){return o.setTheme}}),i(79));Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r.Chart}})},function(t,e,i){"use strict";i.r(e)},function(t,e,i){"use strict";i.r(e)},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(76),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(23))},function(t,e,i){!function(t,f){!function(i,r){"use strict";var n,s,a,o,l,c,e,t;function d(t){delete s[t]}function u(t){if(a)setTimeout(u,0,t);else{var e=s[t];if(e){a=!0;try{var i=e,n=i.callback,o=i.args;switch(o.length){case 0:n();break;case 1:n(o[0]);break;case 2:n(o[0],o[1]);break;case 3:n(o[0],o[1],o[2]);break;default:n.apply(r,o)}}finally{d(t),a=!1}}}}function h(){function t(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(e)&&u(+t.data.slice(e.length))}var e="setImmediate$"+Math.random()+"$";i.addEventListener?i.addEventListener("message",t,!1):i.attachEvent("onmessage",t),l=function(t){i.postMessage(e+t,"*")}}i.setImmediate||(n=1,a=!(s={}),o=i.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&t.setTimeout?t:i,"[object process]"==={}.toString.call(i.process)?l=function(t){f.nextTick(function(){u(t)})}:!function(){var t,e;if(i.postMessage&&!i.importScripts)return t=!0,e=i.onmessage,i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}()?l=i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){u(t.data)},function(t){e.port2.postMessage(t)}):o&&"onreadystatechange"in o.createElement("script")?(c=o.documentElement,function(t){var e=o.createElement("script");e.onreadystatechange=function(){u(t),e.onreadystatechange=null,c.removeChild(e),e=null},c.appendChild(e)}):function(t){setTimeout(u,0,t)}:h(),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 s[n]={callback:t,args:e},l(n),n++},t.clearImmediate=d)}("undefined"==typeof self?void 0===t?this:t:self)}.call(this,i(23),i(77))},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")}try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return(i=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)}}}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){for(var t=s(u),e=(c=!0,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)(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 O=1,l=2,k=3,T=4,M=5,t=typeof window!=="undefined",e,r=(t?window:{}).requestAnimationFrame,c={};function n(){}var p=Array.isArray;function d(t){return t!=null}function s(t){return t!=null&&t.constructor===Object}function N(t,e,i,n){t.splice.apply(t,[i,n].concat(e))}function V(t){var e=typeof t;return e==="string"||e==="number"}function a(t){return typeof t==="function"}function W(t){return typeof t==="object"&&a(t.then)}function u(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 z(t,e,i){var n;while(n=e.shift())if(e.length===0)t[n]=i;else t[n]=t=t[n]||{}}function B(t,e){var i=[];for(var n=e;n<t.length;n++)i.push(t[n]);return i}function G(t,e){for(var i in t)if(t[i]!==e[i])return false;return true}function Y(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 X(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 q(t,e,i){return function(){return t.apply(i,e)}}function U(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 K(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 J(t){return t[0]==="o"&&t[1]==="n"}function Z(t){return t[0]==="_"}function Q(t){return t==="style"}function h(t){t&&t.el&&t.el.offsetHeight}function P(t){return t.node!=null&&t.node.el!=null}function tt(t,e){switch(e){case"value":case"checked":case"selected":return true}return false}function f(t){t=t||c;while(t.vm==null&&t.parent)t=t.parent;return t.vm}function g(){}var et=g.prototype={constructor:g,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 it(t){var e=new g;e.type=l;e.body=t;return e}var nt={},ot=/\[(\w+)(?:=(\w+))?\]/g;function rt(t){{var e=nt[t];if(e==null){var i,n,o,r;nt[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=ot.exec(t)){if(e.attrs==null)e.attrs={};e.attrs[r[1]]=r[2]||""}}return e}}var _=1,H=2,L=4,j=8;function st(t,e,i,n){var o=new g;o.type=O;if(d(n))o.flags=n;o.attrs=e;var r=rt(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 at(t,e,i){var n=["refs"].concat(e.split("."));z(t,n,i)}function lt(t){while(t=t.parent)t.flags|=_}function R(t,e,i,n){if(t.type===M||t.type===T)return;t.parent=e;t.idx=i;t.vm=n;if(t.ref!=null)at(f(t),t.ref,t);var o=t.hooks,r=n&&n.hooks;if(o&&(o.willRemove||o.didRemove)||r&&(r.willUnmount||r.didUnmount))lt(t);if(p(t.body))ct(t);else;}function ct(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))N(e,n,i--,1);else{if(n.type==null)e[i]=n=it(""+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 R(n,t,i,null);else R(n,t,i,null)}}}var dt={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 ut(t,e){return!isNaN(e)&&!dt[t]?e+"px":e}function ht(t,e){var i=(t.attrs||c).style;var n=e?(e.attrs||c).style:null;if(i==null||V(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]=ut(o,r)}if(n)for(var s in n)if(i[s]==null)t.el.style[s]=""}}var v=[];function m(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?h(i.parent)&&r(i,n):v.push([r,i,n]);else return r(i,n)}}function y(t){if(v.length){h(t.node);var e;while(e=v.shift())e[0](e[1],e[2])}}var i=t?document:null;function ft(t){while(t._node==null)t=t.parentNode;return t._node}function pt(t,e){if(e!=null)return i.createElementNS(e,t);return i.createElement(t)}function gt(t){return i.createTextNode(t)}function _t(t){return i.createComment(t)}function x(t){return t.nextSibling}function vt(t){return t.previousSibling}function mt(t){var e=t.vm;var i=e!=null&&m(e.hooks,"willUnmount",e,e.data);var n=m(t.hooks,"willRemove",t);if((t.flags&_)===_&&p(t.body))for(var o=0;o<t.body.length;o++)mt(t.body[o]);return i||n}function b(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++)b(e,n.body[r].el);else C(n);delete e._node;t.removeChild(e);m(n.hooks,"didRemove",n,null,i);if(o!=null){m(o.hooks,"didUnmount",o,o.data,i);o.node=null}}function w(t,e){var i=e._node;if(i._dead)return;var n=mt(i);if(n!=null&&W(n)){i._dead=true;n.then(q(b,[t,e,true]))}else b(t,e)}function C(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))C(n)}}function I(t){var e=t.el;if((t.flags&_)===0){p(t.body)&&C(t);e.textContent=null}else{var i=e.firstChild;do{var n=x(i);w(e,i)}while(i=n)}}function S(t,e,i){var n=e._node,o=e.parentNode!=null;var r=e===i||!o?n.vm:null;if(r!=null)m(r.hooks,"willMount",r,r.data);m(n.hooks,o?"willReinsert":"willInsert",n);t.insertBefore(e,i);m(n.hooks,o?"didReinsert":"didInsert",n);if(r!=null)m(r.hooks,"didMount",r,r.data)}function yt(t,e,i){S(t,e,i?x(i):null)}var E={};function xt(t){u(E,t)}function bt(t){var e=this,i=e;var n=B(arguments,1).concat(i,i.data);do{var o=e.onemit;var r=o?o[t]:null;if(r){r.apply(e,n);break}}while(e=e.parent());if(E[t])E[t].apply(e,n)}var D=n;function wt(t){D=t.onevent||D;if(t.onemit)xt(t.onemit)}function Ct(t,e,i){t[e]=i}function St(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);D.call(null,i,n,o,o.data,e);if(r===false){i.preventDefault();i.stopPropagation()}}function Et(t){var e=ft(t.target);var i=f(e);var n=t.currentTarget._node.attrs["on"+t.type],o,r;if(p(n)){o=n[0];r=n.slice(1);St(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=[]}St(o,r,t,e,i)}}function Dt(t,e,i,n){if(i===n)return;var o=t.el;if(i==null||a(i))Ct(o,e,i);else if(n==null)Ct(o,e,Et)}function Ot(t,e,i){if(e[0]==="."){e=e.substr(1);i=true}if(i)t.el[e]="";else t.el.removeAttribute(e)}function kt(t,e,i,n,o){var r=t.el;if(i==null)!o&&Ot(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 Tt(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=tt(t.tag,r);var l=a?t.el[r]:o[r];if(s===l);else if(Q(r))ht(t,e);else if(Z(r));else if(J(r))Dt(t,r,s,l);else kt(t,r,s,a,i)}for(var r in o)!(r in n)&&!Z(r)&&Ot(t,r,tt(t.tag,r)||J(r))}}function Mt(t,e,i,n){if(t.type===T){e=t.data;i=t.key;n=t.opts;t=t.view}return new o(t,e,i,n)}function Pt(t){for(var e=0;e<t.body.length;e++){var i=t.body[e];var n=i.type;if(n<=k)S(t.el,A(i));else if(n===T){var o=Mt(i.view,i.data,i.key,i.opts)._redraw(t,e,false);n=o.node.type;S(t.el,A(o.node))}else if(n===M){var o=i.vm;o._redraw(t,e);n=o.node.type;S(t.el,o.node.el)}}}function A(t,e){if(t.el==null)if(t.type===O){t.el=e||pt(t.tag,t.ns);if(t.attrs!=null)Tt(t,c,true);if((t.flags&j)===j)t.body.body(t);if(p(t.body))Pt(t);else if(t.body!=null&&t.body!=="")t.el.textContent=t.body}else if(t.type===l)t.el=e||gt(t.body);else if(t.type===k)t.el=e||_t(t.body);t.el._node=t;return t.el}function Ht(t,e){return e[t.idx+1]}function Lt(t,e){return e[t.idx-1]}function jt(t){return t.parent}window.lisMove=At;var Rt=1,F=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(jt(s)!==t){a=l(n[u]);s.vm!=null?s.vm.unmount(true):w(e,n[u]);n[u]=a;return}}if(n[h]==o)return F;else if(n[h].el==null){d(e,A(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 Rt}}}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=K(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 Ft=It(x,Ht,S,"lftSib","lftNode","rgtSib","rgtNode",yt),$t=It(vt,Lt,yt,"rgtSib","rgtNode","lftSib","lftNode",S);function Nt(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=Ft(t,n,o,r,null,false);if(s===Rt)break;if(s===F)break t}while(1){var a=$t(t,n,o,r,r.lftNode,false);if(a===Rt)break;if(a===F)break t}Vt(t,n,o,r);break}}function Vt(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=U(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=Ft(t,e,i,n,null,true);if(d===F)break}}function Wt(t){return t.el._node.parent!==t.parent}function zt(t,e,i){return e[i]}function Bt(t,e,i){for(;i<e.length;i++){var n=e[i];if(n.vm!=null){if(t.type===T&&n.vm.view===t.view&&n.vm.key===t.key||t.type===M&&n.vm===t.vm)return n}else if(!Wt(n)&&t.tag===n.tag&&t.type===n.type&&t.key===n.key&&(t.flags&~_)===(n.flags&~_))return n}return null}function Gt(t,e,i){return e[e._keys[t.key]]}function $(t,e){m(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)Tt(t,e,false);var r=p(n);var s=p(o);var a=(t.flags&j)===j;if(r){if(s||a)Yt(t,e);else if(o!==n)if(o!=null)i.textContent=o;else I(e)}else if(s){I(e);Pt(t)}else if(o!==n)if(i.firstChild)i.firstChild.nodeValue=o;else i.textContent=o;m(e.hooks,"didRecycle",e,t)}function Yt(t,e){var i=t.body,n=i.length,o=e.body,r=o.length,s=(t.flags&j)===j,a=(t.flags&H)===H,l=(t.flags&L)===L,c=!a&&t.type===O,d=true,u=l?Gt:a||s?zt:Bt;if(l){var h={};for(var f=0;f<o.length;f++)h[o[f].key]=f;o._keys=h}if(c&&n===0){I(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);R(g,t,f);g._diff=C!=null?C:i.diff(f);if(p!=null)$(g,p)}else;b[f]=g}else{var g=i[f];var S=g.type;if(S<=k){if(p=d&&u(g,o,y)){$(g,p);_=p.idx}}else if(S===T){if(p=d&&u(g,o,y)){_=p.idx;var E=p.vm._update(g.data,t,f)}else var E=Mt(g.view,g.data,g.key,g.opts)._redraw(t,f,false);S=E.node.type}else if(S===M){var D=P(g.vm);var E=g.vm._update(g.data,t,f,D);S=E.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&&Wt(o[y]))y++}}if(s)t.body=b;c&&Nt(t,e)}function o(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(a(r))o.render=r;else{o.render=r.render;o.config(r)}o._redrawAsync=X(function(t){return o.redraw(true)});o._updateAsync=X(function(t){return o.update(t,true)});o.init&&o.init.call(o,o,o.data,o.key,n)}var Xt=o.prototype={constructor:o,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:n,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=u(e.hooks||{},t.hooks);if(t.onemit)e.onemit=u(e.onemit||{},t.onemit)},parent:function(){return f(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){I({el:t,flags:0});i._redraw(null,null,false);if(t.nodeName.toLowerCase()!==i.node.tag){A(i.node);S(t.parentNode,i.node.el,t);t.parentNode.removeChild(t)}else S(t.parentNode,A(i.node,t),t)}else{i._redraw(null,null);if(t)S(t,i.node.el)}if(t)y(i);return i}function Ut(t){var e=this;var i=e.node;var n=i.el.parentNode;w(n,i.el);if(!t)y(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)?Y:G;var d=a===l||c(a,l);if(d)return Kt(o,s,t,e)}}r&&m(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){R(u,t,e,o);t.body[e]=u}else if(s&&s.parent){R(u,s.parent,s.idx,o);s.parent.body[s.idx]=u}else R(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=x(s.el);w(h,s.el);S(h,A(u),f);s.el=u.el;u.vm=o}else $(u,s);else A(u);r&&m(o.hooks,"didRedraw",o,o.data);if(n&&r)y(o);return o}function Zt(t,e,i,n){var o=this;if(t!=null)if(o.data!==t){m(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 st(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 g;e.type=k;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 g;e.type=O;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)?Y(i,n):G(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;R(n,t,i)}t.body=e}};return a}ne.prototype={constructor:ne,type:T,view:null,data:null,key:null,opts:null},re.prototype={constructor:re,type:M,vm:null};var ce={config:wt,ViewModel:o,VNode:g,createView:Mt,defineElement:Qt,defineSvgElement:ee,defineText:it,defineComment:ie,defineView:oe,injectView:se,injectElement:ae,lazyList:le,FIXED_BODY:H,DEEP_REMOVE:_,KEYED_LIST:L,LAZY_LIST:j};function de(t,e){ue(this,t,e)}function ue(t,e,i){if(e.type!=null){if(t.vm!=null)return;R(e,t.parent,t.idx,null);t.parent.body[t.idx]=e;$(e,t);i&&h(e);y(f(e))}else{var n=Object.create(t);n.attrs=u({},t.attrs);var o=u(t.attrs,e);if(t._class!=null){var r=o.class;o.class=r!=null&&r!==""?t._class+" "+r:t._class}Tt(t,n);i&&h(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&&(V(e[r])||p(e[r])||o&&(o._flags&j)===j))n=e[r];else n=B(e,r)}return st(t,o,n)}function pe(){var t=fe.apply(null,arguments);t.ns=te;return t}return et.patch=de,Xt.emit=bt,Xt.onemit=null,Xt.body=function(){return he(this.node,[])},ce.defineElementSpread=fe,ce.defineSvgElementSpread=pe,ce}()},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=void 0,i(0)),a=i(5),l=i(8),d=i(6),h=i(128),u=i(130),f=i(17),p=i(132),g=i(136),_=i(147),v=i(3),m=i(148),y=i(1),x=i(149),i=(o=l.View,r(b,o),b.prototype.getSeries=function(t){return this._series[t]},b.prototype.eachSeries=function(t){var e,i=[];for(e in this._series)i.push(t.call(this,this._series[e]));return i},b.prototype.destructor=function(){this._tooltip.destructor(),this.events.clear(),this.unmount()},b.prototype.setConfig=function(r){var s,a=this;if("calendarHeatMap"===r.type)throw new TypeError("The calendarHeatMap chart type is a pro functionality");if(this.config=r,this._layers.clear(),this._series={},this._scales={},r.scales)for(var t in r.scales){var e=c({},r.scales[t]);void 0!==r.scales[t].min&&(s=r.scales[t].min),e.type=e.type||this._detectScaleType(e,t),r.scales.radial&&"radial"!==t&&(e.hidden=!0),this._setScale(e,t)}var i,l=new _.default;this._layers.add(l),null!=(i=r.series)&&i.forEach(function(t,e){void 0!==t.baseLine&&t.baseLine<s&&(t.baseLine=void 0);var i,n=c({},t);switch(n.type=n.type||r.type,n.type){case"bar":case"xbar":case"area":case"splineArea":n.color||(n.color=n.fill||(0,v.getDefaultColor)(e)),n.fill||(n.fill=n.color||(0,v.getDefaultColor)(e));break;case"treeMap":n.legendType=(null==(i=r.legend)?void 0:i.type)||"groupName",null!=(i=null==(i=r.legend)?void 0:i.treeSeries)&&i.map(function(t,e){var i;t.active=null==(i=t.active)||i,t.id=null!=(i=t.id)?i:(0,y.uid)(),t.color||(t.color=(0,v.getDefaultColor)(e,"range"===n.legendType))}),n.treeSeries=null==(i=r.legend)?void 0:i.treeSeries;break;case"scatter":n.pointColor||(n.pointColor=n.color||(0,v.getDefaultColor)(e))}var t=g.default[n.type],o=((n.barWidth||a.config.barWidth)&&(n.barWidth=n.barWidth||a.config.barWidth),new t(a.data,n,a.events)),t=(0,v.getScales)(r.scales);(1<t.length&&"radial"!==t[0]||"radial"===t[0]?t:["bottom","left"]).forEach(function(t){var e=a._scales[t];e&&(o.addScale(t,e),n.stacked?e.add(l):e.add(o))}),a._series[o.id]=o,(n.stacked?l:a._layers).add(o)}),r.legend&&((i=c({},r.legend)).series&&(i.$seriesInfo=i.series.map(function(t){return a._series[t]})),i=new u.Legend(this.data,i,this.events),this._layers.add(i)),this.paint()},b.prototype._setScale=function(t,e){t.type&&("radial"!==(t=new p.default[t.type](this.data,t,e)).config.type&&this._layers.add(t.scaleGrid()),this._layers.add(t),this._scales[e]=t)},b.prototype._detectScaleType=function(t,e){return"radial"===e?e:t.text?"text":"numeric"},b.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()}),this.events.on(d.DataEvents.filter,function(){return i.paint()})},b);function b(t,i){void 0===i&&(i={});var u=this,e=((u=o.call(this,null,i)||this)._width=0,u._height=0,u._left=0,u._top=0,{}),n=(i.maxPoints&&(e.approximate={value:null==(n=i.series)?void 0:n.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,e=e.right,r=t.pageX,t=t.pageY,s=u.getRootView().node.el.getBoundingClientRect(),s=(u._left=s.left+window.pageXOffset,u._top=s.top+window.pageYOffset,r-i-u._left),r=t-n-u._top;0<=s&&s<=u._width-e-i&&0<=r&&r<=u._height-o-n?u.events.fire(f.ChartEvents.chartMouseMove,[s,r,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),(0,s.create)({render:function(){var t,e;return u.data.getLength()?(t=function(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=(n=t.type)||i&&i.length&&i[0]&&i[0].type||"",d="".concat(n||""," 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=(d+=" X scale ".concat(r(i.config),": ").concat(t," axis from ").concat(l(i.config.value,e[0])," to ").concat(l(i.config.value,e[e.length-1]),"."))+" ".concat(o(i)," scale: axis from ").concat(s(n)," to ").concat(a(n),".")):d+=" ".concat(o(i)," scale ").concat(r(i.config),": ").concat(t," axis from ").concat(s(n)," to ").concat(a(n),".")}),i&&i.length&&(d+=" Series:",i.forEach(function(t,e){d=(d+=" ".concat("pie"===n||"pie3D"===n||"donut"===n?t.text:t.value))+(e===i.length-1?".":",")})),d},e=[(0,s.resizer)(function(t,e){u._width=t,u._height=e||400;t=u.getRootView();t&&t.node&&t.node.el&&(e=t.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()})],u._width&&u._height&&e.push(u._layers.toVDOM(u._width,u._height)),(0,s.el)(".dhx_widget.dhx_chart",c(c({class:i.css||"",onmousemove:u._globalHTMLHandlers.onmousemove,onmouseleave:u._globalHTMLHandlers.onmouseleave},{"aria-label":t(i)}),{tabIndex:0}),e)):(0,s.el)("div")},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,n),u.export=new x.Exporter("chart",u),u}e.Chart=i},function(t,e,i){"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)},c=(Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=void 0,i(1)),d=i(12),u=i(11),h=i(1);function t(t,e){this._parent=t,this._changes=e}t.prototype.load=function(t,e){var i=this;if(!t.config||this._parent.events.fire(u.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then(function(t){return t?i.parse(t,e):[]}).catch(function(t){i._parent.events.fire(u.DataEvents.loadError,[t])})},t.prototype.parse=function(t,e){var n=this;if("json"!==(e=void 0===e?u.DataDriver.json:e)||(0,d.hasJsonOrArrayStructure)(t)||this._parent.events.fire(u.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=(0,d.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,e=n._parent.getId(o+e);(0,c.isId)(e)?(i=n._parent.getItem(e))&&i.$empty&&(i=t.id||i.id,(0,h.isDefined)(t.id)&&n._parent.changeId(e,i,!0),n._parent.update(i,l(l({},t),{$empty:void 0}),!0)):(0,d.dhxWarning)("item not found")}),this._parent.events.fire(u.DataEvents.afterLazyLoad,[o,t.length]),this._parent.events.fire(u.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},t.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?(0,d.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),(0,d.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})},t.prototype.updateChanges=function(t){this._changes=t},t.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,(0,d.dhxError)(t)}),e.saving=!0,this._saving=!0,this._addToChain(e.promise),e.promise},t.prototype._addToChain=function(t){this._parent.saveData&&this._saving?this._parent.saveData=this._parent.saveData.then(function(){return t}):this._parent.saveData=t},t.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},t.prototype._removeFromOrder=function(e){this._changes.order=this._changes.order.filter(function(t){return!(0,d.isEqualObj)(t,e)})},t.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.Loader=t}.call(this,i(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XMLDriver=void 0;var n=i(82);function o(){}o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.toJsonObject=function(t){var e;return 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="string"==typeof t?this._fromString(t):e)},o.prototype.serialize=function(t){return(0,n.jsonToXML)(t)},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){return(t="string"==typeof t?this._fromString(t):t)?(t=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes)&&t.length?this._getRows(t):null:[]},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)e.value=e.value||this._toType(t.textContent);else{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},e.XMLDriver=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.jsonToXML=void 0;var r=4;function s(t){return" ".repeat(t)}e.jsonToXML=function(t,e){for(var i='<?xml version="1.0" encoding="iso-8859-1"?>\n<'.concat(e=void 0===e?"root":e,">"),n=0;n<t.length;n++)i+="\n"+function e(t,i){var n,o=s(i=void 0===i?r:i)+"<item>\n";for(n in t)Array.isArray(t[n])?o=(o=(o+=s(i+r)+"<".concat(n,">\n"))+(t[n].map(function(t){return e(t,i+2*r)}).join("\n")+"\n"))+(s(i+r)+"</".concat(n,">\n")):o+=s(i+r)+"<".concat(n,">").concat(t[n],"</").concat(n,">\n");return o+=s(i)+"</item>"}(t[n]);return i+"\n</".concat(e,">")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sort=void 0;var o=i(12);function n(){}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]))?t:"",e=null!=(e=n._checkVal(i.as,e[i.by]))?e:"";return(0,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 i=0===(i=n?n.rule.call(r,t,e)*(s[n.dir]||s.asc):i)&&o?o.rule.call(r,t,e)*(s[o.dir]||s.asc):i})},e.Sort=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},d=(Object.defineProperty(e,"__esModule",{value:!0}),e.TreeCollection=void 0,i(1)),s=i(37),a=i(15),u=i(12),h=i(11);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))}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._reapplyFilters(!1),t},f.prototype.getRoot=function(){return this._root},f.prototype.getParent=function(t,e){return void 0===e&&(e=!1),this._pull[t]?(t=this._pull[t].parent,e?this._pull[t]:t):null},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){var e;if((0,d.isId)(t)){if(this._childs[t])for(var i=0,n=r([],this._childs[t],!0);i<n.length;i++){var o=n[i];this.remove(o.id)}}else{c.prototype.removeAll.call(this);t=this._root;this._initChilds=null,this._childs=((e={})[t]=[],e)}},f.prototype.getIndex=function(e){var t=this.getParent(e);return t&&this._childs[t]?(0,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._reapplyFilters(!1);this.events.fire(h.DataEvents.change,[void 0,"sort",t])},f.prototype.filter=function(t,e,i){if(!((t=null!=e&&e.$restore?this._normalizeFilters(t||this._filters):t)&&null!=e&&e.add||(this.restoreOrder(),null!=e&&e.$restore)))for(var n in this._filters){var o=this._filters[n],r=o.rule,o=o.config;null!=o&&o.permanent?this._applyFilter(r,o):delete this._filters[n]}var s;if(!t||null!=e&&e.$restore)for(var n in t)this._applyFilter(t[n],this._filters[n].config);else s=(null==e?void 0:e.id)||(0,d.uid)(),(e=e||{}).type=e.type||h.TreeFilterType.all,this._filters[s]={rule:t,config:e},this._applyFilter(t,e);return i||(e=this._getPureFilters(this._filters),this.events.fire(h.DataEvents.filter,[(0,d.isEmptyObj)(e)?null:e])),s},f.prototype.restoreOrder=function(){this._initChilds&&(this._childs=this._initChilds,this._initChilds=null)},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 t,n=this;void 0===i&&(i=h.DataDriver.json),this.events.fire(h.DataEvents.beforeItemLoad,[e])&&(t=(t=this.config.autoload.toString())+(t.includes("?")?"&id=":"?id=").concat(e),new a.DataProxy(t).load().then(function(t){t=(i=(0,u.toDataDriver)(i)).toJsonArray(t),n._parse_data(t,e),n.events.fire(h.DataEvents.change),n.events.fire(h.DataEvents.afterItemLoad,[e])}).catch(function(t){n.events.fire(h.DataEvents.loadError,[t])}))},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){var i;return e!==t&&(i=!0,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=(0,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))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=null!=o?o:this._root,this._childs[o]?(t=o===this._root?c.prototype.getRawData.call(this,t,e,this._childs[o]):this._childs[o],2===n?this.flatten(t):t):[]},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),this._setParent(t,i),0<n&&-1!==e&&(e+=1);i=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 i},f.prototype._setParent=function(t,e){t.parent=t.parent?t.parent.toString():e;e=this._pull[t.parent];e&&!e.items&&(e.items=[])},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=(0,u.copyWithoutInner)(this.getItem(t),{items:!0});if(i.exists(t)&&(o.id=(0,d.uid)()),(0,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){return void 0===i&&(i=this),void 0===n&&(n=this._root),this.exists(t)?(o&&(e=-1===e?-1:e+o),i!==this?(0,u.isTreeCollection)(i)?(o=this.copy(t,e,i,n),this.remove(t),o):(i.add((0,u.copyWithoutInner)(this.getItem(t)),e),void this.remove(t)):this.canCopy(t,n)?(o=this.getParent(t),i=this.getIndex(t),(i=this._childs[o].splice(i,1)[0]).parent=n,this._childs[o].length||delete this._childs[o],this.haveItems(n)||(this._childs[n]=[]),-1===e?e=this._childs[n].push(i):this._childs[n].splice(e,0,i),this.events.fire(h.DataEvents.change,[t,"update",this.getItem(t)]),t):null):null},f.prototype._reset=function(t){var e;if((0,d.isId)(t))for(var i=0,n=r([],this._childs[t],!0);i<n.length;i++){var o=n[i];this.remove(o.id)}else{c.prototype._reset.call(this);t=this._root;this._initChilds=null,this._childs=((e={})[t]=[],e)}},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){void 0===e&&(e=this._root);for(var i,n=this._order.length,o=0,r=t;o<r.length;o++){var s=r[o];(s=(s=this.config.init?this.config.init(s):s)&&"object"!=typeof s?{value:s}:s).id=null!=(i=s.id)?i:(0,d.uid)(),s.parent=void 0===s.parent||null===s.parent||s.parent&&s.$items?e:s.parent,this._pull[s.id]&&(0,u.dhxError)("Item ".concat(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._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)}};"function"==typeof o?(a=s.filter(function(t){return l(t)&&o(t)})).length?n[t]=a:t===this._root&&(n[t]=[]):(a=s.filter(function(t){var e,i,n=!0;for(i in o)if(!(n=o[i].by&&""!==o[i].match?o[i].compare?o[i].compare(t[o[i].by],o[i].match,t):-1!==(null==(e=t[o[i].by])?void 0:e.toString().toLocaleLowerCase().indexOf(o[i].match.toString().toLowerCase())):n))break;return l(t)&&n})).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.prototype._applyFilter=function(t,e){var n=this;if(t&&("function"==typeof t||!(0,d.isEmptyObj)(t))){this._initOrder||(this._initOrder=this._order),this._initChilds||(this._initChilds=this._childs);var i,o={};if("function"!=typeof t)if(i={},(0,d.isDefined)(t.by))i[t.by]=t;else for(var r in t)i[r]=t[r];else i=t;this._recursiveFilter(i,e,this._root,0,o),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}},f.prototype._normalizeFilters=function(t){var e,i={};for(e in t)i[e]=t[e].rule;return i};var c,i=f;function f(t,e){var i,e=c.call(this,t,e)||this,t=(e._childs={},e._root=t&&t.rootId||"_ROOT_"+(0,d.uid)());return e._childs=((i={})[t]=[],i),e._initChilds=null,e}e.TreeCollection=i},function(t,e,i){"use strict";var m=this&&this.__assign||function(){return(m=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)},y=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},f=(Object.defineProperty(e,"__esModule",{value:!0}),e.dragManager=void 0,i(2)),x=i(41),p=i(125),g=i(11),b=i(12),w=i(1);n.prototype.setItem=function(t,e){p.collectionStore.setItem(t,e)},n.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=(0,f.locateNode)(t,"data-dhx-id"))&&n.getAttribute("data-dhx-id"),r=(0,f.locate)(t,"data-dhx-widget-id"),Array.isArray(e)&&e.includes(o)?(this._transferData.source=y([],e,!0),this._itemsForGhost=i):(this._transferData.source=[o],this._itemsForGhost=null),o)&&r&&(i=(e=(0,f.getBox)(n)).left,e=e.top,s=(t.targetTouches?t.targetTouches[0]:t).pageX,t=(t.targetTouches?t.targetTouches[0]:t).pageY,this._transferData.initXOffset=s-i,this._transferData.initYOffset=t-e,this._transferData.x=s,this._transferData.y=t,this._transferData.componentId=r,this._transferData.start=o,this._transferData.item=n)},n.prototype.isDrag=function(){return this._isDrag},n.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,i={start:i,source:n,target:o},n=p.collectionStore.getItem(e);n&&o&&n.events.fire(g.DragEvents.cancelDrop,[i,t]),this._transferData.dropComponentId=null,this._transferData.target=null},n.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")},n.prototype._removeGhost=function(){document.body.removeChild(this._transferData.ghost)},n.prototype._onDrop=function(t){var e,i,n,o,r;this._canMove&&(o=(n=this._transferData).start,i=n.source,e=n.target,r=n.dropComponentId,i={start:o,source:i,target:e,dropPosition:n.dropPosition},r=(n=p.collectionStore.getItem(r))&&n.config,n)&&"source"!==r.dragMode&&n.events.fire(g.DragEvents.beforeDrop,[i,t])&&(r={id:o,component:this._transferData.component,newId:null},this._move(r,o={id:e,component:n}),r.newId&&r.component!==o.component&&(i.start=r.newId),o.component.events.fire(g.DragEvents.afterDrop,[i,t])),this._endDrop(t)},n.prototype._onDragStart=function(t,e,i){var n,o,r,s,a,l,c,e=p.collectionStore.getItem(e),d=e.config,u=this._transferData,u={start:u.start,source:u.source,target:u.target};return"target"!==d.dragMode&&!e._pregroupData&&(n=this._transferData.item,o=this._itemsForGhost,void 0===(r="row"===d.dragItem||"column"===d.dragItem||"both"===d.dragItem)&&(r=!1),s=n.getBoundingClientRect(),a=document.createElement("div"),l=n.cloneNode(!0),c=window.getComputedStyle(n.parentElement).fontSize,l.style.width=s.width+"px",l.style.height=s.height+"px",l.style.maxHeight=s.height+"px",l.style.opacity="0.8",l.style.fontSize=c,r&&o&&o.length||a.appendChild(l),o&&o.length&&o.forEach(function(t,e){t=t.cloneNode(!0);t.style.width=s.width+"px",t.style.height=s.height+"px",t.style.maxHeight=s.height+"px",t.style.top=12*(e+1)-s.height-s.height*e+"px",t.style.left=12*(e+1)+"px",t.style.opacity="0.6",t.style.zIndex="".concat(-e-1),r||(t.style.fontSize=c,t.style.overflow="hidden"),a.appendChild(t)}),a.className="dhx_drag-ghost",n=a,e.events.fire(g.DragEvents.beforeDrag,[u,i,n]))&&(0,w.isId)(t)?(e.events.fire(g.DragEvents.dragStart,[u,i]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.component=e,this._transferData.dragConfig=d,n):null},n.prototype._onDrag=function(t){var e=(t.targetTouches?t.targetTouches[0]:t).clientX,i=(t.targetTouches?t.targetTouches[0]:t).clientY,e=document.elementFromPoint(e,i),i=(0,f.locate)(e,"data-dhx-widget-id");if(i){var n=p.collectionStore.getItem(i),o=!!(0,f.locateNodeByClassName)(e,"dhx_grid-header")||!!(0,f.locateNodeByClassName)(e,"dhx_grid-footer"),r=n&&n.config.columns?n.config:void 0,r=r&&("both"===r.dragItem||"column"===r.dragItem);if(o&&!r)this._canMove&&this.cancelCanDrop(t);else{o=(0,f.locate)(e,"data-dhx-id"),r=(0,f.locate)(e,"data-dhx-root-id");if(o||r){var e=this._transferData,s=e.dropComponentId,a=e.start,l=e.source,c=e.target,d=e.componentId,e=e.dropPosition;if("complex"===n.config.dropBehaviour){h=(u=t).clientY;var u=(u=(0,f.locateNode)(u))?(u=u.childNodes[0])?(h-(h=u.getBoundingClientRect()).top)/h.height:void 0:null;this._transferData.dropPosition=u<=.25?"top":.75<=u?"bottom":"in"}else if((c===o||!o&&c===r)&&s===i)return;var h={id:a,component:this._transferData.component};"source"!==n.config.dragMode&&(h.component.events.fire(g.DragEvents.dragOut,[{start:a,source:l,target:c},t]),i!==d||!(0,b.isTreeCollection)(h.component.data)||(0,b.isTreeCollection)(h.component.data)&&h.component.data.canCopy(h.id,o)?(this.cancelCanDrop(t),this._transferData.target=o||r,this._transferData.dropComponentId=i,h.component.events.fire(g.DragEvents.dragIn,[{start:a,source:l,target:c,dropPosition:e},t])&&this._canDrop(t)):this.cancelCanDrop(t))}else this.cancelCanDrop(t),this._transferData.dropComponentId=i,this._transferData.target=null,this._canDrop(t)}}else this._canMove&&this.cancelCanDrop(t)},n.prototype._move=function(i,e){var t,n,o,r,s,a=i.component,l=e.component,c=i.component.data,d=e.component.data,u=0,h=e.id,f=(0,b.isTreeCollection)(d)?e.component.config.dropBehaviour:void 0,p=i.component.config.columns?i.component.config:void 0,p=p&&("both"===p.dragItem||"column"===p.dragItem)&&p.columns.map(function(t){return t.id}).filter(function(t){return t===i.id||t===e.id}).length;if(p&&i.component===e.component)return i.id===e.id||(g=(t=a.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id}),-1===(n=t.findIndex(function(t){return t.id===e.id})))?void 0:(t.splice(n,0,t.splice(g,1)[0]),a.setColumns(t),void a.paint());if(p&&i.component instanceof x.ProGrid&&e.component instanceof x.ProGrid)g=(t=a.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id}),p=l.config.columns.map(function(t){return m({},t)}),s=l.data.getLength(),n=p.findIndex(function(t){return t.id===e.id}),o=[],r=i.id,a.data.forEach(function(t){var e;o.push(((e={id:t.id})[r]=t[i.id],e))}),s?a.data.forEach(function(t,e){t=l.data.getItem(t.id);t?l.data.update(t.id,m(m({},t),o[e])):l.data.add(o[e])}):l.data.parse(o),s=t.splice(g,1)[0],p.find(function(t){return t.id===r})||p.splice(n,0,s),l.setColumns(p),l.paint(),a.setColumns(t),a.paint();else{var g,_=e.id===l.config.rootParent;switch(f){case"child":break;case"sibling":h=d.getParent(h),u=d.getIndex(e.id)+1;break;case"complex":var v=this._transferData.dropPosition;_?(h=e.id,u=d.getLength()):"top"===v?(h=d.getParent(h),u=d.getIndex(e.id)):"bottom"===v&&(h=d.getParent(h),u=d.getIndex(e.id)+1);break;default:u=(0,w.isId)(e.id)?i.component===e.component&&d.getIndex(i.id)<d.getIndex(e.id)?d.getIndex(e.id)-1:(-1<d.getIndex(i.id)&&(i.newId=(0,w.uid)()),d.getIndex(e.id)):-1}this._transferData.dragConfig.dragCopy?this._transferData.source instanceof Array&&1<this._transferData.source.length?this._transferData.source.map(function(t){c.copy(t,u,d,h),-1<u&&u++}):c.copy(i.id,u,d,h):this._transferData.source instanceof Array&&1<this._transferData.source.length?c.move(this._transferData.source,u,d,h):l instanceof x.Grid&&!l.config.columns.length?(g=a.data.getItem(i.id),l.data.parse([m({},g)]),l.setColumns(y([],a.config.columns,!0)),l.paint(),a.data.remove(i.id),a.paint()):c.move(i.id,u,d,h,i.newId)}},n.prototype._endDrop=function(t){var e,i,n;this._toggleTextSelection(!1),this._transferData.component&&(e=(n=this._transferData).start,i=n.source,n=n.target,this._transferData.component.events.fire(g.DragEvents.afterDrag,[{start:e,source:i,target:n},t])),this.cancelCanDrop(t),this._canMove=!0,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null},n.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,e={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},i=p.collectionStore.getItem(this._transferData.dropComponentId);i&&this._transferData.target&&(i instanceof x.Grid&&(e.dragItem=this._transferData.item.classList.contains("dhx_grid-row")?"row":"column"),i.events.fire(g.DragEvents.canDrop,[e,t]))},n.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")};i=n;function n(){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;o=a._onDragStart(s,n,t);if(!o)return void a._endDrop(t);a._transferData.ghost=o,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)))}}var o=window.dhxHelpers=window.dhxHelpers||{};o.dragManager=o.dragManager||new i,e.dragManager=o.dragManager},function(t,e,i){"use strict";var m=this&&this.__assign||function(){return(m=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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},v=(Object.defineProperty(e,"__esModule",{value:!0}),e.Exporter=void 0,i(7)),l=i(6),y=i(1),s=i(13),x=i(2),b=i(0);function n(t,e,i){this._name=t,this._version=e,this._view=i}n.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},n.prototype.png=function(t){this._rawExport(t,"png",this._view)},n.prototype.xlsx=function(t){return this._export(t)},n.prototype.csv=function(t){t=m({asFile:!0,rowDelimiter:"\n",columnDelimiter:",",skipHeader:0},t=void 0===t?{}:t),e="getRoot"in this._view.data&&t.flat?this.getFlatCSV(t):this._getCSV(t);var e,i=t.name||"grid_export";return t.asFile&&(0,y.downloadFile)(e,"".concat(i,".csv"),"text/csv"),e},n.prototype._export=function(t){void 0===t&&(t={});for(var c=this._view.config.columns.filter(function(t){return!t.hidden}),d={},e=(0,v.transpose)(c.map(function(t){return t.header.map(function(t){return t.text||" "})})),u=[],h={default:{color:"#000000",background:"#FFFFFF",fontSize:14,bold:!1}},f=[],i=this._view.data.serialize().map(function(n,t){return d[n.id]=t,c.map(function(t,e){var i;return t.id,n[t.id]instanceof Date&&(i=t.format||"%M %d %Y","string"==typeof n[t.id]?n[t.id]=(0,s.getFormattedDate)(i,(0,s.stringToDate)(n[t.id],i)):"object"==typeof n[t.id]&&(n[t.id]=(0,s.getFormattedDate)(i,n[t.id]))),n[t.id]||e||!n.$groupName?(0,v.removeHTMLTags)(n[t.id]):"^ ".concat(n.$groupName)})}),p=[],g=this._view.content,_=this,n=0,o=c;n<o.length;n++)!function(t){t.footer&&(n=t.id,r=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&&(r=(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?(e=g[t.footer[0].content].calculate(e,r),p.push((null==e?void 0:e.toString())||" ")):p.push(t.footer[0].css||t.footer[0].text||" "));var n,o,e,i,r="number"===t.type||"percent"===t.type?"right":t.align;for(i in u.push({width:t.$width,align:r}),t.$cellCss){var s,a=t.$cellCss[i].trim(),l=a.split("").reduce(function(t,e){t=(t<<5)-t+e.charCodeAt(0);return Math.abs(t&t)},0).toString();!h[l]&&(s=document.body,a=(0,v.getStyleByClass)(a,s,"dhx_grid-row",h.default))&&(h[l]=a),h[l]&&f.push([d[i],c.indexOf(t),l])}}(o[n]);p.length&&i.push(p);var r,e={name:t.name||"data",columns:u,header:e,data:i,styles:{cells:f,css:h}};return t.url&&((r=document.createElement("form")).setAttribute("target","_blank"),r.setAttribute("action",t.url),r.setAttribute("method","POST"),r.style.visibility="hidden",(i=document.createElement("textarea")).setAttribute("name","data"),i.value=JSON.stringify(e),r.appendChild(i),document.body.appendChild(r),r.submit(),setTimeout(function(){r.parentNode.removeChild(r)},100)),e},n.prototype.getFlatCSV=function(o){var e=this._view.data,t=e.getRoot(),r=this._view.config.columns[0],s=e.getMaxLevel(),i="",t=(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=(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])},""))+o.rowDelimiter}),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,!1)),t});return new l.CsvDriver(o).serialize(t,!0)+o.rowDelimiter+i},n.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)},n.prototype._rawExport=function(i,t,e){void 0===i&&(i={});for(var n=document.createElement("div"),o=(n.setAttribute("style","display: none;"),e.config),r=o.headerRowHeight,r=void 0===r?0:r,s=o.footerRowHeight,s=void 0===s?0:s,a=o.$totalHeight,a=void 0===a?0:a,l=o.$headerLevel,l=void 0===l?0:l,c=o.$footerLevel,c=void 0===c?0:c,d=o.$footer,u=o.columns,h="",f=e.config.exportStyles,o=("boolean"!=typeof i.exportStyles&&!Array.isArray(i.exportStyles)||(f=i.exportStyles),i.url=i.url||"https://export.dhtmlx.com/"+this._name+"/"+t+"/"+this._version,"pdf"===t&&(o=i.pdf,i.pdf=m(m({},o),{printBackground:!1,format:null!=(t=null==o?void 0:o.format)?t:"A4"})),e.config.$totalWidth),t=a+l*(r+1)+1,p=(d&&(t+=c*(s+1)),[]),g=0;g<u.length;g++){var _=u[g];p.push(m(m({},_),{width:_.$width}))}var a=m(m({},e.config),{width:o,height:t,columns:p,data:e.data.getRawData(),keyNavigation:!1,selection:!1,resizable:!1}),v=new e.constructor(n,(0,y.getCloneObject)(a));(0,b.awaitRedraw)().then(function(){!0===f?h="".concat((0,x.getPageLinksCss)(),"<style>").concat((0,x.getPageInlineCss)(),"</style>"):Array.isArray(f)&&f.length&&(h="".concat((0,x.getPageLinksCss)(f))),null!=(t=n.children[0])&&t.setAttribute("data-dhx-theme",i.theme||"light");var t="\n\t\t\t\t\t".concat(h,"\n\t\t\t\t\t").concat(n.innerHTML,"\n\t\t\t\t"),e=document.createElement("form");e.setAttribute("method","POST"),e.setAttribute("action",i.url),e.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',e.childNodes[0].value=t,e.childNodes[1].value=JSON.stringify(i),document.body.appendChild(e),e.submit(),setTimeout(function(){var t;v.destructor(),null!=(t=n.parentNode)&&t.removeChild(n),null!=(t=e.parentNode)&&t.removeChild(e)},100)}).catch(function(){var t;v.destructor(),null!=(t=n.parentNode)&&t.removeChild(n)})},e.Exporter=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.message=void 0;var s=i(1),a=i(2),l=i(26),c=new WeakMap,d=new Map;function u(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}e.message=function(t){(t="string"==typeof t?{text:t}:t).position=t.position||l.MessageContainerPosition.topRight;var r=document.createElement("div");r.className="dhx_widget dhx_message "+(t.css||""),r.setAttribute("role","alert");(e=t.text&&(0,s.uid)())&&r.setAttribute("aria-describedby",e),t.html?r.innerHTML=t.html:(r.innerHTML='<span class="dhx_message__text" id='.concat(e,"></span>\n\t\t").concat(t.icon?'<span class="dhx_message__icon dxi '.concat(t.icon,'"></span>'):""),r.querySelector("#".concat(e)).textContent=t.text);var e=t.node?(0,a.toNode)(t.node):document.body;"static"===getComputedStyle(e).position&&(e.style.position="relative"),(n=d.get(e))?n[t.position]||(n[t.position]={stack:[],container:u(e,t.position)}):d.set(e,((n={})[t.position]={stack:[],container:u(e,t.position)},n));var i=(n=d.get(e)[t.position]).stack,n=n.container;function o(t){var e,i,n,o;void 0===t&&(t=!0),r&&(e=r,(t=t)&&clearTimeout(c.get(e)),i=(t=e.parentNode).getAttribute("data-position"),n=t.parentNode,(o=d.get(n))&&(o=o[i])&&-1!==(o=(i=o.stack).indexOf(e))&&(t.removeChild(e),i.splice(o,1),0===i.length)&&n.removeChild(t),r=null)}return 0===i.length&&e.appendChild(n),i.push(r),n.appendChild(r),t.expire&&(e=setTimeout(function(){return o(!1)},t.expire),c.set(r,e)),r.onclick=function(){return o()},{close:function(){return o()}}}},function(t,n,o){"use strict";!function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.alert=void 0;var e=o(44),i=o(45),c=o(1);n.alert=function(s){var a=s.buttons&&s.buttons[0]?s.buttons[0]:e.default.apply,l=(0,i.blockScreen)(s.blockerCss);return new t(function(e){var t="dhx_alert__".concat((0,c.uid)(),"_content"),i="dhx_alert__".concat((0,c.uid)(),"_header"),n=document.createElement("div"),o=(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||""),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".concat(s.header?"<div id=".concat(i,' class="dhx_alert__header"> ').concat(!1!==s.htmlEnable?s.header:""," </div>"):"","\n\t\t\t").concat(s.text?"<div id=".concat(t,' class="dhx_alert__content">').concat(!1!==s.htmlEnable?s.text:"","</div>"):"",'\n\t\t\t<div class="dhx_alert__footer ').concat(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">').concat(a,"</button>\n\t\t\t</div>"),!1===s.htmlEnable&&(s.header&&(n.querySelector("#".concat(i)).textContent=s.header),s.text)&&(n.querySelector("#".concat(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(14))},function(t,n,o){"use strict";!function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.confirm=void 0;var e=o(44),i=o(45),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=(0,i.blockScreen)("dhx_alert__overlay-confirm "+(l.blockerCss||""));return new t(function(e){function i(t){"BUTTON"===t.target.tagName&&a(t.target.classList.contains("dhx_alert__confirm-aply"))}function n(t){"Escape"===t.key||"Esc"===t.key?(r.querySelector(".dhx_alert__confirm-aply").focus(),a(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&(("aply"===o?(o="reject",r.querySelector(".dhx_alert__confirm-reject")):(o="aply",r.querySelector(".dhx_alert__confirm-aply"))).focus(),t.preventDefault())}var o,r=document.createElement("div"),t=(r.setAttribute("role","alertdialog"),r.setAttribute("aria-modal","true"),l.header&&(0,h.uid)()),s=l.header&&(0,h.uid)(),a=(s&&r.setAttribute("aria-describedby",s),t&&r.setAttribute("aria-labelledby",t),function(t){u(),r.removeEventListener("click",i),document.removeEventListener("keydown",n),document.body.removeChild(r),e(t)});r.className="dhx_widget dhx_alert dhx_alert--confirm"+(l.css?" "+l.css:""),r.innerHTML="\n\t\t".concat(l.header?'<div class="dhx_alert__header" id='.concat(t,"> ").concat(!1!==l.htmlEnable?l.header:""," </div>"):"","\n\t\t").concat(l.text?'<div class="dhx_alert__content" id='.concat(s,">").concat(!1!==l.htmlEnable?l.text:"","</div>"):"",'\n\t\t\t<div class="dhx_alert__footer ').concat(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">').concat(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">').concat(c,"</button>\n\t\t\t</div>"),!1===l.htmlEnable&&(l.header&&(r.querySelector("#".concat(t)).textContent=l.header),l.text)&&(r.querySelector("#".concat(s)).textContent=l.text),document.body.appendChild(r),o="aply",r.querySelector(".dhx_alert__confirm-aply").focus(),r.addEventListener("click",i),document.addEventListener("keydown",n)})}}.call(this,o(14))},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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.disableTooltip=e.enableTooltip=e.tooltip=e.getZIndex=e.findPosition=void 0,i(2)),u=i(26),h=750,f=200;function d(t,e,i,n,o,r){var s,a,l;switch(void 0===o&&(o=8),e=1<(r=void 0===r?0:r)?u.Position.center:e){case u.Position.center:return{left:a=(a=t.left+window.pageXOffset+(t.width-i)/2)+o<window.pageXOffset?t.left+window.pageXOffset: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};default:u.Position.bottom;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,g=document.createElement("div"),_=document.createElement("span"),v=(_.className="dhx_tooltip__text",g.appendChild(_),g.setAttribute("role","tooltip"),g.style.position="absolute",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"))?1e7:null!=t&&t.classList.contains("dhx_popup--window")?9999999: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=(s?_.innerHTML=e:_.textContent=e,document.body.appendChild(g),g.className="dhx_widget dhx_tooltip"+(o?" dhx_tooltip--forced":""),g.getBoundingClientRect()),e=d(a,i,s.width,s.height,r),l=e.left,c=e.top,a=e.pos,i=b(t);switch(i&&(g.style.zIndex=i.toString()),a){case u.RealPosition.bottom:case u.RealPosition.top:case u.RealPosition.left:case u.RealPosition.right:case u.RealPosition.center:g.style.left=l+"px",g.style.top=c+"px"}g.className+=" dhx_tooltip--".concat(a," ").concat(n||""),m=!0,o||setTimeout(function(){g.className+=" dhx_tooltip--animate"})}function r(e,t,i){function n(){var t;m&&(t=s,v)&&(y=setTimeout(function(){document.body.removeChild(g),m=!1,y=null},t||f)),clearTimeout(x),e.removeEventListener("mouseleave",n),e.removeEventListener("blur",n),document.removeEventListener("mousedown",n),p=v=null}var o=i.force,r=i.showDelay,s=i.hideDelay,a=i.position,l=i.css,c=i.htmlEnable,d=i.margin;o||(x=setTimeout(function(){w(e,t,a||u.Position.bottom,l,!1,d,c)},r||h));o&&w(e,t,a,l,o,d,c),e.addEventListener("mouseleave",n),e.addEventListener("blur",n),document.addEventListener("mousedown",n),p=n}function s(t,e){var i=(0,o.toNode)(e.node);i!==v&&(p&&(p(),p=null),v=i,y?(clearTimeout(y),y=null,r(i,t,n(n({},e),{force:!0}))):r(i,t,e))}function a(t){t=(0,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 d=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},A=(Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0,i(0)),s=i(6),F=i(1),o=i(5),$=i(4),u=i(20),N=i(10),r=i(10),V=i(7);function n(t,e,i,n){this._grid=t,this.config=e,this._gridId=n,this._selectedCell,this._selectedCells=[],this._type=["cell","row","complex"].includes(this._grid.config.selection)&&this._grid.config.selection||"complex",this._multiselection=!!t.config.multiselection,this.events=i||new o.EventSystem(this),this._init()}n.prototype.setCell=function(e,i,t,n){var o,r=this,s=(void 0===t&&(t=!1),void 0===n&&(n=!1),"tree"===this._grid.config.type);if(this._gridId&&u.focusManager.getFocusId()!==this._gridId&&u.focusManager.setFocusId(this._gridId),!(this.config.disabled||this._grid.config.$editable||(null==(c=this._selectedCells[0])?void 0:c.row.id)===((null==e?void 0:e.id)||e)&&(null==(c=this._selectedCells[0])?void 0:c.column.id)===((null==i?void 0:i.id)||i))&&(this._multiselection||!this._selectedCells.length||this._removeCell(null==(c=this._selectedCell)?void 0:c.row,null==(c=this._selectedCell)?void 0:c.column))){if(this._multiselection){if(t||n||this._removeCells(),this._selectedCells.find(function(t){return t.row.id===((null==e?void 0:e.id)||e)&&t.column.id===((null==i?void 0:i.id)||i)}))return void this.removeCell((null==e?void 0:e.id)||e,(null==i?void 0:i.id)||i);n&&1<this._selectedCells.length&&!s&&d([],this._selectedCells,!0).forEach(function(t,e){var i=t.row,t=t.column;0<e&&r.removeCell(i.id,t.id)})}e=this._grid.data.getItem(e&&e.id||e);var a,l,c=null==(t=null==(c=this._grid.config)?void 0:c.columns)?void 0:t.filter(function(t){return!t.hidden});i=i||(null==c?void 0:c[0]),(i=this._grid.getColumn(i.id||i))&&e&&(this._multiselection&&n&&this._selectedCells.length&&!s?(n=null==(t=this._selectedCells)?void 0:t[0],s=this._grid.data.getIndex(n.row.id),(t=this._grid.data.getIndex(e.id))<s&&(s=(a=[t,s])[0],t=a[1]),"cell"===this._type||"complex"===this._type?(n=(a=c.map(function(t){return t.id})).indexOf(n.column.id),a=a.indexOf(i.id),-1!==n&&-1!==a&&(a<n&&(n=(o=[a,n])[0],a=o[1]),l=c.slice(n,a+1),this._grid.data.mapRange(s,t,function(e){l.forEach(function(t){-1===r._findIndex({row:e,column:t})&&r._setCell(e,t)})}))):this._grid.data.mapRange(s,t,function(t){-1===r._findIndex({row:t,column:i})&&r._setCell(t,i)})):this._setCell(e,i),(0,A.awaitRedraw)().then(function(){r._grid.paint(),r._setBrowserFocus()}))}},n.prototype.removeCell=function(i,n){var t,o=this;i&&n&&("cell"===this._type||"complex"===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(),(0,A.awaitRedraw)().then(function(){o._grid.paint()})},n.prototype.getCell=function(){return this._selectedCell},n.prototype.getCells=function(){return this._selectedCells},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.toHTML=function(){var o,r,t,s=this;if(!this._isUnselected())return this._multiselection?(o=[],r={},this._selectedCells.forEach(function(t,e,i){var n=s._normalizeCell(t);o.push(s._toHTML(n.row,n.column,e===i.length-1||"cell"===s._type||"complex"===s._type,r[t.row.id])),r[t.row.id]=!0}),o):(t=this._normalizeCell(this._selectedCell),this._toHTML(t.row,t.column,!0))},n.prototype._setCell=function(t,e){t&&e&&(0,F.isDefined)(t.id)&&(0,F.isDefined)(e.id)&&this.events.fire($.GridSelectionEvents.beforeSelect,[t,e])&&(this._selectedCell={row:t,column:e},this._multiselection?this._selectedCells.push(this._selectedCell):this._selectedCells=[this._selectedCell],this.events.fire($.GridSelectionEvents.afterSelect,[t,e]))},n.prototype._removeCell=function(e,i,t){var n;return void 0===t&&(t=!1),!!(e&&i&&(0,F.isDefined)(e.id)&&(0,F.isDefined)(i.id))&&!(!t&&!this.events.fire($.GridSelectionEvents.beforeUnSelect,[e,i])||(n=this._selectedCells.findIndex(function(t){return t.row.id===e.id&&t.column.id===i.id}),this._selectedCells.splice(n,1),this._selectedCell&&i.id===this._selectedCell.column.id&&e.id===this._selectedCell.row.id&&(this._selectedCell=null==(n=this._selectedCells)?void 0:n[(null==(n=this._selectedCells)?void 0:n.length)-1]),t||this.events.fire($.GridSelectionEvents.afterUnSelect,[e,i]),0))},n.prototype._removeCells=function(e){var i=this;void 0===e&&(e=!1),d([],this._selectedCells,!0).forEach(function(t){i._removeCell(null==t?void 0:t.row,null==t?void 0:t.column,e)})},n.prototype._init=function(){var r=this;this._grid.events.on($.GridEvents.cellClick,function(t,e,i){r.setCell(t,e,i.ctrlKey||i.metaKey,i.shiftKey)}),this._grid.data.events.on(s.DataEvents.beforeRemove,function(t){var e,i,n,o;t&&r._selectedCell&&r._selectedCell.row&&r._selectedCell.row.id===t.id&&(o=void 0,i=r._grid.data.getIndex(t.id),o=r._grid.data instanceof s.TreeCollection?(null==(e=(n=r._grid.data.getItems(t.parent))[i+1])?void 0:e.id)||(null==(e=n[i-1])?void 0:e.id)||t.parent:r._grid.data.getId(i+1)||r._grid.data.getId(i-1),(0,F.isId)(o))&&(r.setCell(o),r._grid.paint())}),this._grid.data.events.on(s.DataEvents.removeAll,function(){r._removeCells()}),this._grid.data.events.on(s.DataEvents.load,function(){r._removeCells(!0)})},n.prototype._toHTML=function(e,t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1);var o,r,s,a,l,c,d,u,h,f,p,g,_,v,m,y,x,b,w,C,S,E,D,O,k,T,M,P,H,I,L,j,R=this._grid.data.getRawData(0,-1,null,2);return-1===(0,F.findIndex)(R,function(t){return t.id==e.id})?null:(S=(a=this._grid.config).topSplit,o=a.bottomSplit,r=a.$totalWidth,s=a.$totalHeight,a=null==(a=a.columns)?void 0:a.filter(function(t){return!t.hidden}),l={left:(0,N.getCurrFixedCols)(this._grid.config,$.Split.left),right:(0,N.getCurrFixedCols)(this._grid.config,$.Split.right)},c=this._grid.data.getLength(),c={top:S?this._grid.data.getRawData(0,S):[],bottom:o?this._grid.data.getRawData(c-o,c):[]},T={left:null==(T=null==l?void 0:l.left)?void 0:T.map(function(t){return t.id}),right:null==(T=null==l?void 0:l.right)?void 0:T.map(function(t){return t.id})},d={top:c.top.map(function(t){return t.id}),bottom:c.bottom.map(function(t){return t.id})},L=null==(L=null==l?void 0:l.left)?void 0:L.reduce(function(t,e){return t+(e.$width||0)},0),j=null==(j=null==l?void 0:l.right)?void 0:j.reduce(function(t,e){return t+(e.$width||0)},0),C=c.top.reduce(function(t,e){return t+e.$height},0),u=c.bottom.reduce(function(t,e){return t+e.$height},0),h=this._grid.getCellRect(e.id,t.id),f=this._grid.getScrollState(),m=h.y,p=null==(p=d.top)?void 0:p.includes(e.id),g=null==(g=T.left)?void 0:g.includes(t.id),_=l.left.length&&L>h.x-f.x,v=c.top.length&&C>h.y-f.y,E=h.width,P=h.height-1,b=y=null,x=_?L+f.x:h.x,_&&(E-=(g?(0,V.getTotalWidth)(l.left.slice(0,a.indexOf(t))):L)-(h.x-f.x)),v&&(P-=(p?(0,V.getTotalHeight)(c.top.slice(0,R.indexOf(e))):C)-(h.y-f.y)-1,m+=h.height-P),p&&(m=h.y+f.y,(w=this._grid.getSpan(e.id,t.id))&&1<w.rowspan?(k=R.indexOf(e),y=(0,V.getTotalHeight)(c.top.slice(k,k+w.rowspan))):P=S===d.top.indexOf(e.id)+1?h.height-1:h.height),g&&(x=h.x+f.x,(w=this._grid.getSpan(e.id,t.id))&&1<w.colspan?(k=null==a?void 0:a.indexOf(t),b=(0,V.getTotalWidth)(l.left.slice(k,k+w.colspan))):E=l.left.length===T.left.indexOf(t.id)+1?h.width-1:h.width),(null!=(L=l.right)&&L.length||o)&&(w=this._grid.getSpan(e.id,t.id),C=this._getReverseScrollState(f),null!=(S=l.right)&&S.length&&(D=(null==(L=T.right)?void 0:L.includes(t.id))||w&&a.indexOf(t)+(w.colspan||1)>a.length-l.right.length,(O=r-j<C.x+h.x+h.width)&&!D&&(E-=C.x+h.x+h.width-r+j),D)&&(E=!w||null!=(S=T.right)&&S.includes(w.column)?(M=null!=(L=T.right)&&L.indexOf(t.id)?0:1,x=h.x-C.x+M,h.width-M):(k=a.length-a.indexOf(t)-(w.colspan||1),x=h.x+C.x<1+(S=r-j)?h.x:S-C.x+1,b=(0,V.getTotalWidth)(k?l.right.slice(0,-k):l.right)-1,h.width-C.x)),o)&&(H=d.bottom.includes(e.id)||w&&R.indexOf(e)+(w.rowspan||1)>R.length-o,(I=s-u<C.y+h.y+h.height)&&!H&&(P-=C.y+h.y+h.height-s+u),H)&&(P=w&&!d.bottom.includes(w.row)?(T=s-u,M=(k=R.length-R.indexOf(e)-(w.rowspan||1))?0:1,m=h.y+C.y<T?h.y:T-C.y,y=(0,V.getTotalHeight)(k?c.bottom.slice(0,-k):c.bottom)-M,h.height-C.y-M):(m=h.y-C.y,h.height-(o===d.bottom.indexOf(e.id)+1?1:0))),L=null,"row"!==this._type&&"complex"!==this._type||n||(L=(0,A.el)(".dhx_grid-selected-row",{style:{width:null!=(a=l.left)&&a.length?r-f.x:r,height:P,minHeight:y,minWidth:b,display:P<0&&!y?"none":"flex",top:m,left:null!=(t=l.left)&&t.length?f.x:0,position:"absolute"}})),j=null,"cell"!==this._type&&"complex"!==this._type||!i||(j=(0,A.el)(".dhx_grid-selected-cell",{style:{width:E,height:P,top:m,minHeight:y,minWidth:b,left:x,position:"absolute",display:E<0&&!b||P<0&&!y?"none":"flex",borderLeft:_&&!g?"none":null,borderRight:O&&!D?"none":null,borderTop:v&&!p?"none":null,borderBottom:I&&!H?"none":null}})),(0,A.el)(".dhx_grid-selection",{style:{zIndex:20}},[L,j]))},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,o=(void 0===i&&(i=this._selectedCell),-1);return this._selectedCells.some(function(t,e){if("cell"===n._type||"complex"===n._type){if((0,F.compare)(t.row,i.row)&&(0,F.compare)(t.column,i.column))return o=e,!0}else if("row"===n._type&&(0,F.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&&(t=t.querySelector('[data-dhx-id="'.concat(this._selectedCell.row.id,'"]')),e=this._grid.getSpan(this._selectedCell.row.id,this._selectedCell.column.id),t)&&(i=(i=e?i.querySelector(".dhx_span-spans"):null)?i.querySelector('[data-dhx-col-id="'.concat(e.column,'"][data-dhx-id="').concat(e.row,'"]')):t.querySelector('[data-dhx-col-id="'.concat(this._selectedCell.column.id,'"]')))&&(i.tabIndex=0,i.focus({preventScroll:!0}))},n.prototype._getReverseScrollState=function(t){var e=this._grid.config.$headerLevel*this._grid.config.headerRowHeight,i=this._grid.config.$footerLevel*this._grid.config.footerRowHeight,n=(0,r.calcScrollBarWidth)(this._grid.config,!(null==(n=this._grid.scrollView)||!n.config.enable)),o=this._grid.config.$totalWidth-this._grid.config.$width+N.BORDERS+n.y,e=this._grid.config.$totalHeight-this._grid.config.$height+e+i+N.BORDERS+n.x;return{x:0<o?o-t.x:0,y:0<e?e-t.y:0}},n.prototype._normalizeCell=function(t){var e=t.row,t=t.column,i=this._grid.getSpan(e.id,t.id);return{row:i&&e.id!==i.row?this._grid.data.getItem(i.row):e,column:i&&t.id!==i.column?this._grid.config.columns.find(function(t){return t.id===i.column}):t}},e.Selection=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditor=void 0;var o,r=i(4),s=i(93),a=i(94),l=i(95),c=i(109),d=i(110),u=i(117),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}),e.InputEditor=void 0;var n=i(0),o=i(4),r=i(1);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}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&&(0,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(t){var e=this._cell.row[this._cell.col.id];return this._input&&(e=this._input.value),this._config.$editable.editor=this,(0,n.el)("input.dhx_cell-editor.dhx_cell-editor__input",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:null!=t?t:e})},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)}}},e.InputEditor=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectEditor=void 0;var n=i(0),o=i(4),r=i(9);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}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("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()},s.prototype.toHTML=function(){var t=(0,r.getEditorOptions)(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:"".concat(t),value:t}:t})||[],e=this._cell.row[this._cell.col.id],t=(this._input&&(e=this._input.options[this._input.selectedIndex].value),t.map(function(t){return(0,n.el)("option",{selected:t.id.toString()===(null==e?void 0:e.toString()),value:t.id},t.value)}));return this._config.$editable.editor=this,(0,n.el)("select.dhx_cell-editor.dhx_cell-editor__select",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor"},t)},s.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)}}},e.SelectEditor=s},function(t,e,i){"use strict";var n=this&&this.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.DateEditor=void 0,i(0)),a=i(4),o=i(96),l=i(13),r=i(31);function c(t,e,i){var n=this,i=(this._config=i,this._cell={row:t,col:e},this._calendar=new o.Calendar(null,this._cleanConfig(e)),this._cell.row[this._cell.col.id]),t=this._calendar.config.dateFormat;((0,l.stringToDate)(i,t,!0)||i instanceof Date)&&(this._calendar.setValue(i),this._value=this._calendar.getValue(),this._cell.row[this._cell.col.id]=this._value),this._popup=new r.Popup,this._popup.attach(this._calendar),this._calendar.events.on(o.CalendarEvents.change,function(){n.endEdit(!1,!0)}),this._popup.events.on(r.PopupEvents.afterHide,function(){n.endEdit()}),this._initHandlers()}c.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],r=this._input.value;if(!t){if(o instanceof Date||e)return this._value=this._calendar.getValue(),this._input.value=this._value,void this._popup.hide();!(0,l.stringToDate)(r,n,!0)&&r||(!o||r.length!==o.length)&&o&&r||(this._value=r)}this._config.events.fire(a.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),(0,s.awaitRedraw)().then(function(){i._popup.destructor(),i._calendar.destructor()}),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(a.GridEvents.afterEditEnd,[this._value,this._cell.row,this._cell.col])):this._input.focus()}},c.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];return this._config.$editable.editor=this,document.addEventListener("mousedown",this._handlers.onOuterClick),(0,s.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})},c.prototype._cleanConfig=function(t){var e=t.editorConfig||{},e=(e.value,e.range,e.dateFormat,n(e,["value","range","dateFormat"]));return e.dateFormat=t.format,e},c.prototype._initHandlers=function(){var i=this;this._handlers={onFocus:function(){(0,s.awaitRedraw)().then(function(){i._popup.show(i._input,{centering:!0,mode:"bottom",theme:i._input})})},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)}}},e.DateEditor=c},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(97),e),o(i(50),e)},function(t,e,i){"use strict";var n,r,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.Calendar=void 0,i(1)),b=i(0),a=i(5),l=i(8),c=i(98),d=i(108),w=i(13),u=i(50),h=i(2),i=(r=l.View,o(f,r),f.prototype.setValue=function(t){var e,i;return!(!t||t instanceof Array&&0===t.length||(e=t instanceof Array?t[0]:t,e=w.DateHelper.toDateObject(e,this.config.dateFormat),i=w.DateHelper.copy(this._getSelected()),!this.events.fire(u.CalendarEvents.beforeChange,[e,i,!1]))||(this._selected=[],this._setSelected(t),this._timepicker&&(this._timepicker.setValue(e),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(u.CalendarEvents.change,[e,i,!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(0,w.getFormattedDate)(e.config.dateFormat,t)}):t?w.DateHelper.copy(this._selected[0]):(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.events.fire(u.CalendarEvents.beforeChange,["",t,!1])&&(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,"clear"]))},f.prototype.link=function(t){var e=this,i=(this._linkedCalendar&&this._unlink(),this._linkedCalendar=t,this.getValue(!0)),n=t.getValue(!0),o=i&&w.DateHelper.dayStart(i),r=n&&w.DateHelper.dayStart(n),s=function(t){var e;return w.DateHelper.isSameDay(r,o)?null:(e="dhx_calendar-day--in-range",w.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--first-date"),w.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--last-date"),e)};this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(o&&r)return o<=t&&t<=r&&s(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":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,(0,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]&&(u.config.$rangeMark=t=function(){var t,e;if(s._selected[0]&&s._selected[1])return t=w.DateHelper.dayStart(s._selected[0]),e=w.DateHelper.dayStart(s._selected[1]),t<=a&&a<=e&&(w.DateHelper.isSameDay(s._selected[0],s._selected[1])?null:"dhx_calendar-day--in-range")}),e&&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&&o.push(e?"dhx_calendar-day--weekend-disabled":"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-".concat(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,n=this,e=this._currentDate,i=this.config,o=i.weekStart,r=i.thisMonthOnly,s=i.css,a=i.timePicker,i=i.width;switch(o){case"saturday":t=x([w.locale.daysShort[6]],w.locale.daysShort.slice(0,-1),!0);break;case"monday":t=x(x([],w.locale.daysShort.slice(1),!0),[w.locale.daysShort[0]],!1);break;default:t=w.locale.daysShort}for(var l,o=t.map(function(t){return(0,b.el)(".dhx_calendar-weekday",t)}),c=this._getData(e),d=!0,u=this._getSelected(),h=function(t){return t&&u&&t.getTime()===u.getTime()},f=[],p=[],g=0,_=c;g<_.length;g++){var v=_[g],m=v.days.map(function(t){return(0,b.el)("div.dhx_calendar-day",y({class:t.css,_date:t.date},(i={role:"button",tabindex:-1,"aria-pressed":"false"},(e=t)&&(n._isSelectedInCurrentRange?h(e.date)&&(i.tabindex=0,i["aria-pressed"]="true"):d&&(i.tabindex=0),d=!1),i)),t.day);var e,i});!this.config.weekNumbers||v.disabledWeekNumber&&r||p.push((0,b.el)("div",{class:"dhx_calendar-week-number"},v.weekNumber)),f=f.concat(m)}this.config.weekNumbers&&(l=(0,b.el)(".dhx_calendar__week-numbers",p));c="dhx_calendar dhx_widget"+(s?" "+s:"")+(a?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return(0,b.el)("div",y({class:c,style:{width:this.config.weekNumbers?parseInt(i.toString())+48+"px":i}},this._handlers),[(0,b.el)(".dhx_calendar__wrapper",[this._drawHeader((0,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&&(0,b.el)(".dhx_calendar__dates-wrapper",[(0,b.el)(".dhx_calendar__weekdays",o),(0,b.el)(".dhx_calendar__days",f),l]),!this.config.weekNumbers&&(0,b.el)(".dhx_calendar__weekdays",o),!this.config.weekNumbers&&(0,b.el)(".dhx_calendar__days",f),a?(0,b.el)(".dhx_timepicker__actions",[(0,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"},[(0,b.el)("span.dhx_button__icon.dxi.dxi-clock-outline"),(0,b.el)("span.dhx_button__text",this._time)])]):null])])},f.prototype._drawMonthSelector=function(){var t=this._currentDate,e=t.getMonth(),i=this._getSelected()?this._getSelected().getFullYear():null,n=this.config,o=n.css,r=n.timePicker,s=n.weekNumbers,a=n.width,n=n.mode,o="dhx_calendar dhx_widget"+(o?" "+o:"")+(r?" dhx_calendar--with_timepicker":"")+(s?" dhx_calendar--with_week-numbers":""),l=!0,c=i===t.getFullYear(),d=function(t){return c&&e===t};return(0,b.el)("div",y({class:o,style:{width:s?parseInt(a.toString())+48+"px":a}},this._handlers),[(0,b.el)(".dhx_calendar__wrapper",[this._drawHeader((0,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())),(0,b.el)(".dhx_calendar__months",w.locale.monthsShort.map(function(t,e){return(0,b.el)("div",y(y({class:"dhx_calendar-month"+(d(e)?" dhx_calendar-month--selected":"")},(i=e,n={role:"button",tabindex:-1,"aria-pressed":"false"},t&&(c?d(i)&&(n.tabindex=0,n["aria-pressed"]="true"):l&&(n.tabindex=0),l=!1),n)),{_date:e}),t);var i,n})),"month"!==n?(0,b.el)(".dhx_calendar__actions",[(0,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(){var e=this,t=this._currentDate,t=w.DateHelper.getTwelweYears(t),i=this.config,n=i.css,o=i.timePicker,r=i.weekNumbers,s=i.width,i=i.mode,n="dhx_calendar dhx_widget"+(n?" "+n:"")+(o?" dhx_calendar--with_timepicker":"")+(r?" dhx_calendar--with_week-numbers":""),a=!0,l=this._getSelected()&&t.includes(this._getSelected().getFullYear()),c=function(t){return e._getSelected()&&t===e._getSelected().getFullYear()};return(0,b.el)("div",y({class:n,style:{width:r?parseInt(s.toString())+48+"px":s}},this._handlers),[(0,b.el)(".dhx_calendar__wrapper",[this._drawHeader((0,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"},t[0]+"-"+t[t.length-1])),(0,b.el)(".dhx_calendar__years",t.map(function(t){return(0,b.el)("div",y({class:"dhx_calendar-year"+(c(t)?" dhx_calendar-year--selected":""),_date:t},(i={role:"button",tabindex:-1,"aria-pressed":"false"},(e=t)&&(l?c(e)&&(i.tabindex=0,i["aria-pressed"]="true"):a&&(i.tabindex=0),a=!1),i)),t);var e,i})),"year"!==i&&"month"!==i?(0,b.el)(".dhx_calendar__actions",[(0,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(0,b.el)(".dhx_calendar__navigation",[(0,b.el)("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[(0,b.el)(".dhx_button__icon.dxi.dxi-chevron-left")]),t,(0,b.el)("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[(0,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(0,b.el)(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:i?parseInt(t.toString())+48+"px":t}},[(0,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":"year"!==this.config.mode?(w.DateHelper.setYear(this._currentDate,i),this.showDate(null,"month"),this.events.fire(u.CalendarEvents.yearSelected,[i])):(r=w.DateHelper.fromYear(i),this.events.fire(u.CalendarEvents.beforeChange,[r,n,!0])&&(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&&(e=e.parent.body[e.idx+i])&&(i=e.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,(0,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,t=t.AM,n=o._getSelected(),e=w.DateHelper.withHoursAndMinutes(o._getSelected()||new Date,e,i,t);o.events.fire(u.CalendarEvents.beforeChange,[e,n,!0])&&(o._selected[o._selected.length-1]=e,o.events.fire(u.CalendarEvents.change,[e,n,!0])),o._time=o._timepicker.getValue(),o.showDate(null,"calendar")}));return o.mount(t,(0,b.create)({render:function(){return o._draw()}})),o}e.Calendar=i},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(99),e),o(i(49),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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),e.Timepicker=void 0,i(1)),a=i(0),l=i(5),c=i(8),d=i(27),u=i(103),h=i(106),f=i(107),p=i(49),g=i(2);function _(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}v=c.View,o(m,v),m.prototype.getValue=function(t){return 12===this.config.timeFormat&&(this._time.hour=this._time.hour%12||12),this._getValue(this._time,t)},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._getValue=function(t,e){var i=t.hour,n=t.minute,t=t.AM;return e?(e={hour:i,minute:n},12===this.config.timeFormat&&(e.AM=t),e):(i<10?"0"+i:i)+":"+(n<10?"0"+n:n)+(12===this.config.timeFormat?t?"AM":"PM":"")},m.prototype._setValue=function(t){var e,i,n=0,o=0;return(t="number"==typeof 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&&!(0,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"}]},t=(this.config.controls&&(i.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),i.rows.push({id:"save-action",css:"dhx_timepicker__save"})),this.layout=new d.Layout(t,i)),i=(0,a.create)({render:function(){return e._draw()}}),i=this._inputsView=(0,c.toViewLike)(i),n=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});t.getCell("timepicker").attach(i),t.getCell("hour-slider").attach(o),t.getCell("minute-slider").attach(n),this.config.controls&&(t.getCell("save-action").attach(function(){return(0,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)}),t.getCell("close-action").attach(function(){return(0,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"},[(0,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){((0,g.isSafari)()||(0,g.isFirefox)())&&i(t.target)},".dhx_timepicker-input--minutes":function(t){((0,g.isSafari)()||(0,g.isFirefox)())&&e(t.target)}}},this._outerHandlers={close:function(){n.events.fire(p.TimepickerEvents.beforeClose,[n.getValue(n._isTimeObj())])&&(n.events.fire(p.TimepickerEvents.afterClose,[n.getValue(n._isTimeObj())]),n.events.fire(p.TimepickerEvents.close,[]))},save:function(){n.events.fire(p.TimepickerEvents.beforeApply,[n.getValue(n._isTimeObj())])&&(n.events.fire(p.TimepickerEvents.afterApply,[n.getValue(n._isTimeObj())]),n.events.fire(p.TimepickerEvents.apply,[n.getValue()]),n.events.fire(p.TimepickerEvents.save,[n._time]))}}},m.prototype._initEvents=function(){var i=this;this._hoursSlider.events.on(u.SliderEvents.beforeChange,function(t){var e;if(!(t<i._hoursSlider.config.min||t>i._hoursSlider.config.max))return e=r({},i._time),12===i.config.timeFormat?(e.AM=t<12,e.hour=t%12||12):e.hour=t,t=i._isTimeObj(),i.events.fire(p.TimepickerEvents.beforeChange,[i._getValue(e,t)])}),this._hoursSlider.events.on(u.SliderEvents.change,function(t){t<i._hoursSlider.config.min||t>i._hoursSlider.config.max||(12===i.config.timeFormat?(i._time.AM=t<12,i._time.hour=t%12||12):i._time.hour=t,t=i._isTimeObj(),i.events.fire(p.TimepickerEvents.change,[i.getValue(t)]),i._inputsView.paint())}),this._minutesSlider.events.on(u.SliderEvents.beforeChange,function(t){var e;if(!(t<i._minutesSlider.config.min||t>i._minutesSlider.config.max))return t=r(r({},i._time),{minute:t}),e=i._isTimeObj(),i.events.fire(p.TimepickerEvents.beforeChange,[i._getValue(t,e)])}),this._minutesSlider.events.on(u.SliderEvents.change,function(t){t<i._minutesSlider.config.min||t>i._minutesSlider.config.max||(i._time.minute=t,t=i._isTimeObj(),i.events.fire(p.TimepickerEvents.change,[i.getValue(t)]),i._inputsView.paint())})},m.prototype._draw=function(){return(0,a.el)(".dhx_timepicker-inputs",r({},this._handlers),[(0,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"}),(0,a.el)("span.dhx_timepicker-delimer",":"),(0,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?(0,a.el)(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},m.prototype._isTimeObj=function(){var t;return"timeobject"===(null==(t=this.config.valueFormat)?void 0:t.toLowerCase())};var v,i=m;function m(t,e){e=v.call(this,t,(0,s.extend)({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},e=void 0===e?{}: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=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMarginSize=e.getBlockRange=void 0,e.getBlockRange=function(t,e,i){return(i=void 0===i||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){return t&&("space"===t.type||"wide"===t.type)?12:0}},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProLayout=void 0,i(28)),a=i(102),i=(o=s.Layout,r(l,o),l.prototype._createCell=function(t){var e=new(t.rows||t.cols||t.views?(t.parent=this._root,l):a.ProCell)(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},l);function l(t,e){return o.call(this,t,e)||this}e.ProLayout=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=this&&this.__assign||function(){return(h=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=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProCell=void 0,i(1)),p=i(0),s=i(30),i=i(46),i=(o=i.Cell,r(a,o),a.prototype._getFirstRootView=function(t){return(t=void 0===t?this:t).getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},a.prototype.toVDOM=function(t){var e;if(null===this.config&&(this.config={}),!this.config.hidden){var i,n=this.config.$fieldset,o=this._calculateStyle(),r=(0,f.isDefined)(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:"".concat(this.config.padding,"px")}:"",s=this.config.full||this.config.html?o:h(h({},o),r),t=(this.config.html||(i=this._ui?(i=(i=this._ui.getRootView()).render?(0,p.inject)(i):i)?[this.scrollView.render(i)]:null:t?this.scrollView.render([t]):null),this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?(0,p.el)(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),h(h({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[(0,p.el)("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null),a={};if(this.config.on)for(var l in this.config.on)a["on"+l]=this.config.on[l];var c="",d=this.config.cols||this.config.rows;if(this.config.type&&d)switch(this.config.type){case"line":c=" dhx_layout-line";break;case"wide":c=" dhx_layout-wide";break;case"space":c=" dhx_layout-space"}var d=(0,p.el)(".dhx_layout-cell-content",{_key:"".concat(this._uid,"_html"),style:r},[(0,p.el)(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),u=(0,p.el)("div",h(h(((e={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,e["data-cell-id"]=null!=(u=this.config.id)?u:null,e),a),{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?c:""),style:n?o:s}),[n?(0,p.el)("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:r,disabled:this.config.$disabled},[(0,p.el)("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--".concat(this.config.labelAlignment||"left")},this.config.label),(0,p.el)(".dhx_layout-cell-content",{class:this._getCss(!1)},[i])]):this.config.full?[(0,p.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&&(0,p.el)("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&(0,p.el)(".dhx_layout-cell-header__image-wrapper",[(0,p.el)("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&(0,p.el)("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?(0,p.el)("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):(0,p.el)("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:(0,p.el)("div",{style:h(h({},r),{height:"calc(100% - ".concat(this.config.headerHeight||37,"px)")}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?c:"")},this.config.html?[(0,p.el)("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:i)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?i:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable?this.scrollView.render([d],this._uid):d],this._checkProgress()&&this._getProgressBar()]);return t?[u,t]:u}},a);function a(t,e){var i=o.call(this,t,e)||this;return i.scrollView=new s.ScrollView(function(){return i._getFirstRootView()}),i}e.ProCell=i},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(104),e),o(i(48),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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0,i(1)),c=i(0),s=i(5),a=i(25),d=i(8),u=i(31),h=i(48),f=i(2);function p(t,e,i){return t<e?e:i<t?i:t}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.events.fire(h.SliderEvents.beforeChange,[t[0],e,!1])&&(this._setValue(t[0],!1),this.events.fire(h.SliderEvents.change,[t[0],e,!1])),this.events.fire(h.SliderEvents.beforeChange,[t[1],i,!0])&&(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.events.fire(h.SliderEvents.beforeChange,[t,e,!1])&&(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,i=i.min,o=(e=void 0===e?!1:e)?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),r=o+t;this.events.fire(h.SliderEvents.beforeChange,[r=n<r||r<i?o:r,o,e])&&(this._setValue(o+t,e),this.events.fire(h.SliderEvents.change,[r,o,e]),this.paint())},_.prototype._initStartPosition=function(){var t=this.config,e=t.max,i=t.min,t=t.range,n=(r=this.config.value,n=this.config.min,o=this.config.max,(r=void 0===r?[]:Array.isArray(r)?r:"string"==typeof r?r.split(",").map(function(t){return parseInt(t,10)}):[r])[0]=void 0===r[0]?n:p(r[0],n,o),r[1]=void 0===r[1]?o:p(r[1],n,o),r),o=n[0],r=n[1];this._currentPosition=(o-i)/(e-i)*100,t&&(this._extraCurrentPosition=(e-r)/(e-i)*100),this._currentPosition=(o-i)/(e-i)*100,t&&(this._extraCurrentPosition=(r-i)/(e-i)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,t)&&(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;return 100===t?n:0===t?i:(e=e/2<=(n=(t=t*(n-i)/100)%e)?e:0,+(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;t=(t-i)/(n-i)*100,n=this._isInverse()?100-t:t;e?this._extraCurrentPosition=n:this._currentPosition=n},_.prototype._initHandlers=function(){function e(t){var e,i;n._disabled||3===t.which||(n.events.fire(h.SliderEvents.mousedown,[t]),n._isMouseMoving=!0,t=t.target.classList.contains("dhx_slider__thumb--extra")?(n._isExtraActive=!0,n._extraCurrentPosition):(n._isExtraActive=!1,n._currentPosition),n._findNewDirection=null,n.config.range?(e=(i=n._currentPosition>n._extraCurrentPosition?[n._currentPosition,n._extraCurrentPosition]:[n._extraCurrentPosition,n._currentPosition])[0],i=i[1],n._currentPosition===n._extraCurrentPosition?(n._findNewDirection=t,n._possibleRange=[0,100]):n._possibleRange=t<e?[0,e]:[i,100]):n._possibleRange=[0,100])}var n=this,i=function(t){t.cancelable&&t.preventDefault();t=((t.targetTouches?t.targetTouches[0]:t)[n._axis]-n._getBegining())/n._length*100;if(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()},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",i)):(document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",i))};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,{theme:t.target})},onmousedown:function(t){e(t),document.addEventListener("mousemove",i),document.addEventListener("mouseup",o)},ontouchstart:function(t){n._setTooltip(t),n._mouseIn=!1,e(t),document.addEventListener("touchmove",i,{passive:!1}),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||(t=(t[n._axis]-n._getBegining())/n._length*100,e=n.getRootView().refs,(!n.config.range||Math.abs(n._currentPosition-t)<Math.abs(n._extraCurrentPosition-t)?(n._updatePosition(t,!1),e.runner):(n._updatePosition(t,!0),e.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){(t=100<t?100:t)<0&&(t=0);var i=this.config,n=i.max,i=i.min,o=(e=void 0===e?!1:e)?this._extraCurrentPosition:this._currentPosition,o=this._getValue(o),t=this._getValue(t);o!==t&&this.events.fire(h.SliderEvents.beforeChange,[t,o,e])&&(n=(t-i)/(n-i)*100,i=this._isInverse()?100-n:n,e?this._extraCurrentPosition=i:this._currentPosition=i,this.events.fire(h.SliderEvents.change,[t,o,e]))},_.prototype._getRunnerStyle=function(t){var e="horizontal"===this.config.mode?"left":"top",t=(t=void 0===t?!1:t)?this._extraCurrentPosition:this._currentPosition,i={};return i[e]=t+"%",i},_.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},_.prototype._getRunnerCss=function(t){return"dhx_slider__thumb"+((t=void 0===t?!1: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,t=t.helpMessage,a=(0,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),(0,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":"")},[a?(0,c.el)("label.dhx_label.dhx_slider__label",{style:a.style,class:t?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},t?[a.label&&(0,c.el)("span.dhx_label__holder",a.label),(0,c.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:a.label):null,this._drawSlider()])},_.prototype._drawSlider=function(){return(0,c.el)(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[(0,c.el)(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),(0,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?(0,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,e,i,n,o;return this._disabled?(0,c.el)(".dhx_slider__range"):(e="horizontal"===this.config.mode?"left":"top",i="horizontal"===this.config.mode?"width":"height",this.config.range?(n=(o=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition])[0],(0,c.el)(".dhx_slider__range",{style:((t={})[e]=(o=o[1])+"%",t[i]=n-o+"%",t)})):this._isInverse()?(0,c.el)(".dhx_slider__range",{style:((n={})[e]=this._currentPosition+"%",n[i]=100-this._currentPosition+"%",n)}):(0,c.el)(".dhx_slider__range",{style:((o={})[e]=0,o[i]=this._currentPosition+"%",o)}))},_.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(0,c.el)(".dhx_slider__ticks-holder",this._getTicks().map(function(t){var e;return(0,c.el)("div",{class:"dhx_slider__tick"+(t.isMultiple?" dhx_slider__tick--major":""),style:((e={})[i]=t.position,e)},void 0!==t.label?[(0,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"};var g,i=_;function _(t,e){var i=g.call(this,t,(0,r.extend)({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},e))||this,e=(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[i._isExtraActive?"extraRunner":"runner"])?void 0:t.el)}),i._initHotkeys(),(0,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=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),e.Popup=void 0,i(1)),l=i(0),c=i(5),d=i(2),u=i(8),h=i(47),i=(o=u.View,r(f,o),f.prototype.show=function(t,e,i){var n=this;void 0===e&&(e={}),this.events.fire(h.PopupEvents.beforeShow,[t])&&(t=(0,d.toNode)(t),this._isActive?this._setPopupSize(t,e):(i&&this.attach(i),e.theme&&this._setTheme(e.theme),this._popup.style.left="0",this._popup.style.top="0",(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=(0,l.el)(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=(0,l.inject)(t)),(0,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._setTheme=function(t){"string"==typeof t?this._popup.setAttribute("data-dhx-theme",t):(t=null==(t=null==t?void 0:t.closest("[data-dhx-theme]"))?void 0:t.getAttribute("data-dhx-theme"))&&this._popup.setAttribute("data-dhx-theme",t)},f.prototype._setPopupSize=function(t,e,i){var n=this,o=(void 0===i&&(i=3),this._popup.getBoundingClientRect()),r=o.width,o=o.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!i||0!==r&&0!==o){r=(0,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){var e=o.call(this,null,(0,a.extend)({},t=void 0===t?{}: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.config.theme&&e._setTheme(e.config.theme),e.mount(i,(0,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=i},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=void 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=void 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}),e.CheckboxEditor=void 0;var n=i(1),o=i(0),r=i(4);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}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=(0,n.uid)();return(0,o.el)("div.dhx_checkbox.dhx_cell-editor__checkbox",[(0,o.el)("label",{style:{display:"none"},for:t},this._checked||"false"),(0,o.el)("input.dhx_checkbox__input",{type:"checkbox",_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor","data-dhx-checked":(!!this._checked).toString(),checked:this._checked,id:t,style:{userSelect:"none"}}),(0,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)}}},e.CheckboxEditor=s},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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.ComboboxEditor=void 0,i(0)),r=i(4),s=i(51),a=i(20),l=i(9);function c(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}c.prototype.endEdit=function(t){var e,i,n=this;t||(t=this._input.getValue(),e="multiselect"===this._cell.col.editorType?t.split(",").join(", "):t),this._config.events.fire(r.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(i=(0,l.getEditorOptions)(this._cell.col,this._cell.row),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.find(function(t){return"string"==typeof t?t===e:t.id.toString()===e});e&&!t&&(n._cell.col.$customOptions||(n._cell.col.$customOptions=[]),n._cell.col.$customOptions.push(n._input.data.getItem(e)))}),this._config.events.fire(r.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},c.prototype.toHTML=function(){var e=this,t=(0,l.getEditorOptions)(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:"".concat(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,htmlEnable:this._cell.col.htmlEnable},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),this._input.data.events.on("beforeAdd",function(t){if(t.id!==t.value)return e._input.addOption({id:t.value,value:t.value},!0),!1})),document.addEventListener("mousedown",this._handlers.onOuterClick),this._config.$editable.editor=this,(0,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),(0,o.inject)(this._input.getRootView())},c.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()}}},e.ComboboxEditor=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEY_CODES=void 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}),e.getEditor=void 0;var n=i(113);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputEditor=void 0;var n=i(0),o=i(32);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()}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(0,n.el)(".dhx_input__wrapper",{role:"presentation"},[(0,n.el)("div.dhx_input__container",{role:"presentation"},[(0,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)}}},e.InputEditor=r},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProList=void 0,i(0)),c=i(30),i=i(54),i=(o=i.List,r(d,o),d.prototype.destructor=function(){o.prototype.destructor.call(this),this.scrollView=null},d.prototype.scrollTo=function(t){var e=this.getRootView();e&&e.node&&e.node.el&&void 0!==t&&(e=null!=(e=this.scrollView)&&e.config.enable?null==(e=this.getRootNode())?void 0:e.querySelector(".scroll-view"):this.getRootNode(),this._scrollTo(t,e))},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)}),t=(this.config.virtual&&(e=a(a([(0,l.el)(".div",{style:{height:t[2]+"px"}})],e,!0),[(0,l.el)(".div",{style:{height:t[3]+"px"}})],!1)),this.scrollView&&this.scrollView.config.enable),n=(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(t?" dhx_list--scroll-view":"");return(0,l.el)("ul.dhx_widget.dhx_list",s(s({style:{"max-height":this.config.height,position:"relative"},class:n,"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),t?[].concat(this.scrollView.render(e)):e)},d);function d(t,e){var i=o.call(this,t,e)||this;return i.scrollView=new c.ScrollView(function(){return i.getRootView()}),i.paint(),i}e.ProList=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyListener=void 0;function n(){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())})}n.prototype.startNewListen=function(t){this._isActive=!0,this._sequence="",this._currentAction=t},n.prototype.endListen=function(){this._currentAction=null,this.reset(),this._isActive=!1},n.prototype.reset=function(){this._sequence=""},n.prototype._change=function(){this._currentAction(this._sequence),this._addClearTimeout()},n.prototype._addClearTimeout=function(){var t=this;this._clearTimeout&&clearTimeout(this._clearTimeout),this._clearTimeout=setTimeout(function(){t.reset(),t._clearTimeout=null},2e3)},e.KeyListener=n},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProCombobox=void 0,i(52)),a=i(53),l=i(27),c=i(57),i=(o=s.Combobox,r(d,o),d.prototype._createLayout=function(){var t=this.list=new a.ProList(null,{$template:s.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,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 o.call(this,t,e)||this}e.ProCombobox=i},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)},n=(Object.defineProperty(e,"__esModule",{value:!0}),e.TextAreaEditor=void 0,i(0)),s=i(4),o=i(1),a=i(9);function l(t,e,i){this._config=i,this._cell={row:t,col:e},this._width=this._cell.col.$width;i=0;this._config.firstColId===this._cell.col.id&&this._cell.row.hasOwnProperty("$level")&&(i=(0,a.getTreeCellWidthOffset)(this._cell.row)),this._width-=i-4,this._initHandlers()}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&&(0,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],e=(this._editor&&(t=this._editor.value),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(0,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}),i=(o._cell.row[o._cell.col.id]=o._editor.value,(0,a.getCalculatedRowHeight)((0,a.getMaxRowHeight)(o._cell.row,o._config.columns))),n=(0,a.getCalculatedRowHeight)((0,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"),t=(i.className="dhx_cell-editor dhx_cell-editor__textarea",i.value=t,i.style.width="".concat(e.width,"px"),i.style.lineHeight="".concat(e.lineHeight,"px"),i.style.maxHeight="".concat(e.maxHeight,"px"),i.style.boxSizing="border-box",document.body.appendChild(i),this._getElementHeight(i)),n=i.value.split("\n").length,o=Math.round(t/e.lineHeight),t=t<e.maxHeight?e.maxHeight:t;return document.body.removeChild(i),1===n&&n===o?e.maxHeight:t},l.prototype._getElementHeight=function(t){return t.scrollHeight},e.TextAreaEditor=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getContent=void 0;var s=i(0),l=i(9),a=i(1),c=i(119),r=i(120),d=i(121);function n(t,n,e,i){var o;if(t&&n&&e)return o=t.id,e(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},[]),t="tree"===n.type?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},[]):t)}e.getContent=function(){return{inputFilter:{element:{},toHtml:function(t,e){var i=this,n=(0,a.uid)(),o=t.id.toString(),r=this.element[o];return r?r.value=this.value[o]:((r=new d.InputFilter(t,e,n,this.value[o])).events.on("change",function(t){i.value[o]=t}),this.element[o]=r),r.toHTML()},match:function(t){var e=t.val,i=t.match,t=t.col;if(!(0,a.isDefined)(e))return!1;for(var n=[],o=(n.push((0,l.toFormat)(e,t.type,t.format)),t.format&&0<(r=t.format.lastIndexOf("#"))&&n.push((0,l.toFormat)(e,t.type,t.format.slice(r))),""),r=0;r<i.length;r++){var s=i.charCodeAt(r);o+=32<s&&s<48||63===s||90<s&&s<95||124===s?"\\"+i[r]:i[r]}return n.some(function(t){return new RegExp("".concat(o),"i").test(t)})},value:{}},selectFilter:{element:{},toHtml:function(t,e){var i=this,n=t.id.toString(),o=this.element[n];return o?(o.value=this.value[n],o.data=t.$activeFilterData||t.$uniqueData):((o=new r.SelectFilter(t,e,t.$uniqueData,this.value[n])).events.on("change",function(t){i.value[n]=t}),this.element[n]=o),o.toHTML()},match:function(t){var e=t.val,i=t.match,t=t.col,e=(0,l.toFormat)(e,t.type,t.format);return!i||(e||"boolean"==typeof e)&&e.toString()==i},value:{}},comboFilter:{element:{},toHtml:function(t,e){var i,n=this,o=t.id.toString(),r=this.element[o];return r?r.data=t.$uniqueData:(i=t.header.filter(function(t){return void 0!==t.filterConfig})[0],(r=new c.ComboFilter(t,e,t.$uniqueData,this.value[o],i)).events.on("change",function(t){n.value[o]=t}),this.element[o]=r),(0,s.inject)(r.getFilter().getRootView())},match:function(t){var e=t.val,i=t.match,n=void 0===i?"":i,i=t.multi,o=void 0!==i&&i,i=t.col,r=(0,l.toFormat)(e,i.type,i.format);if(Array.isArray(n)){for(var s=void 0,a=0;a<n.length;a++)if("break"===function(e){if(s=o&&"string"==typeof r?r.split(", ").some(function(t){return t===n[e]}):n[e]===r)return"break"}(a))break;return!n||!n.length||s}return void 0===n||r===n},destroy:function(){this.value={};var t,e=this.element;for(t in e)e[t].destructor(),delete e[t]},value:{}},sum:{calculate:function(t,e){return t.length?e.reduce(function(t,e){return t+parseFloat(e)||0},0):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type||"number"===t.type?(0,l.toFormat)(e,t.type,t.format):(0,a.isDefined)(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||"number"===t.type?(0,l.toFormat)(e,t.type,t.format):(0,a.isDefined)(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||"number"===t.type?(0,l.toFormat)(e,t.type,t.format):(0,a.isDefined)(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||"number"===t.type?(0,l.toFormat)(e,t.type,t.format):(0,a.isDefined)(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";Object.defineProperty(e,"__esModule",{value:!0}),e.ComboFilter=void 0;var n=i(51),r=i(5),o=i(6),s=i(1),a=i(4);function l(t,e,i,n,o){this.events=new r.EventSystem,this._silentMode=!1,this.column=t,this.config=e,this.data=i,this.value=n,this.filterConfig=(null==o?void 0:o.filterConfig)||{},(this.column.htmlEnable||null!=(t=this.config)&&t.htmlEnable&&!1!==this.column.htmlEnable)&&(this.filterConfig.readonly=!0,this.filterConfig.template||(this.filterConfig.template=function(t){return t.value})),this.initFilter(),this.config&&this.initHandlers()}l.prototype.initFilter=function(){this._filter=new n.Combobox(null,Object.assign({},this.filterConfig)),this.data&&this._filter.data&&this._setData()},l.prototype.initHandlers=function(){var t,i=this,n=this.column.id.toString();this.config.events.on(o.DataEvents.load,function(){return i._setData()},this),this._filter.events.on("change",function(t){var e;t&&(Array.isArray(t)?t.find(function(t){return i._filter.data.getItem(t)}):i._filter.data.getItem(t))&&(e=i._filter.config.multiselection?i._filter.list.selection.getItem().map(function(t){if(t&&i._filter.data.getItem(t.id))return t.value}):i._filter.list.selection.getItem().value),i.value=e,null!=(t=i.config.events)&&t.fire(a.GridEvents.filterChange,[i.value,n,"comboFilter",i._silentMode]),i._silentMode&&void 0===i.value&&(i._silentMode=!1)}),this.config.events.on(a.GridEvents.filterChange,function(t){return i.events.fire(a.HeaderFilterEvent.change,[t])},this),this._filter.popup.events.on("afterHide",function(){i.filterConfig.multiselection||i._filter.list.selection.getItem()||i.clear()}),this._filter.popup.events.on("afterShow",function(){!i.filterConfig.multiselection&&(""===i.value||i.filterConfig.readonly&&void 0!==i.value)&&i.clear()}),null!=(t=this.config.events)&&t.on(a.GridEvents.scroll,function(){var t;i._isFocused&&null!=(t=i._filter.getRootView().refs)&&t.input&&i._filter.focus()},this),null!=(t=this.config.events)&&t.on(a.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()},this),null!=(t=this.config.events)&&t.on(a.GridEvents.cellMouseDown,function(){return i.blur()},this),this.config.events.on(o.DataEvents.change,function(t,e){i.column.hidden||"add"!==e&&"update"!==e&&"remove"!==e||("add"!==e&&i._checkValue(),i._setData(!0))},this),this.config.events.on(o.DataEvents.removeAll,function(){i.clear(!0),i._setData()},this),this.config.events.on(a.GridEvents.afterRowShow,function(){return i._setData(!0)},this),this.config.events.on(a.GridEvents.afterRowHide,function(){i.column.hidden||(i._checkValue(),i._setData(!0))},this),this.config.events.on(o.DataEvents.filter,function(t){i.column.hidden||(!t||(0,o.isOnlyPermanentFilters)(t)?i.clear(!0):i._checkValue(),i.filterConfig.multiselection&&i._filter.popup.isVisible())||i._setData(!0)},this),this.config.events.on(a.GridEvents.afterColumnShow,function(){i.filterConfig.multiselection||(i._checkValue(),i._setData())},this),this.config.events.on(a.GridEvents.afterColumnHide,function(){i.filterConfig.multiselection||i._setData()},this)},l.prototype.getFilter=function(){return this._filter},l.prototype.setValue=function(e,t){var i,n=this;!this.filterConfig.multiselection&&Array.isArray(e)||((0,s.isDefined)(e)?(null!=e&&e.length||""===e)&&(i=this.filterConfig.multiselection&&Array.isArray(e)?e.map(function(e){var t;return null==(t=n._filter.data.find(function(t){return t.value===e}))?void 0:t.id}):null==(i=this._filter.data.find(function(t){return t.value===e}))?void 0:i.id,this._filter.setValue(i,t)):(t&&(this._silentMode=!0),this._filter.clear(),this.filterConfig.multiselection||void 0===this.value||(this.value=void 0,null!=(i=this.config.events)&&i.fire(a.GridEvents.filterChange,[this.value,this.column.id,"comboFilter"]))))},l.prototype.clear=function(t){void 0!==this.value&&this.setValue(null,t)},l.prototype.focus=function(){var t;this._isFocused=!0,null!=(t=this._filter.getRootView().refs)&&t.input&&this._filter.focus()},l.prototype.blur=function(){var t;this._isFocused=!1,null!=(t=this._filter.getRootView().refs)&&t.input&&this._filter.blur()},l.prototype.destructor=function(){var t=this.config.events;if(t)for(var e in t.events)this.config.events.detach(e,this);this.events.clear(),this._filter&&this._filter.destructor(),this.config=this.filterConfig=this.data=this.column=this.value=this.events=null},l.prototype._setData=function(t){function e(){var t=i.column.$activeFilterData||i.column.$uniqueData;i._filter.data.parse(t.map(function(t){return{value:t}}))}var i=this;void 0===t&&(t=!1);void 0===this.value?e():t&&this.filterConfig.multiselection&&(e(),this.setValue(this.value,!0))},l.prototype._checkValue=function(){if(void 0!==this.value)for(var i=Array.isArray(this.value)?this.value:[this.value],n=this,t=0,e=i;t<e.length;t++)if("break"===function(e){var t;return n.column.$uniqueData.includes(e)?"continue":(1<i.length?(t=n._filter.data.find(function(t){return t.value===e}),n._filter.list.selection.remove(t.id)):n.clear(),"break")}(e[t]))break},e.ComboFilter=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectFilter=void 0;var n=i(0),o=i(5),r=i(4);function s(t,e,i,n){this.events=new o.EventSystem,this.column=t,this.config=e,this.data=i,this.value=n||"",this.initHandlers(),this.toHTML()}s.prototype.toHTML=function(){var e=this;return(0,n.el)("label.dhx_grid-filter__label.dxi.dxi-menu-down",{_ref:"".concat(this.column.id,"_filter")},[(0,n.el)("select.dxi.dxi-menu-down",{type:"text",class:"dhx_input dhx_grid-filter dhx_grid-filter--select",onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id},[(0,n.el)("option",{value:"",_key:0},""),(this.value?[this.value]:this.data).map(function(t){return""!==(t=null!=t?t:"")&&(0,n.el)("option",{_key:t,value:t,selected:e.value===t.toString()},t)})])])},s.prototype.getFilter=function(){return this.toHTML()},s.prototype.setValue=function(t,e){this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[t]),null!=(t=this.config.events)&&t.fire(r.GridEvents.filterChange,[this.value,this.column.id,"selectFilter",e])},s.prototype.clear=function(t){this.setValue("",t)},s.prototype.focus=function(){this._isFocused=!0;var t=null==(t=null==(t=null==(t=null==(t=this.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(this.column.id,"_filter")])?void 0:t.el;t&&t.focus()},s.prototype.blur=function(){this._isFocused=!1;var t=null==(t=null==(t=null==(t=null==(t=this.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(this.column.id,"_filter")])?void 0:t.el;t&&t.blur()},s.prototype.initHandlers=function(){var t,i=this;this._handlers={onchange:function(t){var e,t=(null==(e=t.target)?void 0:e.value)||(null==(e=null==(e=t.composedPath())?void 0:e[0])?void 0:e.value)||(null==(e=t.explicitOriginalTarget)?void 0:e.value);i.setValue(t)},onfocus:function(){i._isFocused=!0},onblur:function(){i._isFocused=!1}},null!=(t=this.config.events)&&t.on(r.GridEvents.scroll,function(){var t,e=null==(t=null==(t=null==(t=null==(t=i.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(i.column.id,"_filter")])?void 0:t.el;i._isFocused&&e&&(0,n.awaitRedraw)().then(function(){e.focus()})}),null!=(t=this.config.events)&&t.on(r.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!=(t=this.config.events)&&t.on(r.GridEvents.cellMouseDown,function(){return i.blur()})},e.SelectFilter=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputFilter=void 0;var n=i(0),o=i(5),r=i(4);function s(t,e,i,n){this.events=new o.EventSystem,this.column=t,this.config=e,this.id=i,this.value=n||"",this.initHandlers(),this.toHTML()}s.prototype.toHTML=function(){return(0,n.el)("div.dhx_grid-filter__label.dxi.dxi-magnify",{"aria-label":"Type to search",_ref:"".concat(this.column.id,"_filter")},[(0,n.el)("label",{style:{display:"none"},"aria-label":"Type to search",for:this.id},"Type to search"),(0,n.el)("input",{type:"text",class:"dhx_input dhx_grid-filter",oninput:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id,id:this.id,value:this.value})])},s.prototype.getFilter=function(){return this.toHTML()},s.prototype.setValue=function(t,e){this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[this.value]),null!=(t=this.config.events)&&t.fire(r.GridEvents.filterChange,[this.value,this.column.id,"inputFilter",e])},s.prototype.clear=function(t){this.setValue("",t)},s.prototype.focus=function(){this._isFocused=!0;var t=null==(t=null==(t=null==(t=null==(t=this.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(this.column.id,"_filter")])?void 0:t.el;t&&null!=(t=t.querySelector("input"))&&t.focus()},s.prototype.blur=function(){this._isFocused=!1;var t=null==(t=null==(t=null==(t=null==(t=this.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(this.column.id,"_filter")])?void 0:t.el;t&&null!=(t=t.querySelector("input"))&&t.blur()},s.prototype.initHandlers=function(){var t,i=this;this._handlers={onchange:function(e){i._inputDelay&&clearTimeout(i._inputDelay),i._inputDelay=setTimeout(function(){var t=(null==(t=e.target)?void 0:t.value)||(null==(t=null==(t=e.composedPath())?void 0:t[0])?void 0:t.value)||(null==(t=e.explicitOriginalTarget)?void 0:t.value);i.setValue(t)},500)},onfocus:function(){i._isFocused=!0},onblur:function(){i._isFocused=!1}},null!=(t=this.config.events)&&t.on(r.GridEvents.scroll,function(){var t,e=null==(t=null==(t=null==(t=null==(t=i.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(i.column.id,"_filter")])?void 0:t.el;i._isFocused&&e&&(0,n.awaitRedraw)().then(function(){var t;null!=(t=e.querySelector("input"))&&t.focus()})}),null!=(t=this.config.events)&&t.on(r.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!=(t=this.config.events)&&t.on(r.GridEvents.cellMouseDown,function(){return i.blur()})},e.InputFilter=s},function(t,e,i){"use strict";var _=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},v=(Object.defineProperty(e,"__esModule",{value:!0}),e.startResize=void 0,i(1)),m=i(4),y=i(10);e.startResize=function(a,l,t,e){function i(t){var e,i,n=(0,v.findIndex)(u,function(t){return t.id===l}),o=(t.targetTouches?t.targetTouches[0]:t).clientX,r=o-a.getRootNode().getBoundingClientRect().left,s=(0,y.calcScrollBarWidth)(a.config,f);a.config.leftSplit===n+1&&r>=a.config.$width-s.y-2||c&&h.includes(l)&&s.xState!==p||(g=g||u[n].$width,r=u[n].minWidth||40,s=u[n].maxWidth,o=o-d,e=_([],u,!0),o=g+(p&&h.includes(l)?-o:o),s&&s<=o||o<=r?(o<=r&&(i=r),s<=o&&(i=s)):i=o,e[n].$width=i,e[n].$fixed=!0,a.events.fire(m.GridEvents.resize,[u[n],t]),a.paint())}function n(){t.targetTouches?(document.removeEventListener("touchmove",i),document.removeEventListener("touchend",n)):(document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",n)),e()}var o,c=a.config.rightSplit,d=(t.targetTouches&&t.preventDefault(),(t.targetTouches?t.targetTouches[0]:t).clientX),u=a.config.columns.filter(function(t){return!t.hidden}),h=c?u.slice(-c).map(function(t){return t.id}):[],f=!(null==(o=a.scrollView)||!o.config.enable),p=c?(0,y.calcScrollBarWidth)(a.config,f).xState:null,g=0;a.config.$resizing=l,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";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)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.getKeysHandlers=e.selectionMove=void 0,i(4)),d=i(2),a=i(7),l=i(1);function c(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||(0,d.locateNodeByClassName)(t,"dhx_grid-header-cell")||(t&&t.preventDefault(),t=e.selection.getCell(),a=e.config.columns.filter(function(t){return!t.hidden}),t&&("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,t.column.id,r,s),e.scrollTo(l.id.toString(),t.column.id.toString())):0<=(c=e.data.getIndex(t.row.id.toString()))+n&&c+n<e.data.getLength()&&(l=e.data.getItem(e.data.getId(c+n)),e.selection.setCell(l.id,t.column.id,r,s),e.scrollTo(l.id.toString(),t.column.id.toString())):o?(l=1===n?a[a.length-1]:a[0],e.selection.setCell(t.row.id,l.id,r,s),e.scrollTo(t.row.id.toString(),l.id.toString())):0<=(c=a.indexOf(t.column))+n&&c+n<a.length&&(e.selection.setCell(t.row.id,a[c+n].id,r,s),e.scrollTo(t.row.id.toString(),a[c+n].id.toString()))))}function u(t,e){var i,n,o=t.selection.getCell(),r=o&&t.getSpan(o.row.id,o.column.id);return r?"up"===e||"down"===e?(i=(0,l.findIndex)(t.config.data,function(t){return t.id===r.row}),n=(0,l.findIndex)(t.config.data,function(t){return t.id===o.row.id}),"up"===e?i-n-1:i+(r.rowspan||1)-n):(t=t.config.columns.filter(function(t){return!t.hidden}),i=(0,l.findIndex)(t,function(t){return t.id===r.column}),n=(0,l.findIndex)(t,function(t){return t.id===o.column.id}),"left"===e?i-n-1:i+(r.colspan||1)-n):"down"===e||"right"===e?1:-1}e.selectionMove=c,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.refs)?void 0:t.grid_body)?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=(0,d.locateNodeByClassName)(t,"dhx_grid-header-cell");i&&(i=i.getAttribute("data-dhx-id"),t=t.target.getAttribute("dhx_resized"),i)&&(e=o.getColumn(i))&&(0,a.isSortable)(o.config,e)&&!t&&o.events.fire(s.GridEvents.afterSort,[i]),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.events.fire(s.GridEvents.beforeEditStart,[e.row,e.column,"checkbox"])&&(o.events.fire(s.GridEvents.afterEditStart,[e.row,e.column,"checkbox"]),o.events.fire(s.GridEvents.beforeEditEnd,[!e.row[e.column.id],e.row,e.column]))&&o.events.fire(s.GridEvents.afterEditEnd,[!e.row[e.column.id],e.row,e.column]):o.editCell(e.row.id,e.column.id,e.column.editorType)):o.config.$editable&&o.editEnd()},space:function(t){var e,i=o.selection.getCell();n&&(null!=(e=null==i?void 0:i.column.editable)?e:o.config.editable)&&!o.config.$editable&&i&&"boolean"===i.column.type&&(t.preventDefault(),o.events.fire(s.GridEvents.beforeEditStart,[i.row,i.column,"checkbox"]))&&(o.events.fire(s.GridEvents.afterEditStart,[i.row,i.column,"checkbox"]),o.events.fire(s.GridEvents.beforeEditEnd,[!i.row[i.column.id],i.row,i.column]))&&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&&!(0,d.locateNodeByClassName)(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),e=o.selection.getCell(),i=o.config.columns.filter(function(t){return!t.hidden}),e)&&(0<=(n=i.indexOf(e.column)+1)&&n<i.length?(t&&t.preventDefault(),o.selection.setCell(e.row.id,i[n].id),o.scrollTo(e.row.id.toString(),i[n].id.toString())):0<=n&&(n=o.data.getIndex(e.row.id.toString())+1)<o.data.getLength()&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),i[0].id),o.scrollTo(o.data.getId(n).toString(),i[0].id.toString())))},"shift+tab":function(t){var e,i,n;o.config.selection&&!(0,d.locateNodeByClassName)(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),e=o.selection.getCell(),i=o.config.columns.filter(function(t){return!t.hidden}),e)&&(0<=(n=i.indexOf(e.column)-1)&&n<i.length?(t&&t.preventDefault(),o.selection.setCell(e.row.id,i[n].id),o.scrollTo(e.row.id.toString(),i[n].id.toString())):n<o.data.getLength()&&0<=(n=o.data.getIndex(e.row.id.toString())-1)&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),i[i.length-1].id),o.scrollTo(o.data.getId(n).toString(),i[i.length-1].id.toString())))},arrowUp:function(t){c(t,o,"vertical",u(o,"up"))},"ctrl+arrowUp":function(t){c(t,o,"vertical",-1,!0)},"shift+arrowUp":function(t){o.config.multiselection&&c(t,o,"vertical",-1,!1,!1,!0)},"ctrl+shift+arrowUp":function(t){o.config.multiselection&&c(t,o,"vertical",-1,!0,!1,!0)},arrowDown:function(t){c(t,o,"vertical",u(o,"down"))},"ctrl+arrowDown":function(t){c(t,o,"vertical",1,!0)},"shift+arrowDown":function(t){o.config.multiselection&&c(t,o,"vertical",1,!1,!1,!0)},"ctrl+shift+arrowDown":function(t){o.config.multiselection&&c(t,o,"vertical",1,!0,!1,!0)},arrowRight:function(t){c(t,o,"horizontal",u(o,"right"))},"ctrl+arrowRight":function(t){c(t,o,"horizontal",1,!0)},"shift+arrowRight":function(t){o.config.multiselection&&c(t,o,"horizontal",1,!1,!1,!0)},"ctrl+shift+arrowRight":function(t){o.config.multiselection&&c(t,o,"horizontal",1,!0,!1,!0)},arrowLeft:function(t){c(t,o,"horizontal",u(o,"left"))},"ctrl+arrowLeft":function(t){c(t,o,"horizontal",-1,!0)},"shift+arrowLeft":function(t){o.config.multiselection&&c(t,o,"horizontal",-1,!1,!1,!0)},"ctrl+shift+arrowLeft":function(t){o.config.multiselection&&c(t,o,"horizontal",-1,!0,!1,!0)}},e)}},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProGrid=void 0,i(42)),c=i(4),f=i(6),d=i(2),u=i(9),p=i(10),h=i(0),g=i(30),i=(o=l.Grid,r(_,o),_.prototype._createView=function(){var i=this;return(0,h.create)({render:function(t,e){return i._destructed?(0,h.el)("div"):(0,p.proRender)(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},_.prototype._setEventHandlers=function(){var r=this;o.prototype._setEventHandlers.call(this),this.events.on(c.GridEvents.headerCellMouseDown,function(t,e){var i=(0,d.locateNodeByClassName)(e,"dhx_header-row"),i=i&&i.getAttribute("aria-rowindex");null!=(i=t.header[Number(i)-1])&&i.content||(e.targetTouches?r._touch.timer=setTimeout(function(){r._dragStartColumn(e,t)},r._touch.duration):r._dragStartColumn(e,t))}),this._events.on(c.GridSystemEvents.headerCellTouchMove,function(t,e){r._touch.start&&e.preventDefault(),r._clearTouchTimer()}),this._events.on(c.GridSystemEvents.headerCellTouchEnd,function(){r._touch.start=!1,r._clearTouchTimer()}),this.events.on(c.GridEvents.resize,function(){r._parseColumns(),r._setUniqueData(!0)}),this.events.on(c.GridEvents.afterResizeEnd,function(){r.config.autoHeight&&(r.config.data=r.data.map(function(t){var e=(0,u.getMaxRowHeight)(t,r.config.columns);return t.$height=(0,u.getCalculatedRowHeight)(e,{rowHeight:r.config.rowHeight,padding:8}),t}))}),this.events.on(c.GridEvents.afterRowResize,function(t,e,i){var t=r.data.getItem(t.id),n=t.id,o=t.height,t=t.$height;o&&o!==t&&r.data.update(n,{height:i}),r.data.update(n,{$height:i},!0),r.config.data=r.data.map(function(t){return t}),r.paint()}),this.events.on(c.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)})},_.prototype._prepareData=function(t){var e,i=this;return this._adjustColumns(),(Array.isArray(t)||(0,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=(0,u.getMaxRowHeight)(t,i.config.columns),t.$height=(0,u.getCalculatedRowHeight)(e,{rowHeight:i.config.rowHeight,padding:8})||i.config.rowHeight):t.$height=t.height||i.config.rowHeight,t})},_.prototype._prepareDataFromTo=function(t,e,i){var n=this;return t.mapRange(e,i,function(t){var e=(0,u.getMaxRowHeight)(t,n.config.columns);return t.$height=(0,u.getCalculatedRowHeight)(e,{rowHeight:n.config.rowHeight,padding:8})||n.config.rowHeight,t})},_.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)){var e=(0,d.locateNode)(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id"),i=(t.targetTouches&&(this._touch.start=!0),[e]);if(this.config.multiselection&&1<(i=a(a([],i,!0),this.selection.getCells().map(function(t){return t.row.id}),!0)).length){for(var n=this.data.getInitialData(),o={},r=0;r<i.length;r++)!function(t){var e=i[t],t=null==n?void 0:n.findIndex(function(t){return t.id==e});o[t]=e}(r);i=a([],Object.values(o),!0)}return f.dragManager.onMouseDown(t,i,[this._getRowGhost(i)])}}},_.prototype._lazyLoad=function(){var i=this,t=this.data.dataProxy;if(t&&t.config){var e=this.data.getRawData(0,-1,null,2);if(e.length){var n,e=(0,p.getRenderConfig)(this,e,{width:this.config.$width,height:this.config.$height}),o=t.config.limit,r=o,s=e.currentRows,e=s[0],a=s[s.length-1],l=this.data.getIndex(a.id),c=function(t){for(var e=1;e<s.length;e++)if("firstFilledRow"===t&&!s[e].$empty&&s[e-1].$empty||"firstEmptyRow"===t&&s[e].$empty&&!s[e-1].$empty)return i.data.getIndex(s[e].id)};if(e.$empty){if(a.$empty)n=this.data.getIndex(e.id);else for(var d=c("firstFilledRow"),u=d-r,h=u=u<0?0:u;h<d;h++)if(this.data.getItem(this.data.getId(h)).$empty){r=d-(n=h);break}}else a.$empty?n=c("firstEmptyRow"):(n=null!=(u=c("firstEmptyRow"))?u:this.data.getIndex(e.id),r=(null!=(a=c("firstFilledRow"))?a:l)-n);!this.data.isDataLoaded(n,l)&&this.data.events.fire(f.DataEvents.beforeLazyLoad,[])&&(t.updateUrl(null,{from:n,limit:r}),t.config.limit=o,this.data.load(t).then(function(){i.config.autoHeight&&i._prepareDataFromTo(i.data,n,l)}))}}},_.prototype._getColumnGhost=function(t){var e=this._container||(0,d.toNode)(this._uid),i=e.querySelector(".dhx_header-row"),n=i.querySelector('.dhx_grid-header-cell[data-dhx-id="'.concat(t.id,'"]')),i=Array.from(i.childNodes).indexOf(n)+1,n=e.querySelectorAll('.dhx_grid-header-cell[data-dhx-id="'.concat(t.id,'"]:not(.dhx_span-cell)')),t=e.querySelectorAll(".dhx_grid_data .dhx_grid-cell:nth-child(".concat(i,")")),o=document.createElement("div");return n.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),t.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),o},_.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)||(0,d.locateNodeByClassName)(t,"dhx_resizer_grip_wrap")||(t.targetTouches&&(this._touch.start=!0),f.dragManager.onMouseDown(t,[e.id],[this._getColumnGhost(e)]))},_);function _(t,e){var i=o.call(this,t,s({autoHeight:!1},e))||this;return i.scrollView=new g.ScrollView(function(){return i.getRootView()},{scrollHandler:function(t){return i.events.fire(c.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])}}),i}e.ProGrid=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.collectionStore=void 0;o.prototype.setItem=function(t,e){this._store[t]=e},o.prototype.getItem=function(t){return this._store[t]||null};var n=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,o,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=(Object.defineProperty(l,"__esModule",{value:!0}),l.LazyDataProxy=void 0,c(15)),r=c(1),s=c(24),i=(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=(0,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=i}.call(this,c(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var o=i(5),n=i(22),r=i(11),s=i(1);function a(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;(0,s.isId)(n._selected)&&(t=n._data.getNearId(n._selected))!==n._selected&&(n._selected=null,t)&&n.add(t)})}a.prototype.getId=function(){return this._selected},a.prototype.getItem=function(){return(0,s.isId)(this._selected)?this._data.getItem(this._selected):null},a.prototype.remove=function(t){return t=null!=t?t:this._selected,!(0,s.isDefined)(t)||!!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)},a.prototype.add=function(t){this._selected!==t&&!this.config.disabled&&this._data.exists(t)&&(this.remove(),this._addSingle(t))},a.prototype.enable=function(){this.config.disabled=!1},a.prototype.disable=function(){this.remove(),this.config.disabled=!0},a.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]))},e.Selection=a},function(t,e,i){"use strict";var c=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},d=(Object.defineProperty(e,"__esModule",{value:!0}),e.ComposeLayer=void 0,i(0)),u=i(129);function n(){this._data=[],this._sizes={left:20,right:20,top:10,bottom:10}}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}),o=(this._data.forEach(function(t){return!t.scaleReady||t.scaleReady(n)}),0),r=0,s=(t.forEach(function(t){t.seriesShift&&(o+=t.seriesShift(),r++)}),o/r),o=r?(s-o)/2:0,a=(t.forEach(function(t){t.seriesShift&&(t.seriesShift(o),o+=s)}),this._sizes=n,e-n.left-n.right),l=i-n.top-n.bottom,a=(0,d.sv)("g",{transform:"translate(".concat(n.left,", ").concat(n.top,")")},c([(0,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))}),!0)),l=(0,d.sv)("defs",[(0,u.dropShadow)(),(0,u.shadow)()]);return(0,d.sv)("svg",{width:e,height:i,role:"graphics-document"},[l,a])},e.ComposeLayer=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dropShadow=e.shadow=void 0;var n=i(0);e.shadow=function(){return(0,n.sv)("filter",{id:"shadow"},[(0,n.sv)("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[(0,n.sv)("feDistantLight",{azimuth:90,elevation:25})]),(0,n.sv)("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])};e.dropShadow=function(){return(0,n.sv)("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[(0,n.sv)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),(0,n.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,n.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,n.sv)("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),(0,n.sv)("feComposite",{in2:"offsetblur",operator:"in"}),(0,n.sv)("feMerge",[(0,n.sv)("feMergeNode"),(0,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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.Legend=void 0,i(6)),r=i(17),v=i(0),D=i(3),m=i(131),O=i(1);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,n){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||"line"===n?20:60}}(this.config.halign,this.config.valign,(0,o.isTreeCollection)(this._data),this.config.form),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])}}}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,a=(s.$sizes={width:0,height:0},(0,D.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){u||"row"!==s.direction||(i=(0,D.getTextWidth)(t.text,a),n<h+i+15&&0!==e&&(h=0,f+=c+2)),d.push((0,v.sv)("g",_(_({transform:"translate(".concat(h,",").concat(f,")"),onclick:[o._handlers.onclick,t.id,o.config.values],onkeyup:[o._handlers.onkeyup,t.id,o.config.values],class:"legend-item ".concat(t.active?"":"not-active")},{role:"button","aria-label":((i=t).active?"Hide chart ":"Show chart ").concat(i.text)}),{tabindex:0}),[(0,v.sv)("text",{x:t.maxValue?0:10,y:0,class:"start-text legend-text"},[(0,D.verticalCenteredText)(t.text)]),[(0,m.legendShape)(s.form,t),!isNaN(t.maxValue)&&!isNaN(t.minValue)&&(0,m.legendTicks)(s.form,t)]]));var i,e="line"!==s.form?15+(0,D.getTextWidth)(t.text,a):0;u||"row"!==s.direction?(h=0,p=e<p?p:e,g=(f+=c+2)<g?g:f):p=(h+=e+c)<p?p:h}),s.valign){case"top":i="row"===s.direction?-l-f-5-("line"===s.form?15:0):"center"===s.halign?5-g:l+5;break;case"middle":i=(t-g)/2+c/2;break;case"bottom":i="row"===s.direction?t+("line"!==s.form?l:10):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-("line"===s.form?500:0))/2;break;case"right":e=!u&&"row"===s.direction?n-p+c+("line"===s.form?-500-l:5):n+l+5}return(0,v.sv)("g",{transform:"translate(".concat(0<e?e:0,", ").concat(i,")"),"aria-label":"Legend",tabindex:0},d)},n.prototype._getData=function(){var i=[];if("scale"===this.config.type){var t=this.config.values,e=t.color,n=t.positiveColor,o=t.negativeColor,r=t.text,s=t.minValue,a=t.maxValue,l=t.tick,c=t.majorTick,d=t.step,t=t.tickTemplate,u=this.setCriticals(),h=u[0],u=u[1];i.push({id:(0,O.uid)(),text:r,alpha:1,fill:e,minValue:null!=s?s:h,maxValue:null!=a?a:u,positiveColor:n,negativeColor:o,active:!0,tick:l,majorTick:c,step:d,tickTemplate:t})}else if(this.config.values){var f=(0,D.locator)(this.config.values.text),p=(0,D.locator)(this.config.values.color);this._data.map(function(t,e){i.push({id:t.id,text:f(t).toString(),alpha:1,fill:p(t).toString()||(0,D.getDefaultColor)(e),active:!t.$hidden})})}else if(this.config.treeSeries){var g=this.config.treeSeries;"groupName"===this.config.type?g.forEach(function(t){i.push({id:t.id,text:t.name||t.id,alpha:1,fill:t.color,active:t.active})}):g.forEach(function(t){var e;i.push({id:t.id,text:(e=t).from&&e.to?"".concat(e.from," - ").concat(e.to):e.less?"<= ".concat(e.less):e.greater?">= ".concat(e.greater):void 0,alpha:1,fill:t.color,active:t.active})})}else for(var _=0,v=g=this.config.$seriesInfo;_<v.length;_++){var m=v[_],y=m.config,x=y.fill,e=y.color,b=y.id,w=y.alpha,C=y.active,S=y.label,y=y.value,E=x&&e,r=S&&"function"==typeof S?S(m.config):S||y;i.push({id:b,text:r,fill:x||e,color:E&&e,active:C,alpha:w})}return i},n.prototype.setCriticals=function(){var e,i,n=this.config.values.value;return this._data.forEach(function(t){t[n]&&(e=!e||t[n]<e?t[n]:e,i=!i||t[n]>i?t[n]:i)}),i=10*Math.ceil(i/10),(e=10*Math.floor(e/10))===i&&(e-=10),[e,i]},e.Legend=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.legendTicks=e.legendShape=void 0;var s=i(1),h=i(0),n={circle:function(t,e,i){return(0,h.sv)("circle",{id:(0,s.uid)(),r:5,fill:e,class:"figure ".concat("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":i,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,i){return(0,h.sv)("rect",{id:(0,s.uid)(),fill:e,"fill-opacity":i,width:10,"stroke-width":2,height:10,class:"figure ".concat("none"!==t?"with-stroke":""),stroke:t,transform:"translate(".concat(-5,", ").concat(-5,")")})},line:function(t,e,i,n){function o(t,e,i){return(0,h.sv)("stop",{offset:"".concat(e,"%"),"stop-color":t,class:t?"":i})}var r="lg"+(0,s.uid)(),e=(0,h.sv)("linearGradient",{id:r},[o(t[1],0,"heat-negative"),o(e,n,"heat-neutral"),o(t[0],100,"heat-positive")]),n=(0,h.sv)("rect",{id:(0,s.uid)(),y:16,fill:"url(#".concat(r,")"),"fill-opacity":i,width:500,"stroke-width":2,height:16,class:"figure figure-line",stroke:t});return(0,h.sv)("g",{id:(0,s.uid)(),width:500,height:16},[e,n])}};e.legendShape=function(t,e){var i;return(i="string"==typeof t?n[t]:i)("line"===t?[e.positiveColor,e.negativeColor]:e.color||"none",e.fill,e.alpha||1,"line"===t&&e.minValue<0?100*Math.abs(e.minValue)/(e.maxValue-e.minValue):0)},e.legendTicks=function(t,e){if("line"===t&&!isNaN(e.maxValue)&&!isNaN(e.minValue)){for(var i=e.maxValue,n=e.minValue,o=e.step,t=e.tick,r=e.majorTick,s=e.tickTemplate,a=t||10,l=(i-n)/a,c=[],d=0;d<=Math.ceil(l/(o||1));d++){var u=0===d?n:(n+a*(o||1)*d).toFixed();c.push(i<u?i:u)}return c=c.map(function(t,e,i){t=(e%(r||1)==0||e===i.length-1)&&(0,h.sv)("text",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:34},s?s(t):t),i=(0,h.sv)("rect",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:18,width:1,height:4});return(0,h.sv)("g",{transform:"translate(0, ".concat(16,")"),class:"legend-tick"},[t,i])})}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(133),o=i(33),i=i(135),n={radial:n.RadialScale,text:i.TextScale,numeric:o.Scale};e.default=n},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=(Object.defineProperty(e,"__esModule",{value:!0}),e.RadialScale=void 0,i(18)),i=i(33),i=(o=i.Scale,r(s,o),s.prototype.paint=function(t,e){var i,n,o,r,s,a=this;return this.config.hidden?null:(i=this.config.zebra,n=this.config.value,o=this.config.showAxis?this._axis.steps:null,r=this._axis.steps.map(function(t){return a.point(t)}),s=this._data.map(function(t){return t[n]}),(0,l.radarScale)({scales:s,axis:r,realAxis:o,zebra:i,attribute: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 o.call(this,t,e,"radial")||this}e.RadialScale=i},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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.AxisCreator=void 0,i(3)),r=[1,2,3,5,10];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()}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((0,o.log10)(e/t)),i=Math.pow(10,i)||1,e=e/i/t;return r[n(n([],r,!0),[e],!1).sort(function(t,e){return t-e}).indexOf(e)]*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((0,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((0,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},e.AxisCreator=a},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),e.TextScale=void 0,i(3)),l=i(33),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},i=(o=l.Scale,r(d,o),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,i,t=this._axis.steps.indexOf(t);return this._padding?(e=.5/(i=this._axis.max+1),i=t/i,this._isXDirection?e+i:1-e-i):this._isXDirection?t/this._axis.max:1-t/this._axis.max},d.prototype.paint=function(i,n){var t,o=this;return this.config.hidden?null:(t=this._axis.steps.map(function(t,e){return[o._isXDirection?o._getAxisPoint(e)*i:o.point(t)*n,t]}),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]}));return u[a](r,t,e,{targetLine:o,dashed:c,grid:l,hidden:d})}}},d.prototype._setDefaults=function(t){this.locator=(0,a.locator)(t.text),this.config=s(s({},{scalePadding:30,textPadding:12,grid:!0,targetLine:null,showText:!0}),t)},d.prototype._getAxisPoint=function(t){var e,i,n=this._axis.max;return this._padding?(e=.5/(i=n+1),i=t/i,this._isXDirection?e+i:1-e-i):this._isXDirection?t/n:1-t/n},d);function d(){return null!==o&&o.apply(this,arguments)||this}e.TextScale=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(62),o=i(64),r=i(137),s=i(138),a=i(36),l=i(139),c=i(140),d=i(141),u=i(142),h=i(143),f=i(144),p=i(145),i=i(146),a={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:p.default,calendarHeatMap:i.default};e.default=a},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),i(64)),i=(o=i.default,r(s,o),s.prototype.addScale=function(t,e){o.prototype.addScale.call(this,"top"===t||"bottom"===t?"left":"top",e)},s.prototype.paint=function(t,e,i){return o.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]);s<i[0]&&(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 ".concat(e," ").concat(t[0]-this.config.barWidth/2,"\nH ").concat(t[1],"\nv ").concat(this.config.barWidth,"\nH ").concat(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(".concat(i," ").concat(e," ").concat(t,")"):""}},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),z=this&&this.__assign||function(){return(z=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=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),G=i(18),Y=i(3),i=i(35),i=(o=i.default,r(s,o),s.prototype.paint=function(M,P){function H(t,e,i){return void 0===i&&(i=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,Y.roundToTwoNumAfterPoint)(i),"%)")}}var L=this,t=this.config,j=t.stroke,e=t.strokeWidth,R=t.useLines,I=t.subType,A=!e||e<1?4:15<e?15:e,F=M<P?M/2:P/2,$=-.25,N=[],V=[],W=[];return 1<this._points.length&&j&&N.push((0,B.sv)("circle",{cx:0,cy:0,r:F-.5,fill:j})),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=(0,G.getCoordinates)($,F,F,1<L._points.length&&j?A/2:null),d=c[0],c=c[1],u=$+n/2,l=($+=n+l,(0,G.getCoordinates)($,F,F,1<L._points.length&&j?-A/2:null)),h=l[0],l=l[1],f=.5<n?1:0,p=(0,G.getCoordinates)(u,F,F),g=-.25<u&&u<.25,_=.5<u||u<0,v=u<.25?5:-5,m=[5,30],y=m[0],x=m[1],m=[(0,G.getCoordinates)(u,F+y,F+y),(0,G.getCoordinates)(u,F+x,F+x)],y=m[0],b=m[1];switch(L.config.subType){case"basic":var w=g?"donut-value-title start-text":"donut-value-title end-text",C=_?-20:10,S=(0,G.getCoordinates)(u,F+10,F+10),E=g?"donut-value start-text":"donut-value end-text",D={text1:{x:(R?b:S)[0],y:(R?b:S)[1]+C,width:0,height:0,class:""},text2:{x:(R?b:S)[0],y:(R?b:S)[1]+C+16,width:0,height:0,class:""},changeSector:!1,line:v,right:g,dy:C},w=(0,B.sv)("text",z(z({x:(R?b:S)[0],y:(R?b:S)[1]+C,class:w},H(o,s,n)),{tabindex:0}),[(0,Y.verticalCenteredText)(s.toString())]),E=(0,B.sv)("text",{x:(R?b:S)[0],y:(R?b:S)[1]+C+16,class:E,"aria-hidden":"true"},[(0,Y.verticalCenteredText)(o.toString())]),O=(0,Y.getSizesSVGText)(s.toString(),{font:"normal 14px Roboto",lineHeight:14}),k=(D.text1.width=O[0],D.text1.height=O[1],O=(0,Y.getSizesSVGText)(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),D.text2.width=O[0],D.text2.height=O[1],R?F+x:F+10),O=(0!==V.length&&(g?(V.forEach(function(t){(0,Y.checkPositions)(D.text1,t.text1,k,k,D),(0,Y.checkPositions)(D.text1,t.text2,k,k,D)}),D.text1.class&&(D.text2.class=D.text1.class)):(V.forEach(function(t){(0,Y.checkPositions)(D.text2,t.text2,k,k,D),(0,Y.checkPositions)(D.text2,t.text1,k,k,D)}),D.text2.class&&(D.text1.class=D.text2.class)),w.attrs.x=D.text1.x,w.attrs.y=D.text1.y,E.attrs.x=D.text2.x,E.attrs.y=D.text2.y,(D.text1.class||D.text2.class)&&(w.attrs.class=D.text1.class,E.attrs.class=D.text2.class),v=D.line,R?(b[0]=D.text1.x,b[1]=D.text1.y-C):(S[0]=D.text1.x,S[1]=D.text1.y-C)),V.push(D),(0,B.sv)("text",z({x:7*p[0]/9,y:7*p[1]/9,class:"pie-inner-value"},H(o,s,n)),[(0,Y.verticalCenteredText)(Math.round(100*n)+"%")]));i.push((0,B.sv)("g",{id:"".concat(r,"-text"),class:"chart donut"},[w,E])),i.push(O);break;case"valueOnly":S=(0,B.sv)("text",z(z({x:7*p[0]/9,y:7*p[1]/9,class:"pie-inner-value"},H(o,s,n)),{tabindex:0}),[(0,Y.verticalCenteredText)("".concat(o))]);i.push(S);break;case"percentOnly":w=(0,B.sv)("text",z(z({x:7*p[0]/9,y:7*p[1]/9,class:"pie-inner-value"},H(o,s,n)),{tabindex:0}),[(0,Y.verticalCenteredText)(Math.round(100*n)+"%")]);i.push(w)}R&&"basic"===I&&(C=_?3:0,i.push((0,B.sv)("path",{d:"M".concat(y[0]," ").concat(y[1]," L").concat(b[0],"\n\t\t\t\t\t\t\t").concat(b[1]+C," h ").concat(v),id:"".concat(r,"-connector"),class:"pie-value-connector chart donut"})));var m=0,y=0,T=A/(2*Math.sin(Math.PI/L._points.length)),T=(1<L._points.length&&j&&(m=(T=(0,G.getCoordinates)(u,T,T))[0],y=T[1]),"M ".concat(d," ").concat(c," A ").concat(F," ").concat(F," 0 ").concat(f," 1 ").concat(h," ").concat(l,"\n\t\t\t\tL ").concat(0+m," ").concat(0+y)),d=(0,G.getCoordinates)(u,4,4),c=d[0],f=d[1],h=(0,B.sv)("path",{d:T,_key:r,fill:a||(0,Y.getDefaultColor)(e),class:"chart donut",onclick:[L._handlers.onclick,t[1],t[2]],onmouseout:[G.pieLikeHandlers.onmouseout],onmouseover:[G.pieLikeHandlers.onmouseover,c,f],role:"presentation"});i.unshift(h),N.push((0,B.sv)("g",{id:r},i)),1===L._points.length?W.push([M/2,P/2]):W.push([.8*p[0]+M/2,.8*p[1]+P/2])}),this._center=[M/2,P/2],this._tooltipData=W,(N=N.concat([])).push((0,B.sv)("circle",{cx:0,cy:0,r:5*F/9,fill:"#FFFFFF",role:"presentation"})),(0,B.sv)("g",z(z({transform:"translate(".concat(M/2,", ").concat(P/2,")")},(t=this.config,{"aria-label":"chart ".concat(t.text||"")})),{tabindex:0}),N)},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),i(1)),q=i(0),U=i(18),K=i(3),i=i(35),i=(o=i.default,r(s,o),s.prototype.paint=function(M,P){var H=this,t=this.config,L=t.stroke,e=t.strokeWidth,j=t.gradient,R=t.useLines,I=t.showText,A=t.showTextTemplate,F=t.subType,$=!e||e<1?4:15<e?15:e,N=M<P?M/2:P/2,V=-.25,W=[],z=[],t=[],B=[],G=[];return 1<this._points.length&&L&&t.push((0,q.sv)("circle",{cx:0,cy:0,r:N-.5,fill:L})),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,e=a||(0,K.getDefaultColor)(e),c=(j&&(a=j(a),c="gradient"+(0,X.uid)(),a=(0,K.getRadialGradient)(a.options,a.stops,c),e="url(#".concat(c,")"),B.push(a)),(0,U.getCoordinates)(V,N,N,1<H._points.length&&L?$/2:null)),a=c[0],c=c[1],d=V+n/2,u=d<.25?5:-5,h=(0,U.getCoordinates)(d,N,N),l=(V+=n+l,(0,U.getCoordinates)(V,N,N,1<H._points.length&&L?-$/2:null)),f=l[0],l=l[1],p=.5<n?1:0,g=[5,30],_=g[0],v=g[1],g=[(0,U.getCoordinates)(d,N+_,N+_),(0,U.getCoordinates)(d,N+v,N+v)],_=g[0],m=g[1],y=-.25<d&&d<.25,x=.5<d||d<0,b=-.25<d&&d<.25?"pie-value start-text":"pie-value end-text";switch((I||A)&&!1!==I&&(g=(0,q.sv)("text",{x:.7*h[0],y:.7*h[1],class:"pie-inner-value","aria-hidden":"true"},[A?(0,K.verticalCenteredText)(A(o.toString())):(0,K.verticalCenteredText)(o.toString())]),i.push(g)),H.config.subType){case"basic":var w=x?-20:10,C=(0,U.getCoordinates)(d,N+10,N+10),S=y?"donut-value start-text":"donut-value end-text",E={text1:{x:(R?m:C)[0],y:(R?m:C)[1]+w,width:0,height:0,class:""},text2:{x:(R?m:C)[0],y:(R?m:C)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:u,right:y,dy:w},D=(0,q.sv)("text",Y({x:(R?m:C)[0],y:(R?m:C)[1]+w,class:b},(D=o,O=n,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(s||"",", ").concat(D," (").concat((0,K.roundToTwoNumAfterPoint)(O),"%)")})),[(0,K.verticalCenteredText)(s.toString())]),O=(0,q.sv)("text",{x:(R?m:C)[0],y:(R?m:C)[1]+w+16,class:S,"aria-hidden":"true"},[(0,K.verticalCenteredText)(o.toString())]),S=(0,K.getSizesSVGText)(s.toString(),{font:"normal 14px Roboto",lineHeight:14}),k=(E.text1.width=S[0],E.text1.height=S[1],S=(0,K.getSizesSVGText)(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),E.text2.width=S[0],E.text2.height=S[1],R?N+v:N+10),S=(0!==W.length&&(y?(W.forEach(function(t){(0,K.checkPositions)(E.text1,t.text1,k,k,E),(0,K.checkPositions)(E.text1,t.text2,k,k,E)}),E.text1.class&&(E.text2.class=E.text1.class)):(W.forEach(function(t){(0,K.checkPositions)(E.text2,t.text2,k,k,E),(0,K.checkPositions)(E.text2,t.text1,k,k,E)}),E.text2.class&&(E.text1.class=E.text2.class)),D.attrs.x=E.text1.x,D.attrs.y=E.text1.y,O.attrs.x=E.text2.x,O.attrs.y=E.text2.y,(E.text1.class||E.text2.class)&&(D.attrs.class=E.text1.class,O.attrs.class=E.text2.class),u=E.line,R?(m[0]=E.text1.x,m[1]=E.text1.y-w):(C[0]=E.text1.x,C[1]=E.text1.y-w)),W.push(E),(0,q.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,K.verticalCenteredText)(Math.round(100*n)+"%")]));i.push((0,q.sv)("g",{id:"".concat(r,"-text"),class:"chart donut"},[D,O])),i.push(S);break;case"valueOnly":C=(0,q.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,K.verticalCenteredText)("".concat(o))]);i.push(C);break;case"percentOnly":D=(0,q.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,K.verticalCenteredText)(Math.round(100*n)+"%")]);i.push(D)}R&&"basic"===F&&(w=x?3:0,i.push((0,q.sv)("path",{d:"M".concat(_[0]," ").concat(_[1]," L").concat(m[0],"\n\t\t\t\t\t\t\t").concat(m[1]+w," h ").concat(u),id:"".concat(r,"-connector"),class:"pie-value-connector chart pie"})));var g=0,_=0,T=$/(2*Math.sin(Math.PI/H._points.length)),T=(1<H._points.length&&L&&(g=(T=(0,U.getCoordinates)(d,T,T))[0],_=T[1]),"M ".concat(a," ").concat(c," A ").concat(N," ").concat(N," 0 ").concat(p," 1 ").concat(f," ").concat(l,"\n\t\t\t\tL ").concat(0+g," ").concat(0+_)),a=(0,U.getCoordinates)(d,4,4),c=a[0],p=a[1],f=(0,q.sv)("path",{d:T,class:"chart pie",_key:r,fill:e,onclick:[H._handlers.onclick,t[1],t[2]],onmouseover:[U.pieLikeHandlers.onmouseover,c,p],onmouseout:[U.pieLikeHandlers.onmouseout],role:"presentation"});i.unshift(f),G.push((0,q.sv)("g",{id:r},i)),1===H._points.length?z.push([M/2,P/2]):z.push([.7*h[0]+M/2,.7*h[1]+P/2])}),this._center=[M/2,P/2],this._tooltipData=z,t.push((0,q.sv)("defs",B)),t=(t=t.concat(G)).concat([]),(0,q.sv)("g",Y(Y({transform:"translate(".concat(M/2,", ").concat(P/2,")")},(e=this.config,{"aria-label":"chart ".concat(e.text||"")})),{tabindex:0}),t)},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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)},Y=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),X=i(18),q=i(3),i=i(35),i=(o=i.default,r(s,o),s.prototype.paint=function(M,P){var H=this,t=this.config,L=t.subType,j=t.useLines,R=t.showText,I=t.showTextTemplate,A=M<P?M/2:P/2,F=.5*A,$=A/5,N=[],V=-.25,W=[],z=[],B=[];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=(0,X.getCoordinates)(V,A,F),c=l[0],l=l[1],d=V+i/2,u=d<.25?5:-5,h=(0,X.getCoordinates)(d,A,F),f=0,p=(0<d&&d<.5&&(f=$*Math.sin(2*Math.PI*d)),(0,X.getCoordinates)(d,A+5+f,5+F+f)),g=(0,X.getCoordinates)(d,A+30+f,30+F+f),a=V+i+a,_=(0,X.getCoordinates)(a,A,F),v=_[0],_=_[1],m=.5<i?1:0,y=-.25<d&&d<.25,x=.5<d||d<0,b=y?"pie-value start-text":"pie-value end-text";switch(H.config.subType){case"basic":var w=x?-20:10,C=y?"donut-value start-text":"donut-value end-text",S={text1:{x:(j?g:p)[0],y:(j?g:p)[1]+w,width:0,height:0,class:""},text2:{x:(j?g:p)[0],y:(j?g:p)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:u,right:y,dy:w},E=(0,Y.sv)("text",G({x:(j?g:p)[0],y:(j?g:p)[1]+w,dx:j?0<u/2+u?10:-10:null,class:b},(E=n,D=i,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(r||"",", ").concat(E," (").concat((0,q.roundToTwoNumAfterPoint)(D),"%)")})),[(0,q.verticalCenteredText)(r.toString())]),D=(0,Y.sv)("text",{x:(j?g:p)[0],y:(j?g:p)[1]+w+16,dx:j?0<u/2+u?10:-10:null,class:C,"aria-hidden":"true"},[(0,q.verticalCenteredText)(n.toString())]),C=(0,Y.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,q.verticalCenteredText)(Math.round(100*i)+"%")]),O=(0,q.getSizesSVGText)(r.toString(),{font:"normal 14px Roboto",lineHeight:14}),k=(S.text1.width=O[0],S.text1.height=O[1],O=(0,q.getSizesSVGText)(n.toString(),{font:"normal 12px Roboto",lineHeight:12}),S.text2.width=O[0],S.text2.height=O[1],j?A+30+f:A+5+f),T=j?30+F+f:5+F+f;0!==B.length&&(y?(B.forEach(function(t){(0,q.checkPositions)(S.text1,t.text1,k,T,S),(0,q.checkPositions)(S.text1,t.text2,k,T,S)}),S.text1.class&&(S.text2.class=S.text1.class)):(B.forEach(function(t){(0,q.checkPositions)(S.text2,t.text2,k,T,S),(0,q.checkPositions)(S.text2,t.text1,k,T,S)}),S.text2.class&&(S.text1.class=S.text2.class)),E.attrs.x=S.text1.x,E.attrs.y=S.text1.y,D.attrs.x=S.text2.x,D.attrs.y=S.text2.y,(S.text1.class||S.text2.class)&&(E.attrs.class=S.text1.class,D.attrs.class=S.text2.class),u=S.line,j?(g[0]=S.text1.x,g[1]=S.text1.y-w):(p[0]=S.text1.x,p[1]=S.text1.y-w)),B.push(S),z.push(E,D,C);break;case"valueOnly":O=(0,Y.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,q.verticalCenteredText)(n.toString())]);z.push(O);break;case"percentOnly":w=(0,Y.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,q.verticalCenteredText)(Math.round(100*i)+"%")]);z.push(w)}j&&"basic"===L&&z.push((0,Y.sv)("path",{d:"M".concat(p[0]," ").concat(p[1]," L").concat(g[0]," ").concat(g[1]," h ").concat(u),class:"pie-value-connector"})),(R||I)&&!1!==R&&(d=(0,Y.sv)("text",{x:.7*h[0],y:.7*h[1],class:"pie-inner-value","aria-hidden":"true"},[I?(0,q.verticalCenteredText)(I(n)):(0,q.verticalCenteredText)(n.toString())]),z.push(d));var d="",d=(V<=0&&.5<=a?d="M ".concat(A," 0 v ").concat($," A ").concat(A," ").concat(F," 0 1 1 ").concat(-A," ").concat($," v ").concat(-$):V<=0&&a<.5?d="M ".concat(A," 0 v ").concat($," A ").concat(A," ").concat(F," 0 0 1 ").concat(v," ").concat(_+$," v ").concat(-$):0<V&&V<=.5&&.5<=a?d="M ".concat(c," ").concat(l," v ").concat($," A ").concat(A," ").concat(F," 0 0 1 ").concat(-A," ").concat($," v ").concat(-$):0<V&&a<.5&&(d="M ".concat(c," ").concat(l," v ").concat($," A ").concat(A," ").concat(F," 0 0 1 ").concat(v," ").concat(_+$," v ").concat(-$)),d&&(d=(0,Y.sv)("path",{_key:o+"__shadow__",d:d,fill:s||(0,q.getDefaultColor)(e),onclick:[H._handlers.onclick,t[1],t[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"}),W.push(d)),"M ".concat(c," ").concat(l," A ").concat(A," ").concat(F," 0 ").concat(m," 1 ").concat(v," ").concat(_," L 0 0"));W.push((0,Y.sv)("path",{d:d,_key:o,fill:s||(0,q.getDefaultColor)(e),stroke:"none",onclick:[H._handlers.onclick,t[1],t[2]],class:"chart pie3d",role:"presentation"})),1===H._points.length?N.push([M/2,P/2]):N.push([.7*h[0]+M/2,.7*h[1]+P/2]),V=a}),this._center=[M/2,P/2],this._tooltipData=N,W=W.concat(z),(0,Y.sv)("g",G(G({transform:"translate(".concat(M/2,", ").concat(P/2,")")},(t=this.config,{"aria-label":"chart ".concat(t.text||"")})),{tabindex:0}),W)},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,r,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),c=i(18),l=i(3),i=i(19),i=(r=i.default,o(d,r),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,r=this;return this.config.active?(o=(0,l.locator)(this._scale.config.value),this._points=this._data.map(function(t,e){var i=r._locator(t),i=[i,i,t.id,i,i];return n&&(i[1]+=n[e][1]),o&&i.push(o(t)),i}),this._points):this._points=[]},d.prototype.getTooltipText=function(t){if(this.config.tooltip)return t=this._defaultLocator(this._data.getItem(t)),this.config.tooltipTemplate?this.config.tooltipTemplate(t):t},d.prototype.paint=function(t,e){var i,o=this;r.prototype.paint.call(this,t,e);if(this.config.active)return t=this.config,e=[],i=this._points.map(function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])}).join(" ")+"Z",e.push((0,a.sv)("path",{d:i,stroke:t.color,"stroke-width":t.strokeWidth,fill:t.fill,"fill-opacity":t.alpha,class:"chart radar"})),t.pointType&&(i=this._points.map(function(t){return o._drawPointType(t[0],t[1],(0,l.calcPointRef)(t[2],o.id))}).map(function(t){var e,i,n;return t&&t.attrs&&(t.attrs=s(s({},t.attrs),(e=t.key,i=o._points,{role:"graphics-symbol","aria-roledescription":"point","aria-label":(n=e?i.find(function(t){return e.includes(t[2])}):n)?"point x=".concat(n[5]," y=").concat(n[4]):"",tabindex:0}))),t}),e.push((0,a.sv)("g",i))),(0,a.sv)("g",s(s({id:"seria"+t.id},(i=this.config,{"aria-label":"chart ".concat(i.value||"")})),{tabindex:0}),e)},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=(0,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=(0,l.locator)(t.value),t.scales=t.scales||["radial"],this.config=s(s({},{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!==r&&r.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),i(36)),l=i(3),i=(o=a.default,r(c,o),c.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=(0,l.locator)(this.config.value)):(this.yScale=e,this._yLocator=(0,l.locator)(this.config.valueY))},c.prototype._setDefaults=function(t){this.config=s(s({},{active:!0,tooltip:!0,pointType:"rect"}),t);var t=this.config.pointType,e=this.config.pointColor||this.config.color;t&&(this._drawPointType=this._getPointType(t,e))},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),l=i(65),i=i(36),i=(o=i.default,r(s,o),s.prototype._getForm=function(t,e,i,n,o){var r=e.color,s=e.strokeWidth,t=(0,l.default)(t);return(0,a.sv)("path",{id:"seria"+e.id,d:t,class:i,stroke:r,"stroke-width":s,fill:"none"})},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),f=i(65),i=i(62),i=(o=i.default,r(s,o),s.prototype._form=function(t,e,i,n){var o=this.config,r=o.fill,s=o.alpha,a=o.strokeWidth,l=o.color,o=o.id,c=this.config.css,d="",u=this._points[0],d=n?"".concat((0,f.default)([].concat(n).reverse())," ").concat((0,f.default)(this._points,!0)," Z"):"M".concat(u[0]," ").concat(e," V ").concat(u[1]," ").concat((0,f.default)(this._points)," V").concat(e," H ").concat(u[0]),u=(a&&(n=(0,f.default)(this._points),e=(0,h.sv)("path",{d:n,"stroke-width":a,stroke:l,fill:"none","stroke-linecap":"butt",class:c}),i.push(e)),(0,h.sv)("path",{id:"seria"+o,d:d,class:c,fill:r,"fill-opacity":s,stroke:"none"}));return i.push(u),i},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),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)},C=(Object.defineProperty(e,"__esModule",{value:!0}),i(1)),S=i(0),s=i(6),E=i(3),a=i(17),i=i(19),i=(o=i.default,r(l,o),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,a=this;return this.config.active?(s="groupName"===this.config.legendType,this._sum=0,this._data.forEach(function(t){var e,i=a._data.getItem(a._data.getParent(t.id));i&&i.$hidden&&1<a._maxLevel||(i=a._valueLocator(t))&&(e=a._getSerie(s?t.id:i,s),t.color=(e||t).color,t.$hidden=!!e&&!e.active,!t.$hidden)&&i&&(a._sum+=parseFloat(t[a.config.value]))}),this._points=[],this._data.eachChild(this._data.getRoot(),function(t){var o,e,r,i;t.$hidden||(o=a._valueLocator(t),e=a._textLocator(t),r=[],!o&&a._data.haveItems(t.id)&&(o=0,a._data.eachChild(t.id,function(t){var e,i,n;t.$hidden||(e=a._valueLocator(t),i=a._textLocator(t),n=t.color||(null==(n=a._getSerie(s?t.id:e,s))?void 0:n.color),e&&(o+=e),r.push([0,e,t.id,i,n]))})),t.percent=parseFloat(o)/a._sum,i=t.color||(null==(i=a._getSerie(s?t.id:o,s))?void 0:i.color),a._points.push([t.percent,o,t.id.toString(),e,i,{items:r}]))},!1),this._maxLevel=this._getMaxLevel(),this._points):this._points=[]},l.prototype.paint=function(t,e){var f,p,g,i,_,v,n,m=this;if(!!this.config.treeSeries.find(function(t){return t.active}))return f=this.config.strokeWidth,p=[],g=[],i=[],n=t-(t=1<this._maxLevel?2*f:f),e=e-t,this._layout={id:(0,C.uid)(),area:n*e,width:n,height:e,restArea:n*e,restWidth:n,restHeight:e,startX:t/2,startY:t/2,stroke:t},_=this._layout.startX,v=this._layout.startY,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=e[0],u=(e[1],e[2]),h=(e[3],e[4],e[5]);0!==d&&(i=(t=m._drawBar(e,t,i,m._layout,_,v,!(!h||null==(d=h.items)||!d.length)))[0],d=t[1],n=t[2],o=t[3],r=t[4],s=t[5],t=t[6],_=s[0],v=s[1],g.push((0,S.sv)("g",{id:u},[i,d,t])),p.push(n),h&&null!=(u=h.items)&&u.length&&(i=s[2]-f,d=s[3]-f,a={id:(0,C.uid)(),parent:m._layout.id,area:i*d,width:i,height:d,restArea:i*d,restWidth:i,restHeight:d,startX:_+f/2,startY:v+f/2+("asc"!==m.config.direction&&t?f/2:0),stroke:f},l=a.startX,c=a.startY,a.width>=a.height?a.cols=[]:a.rows=[],h.items.map(function(t){return t[0]=t[1]/e[1]}),h.items.sort(function(t,e){return e[0]-t[0]}),h.items.forEach(function(t,e,i){var n=t[2],t=m._drawBar(t,e,i,a,l,c,!1),e=t[0],i=t[1],o=t[2],r=t[3],t=t[4];g.push((0,S.sv)("g",{id:n},[e,i])),p.push(o),l=r,c=t})),_=o,v=r)}),i.push((0,S.sv)("defs",p)),i=i.concat(g),(0,S.sv)("g",w(w({id:"seria"+this.config.id},(n=this.config,{"aria-label":"chart ".concat(n.text||"")})),{tabindex:0,transform:"asc"===this.config.direction?"rotate(180 ".concat(this._layout.startX+this._layout.width/2," ").concat(this._layout.startY+this._layout.height/2,")"):""}),i)},l.prototype._drawBar=function(t,e,i,n,o,r,s){var a,l=this,c=t[0],d=t[1],u=t[2],h=t[3],f=t[4],p=this.config,g=p.stroke,_=p.showText,p=p.showTextTemplate,v=c*n.area,m=this._getDeepParent(n),y=s&&0<c&&h,x=n.startX+n.width-m.restWidth,b=n.startY+n.height-m.restHeight,m=this._getBar(m,v,o=x<o?x:o,r=b<r?b:r,i,e,n.area),x=m[0],o=m[1],b=m[2],r=m[3],m=m[4];if(!(x[2]<0||x[3]<0))return this._recountParentArea(v,m,n),v=y?(0,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:g,"stroke-width":n.stroke/2,class:"treeMap-header",_key:u,onclick:function(){return l._toggleGroup(u)}}):null,m=y?(0,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 ".concat(x[0]+x[2]/2," ").concat(x[1]+x[3]-this._headerHeight/2-n.stroke/2,")"):""},[p?(0,E.verticalCenteredText)(p(null==h?void 0:h.toString())):(0,E.verticalCenteredText)(null==h?void 0:h.toString())]):null,y=s&&0<c&&h?(0,S.sv)("g",{},[v,m]):null,v=p?p(null==h?void 0:h.toString()):null==h?void 0:h.toString(),m=(0,E.getSizesSVGText)(v,{font:"normal 12px Roboto",lineHeight:14})[0]<x[2]-2*n.stroke,p=(0,C.uid)(),a=x[2]>2*n.stroke&&x[3]>2*n.stroke?(0,S.sv)("clipPath",{id:p,"clip-rule":"nonzero"},[(0,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,h=(0,S.sv)("rect",w(w({},(d=d,c=c,{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":"".concat(h||"",", ").concat(d," (").concat((0,E.roundToTwoNumAfterPoint)(c),"%)")})),{x:x[0],y:x[1],width:x[2],height:x[3],stroke:g,"stroke-width":n.stroke,class:"chart treeMap",_key:u,fill:f,onclick:[this._handlers.onclick,t[1],t[2]],onmousemove:1<this._maxLevel&&1===this._getDataLevel(u)?"":[this._handlers.onmousemove,i[e][2],this.id],onmouseleave:1<this._maxLevel&&1===this._getDataLevel(u)?"":[this._handlers.onmouseleave,i[e][2],this.id]})),d=_?(0,S.sv)("text",{x:m?o[0]:x[0]+n.stroke,y:o[1],class:"treeMap-inner-value ".concat(m?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'.concat(p,'")'),transform:"asc"===this.config.direction?"rotate(180 ".concat(o[0]," ").concat(o[1],")"):""},[(0,E.verticalCenteredText)(v)]):null,s&&y&&(x[1]+="asc"===this.config.direction?0:this._headerHeight,x[3]-=this._headerHeight+n.stroke/4),[h,d,a,b,r,x,y]},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?(r={id:(o=void 0,C.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:(0,C.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=(0,C.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:(0,C.uid)(),area:e,width:v,height:m},t[_]&&t.restArea.toFixed(2)>e.toFixed(2)?(a=(0,C.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-v:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-m})[g]=[r],s)),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=w(w({},{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=(0,E.locator)(t.value),this._textLocator=(0,E.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){var e;return n?(e=o._data.getParent(i),t.id===e||t.id===i):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.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((e=void 0===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!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},v=(Object.defineProperty(e,"__esModule",{value:!0}),i(1)),D=i(13),O=i(0),m=i(6),l=i(3),i=i(19),i=(o=i.default,r(c,o),c.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},c.prototype.dataReady=function(){for(var a,l,c=this,d=[],t=(this._years=[],this._points=[],this.config.startDate&&(a="string"==typeof this.config.startDate?(0,D.stringToDate)(this.config.startDate,this.config.dateFormat):this.config.startDate),(null==(l=this.config.endDate?"string"==typeof this.config.endDate?(0,D.stringToDate)(this.config.endDate,this.config.dateFormat):this.config.endDate:l)?void 0:l.getTime())<(null==a?void 0:a.getTime())&&(0,m.dhxError)("Incorrect endDate/startDate property set, see docs: https://docs.dhtmlx.com/suite/chart/api/chart_series_config"),this._data.forEach(function(t){var i=Number(c._valueLocator(t)),n=c._dateLocator(t),e=null==(n="string"==typeof n?(0,D.stringToDate)(n,c.config.dateFormat):n)?void 0:n.getTime(),t=(null==(t=t.id)?void 0:t.toString())||(0,v.uid)();if(a||l){var o=D.DateHelper.dayStart(n).getTime(),r=a&&D.DateHelper.dayStart(a).getTime()||0,s=l&&D.DateHelper.dayStart(l).getTime()||1/0;if(o<r||s<o)return}r=d.findIndex(function(t){var e=t[0],t=t[1],e=D.DateHelper.isSameDay(new Date(e),n);return e&&(i+=t),e});-1<r&&(d[r]=[e,i,t]),i&&(c._minValue=!c._minValue||i<c._minValue?i:c._minValue,c._maxValue=!c._maxValue||i>c._maxValue?i:c._maxValue),r<0&&d.push([e,i,t])}),d.sort(function(t,e){return t[0]-e[0]}),this._minValue===this._maxValue&&(this._minValue-=10),this._maxValue=!isNaN(this.config.maxValue)&&this.config.maxValue||this._maxValue,this._minValue=!isNaN(this.config.minValue)&&this.config.minValue||this._minValue,this._maxValue=10*Math.ceil(this._maxValue/10),this._minValue=10*Math.floor(this._minValue/10),a||new Date(d[0][0])),e=l||new Date(d[d.length-1][0]),i=t.getFullYear(),n=e.getFullYear(),o=(this.config.startDate||this.config.endDate?this.config.startDate&&!this.config.endDate?(t=new Date(t.getFullYear()+1,t.getMonth(),t.getDate()-1),e.getTime()>t.getTime()&&t.setFullYear(e.getFullYear()+1),n=(l=t).getFullYear()):!this.config.startDate&&this.config.endDate&&(a=new Date(i,0,1)):(n=e.getFullYear(),a=new Date(i,0,1),l=new Date(n,11,31)),0),r=new Date(a.getTime()),s=new Date(l.getFullYear(),l.getMonth(),l.getDate()+1);!D.DateHelper.isSameDay(r,s);){var u=d.length&&new Date(d[o][0]),h=function(){return r.setDate(r.getDate()+1)};if(d.length)if(o<d.length-1){for(;!D.DateHelper.isSameDay(r,u);)this._points.push([r.getTime(),0,(0,v.uid)()]),h();this._points.push(d[o]),o+=1}else D.DateHelper.isSameDay(r,u)?this._points.push(d[o]):this._points.push([r.getTime(),0,(0,v.uid)()]);else this._points.push([r.getTime(),0,(0,v.uid)()]);h()}for(var f=new Date,p=a.getMonth(),g=a.getDate(),_=0;_<this._points.length;_++)f.setTime(this._points[_][0]),(0===_||p===f.getMonth()&&g===f.getDate()&&_!==this._points.length-1)&&this._years.push({year:f.getFullYear(),startIndex:_});return this._points},c.prototype.paint=function(t,e){var y,x,b=this,i=this.config,n=i.days,w=i.months;switch(this.config.weekStart){case"saturday":y=-1;break;case"monday":y=1;break;default:y=0}switch(this.config.weekStart){case"saturday":x=a([null==n?void 0:n[6]],n.slice(0,-1),!0);break;case"monday":x=a(a([],n.slice(1),!0),[null==n?void 0:n[0]],!1);break;default:x=n}var o,C=[],i=[],S=0,E=0,e=(this._years.forEach(function(t,i){for(var e=t.year,t=t.startIndex,n=new Date(e,0,1),o=[],r=[],s=0,a=1,l=t;l<b._points.length&&l!==(null==(c=b._years[i+1])?void 0:c.startIndex);l++){var c=b._points[l],d=c[0],u=c[1],h=c[2],f=new Date,d=(f.setTime(d),f.getMonth()),p=D.DateHelper.addDay(f,-1*y).getDay(),g=(0!==p||D.DateHelper.isSameDay(n,f)||(a+=1),0<=u?u/b._maxValue||0:u/b._minValue||0),_=(0<b._maxValue*b._minValue&&(g=(u-b._minValue)/(b._maxValue-b._minValue)),10+a*(b._cellSize+2)),v=.5+(p+1)*(b._cellSize+2)+i*(x.length*b._cellSize+b._headerHeight),p=(6===p&&(E=v+4*b._cellSize),o.push((0,O.sv)("rect",{x:_,y:v,fill:b.config.color,width:b._cellSize,height:b._cellSize,onclick:[b._handlers.onclick,u,h],onmousemove:[b._handlers.onmousemove,h,b.id],onmouseleave:[b._handlers.onmouseleave,h,b.id],class:b.config.color?"":"heat-neutral"},[])),"");0<=u&&!b.config.positiveColor?p="heat-positive":u<0&&!b.config.negativeColor&&(p="heat-negative"),0!==g&&o.push((0,O.sv)("rect",{x:_,y:v,fill:0<=u?b.config.positiveColor:b.config.negativeColor,"fill-opacity":isFinite(g)?g:0,width:b._cellSize,height:b._cellSize,onclick:[b._handlers.onclick,u,h],onmousemove:[b._handlers.onmousemove,h,b.id],onmouseleave:[b._handlers.onmouseleave,h,b.id],class:p},[])),s=_+b._cellSize,1===f.getDate()&&(v=null==w?void 0:w[d],g=10+a*(b._cellSize+2),u=b._cellSize-2+i*(x.length*b._cellSize+b._headerHeight)+x.length*(b._cellSize+2)+4.5,h=(0,O.sv)("text",{x:g,y:8+u+12.5,class:"start-text"},[v]),p=(0,O.sv)("rect",{x:g,y:u,height:8,width:1}),r.push((0,O.sv)("g",{class:"heat-month-text"},[p,h])))}var t=x.map(function(t,e){return(0,O.sv)("text",{x:20,y:.5+(e+1)*(b._cellSize+2)+b._cellSize/2+i*(x.length*b._cellSize+b._headerHeight),class:"end-text heat-day-text"},[(0,O.sv)("tspan",{dy:"0.5ex"},[t])])}),m=(0,O.sv)("text",{x:10+b._cellSize+2,y:b._cellSize-4+i*(x.length*b._cellSize+b._headerHeight),class:"start-text heat-year-text"},[e]);C.push((0,O.sv)("g",{id:"".concat(e,"_year")},[m,r,t,o])),S=s<S?S:s}),i.push((0,O.sv)("defs",[])),i=i.concat(C),e/E<1?e/E:1),t=(t-S*e)/2;return(0,O.sv)("g",s(s({id:"seria"+this.config.id},(o=this.config,{"aria-label":"chart ".concat(o.text||"")})),{tabindex:0,transform:"translate(".concat(0<t?t:0,", 26) scale(").concat(e,")")}),i)},c.prototype._setDefaults=function(t){this.config=s(s({},{tooltip:!0,paddings:5,weekStart:"sunday",days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),t),this._headerHeight=70,this._cellSize=16,this._valueLocator=(0,l.locator)(t.value),this._dateLocator=(0,l.locator)(t.date)},c.prototype._defaultLocator=function(t){return[this._valueLocator(t),(0,D.getFormattedDate)("%d/%m/%y",this._dateLocator(t))]},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(0);function n(){this._series=[]}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()}),(0,l.sv)("g",s.concat(a))},e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0;var g=i(43),s=i(3),_=i(63),n=i(17);function o(t){this._chart=t,this._initEvents()}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=(0,_.getShadeHTMLHelper)("empty"!==u.config.pointType&&u.config.pointType?u.config.pointType:"simpleRect",f),s+='<div class="line-point" _ref="dhx_tooltip_'.concat(u.config.id,'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">').concat(f(4,4,h[0][2]),'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_').concat(u.config.id,'_text">').concat(p.text,"</span>\n\t\t\t</div>"))}s&&(this._tooltip||this._createTooltip(),r=document.body.offsetHeight,e=document.body.offsetWidth,this._tooltip.innerHTML=s,this._tooltip.classList.add("dhx_chart_tooltip__visible"),t=l/t.length,i=this._prevLine.getBoundingClientRect(),o=this._tooltip.offsetHeight,n=this._tooltip.offsetWidth,r<(t=t-o/2+i.top+window.scrollY)+o&&(t-=t+o-r),e<(o=i.left+10)+n&&(o=i.left-n-10),(r=(0,g.getZIndex)(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=o+"px",this._tooltip.style.top=t+"px")},o.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var i=document.body.offsetHeight,n=document.body.offsetWidth,t=(this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible"),this._tooltip.offsetHeight),o=this._tooltip.offsetWidth,r=e.pageY+10,s=e.pageX+10,i=(i<r+t&&(r=e.pageY-t),n<s+o&&(s=e.pageX-o-10),(0,g.getZIndex)(this._chart.getRootNode()));i&&(this._tooltip.style.zIndex=i.toString()),this._tooltip.style.left=s+"px",this._tooltip.style.top=r+"px"},o.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e,i,n,o=this._chart.getSeries(t[4]);o&&(o=o.getTooltipText(t[3]))&&(n=this._chart._layers.getSizes(),e=this._chart.getRootNode().getBoundingClientRect(),this._tooltip.innerHTML=o,this._tooltip.classList.add("dhx_chart_tooltip__visible"),o=document.body.offsetHeight,i=this._tooltip.offsetHeight,o<(o=o<(o=t[2]+e.top+i/2+n.top-("radar"===this._chart.config.type?10:15))+i?t[2]+e.top-i/2+n.top-("radar"===this._chart.config.type?10:15):o)+i&&this._tooltip.classList.remove("dhx_chart_tooltip__visible"),(n=(0,g.getZIndex)(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=n.toString()),this._tooltip.style.left=e.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||(e=t.getClosest(n,o),s[0]>e[0]&&(s[0]=e[0],s[1]=e[1],s[2]=e[2],s[3]=e[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),n=n&&n.refs&&n.refs[(0,s.calcPointRef)(t,e)].el;null!=n&&n.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&&"calendarHeatMap"!==n.config.type&&null!=(i=i&&i.refs&&i.refs[(0,s.calcPointRef)(t,e)].el)&&i.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")})},e.Tooltip=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)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.Exporter=void 0,i(2));function n(t,e){this._name=t,this._view=e,this._version="8.2.5"}n.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},n.prototype.png=function(t){this._rawExport(t,"png",this._view)},n.prototype._rawExport=function(t,e,i){(t=void 0===t?{}:t).url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e&&(e=t.pdf||{},t.pdf=r(r({},e),{printBackground:!1}));var e="",n=i.config.exportStyles,n=(!0===(n="boolean"!=typeof t.exportStyles&&!Array.isArray(t.exportStyles)?n:t.exportStyles)?e="".concat((0,s.getPageLinksCss)(),"<style>").concat((0,s.getPageInlineCss)(),"</style>"):null!=n&&n.length&&(e="".concat((0,s.getPageLinksCss)(n))),document.createElement("div")),i=(n.setAttribute("style","display: none;"),i.getRootView().node.el.cloneNode(!0)),i=(i.setAttribute("data-dhx-theme",t.theme||"light"),n.appendChild(i),"\n\t\t\t".concat(e,"\n\t\t\t").concat(n.innerHTML,"\n\t\t")),o=document.createElement("form");o.setAttribute("method","POST"),o.setAttribute("action",t.url),o.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',o.childNodes[0].value=i,o.childNodes[1].value=JSON.stringify(t),document.body.appendChild(o),o.submit(),null!=(e=n.parentNode)&&e.removeChild(n),setTimeout(function(){var t;null!=(t=o.parentNode)&&t.removeChild(o)},100)},e.Exporter=n}],n={},o.m=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){var e;return(n[t]||(e=n[t]={i:t,l:!1,exports:{}},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 O=1,l=2,k=3,T=4,M=5,t=typeof window!=="undefined",e,r=(t?window:{}).requestAnimationFrame,c={};function n(){}var p=Array.isArray;function d(t){return t!=null}function s(t){return t!=null&&t.constructor===Object}function N(t,e,i,n){t.splice.apply(t,[i,n].concat(e))}function V(t){var e=typeof t;return e==="string"||e==="number"}function a(t){return typeof t==="function"}function W(t){return typeof t==="object"&&a(t.then)}function u(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 z(t,e,i){var n;while(n=e.shift())if(e.length===0)t[n]=i;else t[n]=t=t[n]||{}}function B(t,e){var i=[];for(var n=e;n<t.length;n++)i.push(t[n]);return i}function G(t,e){for(var i in t)if(t[i]!==e[i])return false;return true}function Y(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 X(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 q(t,e,i){return function(){return t.apply(i,e)}}function U(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 K(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 J(t){return t[0]==="o"&&t[1]==="n"}function Z(t){return t[0]==="_"}function Q(t){return t==="style"}function h(t){t&&t.el&&t.el.offsetHeight}function P(t){return t.node!=null&&t.node.el!=null}function tt(t,e){switch(e){case"value":case"checked":case"selected":return true}return false}function f(t){t=t||c;while(t.vm==null&&t.parent)t=t.parent;return t.vm}function g(){}var et=g.prototype={constructor:g,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 it(t){var e=new g;e.type=l;e.body=t;return e}var nt={},ot=/\[(\w+)(?:=(\w+))?\]/g;function rt(t){{var e=nt[t];if(e==null){var i,n,o,r;nt[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=ot.exec(t)){if(e.attrs==null)e.attrs={};e.attrs[r[1]]=r[2]||""}}return e}}var _=1,H=2,L=4,j=8;function st(t,e,i,n){var o=new g;o.type=O;if(d(n))o.flags=n;o.attrs=e;var r=rt(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 at(t,e,i){var n=["refs"].concat(e.split("."));z(t,n,i)}function lt(t){while(t=t.parent)t.flags|=_}function R(t,e,i,n){if(t.type===M||t.type===T)return;t.parent=e;t.idx=i;t.vm=n;if(t.ref!=null)at(f(t),t.ref,t);var o=t.hooks,r=n&&n.hooks;if(o&&(o.willRemove||o.didRemove)||r&&(r.willUnmount||r.didUnmount))lt(t);if(p(t.body))ct(t);else;}function ct(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))N(e,n,i--,1);else{if(n.type==null)e[i]=n=it(""+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 R(n,t,i,null);else R(n,t,i,null)}}}var dt={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 ut(t,e){return!isNaN(e)&&!dt[t]?e+"px":e}function ht(t,e){var i=(t.attrs||c).style;var n=e?(e.attrs||c).style:null;if(i==null||V(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]=ut(o,r)}if(n)for(var s in n)if(i[s]==null)t.el.style[s]=""}}var v=[];function m(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?h(i.parent)&&r(i,n):v.push([r,i,n]);else return r(i,n)}}function y(t){if(v.length){h(t.node);var e;while(e=v.shift())e[0](e[1],e[2])}}var i=t?document:null;function ft(t){while(t._node==null)t=t.parentNode;return t._node}function pt(t,e){if(e!=null)return i.createElementNS(e,t);return i.createElement(t)}function gt(t){return i.createTextNode(t)}function _t(t){return i.createComment(t)}function x(t){return t.nextSibling}function vt(t){return t.previousSibling}function mt(t){var e=t.vm;var i=e!=null&&m(e.hooks,"willUnmount",e,e.data);var n=m(t.hooks,"willRemove",t);if((t.flags&_)===_&&p(t.body))for(var o=0;o<t.body.length;o++)mt(t.body[o]);return i||n}function b(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++)b(e,n.body[r].el);else C(n);delete e._node;t.removeChild(e);m(n.hooks,"didRemove",n,null,i);if(o!=null){m(o.hooks,"didUnmount",o,o.data,i);o.node=null}}function w(t,e){var i=e._node;if(i._dead)return;var n=mt(i);if(n!=null&&W(n)){i._dead=true;n.then(q(b,[t,e,true]))}else b(t,e)}function C(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))C(n)}}function I(t){var e=t.el;if((t.flags&_)===0){p(t.body)&&C(t);e.textContent=null}else{var i=e.firstChild;do{var n=x(i);w(e,i)}while(i=n)}}function S(t,e,i){var n=e._node,o=e.parentNode!=null;var r=e===i||!o?n.vm:null;if(r!=null)m(r.hooks,"willMount",r,r.data);m(n.hooks,o?"willReinsert":"willInsert",n);t.insertBefore(e,i);m(n.hooks,o?"didReinsert":"didInsert",n);if(r!=null)m(r.hooks,"didMount",r,r.data)}function yt(t,e,i){S(t,e,i?x(i):null)}var E={};function xt(t){u(E,t)}function bt(t){var e=this,i=e;var n=B(arguments,1).concat(i,i.data);do{var o=e.onemit;var r=o?o[t]:null;if(r){r.apply(e,n);break}}while(e=e.parent());if(E[t])E[t].apply(e,n)}var D=n;function wt(t){D=t.onevent||D;if(t.onemit)xt(t.onemit)}function Ct(t,e,i){t[e]=i}function St(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);D.call(null,i,n,o,o.data,e);if(r===false){i.preventDefault();i.stopPropagation()}}function Et(t){var e=ft(t.target);var i=f(e);var n=t.currentTarget._node.attrs["on"+t.type],o,r;if(p(n)){o=n[0];r=n.slice(1);St(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=[]}St(o,r,t,e,i)}}function Dt(t,e,i,n){if(i===n)return;var o=t.el;if(i==null||a(i))Ct(o,e,i);else if(n==null)Ct(o,e,Et)}function Ot(t,e,i){if(e[0]==="."){e=e.substr(1);i=true}if(i)t.el[e]="";else t.el.removeAttribute(e)}function kt(t,e,i,n,o){var r=t.el;if(i==null)!o&&Ot(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 Tt(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=tt(t.tag,r);var l=a?t.el[r]:o[r];if(s===l);else if(Q(r))ht(t,e);else if(Z(r));else if(J(r))Dt(t,r,s,l);else kt(t,r,s,a,i)}for(var r in o)!(r in n)&&!Z(r)&&Ot(t,r,tt(t.tag,r)||J(r))}}function Mt(t,e,i,n){if(t.type===T){e=t.data;i=t.key;n=t.opts;t=t.view}return new o(t,e,i,n)}function Pt(t){for(var e=0;e<t.body.length;e++){var i=t.body[e];var n=i.type;if(n<=k)S(t.el,A(i));else if(n===T){var o=Mt(i.view,i.data,i.key,i.opts)._redraw(t,e,false);n=o.node.type;S(t.el,A(o.node))}else if(n===M){var o=i.vm;o._redraw(t,e);n=o.node.type;S(t.el,o.node.el)}}}function A(t,e){if(t.el==null)if(t.type===O){t.el=e||pt(t.tag,t.ns);if(t.attrs!=null)Tt(t,c,true);if((t.flags&j)===j)t.body.body(t);if(p(t.body))Pt(t);else if(t.body!=null&&t.body!=="")t.el.textContent=t.body}else if(t.type===l)t.el=e||gt(t.body);else if(t.type===k)t.el=e||_t(t.body);t.el._node=t;return t.el}function Ht(t,e){return e[t.idx+1]}function Lt(t,e){return e[t.idx-1]}function jt(t){return t.parent}window.lisMove=At;var Rt=1,F=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(jt(s)!==t){a=l(n[u]);s.vm!=null?s.vm.unmount(true):w(e,n[u]);n[u]=a;return}}if(n[h]==o)return F;else if(n[h].el==null){d(e,A(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 Rt}}}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=K(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 Ft=It(x,Ht,S,"lftSib","lftNode","rgtSib","rgtNode",yt),$t=It(vt,Lt,yt,"rgtSib","rgtNode","lftSib","lftNode",S);function Nt(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=Ft(t,n,o,r,null,false);if(s===Rt)break;if(s===F)break t}while(1){var a=$t(t,n,o,r,r.lftNode,false);if(a===Rt)break;if(a===F)break t}Vt(t,n,o,r);break}}function Vt(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=U(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=Ft(t,e,i,n,null,true);if(d===F)break}}function Wt(t){return t.el._node.parent!==t.parent}function zt(t,e,i){return e[i]}function Bt(t,e,i){for(;i<e.length;i++){var n=e[i];if(n.vm!=null){if(t.type===T&&n.vm.view===t.view&&n.vm.key===t.key||t.type===M&&n.vm===t.vm)return n}else if(!Wt(n)&&t.tag===n.tag&&t.type===n.type&&t.key===n.key&&(t.flags&~_)===(n.flags&~_))return n}return null}function Gt(t,e,i){return e[e._keys[t.key]]}function $(t,e){m(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)Tt(t,e,false);var r=p(n);var s=p(o);var a=(t.flags&j)===j;if(r){if(s||a)Yt(t,e);else if(o!==n)if(o!=null)i.textContent=o;else I(e)}else if(s){I(e);Pt(t)}else if(o!==n)if(i.firstChild)i.firstChild.nodeValue=o;else i.textContent=o;m(e.hooks,"didRecycle",e,t)}function Yt(t,e){var i=t.body,n=i.length,o=e.body,r=o.length,s=(t.flags&j)===j,a=(t.flags&H)===H,l=(t.flags&L)===L,c=!a&&t.type===O,d=true,u=l?Gt:a||s?zt:Bt;if(l){var h={};for(var f=0;f<o.length;f++)h[o[f].key]=f;o._keys=h}if(c&&n===0){I(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);R(g,t,f);g._diff=C!=null?C:i.diff(f);if(p!=null)$(g,p)}else;b[f]=g}else{var g=i[f];var S=g.type;if(S<=k){if(p=d&&u(g,o,y)){$(g,p);_=p.idx}}else if(S===T){if(p=d&&u(g,o,y)){_=p.idx;var E=p.vm._update(g.data,t,f)}else var E=Mt(g.view,g.data,g.key,g.opts)._redraw(t,f,false);S=E.node.type}else if(S===M){var D=P(g.vm);var E=g.vm._update(g.data,t,f,D);S=E.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&&Wt(o[y]))y++}}if(s)t.body=b;c&&Nt(t,e)}function o(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(a(r))o.render=r;else{o.render=r.render;o.config(r)}o._redrawAsync=X(function(t){return o.redraw(true)});o._updateAsync=X(function(t){return o.update(t,true)});o.init&&o.init.call(o,o,o.data,o.key,n)}var Xt=o.prototype={constructor:o,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:n,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=u(e.hooks||{},t.hooks);if(t.onemit)e.onemit=u(e.onemit||{},t.onemit)},parent:function(){return f(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){I({el:t,flags:0});i._redraw(null,null,false);if(t.nodeName.toLowerCase()!==i.node.tag){A(i.node);S(t.parentNode,i.node.el,t);t.parentNode.removeChild(t)}else S(t.parentNode,A(i.node,t),t)}else{i._redraw(null,null);if(t)S(t,i.node.el)}if(t)y(i);return i}function Ut(t){var e=this;var i=e.node;var n=i.el.parentNode;w(n,i.el);if(!t)y(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)?Y:G;var d=a===l||c(a,l);if(d)return Kt(o,s,t,e)}}r&&m(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){R(u,t,e,o);t.body[e]=u}else if(s&&s.parent){R(u,s.parent,s.idx,o);s.parent.body[s.idx]=u}else R(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=x(s.el);w(h,s.el);S(h,A(u),f);s.el=u.el;u.vm=o}else $(u,s);else A(u);r&&m(o.hooks,"didRedraw",o,o.data);if(n&&r)y(o);return o}function Zt(t,e,i,n){var o=this;if(t!=null)if(o.data!==t){m(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 st(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 g;e.type=k;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 g;e.type=O;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)?Y(i,n):G(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;R(n,t,i)}t.body=e}};return a}ne.prototype={constructor:ne,type:T,view:null,data:null,key:null,opts:null},re.prototype={constructor:re,type:M,vm:null};var ce={config:wt,ViewModel:o,VNode:g,createView:Mt,defineElement:Qt,defineSvgElement:ee,defineText:it,defineComment:ie,defineView:oe,injectView:se,injectElement:ae,lazyList:le,FIXED_BODY:H,DEEP_REMOVE:_,KEYED_LIST:L,LAZY_LIST:j};function de(t,e){ue(this,t,e)}function ue(t,e,i){if(e.type!=null){if(t.vm!=null)return;R(e,t.parent,t.idx,null);t.parent.body[t.idx]=e;$(e,t);i&&h(e);y(f(e))}else{var n=Object.create(t);n.attrs=u({},t.attrs);var o=u(t.attrs,e);if(t._class!=null){var r=o.class;o.class=r!=null&&r!==""?t._class+" "+r:t._class}Tt(t,n);i&&h(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&&(V(e[r])||p(e[r])||o&&(o._flags&j)===j))n=e[r];else n=B(e,r)}return st(t,o,n)}function pe(){var t=fe.apply(null,arguments);t.ns=te;return t}return et.patch=de,Xt.emit=bt,Xt.onemit=null,Xt.body=function(){return he(this.node,[])},ce.defineElementSpread=fe,ce.defineSvgElementSpread=pe,ce}()},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=void 0,i(0)),a=i(5),l=i(8),d=i(6),h=i(128),u=i(130),f=i(17),p=i(132),g=i(136),_=i(147),v=i(3),m=i(148),y=i(1),x=i(149),i=(o=l.View,r(b,o),b.prototype.getSeries=function(t){return this._series[t]},b.prototype.eachSeries=function(t){var e,i=[];for(e in this._series)i.push(t.call(this,this._series[e]));return i},b.prototype.destructor=function(){this._tooltip.destructor(),this.events.clear(),this.unmount()},b.prototype.setConfig=function(r){var s,a=this;if("calendarHeatMap"===r.type)throw new TypeError("The calendarHeatMap chart type is a pro functionality");if(this.config=r,this._layers.clear(),this._series={},this._scales={},r.scales)for(var t in r.scales){var e=c({},r.scales[t]);void 0!==r.scales[t].min&&(s=r.scales[t].min),e.type=e.type||this._detectScaleType(e,t),r.scales.radial&&"radial"!==t&&(e.hidden=!0),this._setScale(e,t)}var i,l=new _.default;this._layers.add(l),null!=(i=r.series)&&i.forEach(function(t,e){void 0!==t.baseLine&&t.baseLine<s&&(t.baseLine=void 0);var i,n=c({},t);switch(n.type=n.type||r.type,n.type){case"bar":case"xbar":case"area":case"splineArea":n.color||(n.color=n.fill||(0,v.getDefaultColor)(e)),n.fill||(n.fill=n.color||(0,v.getDefaultColor)(e));break;case"treeMap":n.legendType=(null==(i=r.legend)?void 0:i.type)||"groupName",null!=(i=null==(i=r.legend)?void 0:i.treeSeries)&&i.map(function(t,e){var i;t.active=null==(i=t.active)||i,t.id=null!=(i=t.id)?i:(0,y.uid)(),t.color||(t.color=(0,v.getDefaultColor)(e,"range"===n.legendType))}),n.treeSeries=null==(i=r.legend)?void 0:i.treeSeries;break;case"scatter":n.pointColor||(n.pointColor=n.color||(0,v.getDefaultColor)(e))}var t=g.default[n.type],o=((n.barWidth||a.config.barWidth)&&(n.barWidth=n.barWidth||a.config.barWidth),new t(a.data,n,a.events)),t=(0,v.getScales)(r.scales);(1<t.length&&"radial"!==t[0]||"radial"===t[0]?t:["bottom","left"]).forEach(function(t){var e=a._scales[t];e&&(o.addScale(t,e),n.stacked?e.add(l):e.add(o))}),a._series[o.id]=o,(n.stacked?l:a._layers).add(o)}),r.legend&&((i=c({},r.legend)).series&&(i.$seriesInfo=i.series.map(function(t){return a._series[t]})),i=new u.Legend(this.data,i,this.events),this._layers.add(i)),this.paint()},b.prototype._setScale=function(t,e){t.type&&("radial"!==(t=new p.default[t.type](this.data,t,e)).config.type&&this._layers.add(t.scaleGrid()),this._layers.add(t),this._scales[e]=t)},b.prototype._detectScaleType=function(t,e){return"radial"===e?e:t.text?"text":"numeric"},b.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()}),this.events.on(d.DataEvents.filter,function(){return i.paint()})},b);function b(t,i){void 0===i&&(i={});var u=this,e=((u=o.call(this,null,i)||this)._width=0,u._height=0,u._left=0,u._top=0,{}),n=(i.maxPoints&&(e.approximate={value:null==(n=i.series)?void 0:n.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,e=e.right,r=t.pageX,t=t.pageY,s=u.getRootView().node.el.getBoundingClientRect(),s=(u._left=s.left+window.pageXOffset,u._top=s.top+window.pageYOffset,r-i-u._left),r=t-n-u._top;0<=s&&s<=u._width-e-i&&0<=r&&r<=u._height-o-n?u.events.fire(f.ChartEvents.chartMouseMove,[s,r,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),(0,s.create)({render:function(){var t,e;return u.data.getLength()?(t=function(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=(n=t.type)||i&&i.length&&i[0]&&i[0].type||"",d="".concat(n||""," 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=(d+=" X scale ".concat(r(i.config),": ").concat(t," axis from ").concat(l(i.config.value,e[0])," to ").concat(l(i.config.value,e[e.length-1]),"."))+" ".concat(o(i)," scale: axis from ").concat(s(n)," to ").concat(a(n),".")):d+=" ".concat(o(i)," scale ").concat(r(i.config),": ").concat(t," axis from ").concat(s(n)," to ").concat(a(n),".")}),i&&i.length&&(d+=" Series:",i.forEach(function(t,e){d=(d+=" ".concat("pie"===n||"pie3D"===n||"donut"===n?t.text:t.value))+(e===i.length-1?".":",")})),d},e=[(0,s.resizer)(function(t,e){u._width=t,u._height=e||400;t=u.getRootView();t&&t.node&&t.node.el&&(e=t.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()})],u._width&&u._height&&e.push(u._layers.toVDOM(u._width,u._height)),(0,s.el)(".dhx_widget.dhx_chart",c(c({class:i.css||"",onmousemove:u._globalHTMLHandlers.onmousemove,onmouseleave:u._globalHTMLHandlers.onmouseleave},{"aria-label":t(i)}),{tabIndex:0}),e)):(0,s.el)("div")},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,n),u.export=new x.Exporter("chart",u),u}e.Chart=i},function(t,e,i){"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)},c=(Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=void 0,i(1)),d=i(12),u=i(11),h=i(1);function t(t,e){this._parent=t,this._changes=e}t.prototype.load=function(t,e){var i=this;if(!t.config||this._parent.events.fire(u.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then(function(t){return t?i.parse(t,e):[]}).catch(function(t){i._parent.events.fire(u.DataEvents.loadError,[t])})},t.prototype.parse=function(t,e){var n=this;if("json"!==(e=void 0===e?u.DataDriver.json:e)||(0,d.hasJsonOrArrayStructure)(t)||this._parent.events.fire(u.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=(0,d.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,e=n._parent.getId(o+e);(0,c.isId)(e)?(i=n._parent.getItem(e))&&i.$empty&&(i=t.id||i.id,(0,h.isDefined)(t.id)&&n._parent.changeId(e,i,!0),n._parent.update(i,l(l({},t),{$empty:void 0}),!0)):(0,d.dhxWarning)("item not found")}),this._parent.events.fire(u.DataEvents.afterLazyLoad,[o,t.length]),this._parent.events.fire(u.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},t.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?(0,d.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),(0,d.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})},t.prototype.updateChanges=function(t){this._changes=t},t.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,(0,d.dhxError)(t)}),e.saving=!0,this._saving=!0,this._addToChain(e.promise),e.promise},t.prototype._addToChain=function(t){this._parent.saveData&&this._saving?this._parent.saveData=this._parent.saveData.then(function(){return t}):this._parent.saveData=t},t.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},t.prototype._removeFromOrder=function(e){this._changes.order=this._changes.order.filter(function(t){return!(0,d.isEqualObj)(t,e)})},t.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.Loader=t}.call(this,i(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XMLDriver=void 0;var n=i(82);function o(){}o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.toJsonObject=function(t){var e;return 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="string"==typeof t?this._fromString(t):e)},o.prototype.serialize=function(t){return(0,n.jsonToXML)(t)},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){return(t="string"==typeof t?this._fromString(t):t)?(t=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes)&&t.length?this._getRows(t):null:[]},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)e.value=e.value||this._toType(t.textContent);else{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},e.XMLDriver=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.jsonToXML=void 0;var r=4;function s(t){return" ".repeat(t)}e.jsonToXML=function(t,e){for(var i='<?xml version="1.0" encoding="iso-8859-1"?>\n<'.concat(e=void 0===e?"root":e,">"),n=0;n<t.length;n++)i+="\n"+function e(t,i){var n,o=s(i=void 0===i?r:i)+"<item>\n";for(n in t)Array.isArray(t[n])?o=(o=(o+=s(i+r)+"<".concat(n,">\n"))+(t[n].map(function(t){return e(t,i+2*r)}).join("\n")+"\n"))+(s(i+r)+"</".concat(n,">\n")):o+=s(i+r)+"<".concat(n,">").concat(t[n],"</").concat(n,">\n");return o+=s(i)+"</item>"}(t[n]);return i+"\n</".concat(e,">")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sort=void 0;var o=i(12);function n(){}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]))?t:"",e=null!=(e=n._checkVal(i.as,e[i.by]))?e:"";return(0,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 i=0===(i=n?n.rule.call(r,t,e)*(s[n.dir]||s.asc):i)&&o?o.rule.call(r,t,e)*(s[o.dir]||s.asc):i})},e.Sort=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},d=(Object.defineProperty(e,"__esModule",{value:!0}),e.TreeCollection=void 0,i(1)),s=i(37),a=i(15),u=i(12),h=i(11);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))}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._reapplyFilters(!1),t},f.prototype.getRoot=function(){return this._root},f.prototype.getParent=function(t,e){return void 0===e&&(e=!1),this._pull[t]?(t=this._pull[t].parent,e?this._pull[t]:t):null},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){var e;if((0,d.isId)(t)){if(this._childs[t])for(var i=0,n=r([],this._childs[t],!0);i<n.length;i++){var o=n[i];this.remove(o.id)}}else{c.prototype.removeAll.call(this);t=this._root;this._initChilds=null,this._childs=((e={})[t]=[],e)}},f.prototype.getIndex=function(e){var t=this.getParent(e);return t&&this._childs[t]?(0,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._reapplyFilters(!1);this.events.fire(h.DataEvents.change,[void 0,"sort",t])},f.prototype.filter=function(t,e,i){if(!((t=null!=e&&e.$restore?this._normalizeFilters(t||this._filters):t)&&null!=e&&e.add||(this.restoreOrder(),null!=e&&e.$restore)))for(var n in this._filters){var o=this._filters[n],r=o.rule,o=o.config;null!=o&&o.permanent?this._applyFilter(r,o):delete this._filters[n]}var s;if(!t||null!=e&&e.$restore)for(var n in t)this._applyFilter(t[n],this._filters[n].config);else s=(null==e?void 0:e.id)||(0,d.uid)(),(e=e||{}).type=e.type||h.TreeFilterType.all,this._filters[s]={rule:t,config:e},this._applyFilter(t,e);return i||(e=this._getPureFilters(this._filters),this.events.fire(h.DataEvents.filter,[(0,d.isEmptyObj)(e)?null:e])),s},f.prototype.restoreOrder=function(){this._initChilds&&(this._childs=this._initChilds,this._initChilds=null)},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 t,n=this;void 0===i&&(i=h.DataDriver.json),this.events.fire(h.DataEvents.beforeItemLoad,[e])&&(t=(t=this.config.autoload.toString())+(t.includes("?")?"&id=":"?id=").concat(e),new a.DataProxy(t).load().then(function(t){t=(i=(0,u.toDataDriver)(i)).toJsonArray(t),n._parse_data(t,e),n.events.fire(h.DataEvents.change),n.events.fire(h.DataEvents.afterItemLoad,[e])}).catch(function(t){n.events.fire(h.DataEvents.loadError,[t])}))},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){var i;return e!==t&&(i=!0,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=(0,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))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=null!=o?o:this._root,this._childs[o]?(t=o===this._root?c.prototype.getRawData.call(this,t,e,this._childs[o]):this._childs[o],2===n?this.flatten(t):t):[]},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),this._setParent(t,i),0<n&&-1!==e&&(e+=1);i=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 i},f.prototype._setParent=function(t,e){t.parent=t.parent?t.parent.toString():e;e=this._pull[t.parent];e&&!e.items&&(e.items=[])},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=(0,u.copyWithoutInner)(this.getItem(t),{items:!0});if(i.exists(t)&&(o.id=(0,d.uid)()),(0,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){return void 0===i&&(i=this),void 0===n&&(n=this._root),this.exists(t)?(o&&(e=-1===e?-1:e+o),i!==this?(0,u.isTreeCollection)(i)?(o=this.copy(t,e,i,n),this.remove(t),o):(i.add((0,u.copyWithoutInner)(this.getItem(t)),e),void this.remove(t)):this.canCopy(t,n)?(o=this.getParent(t),i=this.getIndex(t),(i=this._childs[o].splice(i,1)[0]).parent=n,this._childs[o].length||delete this._childs[o],this.haveItems(n)||(this._childs[n]=[]),-1===e?e=this._childs[n].push(i):this._childs[n].splice(e,0,i),this.events.fire(h.DataEvents.change,[t,"update",this.getItem(t)]),t):null):null},f.prototype._reset=function(t){var e;if((0,d.isId)(t))for(var i=0,n=r([],this._childs[t],!0);i<n.length;i++){var o=n[i];this.remove(o.id)}else{c.prototype._reset.call(this);t=this._root;this._initChilds=null,this._childs=((e={})[t]=[],e)}},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){void 0===e&&(e=this._root);for(var i,n=this._order.length,o=0,r=t;o<r.length;o++){var s=r[o];(s=(s=this.config.init?this.config.init(s):s)&&"object"!=typeof s?{value:s}:s).id=null!=(i=s.id)?i:(0,d.uid)(),s.parent=void 0===s.parent||null===s.parent||s.parent&&s.$items?e:s.parent,this._pull[s.id]&&(0,u.dhxError)("Item ".concat(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._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)}};"function"==typeof o?(a=s.filter(function(t){return l(t)&&o(t)})).length?n[t]=a:t===this._root&&(n[t]=[]):(a=s.filter(function(t){var e,i,n=!0;for(i in o)if(!(n=o[i].by&&""!==o[i].match?o[i].compare?o[i].compare(t[o[i].by],o[i].match,t):-1!==(null==(e=t[o[i].by])?void 0:e.toString().toLocaleLowerCase().indexOf(o[i].match.toString().toLowerCase())):n))break;return l(t)&&n})).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.prototype._applyFilter=function(t,e){var n=this;if(t&&("function"==typeof t||!(0,d.isEmptyObj)(t))){this._initOrder||(this._initOrder=this._order),this._initChilds||(this._initChilds=this._childs);var i,o={};if("function"!=typeof t)if(i={},(0,d.isDefined)(t.by))i[t.by]=t;else for(var r in t)i[r]=t[r];else i=t;this._recursiveFilter(i,e,this._root,0,o),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}},f.prototype._normalizeFilters=function(t){var e,i={};for(e in t)i[e]=t[e].rule;return i};var c,i=f;function f(t,e){var i,e=c.call(this,t,e)||this,t=(e._childs={},e._root=t&&t.rootId||"_ROOT_"+(0,d.uid)());return e._childs=((i={})[t]=[],i),e._initChilds=null,e}e.TreeCollection=i},function(t,e,i){"use strict";var m=this&&this.__assign||function(){return(m=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)},y=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},f=(Object.defineProperty(e,"__esModule",{value:!0}),e.dragManager=void 0,i(2)),x=i(41),p=i(125),g=i(11),b=i(12),w=i(1);n.prototype.setItem=function(t,e){p.collectionStore.setItem(t,e)},n.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=(0,f.locateNode)(t,"data-dhx-id"))&&n.getAttribute("data-dhx-id"),r=(0,f.locate)(t,"data-dhx-widget-id"),Array.isArray(e)&&e.includes(o)?(this._transferData.source=y([],e,!0),this._itemsForGhost=i):(this._transferData.source=[o],this._itemsForGhost=null),o)&&r&&(i=(e=(0,f.getBox)(n)).left,e=e.top,s=(t.targetTouches?t.targetTouches[0]:t).pageX,t=(t.targetTouches?t.targetTouches[0]:t).pageY,this._transferData.initXOffset=s-i,this._transferData.initYOffset=t-e,this._transferData.x=s,this._transferData.y=t,this._transferData.componentId=r,this._transferData.start=o,this._transferData.item=n)},n.prototype.isDrag=function(){return this._isDrag},n.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,i={start:i,source:n,target:o},n=p.collectionStore.getItem(e);n&&o&&n.events.fire(g.DragEvents.cancelDrop,[i,t]),this._transferData.dropComponentId=null,this._transferData.target=null},n.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")},n.prototype._removeGhost=function(){document.body.removeChild(this._transferData.ghost)},n.prototype._onDrop=function(t){var e,i,n,o,r;this._canMove&&(o=(n=this._transferData).start,i=n.source,e=n.target,r=n.dropComponentId,i={start:o,source:i,target:e,dropPosition:n.dropPosition},r=(n=p.collectionStore.getItem(r))&&n.config,n)&&"source"!==r.dragMode&&n.events.fire(g.DragEvents.beforeDrop,[i,t])&&(r={id:o,component:this._transferData.component,newId:null},this._move(r,o={id:e,component:n}),r.newId&&r.component!==o.component&&(i.start=r.newId),o.component.events.fire(g.DragEvents.afterDrop,[i,t])),this._endDrop(t)},n.prototype._onDragStart=function(t,e,i){var n,o,r,s,a,l,c,e=p.collectionStore.getItem(e),d=e.config,u=this._transferData,u={start:u.start,source:u.source,target:u.target};return"target"!==d.dragMode&&!e._pregroupData&&(n=this._transferData.item,o=this._itemsForGhost,void 0===(r="row"===d.dragItem||"column"===d.dragItem||"both"===d.dragItem)&&(r=!1),s=n.getBoundingClientRect(),a=document.createElement("div"),l=n.cloneNode(!0),c=window.getComputedStyle(n.parentElement).fontSize,l.style.width=s.width+"px",l.style.height=s.height+"px",l.style.maxHeight=s.height+"px",l.style.opacity="0.8",l.style.fontSize=c,r&&o&&o.length||a.appendChild(l),o&&o.length&&o.forEach(function(t,e){t=t.cloneNode(!0);t.style.width=s.width+"px",t.style.height=s.height+"px",t.style.maxHeight=s.height+"px",t.style.top=12*(e+1)-s.height-s.height*e+"px",t.style.left=12*(e+1)+"px",t.style.opacity="0.6",t.style.zIndex="".concat(-e-1),r||(t.style.fontSize=c,t.style.overflow="hidden"),a.appendChild(t)}),a.className="dhx_drag-ghost",n=a,e.events.fire(g.DragEvents.beforeDrag,[u,i,n]))&&(0,w.isId)(t)?(e.events.fire(g.DragEvents.dragStart,[u,i]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.component=e,this._transferData.dragConfig=d,n):null},n.prototype._onDrag=function(t){var e=(t.targetTouches?t.targetTouches[0]:t).clientX,i=(t.targetTouches?t.targetTouches[0]:t).clientY,e=document.elementFromPoint(e,i),i=(0,f.locate)(e,"data-dhx-widget-id");if(i){var n=p.collectionStore.getItem(i),o=!!(0,f.locateNodeByClassName)(e,"dhx_grid-header")||!!(0,f.locateNodeByClassName)(e,"dhx_grid-footer"),r=n&&n.config.columns?n.config:void 0,r=r&&("both"===r.dragItem||"column"===r.dragItem);if(o&&!r)this._canMove&&this.cancelCanDrop(t);else{o=(0,f.locate)(e,"data-dhx-id"),r=(0,f.locate)(e,"data-dhx-root-id");if(o||r){var e=this._transferData,s=e.dropComponentId,a=e.start,l=e.source,c=e.target,d=e.componentId,e=e.dropPosition;if("complex"===n.config.dropBehaviour){h=(u=t).clientY;var u=(u=(0,f.locateNode)(u))?(u=u.childNodes[0])?(h-(h=u.getBoundingClientRect()).top)/h.height:void 0:null;this._transferData.dropPosition=u<=.25?"top":.75<=u?"bottom":"in"}else if((c===o||!o&&c===r)&&s===i)return;var h={id:a,component:this._transferData.component};"source"!==n.config.dragMode&&(h.component.events.fire(g.DragEvents.dragOut,[{start:a,source:l,target:c},t]),i!==d||!(0,b.isTreeCollection)(h.component.data)||(0,b.isTreeCollection)(h.component.data)&&h.component.data.canCopy(h.id,o)?(this.cancelCanDrop(t),this._transferData.target=o||r,this._transferData.dropComponentId=i,h.component.events.fire(g.DragEvents.dragIn,[{start:a,source:l,target:c,dropPosition:e},t])&&this._canDrop(t)):this.cancelCanDrop(t))}else this.cancelCanDrop(t),this._transferData.dropComponentId=i,this._transferData.target=null,this._canDrop(t)}}else this._canMove&&this.cancelCanDrop(t)},n.prototype._move=function(i,e){var t,n,o,r,s,a=i.component,l=e.component,c=i.component.data,d=e.component.data,u=0,h=e.id,f=(0,b.isTreeCollection)(d)?e.component.config.dropBehaviour:void 0,p=i.component.config.columns?i.component.config:void 0,p=p&&("both"===p.dragItem||"column"===p.dragItem)&&p.columns.map(function(t){return t.id}).filter(function(t){return t===i.id||t===e.id}).length;if(p&&i.component===e.component)return i.id===e.id||(g=(t=a.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id}),-1===(n=t.findIndex(function(t){return t.id===e.id})))?void 0:(t.splice(n,0,t.splice(g,1)[0]),a.setColumns(t),void a.paint());if(p&&i.component instanceof x.ProGrid&&e.component instanceof x.ProGrid)g=(t=a.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id}),p=l.config.columns.map(function(t){return m({},t)}),s=l.data.getLength(),n=p.findIndex(function(t){return t.id===e.id}),o=[],r=i.id,a.data.forEach(function(t){var e;o.push(((e={id:t.id})[r]=t[i.id],e))}),s?a.data.forEach(function(t,e){t=l.data.getItem(t.id);t?l.data.update(t.id,m(m({},t),o[e])):l.data.add(o[e])}):l.data.parse(o),s=t.splice(g,1)[0],p.find(function(t){return t.id===r})||p.splice(n,0,s),l.setColumns(p),l.paint(),a.setColumns(t),a.paint();else{var g,_=e.id===l.config.rootParent;switch(f){case"child":break;case"sibling":h=d.getParent(h),u=d.getIndex(e.id)+1;break;case"complex":var v=this._transferData.dropPosition;_?(h=e.id,u=d.getLength()):"top"===v?(h=d.getParent(h),u=d.getIndex(e.id)):"bottom"===v&&(h=d.getParent(h),u=d.getIndex(e.id)+1);break;default:u=(0,w.isId)(e.id)?i.component===e.component&&d.getIndex(i.id)<d.getIndex(e.id)?d.getIndex(e.id)-1:(-1<d.getIndex(i.id)&&(i.newId=(0,w.uid)()),d.getIndex(e.id)):-1}this._transferData.dragConfig.dragCopy?this._transferData.source instanceof Array&&1<this._transferData.source.length?this._transferData.source.map(function(t){c.copy(t,u,d,h),-1<u&&u++}):c.copy(i.id,u,d,h):this._transferData.source instanceof Array&&1<this._transferData.source.length?c.move(this._transferData.source,u,d,h):l instanceof x.Grid&&!l.config.columns.length?(g=a.data.getItem(i.id),l.data.parse([m({},g)]),l.setColumns(y([],a.config.columns,!0)),l.paint(),a.data.remove(i.id),a.paint()):c.move(i.id,u,d,h,i.newId)}},n.prototype._endDrop=function(t){var e,i,n;this._toggleTextSelection(!1),this._transferData.component&&(e=(n=this._transferData).start,i=n.source,n=n.target,this._transferData.component.events.fire(g.DragEvents.afterDrag,[{start:e,source:i,target:n},t])),this.cancelCanDrop(t),this._canMove=!0,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null},n.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,e={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},i=p.collectionStore.getItem(this._transferData.dropComponentId);i&&this._transferData.target&&(i instanceof x.Grid&&(e.dragItem=this._transferData.item.classList.contains("dhx_grid-row")?"row":"column"),i.events.fire(g.DragEvents.canDrop,[e,t]))},n.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")};i=n;function n(){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;o=a._onDragStart(s,n,t);if(!o)return void a._endDrop(t);a._transferData.ghost=o,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)))}}var o=window.dhxHelpers=window.dhxHelpers||{};o.dragManager=o.dragManager||new i,e.dragManager=o.dragManager},function(t,e,i){"use strict";var m=this&&this.__assign||function(){return(m=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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},v=(Object.defineProperty(e,"__esModule",{value:!0}),e.Exporter=void 0,i(7)),l=i(6),y=i(1),s=i(13),x=i(2),b=i(0);function n(t,e,i){this._name=t,this._version=e,this._view=i}n.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},n.prototype.png=function(t){this._rawExport(t,"png",this._view)},n.prototype.xlsx=function(t){return this._export(t)},n.prototype.csv=function(t){t=m({asFile:!0,rowDelimiter:"\n",columnDelimiter:",",skipHeader:0},t=void 0===t?{}:t),e="getRoot"in this._view.data&&t.flat?this.getFlatCSV(t):this._getCSV(t);var e,i=t.name||"grid_export";return t.asFile&&(0,y.downloadFile)(e,"".concat(i,".csv"),"text/csv"),e},n.prototype._export=function(t){void 0===t&&(t={});for(var c=this._view.config.columns.filter(function(t){return!t.hidden}),d={},e=(0,v.transpose)(c.map(function(t){return t.header.map(function(t){return t.text||" "})})),u=[],h={default:{color:"#000000",background:"#FFFFFF",fontSize:14,bold:!1}},f=[],i=this._view.data.serialize().map(function(n,t){return d[n.id]=t,c.map(function(t,e){var i;return t.id,n[t.id]instanceof Date&&(i=t.format||"%M %d %Y","string"==typeof n[t.id]?n[t.id]=(0,s.getFormattedDate)(i,(0,s.stringToDate)(n[t.id],i)):"object"==typeof n[t.id]&&(n[t.id]=(0,s.getFormattedDate)(i,n[t.id]))),n[t.id]||e||!n.$groupName?(0,v.removeHTMLTags)(n[t.id]):"^ ".concat(n.$groupName)})}),p=[],g=this._view.content,_=this,n=0,o=c;n<o.length;n++)!function(t){t.footer&&(n=t.id,r=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&&(r=(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?(e=g[t.footer[0].content].calculate(e,r),p.push((null==e?void 0:e.toString())||" ")):p.push(t.footer[0].css||t.footer[0].text||" "));var n,o,e,i,r="number"===t.type||"percent"===t.type?"right":t.align;for(i in u.push({width:t.$width,align:r}),t.$cellCss){var s,a=t.$cellCss[i].trim(),l=a.split("").reduce(function(t,e){t=(t<<5)-t+e.charCodeAt(0);return Math.abs(t&t)},0).toString();!h[l]&&(s=document.body,a=(0,v.getStyleByClass)(a,s,"dhx_grid-row",h.default))&&(h[l]=a),h[l]&&f.push([d[i],c.indexOf(t),l])}}(o[n]);p.length&&i.push(p);var r,e={name:t.name||"data",columns:u,header:e,data:i,styles:{cells:f,css:h}};return t.url&&((r=document.createElement("form")).setAttribute("target","_blank"),r.setAttribute("action",t.url),r.setAttribute("method","POST"),r.style.visibility="hidden",(i=document.createElement("textarea")).setAttribute("name","data"),i.value=JSON.stringify(e),r.appendChild(i),document.body.appendChild(r),r.submit(),setTimeout(function(){r.parentNode.removeChild(r)},100)),e},n.prototype.getFlatCSV=function(o){var e=this._view.data,t=e.getRoot(),r=this._view.config.columns[0],s=e.getMaxLevel(),i="",t=(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=(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])},""))+o.rowDelimiter}),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,!1)),t});return new l.CsvDriver(o).serialize(t,!0)+o.rowDelimiter+i},n.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)},n.prototype._rawExport=function(i,t,e){void 0===i&&(i={});for(var n=document.createElement("div"),o=(n.setAttribute("style","display: none;"),e.config),r=o.headerRowHeight,r=void 0===r?0:r,s=o.footerRowHeight,s=void 0===s?0:s,a=o.$totalHeight,a=void 0===a?0:a,l=o.$headerLevel,l=void 0===l?0:l,c=o.$footerLevel,c=void 0===c?0:c,d=o.$footer,u=o.columns,h="",f=e.config.exportStyles,o=("boolean"!=typeof i.exportStyles&&!Array.isArray(i.exportStyles)||(f=i.exportStyles),i.url=i.url||"https://export.dhtmlx.com/"+this._name+"/"+t+"/"+this._version,"pdf"===t&&(o=i.pdf,i.pdf=m(m({},o),{printBackground:!1,format:null!=(t=null==o?void 0:o.format)?t:"A4"})),e.config.$totalWidth),t=a+l*(r+1)+1,p=(d&&(t+=c*(s+1)),[]),g=0;g<u.length;g++){var _=u[g];p.push(m(m({},_),{width:_.$width}))}var a=m(m({},e.config),{width:o,height:t,columns:p,data:e.data.getRawData(),keyNavigation:!1,selection:!1,resizable:!1}),v=new e.constructor(n,(0,y.getCloneObject)(a));(0,b.awaitRedraw)().then(function(){!0===f?h="".concat((0,x.getPageLinksCss)(),"<style>").concat((0,x.getPageInlineCss)(),"</style>"):Array.isArray(f)&&f.length&&(h="".concat((0,x.getPageLinksCss)(f))),null!=(t=n.children[0])&&t.setAttribute("data-dhx-theme",i.theme||"light");var t="\n\t\t\t\t\t".concat(h,"\n\t\t\t\t\t").concat(n.innerHTML,"\n\t\t\t\t"),e=document.createElement("form");e.setAttribute("method","POST"),e.setAttribute("action",i.url),e.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',e.childNodes[0].value=t,e.childNodes[1].value=JSON.stringify(i),document.body.appendChild(e),e.submit(),setTimeout(function(){var t;v.destructor(),null!=(t=n.parentNode)&&t.removeChild(n),null!=(t=e.parentNode)&&t.removeChild(e)},100)}).catch(function(){var t;v.destructor(),null!=(t=n.parentNode)&&t.removeChild(n)})},e.Exporter=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.message=void 0;var s=i(1),a=i(2),l=i(26),c=new WeakMap,d=new Map;function u(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}e.message=function(t){(t="string"==typeof t?{text:t}:t).position=t.position||l.MessageContainerPosition.topRight;var r=document.createElement("div");r.className="dhx_widget dhx_message "+(t.css||""),r.setAttribute("role","alert");(e=t.text&&(0,s.uid)())&&r.setAttribute("aria-describedby",e),t.html?r.innerHTML=t.html:(r.innerHTML='<span class="dhx_message__text" id='.concat(e,"></span>\n\t\t").concat(t.icon?'<span class="dhx_message__icon dxi '.concat(t.icon,'"></span>'):""),r.querySelector("#".concat(e)).textContent=t.text);var e=t.node?(0,a.toNode)(t.node):document.body;"static"===getComputedStyle(e).position&&(e.style.position="relative"),(n=d.get(e))?n[t.position]||(n[t.position]={stack:[],container:u(e,t.position)}):d.set(e,((n={})[t.position]={stack:[],container:u(e,t.position)},n));var i=(n=d.get(e)[t.position]).stack,n=n.container;function o(t){var e,i,n,o;void 0===t&&(t=!0),r&&(e=r,(t=t)&&clearTimeout(c.get(e)),i=(t=e.parentNode).getAttribute("data-position"),n=t.parentNode,(o=d.get(n))&&(o=o[i])&&-1!==(o=(i=o.stack).indexOf(e))&&(t.removeChild(e),i.splice(o,1),0===i.length)&&n.removeChild(t),r=null)}return 0===i.length&&e.appendChild(n),i.push(r),n.appendChild(r),t.expire&&(e=setTimeout(function(){return o(!1)},t.expire),c.set(r,e)),r.onclick=function(){return o()},{close:function(){return o()}}}},function(t,n,o){"use strict";!function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.alert=void 0;var e=o(44),i=o(45),c=o(1);n.alert=function(s){var a=s.buttons&&s.buttons[0]?s.buttons[0]:e.default.apply,l=(0,i.blockScreen)(s.blockerCss);return new t(function(e){var t="dhx_alert__".concat((0,c.uid)(),"_content"),i="dhx_alert__".concat((0,c.uid)(),"_header"),n=document.createElement("div"),o=(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||""),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".concat(s.header?"<div id=".concat(i,' class="dhx_alert__header"> ').concat(!1!==s.htmlEnable?s.header:""," </div>"):"","\n\t\t\t").concat(s.text?"<div id=".concat(t,' class="dhx_alert__content">').concat(!1!==s.htmlEnable?s.text:"","</div>"):"",'\n\t\t\t<div class="dhx_alert__footer ').concat(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">').concat(a,"</button>\n\t\t\t</div>"),!1===s.htmlEnable&&(s.header&&(n.querySelector("#".concat(i)).textContent=s.header),s.text)&&(n.querySelector("#".concat(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(14))},function(t,n,o){"use strict";!function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.confirm=void 0;var e=o(44),i=o(45),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=(0,i.blockScreen)("dhx_alert__overlay-confirm "+(l.blockerCss||""));return new t(function(e){function i(t){"BUTTON"===t.target.tagName&&a(t.target.classList.contains("dhx_alert__confirm-aply"))}function n(t){"Escape"===t.key||"Esc"===t.key?(r.querySelector(".dhx_alert__confirm-aply").focus(),a(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&(("aply"===o?(o="reject",r.querySelector(".dhx_alert__confirm-reject")):(o="aply",r.querySelector(".dhx_alert__confirm-aply"))).focus(),t.preventDefault())}var o,r=document.createElement("div"),t=(r.setAttribute("role","alertdialog"),r.setAttribute("aria-modal","true"),l.header&&(0,h.uid)()),s=l.header&&(0,h.uid)(),a=(s&&r.setAttribute("aria-describedby",s),t&&r.setAttribute("aria-labelledby",t),function(t){u(),r.removeEventListener("click",i),document.removeEventListener("keydown",n),document.body.removeChild(r),e(t)});r.className="dhx_widget dhx_alert dhx_alert--confirm"+(l.css?" "+l.css:""),r.innerHTML="\n\t\t".concat(l.header?'<div class="dhx_alert__header" id='.concat(t,"> ").concat(!1!==l.htmlEnable?l.header:""," </div>"):"","\n\t\t").concat(l.text?'<div class="dhx_alert__content" id='.concat(s,">").concat(!1!==l.htmlEnable?l.text:"","</div>"):"",'\n\t\t\t<div class="dhx_alert__footer ').concat(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">').concat(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">').concat(c,"</button>\n\t\t\t</div>"),!1===l.htmlEnable&&(l.header&&(r.querySelector("#".concat(t)).textContent=l.header),l.text)&&(r.querySelector("#".concat(s)).textContent=l.text),document.body.appendChild(r),o="aply",r.querySelector(".dhx_alert__confirm-aply").focus(),r.addEventListener("click",i),document.addEventListener("keydown",n)})}}.call(this,o(14))},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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.disableTooltip=e.enableTooltip=e.tooltip=e.getZIndex=e.findPosition=void 0,i(2)),u=i(26),h=750,f=200;function d(t,e,i,n,o,r){var s,a,l;switch(void 0===o&&(o=8),e=1<(r=void 0===r?0:r)?u.Position.center:e){case u.Position.center:return{left:a=(a=t.left+window.pageXOffset+(t.width-i)/2)+o<window.pageXOffset?t.left+window.pageXOffset: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};default:u.Position.bottom;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,g=document.createElement("div"),_=document.createElement("span"),v=(_.className="dhx_tooltip__text",g.appendChild(_),g.setAttribute("role","tooltip"),g.style.position="absolute",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"))?1e7:null!=t&&t.classList.contains("dhx_popup--window")?9999999: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=(s?_.innerHTML=e:_.textContent=e,document.body.appendChild(g),g.className="dhx_widget dhx_tooltip"+(o?" dhx_tooltip--forced":""),g.getBoundingClientRect()),e=d(a,i,s.width,s.height,r),l=e.left,c=e.top,a=e.pos,i=b(t);switch(i&&(g.style.zIndex=i.toString()),a){case u.RealPosition.bottom:case u.RealPosition.top:case u.RealPosition.left:case u.RealPosition.right:case u.RealPosition.center:g.style.left=l+"px",g.style.top=c+"px"}g.className+=" dhx_tooltip--".concat(a," ").concat(n||""),m=!0,o||setTimeout(function(){g.className+=" dhx_tooltip--animate"})}function r(e,t,i){function n(){var t;m&&(t=s,v)&&(y=setTimeout(function(){document.body.removeChild(g),m=!1,y=null},t||f)),clearTimeout(x),e.removeEventListener("mouseleave",n),e.removeEventListener("blur",n),document.removeEventListener("mousedown",n),p=v=null}var o=i.force,r=i.showDelay,s=i.hideDelay,a=i.position,l=i.css,c=i.htmlEnable,d=i.margin;o||(x=setTimeout(function(){w(e,t,a||u.Position.bottom,l,!1,d,c)},r||h));o&&w(e,t,a,l,o,d,c),e.addEventListener("mouseleave",n),e.addEventListener("blur",n),document.addEventListener("mousedown",n),p=n}function s(t,e){var i=(0,o.toNode)(e.node);i!==v&&(p&&(p(),p=null),v=i,y?(clearTimeout(y),y=null,r(i,t,n(n({},e),{force:!0}))):r(i,t,e))}function a(t){t=(0,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 d=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},A=(Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0,i(0)),s=i(6),F=i(1),o=i(5),$=i(4),u=i(20),N=i(10),r=i(10),V=i(7);function n(t,e,i,n){this._grid=t,this.config=e,this._gridId=n,this._selectedCell,this._selectedCells=[],this._type=["cell","row","complex"].includes(this._grid.config.selection)&&this._grid.config.selection||"complex",this._multiselection=!!t.config.multiselection,this.events=i||new o.EventSystem(this),this._init()}n.prototype.setCell=function(e,i,t,n){var o,r=this,s=(void 0===t&&(t=!1),void 0===n&&(n=!1),"tree"===this._grid.config.type);if(this._gridId&&u.focusManager.getFocusId()!==this._gridId&&u.focusManager.setFocusId(this._gridId),!(this.config.disabled||this._grid.config.$editable||(null==(c=this._selectedCells[0])?void 0:c.row.id)===((null==e?void 0:e.id)||e)&&(null==(c=this._selectedCells[0])?void 0:c.column.id)===((null==i?void 0:i.id)||i))&&(this._multiselection||!this._selectedCells.length||this._removeCell(null==(c=this._selectedCell)?void 0:c.row,null==(c=this._selectedCell)?void 0:c.column))){if(this._multiselection){if(t||n||this._removeCells(),this._selectedCells.find(function(t){return t.row.id===((null==e?void 0:e.id)||e)&&t.column.id===((null==i?void 0:i.id)||i)}))return void this.removeCell((null==e?void 0:e.id)||e,(null==i?void 0:i.id)||i);n&&1<this._selectedCells.length&&!s&&d([],this._selectedCells,!0).forEach(function(t,e){var i=t.row,t=t.column;0<e&&r.removeCell(i.id,t.id)})}e=this._grid.data.getItem(e&&e.id||e);var a,l,c=null==(t=null==(c=this._grid.config)?void 0:c.columns)?void 0:t.filter(function(t){return!t.hidden});i=i||(null==c?void 0:c[0]),(i=this._grid.getColumn(i.id||i))&&e&&(this._multiselection&&n&&this._selectedCells.length&&!s?(n=null==(t=this._selectedCells)?void 0:t[0],s=this._grid.data.getIndex(n.row.id),(t=this._grid.data.getIndex(e.id))<s&&(s=(a=[t,s])[0],t=a[1]),"cell"===this._type||"complex"===this._type?(n=(a=c.map(function(t){return t.id})).indexOf(n.column.id),a=a.indexOf(i.id),-1!==n&&-1!==a&&(a<n&&(n=(o=[a,n])[0],a=o[1]),l=c.slice(n,a+1),this._grid.data.mapRange(s,t,function(e){l.forEach(function(t){-1===r._findIndex({row:e,column:t})&&r._setCell(e,t)})}))):this._grid.data.mapRange(s,t,function(t){-1===r._findIndex({row:t,column:i})&&r._setCell(t,i)})):this._setCell(e,i),(0,A.awaitRedraw)().then(function(){r._grid.paint(),r._setBrowserFocus()}))}},n.prototype.removeCell=function(i,n){var t,o=this;i&&n&&("cell"===this._type||"complex"===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(),(0,A.awaitRedraw)().then(function(){o._grid.paint()})},n.prototype.getCell=function(){return this._selectedCell},n.prototype.getCells=function(){return this._selectedCells},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.toHTML=function(){var o,r,t,s=this;if(!this._isUnselected())return this._multiselection?(o=[],r={},this._selectedCells.forEach(function(t,e,i){var n=s._normalizeCell(t);o.push(s._toHTML(n.row,n.column,e===i.length-1||"cell"===s._type||"complex"===s._type,r[t.row.id])),r[t.row.id]=!0}),o):(t=this._normalizeCell(this._selectedCell),this._toHTML(t.row,t.column,!0))},n.prototype._setCell=function(t,e){t&&e&&(0,F.isDefined)(t.id)&&(0,F.isDefined)(e.id)&&this.events.fire($.GridSelectionEvents.beforeSelect,[t,e])&&(this._selectedCell={row:t,column:e},this._multiselection?this._selectedCells.push(this._selectedCell):this._selectedCells=[this._selectedCell],this.events.fire($.GridSelectionEvents.afterSelect,[t,e]))},n.prototype._removeCell=function(e,i,t){var n;return void 0===t&&(t=!1),!!(e&&i&&(0,F.isDefined)(e.id)&&(0,F.isDefined)(i.id))&&!(!t&&!this.events.fire($.GridSelectionEvents.beforeUnSelect,[e,i])||(n=this._selectedCells.findIndex(function(t){return t.row.id===e.id&&t.column.id===i.id}),this._selectedCells.splice(n,1),this._selectedCell&&i.id===this._selectedCell.column.id&&e.id===this._selectedCell.row.id&&(this._selectedCell=null==(n=this._selectedCells)?void 0:n[(null==(n=this._selectedCells)?void 0:n.length)-1]),t||this.events.fire($.GridSelectionEvents.afterUnSelect,[e,i]),0))},n.prototype._removeCells=function(e){var i=this;void 0===e&&(e=!1),d([],this._selectedCells,!0).forEach(function(t){i._removeCell(null==t?void 0:t.row,null==t?void 0:t.column,e)})},n.prototype._init=function(){var r=this;this._grid.events.on($.GridEvents.cellClick,function(t,e,i){r.setCell(t,e,i.ctrlKey||i.metaKey,i.shiftKey)}),this._grid.data.events.on(s.DataEvents.beforeRemove,function(t){var e,i,n,o;t&&r._selectedCell&&r._selectedCell.row&&r._selectedCell.row.id===t.id&&(o=void 0,i=r._grid.data.getIndex(t.id),o=r._grid.data instanceof s.TreeCollection?(null==(e=(n=r._grid.data.getItems(t.parent))[i+1])?void 0:e.id)||(null==(e=n[i-1])?void 0:e.id)||t.parent:r._grid.data.getId(i+1)||r._grid.data.getId(i-1),(0,F.isId)(o))&&(r.setCell(o),r._grid.paint())}),this._grid.data.events.on(s.DataEvents.removeAll,function(){r._removeCells()}),this._grid.data.events.on(s.DataEvents.load,function(){r._removeCells(!0)})},n.prototype._toHTML=function(e,t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1);var o,r,s,a,l,c,d,u,h,f,p,g,_,v,m,y,x,b,w,C,S,E,D,O,k,T,M,P,H,I,L,j,R=this._grid.data.getRawData(0,-1,null,2);return-1===(0,F.findIndex)(R,function(t){return t.id==e.id})?null:(S=(a=this._grid.config).topSplit,o=a.bottomSplit,r=a.$totalWidth,s=a.$totalHeight,a=null==(a=a.columns)?void 0:a.filter(function(t){return!t.hidden}),l={left:(0,N.getCurrFixedCols)(this._grid.config,$.Split.left),right:(0,N.getCurrFixedCols)(this._grid.config,$.Split.right)},c=this._grid.data.getLength(),c={top:S?this._grid.data.getRawData(0,S):[],bottom:o?this._grid.data.getRawData(c-o,c):[]},T={left:null==(T=null==l?void 0:l.left)?void 0:T.map(function(t){return t.id}),right:null==(T=null==l?void 0:l.right)?void 0:T.map(function(t){return t.id})},d={top:c.top.map(function(t){return t.id}),bottom:c.bottom.map(function(t){return t.id})},L=null==(L=null==l?void 0:l.left)?void 0:L.reduce(function(t,e){return t+(e.$width||0)},0),j=null==(j=null==l?void 0:l.right)?void 0:j.reduce(function(t,e){return t+(e.$width||0)},0),C=c.top.reduce(function(t,e){return t+e.$height},0),u=c.bottom.reduce(function(t,e){return t+e.$height},0),h=this._grid.getCellRect(e.id,t.id),f=this._grid.getScrollState(),m=h.y,p=null==(p=d.top)?void 0:p.includes(e.id),g=null==(g=T.left)?void 0:g.includes(t.id),_=l.left.length&&L>h.x-f.x,v=c.top.length&&C>h.y-f.y,E=h.width,P=h.height-1,b=y=null,x=_?L+f.x:h.x,_&&(E-=(g?(0,V.getTotalWidth)(l.left.slice(0,a.indexOf(t))):L)-(h.x-f.x)),v&&(P-=(p?(0,V.getTotalHeight)(c.top.slice(0,R.indexOf(e))):C)-(h.y-f.y)-1,m+=h.height-P),p&&(m=h.y+f.y,(w=this._grid.getSpan(e.id,t.id))&&1<w.rowspan?(k=R.indexOf(e),y=(0,V.getTotalHeight)(c.top.slice(k,k+w.rowspan))):P=S===d.top.indexOf(e.id)+1?h.height-1:h.height),g&&(x=h.x+f.x,(w=this._grid.getSpan(e.id,t.id))&&1<w.colspan?(k=null==a?void 0:a.indexOf(t),b=(0,V.getTotalWidth)(l.left.slice(k,k+w.colspan))):E=l.left.length===T.left.indexOf(t.id)+1?h.width-1:h.width),(null!=(L=l.right)&&L.length||o)&&(w=this._grid.getSpan(e.id,t.id),C=this._getReverseScrollState(f),null!=(S=l.right)&&S.length&&(D=(null==(L=T.right)?void 0:L.includes(t.id))||w&&a.indexOf(t)+(w.colspan||1)>a.length-l.right.length,(O=r-j<C.x+h.x+h.width)&&!D&&(E-=C.x+h.x+h.width-r+j),D)&&(E=!w||null!=(S=T.right)&&S.includes(w.column)?(M=null!=(L=T.right)&&L.indexOf(t.id)?0:1,x=h.x-C.x+M,h.width-M):(k=a.length-a.indexOf(t)-(w.colspan||1),x=h.x+C.x<1+(S=r-j)?h.x:S-C.x+1,b=(0,V.getTotalWidth)(k?l.right.slice(0,-k):l.right)-1,h.width-C.x)),o)&&(H=d.bottom.includes(e.id)||w&&R.indexOf(e)+(w.rowspan||1)>R.length-o,(I=s-u<C.y+h.y+h.height)&&!H&&(P-=C.y+h.y+h.height-s+u),H)&&(P=w&&!d.bottom.includes(w.row)?(T=s-u,M=(k=R.length-R.indexOf(e)-(w.rowspan||1))?0:1,m=h.y+C.y<T?h.y:T-C.y,y=(0,V.getTotalHeight)(k?c.bottom.slice(0,-k):c.bottom)-M,h.height-C.y-M):(m=h.y-C.y,h.height-(o===d.bottom.indexOf(e.id)+1?1:0))),L=null,"row"!==this._type&&"complex"!==this._type||n||(L=(0,A.el)(".dhx_grid-selected-row",{style:{width:null!=(a=l.left)&&a.length?r-f.x:r,height:P,minHeight:y,minWidth:b,display:P<0&&!y?"none":"flex",top:m,left:null!=(t=l.left)&&t.length?f.x:0,position:"absolute"}})),j=null,"cell"!==this._type&&"complex"!==this._type||!i||(j=(0,A.el)(".dhx_grid-selected-cell",{style:{width:E,height:P,top:m,minHeight:y,minWidth:b,left:x,position:"absolute",display:E<0&&!b||P<0&&!y?"none":"flex",borderLeft:_&&!g?"none":null,borderRight:O&&!D?"none":null,borderTop:v&&!p?"none":null,borderBottom:I&&!H?"none":null}})),(0,A.el)(".dhx_grid-selection",{style:{zIndex:20}},[L,j]))},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,o=(void 0===i&&(i=this._selectedCell),-1);return this._selectedCells.some(function(t,e){if("cell"===n._type||"complex"===n._type){if((0,F.compare)(t.row,i.row)&&(0,F.compare)(t.column,i.column))return o=e,!0}else if("row"===n._type&&(0,F.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&&(t=t.querySelector('[data-dhx-id="'.concat(this._selectedCell.row.id,'"]')),e=this._grid.getSpan(this._selectedCell.row.id,this._selectedCell.column.id),t)&&(i=(i=e?i.querySelector(".dhx_span-spans"):null)?i.querySelector('[data-dhx-col-id="'.concat(e.column,'"][data-dhx-id="').concat(e.row,'"]')):t.querySelector('[data-dhx-col-id="'.concat(this._selectedCell.column.id,'"]')))&&(i.tabIndex=0,i.focus({preventScroll:!0}))},n.prototype._getReverseScrollState=function(t){var e=this._grid.config.$headerLevel*this._grid.config.headerRowHeight,i=this._grid.config.$footerLevel*this._grid.config.footerRowHeight,n=(0,r.calcScrollBarWidth)(this._grid.config,!(null==(n=this._grid.scrollView)||!n.config.enable)),o=this._grid.config.$totalWidth-this._grid.config.$width+N.BORDERS+n.y,e=this._grid.config.$totalHeight-this._grid.config.$height+e+i+N.BORDERS+n.x;return{x:0<o?o-t.x:0,y:0<e?e-t.y:0}},n.prototype._normalizeCell=function(t){var e=t.row,t=t.column,i=this._grid.getSpan(e.id,t.id);return{row:i&&e.id!==i.row?this._grid.data.getItem(i.row):e,column:i&&t.id!==i.column?this._grid.config.columns.find(function(t){return t.id===i.column}):t}},e.Selection=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditor=void 0;var o,r=i(4),s=i(93),a=i(94),l=i(95),c=i(109),d=i(110),u=i(117),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}),e.InputEditor=void 0;var n=i(0),o=i(4),r=i(1);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}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&&(0,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(t){var e=this._cell.row[this._cell.col.id];return this._input&&(e=this._input.value),this._config.$editable.editor=this,(0,n.el)("input.dhx_cell-editor.dhx_cell-editor__input",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:null!=t?t:e})},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)}}},e.InputEditor=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectEditor=void 0;var n=i(0),o=i(4),r=i(9);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}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("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()},s.prototype.toHTML=function(){var t=(0,r.getEditorOptions)(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:"".concat(t),value:t}:t})||[],e=this._cell.row[this._cell.col.id],t=(this._input&&(e=this._input.options[this._input.selectedIndex].value),t.map(function(t){return(0,n.el)("option",{selected:t.id.toString()===(null==e?void 0:e.toString()),value:t.id},t.value)}));return this._config.$editable.editor=this,(0,n.el)("select.dhx_cell-editor.dhx_cell-editor__select",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor"},t)},s.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)}}},e.SelectEditor=s},function(t,e,i){"use strict";var n=this&&this.__rest||function(t,e){var i={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]]);return i},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.DateEditor=void 0,i(0)),a=i(4),o=i(96),l=i(13),r=i(31);function c(t,e,i){var n=this,i=(this._config=i,this._cell={row:t,col:e},this._calendar=new o.Calendar(null,this._cleanConfig(e)),this._cell.row[this._cell.col.id]),t=this._calendar.config.dateFormat;((0,l.stringToDate)(i,t,!0)||i instanceof Date)&&(this._calendar.setValue(i),this._value=this._calendar.getValue(),this._cell.row[this._cell.col.id]=this._value),this._popup=new r.Popup,this._popup.attach(this._calendar),this._calendar.events.on(o.CalendarEvents.change,function(){n.endEdit(!1,!0)}),this._popup.events.on(r.PopupEvents.afterHide,function(){n.endEdit()}),this._initHandlers()}c.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],r=this._input.value;if(!t){if(o instanceof Date||e)return this._value=this._calendar.getValue(),this._input.value=this._value,void this._popup.hide();!(0,l.stringToDate)(r,n,!0)&&r||(!o||r.length!==o.length)&&o&&r||(this._value=r)}this._config.events.fire(a.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),(0,s.awaitRedraw)().then(function(){i._popup.destructor(),i._calendar.destructor()}),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(a.GridEvents.afterEditEnd,[this._value,this._cell.row,this._cell.col])):this._input.focus()}},c.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];return this._config.$editable.editor=this,document.addEventListener("mousedown",this._handlers.onOuterClick),(0,s.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})},c.prototype._cleanConfig=function(t){var e=t.editorConfig||{},e=(e.value,e.range,e.dateFormat,n(e,["value","range","dateFormat"]));return e.dateFormat=t.format,e},c.prototype._initHandlers=function(){var i=this;this._handlers={onFocus:function(){(0,s.awaitRedraw)().then(function(){i._popup.show(i._input,{centering:!0,mode:"bottom",theme:i._input})})},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)}}},e.DateEditor=c},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(97),e),o(i(50),e)},function(t,e,i){"use strict";var n,r,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.Calendar=void 0,i(1)),b=i(0),a=i(5),l=i(8),c=i(98),d=i(108),w=i(13),u=i(50),h=i(2),i=(r=l.View,o(f,r),f.prototype.setValue=function(t){var e,i;return!(!t||t instanceof Array&&0===t.length||(e=t instanceof Array?t[0]:t,e=w.DateHelper.toDateObject(e,this.config.dateFormat),i=w.DateHelper.copy(this._getSelected()),!this.events.fire(u.CalendarEvents.beforeChange,[e,i,!1]))||(this._selected=[],this._setSelected(t),this._timepicker&&(this._timepicker.setValue(e),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(u.CalendarEvents.change,[e,i,!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(0,w.getFormattedDate)(e.config.dateFormat,t)}):t?w.DateHelper.copy(this._selected[0]):(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.events.fire(u.CalendarEvents.beforeChange,["",t,!1])&&(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,"clear"]))},f.prototype.link=function(t){var e=this,i=(this._linkedCalendar&&this._unlink(),this._linkedCalendar=t,this.getValue(!0)),n=t.getValue(!0),o=i&&w.DateHelper.dayStart(i),r=n&&w.DateHelper.dayStart(n),s=function(t){var e;return w.DateHelper.isSameDay(r,o)?null:(e="dhx_calendar-day--in-range",w.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--first-date"),w.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--last-date"),e)};this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(o&&r)return o<=t&&t<=r&&s(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":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,(0,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]&&(u.config.$rangeMark=t=function(){var t,e;if(s._selected[0]&&s._selected[1])return t=w.DateHelper.dayStart(s._selected[0]),e=w.DateHelper.dayStart(s._selected[1]),t<=a&&a<=e&&(w.DateHelper.isSameDay(s._selected[0],s._selected[1])?null:"dhx_calendar-day--in-range")}),e&&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&&o.push(e?"dhx_calendar-day--weekend-disabled":"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-".concat(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,n=this,e=this._currentDate,i=this.config,o=i.weekStart,r=i.thisMonthOnly,s=i.css,a=i.timePicker,i=i.width;switch(o){case"saturday":t=x([w.locale.daysShort[6]],w.locale.daysShort.slice(0,-1),!0);break;case"monday":t=x(x([],w.locale.daysShort.slice(1),!0),[w.locale.daysShort[0]],!1);break;default:t=w.locale.daysShort}for(var l,o=t.map(function(t){return(0,b.el)(".dhx_calendar-weekday",t)}),c=this._getData(e),d=!0,u=this._getSelected(),h=function(t){return t&&u&&t.getTime()===u.getTime()},f=[],p=[],g=0,_=c;g<_.length;g++){var v=_[g],m=v.days.map(function(t){return(0,b.el)("div.dhx_calendar-day",y({class:t.css,_date:t.date},(i={role:"button",tabindex:-1,"aria-pressed":"false"},(e=t)&&(n._isSelectedInCurrentRange?h(e.date)&&(i.tabindex=0,i["aria-pressed"]="true"):d&&(i.tabindex=0),d=!1),i)),t.day);var e,i});!this.config.weekNumbers||v.disabledWeekNumber&&r||p.push((0,b.el)("div",{class:"dhx_calendar-week-number"},v.weekNumber)),f=f.concat(m)}this.config.weekNumbers&&(l=(0,b.el)(".dhx_calendar__week-numbers",p));c="dhx_calendar dhx_widget"+(s?" "+s:"")+(a?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return(0,b.el)("div",y({class:c,style:{width:this.config.weekNumbers?parseInt(i.toString())+48+"px":i}},this._handlers),[(0,b.el)(".dhx_calendar__wrapper",[this._drawHeader((0,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&&(0,b.el)(".dhx_calendar__dates-wrapper",[(0,b.el)(".dhx_calendar__weekdays",o),(0,b.el)(".dhx_calendar__days",f),l]),!this.config.weekNumbers&&(0,b.el)(".dhx_calendar__weekdays",o),!this.config.weekNumbers&&(0,b.el)(".dhx_calendar__days",f),a?(0,b.el)(".dhx_timepicker__actions",[(0,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"},[(0,b.el)("span.dhx_button__icon.dxi.dxi-clock-outline"),(0,b.el)("span.dhx_button__text",this._time)])]):null])])},f.prototype._drawMonthSelector=function(){var t=this._currentDate,e=t.getMonth(),i=this._getSelected()?this._getSelected().getFullYear():null,n=this.config,o=n.css,r=n.timePicker,s=n.weekNumbers,a=n.width,n=n.mode,o="dhx_calendar dhx_widget"+(o?" "+o:"")+(r?" dhx_calendar--with_timepicker":"")+(s?" dhx_calendar--with_week-numbers":""),l=!0,c=i===t.getFullYear(),d=function(t){return c&&e===t};return(0,b.el)("div",y({class:o,style:{width:s?parseInt(a.toString())+48+"px":a}},this._handlers),[(0,b.el)(".dhx_calendar__wrapper",[this._drawHeader((0,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())),(0,b.el)(".dhx_calendar__months",w.locale.monthsShort.map(function(t,e){return(0,b.el)("div",y(y({class:"dhx_calendar-month"+(d(e)?" dhx_calendar-month--selected":"")},(i=e,n={role:"button",tabindex:-1,"aria-pressed":"false"},t&&(c?d(i)&&(n.tabindex=0,n["aria-pressed"]="true"):l&&(n.tabindex=0),l=!1),n)),{_date:e}),t);var i,n})),"month"!==n?(0,b.el)(".dhx_calendar__actions",[(0,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(){var e=this,t=this._currentDate,t=w.DateHelper.getTwelweYears(t),i=this.config,n=i.css,o=i.timePicker,r=i.weekNumbers,s=i.width,i=i.mode,n="dhx_calendar dhx_widget"+(n?" "+n:"")+(o?" dhx_calendar--with_timepicker":"")+(r?" dhx_calendar--with_week-numbers":""),a=!0,l=this._getSelected()&&t.includes(this._getSelected().getFullYear()),c=function(t){return e._getSelected()&&t===e._getSelected().getFullYear()};return(0,b.el)("div",y({class:n,style:{width:r?parseInt(s.toString())+48+"px":s}},this._handlers),[(0,b.el)(".dhx_calendar__wrapper",[this._drawHeader((0,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"},t[0]+"-"+t[t.length-1])),(0,b.el)(".dhx_calendar__years",t.map(function(t){return(0,b.el)("div",y({class:"dhx_calendar-year"+(c(t)?" dhx_calendar-year--selected":""),_date:t},(i={role:"button",tabindex:-1,"aria-pressed":"false"},(e=t)&&(l?c(e)&&(i.tabindex=0,i["aria-pressed"]="true"):a&&(i.tabindex=0),a=!1),i)),t);var e,i})),"year"!==i&&"month"!==i?(0,b.el)(".dhx_calendar__actions",[(0,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(0,b.el)(".dhx_calendar__navigation",[(0,b.el)("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[(0,b.el)(".dhx_button__icon.dxi.dxi-chevron-left")]),t,(0,b.el)("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[(0,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(0,b.el)(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:i?parseInt(t.toString())+48+"px":t}},[(0,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":"year"!==this.config.mode?(w.DateHelper.setYear(this._currentDate,i),this.showDate(null,"month"),this.events.fire(u.CalendarEvents.yearSelected,[i])):(r=w.DateHelper.fromYear(i),this.events.fire(u.CalendarEvents.beforeChange,[r,n,!0])&&(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&&(e=e.parent.body[e.idx+i])&&(i=e.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,(0,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,t=t.AM,n=o._getSelected(),e=w.DateHelper.withHoursAndMinutes(o._getSelected()||new Date,e,i,t);o.events.fire(u.CalendarEvents.beforeChange,[e,n,!0])&&(o._selected[o._selected.length-1]=e,o.events.fire(u.CalendarEvents.change,[e,n,!0])),o._time=o._timepicker.getValue(),o.showDate(null,"calendar")}));return o.mount(t,(0,b.create)({render:function(){return o._draw()}})),o}e.Calendar=i},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(99),e),o(i(49),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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),e.Timepicker=void 0,i(1)),a=i(0),l=i(5),c=i(8),d=i(27),u=i(103),h=i(106),f=i(107),p=i(49),g=i(2);function _(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}v=c.View,o(m,v),m.prototype.getValue=function(t){return 12===this.config.timeFormat&&(this._time.hour=this._time.hour%12||12),this._getValue(this._time,t)},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._getValue=function(t,e){var i=t.hour,n=t.minute,t=t.AM;return e?(e={hour:i,minute:n},12===this.config.timeFormat&&(e.AM=t),e):(i<10?"0"+i:i)+":"+(n<10?"0"+n:n)+(12===this.config.timeFormat?t?"AM":"PM":"")},m.prototype._setValue=function(t){var e,i,n=0,o=0;return(t="number"==typeof 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&&!(0,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"}]},t=(this.config.controls&&(i.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),i.rows.push({id:"save-action",css:"dhx_timepicker__save"})),this.layout=new d.Layout(t,i)),i=(0,a.create)({render:function(){return e._draw()}}),i=this._inputsView=(0,c.toViewLike)(i),n=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});t.getCell("timepicker").attach(i),t.getCell("hour-slider").attach(o),t.getCell("minute-slider").attach(n),this.config.controls&&(t.getCell("save-action").attach(function(){return(0,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)}),t.getCell("close-action").attach(function(){return(0,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"},[(0,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){((0,g.isSafari)()||(0,g.isFirefox)())&&i(t.target)},".dhx_timepicker-input--minutes":function(t){((0,g.isSafari)()||(0,g.isFirefox)())&&e(t.target)}}},this._outerHandlers={close:function(){n.events.fire(p.TimepickerEvents.beforeClose,[n.getValue(n._isTimeObj())])&&(n.events.fire(p.TimepickerEvents.afterClose,[n.getValue(n._isTimeObj())]),n.events.fire(p.TimepickerEvents.close,[]))},save:function(){n.events.fire(p.TimepickerEvents.beforeApply,[n.getValue(n._isTimeObj())])&&(n.events.fire(p.TimepickerEvents.afterApply,[n.getValue(n._isTimeObj())]),n.events.fire(p.TimepickerEvents.apply,[n.getValue()]),n.events.fire(p.TimepickerEvents.save,[n._time]))}}},m.prototype._initEvents=function(){var i=this;this._hoursSlider.events.on(u.SliderEvents.beforeChange,function(t){var e;if(!(t<i._hoursSlider.config.min||t>i._hoursSlider.config.max))return e=r({},i._time),12===i.config.timeFormat?(e.AM=t<12,e.hour=t%12||12):e.hour=t,t=i._isTimeObj(),i.events.fire(p.TimepickerEvents.beforeChange,[i._getValue(e,t)])}),this._hoursSlider.events.on(u.SliderEvents.change,function(t){t<i._hoursSlider.config.min||t>i._hoursSlider.config.max||(12===i.config.timeFormat?(i._time.AM=t<12,i._time.hour=t%12||12):i._time.hour=t,t=i._isTimeObj(),i.events.fire(p.TimepickerEvents.change,[i.getValue(t)]),i._inputsView.paint())}),this._minutesSlider.events.on(u.SliderEvents.beforeChange,function(t){var e;if(!(t<i._minutesSlider.config.min||t>i._minutesSlider.config.max))return t=r(r({},i._time),{minute:t}),e=i._isTimeObj(),i.events.fire(p.TimepickerEvents.beforeChange,[i._getValue(t,e)])}),this._minutesSlider.events.on(u.SliderEvents.change,function(t){t<i._minutesSlider.config.min||t>i._minutesSlider.config.max||(i._time.minute=t,t=i._isTimeObj(),i.events.fire(p.TimepickerEvents.change,[i.getValue(t)]),i._inputsView.paint())})},m.prototype._draw=function(){return(0,a.el)(".dhx_timepicker-inputs",r({},this._handlers),[(0,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"}),(0,a.el)("span.dhx_timepicker-delimer",":"),(0,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?(0,a.el)(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},m.prototype._isTimeObj=function(){var t;return"timeobject"===(null==(t=this.config.valueFormat)?void 0:t.toLowerCase())};var v,i=m;function m(t,e){e=v.call(this,t,(0,s.extend)({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},e=void 0===e?{}: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=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMarginSize=e.getBlockRange=void 0,e.getBlockRange=function(t,e,i){return(i=void 0===i||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){return t&&("space"===t.type||"wide"===t.type)?12:0}},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProLayout=void 0,i(28)),a=i(102),i=(o=s.Layout,r(l,o),l.prototype._createCell=function(t){var e=new(t.rows||t.cols||t.views?(t.parent=this._root,l):a.ProCell)(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},l);function l(t,e){return o.call(this,t,e)||this}e.ProLayout=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=this&&this.__assign||function(){return(h=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=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProCell=void 0,i(1)),p=i(0),s=i(30),i=i(46),i=(o=i.Cell,r(a,o),a.prototype._getFirstRootView=function(t){return(t=void 0===t?this:t).getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},a.prototype.toVDOM=function(t){var e;if(null===this.config&&(this.config={}),!this.config.hidden){var i,n=this.config.$fieldset,o=this._calculateStyle(),r=(0,f.isDefined)(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:"".concat(this.config.padding,"px")}:"",s=this.config.full||this.config.html?o:h(h({},o),r),t=(this.config.html||(i=this._ui?(i=(i=this._ui.getRootView()).render?(0,p.inject)(i):i)?[this.scrollView.render(i)]:null:t?this.scrollView.render([t]):null),this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?(0,p.el)(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),h(h({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[(0,p.el)("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null),a={};if(this.config.on)for(var l in this.config.on)a["on"+l]=this.config.on[l];var c="",d=this.config.cols||this.config.rows;if(this.config.type&&d)switch(this.config.type){case"line":c=" dhx_layout-line";break;case"wide":c=" dhx_layout-wide";break;case"space":c=" dhx_layout-space"}var d=(0,p.el)(".dhx_layout-cell-content",{_key:"".concat(this._uid,"_html"),style:r},[(0,p.el)(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),u=(0,p.el)("div",h(h(((e={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,e["data-cell-id"]=null!=(u=this.config.id)?u:null,e),a),{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?c:""),style:n?o:s}),[n?(0,p.el)("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:r,disabled:this.config.$disabled},[(0,p.el)("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--".concat(this.config.labelAlignment||"left")},this.config.label),(0,p.el)(".dhx_layout-cell-content",{class:this._getCss(!1)},[i])]):this.config.full?[(0,p.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&&(0,p.el)("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&(0,p.el)(".dhx_layout-cell-header__image-wrapper",[(0,p.el)("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&(0,p.el)("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?(0,p.el)("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):(0,p.el)("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:(0,p.el)("div",{style:h(h({},r),{height:"calc(100% - ".concat(this.config.headerHeight||37,"px)")}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?c:"")},this.config.html?[(0,p.el)("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:i)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?i:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable?this.scrollView.render([d],this._uid):d],this._checkProgress()&&this._getProgressBar()]);return t?[u,t]:u}},a);function a(t,e){var i=o.call(this,t,e)||this;return i.scrollView=new s.ScrollView(function(){return i._getFirstRootView()}),i}e.ProCell=i},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){t[n=void 0===n?i:n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(104),e),o(i(48),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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0,i(1)),c=i(0),s=i(5),a=i(25),d=i(8),u=i(31),h=i(48),f=i(2);function p(t,e,i){return t<e?e:i<t?i:t}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.events.fire(h.SliderEvents.beforeChange,[t[0],e,!1])&&(this._setValue(t[0],!1),this.events.fire(h.SliderEvents.change,[t[0],e,!1])),this.events.fire(h.SliderEvents.beforeChange,[t[1],i,!0])&&(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.events.fire(h.SliderEvents.beforeChange,[t,e,!1])&&(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,i=i.min,o=(e=void 0===e?!1:e)?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),r=o+t;this.events.fire(h.SliderEvents.beforeChange,[r=n<r||r<i?o:r,o,e])&&(this._setValue(o+t,e),this.events.fire(h.SliderEvents.change,[r,o,e]),this.paint())},_.prototype._initStartPosition=function(){var t=this.config,e=t.max,i=t.min,t=t.range,n=(r=this.config.value,n=this.config.min,o=this.config.max,(r=void 0===r?[]:Array.isArray(r)?r:"string"==typeof r?r.split(",").map(function(t){return parseInt(t,10)}):[r])[0]=void 0===r[0]?n:p(r[0],n,o),r[1]=void 0===r[1]?o:p(r[1],n,o),r),o=n[0],r=n[1];this._currentPosition=(o-i)/(e-i)*100,t&&(this._extraCurrentPosition=(e-r)/(e-i)*100),this._currentPosition=(o-i)/(e-i)*100,t&&(this._extraCurrentPosition=(r-i)/(e-i)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,t)&&(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;return 100===t?n:0===t?i:(e=e/2<=(n=(t=t*(n-i)/100)%e)?e:0,+(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;t=(t-i)/(n-i)*100,n=this._isInverse()?100-t:t;e?this._extraCurrentPosition=n:this._currentPosition=n},_.prototype._initHandlers=function(){function e(t){var e,i;n._disabled||3===t.which||(n.events.fire(h.SliderEvents.mousedown,[t]),n._isMouseMoving=!0,t=t.target.classList.contains("dhx_slider__thumb--extra")?(n._isExtraActive=!0,n._extraCurrentPosition):(n._isExtraActive=!1,n._currentPosition),n._findNewDirection=null,n.config.range?(e=(i=n._currentPosition>n._extraCurrentPosition?[n._currentPosition,n._extraCurrentPosition]:[n._extraCurrentPosition,n._currentPosition])[0],i=i[1],n._currentPosition===n._extraCurrentPosition?(n._findNewDirection=t,n._possibleRange=[0,100]):n._possibleRange=t<e?[0,e]:[i,100]):n._possibleRange=[0,100])}var n=this,i=function(t){t.cancelable&&t.preventDefault();t=((t.targetTouches?t.targetTouches[0]:t)[n._axis]-n._getBegining())/n._length*100;if(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()},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",i)):(document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",i))};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,{theme:t.target})},onmousedown:function(t){e(t),document.addEventListener("mousemove",i),document.addEventListener("mouseup",o)},ontouchstart:function(t){n._setTooltip(t),n._mouseIn=!1,e(t),document.addEventListener("touchmove",i,{passive:!1}),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||(t=(t[n._axis]-n._getBegining())/n._length*100,e=n.getRootView().refs,(!n.config.range||Math.abs(n._currentPosition-t)<Math.abs(n._extraCurrentPosition-t)?(n._updatePosition(t,!1),e.runner):(n._updatePosition(t,!0),e.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){(t=100<t?100:t)<0&&(t=0);var i=this.config,n=i.max,i=i.min,o=(e=void 0===e?!1:e)?this._extraCurrentPosition:this._currentPosition,o=this._getValue(o),t=this._getValue(t);o!==t&&this.events.fire(h.SliderEvents.beforeChange,[t,o,e])&&(n=(t-i)/(n-i)*100,i=this._isInverse()?100-n:n,e?this._extraCurrentPosition=i:this._currentPosition=i,this.events.fire(h.SliderEvents.change,[t,o,e]))},_.prototype._getRunnerStyle=function(t){var e="horizontal"===this.config.mode?"left":"top",t=(t=void 0===t?!1:t)?this._extraCurrentPosition:this._currentPosition,i={};return i[e]=t+"%",i},_.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},_.prototype._getRunnerCss=function(t){return"dhx_slider__thumb"+((t=void 0===t?!1: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,t=t.helpMessage,a=(0,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),(0,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":"")},[a?(0,c.el)("label.dhx_label.dhx_slider__label",{style:a.style,class:t?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},t?[a.label&&(0,c.el)("span.dhx_label__holder",a.label),(0,c.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:a.label):null,this._drawSlider()])},_.prototype._drawSlider=function(){return(0,c.el)(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[(0,c.el)(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),(0,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?(0,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,e,i,n,o;return this._disabled?(0,c.el)(".dhx_slider__range"):(e="horizontal"===this.config.mode?"left":"top",i="horizontal"===this.config.mode?"width":"height",this.config.range?(n=(o=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition])[0],(0,c.el)(".dhx_slider__range",{style:((t={})[e]=(o=o[1])+"%",t[i]=n-o+"%",t)})):this._isInverse()?(0,c.el)(".dhx_slider__range",{style:((n={})[e]=this._currentPosition+"%",n[i]=100-this._currentPosition+"%",n)}):(0,c.el)(".dhx_slider__range",{style:((o={})[e]=0,o[i]=this._currentPosition+"%",o)}))},_.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(0,c.el)(".dhx_slider__ticks-holder",this._getTicks().map(function(t){var e;return(0,c.el)("div",{class:"dhx_slider__tick"+(t.isMultiple?" dhx_slider__tick--major":""),style:((e={})[i]=t.position,e)},void 0!==t.label?[(0,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"};var g,i=_;function _(t,e){var i=g.call(this,t,(0,r.extend)({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},e))||this,e=(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[i._isExtraActive?"extraRunner":"runner"])?void 0:t.el)}),i._initHotkeys(),(0,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=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),e.Popup=void 0,i(1)),l=i(0),c=i(5),d=i(2),u=i(8),h=i(47),i=(o=u.View,r(f,o),f.prototype.show=function(t,e,i){var n=this;void 0===e&&(e={}),this.events.fire(h.PopupEvents.beforeShow,[t])&&(t=(0,d.toNode)(t),this._isActive?this._setPopupSize(t,e):(i&&this.attach(i),e.theme&&this._setTheme(e.theme),this._popup.style.left="0",this._popup.style.top="0",(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=(0,l.el)(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=(0,l.inject)(t)),(0,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._setTheme=function(t){"string"==typeof t?this._popup.setAttribute("data-dhx-theme",t):(t=null==(t=null==t?void 0:t.closest("[data-dhx-theme]"))?void 0:t.getAttribute("data-dhx-theme"))&&this._popup.setAttribute("data-dhx-theme",t)},f.prototype._setPopupSize=function(t,e,i){var n=this,o=(void 0===i&&(i=3),this._popup.getBoundingClientRect()),r=o.width,o=o.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!i||0!==r&&0!==o){r=(0,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){var e=o.call(this,null,(0,a.extend)({},t=void 0===t?{}: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.config.theme&&e._setTheme(e.config.theme),e.mount(i,(0,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=i},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=void 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=void 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}),e.CheckboxEditor=void 0;var n=i(1),o=i(0),r=i(4);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}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=(0,n.uid)();return(0,o.el)("div.dhx_checkbox.dhx_cell-editor__checkbox",[(0,o.el)("label",{style:{display:"none"},for:t},this._checked||"false"),(0,o.el)("input.dhx_checkbox__input",{type:"checkbox",_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor","data-dhx-checked":(!!this._checked).toString(),checked:this._checked,id:t,style:{userSelect:"none"}}),(0,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)}}},e.CheckboxEditor=s},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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.ComboboxEditor=void 0,i(0)),r=i(4),s=i(51),a=i(20),l=i(9);function c(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}c.prototype.endEdit=function(t){var e,i,n=this;t||(t=this._input.getValue(),e="multiselect"===this._cell.col.editorType?t.split(",").join(", "):t),this._config.events.fire(r.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(i=(0,l.getEditorOptions)(this._cell.col,this._cell.row),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.find(function(t){return"string"==typeof t?t===e:t.id.toString()===e});e&&!t&&(n._cell.col.$customOptions||(n._cell.col.$customOptions=[]),n._cell.col.$customOptions.push(n._input.data.getItem(e)))}),this._config.events.fire(r.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},c.prototype.toHTML=function(){var e=this,t=(0,l.getEditorOptions)(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:"".concat(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,htmlEnable:this._cell.col.htmlEnable},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),this._input.data.events.on("beforeAdd",function(t){if(t.id!==t.value)return e._input.addOption({id:t.value,value:t.value},!0),!1})),document.addEventListener("mousedown",this._handlers.onOuterClick),this._config.$editable.editor=this,(0,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),(0,o.inject)(this._input.getRootView())},c.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()}}},e.ComboboxEditor=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEY_CODES=void 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}),e.getEditor=void 0;var n=i(113);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputEditor=void 0;var n=i(0),o=i(32);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()}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(0,n.el)(".dhx_input__wrapper",{role:"presentation"},[(0,n.el)("div.dhx_input__container",{role:"presentation"},[(0,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)}}},e.InputEditor=r},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProList=void 0,i(0)),c=i(30),i=i(54),i=(o=i.List,r(d,o),d.prototype.destructor=function(){o.prototype.destructor.call(this),this.scrollView=null},d.prototype.scrollTo=function(t){var e=this.getRootView();e&&e.node&&e.node.el&&void 0!==t&&(e=null!=(e=this.scrollView)&&e.config.enable?null==(e=this.getRootNode())?void 0:e.querySelector(".scroll-view"):this.getRootNode(),this._scrollTo(t,e))},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)}),t=(this.config.virtual&&(e=a(a([(0,l.el)(".div",{style:{height:t[2]+"px"}})],e,!0),[(0,l.el)(".div",{style:{height:t[3]+"px"}})],!1)),this.scrollView&&this.scrollView.config.enable),n=(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(t?" dhx_list--scroll-view":"");return(0,l.el)("ul.dhx_widget.dhx_list",s(s({style:{"max-height":this.config.height,position:"relative"},class:n,"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),t?[].concat(this.scrollView.render(e)):e)},d);function d(t,e){var i=o.call(this,t,e)||this;return i.scrollView=new c.ScrollView(function(){return i.getRootView()}),i.paint(),i}e.ProList=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyListener=void 0;function n(){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())})}n.prototype.startNewListen=function(t){this._isActive=!0,this._sequence="",this._currentAction=t},n.prototype.endListen=function(){this._currentAction=null,this.reset(),this._isActive=!1},n.prototype.reset=function(){this._sequence=""},n.prototype._change=function(){this._currentAction(this._sequence),this._addClearTimeout()},n.prototype._addClearTimeout=function(){var t=this;this._clearTimeout&&clearTimeout(this._clearTimeout),this._clearTimeout=setTimeout(function(){t.reset(),t._clearTimeout=null},2e3)},e.KeyListener=n},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProCombobox=void 0,i(52)),a=i(53),l=i(27),c=i(57),i=(o=s.Combobox,r(d,o),d.prototype._createLayout=function(){var t=this.list=new a.ProList(null,{$template:s.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,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 o.call(this,t,e)||this}e.ProCombobox=i},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)},n=(Object.defineProperty(e,"__esModule",{value:!0}),e.TextAreaEditor=void 0,i(0)),s=i(4),o=i(1),a=i(9);function l(t,e,i){this._config=i,this._cell={row:t,col:e},this._width=this._cell.col.$width;i=0;this._config.firstColId===this._cell.col.id&&this._cell.row.hasOwnProperty("$level")&&(i=(0,a.getTreeCellWidthOffset)(this._cell.row)),this._width-=i-4,this._initHandlers()}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&&(0,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],e=(this._editor&&(t=this._editor.value),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(0,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}),i=(o._cell.row[o._cell.col.id]=o._editor.value,(0,a.getCalculatedRowHeight)((0,a.getMaxRowHeight)(o._cell.row,o._config.columns))),n=(0,a.getCalculatedRowHeight)((0,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"),t=(i.className="dhx_cell-editor dhx_cell-editor__textarea",i.value=t,i.style.width="".concat(e.width,"px"),i.style.lineHeight="".concat(e.lineHeight,"px"),i.style.maxHeight="".concat(e.maxHeight,"px"),i.style.boxSizing="border-box",document.body.appendChild(i),this._getElementHeight(i)),n=i.value.split("\n").length,o=Math.round(t/e.lineHeight),t=t<e.maxHeight?e.maxHeight:t;return document.body.removeChild(i),1===n&&n===o?e.maxHeight:t},l.prototype._getElementHeight=function(t){return t.scrollHeight},e.TextAreaEditor=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getContent=void 0;var s=i(0),l=i(9),a=i(1),c=i(119),r=i(120),d=i(121);function n(t,n,e,i){var o;if(t&&n&&e)return o=t.id,e(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},[]),t="tree"===n.type?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},[]):t)}e.getContent=function(){return{inputFilter:{element:{},toHtml:function(t,e){var i=this,n=(0,a.uid)(),o=t.id.toString(),r=this.element[o];return r?r.value=this.value[o]:((r=new d.InputFilter(t,e,n,this.value[o])).events.on("change",function(t){i.value[o]=t}),this.element[o]=r),r.toHTML()},match:function(t){var e=t.val,i=t.match,t=t.col;if(!(0,a.isDefined)(e))return!1;for(var n=[],o=(n.push((0,l.toFormat)(e,t.type,t.format)),t.format&&0<(r=t.format.lastIndexOf("#"))&&n.push((0,l.toFormat)(e,t.type,t.format.slice(r))),""),r=0;r<i.length;r++){var s=i.charCodeAt(r);o+=32<s&&s<48||63===s||90<s&&s<95||124===s?"\\"+i[r]:i[r]}return n.some(function(t){return new RegExp("".concat(o),"i").test(t)})},value:{}},selectFilter:{element:{},toHtml:function(t,e){var i=this,n=t.id.toString(),o=this.element[n];return o?(o.value=this.value[n],o.data=t.$activeFilterData||t.$uniqueData):((o=new r.SelectFilter(t,e,t.$uniqueData,this.value[n])).events.on("change",function(t){i.value[n]=t}),this.element[n]=o),o.toHTML()},match:function(t){var e=t.val,i=t.match,t=t.col,e=(0,l.toFormat)(e,t.type,t.format);return!i||(e||"boolean"==typeof e)&&e.toString()==i},value:{}},comboFilter:{element:{},toHtml:function(t,e){var i,n=this,o=t.id.toString(),r=this.element[o];return r?r.data=t.$uniqueData:(i=t.header.filter(function(t){return void 0!==t.filterConfig})[0],(r=new c.ComboFilter(t,e,t.$uniqueData,this.value[o],i)).events.on("change",function(t){n.value[o]=t}),this.element[o]=r),(0,s.inject)(r.getFilter().getRootView())},match:function(t){var e=t.val,i=t.match,n=void 0===i?"":i,i=t.multi,o=void 0!==i&&i,i=t.col,r=(0,l.toFormat)(e,i.type,i.format);if(Array.isArray(n)){for(var s=void 0,a=0;a<n.length;a++)if("break"===function(e){if(s=o&&"string"==typeof r?r.split(", ").some(function(t){return t===n[e]}):n[e]===r)return"break"}(a))break;return!n||!n.length||s}return void 0===n||r===n},destroy:function(){this.value={};var t,e=this.element;for(t in e)e[t].destructor(),delete e[t]},value:{}},sum:{calculate:function(t,e){return t.length?e.reduce(function(t,e){return t+parseFloat(e)||0},0):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type||"number"===t.type?(0,l.toFormat)(e,t.type,t.format):(0,a.isDefined)(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||"number"===t.type?(0,l.toFormat)(e,t.type,t.format):(0,a.isDefined)(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||"number"===t.type?(0,l.toFormat)(e,t.type,t.format):(0,a.isDefined)(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||"number"===t.type?(0,l.toFormat)(e,t.type,t.format):(0,a.isDefined)(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";Object.defineProperty(e,"__esModule",{value:!0}),e.ComboFilter=void 0;var n=i(51),r=i(5),o=i(6),s=i(1),a=i(4);function l(t,e,i,n,o){this.events=new r.EventSystem,this._silentMode=!1,this.column=t,this.config=e,this.data=i,this.value=n,this.filterConfig=(null==o?void 0:o.filterConfig)||{},(this.column.htmlEnable||null!=(t=this.config)&&t.htmlEnable&&!1!==this.column.htmlEnable)&&(this.filterConfig.readonly=!0,this.filterConfig.template||(this.filterConfig.template=function(t){return t.value})),this.initFilter(),this.config&&this.initHandlers()}l.prototype.initFilter=function(){this._filter=new n.Combobox(null,Object.assign({},this.filterConfig)),this.data&&this._filter.data&&this._setData()},l.prototype.initHandlers=function(){var t,i=this,n=this.column.id.toString();this.config.events.on(o.DataEvents.load,function(){return i._setData()},this),this._filter.events.on("change",function(t){var e;t&&(Array.isArray(t)?t.find(function(t){return i._filter.data.getItem(t)}):i._filter.data.getItem(t))&&(e=i._filter.config.multiselection?i._filter.list.selection.getItem().map(function(t){if(t&&i._filter.data.getItem(t.id))return t.value}):i._filter.list.selection.getItem().value),i.value=e,null!=(t=i.config.events)&&t.fire(a.GridEvents.filterChange,[i.value,n,"comboFilter",i._silentMode]),i._silentMode&&void 0===i.value&&(i._silentMode=!1)}),this.config.events.on(a.GridEvents.filterChange,function(t){return i.events.fire(a.HeaderFilterEvent.change,[t])},this),this._filter.popup.events.on("afterHide",function(){i.filterConfig.multiselection||i._filter.list.selection.getItem()||i.clear()}),this._filter.popup.events.on("afterShow",function(){!i.filterConfig.multiselection&&(""===i.value||i.filterConfig.readonly&&void 0!==i.value)&&i.clear()}),null!=(t=this.config.events)&&t.on(a.GridEvents.scroll,function(){var t;i._isFocused&&null!=(t=i._filter.getRootView().refs)&&t.input&&i._filter.focus()},this),null!=(t=this.config.events)&&t.on(a.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()},this),null!=(t=this.config.events)&&t.on(a.GridEvents.cellMouseDown,function(){return i.blur()},this),this.config.events.on(o.DataEvents.change,function(t,e){i.column.hidden||"add"!==e&&"update"!==e&&"remove"!==e||("add"!==e&&i._checkValue(),i._setData(!0))},this),this.config.events.on(o.DataEvents.removeAll,function(){i.clear(!0),i._setData()},this),this.config.events.on(a.GridEvents.afterRowShow,function(){return i._setData(!0)},this),this.config.events.on(a.GridEvents.afterRowHide,function(){i.column.hidden||(i._checkValue(),i._setData(!0))},this),this.config.events.on(o.DataEvents.filter,function(t){i.column.hidden||(!t||(0,o.isOnlyPermanentFilters)(t)?i.clear(!0):i._checkValue(),i.filterConfig.multiselection&&i._filter.popup.isVisible())||i._setData(!0)},this),this.config.events.on(a.GridEvents.afterColumnShow,function(){i.filterConfig.multiselection||(i._checkValue(),i._setData())},this),this.config.events.on(a.GridEvents.afterColumnHide,function(){i.filterConfig.multiselection||i._setData()},this)},l.prototype.getFilter=function(){return this._filter},l.prototype.setValue=function(e,t){var i,n=this;!this.filterConfig.multiselection&&Array.isArray(e)||((0,s.isDefined)(e)?(null!=e&&e.length||""===e)&&(i=this.filterConfig.multiselection&&Array.isArray(e)?e.map(function(e){var t;return null==(t=n._filter.data.find(function(t){return t.value===e}))?void 0:t.id}):null==(i=this._filter.data.find(function(t){return t.value===e}))?void 0:i.id,this._filter.setValue(i,t)):(t&&(this._silentMode=!0),this._filter.clear(),this.filterConfig.multiselection||void 0===this.value||(this.value=void 0,null!=(i=this.config.events)&&i.fire(a.GridEvents.filterChange,[this.value,this.column.id,"comboFilter"]))))},l.prototype.clear=function(t){void 0!==this.value&&this.setValue(null,t)},l.prototype.focus=function(){var t;this._isFocused=!0,null!=(t=this._filter.getRootView().refs)&&t.input&&this._filter.focus()},l.prototype.blur=function(){var t;this._isFocused=!1,null!=(t=this._filter.getRootView().refs)&&t.input&&this._filter.blur()},l.prototype.destructor=function(){var t=this.config.events;if(t)for(var e in t.events)this.config.events.detach(e,this);this.events.clear(),this._filter&&this._filter.destructor(),this.config=this.filterConfig=this.data=this.column=this.value=this.events=null},l.prototype._setData=function(t){function e(){var t=i.column.$activeFilterData||i.column.$uniqueData;i._filter.data.parse(t.map(function(t){return{value:t}}))}var i=this;void 0===t&&(t=!1);void 0===this.value?e():t&&this.filterConfig.multiselection&&(e(),this.setValue(this.value,!0))},l.prototype._checkValue=function(){if(void 0!==this.value)for(var i=Array.isArray(this.value)?this.value:[this.value],n=this,t=0,e=i;t<e.length;t++)if("break"===function(e){var t;return n.column.$uniqueData.includes(e)?"continue":(1<i.length?(t=n._filter.data.find(function(t){return t.value===e}),n._filter.list.selection.remove(t.id)):n.clear(),"break")}(e[t]))break},e.ComboFilter=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectFilter=void 0;var n=i(0),o=i(5),r=i(4);function s(t,e,i,n){this.events=new o.EventSystem,this.column=t,this.config=e,this.data=i,this.value=n||"",this.initHandlers(),this.toHTML()}s.prototype.toHTML=function(){var e=this;return(0,n.el)("label.dhx_grid-filter__label.dxi.dxi-menu-down",{_ref:"".concat(this.column.id,"_filter")},[(0,n.el)("select.dxi.dxi-menu-down",{type:"text",class:"dhx_input dhx_grid-filter dhx_grid-filter--select",onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id},[(0,n.el)("option",{value:"",_key:0},""),(this.value?[this.value]:this.data).map(function(t){return""!==(t=null!=t?t:"")&&(0,n.el)("option",{_key:t,value:t,selected:e.value===t.toString()},t)})])])},s.prototype.getFilter=function(){return this.toHTML()},s.prototype.setValue=function(t,e){this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[t]),null!=(t=this.config.events)&&t.fire(r.GridEvents.filterChange,[this.value,this.column.id,"selectFilter",e])},s.prototype.clear=function(t){this.setValue("",t)},s.prototype.focus=function(){this._isFocused=!0;var t=null==(t=null==(t=null==(t=null==(t=this.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(this.column.id,"_filter")])?void 0:t.el;t&&t.focus()},s.prototype.blur=function(){this._isFocused=!1;var t=null==(t=null==(t=null==(t=null==(t=this.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(this.column.id,"_filter")])?void 0:t.el;t&&t.blur()},s.prototype.initHandlers=function(){var t,i=this;this._handlers={onchange:function(t){var e,t=(null==(e=t.target)?void 0:e.value)||(null==(e=null==(e=t.composedPath())?void 0:e[0])?void 0:e.value)||(null==(e=t.explicitOriginalTarget)?void 0:e.value);i.setValue(t)},onfocus:function(){i._isFocused=!0},onblur:function(){i._isFocused=!1}},null!=(t=this.config.events)&&t.on(r.GridEvents.scroll,function(){var t,e=null==(t=null==(t=null==(t=null==(t=i.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(i.column.id,"_filter")])?void 0:t.el;i._isFocused&&e&&(0,n.awaitRedraw)().then(function(){e.focus()})}),null!=(t=this.config.events)&&t.on(r.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!=(t=this.config.events)&&t.on(r.GridEvents.cellMouseDown,function(){return i.blur()})},e.SelectFilter=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputFilter=void 0;var n=i(0),o=i(5),r=i(4);function s(t,e,i,n){this.events=new o.EventSystem,this.column=t,this.config=e,this.id=i,this.value=n||"",this.initHandlers(),this.toHTML()}s.prototype.toHTML=function(){return(0,n.el)("div.dhx_grid-filter__label.dxi.dxi-magnify",{"aria-label":"Type to search",_ref:"".concat(this.column.id,"_filter")},[(0,n.el)("label",{style:{display:"none"},"aria-label":"Type to search",for:this.id},"Type to search"),(0,n.el)("input",{type:"text",class:"dhx_input dhx_grid-filter",oninput:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id,id:this.id,value:this.value})])},s.prototype.getFilter=function(){return this.toHTML()},s.prototype.setValue=function(t,e){this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[this.value]),null!=(t=this.config.events)&&t.fire(r.GridEvents.filterChange,[this.value,this.column.id,"inputFilter",e])},s.prototype.clear=function(t){this.setValue("",t)},s.prototype.focus=function(){this._isFocused=!0;var t=null==(t=null==(t=null==(t=null==(t=this.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(this.column.id,"_filter")])?void 0:t.el;t&&null!=(t=t.querySelector("input"))&&t.focus()},s.prototype.blur=function(){this._isFocused=!1;var t=null==(t=null==(t=null==(t=null==(t=this.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(this.column.id,"_filter")])?void 0:t.el;t&&null!=(t=t.querySelector("input"))&&t.blur()},s.prototype.initHandlers=function(){var t,i=this;this._handlers={onchange:function(e){i._inputDelay&&clearTimeout(i._inputDelay),i._inputDelay=setTimeout(function(){var t=(null==(t=e.target)?void 0:t.value)||(null==(t=null==(t=e.composedPath())?void 0:t[0])?void 0:t.value)||(null==(t=e.explicitOriginalTarget)?void 0:t.value);i.setValue(t)},500)},onfocus:function(){i._isFocused=!0},onblur:function(){i._isFocused=!1}},null!=(t=this.config.events)&&t.on(r.GridEvents.scroll,function(){var t,e=null==(t=null==(t=null==(t=null==(t=i.config.events)?void 0:t.context)?void 0:t.getRootView())?void 0:t.refs["".concat(i.column.id,"_filter")])?void 0:t.el;i._isFocused&&e&&(0,n.awaitRedraw)().then(function(){var t;null!=(t=e.querySelector("input"))&&t.focus()})}),null!=(t=this.config.events)&&t.on(r.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!=(t=this.config.events)&&t.on(r.GridEvents.cellMouseDown,function(){return i.blur()})},e.InputFilter=s},function(t,e,i){"use strict";var _=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},v=(Object.defineProperty(e,"__esModule",{value:!0}),e.startResize=void 0,i(1)),m=i(4),y=i(10);e.startResize=function(a,l,t,e){function i(t){var e,i,n=(0,v.findIndex)(u,function(t){return t.id===l}),o=(t.targetTouches?t.targetTouches[0]:t).clientX,r=o-a.getRootNode().getBoundingClientRect().left,s=(0,y.calcScrollBarWidth)(a.config,f);a.config.leftSplit===n+1&&r>=a.config.$width-s.y-2||c&&h.includes(l)&&s.xState!==p||(g=g||u[n].$width,r=u[n].minWidth||40,s=u[n].maxWidth,o=o-d,e=_([],u,!0),o=g+(p&&h.includes(l)?-o:o),s&&s<=o||o<=r?(o<=r&&(i=r),s<=o&&(i=s)):i=o,e[n].$width=i,e[n].$fixed=!0,a.events.fire(m.GridEvents.resize,[u[n],t]),a.paint())}function n(){t.targetTouches?(document.removeEventListener("touchmove",i),document.removeEventListener("touchend",n)):(document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",n)),e()}var o,c=a.config.rightSplit,d=(t.targetTouches&&t.preventDefault(),(t.targetTouches?t.targetTouches[0]:t).clientX),u=a.config.columns.filter(function(t){return!t.hidden}),h=c?u.slice(-c).map(function(t){return t.id}):[],f=!(null==(o=a.scrollView)||!o.config.enable),p=c?(0,y.calcScrollBarWidth)(a.config,f).xState:null,g=0;a.config.$resizing=l,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";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)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.getKeysHandlers=e.selectionMove=void 0,i(4)),d=i(2),a=i(7),l=i(1);function c(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||(0,d.locateNodeByClassName)(t,"dhx_grid-header-cell")||(t&&t.preventDefault(),t=e.selection.getCell(),a=e.config.columns.filter(function(t){return!t.hidden}),t&&("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,t.column.id,r,s),e.scrollTo(l.id.toString(),t.column.id.toString())):0<=(c=e.data.getIndex(t.row.id.toString()))+n&&c+n<e.data.getLength()&&(l=e.data.getItem(e.data.getId(c+n)),e.selection.setCell(l.id,t.column.id,r,s),e.scrollTo(l.id.toString(),t.column.id.toString())):o?(l=1===n?a[a.length-1]:a[0],e.selection.setCell(t.row.id,l.id,r,s),e.scrollTo(t.row.id.toString(),l.id.toString())):0<=(c=a.indexOf(t.column))+n&&c+n<a.length&&(e.selection.setCell(t.row.id,a[c+n].id,r,s),e.scrollTo(t.row.id.toString(),a[c+n].id.toString()))))}function u(t,e){var i,n,o=t.selection.getCell(),r=o&&t.getSpan(o.row.id,o.column.id);return r?"up"===e||"down"===e?(i=(0,l.findIndex)(t.config.data,function(t){return t.id===r.row}),n=(0,l.findIndex)(t.config.data,function(t){return t.id===o.row.id}),"up"===e?i-n-1:i+(r.rowspan||1)-n):(t=t.config.columns.filter(function(t){return!t.hidden}),i=(0,l.findIndex)(t,function(t){return t.id===r.column}),n=(0,l.findIndex)(t,function(t){return t.id===o.column.id}),"left"===e?i-n-1:i+(r.colspan||1)-n):"down"===e||"right"===e?1:-1}e.selectionMove=c,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.refs)?void 0:t.grid_body)?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=(0,d.locateNodeByClassName)(t,"dhx_grid-header-cell");i&&(i=i.getAttribute("data-dhx-id"),t=t.target.getAttribute("dhx_resized"),i)&&(e=o.getColumn(i))&&(0,a.isSortable)(o.config,e)&&!t&&o.events.fire(s.GridEvents.afterSort,[i]),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.events.fire(s.GridEvents.beforeEditStart,[e.row,e.column,"checkbox"])&&(o.events.fire(s.GridEvents.afterEditStart,[e.row,e.column,"checkbox"]),o.events.fire(s.GridEvents.beforeEditEnd,[!e.row[e.column.id],e.row,e.column]))&&o.events.fire(s.GridEvents.afterEditEnd,[!e.row[e.column.id],e.row,e.column]):o.editCell(e.row.id,e.column.id,e.column.editorType)):o.config.$editable&&o.editEnd()},space:function(t){var e,i=o.selection.getCell();n&&(null!=(e=null==i?void 0:i.column.editable)?e:o.config.editable)&&!o.config.$editable&&i&&"boolean"===i.column.type&&(t.preventDefault(),o.events.fire(s.GridEvents.beforeEditStart,[i.row,i.column,"checkbox"]))&&(o.events.fire(s.GridEvents.afterEditStart,[i.row,i.column,"checkbox"]),o.events.fire(s.GridEvents.beforeEditEnd,[!i.row[i.column.id],i.row,i.column]))&&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&&!(0,d.locateNodeByClassName)(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),e=o.selection.getCell(),i=o.config.columns.filter(function(t){return!t.hidden}),e)&&(0<=(n=i.indexOf(e.column)+1)&&n<i.length?(t&&t.preventDefault(),o.selection.setCell(e.row.id,i[n].id),o.scrollTo(e.row.id.toString(),i[n].id.toString())):0<=n&&(n=o.data.getIndex(e.row.id.toString())+1)<o.data.getLength()&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),i[0].id),o.scrollTo(o.data.getId(n).toString(),i[0].id.toString())))},"shift+tab":function(t){var e,i,n;o.config.selection&&!(0,d.locateNodeByClassName)(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),e=o.selection.getCell(),i=o.config.columns.filter(function(t){return!t.hidden}),e)&&(0<=(n=i.indexOf(e.column)-1)&&n<i.length?(t&&t.preventDefault(),o.selection.setCell(e.row.id,i[n].id),o.scrollTo(e.row.id.toString(),i[n].id.toString())):n<o.data.getLength()&&0<=(n=o.data.getIndex(e.row.id.toString())-1)&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),i[i.length-1].id),o.scrollTo(o.data.getId(n).toString(),i[i.length-1].id.toString())))},arrowUp:function(t){c(t,o,"vertical",u(o,"up"))},"ctrl+arrowUp":function(t){c(t,o,"vertical",-1,!0)},"shift+arrowUp":function(t){o.config.multiselection&&c(t,o,"vertical",-1,!1,!1,!0)},"ctrl+shift+arrowUp":function(t){o.config.multiselection&&c(t,o,"vertical",-1,!0,!1,!0)},arrowDown:function(t){c(t,o,"vertical",u(o,"down"))},"ctrl+arrowDown":function(t){c(t,o,"vertical",1,!0)},"shift+arrowDown":function(t){o.config.multiselection&&c(t,o,"vertical",1,!1,!1,!0)},"ctrl+shift+arrowDown":function(t){o.config.multiselection&&c(t,o,"vertical",1,!0,!1,!0)},arrowRight:function(t){c(t,o,"horizontal",u(o,"right"))},"ctrl+arrowRight":function(t){c(t,o,"horizontal",1,!0)},"shift+arrowRight":function(t){o.config.multiselection&&c(t,o,"horizontal",1,!1,!1,!0)},"ctrl+shift+arrowRight":function(t){o.config.multiselection&&c(t,o,"horizontal",1,!0,!1,!0)},arrowLeft:function(t){c(t,o,"horizontal",u(o,"left"))},"ctrl+arrowLeft":function(t){c(t,o,"horizontal",-1,!0)},"shift+arrowLeft":function(t){o.config.multiselection&&c(t,o,"horizontal",-1,!1,!1,!0)},"ctrl+shift+arrowLeft":function(t){o.config.multiselection&&c(t,o,"horizontal",-1,!0,!1,!0)}},e)}},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProGrid=void 0,i(42)),c=i(4),f=i(6),d=i(2),u=i(9),p=i(10),h=i(0),g=i(30),i=(o=l.Grid,r(_,o),_.prototype._createView=function(){var i=this;return(0,h.create)({render:function(t,e){return i._destructed?(0,h.el)("div"):(0,p.proRender)(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},_.prototype._setEventHandlers=function(){var r=this;o.prototype._setEventHandlers.call(this),this.events.on(c.GridEvents.headerCellMouseDown,function(t,e){var i=(0,d.locateNodeByClassName)(e,"dhx_header-row"),i=i&&i.getAttribute("aria-rowindex");null!=(i=t.header[Number(i)-1])&&i.content||(e.targetTouches?r._touch.timer=setTimeout(function(){r._dragStartColumn(e,t)},r._touch.duration):r._dragStartColumn(e,t))}),this._events.on(c.GridSystemEvents.headerCellTouchMove,function(t,e){r._touch.start&&e.preventDefault(),r._clearTouchTimer()}),this._events.on(c.GridSystemEvents.headerCellTouchEnd,function(){r._touch.start=!1,r._clearTouchTimer()}),this.events.on(c.GridEvents.resize,function(){r._parseColumns(),r._setUniqueData(!0)}),this.events.on(c.GridEvents.afterResizeEnd,function(){r.config.autoHeight&&(r.config.data=r.data.map(function(t){var e=(0,u.getMaxRowHeight)(t,r.config.columns);return t.$height=(0,u.getCalculatedRowHeight)(e,{rowHeight:r.config.rowHeight,padding:8}),t}))}),this.events.on(c.GridEvents.afterRowResize,function(t,e,i){var t=r.data.getItem(t.id),n=t.id,o=t.height,t=t.$height;o&&o!==t&&r.data.update(n,{height:i}),r.data.update(n,{$height:i},!0),r.config.data=r.data.map(function(t){return t}),r.paint()}),this.events.on(c.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)})},_.prototype._prepareData=function(t){var e,i=this;return this._adjustColumns(),(Array.isArray(t)||(0,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=(0,u.getMaxRowHeight)(t,i.config.columns),t.$height=(0,u.getCalculatedRowHeight)(e,{rowHeight:i.config.rowHeight,padding:8})||i.config.rowHeight):t.$height=t.height||i.config.rowHeight,t})},_.prototype._prepareDataFromTo=function(t,e,i){var n=this;return t.mapRange(e,i,function(t){var e=(0,u.getMaxRowHeight)(t,n.config.columns);return t.$height=(0,u.getCalculatedRowHeight)(e,{rowHeight:n.config.rowHeight,padding:8})||n.config.rowHeight,t})},_.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)){var e=(0,d.locateNode)(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id"),i=(t.targetTouches&&(this._touch.start=!0),[e]);if(this.config.multiselection&&1<(i=a(a([],i,!0),this.selection.getCells().map(function(t){return t.row.id}),!0)).length){for(var n=this.data.getInitialData(),o={},r=0;r<i.length;r++)!function(t){var e=i[t],t=null==n?void 0:n.findIndex(function(t){return t.id==e});o[t]=e}(r);i=a([],Object.values(o),!0)}return f.dragManager.onMouseDown(t,i,[this._getRowGhost(i)])}}},_.prototype._lazyLoad=function(){var i=this,t=this.data.dataProxy;if(t&&t.config){var e=this.data.getRawData(0,-1,null,2);if(e.length){var n,e=(0,p.getRenderConfig)(this,e,{width:this.config.$width,height:this.config.$height}),o=t.config.limit,r=o,s=e.currentRows,e=s[0],a=s[s.length-1],l=this.data.getIndex(a.id),c=function(t){for(var e=1;e<s.length;e++)if("firstFilledRow"===t&&!s[e].$empty&&s[e-1].$empty||"firstEmptyRow"===t&&s[e].$empty&&!s[e-1].$empty)return i.data.getIndex(s[e].id)};if(e.$empty){if(a.$empty)n=this.data.getIndex(e.id);else for(var d=c("firstFilledRow"),u=d-r,h=u=u<0?0:u;h<d;h++)if(this.data.getItem(this.data.getId(h)).$empty){r=d-(n=h);break}}else a.$empty?n=c("firstEmptyRow"):(n=null!=(u=c("firstEmptyRow"))?u:this.data.getIndex(e.id),r=(null!=(a=c("firstFilledRow"))?a:l)-n);!this.data.isDataLoaded(n,l)&&this.data.events.fire(f.DataEvents.beforeLazyLoad,[])&&(t.updateUrl(null,{from:n,limit:r}),t.config.limit=o,this.data.load(t).then(function(){i.config.autoHeight&&i._prepareDataFromTo(i.data,n,l)}))}}},_.prototype._getColumnGhost=function(t){var e=this._container||(0,d.toNode)(this._uid),i=e.querySelector(".dhx_header-row"),n=i.querySelector('.dhx_grid-header-cell[data-dhx-id="'.concat(t.id,'"]')),i=Array.from(i.childNodes).indexOf(n)+1,n=e.querySelectorAll('.dhx_grid-header-cell[data-dhx-id="'.concat(t.id,'"]:not(.dhx_span-cell)')),t=e.querySelectorAll(".dhx_grid_data .dhx_grid-cell:nth-child(".concat(i,")")),o=document.createElement("div");return n.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),t.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),o},_.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)||(0,d.locateNodeByClassName)(t,"dhx_resizer_grip_wrap")||(t.targetTouches&&(this._touch.start=!0),f.dragManager.onMouseDown(t,[e.id],[this._getColumnGhost(e)]))},_);function _(t,e){var i=o.call(this,t,s({autoHeight:!1},e))||this;return i.scrollView=new g.ScrollView(function(){return i.getRootView()},{scrollHandler:function(t){return i.events.fire(c.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])}}),i}e.ProGrid=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.collectionStore=void 0;o.prototype.setItem=function(t,e){this._store[t]=e},o.prototype.getItem=function(t){return this._store[t]||null};var n=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,o,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=(Object.defineProperty(l,"__esModule",{value:!0}),l.LazyDataProxy=void 0,c(15)),r=c(1),s=c(24),i=(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=(0,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=i}.call(this,c(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var o=i(5),n=i(22),r=i(11),s=i(1);function a(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;(0,s.isId)(n._selected)&&(t=n._data.getNearId(n._selected))!==n._selected&&(n._selected=null,t)&&n.add(t)})}a.prototype.getId=function(){return this._selected},a.prototype.getItem=function(){return(0,s.isId)(this._selected)?this._data.getItem(this._selected):null},a.prototype.remove=function(t){return t=null!=t?t:this._selected,!(0,s.isDefined)(t)||!!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)},a.prototype.add=function(t){this._selected!==t&&!this.config.disabled&&this._data.exists(t)&&(this.remove(),this._addSingle(t))},a.prototype.enable=function(){this.config.disabled=!1},a.prototype.disable=function(){this.remove(),this.config.disabled=!0},a.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]))},e.Selection=a},function(t,e,i){"use strict";var c=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},d=(Object.defineProperty(e,"__esModule",{value:!0}),e.ComposeLayer=void 0,i(0)),u=i(129);function n(){this._data=[],this._sizes={left:20,right:20,top:10,bottom:10}}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}),o=(this._data.forEach(function(t){return!t.scaleReady||t.scaleReady(n)}),0),r=0,s=(t.forEach(function(t){t.seriesShift&&(o+=t.seriesShift(),r++)}),o/r),o=r?(s-o)/2:0,a=(t.forEach(function(t){t.seriesShift&&(t.seriesShift(o),o+=s)}),this._sizes=n,e-n.left-n.right),l=i-n.top-n.bottom,a=(0,d.sv)("g",{transform:"translate(".concat(n.left,", ").concat(n.top,")")},c([(0,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))}),!0)),l=(0,d.sv)("defs",[(0,u.dropShadow)(),(0,u.shadow)()]);return(0,d.sv)("svg",{width:e,height:i,role:"graphics-document"},[l,a])},e.ComposeLayer=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dropShadow=e.shadow=void 0;var n=i(0);e.shadow=function(){return(0,n.sv)("filter",{id:"shadow"},[(0,n.sv)("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[(0,n.sv)("feDistantLight",{azimuth:90,elevation:25})]),(0,n.sv)("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])};e.dropShadow=function(){return(0,n.sv)("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[(0,n.sv)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),(0,n.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,n.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,n.sv)("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),(0,n.sv)("feComposite",{in2:"offsetblur",operator:"in"}),(0,n.sv)("feMerge",[(0,n.sv)("feMergeNode"),(0,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)},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.Legend=void 0,i(6)),r=i(17),v=i(0),D=i(3),m=i(131),O=i(1);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,n){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||"line"===n?20:60}}(this.config.halign,this.config.valign,(0,o.isTreeCollection)(this._data),this.config.form),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])}}}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,a=(s.$sizes={width:0,height:0},(0,D.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){u||"row"!==s.direction||(i=(0,D.getTextWidth)(t.text,a),n<h+i+15&&0!==e&&(h=0,f+=c+2)),d.push((0,v.sv)("g",_(_({transform:"translate(".concat(h,",").concat(f,")"),onclick:[o._handlers.onclick,t.id,o.config.values],onkeyup:[o._handlers.onkeyup,t.id,o.config.values],class:"legend-item ".concat(t.active?"":"not-active")},{role:"button","aria-label":((i=t).active?"Hide chart ":"Show chart ").concat(i.text)}),{tabindex:0}),[(0,v.sv)("text",{x:t.maxValue?0:10,y:0,class:"start-text legend-text"},[(0,D.verticalCenteredText)(t.text)]),[(0,m.legendShape)(s.form,t),!isNaN(t.maxValue)&&!isNaN(t.minValue)&&(0,m.legendTicks)(s.form,t)]]));var i,e="line"!==s.form?15+(0,D.getTextWidth)(t.text,a):0;u||"row"!==s.direction?(h=0,p=e<p?p:e,g=(f+=c+2)<g?g:f):p=(h+=e+c)<p?p:h}),s.valign){case"top":i="row"===s.direction?-l-f-5-("line"===s.form?15:0):"center"===s.halign?5-g:l+5;break;case"middle":i=(t-g)/2+c/2;break;case"bottom":i="row"===s.direction?t+("line"!==s.form?l:10):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-("line"===s.form?500:0))/2;break;case"right":e=!u&&"row"===s.direction?n-p+c+("line"===s.form?-500-l:5):n+l+5}return(0,v.sv)("g",{transform:"translate(".concat(0<e?e:0,", ").concat(i,")"),"aria-label":"Legend",tabindex:0},d)},n.prototype._getData=function(){var i=[];if("scale"===this.config.type){var t=this.config.values,e=t.color,n=t.positiveColor,o=t.negativeColor,r=t.text,s=t.minValue,a=t.maxValue,l=t.tick,c=t.majorTick,d=t.step,t=t.tickTemplate,u=this.setCriticals(),h=u[0],u=u[1];i.push({id:(0,O.uid)(),text:r,alpha:1,fill:e,minValue:null!=s?s:h,maxValue:null!=a?a:u,positiveColor:n,negativeColor:o,active:!0,tick:l,majorTick:c,step:d,tickTemplate:t})}else if(this.config.values){var f=(0,D.locator)(this.config.values.text),p=(0,D.locator)(this.config.values.color);this._data.map(function(t,e){i.push({id:t.id,text:f(t).toString(),alpha:1,fill:p(t).toString()||(0,D.getDefaultColor)(e),active:!t.$hidden})})}else if(this.config.treeSeries){var g=this.config.treeSeries;"groupName"===this.config.type?g.forEach(function(t){i.push({id:t.id,text:t.name||t.id,alpha:1,fill:t.color,active:t.active})}):g.forEach(function(t){var e;i.push({id:t.id,text:(e=t).from&&e.to?"".concat(e.from," - ").concat(e.to):e.less?"<= ".concat(e.less):e.greater?">= ".concat(e.greater):void 0,alpha:1,fill:t.color,active:t.active})})}else for(var _=0,v=g=this.config.$seriesInfo;_<v.length;_++){var m=v[_],y=m.config,x=y.fill,e=y.color,b=y.id,w=y.alpha,C=y.active,S=y.label,y=y.value,E=x&&e,r=S&&"function"==typeof S?S(m.config):S||y;i.push({id:b,text:r,fill:x||e,color:E&&e,active:C,alpha:w})}return i},n.prototype.setCriticals=function(){var e,i,n=this.config.values.value;return this._data.forEach(function(t){t[n]&&(e=!e||t[n]<e?t[n]:e,i=!i||t[n]>i?t[n]:i)}),i=10*Math.ceil(i/10),(e=10*Math.floor(e/10))===i&&(e-=10),[e,i]},e.Legend=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.legendTicks=e.legendShape=void 0;var s=i(1),h=i(0),n={circle:function(t,e,i){return(0,h.sv)("circle",{id:(0,s.uid)(),r:5,fill:e,class:"figure ".concat("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":i,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,i){return(0,h.sv)("rect",{id:(0,s.uid)(),fill:e,"fill-opacity":i,width:10,"stroke-width":2,height:10,class:"figure ".concat("none"!==t?"with-stroke":""),stroke:t,transform:"translate(".concat(-5,", ").concat(-5,")")})},line:function(t,e,i,n){function o(t,e,i){return(0,h.sv)("stop",{offset:"".concat(e,"%"),"stop-color":t,class:t?"":i})}var r="lg"+(0,s.uid)(),e=(0,h.sv)("linearGradient",{id:r},[o(t[1],0,"heat-negative"),o(e,n,"heat-neutral"),o(t[0],100,"heat-positive")]),n=(0,h.sv)("rect",{id:(0,s.uid)(),y:16,fill:"url(#".concat(r,")"),"fill-opacity":i,width:500,"stroke-width":2,height:16,class:"figure figure-line",stroke:t});return(0,h.sv)("g",{id:(0,s.uid)(),width:500,height:16},[e,n])}};e.legendShape=function(t,e){var i;return(i="string"==typeof t?n[t]:i)("line"===t?[e.positiveColor,e.negativeColor]:e.color||"none",e.fill,e.alpha||1,"line"===t&&e.minValue<0?100*Math.abs(e.minValue)/(e.maxValue-e.minValue):0)},e.legendTicks=function(t,e){if("line"===t&&!isNaN(e.maxValue)&&!isNaN(e.minValue)){for(var i=e.maxValue,n=e.minValue,o=e.step,t=e.tick,r=e.majorTick,s=e.tickTemplate,a=t||10,l=(i-n)/a,c=[],d=0;d<=Math.ceil(l/(o||1));d++){var u=0===d?n:(n+a*(o||1)*d).toFixed();c.push(i<u?i:u)}return c=c.map(function(t,e,i){t=(e%(r||1)==0||e===i.length-1)&&(0,h.sv)("text",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:34},s?s(t):t),i=(0,h.sv)("rect",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:18,width:1,height:4});return(0,h.sv)("g",{transform:"translate(0, ".concat(16,")"),class:"legend-tick"},[t,i])})}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(133),o=i(33),i=i(135),n={radial:n.RadialScale,text:i.TextScale,numeric:o.Scale};e.default=n},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=(Object.defineProperty(e,"__esModule",{value:!0}),e.RadialScale=void 0,i(18)),i=i(33),i=(o=i.Scale,r(s,o),s.prototype.paint=function(t,e){var i,n,o,r,s,a=this;return this.config.hidden?null:(i=this.config.zebra,n=this.config.value,o=this.config.showAxis?this._axis.steps:null,r=this._axis.steps.map(function(t){return a.point(t)}),s=this._data.map(function(t){return t[n]}),(0,l.radarScale)({scales:s,axis:r,realAxis:o,zebra:i,attribute: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 o.call(this,t,e,"radial")||this}e.RadialScale=i},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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.AxisCreator=void 0,i(3)),r=[1,2,3,5,10];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()}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((0,o.log10)(e/t)),i=Math.pow(10,i)||1,e=e/i/t;return r[n(n([],r,!0),[e],!1).sort(function(t,e){return t-e}).indexOf(e)]*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((0,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((0,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},e.AxisCreator=a},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),e.TextScale=void 0,i(3)),l=i(33),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},i=(o=l.Scale,r(d,o),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,i,t=this._axis.steps.indexOf(t);return this._padding?(e=.5/(i=this._axis.max+1),i=t/i,this._isXDirection?e+i:1-e-i):this._isXDirection?t/this._axis.max:1-t/this._axis.max},d.prototype.paint=function(i,n){var t,o=this;return this.config.hidden?null:(t=this._axis.steps.map(function(t,e){return[o._isXDirection?o._getAxisPoint(e)*i:o.point(t)*n,t]}),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]}));return u[a](r,t,e,{targetLine:o,dashed:c,grid:l,hidden:d})}}},d.prototype._setDefaults=function(t){this.locator=(0,a.locator)(t.text),this.config=s(s({},{scalePadding:30,textPadding:12,grid:!0,targetLine:null,showText:!0}),t)},d.prototype._getAxisPoint=function(t){var e,i,n=this._axis.max;return this._padding?(e=.5/(i=n+1),i=t/i,this._isXDirection?e+i:1-e-i):this._isXDirection?t/n:1-t/n},d);function d(){return null!==o&&o.apply(this,arguments)||this}e.TextScale=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(62),o=i(64),r=i(137),s=i(138),a=i(36),l=i(139),c=i(140),d=i(141),u=i(142),h=i(143),f=i(144),p=i(145),i=i(146),a={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:p.default,calendarHeatMap:i.default};e.default=a},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),i(64)),i=(o=i.default,r(s,o),s.prototype.addScale=function(t,e){o.prototype.addScale.call(this,"top"===t||"bottom"===t?"left":"top",e)},s.prototype.paint=function(t,e,i){return o.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]);s<i[0]&&(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 ".concat(e," ").concat(t[0]-this.config.barWidth/2,"\nH ").concat(t[1],"\nv ").concat(this.config.barWidth,"\nH ").concat(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(".concat(i," ").concat(e," ").concat(t,")"):""}},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),z=this&&this.__assign||function(){return(z=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=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),G=i(18),Y=i(3),i=i(35),i=(o=i.default,r(s,o),s.prototype.paint=function(M,P){function H(t,e,i){return void 0===i&&(i=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,Y.roundToTwoNumAfterPoint)(i),"%)")}}var L=this,t=this.config,j=t.stroke,e=t.strokeWidth,R=t.useLines,I=t.subType,A=!e||e<1?4:15<e?15:e,F=M<P?M/2:P/2,$=-.25,N=[],V=[],W=[];return 1<this._points.length&&j&&N.push((0,B.sv)("circle",{cx:0,cy:0,r:F-.5,fill:j})),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=(0,G.getCoordinates)($,F,F,1<L._points.length&&j?A/2:null),d=c[0],c=c[1],u=$+n/2,l=($+=n+l,(0,G.getCoordinates)($,F,F,1<L._points.length&&j?-A/2:null)),h=l[0],l=l[1],f=.5<n?1:0,p=(0,G.getCoordinates)(u,F,F),g=-.25<u&&u<.25,_=.5<u||u<0,v=u<.25?5:-5,m=[5,30],y=m[0],x=m[1],m=[(0,G.getCoordinates)(u,F+y,F+y),(0,G.getCoordinates)(u,F+x,F+x)],y=m[0],b=m[1];switch(L.config.subType){case"basic":var w=g?"donut-value-title start-text":"donut-value-title end-text",C=_?-20:10,S=(0,G.getCoordinates)(u,F+10,F+10),E=g?"donut-value start-text":"donut-value end-text",D={text1:{x:(R?b:S)[0],y:(R?b:S)[1]+C,width:0,height:0,class:""},text2:{x:(R?b:S)[0],y:(R?b:S)[1]+C+16,width:0,height:0,class:""},changeSector:!1,line:v,right:g,dy:C},w=(0,B.sv)("text",z(z({x:(R?b:S)[0],y:(R?b:S)[1]+C,class:w},H(o,s,n)),{tabindex:0}),[(0,Y.verticalCenteredText)(s.toString())]),E=(0,B.sv)("text",{x:(R?b:S)[0],y:(R?b:S)[1]+C+16,class:E,"aria-hidden":"true"},[(0,Y.verticalCenteredText)(o.toString())]),O=(0,Y.getSizesSVGText)(s.toString(),{font:"normal 14px Roboto",lineHeight:14}),k=(D.text1.width=O[0],D.text1.height=O[1],O=(0,Y.getSizesSVGText)(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),D.text2.width=O[0],D.text2.height=O[1],R?F+x:F+10),O=(0!==V.length&&(g?(V.forEach(function(t){(0,Y.checkPositions)(D.text1,t.text1,k,k,D),(0,Y.checkPositions)(D.text1,t.text2,k,k,D)}),D.text1.class&&(D.text2.class=D.text1.class)):(V.forEach(function(t){(0,Y.checkPositions)(D.text2,t.text2,k,k,D),(0,Y.checkPositions)(D.text2,t.text1,k,k,D)}),D.text2.class&&(D.text1.class=D.text2.class)),w.attrs.x=D.text1.x,w.attrs.y=D.text1.y,E.attrs.x=D.text2.x,E.attrs.y=D.text2.y,(D.text1.class||D.text2.class)&&(w.attrs.class=D.text1.class,E.attrs.class=D.text2.class),v=D.line,R?(b[0]=D.text1.x,b[1]=D.text1.y-C):(S[0]=D.text1.x,S[1]=D.text1.y-C)),V.push(D),(0,B.sv)("text",z({x:7*p[0]/9,y:7*p[1]/9,class:"pie-inner-value"},H(o,s,n)),[(0,Y.verticalCenteredText)(Math.round(100*n)+"%")]));i.push((0,B.sv)("g",{id:"".concat(r,"-text"),class:"chart donut"},[w,E])),i.push(O);break;case"valueOnly":S=(0,B.sv)("text",z(z({x:7*p[0]/9,y:7*p[1]/9,class:"pie-inner-value"},H(o,s,n)),{tabindex:0}),[(0,Y.verticalCenteredText)("".concat(o))]);i.push(S);break;case"percentOnly":w=(0,B.sv)("text",z(z({x:7*p[0]/9,y:7*p[1]/9,class:"pie-inner-value"},H(o,s,n)),{tabindex:0}),[(0,Y.verticalCenteredText)(Math.round(100*n)+"%")]);i.push(w)}R&&"basic"===I&&(C=_?3:0,i.push((0,B.sv)("path",{d:"M".concat(y[0]," ").concat(y[1]," L").concat(b[0],"\n\t\t\t\t\t\t\t").concat(b[1]+C," h ").concat(v),id:"".concat(r,"-connector"),class:"pie-value-connector chart donut"})));var m=0,y=0,T=A/(2*Math.sin(Math.PI/L._points.length)),T=(1<L._points.length&&j&&(m=(T=(0,G.getCoordinates)(u,T,T))[0],y=T[1]),"M ".concat(d," ").concat(c," A ").concat(F," ").concat(F," 0 ").concat(f," 1 ").concat(h," ").concat(l,"\n\t\t\t\tL ").concat(0+m," ").concat(0+y)),d=(0,G.getCoordinates)(u,4,4),c=d[0],f=d[1],h=(0,B.sv)("path",{d:T,_key:r,fill:a||(0,Y.getDefaultColor)(e),class:"chart donut",onclick:[L._handlers.onclick,t[1],t[2]],onmouseout:[G.pieLikeHandlers.onmouseout],onmouseover:[G.pieLikeHandlers.onmouseover,c,f],role:"presentation"});i.unshift(h),N.push((0,B.sv)("g",{id:r},i)),1===L._points.length?W.push([M/2,P/2]):W.push([.8*p[0]+M/2,.8*p[1]+P/2])}),this._center=[M/2,P/2],this._tooltipData=W,(N=N.concat([])).push((0,B.sv)("circle",{cx:0,cy:0,r:5*F/9,fill:"#FFFFFF",role:"presentation"})),(0,B.sv)("g",z(z({transform:"translate(".concat(M/2,", ").concat(P/2,")")},(t=this.config,{"aria-label":"chart ".concat(t.text||"")})),{tabindex:0}),N)},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),i(1)),q=i(0),U=i(18),K=i(3),i=i(35),i=(o=i.default,r(s,o),s.prototype.paint=function(M,P){var H=this,t=this.config,L=t.stroke,e=t.strokeWidth,j=t.gradient,R=t.useLines,I=t.showText,A=t.showTextTemplate,F=t.subType,$=!e||e<1?4:15<e?15:e,N=M<P?M/2:P/2,V=-.25,W=[],z=[],t=[],B=[],G=[];return 1<this._points.length&&L&&t.push((0,q.sv)("circle",{cx:0,cy:0,r:N-.5,fill:L})),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,e=a||(0,K.getDefaultColor)(e),c=(j&&(a=j(a),c="gradient"+(0,X.uid)(),a=(0,K.getRadialGradient)(a.options,a.stops,c),e="url(#".concat(c,")"),B.push(a)),(0,U.getCoordinates)(V,N,N,1<H._points.length&&L?$/2:null)),a=c[0],c=c[1],d=V+n/2,u=d<.25?5:-5,h=(0,U.getCoordinates)(d,N,N),l=(V+=n+l,(0,U.getCoordinates)(V,N,N,1<H._points.length&&L?-$/2:null)),f=l[0],l=l[1],p=.5<n?1:0,g=[5,30],_=g[0],v=g[1],g=[(0,U.getCoordinates)(d,N+_,N+_),(0,U.getCoordinates)(d,N+v,N+v)],_=g[0],m=g[1],y=-.25<d&&d<.25,x=.5<d||d<0,b=-.25<d&&d<.25?"pie-value start-text":"pie-value end-text";switch((I||A)&&!1!==I&&(g=(0,q.sv)("text",{x:.7*h[0],y:.7*h[1],class:"pie-inner-value","aria-hidden":"true"},[A?(0,K.verticalCenteredText)(A(o.toString())):(0,K.verticalCenteredText)(o.toString())]),i.push(g)),H.config.subType){case"basic":var w=x?-20:10,C=(0,U.getCoordinates)(d,N+10,N+10),S=y?"donut-value start-text":"donut-value end-text",E={text1:{x:(R?m:C)[0],y:(R?m:C)[1]+w,width:0,height:0,class:""},text2:{x:(R?m:C)[0],y:(R?m:C)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:u,right:y,dy:w},D=(0,q.sv)("text",Y({x:(R?m:C)[0],y:(R?m:C)[1]+w,class:b},(D=o,O=n,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(s||"",", ").concat(D," (").concat((0,K.roundToTwoNumAfterPoint)(O),"%)")})),[(0,K.verticalCenteredText)(s.toString())]),O=(0,q.sv)("text",{x:(R?m:C)[0],y:(R?m:C)[1]+w+16,class:S,"aria-hidden":"true"},[(0,K.verticalCenteredText)(o.toString())]),S=(0,K.getSizesSVGText)(s.toString(),{font:"normal 14px Roboto",lineHeight:14}),k=(E.text1.width=S[0],E.text1.height=S[1],S=(0,K.getSizesSVGText)(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),E.text2.width=S[0],E.text2.height=S[1],R?N+v:N+10),S=(0!==W.length&&(y?(W.forEach(function(t){(0,K.checkPositions)(E.text1,t.text1,k,k,E),(0,K.checkPositions)(E.text1,t.text2,k,k,E)}),E.text1.class&&(E.text2.class=E.text1.class)):(W.forEach(function(t){(0,K.checkPositions)(E.text2,t.text2,k,k,E),(0,K.checkPositions)(E.text2,t.text1,k,k,E)}),E.text2.class&&(E.text1.class=E.text2.class)),D.attrs.x=E.text1.x,D.attrs.y=E.text1.y,O.attrs.x=E.text2.x,O.attrs.y=E.text2.y,(E.text1.class||E.text2.class)&&(D.attrs.class=E.text1.class,O.attrs.class=E.text2.class),u=E.line,R?(m[0]=E.text1.x,m[1]=E.text1.y-w):(C[0]=E.text1.x,C[1]=E.text1.y-w)),W.push(E),(0,q.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,K.verticalCenteredText)(Math.round(100*n)+"%")]));i.push((0,q.sv)("g",{id:"".concat(r,"-text"),class:"chart donut"},[D,O])),i.push(S);break;case"valueOnly":C=(0,q.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,K.verticalCenteredText)("".concat(o))]);i.push(C);break;case"percentOnly":D=(0,q.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,K.verticalCenteredText)(Math.round(100*n)+"%")]);i.push(D)}R&&"basic"===F&&(w=x?3:0,i.push((0,q.sv)("path",{d:"M".concat(_[0]," ").concat(_[1]," L").concat(m[0],"\n\t\t\t\t\t\t\t").concat(m[1]+w," h ").concat(u),id:"".concat(r,"-connector"),class:"pie-value-connector chart pie"})));var g=0,_=0,T=$/(2*Math.sin(Math.PI/H._points.length)),T=(1<H._points.length&&L&&(g=(T=(0,U.getCoordinates)(d,T,T))[0],_=T[1]),"M ".concat(a," ").concat(c," A ").concat(N," ").concat(N," 0 ").concat(p," 1 ").concat(f," ").concat(l,"\n\t\t\t\tL ").concat(0+g," ").concat(0+_)),a=(0,U.getCoordinates)(d,4,4),c=a[0],p=a[1],f=(0,q.sv)("path",{d:T,class:"chart pie",_key:r,fill:e,onclick:[H._handlers.onclick,t[1],t[2]],onmouseover:[U.pieLikeHandlers.onmouseover,c,p],onmouseout:[U.pieLikeHandlers.onmouseout],role:"presentation"});i.unshift(f),G.push((0,q.sv)("g",{id:r},i)),1===H._points.length?z.push([M/2,P/2]):z.push([.7*h[0]+M/2,.7*h[1]+P/2])}),this._center=[M/2,P/2],this._tooltipData=z,t.push((0,q.sv)("defs",B)),t=(t=t.concat(G)).concat([]),(0,q.sv)("g",Y(Y({transform:"translate(".concat(M/2,", ").concat(P/2,")")},(e=this.config,{"aria-label":"chart ".concat(e.text||"")})),{tabindex:0}),t)},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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)},Y=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),X=i(18),q=i(3),i=i(35),i=(o=i.default,r(s,o),s.prototype.paint=function(M,P){var H=this,t=this.config,L=t.subType,j=t.useLines,R=t.showText,I=t.showTextTemplate,A=M<P?M/2:P/2,F=.5*A,$=A/5,N=[],V=-.25,W=[],z=[],B=[];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=(0,X.getCoordinates)(V,A,F),c=l[0],l=l[1],d=V+i/2,u=d<.25?5:-5,h=(0,X.getCoordinates)(d,A,F),f=0,p=(0<d&&d<.5&&(f=$*Math.sin(2*Math.PI*d)),(0,X.getCoordinates)(d,A+5+f,5+F+f)),g=(0,X.getCoordinates)(d,A+30+f,30+F+f),a=V+i+a,_=(0,X.getCoordinates)(a,A,F),v=_[0],_=_[1],m=.5<i?1:0,y=-.25<d&&d<.25,x=.5<d||d<0,b=y?"pie-value start-text":"pie-value end-text";switch(H.config.subType){case"basic":var w=x?-20:10,C=y?"donut-value start-text":"donut-value end-text",S={text1:{x:(j?g:p)[0],y:(j?g:p)[1]+w,width:0,height:0,class:""},text2:{x:(j?g:p)[0],y:(j?g:p)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:u,right:y,dy:w},E=(0,Y.sv)("text",G({x:(j?g:p)[0],y:(j?g:p)[1]+w,dx:j?0<u/2+u?10:-10:null,class:b},(E=n,D=i,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(r||"",", ").concat(E," (").concat((0,q.roundToTwoNumAfterPoint)(D),"%)")})),[(0,q.verticalCenteredText)(r.toString())]),D=(0,Y.sv)("text",{x:(j?g:p)[0],y:(j?g:p)[1]+w+16,dx:j?0<u/2+u?10:-10:null,class:C,"aria-hidden":"true"},[(0,q.verticalCenteredText)(n.toString())]),C=(0,Y.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,q.verticalCenteredText)(Math.round(100*i)+"%")]),O=(0,q.getSizesSVGText)(r.toString(),{font:"normal 14px Roboto",lineHeight:14}),k=(S.text1.width=O[0],S.text1.height=O[1],O=(0,q.getSizesSVGText)(n.toString(),{font:"normal 12px Roboto",lineHeight:12}),S.text2.width=O[0],S.text2.height=O[1],j?A+30+f:A+5+f),T=j?30+F+f:5+F+f;0!==B.length&&(y?(B.forEach(function(t){(0,q.checkPositions)(S.text1,t.text1,k,T,S),(0,q.checkPositions)(S.text1,t.text2,k,T,S)}),S.text1.class&&(S.text2.class=S.text1.class)):(B.forEach(function(t){(0,q.checkPositions)(S.text2,t.text2,k,T,S),(0,q.checkPositions)(S.text2,t.text1,k,T,S)}),S.text2.class&&(S.text1.class=S.text2.class)),E.attrs.x=S.text1.x,E.attrs.y=S.text1.y,D.attrs.x=S.text2.x,D.attrs.y=S.text2.y,(S.text1.class||S.text2.class)&&(E.attrs.class=S.text1.class,D.attrs.class=S.text2.class),u=S.line,j?(g[0]=S.text1.x,g[1]=S.text1.y-w):(p[0]=S.text1.x,p[1]=S.text1.y-w)),B.push(S),z.push(E,D,C);break;case"valueOnly":O=(0,Y.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,q.verticalCenteredText)(n.toString())]);z.push(O);break;case"percentOnly":w=(0,Y.sv)("text",{x:.5*h[0],y:.5*h[1],class:"pie-inner-value","aria-hidden":"true"},[(0,q.verticalCenteredText)(Math.round(100*i)+"%")]);z.push(w)}j&&"basic"===L&&z.push((0,Y.sv)("path",{d:"M".concat(p[0]," ").concat(p[1]," L").concat(g[0]," ").concat(g[1]," h ").concat(u),class:"pie-value-connector"})),(R||I)&&!1!==R&&(d=(0,Y.sv)("text",{x:.7*h[0],y:.7*h[1],class:"pie-inner-value","aria-hidden":"true"},[I?(0,q.verticalCenteredText)(I(n)):(0,q.verticalCenteredText)(n.toString())]),z.push(d));var d="",d=(V<=0&&.5<=a?d="M ".concat(A," 0 v ").concat($," A ").concat(A," ").concat(F," 0 1 1 ").concat(-A," ").concat($," v ").concat(-$):V<=0&&a<.5?d="M ".concat(A," 0 v ").concat($," A ").concat(A," ").concat(F," 0 0 1 ").concat(v," ").concat(_+$," v ").concat(-$):0<V&&V<=.5&&.5<=a?d="M ".concat(c," ").concat(l," v ").concat($," A ").concat(A," ").concat(F," 0 0 1 ").concat(-A," ").concat($," v ").concat(-$):0<V&&a<.5&&(d="M ".concat(c," ").concat(l," v ").concat($," A ").concat(A," ").concat(F," 0 0 1 ").concat(v," ").concat(_+$," v ").concat(-$)),d&&(d=(0,Y.sv)("path",{_key:o+"__shadow__",d:d,fill:s||(0,q.getDefaultColor)(e),onclick:[H._handlers.onclick,t[1],t[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"}),W.push(d)),"M ".concat(c," ").concat(l," A ").concat(A," ").concat(F," 0 ").concat(m," 1 ").concat(v," ").concat(_," L 0 0"));W.push((0,Y.sv)("path",{d:d,_key:o,fill:s||(0,q.getDefaultColor)(e),stroke:"none",onclick:[H._handlers.onclick,t[1],t[2]],class:"chart pie3d",role:"presentation"})),1===H._points.length?N.push([M/2,P/2]):N.push([.7*h[0]+M/2,.7*h[1]+P/2]),V=a}),this._center=[M/2,P/2],this._tooltipData=N,W=W.concat(z),(0,Y.sv)("g",G(G({transform:"translate(".concat(M/2,", ").concat(P/2,")")},(t=this.config,{"aria-label":"chart ".concat(t.text||"")})),{tabindex:0}),W)},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,r,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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),c=i(18),l=i(3),i=i(19),i=(r=i.default,o(d,r),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,r=this;return this.config.active?(o=(0,l.locator)(this._scale.config.value),this._points=this._data.map(function(t,e){var i=r._locator(t),i=[i,i,t.id,i,i];return n&&(i[1]+=n[e][1]),o&&i.push(o(t)),i}),this._points):this._points=[]},d.prototype.getTooltipText=function(t){if(this.config.tooltip)return t=this._defaultLocator(this._data.getItem(t)),this.config.tooltipTemplate?this.config.tooltipTemplate(t):t},d.prototype.paint=function(t,e){var i,o=this;r.prototype.paint.call(this,t,e);if(this.config.active)return t=this.config,e=[],i=this._points.map(function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])}).join(" ")+"Z",e.push((0,a.sv)("path",{d:i,stroke:t.color,"stroke-width":t.strokeWidth,fill:t.fill,"fill-opacity":t.alpha,class:"chart radar"})),t.pointType&&(i=this._points.map(function(t){return o._drawPointType(t[0],t[1],(0,l.calcPointRef)(t[2],o.id))}).map(function(t){var e,i,n;return t&&t.attrs&&(t.attrs=s(s({},t.attrs),(e=t.key,i=o._points,{role:"graphics-symbol","aria-roledescription":"point","aria-label":(n=e?i.find(function(t){return e.includes(t[2])}):n)?"point x=".concat(n[5]," y=").concat(n[4]):"",tabindex:0}))),t}),e.push((0,a.sv)("g",i))),(0,a.sv)("g",s(s({id:"seria"+t.id},(i=this.config,{"aria-label":"chart ".concat(i.value||"")})),{tabindex:0}),e)},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=(0,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=(0,l.locator)(t.value),t.scales=t.scales||["radial"],this.config=s(s({},{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!==r&&r.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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=(Object.defineProperty(e,"__esModule",{value:!0}),i(36)),l=i(3),i=(o=a.default,r(c,o),c.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=(0,l.locator)(this.config.value)):(this.yScale=e,this._yLocator=(0,l.locator)(this.config.valueY))},c.prototype._setDefaults=function(t){this.config=s(s({},{active:!0,tooltip:!0,pointType:"rect"}),t);var t=this.config.pointType,e=this.config.pointColor||this.config.color;t&&(this._drawPointType=this._getPointType(t,e))},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),l=i(65),i=i(36),i=(o=i.default,r(s,o),s.prototype._getForm=function(t,e,i,n,o){var r=e.color,s=e.strokeWidth,t=(0,l.default)(t);return(0,a.sv)("path",{id:"seria"+e.id,d:t,class:i,stroke:r,"stroke-width":s,fill:"none"})},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=(Object.defineProperty(e,"__esModule",{value:!0}),i(0)),f=i(65),i=i(62),i=(o=i.default,r(s,o),s.prototype._form=function(t,e,i,n){var o=this.config,r=o.fill,s=o.alpha,a=o.strokeWidth,l=o.color,o=o.id,c=this.config.css,d="",u=this._points[0],d=n?"".concat((0,f.default)([].concat(n).reverse())," ").concat((0,f.default)(this._points,!0)," Z"):"M".concat(u[0]," ").concat(e," V ").concat(u[1]," ").concat((0,f.default)(this._points)," V").concat(e," H ").concat(u[0]),u=(a&&(n=(0,f.default)(this._points),e=(0,h.sv)("path",{d:n,"stroke-width":a,stroke:l,fill:"none","stroke-linecap":"butt",class:c}),i.push(e)),(0,h.sv)("path",{id:"seria"+o,d:d,class:c,fill:r,"fill-opacity":s,stroke:"none"}));return i.push(u),i},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),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)},C=(Object.defineProperty(e,"__esModule",{value:!0}),i(1)),S=i(0),s=i(6),E=i(3),a=i(17),i=i(19),i=(o=i.default,r(l,o),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,a=this;return this.config.active?(s="groupName"===this.config.legendType,this._sum=0,this._data.forEach(function(t){var e,i=a._data.getItem(a._data.getParent(t.id));i&&i.$hidden&&1<a._maxLevel||(i=a._valueLocator(t))&&(e=a._getSerie(s?t.id:i,s),t.color=(e||t).color,t.$hidden=!!e&&!e.active,!t.$hidden)&&i&&(a._sum+=parseFloat(t[a.config.value]))}),this._points=[],this._data.eachChild(this._data.getRoot(),function(t){var o,e,r,i;t.$hidden||(o=a._valueLocator(t),e=a._textLocator(t),r=[],!o&&a._data.haveItems(t.id)&&(o=0,a._data.eachChild(t.id,function(t){var e,i,n;t.$hidden||(e=a._valueLocator(t),i=a._textLocator(t),n=t.color||(null==(n=a._getSerie(s?t.id:e,s))?void 0:n.color),e&&(o+=e),r.push([0,e,t.id,i,n]))})),t.percent=parseFloat(o)/a._sum,i=t.color||(null==(i=a._getSerie(s?t.id:o,s))?void 0:i.color),a._points.push([t.percent,o,t.id.toString(),e,i,{items:r}]))},!1),this._maxLevel=this._getMaxLevel(),this._points):this._points=[]},l.prototype.paint=function(t,e){var f,p,g,i,_,v,n,m=this;if(!!this.config.treeSeries.find(function(t){return t.active}))return f=this.config.strokeWidth,p=[],g=[],i=[],n=t-(t=1<this._maxLevel?2*f:f),e=e-t,this._layout={id:(0,C.uid)(),area:n*e,width:n,height:e,restArea:n*e,restWidth:n,restHeight:e,startX:t/2,startY:t/2,stroke:t},_=this._layout.startX,v=this._layout.startY,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=e[0],u=(e[1],e[2]),h=(e[3],e[4],e[5]);0!==d&&(i=(t=m._drawBar(e,t,i,m._layout,_,v,!(!h||null==(d=h.items)||!d.length)))[0],d=t[1],n=t[2],o=t[3],r=t[4],s=t[5],t=t[6],_=s[0],v=s[1],g.push((0,S.sv)("g",{id:u},[i,d,t])),p.push(n),h&&null!=(u=h.items)&&u.length&&(i=s[2]-f,d=s[3]-f,a={id:(0,C.uid)(),parent:m._layout.id,area:i*d,width:i,height:d,restArea:i*d,restWidth:i,restHeight:d,startX:_+f/2,startY:v+f/2+("asc"!==m.config.direction&&t?f/2:0),stroke:f},l=a.startX,c=a.startY,a.width>=a.height?a.cols=[]:a.rows=[],h.items.map(function(t){return t[0]=t[1]/e[1]}),h.items.sort(function(t,e){return e[0]-t[0]}),h.items.forEach(function(t,e,i){var n=t[2],t=m._drawBar(t,e,i,a,l,c,!1),e=t[0],i=t[1],o=t[2],r=t[3],t=t[4];g.push((0,S.sv)("g",{id:n},[e,i])),p.push(o),l=r,c=t})),_=o,v=r)}),i.push((0,S.sv)("defs",p)),i=i.concat(g),(0,S.sv)("g",w(w({id:"seria"+this.config.id},(n=this.config,{"aria-label":"chart ".concat(n.text||"")})),{tabindex:0,transform:"asc"===this.config.direction?"rotate(180 ".concat(this._layout.startX+this._layout.width/2," ").concat(this._layout.startY+this._layout.height/2,")"):""}),i)},l.prototype._drawBar=function(t,e,i,n,o,r,s){var a,l=this,c=t[0],d=t[1],u=t[2],h=t[3],f=t[4],p=this.config,g=p.stroke,_=p.showText,p=p.showTextTemplate,v=c*n.area,m=this._getDeepParent(n),y=s&&0<c&&h,x=n.startX+n.width-m.restWidth,b=n.startY+n.height-m.restHeight,m=this._getBar(m,v,o=x<o?x:o,r=b<r?b:r,i,e,n.area),x=m[0],o=m[1],b=m[2],r=m[3],m=m[4];if(!(x[2]<0||x[3]<0))return this._recountParentArea(v,m,n),v=y?(0,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:g,"stroke-width":n.stroke/2,class:"treeMap-header",_key:u,onclick:function(){return l._toggleGroup(u)}}):null,m=y?(0,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 ".concat(x[0]+x[2]/2," ").concat(x[1]+x[3]-this._headerHeight/2-n.stroke/2,")"):""},[p?(0,E.verticalCenteredText)(p(null==h?void 0:h.toString())):(0,E.verticalCenteredText)(null==h?void 0:h.toString())]):null,y=s&&0<c&&h?(0,S.sv)("g",{},[v,m]):null,v=p?p(null==h?void 0:h.toString()):null==h?void 0:h.toString(),m=(0,E.getSizesSVGText)(v,{font:"normal 12px Roboto",lineHeight:14})[0]<x[2]-2*n.stroke,p=(0,C.uid)(),a=x[2]>2*n.stroke&&x[3]>2*n.stroke?(0,S.sv)("clipPath",{id:p,"clip-rule":"nonzero"},[(0,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,h=(0,S.sv)("rect",w(w({},(d=d,c=c,{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":"".concat(h||"",", ").concat(d," (").concat((0,E.roundToTwoNumAfterPoint)(c),"%)")})),{x:x[0],y:x[1],width:x[2],height:x[3],stroke:g,"stroke-width":n.stroke,class:"chart treeMap",_key:u,fill:f,onclick:[this._handlers.onclick,t[1],t[2]],onmousemove:1<this._maxLevel&&1===this._getDataLevel(u)?"":[this._handlers.onmousemove,i[e][2],this.id],onmouseleave:1<this._maxLevel&&1===this._getDataLevel(u)?"":[this._handlers.onmouseleave,i[e][2],this.id]})),d=_?(0,S.sv)("text",{x:m?o[0]:x[0]+n.stroke,y:o[1],class:"treeMap-inner-value ".concat(m?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'.concat(p,'")'),transform:"asc"===this.config.direction?"rotate(180 ".concat(o[0]," ").concat(o[1],")"):""},[(0,E.verticalCenteredText)(v)]):null,s&&y&&(x[1]+="asc"===this.config.direction?0:this._headerHeight,x[3]-=this._headerHeight+n.stroke/4),[h,d,a,b,r,x,y]},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?(r={id:(o=void 0,C.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:(0,C.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=(0,C.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:(0,C.uid)(),area:e,width:v,height:m},t[_]&&t.restArea.toFixed(2)>e.toFixed(2)?(a=(0,C.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-v:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-m})[g]=[r],s)),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=w(w({},{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=(0,E.locator)(t.value),this._textLocator=(0,E.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){var e;return n?(e=o._data.getParent(i),t.id===e||t.id===i):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.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((e=void 0===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!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";var n,o,r=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)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},v=(Object.defineProperty(e,"__esModule",{value:!0}),i(1)),D=i(13),O=i(0),m=i(6),l=i(3),i=i(19),i=(o=i.default,r(c,o),c.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},c.prototype.dataReady=function(){for(var a,l,c=this,d=[],t=(this._years=[],this._points=[],this.config.startDate&&(a="string"==typeof this.config.startDate?(0,D.stringToDate)(this.config.startDate,this.config.dateFormat):this.config.startDate),(null==(l=this.config.endDate?"string"==typeof this.config.endDate?(0,D.stringToDate)(this.config.endDate,this.config.dateFormat):this.config.endDate:l)?void 0:l.getTime())<(null==a?void 0:a.getTime())&&(0,m.dhxError)("Incorrect endDate/startDate property set, see docs: https://docs.dhtmlx.com/suite/chart/api/chart_series_config"),this._data.forEach(function(t){var i=Number(c._valueLocator(t)),n=c._dateLocator(t),e=null==(n="string"==typeof n?(0,D.stringToDate)(n,c.config.dateFormat):n)?void 0:n.getTime(),t=(null==(t=t.id)?void 0:t.toString())||(0,v.uid)();if(a||l){var o=D.DateHelper.dayStart(n).getTime(),r=a&&D.DateHelper.dayStart(a).getTime()||0,s=l&&D.DateHelper.dayStart(l).getTime()||1/0;if(o<r||s<o)return}r=d.findIndex(function(t){var e=t[0],t=t[1],e=D.DateHelper.isSameDay(new Date(e),n);return e&&(i+=t),e});-1<r&&(d[r]=[e,i,t]),i&&(c._minValue=!c._minValue||i<c._minValue?i:c._minValue,c._maxValue=!c._maxValue||i>c._maxValue?i:c._maxValue),r<0&&d.push([e,i,t])}),d.sort(function(t,e){return t[0]-e[0]}),this._minValue===this._maxValue&&(this._minValue-=10),this._maxValue=!isNaN(this.config.maxValue)&&this.config.maxValue||this._maxValue,this._minValue=!isNaN(this.config.minValue)&&this.config.minValue||this._minValue,this._maxValue=10*Math.ceil(this._maxValue/10),this._minValue=10*Math.floor(this._minValue/10),a||new Date(d[0][0])),e=l||new Date(d[d.length-1][0]),i=t.getFullYear(),n=e.getFullYear(),o=(this.config.startDate||this.config.endDate?this.config.startDate&&!this.config.endDate?(t=new Date(t.getFullYear()+1,t.getMonth(),t.getDate()-1),e.getTime()>t.getTime()&&t.setFullYear(e.getFullYear()+1),n=(l=t).getFullYear()):!this.config.startDate&&this.config.endDate&&(a=new Date(i,0,1)):(n=e.getFullYear(),a=new Date(i,0,1),l=new Date(n,11,31)),0),r=new Date(a.getTime()),s=new Date(l.getFullYear(),l.getMonth(),l.getDate()+1);!D.DateHelper.isSameDay(r,s);){var u=d.length&&new Date(d[o][0]),h=function(){return r.setDate(r.getDate()+1)};if(d.length)if(o<d.length-1){for(;!D.DateHelper.isSameDay(r,u);)this._points.push([r.getTime(),0,(0,v.uid)()]),h();this._points.push(d[o]),o+=1}else D.DateHelper.isSameDay(r,u)?this._points.push(d[o]):this._points.push([r.getTime(),0,(0,v.uid)()]);else this._points.push([r.getTime(),0,(0,v.uid)()]);h()}for(var f=new Date,p=a.getMonth(),g=a.getDate(),_=0;_<this._points.length;_++)f.setTime(this._points[_][0]),(0===_||p===f.getMonth()&&g===f.getDate()&&_!==this._points.length-1)&&this._years.push({year:f.getFullYear(),startIndex:_});return this._points},c.prototype.paint=function(t,e){var y,x,b=this,i=this.config,n=i.days,w=i.months;switch(this.config.weekStart){case"saturday":y=-1;break;case"monday":y=1;break;default:y=0}switch(this.config.weekStart){case"saturday":x=a([null==n?void 0:n[6]],n.slice(0,-1),!0);break;case"monday":x=a(a([],n.slice(1),!0),[null==n?void 0:n[0]],!1);break;default:x=n}var o,C=[],i=[],S=0,E=0,e=(this._years.forEach(function(t,i){for(var e=t.year,t=t.startIndex,n=new Date(e,0,1),o=[],r=[],s=0,a=1,l=t;l<b._points.length&&l!==(null==(c=b._years[i+1])?void 0:c.startIndex);l++){var c=b._points[l],d=c[0],u=c[1],h=c[2],f=new Date,d=(f.setTime(d),f.getMonth()),p=D.DateHelper.addDay(f,-1*y).getDay(),g=(0!==p||D.DateHelper.isSameDay(n,f)||(a+=1),0<=u?u/b._maxValue||0:u/b._minValue||0),_=(0<b._maxValue*b._minValue&&(g=(u-b._minValue)/(b._maxValue-b._minValue)),10+a*(b._cellSize+2)),v=.5+(p+1)*(b._cellSize+2)+i*(x.length*b._cellSize+b._headerHeight),p=(6===p&&(E=v+4*b._cellSize),o.push((0,O.sv)("rect",{x:_,y:v,fill:b.config.color,width:b._cellSize,height:b._cellSize,onclick:[b._handlers.onclick,u,h],onmousemove:[b._handlers.onmousemove,h,b.id],onmouseleave:[b._handlers.onmouseleave,h,b.id],class:b.config.color?"":"heat-neutral"},[])),"");0<=u&&!b.config.positiveColor?p="heat-positive":u<0&&!b.config.negativeColor&&(p="heat-negative"),0!==g&&o.push((0,O.sv)("rect",{x:_,y:v,fill:0<=u?b.config.positiveColor:b.config.negativeColor,"fill-opacity":isFinite(g)?g:0,width:b._cellSize,height:b._cellSize,onclick:[b._handlers.onclick,u,h],onmousemove:[b._handlers.onmousemove,h,b.id],onmouseleave:[b._handlers.onmouseleave,h,b.id],class:p},[])),s=_+b._cellSize,1===f.getDate()&&(v=null==w?void 0:w[d],g=10+a*(b._cellSize+2),u=b._cellSize-2+i*(x.length*b._cellSize+b._headerHeight)+x.length*(b._cellSize+2)+4.5,h=(0,O.sv)("text",{x:g,y:8+u+12.5,class:"start-text"},[v]),p=(0,O.sv)("rect",{x:g,y:u,height:8,width:1}),r.push((0,O.sv)("g",{class:"heat-month-text"},[p,h])))}var t=x.map(function(t,e){return(0,O.sv)("text",{x:20,y:.5+(e+1)*(b._cellSize+2)+b._cellSize/2+i*(x.length*b._cellSize+b._headerHeight),class:"end-text heat-day-text"},[(0,O.sv)("tspan",{dy:"0.5ex"},[t])])}),m=(0,O.sv)("text",{x:10+b._cellSize+2,y:b._cellSize-4+i*(x.length*b._cellSize+b._headerHeight),class:"start-text heat-year-text"},[e]);C.push((0,O.sv)("g",{id:"".concat(e,"_year")},[m,r,t,o])),S=s<S?S:s}),i.push((0,O.sv)("defs",[])),i=i.concat(C),e/E<1?e/E:1),t=(t-S*e)/2;return(0,O.sv)("g",s(s({id:"seria"+this.config.id},(o=this.config,{"aria-label":"chart ".concat(o.text||"")})),{tabindex:0,transform:"translate(".concat(0<t?t:0,", 26) scale(").concat(e,")")}),i)},c.prototype._setDefaults=function(t){this.config=s(s({},{tooltip:!0,paddings:5,weekStart:"sunday",days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),t),this._headerHeight=70,this._cellSize=16,this._valueLocator=(0,l.locator)(t.value),this._dateLocator=(0,l.locator)(t.date)},c.prototype._defaultLocator=function(t){return[this._valueLocator(t),(0,D.getFormattedDate)("%d/%m/%y",this._dateLocator(t))]},c);function c(){return null!==o&&o.apply(this,arguments)||this}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(0);function n(){this._series=[]}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()}),(0,l.sv)("g",s.concat(a))},e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0;var g=i(43),s=i(3),_=i(63),n=i(17);function o(t){this._chart=t,this._initEvents()}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=(0,_.getShadeHTMLHelper)("empty"!==u.config.pointType&&u.config.pointType?u.config.pointType:"simpleRect",f),s+='<div class="line-point" _ref="dhx_tooltip_'.concat(u.config.id,'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">').concat(f(4,4,h[0][2]),'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_').concat(u.config.id,'_text">').concat(p.text,"</span>\n\t\t\t</div>"))}s&&(this._tooltip||this._createTooltip(),r=document.body.offsetHeight,e=document.body.offsetWidth,this._tooltip.innerHTML=s,this._tooltip.classList.add("dhx_chart_tooltip__visible"),t=l/t.length,i=this._prevLine.getBoundingClientRect(),o=this._tooltip.offsetHeight,n=this._tooltip.offsetWidth,r<(t=t-o/2+i.top+window.scrollY)+o&&(t-=t+o-r),e<(o=i.left+10)+n&&(o=i.left-n-10),(r=(0,g.getZIndex)(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=o+"px",this._tooltip.style.top=t+"px")},o.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var i=document.body.offsetHeight,n=document.body.offsetWidth,t=(this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible"),this._tooltip.offsetHeight),o=this._tooltip.offsetWidth,r=e.pageY+10,s=e.pageX+10,i=(i<r+t&&(r=e.pageY-t),n<s+o&&(s=e.pageX-o-10),(0,g.getZIndex)(this._chart.getRootNode()));i&&(this._tooltip.style.zIndex=i.toString()),this._tooltip.style.left=s+"px",this._tooltip.style.top=r+"px"},o.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e,i,n,o=this._chart.getSeries(t[4]);o&&(o=o.getTooltipText(t[3]))&&(n=this._chart._layers.getSizes(),e=this._chart.getRootNode().getBoundingClientRect(),this._tooltip.innerHTML=o,this._tooltip.classList.add("dhx_chart_tooltip__visible"),o=document.body.offsetHeight,i=this._tooltip.offsetHeight,o<(o=o<(o=t[2]+e.top+i/2+n.top-("radar"===this._chart.config.type?10:15))+i?t[2]+e.top-i/2+n.top-("radar"===this._chart.config.type?10:15):o)+i&&this._tooltip.classList.remove("dhx_chart_tooltip__visible"),(n=(0,g.getZIndex)(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=n.toString()),this._tooltip.style.left=e.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||(e=t.getClosest(n,o),s[0]>e[0]&&(s[0]=e[0],s[1]=e[1],s[2]=e[2],s[3]=e[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),n=n&&n.refs&&n.refs[(0,s.calcPointRef)(t,e)].el;null!=n&&n.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&&"calendarHeatMap"!==n.config.type&&null!=(i=i&&i.refs&&i.refs[(0,s.calcPointRef)(t,e)].el)&&i.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")})},e.Tooltip=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)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.Exporter=void 0,i(2));function n(t,e){this._name=t,this._view=e,this._version="8.2.6"}n.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},n.prototype.png=function(t){this._rawExport(t,"png",this._view)},n.prototype._rawExport=function(t,e,i){(t=void 0===t?{}:t).url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e&&(e=t.pdf||{},t.pdf=r(r({},e),{printBackground:!1}));var e="",n=i.config.exportStyles,n=(!0===(n="boolean"!=typeof t.exportStyles&&!Array.isArray(t.exportStyles)?n:t.exportStyles)?e="".concat((0,s.getPageLinksCss)(),"<style>").concat((0,s.getPageInlineCss)(),"</style>"):null!=n&&n.length&&(e="".concat((0,s.getPageLinksCss)(n))),document.createElement("div")),i=(n.setAttribute("style","display: none;"),i.getRootView().node.el.cloneNode(!0)),i=(i.setAttribute("data-dhx-theme",t.theme||"light"),n.appendChild(i),"\n\t\t\t".concat(e,"\n\t\t\t").concat(n.innerHTML,"\n\t\t")),o=document.createElement("form");o.setAttribute("method","POST"),o.setAttribute("action",t.url),o.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',o.childNodes[0].value=i,o.childNodes[1].value=JSON.stringify(t),document.body.appendChild(o),o.submit(),null!=(e=n.parentNode)&&e.removeChild(n),setTimeout(function(){var t;null!=(t=o.parentNode)&&t.removeChild(o)},100)},e.Exporter=n}],n={},o.m=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){var e;return(n[t]||(e=n[t]={i:t,l:!1,exports:{}},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}
|