dhx-chart 8.1.7 → 8.1.8
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 +3 -3
- package/codebase/types/ts-grid/sources/Grid.d.ts +2 -1
- package/package.json +1 -1
- package/readme.txt +1 -1
- package/whatsnew.txt +3 -0
package/codebase/chart.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
3
|
|
|
4
|
-
dhtmlxChart v.8.1.
|
|
4
|
+
dhtmlxChart v.8.1.8 GPL
|
|
5
5
|
|
|
6
6
|
This software is covered by GPL license.
|
|
7
7
|
To use it in non-GPL project, you need obtain Commercial or Enterprise license
|
|
@@ -9,7 +9,7 @@ Please contact sales@dhtmlx.com. Usage without proper license is prohibited.
|
|
|
9
9
|
(c) XB Software.
|
|
10
10
|
|
|
11
11
|
*/
|
|
12
|
-
if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dhx=e():t.dhx=e()}(window,function(){return n={},o.m=i=[function(t,o,r){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!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?o.el("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n(function(){return e(t)}).observe(t.el)}}}):o.el("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return e(t)},e(t)}}})}o.el=e.defineElement,o.sv=e.defineSvgElement,o.view=e.defineView,o.create=e.createView,o.inject=e.injectView,o.KEYED_LIST=e.KEYED_LIST,o.disableHelp=function(){e.DEVMODE.mutations=!1,e.DEVMODE.warnings=!1,e.DEVMODE.verbose=!1,e.DEVMODE.UNKEYED_INPUT=!1},o.resizer=i,o.resizeHandler=function(t,e){return o.create({render:function(){return i(e)}}).mount(t)},o.awaitRedraw=function(){return new t(function(t){requestAnimationFrame(function(){t()})})},o.setTheme=function(t,e){void 0===t&&(t="light");var i="data-dhx-theme";e||document.querySelectorAll("["+i+"]").forEach(function(t){return t.removeAttribute(i)}),e=e||document.documentElement,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)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(2),n=(new Date).valueOf();e.uid=function(){return"u"+n++},e.extend=function t(e,i,n){if(void 0===n&&(n=!0),i)for(var o in i){var r=i[o],s=e[o];void 0===r?delete e[o]:!n||"object"!=typeof s||s instanceof Date||s instanceof Array?e[o]=r:t(s,r)}return e},e.copy=function(t,e){var i,n={};for(i in t)e&&i.startsWith("$")||(n[i]=t[i]);return n},e.naturalSort=function(t){return t.sort(function(t,e){return"string"==typeof t?t.localeCompare(e):t-e})},e.findIndex=function(t,e){for(var i=t.length,n=0;n<i;n++)if(e(t[n]))return n;return-1},e.isEqualString=function(t,e){if(t=t.toString(),e=e.toString(),t.length>e.length)return!1;for(var i=0;i<t.length;i++)if(t[i].toLowerCase()!==e[i].toLowerCase())return!1;return!0},e.singleOuterClick=function(e){var i=function(t){e(t)&&document.removeEventListener("click",i)};document.addEventListener("click",i)},e.detectWidgetClick=function(e,i){function t(t){return i(r.locate(t,"data-dhx-widget-id")===e)}return document.addEventListener("click",t),function(){return document.removeEventListener("click",t)}},e.unwrapBox=function(t){return Array.isArray(t)?t[0]:t},e.wrapBox=function(t){return Array.isArray(t)?t:[t]},e.isDefined=function(t){return null!=t},e.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,i=new Blob([t],{type:i});window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(i,e):(n=document.createElement("a"),o=URL.createObjectURL(i),n.href=o,n.download=e,document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(o)},0))},e.debounce=function(o,r,s){var a;return function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=s&&!a;clearTimeout(a),a=setTimeout(function(){a=null,s||o.apply(t,e)},r),n&&o.apply(this,e)}},e.compare=function t(e,i){for(var n in e){if(e.hasOwnProperty(n)!==i.hasOwnProperty(n))return!1;switch(typeof e[n]){case"object":if(!t(e[n],i[n]))return!1;break;case"function":if(void 0===i[n]||"compare"!==n&&e[n].toString()!==i[n].toString())return!1;break;default:if(e[n]!==i[n])return!1}}for(var n in i)if(!e.hasOwnProperty(n))return!1;return!0},e.isType=function(t){return((Object.prototype.toString.call(t).match(/^\[object (\S+?)\]$/)||[])[1]||"undefined").toLowerCase()},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.getMaxArrayNymber=function(t){if(t.length){for(var e=-1/0,i=0,n=t.length;i<n;i++)t[i]>e&&(e=t[i]);return e}},e.getMinArrayNymber=function(t){if(t.length){for(var e=1/0,i=0,n=t.length;i<n;i++)t[i]<e&&(e=t[i]);return e}},e.getStringWidth=function(t,e){e=o({font:"normal 14px Roboto",lineHeight:20},e);var i=document.createElement("canvas"),n=i.getContext("2d");e.font&&(n.font=e.font);t=n.measureText(t).width;return r.isIE()||i.remove(),t},e.rgbToHex=function(t){if("#"===t.substr(0,1))return t;if("rgb"===t.substr(0,3)){t=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t);return"#"+parseInt(t[2],10).toString(16).padStart(2,"0")+parseInt(t[3],10).toString(16).padStart(2,"0")+parseInt(t[4],10).toString(16).padStart(2,"0")}}},function(t,e,i){"use strict";var c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function n(t,e,i){for(void 0===e&&(e="data-dhx-id"),void 0===i&&(i="target"),t instanceof Event&&(t=t[i]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector("[data-cell-id="+t+"]")||document.querySelector(t)||(null===(e=document.querySelector("[data-dhx-root-id="+t+"]"))||void 0===e?void 0:e.parentElement)||document.body:t||document.body},e.eventHandler=function(s,a,l){var c=Object.keys(a);return function(t){var e=s(t);if(void 0!==e){var i=t.target;t:for(;i;){var n=i.getAttribute&&i.getAttribute("class")||"";if(n.length)for(var o=n.split(" "),r=0;r<c.length;r++)if(o.includes(c[r])){if(!1===a[c[r]](t,e)||t.cancelBubble)return!1;break t}i=i.parentNode}}return l&&l(t),!0}},e.locateNode=n,e.locate=function(t,e){return void 0===e&&(e="data-dhx-id"),(t=n(t,e))?t.getAttribute(e):""},e.locateNodeByClassName=function(t,e){for(t instanceof Event&&(t=t.target);t;){if(e){if(t.classList&&t.classList.contains(e))return t}else if(t.getAttribute&&t.getAttribute("data-dhx-id"))return t;t=t.parentNode}},e.getBox=function(t){var e=t.getBoundingClientRect(),i=document.body,n=window.pageYOffset||i.scrollTop,t=window.pageXOffset||i.scrollLeft;return{top:e.top+n,left:e.left+t,right:i.offsetWidth-e.right,bottom:i.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var o=-1;e.getScrollbarWidth=function(){if(-1<o)return o;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",o=t.offsetWidth-t.clientWidth,document.body.removeChild(t),o};var r=-1;function s(t){t=t.getBoundingClientRect();return{left:t.left+window.pageXOffset,right:t.right+window.pageXOffset,top:t.top+window.pageYOffset,bottom:t.bottom+window.pageYOffset}}function d(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function l(t,e){var i,n,o,r=d(),s=r.rightBorder,a=r.bottomBorder-t.bottom-e.height,l=t.top-e.height;if("bottom"===e.mode?0<=a?i=t.bottom:0<=l&&(i=l):0<=l?i=l:0<=a&&(i=t.bottom),a<0&&l<0){if(e.auto)return u(t,c(c({},e),{mode:"right",auto:!1}));i=l<a?t.bottom:l}return{left:e.centering?(n=t,o=e.width,r=s,a=(o-(n.right-n.left))/2,l=n.left-a,a=n.right+a,0<=l&&a<=r?l:l<0?0:r-o):(s=s-t.left-e.width,e=t.right-e.width,0<=s||!(0<=e)&&s<e?t.left:e),top:i}}function u(t,e){var i,n,o=d(),r=o.rightBorder,s=o.bottomBorder,a=r-t.right-e.width,o=t.left-e.width;if("right"===e.mode?0<=a?n=t.right:0<=o&&(n=o):0<=o?n=o:0<=a&&(n=t.right),o<0&&a<0){if(e.auto)return l(t,c(c({},e),{mode:"bottom",auto:!1}));n=a<o?o:t.right}return{left:n,top:e.centering?(a=t,i=e.height,o=r,n=(i-(a.bottom-a.top))/2,r=a.top-n,n=a.bottom+n,0<=r&&n<=o?r:r<0?0:o-i):(i=t.bottom-e.height,!(0<=(e=s-t.top-e.height))&&(0<i||e<i)?i:t.top)}}function a(t,e){var i=("bottom"===e.mode||"top"===e.mode?l:u)(t,e),t=i.left,i=i.top;return{left:Math.round(t)+"px",top:Math.round(i)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(-1<r)return r;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",r=t.offsetHeight-t.clientHeight,document.body.removeChild(t),r},e.isIE=function(){var t=window.navigator.userAgent;return t.includes("MSIE ")||t.includes("Trident/")},e.isSafari=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Firefox/);return!e&&!i&&t(/Safari/)},e.isFirefox=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Safari/);return!e&&!i&&t(/Firefox/)},e.getRealPosition=s,e.calculatePosition=a,e.fitPosition=function(t,e){return a(s(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var i=document.styleSheets[e],n=("cssRules"in i?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push(r.selectorText+" {\n"+r.style.cssText+"\n}\n")}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,i=t.type,n=t.labelWidth,o=t.label,r=n&&n.toString().startsWith("0"),t="text"!==i&&t.required;return!!(e||t||!(!o||o&&r)||n&&!r)&&{style:(o||n)&&!r&&{width:n,"max-width":"100%"},label:o&&r?null:o}};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(r.selectorText+" {\n"+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="'+t+'" rel="stylesheet"/>')});else for(var i=0;i<document.styleSheets.length;i++){var n=document.styleSheets[i];h(n)&&e.push('<link href="'+n.href+'" rel="stylesheet"/>')}return e.join("\n")}},function(t,n,e){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var r,s,a=e(0),i=["#2A9D8F","#78586F","#E76F51","#E5A910","#11A3D0","#985F99","#217B70","#BD9391","#9C89B8","#734B5E","#D66BA0","#5C5D8D"],l=["#237396","#2780A8","#3892A3","#4DA3A0","#67BF99"];function c(e){var i={};return function(t){return i[t]||(i[t]=e(t))}}n.getDefaultColor=function(t,e){return void 0===t&&(t=0),(e?l:i)[t]},n.locator=function(e){return e?"string"==typeof e?function(t){return t[e]}:e:function(){return""}},n.log10=function(t){return Math.log(t)/Math.LN10},n.getTextWidth=(r=function(t,e){void 0===e&&(e="");var i=document.createElement("canvas").getContext("2d");return e&&(i.font=e),i.measureText(t).width},s={},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=s,n=0;n<t.length-1;n++)i[t[n]]=i[t[n]]||{},i=i[t[n]];var o=t.length-1;return i[o]||(i[o]=r.apply(void 0,t))});var d=c(function(t){var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,e.fillRect(0,0,2,2),[(e=e.getImageData(1,1,1,1).data)[0],e[1],e[2]]});function u(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}n.getColorShade=function(t,e){return"rgb("+(t=d(t).map(function(t){return Math.floor(t*e+255*(1-e))}))[0]+","+t[1]+","+t[2]+")"},n.getFontStyle=c(function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","dhx_chart");var i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("class",t),e.setAttribute("visibility","hidden"),i.textContent="test",e.appendChild(i),document.body.appendChild(e);i=getComputedStyle(i),i=i.fontSize+" "+i.fontFamily;return document.body.removeChild(e),i}),n.linearGradient=function(t,e){return t=t.stops.map(function(t){return a.sv("stop",{offset:100*t.offset+"%","stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("linearGradient",{id:e,gradientTransform:"rotate(90)"},t)},n.getRadialGradient=function(t,e,i){return e=e.map(function(t){return a.sv("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("radialGradient",o({id:i,cx:0,cy:0,gradientUnits:"userSpaceOnUse"},t),e)},n.euclideanDistance=function(t,e,i,n){return Math.sqrt((t-i)*(t-i)+(e-n)*(e-n))},n.roundToTwoNumAfterPoint=function(t){return Math.round(100*(100*t+Number.EPSILON))/100},n.verticalCenteredText=function(t){return a.sv("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},n.verticalTopText=function(t){return a.sv("tspan",{dy:"-0.5ex"},t)},n.verticalBottomText=function(t){return a.sv("tspan",{dy:"1.5ex"},t)},n.calcPointRef=function(t,e){return t+"_"+e},n.getClassesForRotateScale=function(t,e){var i="",n=[];switch("left"===t||"top"===t?n.push("start-text","end-text"):"right"!==t&&"bottom"!==t||n.push("end-text","start-text"),t){case"left":case"right":0===e?i=n[1]:0<e?180===e?i=n[0]:180<e?e<270?i=n[0]:270<e&&(i=n[1]):e<180&&(90<e?i=n[0]:e<90&&(i=n[1])):e<0&&(-180===e?i=n[0]:e<-180?-270<e?i=n[0]:e<-270&&(i=n[1]):-180<e&&(e<-90?i=n[0]:-90<e&&(i=n[1])));break;case"top":case"bottom":0<e?180<e?i=n[0]:e<180&&(i=n[1]):e<0&&(-180<e?i=n[0]:e<-180&&(i=n[1]))}return i},n.getScales=function(t){var e,i=[];for(e in t){var n=t[e];(n.min||n.max||n.maxTicks||n.text||n.value)&&i.push(e)}return i},n.getSizesSVGText=function(t,e){var i=[];return e=o({font:"normal 14px Roboto",lineHeight:18},e),i.push(n.getTextWidth(t,e.font)),i.push(e.lineHeight),i},n.superposition=u,n.checkPositions=function(t,e,i,n,o){u(t,e)&&(e=o.right?e.y-t.y+t.height:e.y-e.height-t.y,e=o.text1.y+e,Math.abs(e)+o.dy>n&&(e=0<e?n+o.dy:-n+o.dy,o.changeSector=!o.changeSector),n=Math.sqrt(Math.pow(i,2)-Math.pow((e-o.dy)*i/n,2)),n=o.right?n:-n,o.changeSector&&(n*=-1,o.line*=-1,t.class=o.right?"pie-value end-text":"pie-value start-text"),o.text1.x=n,o.text1.y=e,o.text2.x=n,o.text2.y=e+16)}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(e.HeaderFilterEvent||(e.HeaderFilterEvent={})).change="change",(n=e.GridEvents||(e.GridEvents={})).scroll="scroll",n.expand="expand",n.filterChange="filterChange",n.beforeFilter="beforeFilter",n.beforeResizeStart="beforeResizeStart",n.resize="resize",n.afterResizeEnd="afterResizeEnd",n.cellClick="cellClick",n.cellRightClick="cellRightClick",n.cellMouseOver="cellMouseOver",n.cellMouseDown="cellMouseDown",n.cellDblClick="cellDblClick",n.headerCellClick="headerCellClick",n.footerCellClick="footerCellClick",n.headerCellMouseOver="headerCellMouseOver",n.footerCellMouseOver="footerCellMouseOver",n.headerCellMouseDown="headerCellMouseDown",n.footerCellMouseDown="footerCellMouseDown",n.headerCellDblClick="headerCellDblClick",n.footerCellDblClick="footerCellDblClick",n.headerCellRightClick="headerCellRightClick",n.footerCellRightClick="footerCellRightClick",n.beforeEditStart="beforeEditStart",n.afterEditStart="afterEditStart",n.beforeEditEnd="beforeEditEnd",n.afterEditEnd="afterEditEnd",n.beforeKeyDown="beforeKeyDown",n.afterKeyDown="afterKeyDown",n.beforeColumnHide="beforeColumnHide",n.afterColumnHide="afterColumnHide",n.beforeColumnShow="beforeColumnShow",n.afterColumnShow="afterColumnShow",n.beforeRowHide="beforeRowHide",n.afterRowHide="afterRowHide",n.beforeRowShow="beforeRowShow",n.afterRowShow="afterRowShow",n.beforeRowDrag="beforeRowDrag",n.dragRowStart="dragRowStart",n.dragRowOut="dragRowOut",n.dragRowIn="dragRowIn",n.canRowDrop="canRowDrop",n.cancelRowDrop="cancelRowDrop",n.beforeRowDrop="beforeRowDrop",n.afterRowDrop="afterRowDrop",n.afterRowDrag="afterRowDrag",n.beforeColumnDrag="beforeColumnDrag",n.dragColumnStart="dragColumnStart",n.dragColumnOut="dragColumnOut",n.dragColumnIn="dragColumnIn",n.canColumnDrop="canColumnDrop",n.cancelColumnDrop="cancelColumnDrop",n.beforeColumnDrop="beforeColumnDrop",n.afterColumnDrop="afterColumnDrop",n.afterColumnDrag="afterColumnDrag",n.beforeRowResize="beforeRowResize",n.afterRowResize="afterRowResize",n.beforeSort="beforeSort",n.afterSort="afterSort",(n=e.GridSystemEvents||(e.GridSystemEvents={})).cellTouchMove="cellTouchMove",n.cellTouchEnd="cellTouchEnd",n.headerCellTouchMove="headerCellTouchMove",n.headerCellTouchEnd="headerCellTouchEnd",(n=e.GridSelectionEvents||(e.GridSelectionEvents={})).beforeUnSelect="beforeUnSelect",n.afterUnSelect="afterUnSelect",n.beforeSelect="beforeSelect",n.afterSelect="afterSelect",(e=e.Split||(e.Split={})).left="leftSplit",e.right="rightSplit",e.top="topSplit",e.bottom="bottomSplit"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.on=function(t,e,i){t=t.toLowerCase();this.events[t]=this.events[t]||[],this.events[t].push({callback:e,context:i||this.context})},o.prototype.detach=function(t,e){var t=t.toLowerCase(),i=this.events[t];if(e&&i&&i.length)for(var n=i.length-1;0<=n;n--)i[n].context===e&&i.splice(n,1);else this.events[t]=[]},o.prototype.fire=function(t,e){void 0===e&&(e=[]);t=t.toLowerCase();return!this.events[t]||!this.events[t].map(function(t){return t.callback.apply(t.context,e)}).includes(!1)},o.prototype.clear=function(){this.events={}},o);function o(t){this.events={},this.context=t||this}e.EventSystem=n,e.EventsMixin=function(t){var e=new n(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(11)),n(e(38)),n(e(84)),n(e(85)),n(e(15)),n(e(126)),n(e(12)),n(e(41)),n(e(40)),n(e(127)),n(e(39)),n(e(24))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),n=i(2);e.transpose=function(t,e){for(var i=[],n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.length;r++){i[r]=i[r]||[];var s=e?e(o[r]):o[r];i[r].push(s)}return i},e.getStyleByClass=function(t,e,i,n){return e=e.querySelector("."+i),i=e,i="string"==typeof(t='<div class="'+t+'"></div>')?(i.insertAdjacentHTML("beforeend",t),i.lastChild):(i.appendChild(t),t),t={color:"rgb(0, 0, 0)"===(t=window.getComputedStyle(i)).color?n.color:o.rgbToHex(t.color),background:"rgba(0, 0, 0, 0)"===t.backgroundColor?n.background:o.rgbToHex(t.backgroundColor),fontSize:Math.round(parseFloat(t.fontSize))},e.removeChild(i),t.color===n.color&&t.background===n.background&&t.fontSize===n.fontSize?null:t},e.removeHTMLTags=function(t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t?"":(""+(null==t?"":t)).replace(/<[^>]*>/g,"").replace(/["]/g,""").trim()},e.isCssSupport=function(e,i){try{return CSS.supports(e,i)}catch(t){var n=document.createElement("div");return n.style[e]=i,n.style[e]===i}},e.isRowEmpty=function(i){if(i)return Object.keys(i).reduce(function(t,e){return"id"!==e&&!e.startsWith("$")&&t&&void 0!==i[e]&&""!==i[e]?void 0:t},!0)},e.isSortable=function(t,e){return!1!==e.sortable&&t.sortable||e.sortable},e.isAutoWidth=function(e,t){if(t)return!1!==t.autoWidth&&e.autoWidth||t.autoWidth;var i=!1;return e.columns.map(function(t){(!1!==t.autoWidth&&e.autoWidth||t.autoWidth)&&(i=!0)}),i},e.isTooltip=function(t,e){return!1!==e.tooltip&&t.tooltip||e.tooltip},e.isHtmlEnable=function(t,e){return!1!==e.htmlEnable&&t.htmlEnable||e.htmlEnable},e.getTotalWidth=function(t){return t.reduce(function(t,e){return t+(e.$width||0)},0)},e.getTotalHeight=function(t){return t.reduce(function(t,e){return t+(e.$height||0)},0)},e.scrollFixedColsAndRows=function(t){var e=n.locateNode(t,"data-dhx-widget-id").querySelector(".dhx_grid-body"),i=t.deltaY,i=t.shiftKey?[i,0]:[0,i];null!=e&&e.scrollBy.apply(e,i)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(2),i=(r.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=o.toNode(t),this._container.tagName?this._view.mount(this._container):this._container.attach&&this._container.attach(this))},r.prototype.unmount=function(){var t=this.getRootView();t&&t.node&&(t.unmount(),this._view=null)},r.prototype.getRootView=function(){return this._view},r.prototype.getRootNode=function(){return this._view&&this._view.node&&this._view.node.el},r.prototype.paint=function(){this._view&&(this._view.node||this._container)&&(this._doNotRepaint=!1,this._view.redraw())},r);function r(t,e){this.config=e||{},this._uid=null!==(e=this.config.rootId)&&void 0!==e?e:n.uid()}e.View=i,e.toViewLike=function(e){return{getRootView:function(){return e},paint:function(){return e.node&&e.redraw()},mount:function(t){return e.mount(t)}}}},function(t,e,i){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var v=i(1),O=i(7),T=i(13);function l(t,e){t[e]&&("string"==typeof t[e]?t[e]=[{text:""+t[e]}]:t[e]=t[e].map(function(t){return"string"==typeof t&&(t={text:t}),t}))}e.normalizeColumns=function(t,e){var i=t.columns,n=t.htmlEnable;void 0===e&&(e=!1);for(var o=0,r=i;o<r.length;o++){var s=r[o];s.$htmlEnable=!(!s.htmlEnable&&!n),s.$cellCss=s.$cellCss||{},l(s,"header"),l(s,"footer"),s.header.reduce(function(t,e){return t||!!e.content},!1)&&(s.$uniqueData=[]),s.minWidth&&s.minWidth<20&&(s.minWidth=20),s.maxWidth&&s.maxWidth<20&&(s.maxWidth=20);var a=s.minWidth||100;s.width&&(a=(a=s.maxWidth&&s.minWidth?s.width>=s.minWidth&&s.width<=s.maxWidth?s.width:s.width>=s.maxWidth?s.maxWidth:s.minWidth:s.maxWidth?s.width<=s.maxWidth?s.width:100<s.maxWidth?s.maxWidth:100:!s.minWidth||s.width>=s.minWidth?s.width:s.minWidth)<20?20:a),s.$width=s.$width&&!e?s.$width:a,s.$width>s.maxWidth&&(s.$width=s.maxWidth),s.$width<s.minWidth&&(s.$width=s.minWidth)}},e.countColumns=function(t,e){var n=0,o=0,r=0,s=!1,i=0,a=!1;return e.forEach(function(t){if(n=Math.max(n,t.header.length),r+=t.$width,t.footer&&(o=Math.max(o,t.footer.length),a=a||!0),!s)for(var e=0,i=t.header;e<i.length;e++)if(i[e].colspan)return void(s=!0)}),e.forEach(function(t){if(t.header.length<n)for(var e=0;e<n;e++)t.header[e]=t.header[e]||{text:""};if(a&&(t.footer=t.footer||[]),t.footer&&t.footer.length<o)for(e=0;e<o;e++)t.footer[e]=t.footer[e]||{text:""};t.header=t.header.map(function(t){return"object"!=typeof t&&(t={text:t}),t.css=t.css||"",t.text||t.css.includes("dhx_cell-empty")||(t.css+=" dhx_cell-empty"),t}),""===t.header[0].text&&i++}),t.$totalWidth=r,t.$headerLevel=n,t.$footerLevel=o,t.$colspans=s,t.$footer=a,i},e.calculatePositions=function(t,e,i,n,o){for(var r=n.columns||[],s=r.length,a=o||[],l=a.length,c=n.leftSplit?n.columns.slice(0,n.leftSplit).filter(function(t){return!t.hidden}).length:0,d=null!==(h=n.topSplit)&&void 0!==h?h:0,u=null!==(P=n.rightSplit)&&void 0!==P?P:0,h=null!==(o=n.bottomSplit)&&void 0!==o?o:0,f=0,p=i.left,g=n.$totalWidth/s,_=0;_<s;_++){if(!(0<(p-=r[_].$width)+g/2))break;f++}for(var v=0,m=i.top,y=n.$totalHeight/l,_=0;_<l;_++){if(!(0<(m-=(M=a[_]).$height)+y/2))break;v++}for(var x=0,b=0,w=-1/0,C=1/0,S=0;S<s;S++){var E=r[S];f<=S&&x<t&&!E.hidden&&(x+=E.$width,b++),E.$width>w&&(w=E.$width),E.$width<C&&(C=E.$width)}for(var D=0,k=0,O=-1/0,T=1/0,S=0;S<l;S++){var M=a[S];v<=S&&D<e&&!M.hidden&&(D+=M.$height,k++),M.$height>O&&(O=M.$height),M.$height<T&&(T=M.$height)}T=T<n.rowHeight?T:n.rowHeight;var P=Math.round(w/C),o=Math.round(O/T),i=c<=f-P?f-P:c,P=f+b+P,c=(n.leftSplit||0)-c;return{xStart:i,xEnd:P<(u=r.length-u-c)?P:u,yStart:d<=v-o?v-o:d,yEnd:(c=v+k+o)<(h=a.length-h)?c:h}},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&&v.isDefined(t)}).sort()},e.getMaxRowHeight=function(t,e,i){void 0===i&&(i={font:"20px Roboto",lineHeight:20});var n=document.createElement("canvas"),o=n.getContext("2d",{alpha:!1});o.font=i.font;for(var r={},s=e.length,a=0;a<s;a++)e[a].template?r[e[a].id]={width:e[a].$width||0,htmlEnable:e[a].$htmlEnable,template:e[a].template,cols:e[a]}:r[e[a].id]={width:e[a].$width||0,htmlEnable:e[a].$htmlEnable};for(var l=[],c=[],d=0,u=Object.entries(t);d<u.length;d++){var h,f=u[d],p=f[0],g=f[1];!r[p]||"id"===p||"height"===p||p.startsWith("$")||"string"!=typeof g&&"number"!=typeof g||(h="",h=null!==(f=r[p])&&void 0!==f&&f.template?(f=r[p].template(g,t,r[p].cols),r[p].htmlEnable?O.removeHTMLTags(f):f):"string"==typeof g?r[p].htmlEnable?O.removeHTMLTags(g):g:g.toString(),l.push(h.split("\n").length),c.push(Math.round(o.measureText(h).width/(null===(p=r[p])||void 0===p?void 0:p.width))))}var _=Math.max(v.getMaxArrayNymber(l),v.getMaxArrayNymber(c));return n.remove(),_*i.lineHeight},e.getCalculatedRowHeight=function(t,e){void 0===e&&(e={rowHeight:40,padding:8});var i=e.rowHeight<40?t:t+2*e.padding;return t<e.rowHeight?e.rowHeight:i},e.getTreeCellWidthOffset=function(t){return 20+20*t.$level-(t.$items?20:0)},e.getMaxColsWidth=function(t,e,i,n){if(void 0===i&&(i={font:"normal 14.4px Arial"}),t.length&&e.length){var o=document.createElement("canvas"),r=o.getContext("2d",{alpha:!1});r.font=i.font;for(var s={},a=e.length,l=0;l<a;l++){var c=e[l],d=c.template,u=c.$htmlEnable,h=c.format,f=c.id,p=c.type;s[f]=d&&"data"===n?{width:20,htmlEnable:u,template:d,cols:c,type:p}:{width:20,htmlEnable:u,format:"date"===p?h||"%M %d %Y":h,type:p}}for(var g=t.length,l=0;l<g;l++)for(var _=0,v=Object.entries(t[l]);_<v.length;_++){var m,y,x=v[_],b=x[0],w=x[1],C=s[b];C&&"id"!==b&&"height"!==b&&!b.startsWith("$")&&("string"==typeof w||"number"==typeof w||w instanceof Date)&&(d=C.template,m=C.cols,h=C.format,p=C.type,y=C.htmlEnable,x=C.width,C=void 0,C="function"==typeof d?(m=d(w,t[l],m),y?O.removeHTMLTags(m):m):y?O.removeHTMLTags(w):w.toString(),null!=(y=h&&"date"===p&&new Date(C))&&y.valueOf()&&(C=T.getFormattedDate(h,y)),x<(C=r.measureText(C).width)&&(s[b].width=C))}o.remove();for(var S={},E=0,D=Object.entries(s);E<D.length;E++){var k=D[E],b=k[0],w=k[1];S[b]=Math.ceil(w.width)}return S}},e.toFormat=function(s,t,a){if("boolean"==typeof s)return s;if(!s&&"number"!=typeof s)return s;switch(t){case"number":case"percent":return a=a||"#",v.isDefined(s)&&!isNaN(Number(s))?function(t){var e=a.replace(/#+/g,"#").split("#").filter(function(t){return t}),i=a.match(/0/g)&&a.match(/0/g).length;s=("percent"===t?100*Number(s):s).toString();var n,o,r=Math.trunc(Number(s));i&&(o=s.split(".")[1]||"0",n=e.find(function(t){return t.includes("0")}).replace(/0+/g,""),o=Number("0."+o).toFixed(i),1<=Number(o)&&r++,o=o.toString().split(".")[1].padEnd(i,"0"));var r=(s<0&&0===Math.abs(r)?"-":"")+r,e=e.find(function(t){return!t.includes("0")}),r=e?r.replace(/(\d)(?=(\d{3})+(\D|$))/g,"$1"+e):r;return r+=(n||"")+(o||""),"percent"===t?r+"%":r}(t):s;case"date":return a=a||"%M %d %Y","string"==typeof s?s=T.getFormattedDate(a,T.stringToDate(s,a)):"object"==typeof s&&(s=T.getFormattedDate(a,s)),s;default:return s}},e.getEditorOptions=function(t,e){return n(("function"==typeof t.options?t.options(t,e):t.options)||[],t.$customOptions||[])}},function(t,b,e){"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)},d=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(b,"__esModule",{value:!0});var C=e(0),u=e(2),c=e(9),S=e(7),E=e(4),D=e(16),k=e(56),O=e(57),p=e(1);function T(t,e,i){void 0===e&&(e=!1);var n=t.headerHeight,o=void 0===n?t.$headerLevel*t.headerRowHeight:n,n=t.footerHeight,n=void 0===n?t.$footerLevel*t.footerRowHeight:n,n=t.$totalHeight+o+n+b.BORDERS>(null!==(o=null==i?void 0:i.height)&&void 0!==o?o:t.$height),o=!n||e?0:u.getScrollbarWidth(),t=t.$totalWidth+b.BORDERS+o>(null!==(i=null==i?void 0:i.width)&&void 0!==i?i:t.$width);return{x:!t||e?0:u.getScrollbarWidth(),y:o,xState:t,yState:n}}function h(t,e){return t[e]?(e===E.Split.left?t.columns.slice(0,t.leftSplit):t.columns.slice(-t.rightSplit)).filter(function(t){return!t.hidden}):[]}function M(t,e,i){var n=t.config,o=n.columns.filter(function(t){return!t.hidden}),r=c.calculatePositions(i.width,i.height,t._scroll,n,e),s=o.slice(r.xStart,r.xEnd),a=e.slice(r.yStart,r.yEnd),l={left:h(n,E.Split.left),right:h(n,E.Split.right)},i={top:e.slice(0,n.topSplit||0),bottom:n.bottomSplit?e.slice(-n.bottomSplit):[]};return w(w({},n),{data:e,columns:n.columns,scroll:t._scroll,$positions:r,headerHeight:n.$headerLevel*n.headerRowHeight,footerHeight:n.$footerLevel*n.footerRowHeight,firstColId:o[0]&&o[0].id,events:t.events,_events:t._events,filteredColumns:o,currentColumns:s,currentRows:a,fixedColumns:l,fixedRows:i,sortBy:t._sortBy,sortDir:t._sortDir,content:t.content,gridId:t._uid,$renderFrom:"render"})}function P(t){if(t&&(t.tagName||(t=t._parent._container),t)){var e=t.currentStyle||window.getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)||0,e=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)||0;return{width:t.clientWidth-i,height:t.clientHeight-e}}}function g(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]=u.eventHandler(function(t){var e,i,n=u.locate(t,"data-dhx-id"),o=u.locate(t,"data-dhx-col-id");switch(r){case E.Split.left:case E.Split.right:e=d(l.top,l.bottom,a).find(function(t){return t.id.toString()===n}),i=d(c.left,c.right).find(function(t){return t.id===o});break;case E.Split.top:case E.Split.bottom:e=d(l.top,l.bottom).find(function(t){return(null==t?void 0:t.id.toString())===n}),i=d(c.left,c.right,s).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:{}}},w({},e)));return n}function H(t,e){var i,n=D.getCells(t),o=t.filteredColumns,r=t.$resizing,s=t.$totalHeight,a=t.$totalWidth,l=t.leftSplit,c=t.data,d=t.$positions,u=D.getSpans(t);r&&(h=p.findIndex(o,function(t){return t.id===r}),f=S.getTotalWidth(o.slice(0,h))+o[h].$width,i=C.el(".dhx_grid-resize-line",{style:{top:0,left:f,height:s}}));var h="string"==typeof(h=t.selection?t.selection.toHTML():null)?C.el("div.dhx_selection",{".innerHTML":h}):h,f=d,d=g(t);return C.el(".dhx_data-wrap",w({style:{height:s,width:a,"padding-left":e.x,"padding-top":e.y},role:"presentation"},d),[C.el(".dhx_grid_data"+(l?".dhx_grid_fixed_left":""),w(w({_flags:C.KEYED_LIST},D.getHandlers(f.yStart,f.xStart,t)),{role:"rowgroup","aria-rowcount":c.length}),n),C.el(".dhx_span-spans",w({role:"presentation"},D.getHandlers(f.yStart,f.xStart,t)),u),C.el(".dhx_grid_selection",{_ref:"selection","aria-hidden":"true"},[h,i])])}function L(t,e,i){i=i.height-b.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),void 0===i&&(i=!1);var s,n=!i&&e.$totalHeight>=t.height-e.headerRowHeight?u.getScrollbarWidth():0,a=t.width-b.BORDERS-n,l=e.columns.filter(function(t){return!t.hidden}),n=l.filter(function(t){return!t.width&&!t.$fixed&&S.isAutoWidth(e,t)}),c=S.getTotalWidth(l.filter(function(t){return t.width||t.$fixed||!S.isAutoWidth(e,t)})),d=n.reduce(function(t,e){return t+(e.gravity||1)},0);a<e.$totalWidth?(s=n.reduce(function(t,e){return t+(e.maxWidth||e.$width)},0),n.length&&n.forEach(function(t){var e=0,i=(e=o?Math.abs(a-s)*((t.gravity||1)/d):Math.abs(a-c)*((t.gravity||1)/d))<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,t.$fixed=!0):n&&(t.$width=t.maxWidth,t.$fixed=!0):t.$width=e,t.$width<20&&(t.$width=20)})):n.forEach(function(t){var e=Math.abs(a-c)*((t.gravity||1)/d),i=e<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,r&&(t.$fixed=!0)):n&&(t.$width=t.maxWidth,r&&(t.$fixed=!0)):t.$width=e,t.$width<20&&(t.$width=20),!o&&t.$fixed&&delete t.$fixed}),o&&I(e,t,!1,r,i)}b.BORDERS=2,b.calcScrollBarWidth=T,b.getCurrFixedCols=h,b.getRenderConfig=M,b.getElementSizes=P,b.getEvents=g,b.applyAutoWidth=I,b.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&&(x=P(t.node.parent.el),e.config.$width=x.width,e.config.$height=x.height);var r=e.config;if(!r)return C.el("div");if(!r.columns.length)return C.el(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"empty-grid"});var s=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=s.reduce(function(t,e){return t+(e.$height||0)},0);var a=P(e._container),l={width:r.$width||(r.width&&"number"==typeof r.width?r.width:null==a?void 0:a.width)||0,height:r.$height||(r.height&&"number"==typeof r.height?r.height:null==a?void 0:a.height)||0};S.isAutoWidth(r)&&(I(r,l),r.$totalWidth=S.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.$width=l.width,r.$height=l.height;var c=M(e,s,l);c.selection=n,c.datacollection=e.data;var d=D.getShifts(c);c.$scrollBarWidth=T(c);var u,h,f,p,g=S.isCssSupport("position","sticky"),_=L(c,g,l),v={wrapper:l,sticky:g,shifts:d,gridBodyHeight:_},m=O.getFixedRows(c,w(w({},v),{name:"header",position:"top"})),y=c.$footer?O.getFixedRows(c,w(w({},v),{name:"footer",position:"bottom"})):null,x=c.$totalWidth+b.BORDERS<l.width?"dhx_grid-less-width":"",a=c.$totalHeight+b.BORDERS<l.height?"dhx_grid-less-height":"",s=c.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",n=r.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";return t.node||(t=e.getScrollState(),u=t.x,h=t.y,C.awaitRedraw().then(function(){e.scroll(u,h)})),C.el(".dhx_grid.dhx_widget",w({class:(c.css||"")+(g?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent},(f=c.data,p=r.columns,t=c.editable,o=c.multiselection,{role:"grid","aria-rowcount":f.length,"aria-colcount":p.filter(function(t){return!t.hidden}).length,"aria-readonly":t?"false":"true","aria-multiselectable":o?"true":"false"})),[C.resizer(function(t){return S.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,I(r,l,!0,!0)),e.paint()}),C.el(".dhx_grid-content",{style:w({},l),onclick:i.onclick,onmouseover:i.onmouseover,class:(x+" "+a+" "+s+" "+n).trim(),role:"presentation"},[g?null:m,C.el(".dhx_grid-body",{style:{height:_,width:l.width-b.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[C.el("div",{},[g?m:null,H(c,d),g?y:null])]),k.getFixedColsHeader(c,v,E.Split.left),k.getFixedColsHeader(c,v,E.Split.right),k.getFixedCols(c,v,E.Split.left),k.getFixedCols(c,v,E.Split.right),O.getFixedDataRows(c,v,E.Split.top),O.getFixedDataRows(c,v,E.Split.bottom),g?null:y])])},b.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&&(_=P(t.node.parent.el),e.config.$width=_.width,e.config.$height=_.height);var r=e.config;if(!r)return C.el("div");if(!r.columns.length)return C.el(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"empty-grid"});var s,a=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=a.reduce(function(t,e){return t+(e.$height||0)},0);var l=P(e._container);"auto"===e.config.height&&(s=function(t,e,i){var n=t._container,o=e.$headerLevel*e.headerRowHeight,r=e.$footerLevel*e.footerRowHeight,o=o+(r&&1+r)+e.$totalHeight+b.BORDERS;if(n){var r=window.getComputedStyle(n),n=r.minHeight,r=r.maxHeight;return o<=parseFloat(n)?parseFloat(n):o>=parseFloat(r)?parseFloat(r):o+T(e,!(null===(r=t.scrollView)||void 0===r||!r.config.enable),i).x}return o+(i?T(e,!(null===(t=t.scrollView)||void 0===t||!t.config.enable),i).x:0)}(e,r,_||l)),v=r.$width||(r.width&&"number"==typeof r.width?r.width:null==l?void 0:l.width),m=r.$height||(r.height&&"number"==typeof r.height?r.height:null==l?void 0:l.height);var c={width:v||0,height:("auto"===e.config.height?s:m)||0};S.isAutoWidth(r)&&(I(r,c,!0,!1,e.scrollView&&e.scrollView.config.enable),r.$totalWidth=S.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.$width=c.width,r.$height=c.height;var d=M(e,a,c);d.selection=n,d.datacollection=e.data;var u=D.getShifts(d);d.$scrollBarWidth=T(d,!(null===(y=e.scrollView)||void 0===y||!y.config.enable));var h,f,p=S.isCssSupport("position","sticky"),g=L(d,p,c),_={wrapper:c,sticky:p,shifts:u,gridBodyHeight:g},l=O.getFixedRows(d,w(w({},_),{name:"header",position:"top"})),v=d.$footer?O.getFixedRows(d,w(w({},_),{name:"footer",position:"bottom"})):null,m=d.$totalWidth+b.BORDERS<c.width?"dhx_grid-less-width":"",a=d.$totalHeight+b.BORDERS<c.height?"dhx_grid-less-height":"",n=d.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",y=r.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";return t.node||(t=e.getScrollState(),h=t.x,f=t.y,C.awaitRedraw().then(function(){e.scroll(h,f)})),u=C.el("div",{},[p?l:null,H(d,u),p?v:null]),C.el(".dhx_grid.dhx_widget",{class:(d.css||"")+(p?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),style:{height:null!=s?s:null},"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"grid","aria-rowcount":d.data.length,"aria-colcount":r.columns.filter(function(t){return!t.hidden}).length},[C.resizer(function(t){return S.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,I(r,c,!0,!0)),e.paint()}),C.el(".dhx_grid-content",{style:w({},c),onclick:i.onclick,onmouseover:i.onmouseover,class:(m+" "+a+" "+n+" "+y).trim(),role:"presentation"},[p?null:l,C.el(".dhx_grid-body",{style:{height:g,width:c.width-b.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[e.scrollView&&e.scrollView.config.enable?e.scrollView.render([u]):u]),k.getFixedColsHeader(d,_,E.Split.left),k.getFixedColsHeader(d,_,E.Split.right),k.getFixedCols(d,_,E.Split.left),k.getFixedCols(d,_,E.Split.right),O.getFixedDataRows(d,_,E.Split.top),O.getFixedDataRows(d,_,E.Split.bottom),p?null:v])])}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.TreeFilterType||(e.TreeFilterType={})).all="all",n.level="level",n.leafs="leafs",(n=e.DataEvents||(e.DataEvents={})).afterAdd="afteradd",n.beforeAdd="beforeadd",n.removeAll="removeall",n.beforeRemove="beforeremove",n.afterRemove="afterremove",n.change="change",n.dataRequest="dataRequest",n.load="load",n.loadError="loaderror",n.beforeLazyLoad="beforelazyload",n.afterLazyLoad="afterlazyload",n.beforeItemLoad="beforeItemLoad",n.afterItemLoad="afterItemLoad",(n=e.DragEvents||(e.DragEvents={})).beforeDrag="beforeDrag",n.dragStart="dragStart",n.dragOut="dragOut",n.dragIn="dragIn",n.canDrop="canDrop",n.cancelDrop="cancelDrop",n.beforeDrop="beforeDrop",n.afterDrop="afterDrop",n.afterDrag="afterDrag",(e=e.DataDriver||(e.DataDriver={})).json="json",e.csv="csv",e.xml="xml"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(15),o=i(39);e.isEqualObj=function(t,e){for(var i in t)if(t[i]!==e[i]||Array.isArray(t[i]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var n=[],o=[];for(t.replace(/(\d+)|(\D+)/g,function(t,e,i){n.push([e||1/0,i||""])}),e.replace(/(\d+)|(\D+)/g,function(t,e,i){o.push([e||1/0,i||""])});n.length&&o.length;){var i=n.shift(),r=o.shift(),r=i[0]-r[0]||i[1].localeCompare(r[1]);if(r)return r}return n.length-o.length}return t-e},e.findByConf=function(t,e){if("function"==typeof e){if(e.call(this,t))return t}else if(e.by&&e.match&&t[e.by]===e.match)return t},e.isDebug=function(){var t=window.dhx;if(void 0!==t)return void 0!==t.debug&&t.debug},e.dhxWarning=function(t){console.warn(t)},e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"==e?new n.DataProxy(t):"object"==e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,e=e&&e.dataDrivers||o.dataDrivers;if(e[t])return new e[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(e)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var i,n={};for(i in t)i.startsWith("$")||e&&e[i]||(n[i]=t[i]);return n},e.isTreeCollection=function(t){return Boolean(t.getRoot)},e.hasJsonOrArrayStructure=function(t){if("object"==typeof t)return!0;if("string"!=typeof t)return!1;try{var e=JSON.parse(t);return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}catch(t){return!1}}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e(1),s=e(1);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"};var v,n={"%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 0===t&&(t=12),t<10?"0"+t:t},"%g":function(t){t=t.getHours()%12;return 0===t&&(t=12),t},"%H":function(t){t=t.getHours();return t<10?"0"+t:t},"%G":function(t){return t.getHours()},"%i":function(t){t=t.getMinutes();return t<10?"0"+t:t},"%s":function(t){t=t.getSeconds();return t<10?"0"+t:t},"%a":function(t){return 12<=t.getHours()?"pm":"am"},"%A":function(t){return 12<=t.getHours()?"PM":"AM"},"%u":function(t){return t.getMilliseconds()}},m={"%d":function(t,e,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=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=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"!==(_=h[u]).formatter&&"%a"!==_.formatter||(n=_.value);for(var f=new Date(0),p=0,g=r;p<g.length;p++){var _=g[p];if(m[_.formatter]){if(i&&!m[_.formatter](f,_.value,n,i))return!1;m[_.formatter](f,_.value,n)}}return!!i||f}}(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;a.copy=function(t){return new Date(t)},a.fromYear=function(t){return new Date(t,0,1)},a.fromYearAndMonth=function(t,e){return new Date(t,e,1)},a.weekStart=function(t,e){e=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)},a.monthStart=function(t){return new Date(t.getFullYear(),t.getMonth(),1)},a.yearStart=function(t){return new Date(t.getFullYear(),0,1)},a.dayStart=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},a.addDay=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},a.addMonth=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth()+e)},a.addYear=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear()+e,t.getMonth())},a.withHoursAndMinutes=function(t,e,i,n){return void 0===n||!n&&12===e||n&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,i):n&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,i):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,i)},a.setMonth=function(t,e){t.setMonth(e)},a.setYear=function(t,e){t.setFullYear(e)},a.mergeHoursAndMinutes=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes())},a.isWeekEnd=function(t){return 0===t.getDay()||6===t.getDay()},a.getTwelweYears=function(t){t=t.getFullYear(),t-=t%12;return i.range(t,11+t)},a.getDayOrdinal=function(t){return(t.valueOf()-a.yearStart(t).valueOf())/864e5},a.getWeekNumber=function(t){6!==t.getDay()&&(t=a.addDay(t,6-t.getDay()));var e=a.getDayOrdinal(t);return e-t.getDay()<0&&(t=new Date(t.getFullYear()-1,12,0),e=a.getDayOrdinal(t)),Math.floor((e-t.getDay()+10)/7)},a.isSameDay=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},a.toDateObject=function(t,e){return"string"==typeof t?o(t,e):new Date(t)},a.nullTimestampDate=new Date(0),e=a;function a(){}r.DateHelper=e},function(t,e,i){(function(o,r){!function(){o="undefined"!=typeof window?window:this;var e=1,i={},n=!1;function d(t){o.setImmediate?r(t):o.importScripts?setTimeout(t):(i[++e]=t,o.postMessage(e,"*"))}function u(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,i,n=this,r=0,s=0,o=[];(n.promise=n).resolve=function(t){return e=n.fn,i=n.er,r||(s=t,r=1,d(c)),n},n.reject=function(t){return e=n.fn,i=n.er,r||(s=t,r=2,d(c)),n},n._d=1,n.then=function(t,e){if(1!=this._d)throw TypeError();var i=new u;return i.fn=t,i.er=e,3==r?i.resolve(s):4==r?i.reject(s):o.push(i),i},n.catch=function(t){return n.then(null,t)};var a=function(t){r=t||4,o.map(function(t){3==r&&t.resolve(s)||t.reject(s)})};try{"function"==typeof t&&t(n.resolve,n.reject)}catch(t){n.reject(t)}return n;function l(t,e,i,n){if(2==r)return n();if("object"!=typeof s&&"function"!=typeof s||"function"!=typeof t)n();else try{var o=0;t.call(s,function(t){o++||(s=t,e())},function(t){o++||(s=t,i())})}catch(t){s=t,i()}}function c(){var t;try{t=s&&s.then}catch(t){return s=t,r=2,c()}l(t,function(){r=1,c()},function(){r=2,c()},function(){try{1==r&&"function"==typeof e?s=e(s):2==r&&"function"==typeof i&&(s=i(s),r=1)}catch(t){return s=t,a()}s==n?(s=TypeError(),a()):l(t,function(){a(3)},a,function(){a(1==r&&3)})})}}o.setImmediate||o.addEventListener("message",function(t){if(t.source==o)if(n)d(i[t.data]);else{n=!0;try{i[t.data]()}catch(t){}delete i[t.data],n=!1}}),u.resolve=function(e){if(1!=this._d)throw TypeError();return e instanceof u?e:new u(function(t){t(e)})},u.reject=function(i){if(1!=this._d)throw TypeError();return new u(function(t,e){e(i)})},u.all=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return u.reject(TypeError());var o=new u;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){return n[e]=t,i(),t},i)}))}(),o},u.race=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return u.reject(TypeError());if(0==n.length)return new u;var o=new u;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){i(null,t)},i)}))}(),o},u._d=1,t.exports=u}()}).call(this,i(23),i(75).setImmediate)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(24),i=(o.prototype.updateUrl=function(t,e){for(var i in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[i]=e[i],this.url+=i+"="+encodeURIComponent(e[i])+"&";this.url=this.url.slice(0,-1)},o.prototype.load=function(){return n.ajax.get(this.url,null,{responseType:"text"})},o.prototype.save=function(t,e){switch(e){case"delete":return n.ajax.delete(this.url,t);case"update":return n.ajax.put(this.url,t);case"insert":default:return n.ajax.post(this.url,t)}},o);function o(t,e){this.url=this._url=t,this.config=e}e.DataProxy=i},function(t,e,i){"use strict";var y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var Y=i(1),X=i(0),q=i(21),U=i(7),K=i(4),n=i(88),c=i(2),J=i(9),Z=i(10);function o(t,e,i,n,o){e=c.locateNodeByClassName(o.target,"dhx_grid-fixed-cols-wrap")?0:e;var r,s,a=c.locateNodeByClassName(o.target,"dhx_grid-cell"),l=c.locateNodeByClassName(o.target,"dhx_span-cell");(a||l)&&n&&(e=a?a.parentNode:l,r=(a||l).getAttribute("data-dhx-col-id"),l=i.filteredColumns.find(function(t){return t.id===r}),s=e.getAttribute("data-dhx-id"),e=(i.$data||i.data).find(function(t){return t.id.toString()===s}),(n.toLocaleLowerCase().includes("touch")?i._events:i.events).fire(n,[e,l,o]))}function m(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-"+i.align:"dhx_align-left",a="";r&&(a="dhx_tree-cell "+(i.$cellCss[e.id]||"")+" "+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":"")));o=J.getTreeCellWidthOffset(e);return X.el(".dhx_grid-cell",y({class:a,style:{width:i.$width,height:e.$height,padding:e.$items?0:"0 0 0 "+o+"px"},"data-dhx-col-id":i.id},{role:"gridcell","aria-colindex":1}),r?[e.$items?X.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 "+(4+o)+"px":"0 0 0 4px"}})):null,X.el(".dhx_tree-cell",{class:s+(n.autoHeight?" dhx_tree-cell_auto-height":"")},[t])]:null)}function Q(t,e,i){return n.getEditor(t,e,i)}function tt(t){var e=t.$scrollBarWidth,i=t.$headerLevel*t.headerRowHeight,n=t.$footerLevel*t.footerRowHeight,o=t.$totalWidth-t.$width+Z.BORDERS+e.y,e=t.$totalHeight-t.$height+i+n+Z.BORDERS+e.x;return{x:0<o?o-t.scroll.left:0,y:0<e?e-t.scroll.top:0}}e.getHandlers=function(t,e,i){return{onclick:[o,t,e,i,K.GridEvents.cellClick],onmouseover:[o,t,e,i,K.GridEvents.cellMouseOver],onmousedown:[o,t,e,i,K.GridEvents.cellMouseDown],ondblclick:[o,t,e,i,K.GridEvents.cellDblClick],oncontextmenu:[o,t,e,i,K.GridEvents.cellRightClick],ontouchstart:[o,t,e,i,K.GridEvents.cellMouseDown],ontouchmove:[o,t,e,i,K.GridSystemEvents.cellTouchMove],ontouchend:[o,t,e,i,K.GridSystemEvents.cellTouchEnd]}},e.getTreeCell=m,e.getCells=function(p){if(!p.data||!p.filteredColumns)return[];var o,g=p.$positions,r=p.data?p.data.slice(g.yStart,g.yEnd):[],s=p.filteredColumns.slice(g.xStart,g.xEnd),_=p.selection.getCell(),v=!0,t=document.querySelector(".dhx_drag-ghost");return!t||(t=Array.from(t.querySelectorAll(".dhx_grid-row")).map(function(t){return Number(t.getAttribute("aria-rowindex"))-1})).length&&(o=t.map(function(t){return p.data[t]}).filter(function(e){return e&&!r.find(function(t){return t.id===e.id})}),r.push.apply(r,o)),r.map(function(f,t){var e=null==o?void 0:o.some(function(t){return t.id===f.id}),i=r.length-1===t,n="";return p.rowCss&&(n=p.rowCss(f)),f.$css&&(n+=f.$css),X.el(".dhx_grid-row",y({style:{height:i?f.$height+1:f.$height,display:e?"none":null},"data-dhx-id":f.id,class:n,_key:f.id,_flags:X.KEYED_LIST},e?{}:{role:"row","aria-rowindex":g.yStart+t+1}),f.$customRender?[f.$customRender(f,p)]:s.map(function(t,e){var i;if(!t.hidden){var n=f[t.id],o=J.getEditorOptions(t,f);(t.editable||p.editable&&!1!==t.editable)&&("select"===t.editorType||"combobox"===t.editorType||"multiselect"===t.editorType)&&o&&(n=(n="string"==typeof n&&"multiselect"===t.editorType?n.split(",").map(function(t){return t.trim()}):[null==n?void 0:n.toString()]).map(function(e){var t;return null!==(t=null===(t=o.find(function(t){return t.id&&t.id.toString()===e}))||void 0===t?void 0:t.value)&&void 0!==t?t:e}).join(", "));var r=J.toFormat(n,t.type,t.format),s=function(t,e,i,n){return y({role:"gridcell","aria-colindex":e,"aria-readonly":n?"false":"true"},(e=t,n=f,t={tabindex:-1},_?_.row.id===n.id&&_.column.id===e.id&&(t.tabindex=0):v&&(t.tabindex=0,t.onfocus=function(t){var e;p.selection&&!_&&(e=t.target.parentNode.getAttribute("data-dhx-id"),(t=t.target.getAttribute("data-dhx-col-id"))&&e&&(p.selection.setCell(e,t),_=p.selection.getCell()))}),v=!1,t))},a=t.template?t.template(r,f,t):"boolean"!=typeof(i=r)&&"boolean"!==t.type||"string"==typeof i?i||0===i?i:"":""+Boolean(i);"string"==typeof a&&(a=U.isHtmlEnable(p,t)?X.el("div.dhx_grid-cell__content",y({".innerHTML":a},{role:"button","aria-label":"Edit content"})):a);var l=((t.$cellCss&&t.$cellCss[f.id]||"")+" dhx_"+t.type+"-cell").replace(/\s+/g," "),c=t.$width,d=p.$editable&&p.$editable.row===f.id&&p.$editable.col===t.id&&!p.$editable.isSpan,u=p.leftSplit,h=p.filteredColumns;return((d||"boolean"===t.type&&(p.editable&&(null===(n=t.editable)||void 0===n||n)||!p.editable&&t.editable))&&(a=Q(f,t,p).toHTML(),l+=" dhx_grid-cell__editable",u===h.indexOf(t)+1&&--c),"tree"===p.type&&p.firstColId===t.id)?m(a,f,t,p):(p.dragMode&&!d&&(l+=(f.$drophere?" dhx_grid-cell--drophere":"")+(f.$dragtarget?" dhx_grid-cell--dragtarget":"")),t.align&&(l+=" dhx_align-"+t.align),U.isHtmlEnable(p,t)&&(l+=" dhx_grid-cell__content_html-enable"),p.autoHeight&&(l+=" dhx_grid-cell__content_auto-height"),X.el(".dhx_grid-cell",y({class:l,style:{width:c,height:f.$height+"px"},_key:t.id,"data-dhx-col-id":t.id},s(t,g.xStart+e+1,0,p.editable)),[a]))}}))})},e.getSpans=function(j,F){var $,N=[],V=j.filteredColumns,W=j.data,t=j.spans,z=j.bottomSplit;if(!V.length||!t)return null;for(var B=j.fixedColumns.right.length,G=t.filter(function(t){return null===(t=t.$renderFrom)||void 0===t?void 0:t.includes(j.$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<G.length;e++)!function(t){var e=G[t].row,i=G[t].column,n=G[t].rowspan||1,o=G[t].colspan||1,r=G[t].text,s=G[t].css,a=G[t].$markCss,l=G[t].$type,c=F===K.Split.bottom&&j.$renderFrom.endsWith("FixedCols"),d=c?j.$data:W,u=Y.findIndex(V,function(t){return""+t.id==""+i}),h=Y.findIndex(d,function(t){return""+t.id==""+e});if(u<0||h<0)return;if(c){var f=j.$data[h+n-1];if(!W.find(function(t){return t.id===(null==f?void 0:f.id)}))return}var p=V[u],g=d[h];if(p.hidden)return;var _=void 0;_=Y.isDefined(r)?r.toString():void 0===g[i]?"":J.toFormat(g[i],p.type,p.format);_=(p.template||function(t,e,i){return t||0===t?t:""})(_,g,p);var v=U.isHtmlEnable(j,p);_="string"==typeof _?X.el("div.dhx_span-cell-content",{".innerHTML":v?_:null},v?null:_):_;var m=void 0;m="bottomFixedRows"===j.$renderFrom||c?h<(A=d.length-z)?-U.getTotalHeight(d.slice(h,A)):U.getTotalHeight(d.slice(A,h)):U.getTotalHeight(d.slice(0,h))-(F?0:1);var y=0;if("rightFixedCols"===j.$renderFrom)var x=V.length-j.fixedColumns.right.length,y=u<x?-U.getTotalWidth(V.slice(u,x)):U.getTotalWidth(V.slice(x,u));else for(var b=u-1;0<=b;b--)y+=V[b].$width;var w=g.$items&&0===u,C=u===V.length-1,S=u+o===V.length,E=B&&u===V.length-B,D=F===K.Split.bottom&&j.fixedRows.bottom.find(function(t){return t.id===e}),k=z&&h+n>d.length-z,O=B&&u+o===V.length-B,T=p.header[0].text?" dhx_span-cell":" dhx_span-cell dhx_span-cell--title";T+=w?" dhx_span-expand-cell":"",T+=a?" "+a:"",T+=s?" "+s:"",T+=0===h?" dhx_span-first-row":"",T+=h+n===d.length?" dhx_grid__span_bottom--last-row":"",T+=0===u||E?" dhx_span-first-col":"",T+=C||S?" dhx_span-last-col":"",T+=1===o?" dhx_span-"+(p.type||"string")+"-cell":" dhx_span-string-cell",T+=p.align?" dhx_align-"+p.align:" dhx_"+l+"-cell",T+=D?" dhx_grid__span_bottom--all-fixed":"",T+=k?" dhx_grid__span_bottom--part-fixed":"",T+=O?" dhx_grid__span_right--before-fixed":"";r=Y.findIndex(j.columns,function(t){return t.id===i}),v=1<o?q.getWidth(j.columns,o,r):p.$width,c=void 0;1<n?(c=q.getHeight(d,n,h),F!==K.Split.top||!j.$renderFrom.endsWith("FixedCols")||0<(M=h+n-d.length)&&(P=j.fixedRows.top.length,c+=U.getTotalHeight(j.$data.slice(P,P+M)))):c=g.$height;var M,P,H,L,I,R,A=null;((null===($=j.$editable)||void 0===$?void 0:$.isSpan)&&j.$editable.row===e&&j.$editable.col===i||"boolean"===p.type&&(j.editable&&(null===($=p.editable)||void 0===$||$)||!j.editable&&p.editable))&&(x=j.topSplit,s=(a=j.fixedColumns.left.length)&&u+o<=a||B&&u>=V.length-B,E=h<(x||0)||h+n>d.length-(z||0),C=x&&h+n<=x||z&&h>=d.length-z,S=u<(a||0)||u+o>V.length-(B||0),("render"===j.$renderFrom||s&&!E||C&&!S)&&(l=j.$height,D=j.$scrollBarWidth,k=j.scroll,O=j.fixedRows,r=j.fixedColumns,P=G[t].text,M=0,_=Q(g,p,j).toHTML(P),T+=" dhx_span__editable",C||(x=j.$headerLevel*j.headerRowHeight,E=j.$footerLevel*j.footerRowHeight,S=U.getTotalHeight(O.top),t=U.getTotalHeight(O.bottom),x=(P=D.yState?l-x-E-D.x-Z.BORDERS:j.$totalHeight)-t<(l=m+c-k.top),(E=m-S<k.top)&&x&&D.xState&&(M=1),m=E?k.top+S-(S&&!s?1:0):m,c=x?P-m-t+k.top-M:E?l-S:c),"render"===j.$renderFrom&&(A=12,r.left.find(function(t){return t.id===i})&&(y=k.left+U.getTotalWidth(r.left.slice(0,u)),s||(L=U.getTotalWidth(r.left.slice(u,a)),v=v-k.left>L?v-k.left:L)),O.top.find(function(t){return t.id===e})&&(m=k.top+U.getTotalHeight(O.top.slice(0,h)),C||(I=U.getTotalHeight(j.fixedRows.top.slice(h,j.topSplit)),c=0<c?I+c-M:I)),r.right.find(function(t){return t===V[V.indexOf(p)+o-1]})&&(R=V.length,H=tt(j),L=(k=R-V.indexOf(p)-o)?U.getTotalWidth(r.right.slice(0,-k)):U.getTotalWidth(r.right),r=U.getTotalWidth(V.slice(u,R-B)),y=H.x>r?y-H.x+r:y,s||(v=H.x<r?v-H.x-1:L-1)),O.bottom.find(function(t){return t===d[d.indexOf(g)+n-1]})&&(R=d.length,H=tt(j),I=(L=R-d.indexOf(g)-n)?U.getTotalHeight(O.bottom.slice(0,-L)):U.getTotalHeight(j.fixedRows.bottom),R=U.getTotalHeight(d.slice(h,R-z)),m=H.y>R?m-H.y+R:m,C||(c=H.y<R?I+c-M-(L?-1:M?0:1):I-(L?-1:1)))),a===u+1&&--v,u===V.length-B&&(y+=1,--v))),N.push(X.el("div",{class:T,style:{width:v,height:c,top:m,left:y,zIndex:A},"data-dhx-col-id":i,"data-dhx-id":e,"aria-hidden":"true"},[w?X.el(".dhx_span-expand-cell-icon",{class:g.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":g.id,role:"button","aria-label":g.$opened?"Collapse group":"Expand group",style:{padding:"0 0 0 "+(4+J.getTreeCellWidthOffset(g))+"px"}}):null,_]))}(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:U.getTotalWidth(e),y:U.getTotalHeight(t)}},e.normalizeSpan=function(t,e){var i=void 0===(v=e.topSplit)?0:v,n=void 0===(m=e.bottomSplit)?0:m,o=e.data,r=e.columns,s=Z.getCurrFixedCols(e,K.Split.left).length,a=Z.getCurrFixedCols(e,K.Split.right).length,l=t.column,c=t.row,d=t.colspan,u=t.rowspan,h=r.findIndex(function(t){return t.id==l}),f=Y.isDefined(t.text)?"string":r[h].type,p=o.findIndex(function(t){return t.id==c}),g=h+(d?d-1:0),_=p+(u?u-1:0),v=[],m=h<s,e=p<i,d=g>=r.length-a,u=_>=o.length-n;return s<=g&&i<=_&&h<r.length-a&&p<o.length-n&&v.push("render"),m&&v.push("leftFixedCols"),d&&v.push("rightFixedCols"),!e||m||d?e&&!v.includes("render")&&v.push("render"):v.push("topFixedRows"),!u||m||d?u&&!v.includes("render")&&v.push("render"):v.push("bottomFixedRows"),y(y({},t),{$renderFrom:v,$type:f})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ChartEvents||(e.ChartEvents={})).toggleSeries="toggleSeries",e.chartMouseMove="chartMouseMove",e.chartMouseLeave="chartMouseLeave",e.resize="resize",e.serieClick="serieClick",e.seriaMouseMove="seriaMouseMove",e.seriaMouseLeave="seriaMouseLeave"},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var v=i(0),m=i(3);function y(t,e,i,n){return n&&(t+=2*e*Math.asin(.5*n/e)/(2*Math.PI*e)),[Math.cos(2*Math.PI*t)*e,Math.sin(2*Math.PI*t)*i]}function r(t,e,i){t.setAttribute("transform","translate("+e+", "+i+") scale(1.05)"),t.classList.add("dhx_pie-transform-delay")}function n(t){t.setAttribute("transform","translate(0, 0)"),t.classList.remove("dhx_pie-transform-delay")}function x(t,e){return t-1e-6<e&&e<t+1e-6}function b(t,e){return"M"+-t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+-t+",0"}e.getCoordinates=y,e.shiftCoordinates=function(t,e,i){return[t[0]+e,t[1]+i]},e.pieLikeHandlers={onmouseover:function(e,i,t,n){var o=n.parent.attrs.id;r(n.el,e,i),n.parent.body.forEach(function(t){t.attrs.id!==o+"-text"&&t.attrs.id!==o+"-connector"||r(t.el,e,i)})},onmouseout:function(t,e){var i=e.parent.attrs.id;n(e.el),e.parent.body.forEach(function(t){t.attrs.id!==i+"-text"&&t.attrs.id!==i+"-connector"||n(t.el)})}},e.radarScale=function(t,e,i){var n,a=e<i?e/2:i/2,l=1/t.scales.length,c=.5<l?1:0,d=[],o=(n=a,o="#fafafa",v.sv("circle",{cx:0,cy:0,r:n,fill:o,stroke:"none",class:"background-circle"}));d.push(o);for(var u=-.25,r=[],s=t.axis,h="radar-grid "+(t.zebra?"zebra":""),f=1;f<s.length;f+=2){var p=a*s[f-1],g=a*s[f],g=b(p,!0)+" "+b(g,!1),g=v.sv("path",{d:g,fill:"none",stroke:"black",class:h});r.push(g)}return d.push(r),t.scales.forEach(function(t){var e=y(u,a,a),i=e[0],n=e[1],o=u+l,r=y(o,a,a),e=r[0],r=r[1],e="M "+i+" "+n+" A "+a+" "+a+" 0 "+c+" 1 "+e+" "+r+" L 0 0",r=v.sv("path",{d:e,stroke:"black",fill:"none",class:"radar-scale"});d.push(r);var s,e=[8,8],r=e[0],e=e[1],r=x(u,0)||x(u,.5)?0:u<0||.5<u?-r:r,e=x(u,-.25)||x(u,.25)?0:u<-.25||.25<u?-e:e;t=x(u,-.25)||x(u,.25)?(s=x(u,-.25)?m.verticalTopText:m.verticalBottomText,v.sv("text",{x:i+e,y:n+r,class:"scale-text"},[s(t)])):(s=-.25<=u&&u<=.25?"start-text scale-text":"end-text scale-text",v.sv("text",{x:i+e,y:n+r,class:s},[m.verticalCenteredText(t)])),d.push(t),u=o}),u=-.25,t.realAxis&&(o=t.realAxis.map(function(t,e){var i=y(-.25,a*s[e],a*s[e]),e=i[0],i=i[1];return v.sv("text",{x:e,y:i,dx:-10,class:"radar-axis-text"},[m.verticalCenteredText(t.toString())])}),d.push(o)),v.sv("g",_({transform:"translate("+e/2+", "+i/2+")"},{"aria-label":"x-axis"+((t=t.attribute)?", "+t:"")}),d)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),r=i(17),s=i(3),n=i(63),a=i(13),i=(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]);i[0]>s&&(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);e[0]>r&&(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){if((this._data.getItem(e)||"calendarHeatMap"===this.config.type)&&this.config.tooltip){var t,i=void 0,n=void 0;return"calendarHeatMap"===this.config.type?(n=this._points.find(function(t){return t[2]===e.toString()}))&&((t=new Date).setTime(n[0]),n=[a.getFormattedDate(this.config.dateFormat,t),n[1]]):i=this._defaultLocator(this._data.getItem(e)),this.config.tooltipTemplate?this.config.tooltipTemplate(i||n):i?i[0]:n[1]+", <br>"+n[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 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 n.getShadeHelper(t,e)},l);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||o.uid(),this._events=i,this._points=[],this._setDefaults(e)}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),i=(o.prototype.getFocusId=function(){return this._activeWidgetId},o.prototype.setFocusId=function(t){this._activeWidgetId=t},o);function o(){var e=this;this._initHandler=function(t){return e._activeWidgetId=n.locate(t,"data-dhx-widget-id")},this._removeFocusClass=function(t){var e=document.body.classList;e.contains("utilityfocus")&&e.remove("utilityfocus")},this._addFocusClass=function(t){var e=document.body.classList;"Tab"===t.code?e.contains("utilityfocus")||e.add("utilityfocus"):e.contains("utilityfocus")&&e.remove("utilityfocus")},document.addEventListener("focusin",this._initHandler),document.addEventListener("pointerdown",this._initHandler),document.addEventListener("mousedown",this._removeFocusClass),document.addEventListener("keydown",this._addFocusClass)}e.focusManager=new i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),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}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SelectionEvents||(e.SelectionEvents={})).beforeUnSelect="beforeunselect",e.afterUnSelect="afterunselect",e.beforeSelect="beforeselect",e.afterSelect="afterselect"},function(t,e){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},function(t,e,i){"use strict";(function(c){Object.defineProperty(e,"__esModule",{value:!0});var d=i(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.includes("?")?"&":"?",o+=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=u.toDataDriver(d.DataDriver.xml);return i?e.text().then(function(t){return i.toJsonObject(t)}):e.text();default:return e.text()}})):new c(function(t,e){var i,n=new XMLHttpRequest;for(i in n.onload=function(){200<=n.status&&n.status<300?("raw"===a&&t({url:n.responseURL,headers:n.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce(function(t,e){e=e.split(": ");return t[e[0]]=e[1],t},{}),body:n.response}),204===n.status?t():t(function(t,e){switch(e){case"json":return JSON.parse(t);case"text":return t;case"xml":var i=u.toDataDriver(d.DataDriver.xml);return i?i.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"};default:return t}}(n.responseText,a||h(n.getResponseHeader("Content-Type"))))):e({status:n.status,statusText:n.statusText})},n.onerror=function(){e({status:n.status,statusText:n.statusText,message:n.responseText})},n.open(s,o),l)n.setRequestHeader(i,l[i]);switch(s){case"POST":case"DELETE":case"PUT":n.send(void 0!==r?JSON.stringify(r):"");break;case"GET":default:n.send()}})}e.ajax={get:function(t,e,i){return n(t,e,"GET",i&&i.headers,void 0!==i?i.responseType:void 0)},post:function(t,e,i){return n(t,e,"POST",i&&i.headers,void 0!==i?i.responseType:void 0)},put:function(t,e,i){return n(t,e,"PUT",i&&i.headers,void 0!==i?i.responseType:void 0)},delete:function(t,e,i){return n(t,e,"DELETE",i&&i.headers,void 0!==i?i.responseType:void 0)}}}).call(this,i(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!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"},i=(n.prototype.destructor=function(){document.removeEventListener("keydown",this._initHandler),this.removeHotKey()},n.prototype.addHotKey=function(t,e){t=a(t);this._keysStorage[t]||(this._keysStorage[t]=[]),this._keysStorage[t].push({handler:e})},n.prototype.removeHotKey=function(t,i){var n,o,r=this;t?t&&i?(n=a(t),o=function(t){return t.toString().replace(/\n/g,"").replace(/\s/g,"")},this._keysStorage[n].forEach(function(t,e){o(t.handler)===o(i)&&(delete r._keysStorage[n][e],r._keysStorage[n]=r._keysStorage[n].filter(function(t){return t}))})):(t=a(t),delete this._keysStorage[t]):this._keysStorage={}},n.prototype.exist=function(t){t=a(t);return!!this._keysStorage[t]},n.prototype.getKeyStorageLength=function(){return Object.keys(this._keysStorage).length},n);function n(t){var o=this;this._keysStorage={},this._initHandler=function(t){var e;e=48<=t.which&&t.which<=57||65<=t.which&&t.which<=90?String.fromCharCode(t.which):(e=32===t.which?t.code:t.key,s.isIE()&&l[e]||e);var i=o._keysStorage[(t.ctrlKey||t.metaKey?4:0)+(t.shiftKey?2:0)+(t.altKey?1:0)+(e&&e.toLowerCase())];if(i)for(var n=0;n<i.length;n++){if(o._beforeCall&&!1===o._beforeCall(t,r.focusManager.getFocusId()))return;i[n].handler(t)}},t&&(this._beforeCall=t),document.addEventListener("keydown",this._initHandler)}e.KeyManager=i},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(27)),n(e(97)),n(e(28))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(28),a=i(44),l=i(0),o=(r=a.Cell,o(c,r),c.prototype.destructor=function(){for(var t=0,e=this._all;t<e.length;t++){var i=e[t];this._all[i].destructor()}this.config=this._cells=this._root=this._xLayout=this._isViewLayout=null,this._all={},this.unmount()},c.prototype.toVDOM=function(){if(this._isViewLayout){var t=[this.getCell(this.config.activeView).toVDOM()];return r.prototype.toVDOM.call(this,t)}var e=[];return this._inheritTypes(),this._cells.forEach(function(t){t=t.toVDOM();Array.isArray(t)?e=e.concat(t):e.push(t)}),r.prototype.toVDOM.call(this,e)},c.prototype.removeCell=function(e){if(this.events.fire(s.LayoutEvents.beforeRemove,[e])){var t=this.config.parent||this;if(t!==this)return t.removeCell(e);t=this.getCell(e);t&&(t=t.getParent(),delete this._all[e],t._cells=t._cells.filter(function(t){return t.id!=e}),t.paint()),this.events.fire(s.LayoutEvents.afterRemove,[e])}},c.prototype.addCell=function(t,e){var i;void 0===e&&(e=-1),this.events.fire(s.LayoutEvents.beforeAdd,[t.id])&&(i=this._createCell(t),e<0&&(e=this._cells.length+e+1),this._cells.splice(e,0,i),this.paint(),this.events.fire(s.LayoutEvents.afterAdd,[t.id]))},c.prototype.getId=function(t){return t<0&&(t=this._cells.length+t),this._cells[t]?this._cells[t].id:void 0},c.prototype.getRefs=function(t){return this._root.getRootView().refs[t]},c.prototype.getCell=function(t){var e;return null===(e=this._root)||void 0===e?void 0:e._all[t]},c.prototype.forEach=function(t,e,i){if(void 0===i&&(i=1/0),this._haveCells(e)&&!(i<1))for(var n=(e?this._root._all[e]:this._root)._cells,o=0;o<n.length;o++){var r=n[o];t.call(this,r,o,n),this._haveCells(r.id)&&r.forEach(t,r.id,--i)}},c.prototype.cell=function(t){return this.getCell(t)},c.prototype.progressShow=function(){this._progress=!0,this.paint()},c.prototype.progressHide=function(){this._progress=!1,this.paint()},c.prototype._getCss=function(t){var e=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",i=this.config.align?" "+e+"--"+this.config.align:"";if(t)return e+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:"");var n=this.config.parent?r.prototype._getCss.call(this):"dhx_widget dhx_layout",t=this.config.parent?"":" dhx_layout-cell";return n+(this.config.full?t:" "+e)+i},c.prototype._parseConfig=function(){var e=this,t=this.config,i=t.rows||t.cols||t.views||[];this._xLayout=!t.rows,this._cells=i.map(function(t){return e._createCell(t)})},c.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new c(this,t)):new a.Cell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},c.prototype._haveCells=function(t){if(t){t=this._root._all[t];return t._cells&&0<t._cells.length}return 0<Object.keys(this._all).length},c.prototype._inheritTypes=function(t){var e,i=this;void 0===t&&(t=this._cells),Array.isArray(t)?t.forEach(function(t){return i._inheritTypes(t)}):((e=t.config).rows||e.cols)&&(t=t.getParent(),!e.type&&t&&(t.config.type?e.type=t.config.type:this._inheritTypes(t)))},c);function c(t,e){var i=r.call(this,t,e)||this;return i._root=i.config.parent||i,i._all={},i._parseConfig(),i._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=l.create({render:function(){return i.toVDOM()}},i),i.mount(t,e)),i}e.Layout=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.LayoutEvents||(e.LayoutEvents={})).beforeShow="beforeShow",e.afterShow="afterShow",e.beforeHide="beforeHide",e.afterHide="afterHide",e.beforeResizeStart="beforeResizeStart",e.resize="resize",e.afterResizeEnd="afterResizeEnd",e.beforeAdd="beforeAdd",e.afterAdd="afterAdd",e.beforeRemove="beforeRemove",e.afterRemove="afterRemove",e.beforeCollapse="beforeCollapse",e.afterCollapse="afterCollapse",e.beforeExpand="beforeExpand",e.afterExpand="afterExpand"},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e(1),o=e(0),v=e(2);i.scrollViewConfig={enable:!1,autoHide:!0,timeout:1e3,scrollHandler:function(){}};n.prototype.enable=function(){this.config.enable=!0,this._getRootView().redraw()},n.prototype.disable=function(){this.config.enable=!1,this._getRootView().redraw()},n.prototype.render=function(t,e){var i=this;if(void 0===e&&(e=""),!this.config.enable||!t.length)return t;e&&(this._uid=e);var n=this.config.enable?[o.el(".y-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-y-area-"+e:"scroll-y-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"6px",height:"100%",right:0,top:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-y-runner-"+e:"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),o.el(".x-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-x-area-"+e:"scroll-x-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"100%",height:"6px",left:0,bottom:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-x-runner-"+e:"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return o.el(".scroll-view-wrapper",[o.el(".scroll-view",{onscroll:this._handlers.onscroll,_ref:e?"scroll-view-"+e:"scroll-view",_hooks:{didInsert:function(){i.update()},didRecycle:function(){i.update()}},style:{width:"calc(100% + "+this._scrollWidth+"px)",height:"calc(100% + "+this._scrollHeight+"px)"}},t)].concat(n))},n.prototype.update=function(){var t,e,i,n,o,r=this._getRefs();r&&(o=r.area,t=r.areaX,e=r.areaY,i=r.runnerY,n=r.runnerX,this._visibleYArea=o.clientHeight/o.scrollHeight,this._visibleXArea=o.clientWidth/o.scrollWidth,this._scrollYTop=o.scrollTop,this._scrollXLeft=o.scrollLeft,this._runnerYTop=this._scrollYTop*this._visibleYArea,this._runnerXLeft=this._scrollXLeft*this._visibleXArea,this._runnerHeight=this._visibleYArea<1?o.clientHeight*this._visibleYArea:0,this._runnerWidth=this._visibleXArea<1?o.clientWidth*this._visibleXArea:0,r=i.style.top,o=n.style.left,i.style.opacity=1,i.style.top=this._runnerYTop+"px",i.style.height=this._runnerHeight+"px",n.style.opacity=1,n.style.left=this._runnerXLeft+"px",n.style.width=this._runnerWidth+"px",r!==i.style.top&&(e.style.opacity=.9,e.style.width="10px"),o!==n.style.left&&(t.style.opacity=.9,t.style.height="10px"),this.config.autoHide?this._autoHideFunc||(this._autoHideFunc=s.debounce(function(){i.style.opacity=0,e.style.width="6px",n.style.opacity=0,t.style.height="6px"},this.config.timeout)):this._autoHideFunc=s.debounce(function(){e.style.width="6px",t.style.height="6px"},this.config.timeout),this._autoHideFunc())},n.prototype._getRefs=function(){var t=this._getRootView(),e=!(!t.refs["scroll-view"]||!t.refs["scroll-x-runner"]&&!t.refs["scroll-y-runner"]),i=!(!this._uid||!t.refs["scroll-view-"+this._uid]||!t.refs["scroll-x-runner-"+this._uid]&&!t.refs["scroll-y-runner-"+this._uid]);if(t.refs)return e?{area:t.refs["scroll-view"].el,areaY:t.refs["scroll-y-area"].el,areaX:t.refs["scroll-x-area"].el,runnerY:t.refs["scroll-y-runner"].el,runnerX:t.refs["scroll-x-runner"].el}:i?{area:t.refs["scroll-view-"+this._uid].el,areaY:t.refs["scroll-y-area-"+this._uid].el,areaX:t.refs["scroll-x-area-"+this._uid].el,runnerY:t.refs["scroll-y-runner-"+this._uid].el,runnerX:t.refs["scroll-x-runner-"+this._uid].el}:void 0},e=n;function n(t,e){var _=this;void 0===e&&(e={}),this.config=s.extend({enable:i.scrollViewConfig.enable,autoHide:i.scrollViewConfig.autoHide,timeout:i.scrollViewConfig.timeout,scrollHandler:i.scrollViewConfig.scrollHandler},e),this._wheelName=v.isIE()?"onmousewheel":"onwheel",this._getRootView=t,this._scrollYTop=this._scrollXLeft=this._runnerYTop=this._runnerXLeft=this._runnerHeight=this._runnerWidth=0,this._visibleYArea=this._visibleXArea=1,this._scrollWidth=v.getScrollbarWidth(),this._scrollHeight=v.getScrollbarHeight(),this._handlers=((t={onscroll:function(t){_.config.scrollHandler(t),_.update()}})[this._wheelName]=function(t){var e=!!v.locateNodeByClassName(t.target,"y-scroll");t.preventDefault();var i,n=40*(0<(t.deltaY||-t.wheelDelta)?1:-1),t=_._getRefs().area;e?(e=t.scrollHeight-_._runnerHeight,i=_._scrollYTop+n,t.scrollTop=i<0?0:e<i?e:i):(i=t.scrollWidth-_._runnerWidth,n=_._scrollXLeft+n,t.scrollLeft=n<0?0:i<n?i:n),_.update()},t.onmousedownRunner=function(t){t.preventDefault();function e(t){var e;i?(e=t.pageY-d,o.scrollTop=e<=a?0:l<e?c:(e-a)/_._visibleYArea):(t=t.pageX-p,o.scrollLeft=t<=u?0:h<t?f:(t-u)/_._visibleXArea),_.update()}var i=!!v.locateNodeByClassName(t.target,"y-scroll"),n=_._getRefs(),o=n.area,r=n.runnerY,s=n.runnerX,n=o.getBoundingClientRect(),a=n.top+window.pageYOffset,l=n.bottom+window.pageYOffset,c=o.scrollHeight-_._runnerHeight,d=t.pageY-r.getBoundingClientRect().top-window.pageYOffset,u=n.left+window.pageXOffset,h=n.right+window.pageXOffset,f=o.scrollWidth-_._runnerWidth,p=t.pageX-s.getBoundingClientRect().left-window.pageXOffset,g=function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",g),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",e),document.addEventListener("mouseup",g)},t.onmousedownArea=function(t){var e,i,n,o;v.locateNodeByClassName(t,"scroll-runner")||(t.preventDefault(),e=!!v.locateNodeByClassName(t.target,"y-scroll"),i=(o=_._getRefs()).area,n=o.runnerY,o=o.runnerX,e?i.scrollTop+=(t.pageY-n.getBoundingClientRect().top)/_._visibleYArea:i.scrollLeft+=(t.pageX-o.getBoundingClientRect().left)/_._visibleXArea,_.update())},t.onmouseenter=function(t){var e,i;v.locateNodeByClassName(t,"scroll-runner")||(i=_._getRefs())&&(e=!!v.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<_._runnerHeight?i.style.background="#eee":!e&&0<_._runnerWidth&&(t.style.background="#eee"))},t.onmouseleave=function(t){var e,i;v.locateNodeByClassName(t,"scroll-runner")||(i=_._getRefs())&&(e=!!v.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<_._runnerHeight?i.style.background="transparent":!e&&0<_._runnerWidth&&(t.style.background="transparent"))},t)}i.ScrollView=e},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(101)),n(e(45))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(49)),n(e(112)),n(e(55))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ListEvents||(e.ListEvents={})).click="click",e.doubleClick="doubleclick",e.focusChange="focuschange",e.beforeEditStart="beforeEditStart",e.afterEditStart="afterEditStart",e.beforeEditEnd="beforeEditEnd",e.afterEditEnd="afterEditEnd",e.itemRightClick="itemRightClick",e.itemMouseOver="itemMouseOver",e.contextmenu="contextmenu"},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.RealPosition||(e.RealPosition={})).left="left",n.right="right",n.top="top",n.bottom="bottom",n.center="center",(n=e.Position||(e.Position={})).right="right",n.bottom="bottom",n.center="center",n.left="left",n.top="top",(e=e.MessageContainerPosition||(e.MessageContainerPosition={})).topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(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},r=(l.prototype.addPadding=function(){this._padding=!0},l.prototype.getSize=function(){return this.config.size},l.prototype.scaleReady=function(t){var e=[];this._charts.forEach(function(t){t.getPoints().forEach(function(t){return e.push(t[1])})}),this._axis=new o.AxisCreator(e,this.config).getScale();var i=this._position;"radial"!==i&&(t[i]+=this.config.size)},l.prototype.point=function(t){return this.config.log?this._logPoint(t):this._isXDirection?(t-this._axis.min)/(this._axis.max-this._axis.min):1-(t-this._axis.min)/(this._axis.max-this._axis.min)},l.prototype.add=function(t){this._charts.push(t)},l.prototype.paint=function(e,i){var n=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t){return[n._isXDirection?n.point(t)*e:n.point(t)*i,t]});return 0===t.length&&"left"===this._position&&(t=[[0,0]]),a[this._position](t,this.config,e,i)},l.prototype.scaleGrid=function(){var a=this,l=this._position,c=this.config.grid,d=this.config.dashed,u=this.config.hidden;return{paint:function(t,e){var i,n,o=a._axis.steps.indexOf(a.config.targetLine),r=(i=t,n=e,a._axis.steps.map(function(t){return[a._isXDirection?a.point(t)*i:a.point(t)*n,t]})),s=a.point(a.config.targetValue),s={targetLine:o,dashed:d,grid:c,targetValue:s,hidden:u};return h[l](r,t,e,s)}}},l.prototype._setDefaults=function(t){t.locator&&(this.locator=s.locator(t.locator)),this.config=n(n({},{scalePadding:20,textPadding:11,grid:!0,targetLine:null,showText:!0}),t)},l.prototype._logPoint=function(t){var e=Math.abs(t)/t,i=this._axis.steps,n=i.length-1,o=i.indexOf(t);return n=-1!==o?o/n:((this._axis.min<0?i.indexOf(0):0)+e*s.log10(Math.abs(t)))/n,this._isXDirection?n:1-n},l);function l(t,e,i){this._data=t,this._padding=!1,this._charts=[],this._position=i,this._setDefaults(e),this._isXDirection="bottom"===i||"top"===i,"radial"!==i&&(this.config.size="left"===i||"right"===i?this.config.size||40+(this.config.title?40:0):this.config.size||20+(this.config.title?40:0))}e.Scale=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(3),i=i(19),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=e.locator):(this.yScale=e,this._yLocator=s.locator(this.config.value))},a.prototype.paint=function(t,e){r.prototype.paint.call(this,t,e)},a.prototype.dataReady=function(o){var r=this;return this.config.active?(this._points=this._data.map(function(t,e){var i=r._xLocator(t),n=r._yLocator(t),n=[i,n,t.id,i,n];return o&&(n[1]+=o[e][1]),n}),this._points):this._points=[]},a.prototype._calckFinalPoints=function(n,o){var r=this;this._points.forEach(function(t,e){t[0]=r.xScale.point(t[0])*n||0;var i=r.yScale.point(t[1])*o;t[1]=isNaN(i)?"xbar"===r.config.type?0:o:i})},a.prototype._defaultLocator=function(t){return[this._yLocator(t),this._xLocator(t)]},a);function a(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(3),i=i(19),o=(s=i.default,o(l,s),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.dataReady=function(){var s=this,t=this._data;return this._sum=t.reduce(function(t,e){return e.$hidden?t:t+parseFloat(s._valueLocator(e))},0),this._points=t.reduce(function(t,e,i){if(e.$hidden)return t;var n=s._textLocator(e),o=s._valueLocator(e),r=o/s._sum,i=s._colorLocator?s._colorLocator(e):a.getDefaultColor(i);return t.push([r,o,e.id,n,i]),t},[]),this._points},l.prototype.toggle=function(t){var e=this._data.getItem(t);e&&this._data.update(t,{$hidden:!e.$hidden})},l.prototype.getClosest=function(t,e){for(var i=1-(Math.atan2(t-this._center[0],e-this._center[1])+Math.PI)/Math.PI/2,n=this._points,o=0;o<n.length;o++){if(n[o][0]>=i)return[0,this._tooltipData[o][0],this._tooltipData[o][1],n[o][2]];i-=n[o][0]}return[1/0,null,null,null]},l.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t[0]}},l.prototype.getTooltipType=function(t){return"simple"},l.prototype._setDefaults=function(e){var i=this,t={subType:"basic",paddings:e.useLines?70:50};this.config=r(r({},t),e),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=a.locator(e.value),this._textLocator=a.locator(e.text),e.color?this._colorLocator=a.locator(e.color):e.monochrome&&(this._colorLocator=function(t){return a.getColorShade(e.monochrome,2*i._getPercent(t))})},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getPercent=function(t){return parseFloat(this._valueLocator(t))/this._sum},l);function l(){var t=null!==s&&s.apply(this,arguments)||this;return t._center=[0,0],t._tooltipData=[],t}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var l,c=i(0),d=i(3),i=i(35),o=(l=i.default,o(r,l),r.prototype.paint=function(t,e){var r=this;l.prototype.paint.call(this,t,e);var i,n=this.config.pointColor||this.config.color,o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),s=[];return this.config.strokeWidth&&s.push(this._getForm(this._points,this.config,o,t,e)),this.config.pointType&&(i=this._getPointType(this.config.pointType,n),s=s.concat(this._points.map(function(t){return i(t[0],t[1],d.calcPointRef(t[2],r.id))}).map(function(t,e){var i,n,o;return t&&t.attrs&&(t.attrs=a(a({},t.attrs),(i=t.key,n=r._points,i&&(o=n.find(function(t){return i.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":o?"point x="+o[3]+" y="+o[4]:"",tabindex:0})),r.config.tooltip&&(t.attrs.onmousemove=[r._handlers.onmousemove,r._points[e][2],r.id],t.attrs.onmouseleave=[r._handlers.onmouseleave,r._points[e][2],r.id],t.attrs.onclick=[r._handlers.onmousemove,r._points[e][2],r.id])),t}))),c.sv("g",a(a({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),s)},r.prototype._getForm=function(t,e,i,n,o){t=t.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ");return c.sv("path",{id:"seria"+e.id,d:t,stroke:e.color,class:i,"stroke-width":this.config.strokeWidth,fill:"none"})},r.prototype._setDefaults=function(t){this.config=a(a({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},r);function r(){return null!==l&&l.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),r=i(80),s=i(83),a=i(15),c=i(12),d=i(11),p=i(1),i=(u.prototype._reset=function(){this._order=[],this._pull={},this._changes={order:[]},this._initOrder=null,this._meta=new WeakMap,this._loaded=!1},u.prototype.add=function(t,i){var n=this;if(this.events.fire(d.DataEvents.beforeAdd,[t])){t=Array.isArray(t)?t.map(function(t,e){return 0!==e&&(i+=1),n._add(t,i)}):this._add(t,i);return this._applySmart(),t}},u.prototype.remove=function(t){var e=this;t instanceof Array?n(t).map(function(t){e._remove(t)}):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?c.isEqualObj(e,n)||(p.isId(e.id)&&t!==e.id?(c.dhxWarning("this method doesn't allow change id"),c.isDebug()):(e.parent&&n.parent&&e.parent!==n.parent&&this.move(t,-1,this,e.parent),p.extend(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),i||this._onChange("update",t,this._pull[t])),this._applySmart()):c.dhxWarning("item not found")},u.prototype.getIndex=function(e){return p.isId(e)&&p.isDefined(this._pull[e])?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===t&&(t=0),void 0===e&&(e=this._order.length),p.isNumeric(t)&&p.isNumeric(e)?0===this._order.slice(t,e).filter(function(t){return t&&t.$empty}).length:(this._loaded||(this._loaded=!this.find(function(t){return t.$empty})),!!this._loaded)},u.prototype.filter=function(t,e){var i;this.isDataLoaded()?(e&&e.add||(this._order=this._initOrder||this._order,this._initOrder=null),!t||"function"==typeof t||void 0!==(i=t).by&&void 0!==i.match&&(t=i.compare?function(t){return i.compare(t[i.by],i.match,t,i.multi)}:function(t){return t[i.by]==i.match}),this._filter=e&&e.smartFilter?t:null,this._applyFilters(t),this.events.fire(d.DataEvents.change)):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.find=function(t){for(var e in this._pull){var i=c.findByConf(this._pull[e],t);if(i)return i}return null},u.prototype.findAll=function(t){var e,i=[];for(e in this._pull){var n=c.findByConf(this._pull[e],t);n&&i.push(n)}return i},u.prototype.sort=function(t,e){this.isDataLoaded()?(e&&e.smartSorting&&(this._sorter=t),t&&this._applySorters(t),this.events.fire(d.DataEvents.change,[void 0,"sort",t])):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.copy=function(t,i,n,o){var r=this;return t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},u.prototype.move=function(t,i,n,o,e){var r=this;return t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o,0,e)},u.prototype.forEach=function(t){for(var e=0;e<this._order.length;e++)t.call(this,this._order[e],e,this._order)},u.prototype.load=function(t,e){return"string"==typeof t&&(this.dataProxy=t=new a.DataProxy(t)),this.dataProxy=t,this._loader.load(t,e)},u.prototype.parse=function(t,e){return this._reset(),this._loader.parse(t,e)},u.prototype.$parse=function(t){var e=this.config.approximate;e&&(t=this._approximate(t,e.value,e.maxNum)),this._parse_data(t),this._applySmart(),this.events.fire(d.DataEvents.change,["load"]),this.events.fire(d.DataEvents.load)},u.prototype.save=function(t){"string"==typeof t&&(t=new a.DataProxy(t)),this._loader.save(t)},u.prototype.changeId=function(t,e,i){var n;void 0===e&&(e=p.uid()),i||this.isDataLoaded()?(n=this.getItem(t))?(n.id=e,p.extend(this._pull[t],n),this._pull[e]=this._pull[t],i||this._onChange("update",e,this._pull[e]),delete this._pull[t]):c.dhxWarning("item not found"):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.isSaved=function(){return!this._changes.order.length},u.prototype.map=function(t){for(var e=[],i=0;i<this._order.length;i++)e.push(t.call(this,this._order[i],i,this._order));return e},u.prototype.mapRange=function(t,e,i){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var n=this._order.slice(t,e),o=[],r=t;r<=e;r++)o.push(i.call(this,this._order[r],r,n));return o},u.prototype.reduce=function(t,e){for(var i=0;i<this._order.length;i++)e=t.call(this,e,this._order[i],i);return e},u.prototype.serialize=function(t){void 0===t&&(t=d.DataDriver.json);for(var i=[],n=this,e=0;e<this._order.length;e++)!function(t){var e=l({},n._order[t]);Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),i.push(e)}(e);t=c.toDataDriver(t);if(t)return t.serialize(i)},u.prototype.getInitialData=function(){return this._initOrder},u.prototype.setMeta=function(t,e,i){var n;t&&((n=this._meta.get(t))||(n={},this._meta.set(t,n)),n[e]=i)},u.prototype.getMeta=function(t,e){t=this._meta.get(t);return t?t[e]:null},u.prototype.getMetaMap=function(t){return this._meta.get(t)},u.prototype.setRange=function(t,e){this._range=e?[t,e]:null},u.prototype.getRawData=function(t,e,i,n){if(i=i||this._order,1===n)return i;var o;if(this._range&&(t=this._range[0]+t,e=-1===e||t+(o=Math.abs(e-t))>this._range[1]?this._range[1]:t+o),!e||0===t&&(-1===e||e===i.length))return i;if(t>=i.length)return[];(-1===e||e>i.length)&&(e=i.length);i=i.slice(t,e);return 0!==i.filter(function(t){return t.$empty}).length&&this.events.fire(d.DataEvents.dataRequest,[t,e]),i},u.prototype._add=function(t,e){if(this.isDataLoaded()){e=this._addCore(t,e);return this._onChange("add",t.id,t),this.events.fire(d.DataEvents.afterAdd,[t]),e}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._remove=function(t){if(this.isDataLoaded()){var e=this._pull[t];if(e){if(!this.events.fire(d.DataEvents.beforeRemove,[e]))return;this._removeCore(e.id),this._onChange("remove",t,e)}this.events.fire(d.DataEvents.afterRemove,[e])}else c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._copy=function(t,e,i,n,o){if(this.isDataLoaded()){if(!this.exists(t))return null;var r=p.uid();return(o&&(e=-1===e?-1:e+o),i)?i instanceof u||!n?i.exists(t)?(i.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r):(i.add(c.copyWithoutInner(this.getItem(t)),e),t):void i.add(c.copyWithoutInner(this.getItem(t)),e):(this.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r)}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._move=function(t,e,i,n,o,r){if(this.isDataLoaded()){if(o&&(e=-1===e?-1:e+o),i&&i!==this&&this.exists(t)){var s=p.copy(this.getItem(t),!0);return r&&(s.id=r),(!r&&i.exists(t)||i.exists(r))&&(s.id=p.uid()),n&&(s.parent=n),i.add(s,e),this.remove(t),s.id}if(this.getIndex(t)===e)return null;s=this._order.splice(this.getIndex(t),1)[0];return-1===e&&(e=this._order.length),this._order.splice(e,0,s),this.events.fire(d.DataEvents.change,[t,"update",this.getItem(t)]),t}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._addCore=function(t,e){var i;return this.config.init&&(t=this.config.init(t)),t.id=null!==(i=t.id)&&void 0!==i?i:p.uid(),this._pull[t.id]&&c.dhxError("Item "+t.id+" already exist"),this._initOrder&&!c.isTreeCollection(this)&&this._addToOrder(this._initOrder,t,e),this._addToOrder(this._order,t,e),t.id},u.prototype._removeCore=function(e){0<=this.getIndex(e)&&(this._order=this._order.filter(function(t){return t.id!==e}),delete this._pull[e]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e}),delete this._pull[e])},u.prototype._parse_data=function(t){var e=this._order.length;this.config.prep&&(t=this.config.prep(t));for(var i=0,n=t;i<n.length;i++){var o=n[i];this._addCore(o,e++)}},u.prototype._approximate=function(t,e,i){for(var n=t.length,o=e.length,r=Math.floor(n/i),s=Array(Math.ceil(n/r)),a=0,l=0;l<n;l+=r){for(var c=p.copy(t[l]),d=Math.min(n,l+r),u=0;u<o;u++){for(var h=0,f=l;f<d;f++)h+=t[f][e[u]];c[e[u]]=h/(d-l)}s[a++]=c}return s},u.prototype._onChange=function(t,e,i){for(var n=0,o=0,r=this._changes.order;o<r.length;o++){var s=r[o],a=this._changes.order.indexOf(s);if(s.id===e&&!s.saving&&(n+=1,a===this._changes.order.length-1||this._changes.order[a+1].id!==e))return s.error&&(s.error=!1),s=l(l({},s),{obj:i,status:t}),10<(n+=1)?this._changes.order.splice(a,n-10,s):this._changes.order.splice(a+1,0,s),this._loader.updateChanges(this._changes),"remove"===t&&i.$emptyRow?void 0:void this.events.fire(d.DataEvents.change,[e,t,i])}this._changes.order.push({id:e,status:t,obj:l({},i),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(d.DataEvents.change,[e,t,i])},u.prototype._addToOrder=function(t,e,i){0<=i&&t[i]?(this._pull[e.id]=e,t.splice(i,0,e)):(this._pull[e.id]=e,t.push(e))},u.prototype._applySmart=function(){this._filter&&this._applyFilters(),this._sorter&&this._applySorters()},u.prototype._applySorters=function(t){this._sort.sort(this._order,t,this._sorter),this._initOrder&&this._initOrder.length&&this._sort.sort(this._initOrder,t,this._sorter)},u.prototype._applyFilters=function(e){var t,i=this._filter;e===i&&(e=null),(e||i)&&(t=this._order.filter(function(t){return(!e||e(t))&&(!i||i(t))}),this._initOrder||(this._initOrder=this._order),this._order=t)},u);function u(t,e){var n=this;this._changes={order:[]},this.config=t||{},this._sort=new s.Sort,this._loader=new r.Loader(this,this._changes),this.events=e||new o.EventSystem(this),this.events.on(d.DataEvents.dataRequest,function(t,e){var i=n.dataProxy;i&&i.updateUrl&&(i.updateUrl(null,{from:t,limit:i.config.limit||e-t}),n.load(i))}),this.events.on(d.DataEvents.loadError,function(t){setTimeout(function(){"string"!=typeof t?c.dhxError(t):c.dhxWarning(t)},0)}),this._reset()}e.DataCollection=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(40),r=i(41),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";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.serialize=function(t){return t},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},o);function o(){}e.JsonDriver=n},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=(r.prototype.getFields=function(t,e){for(var i=new RegExp('(?<!")'+this.config.columnDelimiter+'(?!")'),n=t.trim().split(i),o={},r=0;r<n.length;r++)o[e?e[r]:r+1]=isNaN(Number(n[r]))?n[r].replace(/"[,;"]"/gi,function(t){return t.split("").splice(1,1).slice(-1,1).join("")}):parseFloat(n[r]);return o},r.prototype.getRows=function(t){return t.trim().split(this.config.rowDelimiter)},r.prototype.toJsonArray=function(t){var e=this,i=this.getRows(t),n=this.config.names;return this.config.skipHeader&&(t=i.splice(0,this.config.skipHeader),this.config.nameByHeader&&(n=t[0].trim().split(this.config.columnDelimiter))),i.map(function(t){return e.getFields(t,n)})},r.prototype.serialize=function(t,e){var i=t[0]?Object.keys(t[0]).filter(function(t){return!t.startsWith("$")}).join(this.config.columnDelimiter)+this.config.columnDelimiter+this.config.rowDelimiter:"",t=this._serialize(t);return e?t:i+t},r.prototype._serialize=function(t){var o=this;return t.reduce(function(t,n){var e=Object.keys(n).reduce(function(t,e,i){return e.startsWith("$")||"items"===e?t:""+t+n[e].replaceAll(/[,;"]/gi,function(t){return'"'+t+'"'})+(i===n.length-1?"":o.config.columnDelimiter)},"");return n.items?t+(t?"\n":"")+e+o._serialize(n.items):""+t+(t?o.config.rowDelimiter:"")+e},"")},r);function r(t){this.config=n(n({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}e.CsvDriver=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(43)),n(e(124)),n(e(4)),n(e(21));var o=e(16);i.getTreeCell=o.getTreeCell,n(e(9)),n(e(7))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},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},v=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r,l=i(0),a=i(5),c=i(2),p=i(1),d=i(25),u=i(8),h=i(6),f=i(86),m=i(9),_=i(21),y=i(7),x=i(87),b=i(4),w=i(10),C=i(13),S=i(114),E=i(118),D=i(58),k=i(123),O=i(20),T=i(16),o=(r=u.View,o(M,r),M.prototype.destructor=function(){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()},M.prototype.setColumns=function(t){var e=this;this.config.columns=t,this._parseColumns(!0),this._adjustColumns(),this._checkFilters(),this._checkMarks(),this.paint(),this.config.keyNavigation&&l.awaitRedraw().then(function(){e._initHotKey(!0),e.paint()})},M.prototype.addRowCss=function(t,e){var i=this.data.getItem(t),t=i.$css||"";t.match(new RegExp(e,"g"))||(i.$css=t+" "+e,this.paint())},M.prototype.removeRowCss=function(t,e){t=this.data.getItem(t),e=t.$css?t.$css.replace(e,""):"";t.$css=e,this.paint()},M.prototype.addCellCss=function(t,e,i){var n=this.getColumn(e),o=this.config.spans?this.getSpan(t,e):null;(o||n)&&((e=o?o.css:n.$cellCss[t])?(e=e.match(new RegExp(i,"g"))?"":" "+i,o?o.css+=e:n.$cellCss[t]+=e):this.data.getItem(t)&&(o?o.css=i+" ":n.$cellCss[t]=i+" "),this.paint())},M.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]=""))},M.prototype.showColumn=function(t){var e=this.getColumn(t);e&&e.hidden&&this.events.fire(b.GridEvents.beforeColumnShow,[e])&&(e.hidden=!1,this.config.$totalWidth+=e.$width,(t=this._hiddenFilters&&this._hiddenFilters[e.id])&&(this._activeFilters[e.id]=t,delete this._hiddenFilters[e.id]),this.paint(),this._checkFilters(),this.events.fire(b.GridEvents.afterColumnShow,[e]))},M.prototype.hideColumn=function(t){var e,i=this,n=this.getColumn(t);n&&!n.hidden&&this.events.fire(b.GridEvents.beforeColumnHide,[n])&&(n.hidden=!0,this.config.$totalWidth-=n.$width,(t=this._activeFilters&&this._activeFilters[n.id])&&(this._hiddenFilters||(this._hiddenFilters={}),this._hiddenFilters[n.id]=t,delete this._activeFilters[n.id],this.data.filter()),this.paint(),t=this.content.comboFilter,e=function(){i._checkFilters(),i.events.fire(b.GridEvents.afterColumnHide,[n])},Object.keys(t.element).length?l.awaitRedraw().then(function(){i.paint(),e()}):e())},M.prototype.isColumnHidden=function(t){t=this.getColumn(t);if(t)return!!t.hidden},M.prototype.showRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&t.hidden&&this.events.fire(b.GridEvents.beforeRowShow,[t])&&(this.data.update(e,{hidden:!1}),this.data.filter(function(t){return!t.hidden}),this.events.fire(b.GridEvents.afterRowShow,[t])))},M.prototype.hideRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&this.events.fire(b.GridEvents.beforeRowHide,[t])&&(this.data.update(e,{hidden:!0}),this.data.filter(function(t){return!t.hidden}),this.events.fire(b.GridEvents.afterRowHide,[t])))},M.prototype.isRowHidden=function(t){if(p.isDefined(t)){t=this.data.getItem(t.toString());return t?!!t.hidden:void 0}},M.prototype.getScrollState=function(){return{x:this._scroll.left,y:this._scroll.top}},M.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()},M.prototype.scrollTo=function(e,i){var t=this.selection.getCell(),n=this.config.columns.filter(function(t){return!t.hidden}),o=p.findIndex(n,function(t){return t.id==i}),r=t?t.column:this.config.columns[0],s=p.findIndex(n,function(t){return t.id==r.id}),a=this.config.leftSplit?y.getTotalWidth(n.slice(0,this.config.leftSplit)):0,l=y.getTotalWidth(n.slice(0,o))-(o-s<0?a:0),c=this.data.getRawData(0,-1),d=p.findIndex(c,function(t){return t.id==e}),u=y.getTotalHeight(c.slice(0,d)),h=this.getScrollState(),f=this.config.$width+h.x,t=this.config.$height+h.y-this.config.headerRowHeight*this.config.$headerLevel,s=u-h.y-c[d].$height,a=l-h.x-n[o].$width,t=u+2*c[d].$height+18-t,f=l+2*n[o].$width+18-f,t=0<s&&t<0?0:s<0?s:t,f=0<a&&f<0?0:a<0?a:f;this.scroll(f+h.x,t+h.y)},M.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()},M.prototype.getCellRect=function(e,i){var t=this.config.columns.filter(function(t){return!t.hidden}),n=this.data.getRawData(0,-1),o=this.getSpan(e,i),r=p.findIndex(t,function(t){return t.id==(o?o.column:i)}),s=p.findIndex(n,function(t){return t.id==(o?o.row:e)});return{x:y.getTotalWidth(t.slice(0,r)),y:y.getTotalHeight(n.slice(0,s)),height:null!=o&&o.rowspan?_.getHeight(n,o.rowspan,s):n[s]?n[s].$height:0,width:null!=o&&o.colspan?_.getWidth(this.config.columns,o.colspan,p.findIndex(this.config.columns,function(t){return t.id===o.column})):t[r]?t[r].$width:0}},M.prototype.getColumn=function(t){for(var e,i=0,n=null===(e=this.config)||void 0===e?void 0:e.columns;i<n.length;i++){var o=n[i];if(o.id==t)return o}},M.prototype.addSpan=function(e){this.config.spans=this.config.spans||[];var t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e.row&&""+t.column==""+e.column});0<=t?this.config.spans[t]=e:(this.config.spans.push(T.normalizeSpan(e,this.config)),this._checkMarks(),this.paint())},M.prototype.getSpan=function(t,e){var r=this;if(this.config.spans){var s=this.data.getIndex(t.toString()),a=this.config.columns.findIndex(function(t){return t.id===e}),i=p.findIndex(this.config.spans,function(e){var t=r.data.getIndex(e.row.toString()),i=r.config.columns.findIndex(function(t){return t.id===e.column}),n=e.rowspan?t+e.rowspan:t+1,o=e.colspan?i+e.colspan:i+1;return t<=s&&s<n&&i<=a&&a<o});return null===(t=this.config)||void 0===t?void 0:t.spans[i]}},M.prototype.removeSpan=function(e,i){var t;this.config.spans&&(t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e&&""+t.column==""+i}),this.config.spans.splice(t,1),this.paint())},M.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),p.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)&&void 0!==n&&n.editor||this.config.$editable&&this.config.$editable.row===t&&this.config.$editable.col===e&&this.config.$editable.editorType===i||(this.config.$editable={row: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])))):h.dhxWarning("item not found")},M.prototype.editEnd=function(t){this.config.$editable&&this.config.$editable.editor&&this.config.$editable.editor.endEdit(t)},M.prototype.getSortingState=function(){return{dir:this._sortDir,by:this._sortBy}},M.prototype.getHeaderFilter=function(e){var i=this,t=this.getColumn(e);if(t){var n=null;return t.header.forEach(function(t){t.content&&(n=i.content[t.content].element[e])}),n}},M.prototype.edit=function(t,e,i){this.editCell(t,e,i)},M.prototype.paint=function(){var t=this.config.hotkeys?Object.keys(this.config.hotkeys).length:0;!this.keyManager||this.keyManager.getKeyStorageLength()-t||this._initHotKey(!0),r.prototype.paint.call(this)},M.prototype._createView=function(){var i=this;return l.create({render:function(t,e){return w.render(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},M.prototype._parseColumns=function(t){void 0===t&&(t=!1),m.normalizeColumns(this.config,t);t=this.config.columns.filter(function(t){return!t.hidden});m.countColumns(this.config,t)},M.prototype._parseData=function(){this.config.data=this._prepareData(this.data),this._detectColsTypes(),this._checkFilters(),this._checkMarks(),this.data.filter(function(t){return!t.hidden}),this._render()},M.prototype._createCollection=function(t){this.data=new h.DataCollection({prep:t},this.events)},M.prototype._getRowIndex=function(t){return this.data.getIndex(t)},M.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 _.data.exists(t)&&_.data.update(t,n)}),_.data.exists(i)&&_.data.update(i,n)}var _=this;this.data.events.on(h.DataEvents.load,function(){_.data.filter(function(t){return t}),_._parseData(),_._checkFilters(),_.config.data instanceof h.DataCollection?l.awaitRedraw().then(function(){return _._normalizeSpans()}):_._normalizeSpans()}),this.data.events.on(h.DataEvents.change,function(e,t,i){if("setPage"!==t){if("sort"===t?(i.dir?_._sortDir=i.dir:_._sortBy===i.by?_._sortDir="asc"===_._sortDir?"desc":"asc":_._sortDir="asc",_._sortBy=i.by):"add"===t||"update"===t||"remove"===t?(!p.isId(e)||"remove"!==t||(n=_.selection.getCells().find(function(t){return t.row.id===e}))&&_.selection.removeCell(n.row.id,n.column.id),_.config.data=_._prepareData(_.data)):(h.isTreeCollection(_.data)&&(_.config.data=_._prepareData(_.data)),_._adjustColumns()),p.isId(e)&&(_._filterData=_.data.map(function(t){return t})||[],_._checkFilters()),_._detectColsTypes(),_._removeMarks(),_._checkMarks(),_.config.autoEmptyRow&&(!_._activeFilters||p.isEmptyObj(_._activeFilters))){var n=_.data.find({by:"$emptyRow",match:!0});if(n){if(n.id===e)return;_.data.move(n.id,_.data.getLength()-1)}else _._addEmptyRow()}_._render()}else l.awaitRedraw().then(function(){var t=_.config.columns.find(function(t){return!0!==t.hidden});_.scrollTo(_.data.getId(i[0]).toString(),t.id.toString()),_._render()})}),this.data.events.on(h.DataEvents.removeAll,function(){_.config.columns.map(function(e){e.header.map(function(t){!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(e.$uniqueData=[])})})}),this.events.on(h.DragEvents.beforeDrag,function(t,e){return _.data.getItem(t.start)?_.events.fire(b.GridEvents.beforeRowDrag,[t,e]):"column"===_.config.dragItem||"both"===_.config.dragItem?_.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}),_.data.getItem(o)?(_.events.fire(b.GridEvents.dragRowStart,[t,e]),_._autoScroll("vertical")):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||(_.events.fire(b.GridEvents.dragColumnStart,[t,e]),_._autoScroll("horizontal"))}),this.events.on(h.DragEvents.dragIn,function(t,e){_.data.getItem(t.start)?_.events.fire(b.GridEvents.dragRowIn,[t,e]):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.events.fire(b.GridEvents.dragColumnIn,[t,e])}),this.events.on(h.DragEvents.dragOut,function(t,e){_.data.getItem(t.start)?_.events.fire(b.GridEvents.dragRowOut,[t,e]):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.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?_.events.fire(b.GridEvents.canRowDrop,[t,e]):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.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}),_.data.getItem(o)?_.events.fire(b.GridEvents.cancelRowDrop,[t,e]):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.events.fire(b.GridEvents.cancelColumnDrop,[t,e])}),this.events.on(h.DragEvents.beforeDrop,function(t,e){return"row"!==_.config.dragItem||"both"!==_.config.dragMode&&"target"!==_.config.dragMode?"column"===_.config.dragItem||"both"===_.config.dragItem?_.events.fire(b.GridEvents.beforeColumnDrop,[t,e]):void 0:_.events.fire(b.GridEvents.beforeRowDrop,[t,e])}),this.events.on(h.DragEvents.afterDrop,function(e,t){var i,n;if(_.data.getItem(e.start)){_.events.fire(b.GridEvents.afterRowDrop,[e,t]);var o=e.source;if(!o.some(function(t){return t==e.target})){for(var r=_.data.getItem(e.start),s=0,a=_.config.columns;s<a.length;s++){var l=a[s];void 0===r[l.id]&&_.data.update(r.id,((i={})[l.id]=null,i),!0)}var c,d=_.data.getInitialData(),u=null==d?void 0:d.findIndex(function(t){return t.id==e.start}),h=null==d?void 0:d.findIndex(function(t){return t.id==e.target});if(-1<u&&-1<h)if(1<(null===(n=e.source)||void 0===n?void 0:n.length)){for(var f=[],p=0,g=o;p<g.length;p++)!function(e){var t=null==d?void 0:d.findIndex(function(t){return t.id==e}),t=null==d?void 0:d.splice(t,1)[0];f.push(t)}(g[p]);0<(h=null==d?void 0:d.findIndex(function(t){return t.id==e.target}))&&++h,null!=d&&d.splice.apply(d,v([h,0],f))}else null!=d&&d.splice(h,0,null==d?void 0:d.splice(u,1)[0]);for(c in _.config.data=_._prepareData(d||_.data.map(function(t){return t})),_.data.parse(_.config.data),_._activeFilters)_.data.filter(_._activeFilters[c],{add:!0})}}else"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.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}),_.data.getItem(o)?_.events.fire(b.GridEvents.afterRowDrag,[t,e]):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.events.fire(b.GridEvents.afterColumnDrag,[t,e]),_.config.data=_._prepareData(_.data instanceof Array?_.data.map(function(t){return t}):_.data.getInitialData()||_.data),_.data.parse(_.config.data)}),this.events.on(b.GridEvents.cellMouseDown,function(t,e,i){i.targetTouches?(_._touch.timer=setTimeout(function(){_._dragStart(i)},_._touch.duration),_._touch.timeStamp?(_._touch.dblDuration>=_._touch.timeStamp-+i.timeStamp.toFixed()&&((!1!==e.editable&&_.config.editable||e.editable)&&_.editCell(t.id,e.id,e.editorType),i.preventDefault(),_.events.fire(b.GridEvents.cellDblClick,[t,e,i])),_._touch.timeStamp=null):_._touch.timeStamp=+i.timeStamp.toFixed(),setTimeout(function(){_._touch.timeStamp=null},_._touch.dblDuration)):_._dragStart(i)}),this._events.on(b.GridSystemEvents.cellTouchMove,function(t,e,i){_._touch.start&&i.preventDefault(),_._clearTouchTimer()}),this._events.on(b.GridSystemEvents.cellTouchEnd,function(){_._touch.start=!1,_._clearTouchTimer()}),this.events.on(b.GridEvents.filterChange,function(e,t,o){var i;if(_.events.fire(b.GridEvents.beforeFilter,[e,t])){!_.config.autoEmptyRow||(i=_.data.find({by:"$emptyRow",match:!0}))&&_.data.remove(i.id),_._activeFilters||(_._activeFilters={});var n,r,s,a,l=_.getColumn(t),c=l.header.filter(function(t){return t.content===o&&void 0!==t.customFilter})[0];for(a in"comboFilter"===o&&void 0!==e||"comboFilter"!==o&&""!==e?(n=m.getEditorOptions(l),"combobox"!==l.editorType&&"select"!==l.editorType&&"multiselect"!==l.editorType||!n||(e=Array.isArray(e)?e.map(function(e){var t;return(null===(t=n.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===t?void 0:t.id)||e}):null!==(i=null===(i=n.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===i?void 0:i.id)&&void 0!==i?i:e),_._activeFilters[t]={by:t,match:e,compare:null!==(c=null==c?void 0:c.customFilter)&&void 0!==c?c:(r=t,s=_.getColumn(r),function(t,e,i,n){return _.content[o].match({val:t,match:e,obj:i,multi:n,col:s})}),multi:"multiselect"===(null==l?void 0:l.editorType)}):delete _._activeFilters[t],_.data.filter(function(t){return!t.hidden}),_._activeFilters)_.data.filter(_._activeFilters[a],{add:!0})}}),this.events.on(b.GridEvents.scroll,function(t){_._scroll={top:t.y,left:t.x},_.editEnd(),_.paint()}),this.events.on(b.GridEvents.cellDblClick,function(t,e,i){c.locateNodeByClassName(i,"dhx_boolean-cell")||(!1!==e.editable&&_.config.editable||e.editable)&&_.editCell(t.id,e.id,e.editorType)}),this.events.on(b.GridEvents.afterEditEnd,function(t,e,i){var n,o;null!==(n=_.config.$editable)&&void 0!==n&&n.editor&&(_.config.$editable.col!==i.id||_.config.$editable.row!==e.id)||(e=_.config.$editable?(o=_.config.$editable.row,_.config.$editable.col):(o=e.id,i.id),i=_.getSpan(o,e),p.isDefined(null==i?void 0:i.text)&&void 0!==t?i.text=t.toString():(delete(i=_.data.getItem(o)).$emptyRow,void 0!==t&&_.data.update(o,g(g({},i),((i={})[e]=t,i)))),_.config.$editable=null,_._checkFilters(),_.paint())}),this.events.on(b.GridEvents.headerCellMouseDown,function(t,e){var i=e.target.getAttribute("dhx_resized");i&&_.events.fire(b.GridEvents.beforeResizeStart,[t,e])&&E.startResize(_,i.toString(),e,function(){_.paint(),_.config.$resizing=null,_.events.fire(b.GridEvents.afterResizeEnd,[t,e])}),e.targetTouches&&(_._touch.timeStamp?(_._touch.dblDuration>=_._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),_.events.fire(b.GridEvents.headerCellDblClick,[t,e])),_._touch.timeStamp=null):_._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){_._touch.timeStamp=null},_._touch.dblDuration))}),this.events.on(b.GridEvents.footerCellDblClick,function(t,e){e.targetTouches&&(_._touch.timeStamp?(_._touch.dblDuration>=_._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),_.events.fire(b.GridEvents.footerCellDblClick,[t,e])),_._touch.timeStamp=null):_._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){_._touch.timeStamp=null},_._touch.dblDuration))}),this.events.on(b.GridEvents.resize,function(){_._parseColumns(),_._checkFilters()}),this.events.on(b.GridEvents.afterResizeEnd,function(e){var t;_.config.columns=null===(t=_.config.columns)||void 0===t?void 0:t.map(function(t){return t.id==e.id&&(t.width=e.$width),t}),_._parseColumns(),_._checkFilters()})},M.prototype._addEmptyRow=function(){var t=this.data.getId(this.data.getLength()-1),e=this.data.getItem(t),t=this.config.columns.filter(function(t){return!t.hidden});y.isRowEmpty(e)||this.data.add(t.reduce(function(t,e){return t[e.id]="",t},{$emptyRow:!0}))},M.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?C.stringToDate(t,e.format):t).getTime():t?""+t:""}}),this.events.fire(b.GridEvents.afterSort,[this.getColumn(i),t])},M.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},M.prototype._checkFilters=function(){var o=this,i=this._filterData;if(i){this.config.columns.forEach(function(e){e.header.forEach(function(t){!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(t=e.header.find(function(t){return t.filterConfig}),t=m.getUnique(i,e.id,t?t.filterConfig.multiselection:null),e.$uniqueData&&e.$uniqueData.length>t.length?t.forEach(function(t){e.$uniqueData.includes(t)||e.$uniqueData.push(t)}):e.$uniqueData=t)})});var t,r=this;for(t in this._activeFilters)!function(e){var i=r.config.columns.find(function(t){return t.id===e}),t=i.header.find(function(t){return!!t.content}),n=!1,n=Array.isArray(r._activeFilters[e].match)?r._activeFilters[e].match.reduce(function(t,e){if(i.$uniqueData.find(function(t){return t.toString()===e}))return!0},!1):i.$uniqueData.find(function(t){return t.toString()===o._activeFilters[e].match});!t||"selectFilter"!==t.content&&"comboFilter"!==t.content||n?r.data.filter(r._activeFilters[e],{add:!0}):(delete r._activeFilters[e],r.data.filter())}(t)}},M.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)})},M.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})},M.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=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+(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=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=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},M.prototype._prepareColumnData=function(t,e){for(var i,n,o=[],r=0;r<t.length;r++){for(var s=[],a=0;a<(null===(i=t[r])||void 0===i?void 0:i[e].length);a++){var l={};null!==(i=null===(i=t[r])||void 0===i?void 0:i[e][a])&&void 0!==i&&i.text?(l[t[r].id]=(null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.text)||"",s.push(l)):null!==(n=null===(n=t[r])||void 0===n?void 0:n[e][a])&&void 0!==n&&n.content&&(l[t[r].id]=this.content[null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.content].toHtml(this.getColumn(t[r].id),this.config)||"",s.push(l))}for(var c=0;c<s.length;c++)for(var d=0,u=Object.entries(s[c]);d<u.length;d++){var h=u[d],f=h[0],p=h[1];o[c]=g({},o[c])||{},o[c]=Object.assign(o[c],((h={})[f]=p,h))}}return o},M.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this.getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1!==(null==e?void 0:e.draggable)){e=c.locateNode(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id");return t.targetTouches&&(this._touch.start=!0),h.dragManager.onMouseDown(t,[e],[this._getRowGhost([e])])}}},M.prototype._getRowGhost=function(t){var e=this._container||c.toNode(this._uid),t=t.map(function(t){return e.querySelector('.dhx_grid-row[data-dhx-id="'+t+'"]')}),i=document.createElement("div");return t.forEach(function(t){return t&&i.appendChild(t.cloneNode(!0))}),i},M.prototype._initHooks=function(){var i=this;return{didMount:function(){var t,e;i._canDataParse(!0)&&(i._container||(e=i.getRootView().node.parent.el,t=w.getElementSizes(e),e=null===(e=i.scrollView)||void 0===e?void 0:e.config.enable,w.applyAutoWidth(i.config,t,!0,!1,e)),i.data.parse(i.config.data))}}},M.prototype._canDataParse=function(t){var e;return void 0===t&&(t=!1),!!(null!==(e=this.config.data)&&void 0!==e&&e.length&&this.config.data instanceof Array&&this.config.columns)&&(this.config.autoWidth&&this.config.autoHeight?t:!t)},M.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()},M.prototype._attachDataCollection=function(){var e=this;if(this.config.data instanceof h.DataCollection)return this.data=this.config.data,this.data.config.collapsed=this.config.collapsed,void(this.config.data=this.data.serialize());this._createCollection(function(t){return t.spans&&(e.config.spans=t.spans,t=t.data),t})},M.prototype._setMarks=function(o,r){for(var t=this.data.map(function(t){return{id:t.id,data:t[o.id],row:t}}),s=this.data.map(function(t){return t[o.id]}),a=this,e=0,i=t;e<i.length;e++)!function(t){var e,i,n=r(t.data,s,t.row,o);n&&(o.$cellCss=o.$cellCss||{},e=(o.$cellCss[t.id]||"").split(" "),n.split(" ").map(function(t){e.includes(t)||e.push(t)}),i=e.join(" "),n=a.getSpan(t.id,o.id),o.$cellCss[t.id]=i,n&&(n.rowspan||n.colspan&&n.column===o.id)&&n.$markCss!==i&&(n.$markCss=i))}(i[e])},M.prototype._checkMarks=function(){var e=this;this.config.columns.map(function(t){var o=t.mark;o&&("function"==typeof o?e._setMarks(t,o):e._setMarks(t,function(t,e){var i=[];e.forEach(function(t){null!=t&&""!==t&&i.push(parseFloat(t))});var n=p.getMinArrayNymber(i),e=p.getMaxArrayNymber(i);return o.max&&e===parseFloat(t)?o.max:!(!o.min||n!==parseFloat(t))&&o.min}))})},M.prototype._removeMarks=function(){var t;this.config.columns.forEach(function(t){t.mark&&(t.$cellCss={})}),null!==(t=this.config.spans)&&void 0!==t&&t.forEach(function(t){t.$markCss&&delete t.$markCss})},M.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"))})},M.prototype._destroyContent=function(){for(var t in this.content)"comboFilter"===t&&this.content[t].destroy()},M.prototype._render=function(){this.paint()},M.prototype._initHotKey=function(t){void 0===t&&(t=!1);var e=k.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])},M.prototype._normalizeConfig=function(e){return Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),e},M.prototype._normalizeSpans=function(){var t,e=this;this.config.spans=null===(t=this.config.spans)||void 0===t?void 0:t.map(function(t){return T.normalizeSpan(t,e.config)})},M.prototype._autoScroll=function(n){var t,o,r,s,a,l,e,i,c,d,u=null!==(t=this.scrollView)&&void 0!==t&&t.config.enable?null===(i=this.getRootNode())||void 0===i?void 0:i.querySelector(".scroll-view"):null===(e=this.getRootNode())||void 0===e?void 0:e.querySelector(".dhx_grid-body");u&&(o=null,i=u.getBoundingClientRect(),r=i.top,s=i.bottom,a=i.left,l=i.right,e=i.height,i=i.width,c=function(t){"up"===t||"down"===t?u.scrollBy(0,"up"===t?-40:40):u.scrollBy("left"===t?-40:40,0),o=setTimeout(function(){c(t)},100)},d=function(t){var e=t.clientX,i=t.clientY;switch(n){case"horizontal":l-30<e&&e<l&&r<i&&i<s?o||c("right"):a<e&&e<a+30&&r<i&&i<s?o||c("left"):o&&(clearTimeout(o),o=null);break;case"vertical":s-30<i&&i<s&&a<e&&e<l?o||c("down"):r<i&&i<r+30&&a<e&&e<l?o||c("up"):o&&(clearTimeout(o),o=null)}},(i<u.scrollWidth||e<u.scrollHeight)&&(document.addEventListener("pointermove",d),document.addEventListener("pointerup",function(){document.removeEventListener("pointermove",d),o&&clearTimeout(o)},{once:!0})))},M);function M(t,e){var a=r.call(this,t,e)||this;a._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},a.version="8.1.7",a.config=p.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=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});function n(e,i,t){var n,o,r,s;e&&i&&y.isTooltip(a.config,i)&&(s=void 0,"combobox"===i.editorType||"select"===i.editorType?s=(n=m.getEditorOptions(i,e).find(function(t){return(t instanceof Object?t.id.toString():t)===(null===(t=e[i.id])||void 0===t?void 0:t.toString())}))instanceof Object?n.value:n:"multiselect"!==i.editorType||null!=(o=null===(n=e[i.id])||void 0===n?void 0:n.toString().split(", "))&&o.length&&(s=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=m.toFormat(s||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()&&D.tooltip(r.toString(),{css:"dhx_grid_tooltip",node:t,htmlEnable:y.isHtmlEnable(a.config,i)}))}function i(t,e){var i;e&&y.isTooltip(a.config,e)&&((i=t.target.querySelector(".dhx_grid-header-cell-text span")&&t.target.querySelector(".dhx_grid-header-cell-text span").textContent||t.target.querySelector(".dhx_grid-footer-cell-text span")&&t.target.querySelector(".dhx_grid-footer-cell-text span").textContent||"")&&D.tooltip(i,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:y.isHtmlEnable(a.config,e)}))}return a._htmlEvents={onclick:c.eventHandler(function(t){return c.locate(t)},{"dhx_grid-header-cell--sortable":function(t,e){var i,n=t.target.getAttribute("dhx_resized"),o=a.getColumn(e);o&&y.isSortable(a.config,o)&&!n&&a.events.fire(b.GridEvents.beforeSort,[o,a._sortDir?"asc":"desc"])&&(t=(i=null===(t=c.locateNodeByClassName(t,"dhx_grid-header-cell"))||void 0===t?void 0:t.querySelector(".dhx_grid-header-cell-text_content").innerHTML)?o.header.find(function(t){return t.text===i}):null,o="asc"===a._sortDir&&a._sortBy===e?"desc":"asc",a._sort(e,o,null==t?void 0:t.sortAs))},"dhx_grid-expand-cell":function(t,e){t.target.classList.contains("dhx_grid-expand-cell-icon")&&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 e=t.composedPath(),i=a.data.getItem(e[3].getAttribute("data-dhx-id")),t=a.getColumn(e[2].getAttribute("data-dhx-col-id"));n(i,t,e[2])},".dhx_span-cell:not(.dhx_grid-header-cell)":function(t){var e,i=a.data.getItem(t.target.getAttribute("data-dhx-id")),n=a.getColumn(t.target.getAttribute("data-dhx-col-id")),o=a.getSpan(i.id,n.id);i&&o&&y.isTooltip(a.config,o)&&(e=o.text||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&&D.tooltip(e,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:!0}))},".dhx_grid-header-cell:not(.dhx_span-cell)":function(t){var e=a.getColumn(t.target.getAttribute("data-dhx-id"));i(t,e)},".dhx_grid-footer-cell:not(.dhx_span-cell)":function(t){var e=a.getColumn(t.target.getAttribute("data-dhx-id"));i(t,e)},".dhx_grid-header-cell.dhx_span-cell":function(t){var e=a.getColumn(t.target.getAttribute("data-dhx-id")),i=e&&e.header.find(function(t){return!(!t.rowspan&&!t.colspan)});e&&i&&y.isTooltip(a.config,e)&&((i=i.text||"")&&D.tooltip(i,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:y.isHtmlEnable(a.config,e)}))},".dhx_grid-header-cell-text_content":function(t){var e=t.composedPath(),i=a.getColumn(e[1].getAttribute("data-dhx-id"));i&&y.isTooltip(a.config,i)&&((t=e[2].querySelector(".dhx_grid-header-cell-text_content")&&e[2].querySelector(".dhx_grid-header-cell-text_content").textContent||"")&&D.tooltip(t,{css:"dhx_grid_tooltip",node:e[1],htmlEnable:y.isHtmlEnable(a.config,i)}))}}},(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()),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=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,d=i(1),u=i(0),s=i(8),l=i(28),h=i(96),a=i(5),f=i(42),p=i(27),o=(r=s.View,o(g,r),g.prototype.paint=function(){var t;this.isVisible()&&((t=this.getRootView())?t.redraw():null!==(t=this._parent)&&void 0!==t&&t.paint())},g.prototype.isVisible=function(){if(!this._parent)return!(!this._container||!this._container.tagName)||Boolean(this.getRootNode());var t=null===(t=this._parent.config)||void 0===t?void 0:t.activeView;return(!t||t===this.id)&&(!this.config.hidden&&(!this._parent||this._parent.isVisible()))},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 f.Grid&&this._ui.config.keyNavigation&&u.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?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 f.Grid&&this._ui.config.keyNavigation&&u.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._calculateStyle(),n=d.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",o=this.config.full||this.config.html?i:c(c({},i),n);this.config.html||(e=this._ui?((l=this._ui.getRootView()).render&&(l=u.inject(l)),[l]):t||null);var i=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?u.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),c(c({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[u.el("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,r={};if(this.config.on)for(var s in this.config.on)r["on"+s]=this.config.on[s];var a="",l=this.config.cols||this.config.rows;if(this.config.type&&l)switch(this.config.type){case"line":a=" dhx_layout-line";break;case"wide":a=" dhx_layout-wide";break;case"space":a=" dhx_layout-space"}n=u.el("div",c(c(((t={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,t["data-cell-id"]=null!==(l=this.config.id)&&void 0!==l?l:null,t),r),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?a:""),style:o}),[this.config.full?[u.el("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to "+(this.config.collapsed?"expand":"collapse"):null,class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&u.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&u.el(".dhx_layout-cell-header__image-wrapper",[u.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&u.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?u.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):u.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:u.el("div",{style:c(c({},n),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?a:"")},this.config.html?[u.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:u.el(".dhx_layout-cell-content",{style:n},[u.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])],this._checkProgress()&&this._getProgressBar()]);return i?[n,i]:n}},g.prototype._getProgressBar=function(){return u.el("span",{class:"dhx_progress-bar"},[u.sv("svg",{viewBox:"25 25 50 50",class:"dhx_spinner"},[u.sv("circle",{cx:"50",cy:"50",r:"20",class:"path"})])])},g.prototype._getCss=function(t){return"dhx_layout-cell"},g.prototype._initHandlers=function(){var r=this;window.addEventListener("resize",this._afterWindowResized);function n(t,e){var i,n,o;void 0===e&&(e={x:0,y:0}),s.isActive&&(o=s.xLayout,i=t.targetTouches?t.targetTouches[0].clientX:t.clientX+e.x,n=t.targetTouches?t.targetTouches[0].clientY:t.clientY+e.y,t=o?"width":"height",(e=o?i-s.range.min+window.pageXOffset:n-s.range.min+window.pageYOffset)<0?e=s.resizerLength/2:e>s.size&&(e=s.size-s.resizerLength),n=(i=function(t){return parseInt(null===(t=r.config[t])||void 0===t?void 0:t.toString())})(o?"maxWidth":"maxHeight"),o=i(o?"minWidth":"minHeight"),(!n||e<n)&&(!o||o<e)&&(r.config[t]=e-s.resizerLength/2+"px",s.nextCell.config[t]=s.size-e-s.resizerLength/2+"px",s.nextCell._getAnyFlexCell()&&(s.nextCell._getAnyFlexCell().config[t]=void 0),r.paint(),r.events.fire(l.LayoutEvents.resize,[r.id])))}function i(t){var e,i,n;t.targetTouches&&t.preventDefault(),3!==t.which&&(s.isActive&&a(t),r.events.fire(l.LayoutEvents.beforeResizeStart,[r.id])&&(document.body.classList.add("dhx_no-select--resize"),i=r.getCellView(),n=(e=r._getNextCell()).getCellView(),t=r._getResizerView(),i=i.el.getBoundingClientRect(),t=t.el.getBoundingClientRect(),n=n.el.getBoundingClientRect(),s.xLayout=r._isXDirection(),s.left=i.left+window.pageXOffset,s.top=i.top+window.pageYOffset,s.collapsedSize=r._getCollapsedSize(r,e),s.margin=h.getMarginSize(r.getParent().config),s.range=h.getBlockRange(i,n,s.xLayout),s.size=s.range.max-s.range.min-s.margin-s.collapsedSize,s.isActive=!0,s.nextCell=e,s.resizerLength=s.xLayout?t.width:t.height))}var s={left:null,top:null,isActive:!(this._handlers={enterCollapse:function(t){13===t.keyCode&&r._handlers.toggle()},collapse:function(){r.config.collapsable&&r.collapse()},expand:function(){r.config.collapsable&&r.expand()},toggle:function(){r.config.collapsable&&r.toggle()}}),range:null,xLayout:null,nextCell:null,size:null,resizerLength:null,margin:null,collapsedSize:null},o={},a=function(t){if(s.isActive=!1,document.body.classList.remove("dhx_no-select--resize"),t.targetTouches)for(var e in document.removeEventListener("touchend",a),document.removeEventListener("touchmove",n),o)o[e].node.contentWindow.document.removeEventListener("touchend",a),o[e].node.contentWindow.document.removeEventListener("touchmove",o[e].listener);else for(var e in document.removeEventListener("mouseup",a),document.removeEventListener("mousemove",n),o)o[e].node.contentWindow.document.removeEventListener("mouseup",a),o[e].node.contentWindow.document.removeEventListener("mousemove",o[e].listener);r.events.fire(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)return i;for(var r=t+1;r<o;r++)n._cells[r].config.collapsed&&(this._isXDirection()?i+=45:i+=Number(n._cells[r].config.headerHeight)||37);return i},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),e=!this._isLastCell()&&t._cells[e+1];return!!e&&(e.config.hidden||e.config.collapsed?e._getNextCell():e)},g.prototype._getAnyFlexCell=function(e){var i=this;void 0===e&&(e=!1);var t=this._parent,n=this._isXDirection()?"$autoWidth":"$autoHeight",t=null===(t=null==t?void 0:t._cells)||void 0===t?void 0:t.filter(function(t){return!0===t.config[n]&&(!!e||t.id!==i.id)});return!(null==t||!t.length)&&t[t.length-1]},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(){if(this._stopProgressDefault)return!1;var t=this.config,e=t.html;return 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=this.config;if(t){var e={},i=!1,n=!1;isNaN(Number(t.width))||(t.width=t.width+"px"),isNaN(Number(t.height))||(t.height=t.height+"px"),isNaN(Number(t.minWidth))||(t.minWidth=t.minWidth+"px"),isNaN(Number(t.minHeight))||(t.minHeight=t.minHeight+"px"),isNaN(Number(t.maxWidth))||(t.maxWidth=t.maxWidth+"px"),isNaN(Number(t.maxHeight))||(t.maxHeight=t.maxHeight+"px"),"content"===t.width&&(i=!0),"content"===t.height&&(n=!0);var o=t.width,r=t.height,s=t.cols,a=t.rows,l=t.minWidth,c=t.minHeight,d=t.maxWidth,u=t.maxHeight,h=t.gravity,f=t.collapsed,p=t.$fixed,g=-1===Math.sign(h)?0:h;"boolean"==typeof h&&(g=h?1:0);var _="boolean"==typeof h?!h:-1===Math.sign(h);this._isXDirection()?(p||o||void 0===h&&(l||d))&&(_=!0):(p||r||void 0===h&&(c||u))&&(_=!0);var v,h=this._checkFullSizeCell(),_=_&&!h?0:!h&&g||1,g=this._isXDirection()?"x":"y";return void 0===l||f||(e.minWidth=l),void 0===c||f||(e.minHeight=c),void 0!==d&&(e.maxWidth=d),void 0!==u&&(e.maxHeight=u),void 0===this._parent&&(g=!0),h||void 0===o||"content"===o?!0===g?e.width="100%":"x"===g&&(i?e.flex="0 0 auto":(v=this._isXDirection()?"1px":"auto",e.flex=_+" "+(s||a?"0 "+v:"1 auto"))):e.width=o,h||void 0===r||"content"===r?!0===g?e.height="100%":"y"===g&&(n?e.flex="0 0 auto":(v=this._isXDirection()?"auto":"1px",e.flex=_+" "+(s||a?"0 "+v:"1 auto"))):e.height=r,!0===g&&void 0===t.width&&void 0===t.height&&(e.flex=_+" 1 auto"),f&&(this._isXDirection()?e.width="auto":e.height="auto",e.flex="0 0 auto"),e}},g.prototype._resizedWindow=function(){var t;void 0===this._isLastFlexCell?this._isLastFlexCell=(null===(t=this._getAnyFlexCell(!0))||void 0===t?void 0:t.id)===this.id:this._isLastFlexCell||window.removeEventListener("resize",this._afterWindowResized),this._isLastFlexCell&&(t=this._isXDirection()?"width":"height",this.config[t]=void 0,this.paint())},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 e=this;if(!this._parent)return!1;var t=this._isXDirection()?"$autoWidth":"$autoHeight";if(!this.config[t])return!1;t=this._parent._cells.filter(function(t){return t!==e&&!t.config.hidden});return!!t.length&&t.every(function(t){return t.config.collapsed})},g);function g(t,e){var i=r.call(this,t,e)||this;return i._disabled=[],t&&t.isVisible&&(i._parent=t),i._parent&&i._parent.events?i.events=i._parent.events:i.events=new a.EventSystem(i),i.config.full=void 0===i.config.full?Boolean(i.config.header||i.config.collapsable||i.config.headerHeight||i.config.headerIcon||i.config.headerImage):i.config.full,i._afterWindowResized=i._resizedWindow.bind(i),i._initHandlers(),i.id=i.config.id||d.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=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.PopupEvents||(e.PopupEvents={})).beforeHide="beforeHide",e.beforeShow="beforeShow",e.afterHide="afterHide",e.afterShow="afterShow",e.click="click"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SliderEvents||(e.SliderEvents={})).beforeChange="beforeChange",e.change="change",e.focus="focus",e.blur="blur",e.keydown="keydown",e.mousedown="mousedown",e.mouseup="mouseup"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.TimepickerEvents||(e.TimepickerEvents={})).beforeChange="beforeChange",e.change="change",e.beforeApply="beforeApply",e.afterApply="afterApply",e.beforeClose="beforeClose",e.afterClose="afterClose",e.apply="apply",e.close="close",e.save="save"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.CalendarEvents||(e.CalendarEvents={})).change="change",e.beforeChange="beforechange",e.modeChange="modeChange",e.monthSelected="monthSelected",e.yearSelected="yearSelected",e.cancelClick="cancelClick",e.dateMouseOver="dateMouseOver",e.dateHover="dateHover"},function(t,i,e){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(i,"__esModule",{value:!0});var r=e(1),f=e(0),s=e(5),p=e(2),a=e(107),l=e(8),c=e(6),d=e(26),u=e(50),g=e(30),_=e(111),v=e(53),m=e(22),y=e(54),x=e(55);i.$template=function(t){return t.icon?f.el("div.dhx_combobox-options-wrapper",[f.el("span",{class:t.icon+" dhx_combobox-options__icon"}),f.el("span",{class:"dhx_combobox-options__value"},t.value)]):t.src?f.el("div.dhx_combobox-options-wrapper",[f.el("img",{class:"dhx_combobox-options__image",alt:t.value,src:t.src}),f.el("span",{class:"dhx_combobox-options__value"},t.value)]):f.el("span",{class:"dhx_combobox-options__value"},t.value)};var b,o=(b=l.View,o(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?r.wrapBox(e):Array.isArray(e)?e.join(","):e},w.prototype.setValue=function(t){return this._setValue(t,!1)},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)),i=this.config.multiselection&&e?h(this.list.selection.getId(),[i]):i,this.setValue(i))},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(),this.config.multiselection?("string"==typeof t&&(t=t.split(",")),"number"==typeof t&&(t=[t]),t.forEach(function(t){i.list.selection.add(t,!1,!1,e)})):(t=r.unwrapBox(t),this.list.selection.add(t,!1,!1,e),(t=this.data.getItem(t))&&(this._state.value=this._getItemText(t))),this.paint()},w.prototype._createLayout=function(){var t=this.list=new u.List(null,{$template:i.$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 d.Layout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(y.selectAllView)},w.prototype._initHandlers=function(){var i=this;this.config.helpMessage&&(this._helper=new g.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={addOption:function(){return i.addOption(i._state.value)},showHelper:function(t){t.preventDefault(),t.stopPropagation(),i._helper.show(t.target,{mode:"left"===i.config.labelPosition?"bottom":"right",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!==a.KEY_CODES.DOWN_ARROW||i._showOptions(),i.popup.isVisible()&&(t.which===a.KEY_CODES.RIGHT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(u.MOVE_DOWN),t.preventDefault()),t.which===a.KEY_CODES.LEFT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(u.MOVE_UP),t.preventDefault()),t.which===a.KEY_CODES.DOWN_ARROW&&(i.list.moveFocus(u.MOVE_DOWN),t.preventDefault()),t.which===a.KEY_CODES.UP_ARROW&&(i.list.moveFocus(u.MOVE_UP),t.preventDefault()),t.which===a.KEY_CODES.ESC&&i._hideOptions(),t.which===a.KEY_CODES.ENTER&&(i.data.getLength()?(e=i.list.getFocus(),e=i.config.multiselection?h(i.list.selection.getId(),[e]):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===a.KEY_CODES.BACKSPACE&&!i._state.value&&i.config.multiselection&&i.list.selection.getId().length&&(t=(t=i.list.selection.getId())[t.length-1],i.list.selection.remove(t),i._changePopupPosition(),i.paint()))},oninput:function(t){i.config.disabled||(t=t.target.value,i.events.fire(x.ComboboxEvents.input,[t]),i._state.value=t,i._filter(),t.length?i._state.canDelete=!1:(i._state.ignoreNext=!0,i._state.canDelete=!0),i.config.multiselection||(i.list.selection.remove(),i.paint()),i.popup.isVisible()||i._showOptions(),i._updatePopup())},oninputclick:function(t){if(!i.config.disabled){if(i.focus(),t.target.classList.contains("dhx_combobox__action-remove")){var e=null===(e=i.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;return r.isId(e)?(i.list.selection.remove(e),i._changePopupPosition(),void i.paint()):void 0}if(t.target.classList.contains("dhx_combobox__action-clear-all"))return i.list.selection.getId().forEach(function(t){return i.list.selection.remove(t)}),i.config.selectAllButton&&i._state.unselectActive&&(i._layout.getCell("select-unselect-all").attach(y.selectAllView),i._state.unselectActive=!1),void i.paint();t.preventDefault(),i.popup.isVisible()?i.focus():i._showOptions()}},toggleIcon:function(){i.focus(),i.popup.isVisible()?i._hideOptions():i._showOptions()},onfocus:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(x.ComboboxEvents.focus,[])},onblur:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(x.ComboboxEvents.blur,[])}}},w.prototype._initEvents=function(){var i=this;this.data.events.on(c.DataEvents.load,function(){i.config.value&&i._setValue(i.config.value,!0)}),this.data.events.on(c.DataEvents.afterAdd,function(){i.config.multiselection?i._changePopupPosition():i._hideOptions()}),this.list.events.on(u.ListEvents.click,function(){i.config.multiselection||i._hideOptions(),i._changePopupPosition()}),this.list.selection.events.on(m.SelectionEvents.beforeSelect,function(t){t=i.config.multiselection?h(i.getValue(i.config.multiselection),[t]):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(g.PopupEvents.beforeShow,function(){if(!i.popup.isVisible()&&!i._isPopupConfiqureted)return i._configurePopup(),!1}),this.config.readOnly&&this.popup.events.on(g.PopupEvents.afterShow,function(){var t;i._state.value?(t=i.list.selection.getId(),i.list.setFocus(t)):i.list.setFocus(i.data.getId(0)),i._keyListener.startNewListen(function(t){return i._findBest(t)})})},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=""),f.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):r.isEqualString(n._state.value,n._getItemText(t))}),this.config.multiselection?this.list.setFocus(this.data.getId(0)):(e=this.data.getIndex(this.list.selection.getId()),this.list.setFocus(this.data.getId(-1<e?e:0))),t=this._layout.getCell("list"),e=this._layout.getCell("not-found"),0===this.data.getLength()?(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").hide(),t.hide(),this._state.creatingState=!0,i=this.config.newOptions?this._state.value:"",e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").show(),!(this._state.value&&this.data.find(function(t){return t.value===n._state.value}))&&this._state.value?(this._state.creatingState=this.config.newOptions,t.show(),this.config.newOptions?(i=this._state.value,e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):e.hide()):(this._state.creatingState=!1,e.isVisible()&&(t.show(),e.hide()))))},w.prototype._findBest=function(e){var i=this,t=this.data.find(function(t){return r.isEqualString(e,i._getItemText(t))});t&&this.list.selection.getId()!==t.id&&(this.list.setFocus(t.id),this.paint())},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(){if(!this.config)return f.el("div");var t=this.config,e=t.multiselection,i=t.labelPosition,n=t.hiddenLabel,o=t.required,r=t.disabled,s=t.css,a=t.helpMessage,l=t.readOnly,c=t.placeholder,d=e?null:this.data.getItem(this.list.selection.getId()),u=!this.list.selection.getId()||"object"==typeof this.list.selection.getId()&&0===this.list.selection.getId().length,t=p.getLabelStyle(this.config),e=this.config.htmlEnable&&this.config.template&&!this.config.multiselection&&(this.config.readOnly||!this.popup.isVisible());return f.el("div",{"data-dhx-widget-id":this._uid,onkeydown:this._handlers.onkeydown,onkeyup:this._handlers.onkeyup,class:"dhx_widget dhx_combobox"+("left"===i?" dhx_combobox--label-inline":"")+(n?" dhx_combobox--sr_only":"")+(o?" dhx_combobox--required":"")+(r?" dhx_combobox--disabled":"")+(s?" "+s:"")},[t?f.el("label.dhx_label.dhx_combobox__label",{style:t.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.oninputclick},a?[(t.label||o)&&f.el("span.dhx_label__holder",t.label),f.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,id:"dhx_label__help_"+this._uid})]:t.label):null,f.el("div.dhx_combobox-input-box"+(r?".dhx_combobox-input-box--disabled":"")+(l?".dhx_combobox-input-box--readonly":"")+(this._state.currentState===x.ComboState.error?".dhx_combobox-input-box--state_error":"")+(this._state.currentState===x.ComboState.success?".dhx_combobox-input-box--state_success":""),{_ref:"holder"},[f.el("div.dhx_combobox-input__icon",{onclick:this._handlers.toggleIcon},[f.el("span"+(this.popup.isVisible()?".dxi.dxi-menu-up":".dxi.dxi-menu-down"))]),f.el("div.dhx_combobox-input-list-wrapper",{onclick:this._handlers.oninputclick},[f.el("ul.dhx_combobox-input-list",h(this._drawSelectedItems(),[f.el("li.dhx_combobox-input-list__item.dhx_combobox-input-list__item--input",[e&&d?f.el("div.dhx_combobox-input__template",{".innerHTML":this.config.template(d)}):null,f.el("input.dhx_combobox-input",{style:{opacity:e?0:null},oninput:this._handlers.oninput,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_ref:"input",_key:this._uid,type:"text",placeHolder:u&&c?c:void 0,value:l&&d?this._getItemText(d):this._state.value,readOnly:l||r,required:o,"aria-label":l?"Select value":"Type or select value","aria-describedby":a?"dhx_label__help_"+this._uid:null,"aria-expanded":!0})])]))])])])},w.prototype._drawSelectedItems=function(){var t,n=this;if(!this.config.multiselection)return[];if(this.config.itemsCount){var e=this.list.selection.getId().length;return e?[f.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",[f.el("span.dhx_combobox-tag__value",(t=e,"function"==typeof(e=this.config.itemsCount)?e(t):t+" "+v.default.selectedItems)),f.el("button.dhx_button.dhx_combobox-tag__action.dhx_combobox__action-clear-all",{"aria-label":"clear all"},[f.el("span.dhx_button__icon.dxi.dxi-close-circle")])])]:[]}return this.list.selection.getId().map(function(t){var e=n.data.getItem(t);if(!e)return null;var i=n._drawImageOrIcon(e);return f.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",{"data-dhx-id":t},h(i||!n.config.template?[i,f.el("span.dhx_combobox-tag__value",n._getItemText(e))]:[f.el("span.dhx_combobox-tag__template",{".innerHTML":n.config.template(e)})],[f.el("button.dhx_button.dhx_button--icon.dhx_combobox-tag__action.dhx_combobox__action-remove",{type:"button","aria-label":"remove"},[f.el("span.dhx_button__icon.dxi.dxi-close-circle")])]))})},w.prototype._drawImageOrIcon=function(t){return t.src?f.el("img.dhx_combobox-tag__image",{src:t.src,alt:""}):t.icon?f.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)))&&void 0!==t?t:"",this.paint()},w.prototype._changePopupPosition=function(){var t=this;this.config.multiselection&&f.awaitRedraw().then(function(){t._updatePopup()})},w.prototype._updatePopup=function(){var t=this.getRootView().refs.holder.el;this.popup.getContainer().style.width=t.offsetWidth+"px";var e=this.data.getLength()*(this.config.itemHeight||36);"string"==typeof this.config.listHeight&&this.config.listHeight.includes("px")&&(this.config.listHeight=this.config.listHeight.replace("px",""));e=e<this.config.listHeight?e:this.config.listHeight;this.popup.getContainer().style.height=Number(e)+(this.config.selectAllButton&&this.config.multiselection&&this._layout.getCell("select-unselect-all").isVisible()?33:0)+(this._state.creatingState?this._layout.getCell("not-found").height:0)+"px",this.popup.show(t,{mode:"bottom",theme:this.getRootNode()})},w);function w(t,e){var i=b.call(this,t,r.extend({listHeight:224,itemHeight:36,disabled:!1,readOnly:!1,newOptions:!1,htmlEnable:!0},e))||this;i.config.itemsCount=i.config.itemsCount||i.config.showItemsCount,i.config.helpMessage=i.config.helpMessage||i.config.help,i.config.cellHeight&&36===i.config.itemHeight&&(i.config.itemHeight=i.config.cellHeight),i.config.labelInline&&(i.config.labelPosition="left"),Array.isArray(i.config.data)?(i.events=new s.EventSystem(i),i.data=new c.DataCollection({}),i.data.parse(i.config.data)):i.config.data?(i.data=i.config.data,i.events=new s.EventSystem(i),i.events.context=i):(i.events=new s.EventSystem(i),i.data=new c.DataCollection({})),i.popup=new g.Popup,i.popup.events.on(g.PopupEvents.afterShow,function(){i.paint()}),i.popup.events.on(g.PopupEvents.afterHide,function(){i.config.multiselection&&(i._state.value=""),i.paint()}),i.popup.events.on(g.PopupEvents.beforeHide,function(t){t&&i._hideOptions()}),(i.config.readonly||i.config.readOnly)&&(i.config.readOnly=i.config.readOnly||i.config.readonly,i._keyListener=new _.KeyListener),i._state={value:"",ignoreNext:!1,canDelete:!1,unselectActive:!1,currentState:x.ComboState.default,creatingState:!1},i._initHandlers(),i._createLayout(),i.config.value&&i._setValue(i.config.value,!0),i._initEvents();e=f.create({render:function(){return i._draw()},hooks:{didRedraw:function(){i.popup.isVisible()&&(i.focus(),i._configurePopup())}}});return i.mount(t,e),i}i.Combobox=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(51)),n(e(110)),n(e(52)),n(e(32))},function(t,r,e){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(r,"__esModule",{value:!0});var l=e(1),c=e(6),d=e(0),u=e(25),h=e(22),o=e(8),f=e(52),p=e(2),g=e(32),_=e(108);r.MOVE_UP=1,r.MOVE_DOWN=2;var v,i=(v=o.View,i(m,v),m.prototype._didRedraw=function(t){},m.prototype._dblClick=function(t){var e=p.locate(t);e&&(e=this.data.getItem(e).id,this.config.editable&&this.editItem(e),this.events.fire(g.ListEvents.doubleClick,[e,t]))},m.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},m.prototype._dragStart=function(t){var e=this;this._touch.start=!0;var i=[],n=p.locateNode(t,"data-dhx-id"),o=n&&n.getAttribute("data-dhx-id"),n=this.selection.getId();return this.config.multiselection&&n instanceof Array&&(n.map(function(t){t!==o&&e.getRootView().refs[t]&&i.push(e.getRootView().refs[t].el)}),n=a(n)),"string"==typeof n&&(n=[n]),this.config.dragMode&&!this._edited?c.dragManager.onMouseDown(t,n||[o],i):null},m.prototype.disableSelection=function(){this.selection.disable()},m.prototype.enableSelection=function(){this.selection.enable()},m.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(g.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(g.ListEvents.afterEditStart,[t])):this._edited=null},m.prototype.editEnd=function(t,e){var i;this._edited&&(null!==t&&(i=this.data.getItem(e),this.data.update(e,s(s({},i),{value:t})),this._changed=!0),this._edited=null,this.paint())},m.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},m.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.events.fire(g.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.showItem(t),this.paint())},m.prototype.getFocus=function(){return this._focus},m.prototype.destructor=function(){this.events&&this.events.clear(),this.keyManager&&this.keyManager.destructor(),this.selection&&this.selection.destructor(),this.config=this.events=this.selection=this.keyManager=null,this._handlers=this._focus=this._edited=this._events=this._topOffset=this._visibleHeight=this._touch=null,this.unmount()},m.prototype.showItem=function(t){var e,i,n,o=this.getRootView();o&&o.node&&o.node.el&&void 0!==t&&((e=this.getRootNode())&&(i=this.config.virtual,n=this.data.getIndex(t),o=Math.floor(n/e.children.length)||0,t=e.children[n-e.children.length*o],(i||t)&&(o=i?parseInt(this.config.itemHeight):t.clientHeight,(t=i?n*o:t.offsetTop)>=e.scrollTop+e.clientHeight-o?e.scrollTo(0,t-e.clientHeight+o):t<e.scrollTop&&e.scrollTo(0,t))))},m.prototype._renderItem=function(t,e){var i=this.config.itemHeight;if(t.$empty)return d.el("li",{class:"dhx_list-item",style:{height:i}});var n="";this.config.template&&(n=this.config.template(t)),t.html&&(n=t.html);var o=t.id==this._focus&&this.config.keyNavigation;if(t.id==this._edited)return _.getEditor(t,this).toHTML();var r=this.data.getMetaMap(t),o=s(s(s(s({},this._events),{class:"dhx_list-item"+(r&&r.selected?" dhx_list-item--selected":"")+(o?" dhx_list-item--focus":"")+(r&&r.drop&&!this._edited?" dhx_list-item--drophere":"")+(r&&r.drag&&!this._edited?" dhx_list-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_list-item--drag":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,_ref:t.id.toString(),style:{height:i},_key:t.id}),this.getItemAriaAttrs(this,t)),{tabindex:o?0:-1});if(n)return n===t.html||this.config.htmlEnable?(o[".innerHTML"]=n,d.el("li",o)):d.el("li",o,n);if(this.config.$template)return d.el("li",o,[this.config.$template(t)]);t=t.text||t.value;return this.config.htmlEnable?o[".innerHTML"]=t:o.class+=" dhx_list-item--text",this.config.htmlEnable?d.el("li",o):d.el("li",o,t)},m.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});return this.config.virtual&&(e=a([d.el(".div",{style:{height:t[2]+"px"}})],e,[d.el(".div",{style:{height:t[3]+"px"}})])),d.el("ul.dhx_widget.dhx_list",s(s({style:{"max-height":this.config.height,position:"relative"},tabindex:0,class:(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),e)},m.prototype.moveFocus=function(t,e){var i,n,o=this.data.getLength();o&&(n=(i=this._focus)?this.data.getIndex(i):-1,e=e||1,t===r.MOVE_DOWN?i=this.data.getId(Math.min(n+e,o-1)):t===r.MOVE_UP&&(i=this.data.getId(Math.max(n-e,0))),this.setFocus(i))},m.prototype._getRange=function(){if(this.config.virtual){var t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight),i=this.data.getRawData(0,-1).length,n=i*e,o=this._topOffset,o=Math.max(0,Math.min(o,n-t)),r=Math.floor(o/e),t=Math.min(i-r,Math.floor(t/e)+5);return this._topOffset=o,[r,t+r,r*e,n-e*(t+r)]}return[0,-1,0,0]},m.prototype._getHotkeys=function(){var n=this;return{arrowDown:function(t){n.moveFocus(r.MOVE_DOWN),n._changed&&(n._changed=!1),t.preventDefault()},arrowUp:function(t){n.moveFocus(r.MOVE_UP),n._changed&&(n._changed=!1),t.preventDefault()},escape:function(){n.editEnd(null),n._changed&&(n._changed=!1)},enter:function(t){var e,i;n._changed?n._changed=!1:(i=(e=n.selection.getItem())instanceof Array?null===(i=e[0])||void 0===i?void 0:i.id:null==e?void 0:e.id,n.config.editable&&!n._edited&&(e&&i===n._focus||!e)?n.editItem(n._focus):n.selection.add(n._focus),n.events.fire(g.ListEvents.click,[n._focus,t]))},"shift+enter":function(t){n.selection.add(n._focus,!1,!0),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+enter":function(t){n.selection.add(n._focus,!0,!1),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+a":function(t){n.config.multiselection&&(t.preventDefault(),n.selection.remove(),n.data.map(function(t){return t.id}).forEach(function(t){"ctrlClick"===n.config.multiselection?n.selection.add(t,!0):n.selection.add(t)}))}}},m.prototype._initHotKey=function(){var t,e=this._getHotkeys();for(t in e)this.keyManager.addHotKey(t,e[t]);for(t in this.config.hotkeys)this.keyManager.addHotKey(t,this.config.hotkeys[t])},m.prototype.getItemAriaAttrs=function(t,e){var i,n,o;return s(s({role:"option","aria-selected":e.$selected?"true":"false"},(o=e,(n=t).config.dragMode&&!n._edited?{"aria-grabbed":Boolean(o.$dragtarget&&!n._edited).toString()}:{})),(i=t).config.editable?{"aria-roledescription":i._edited?"Press Enter to stop editing":"Double click to edit content"}:{})},m.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox "+(t.title||"")+", count of options = "+e+"."+(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},m);function m(t,e){void 0===e&&(e={});var n=this,i=e.itemHeight||(e.virtual?37:null);i&&"number"==typeof i&&(i=i.toString()+"px"),(n=v.call(this,t,l.extend({itemHeight:i,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},e))||this)._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null};e=n.config.data;e instanceof c.DataCollection?(n.data=e,n.events=e.events):(n.data=new c.DataCollection({}),n.events=n.data.events,e&&n.data.parse(e)),n.selection=new f.Selection({disabled:!n.config.selection,multiselection:n.config.multiselection},n.data,n.events),n.config.keyNavigation&&(n.keyManager=new u.KeyManager(function(t,e){return e==n._uid&&(!n._edited||n._edited&&"escape"!==t.key)}),n._initHotKey()),n.events.on(c.DataEvents.change,function(t,e,i){"setPage"===e&&n.showItem(n.data.getId(i[0])),n.paint()}),n.events.on(h.SelectionEvents.afterUnSelect,function(){return n.paint()}),n.events.on(h.SelectionEvents.afterSelect,function(t){l.isId(t)&&n.config.selection&&(n._focus=t),n.paint()}),n.events.on(g.ListEvents.afterEditEnd,n.editEnd.bind(n));e=function(e){return function(t){n.data.setMeta(n.data.getItem(t.target),"drop",e),n.paint()}};n.events.on(c.DragEvents.canDrop,e(!0)),n.events.on(c.DragEvents.cancelDrop,e(!1));e=function(e){return function(t){t.source.map(function(t){return n.data.setMeta(n.data.getItem(t),"drag",e)}),n.paint()}};n.events.on(c.DragEvents.dragStart,e(!0)),n.events.on(c.DragEvents.afterDrag,e(!1)),n._handlers={onmousedown:function(t){n._dragStart(t)},ontouchstart:function(t){n._touch.timer=setTimeout(function(){n._dragStart(t)},n._touch.duration),n._touch.timeStamp?(n._touch.dblDuration>=n._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),n._dblClick(t)),n._touch.timeStamp=null):n._touch.timeStamp=+t.timeStamp.toFixed(),setTimeout(function(){n._touch.timeStamp=null},n._touch.dblDuration)},ontouchmove:function(t){n._touch.start&&t.preventDefault(),n._clearTouchTimer()},ontouchend:function(){n._touch.start=!1,n._clearTouchTimer()},ondragstart:function(){return!(n.config.dragMode&&!n._edited)&&null},oncontextmenu:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&n.events.fire(g.ListEvents.itemRightClick,[e,t])},onclick:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&(n.selection.add(e,t.ctrlKey||t.metaKey,t.shiftKey),n.config.selection&&(n._focus=e),n.events.fire(g.ListEvents.click,[e,t]),n.paint())},ondblclick:function(t){n._dblClick(t)},onscroll:function(t){n.config.virtual&&(n._topOffset=t.target.scrollTop,n._visibleHeight=t.target.offsetHeight,n.paint())},onmouseover:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&e!==p.locate(t.relatedTarget)&&n.events.fire(g.ListEvents.itemMouseOver,[e,t])}};e=n.config.eventHandlers;if(e)for(var o=0,r=Object.entries(e);o<r.length;o++){var s=r[o],a=s[0],s=s[1];n._handlers[a]=p.eventHandler(function(t){return p.locate(t)},s,n._handlers[a])}n.config.dragMode&&c.dragManager.setItem(n._uid,n),n._topOffset=n._visibleHeight=0;e=d.create({render:function(){return n._renderList()},hooks:{didMount:function(t){n.config.virtual&&(n._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return n._didRedraw(t)}}});return n.mount(t,e),n}r.List=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(22),o=i(6),r=i(1),i=(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 r.isId(t)?this._selected.includes(t):0<this._selected.length},s.prototype.remove=function(t){var e=this;r.isId(t)?this._unselectItem(t):(this._selected.forEach(function(t){return e._unselectItem(t)}),this._selected=[])},s.prototype.add=function(t,e,i,n){var o,r=this;this.config.disabled||(void 0!==t?(o=this.config.multiselection,i&&this._selected.length&&o?this._addMulti(t,n):this._addSingle(t,o&&("ctrlClick"!==o||e),n)):this._data.serialize().filter(function(t){t=t.id;return!r._selected.includes(t)}).forEach(function(t){t=t.id;r._addMulti(t,n)}))},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=(t=[o,n])[0],o=t[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]))},s);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&&(e=n._data.getIndex(t.id),1<(t=n._data.getLength())&&(e=t==e-1?e-1:e+1,n._nextSelection=n._data.getId(e)))}),this._data.events.on(o.DataEvents.afterRemove,function(t){t=n._selected.indexOf(t.id);-1!==t&&n._selected.splice(t,1),r.isId(n._nextSelection)&&(n.add(n._nextSelection),n._nextSelection=null)})}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={notFound:"Not Found",selectAll:"Select All",unselectAll:"Unselect All",selectedItems:"selected items",createItem:"Create"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(53);e.selectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.selectAll)},e.unselectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.unselectAll)},e.emptyListView=function(t){return n.el("ul.dhx_list",[n.el("li.dhx_list-item.dhx_combobox-options__item"+(t?".dhx_combobox-options__action-create-option":""),{},t?o.default.createItem+' "'+t+'"':o.default.notFound)])},e.emptyListHeight=function(t,e){var i=document.createElement("canvas").getContext("2d",{alpha:!1});return i.font="normal 14px Roboto",t=t?o.default.createItem+' "'+t+'"':o.default.notFound,13+20*Math.ceil(i.measureText(t).width/(e-16))}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.ComboboxEvents||(e.ComboboxEvents={})).beforeChange="beforeChange",n.change="change",n.focus="focus",n.blur="blur",n.keydown="keydown",n.input="input",n.beforeOpen="beforeOpen",n.afterOpen="afterOpen",n.beforeClose="beforeClose",n.afterClose="afterClose",n.open="open",n.close="close",(e=e.ComboState||(e.ComboState={}))[e.default=0]="default",e[e.error=1]="error",e[e.success=2]="success"},function(t,e,i){"use strict";var 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.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var S=i(0),E=i(4),D=i(16),k=i(57),O=i(7),T=i(10);e.getFixedColsHeader=function(t,e,i){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)){var n=t.leftSplit,o=t.rightSplit,r=t.$positions,s=t.$totalWidth,a=t.$scrollBarWidth,l=i===E.Split.right,c=l?t.fixedColumns.right:t.fixedColumns.left,d=O.getTotalWidth(c),c=k.getFixedRows(w(w({},t),{currentColumns:c,$positions:w(w({},r),{xStart:0,xEnd:l?o:n}),scroll:{top:0,left:0},filteredColumns:c}),w(w({},e),{name:"header",position:"top",shifts:{x:0,y:0}}),i),i=w(w({},e),{name:"header",position:"top"});return S.el(".dhx_"+i.name+"-fixed-cols",w({onwheel:O.scrollFixedColsAndRows,class:l?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:0,left:l?s<e.wrapper.width-a.y-T.BORDERS?s-d:e.wrapper.width-d-a.y-T.BORDERS:0,width:d,overflow:"hidden"}},{role:"rowgroup","aria-rowcount":c.length}),c.body)}},e.getFixedCols=function(t,e,i,n){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)){var o=t.leftSplit,r=t.rightSplit,s=t.$totalWidth,a=t.$totalHeight,l=t.headerHeight,c=t.footerHeight,d=t.$positions,u=t.scroll,h=t.data,f=t.$scrollBarWidth,p=i===E.Split.right,g=a+l+c,_=g>e.gridBodyHeight?t.$footer?g-f.x:e.gridBodyHeight:g<e.gridBodyHeight-f.x?g:t.$footer?e.gridBodyHeight:e.gridBodyHeight-f.x,v=p?t.fixedColumns.right:t.fixedColumns.left,m=O.getTotalWidth(v),y=p?"rightFixedCols":"leftFixedCols",x=D.getCells(w(w({},t),{filteredColumns:v,$renderFrom:y,$positions:w(w({},d),{xStart:0,xEnd:p?r:o})})),c=e.sticky,g=w(w({},e),{name:"footer",position:"bottom"}),o=k.getRows(w(w({},t),{currentColumns:v,$positions:w(w({},d),{xStart:0,xEnd:p?r:o})}),w(w({},e),{name:"footer",position:"bottom"})),b=0;o.forEach(function(t){return b+=t.attrs.style.height});v=k.getFixedSpans(w(w({},t),{filteredColumns:v}),w(w({},e),{name:"footer",position:"bottom"}),i),i=function(t){return{role:"rowgroup","aria-rowcount":t}},o=c?S.el(".dhx_"+g.name+"-fixed-cols",w({onwheel:O.scrollFixedColsAndRows,class:p?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:_<e.gridBodyHeight?_-b:null,left:p?s<e.wrapper.width-f.y-T.BORDERS?s-m:e.wrapper.width-m-f.y-T.BORDERS:0,bottom:_>=e.gridBodyHeight?(c?f.x:0)+"px":null}},i(o.length)),[o,S.el("span.dhx_span-spans",{class:"dhx_footer-spans",role:"presentation"},v)]):null,v=d,d=T.getEvents(t,p?E.Split.right:E.Split.left),n=D.getSpans(w(w({},t),{$renderFrom:y}),n||(p?E.Split.right:E.Split.left));return[S.el(".dhx_grid-fixed-cols-wrap",w(w({style:{left:p?s<e.wrapper.width-f.y-T.BORDERS?s-m:e.wrapper.width-m-f.y-T.BORDERS:0,height:_>=e.gridBodyHeight?(c?e.gridBodyHeight:e.gridBodyHeight+l)-f.x:_,paddingTop:l,overflow:"hidden",width:m}},d),{role:"presentation","aria-label":"Fixed column"}),[S.el(".dhx_grid-fixed-cols",w(w({onwheel:O.scrollFixedColsAndRows,class:p?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{top:-u.top+l-1+"px",paddingTop:e.shifts.y,height:a,position:"absolute"},_flags:S.KEYED_LIST},D.getHandlers(v.yStart,v.xStart,t)),i(h.length)),C(x,[n&&S.el("span.dhx_span-spans",{role:"presentation"},[n])])),p?S.el(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:0}}):S.el(".dhx_grid__cols-border--frozen",{role:"presentation",style:{right:0}})]),t.$footer?o:null]}}},function(t,e,i){"use strict";var w=this&&this.__assign||function(){return(w=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},C=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var S=i(0),m=i(21),E=i(7),D=i(4),k=i(16),O=i(56),T=i(10),y=i(1),M=2;function n(t,e,i,n){i&&(i.toLocaleLowerCase().includes("touch")?e._events:e.events).fire(i,[t,n])}function b(t,e,i){return{onclick:[n,t,i,D.GridEvents[e+"CellClick"]],onmouseover:[n,t,i,D.GridEvents[e+"CellMouseOver"]],onmousedown:[n,t,i,D.GridEvents[e+"CellMouseDown"]],ontouchstart:[n,t,i,D.GridEvents[e+"CellMouseDown"]],ondblclick:[n,t,i,D.GridEvents[e+"CellDblClick"]],oncontextmenu:[n,t,i,D.GridEvents[e+"CellRightClick"]],ontouchmove:[n,t,i,D.GridSystemEvents[e+"CellTouchMove"]],ontouchend:[n,t,i,D.GridSystemEvents[e+"CelltouchEnd"]]}}function P(t,e,i,n,o,r){void 0===o&&(o="");var s=e.type?"dhx_"+e.type+"-cell":"dhx_string-cell",t=i.content[t.content]&&i.content[t.content].toHtml(e,i),a={};return i.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}),S.el("."+s,{style:{class:o.trim(),padding:0}},[t&&("string"==typeof t||"number"==typeof t?S.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(f,t){if(!f.data||!f.filteredColumns)return[];var e,p,g=f.$positions,_=t.name,v=f.currentColumns,m=f[_+"RowHeight"]||40,y=(e=_,t=(t=v).map(function(t){return t[e]||[{}]}),E.transpose(t)),x=1;return y.map(function(t,h){return S.el(".dhx_"+_+"-row",w({style:{height:m}},{role:"row","aria-rowindex":h+1}),t.map(function(n,t){var e=n.css||"",i=v[t],o=g.xStart+t+1,r="dxi dxi-sort-variant dhx_grid-sort-icon",s="none";f.sortBy&&""+i.id===f.sortBy&&!n.content&&(r+=" dhx_grid-sort-icon--"+(l=f.sortDir||"asc"),e+=" dhx_grid-"+_+"-cell--sorted ",s="asc"===l?"ascending":"descending");var a=E.isSortable(f,i)&&n.text&&"footer"!==_&&!1!==n.headerSort;a&&(e+=" dhx_grid-header-cell--sortable");var l=0===t?"dhx_first-column-cell":"",t=t===v.length-1?"dhx_last-column-cell":"";n.content||(n.align?e+=" dhx_grid-header-cell--align_"+n.align+" ":e+=" dhx_grid-header-cell--"+("number"===i.type||"percent"===i.type||"date"===i.type?"align_right":"align_left")+" "),e+=l+" "+t;t=(void 0!==i.resizable?i:f).resizable;t&&(u=f.rightSplit&&f.$scrollBarWidth.xState&&f.fixedColumns.right.includes(i),t=S.el("div",{class:"dhx_resizer_grip_wrap","aria-hidden":"true"},[S.el("div",{class:"dhx_resizer_grip"+(u?" dhx_resizer_grip--left":" dhx_resizer_grip--right"),dhx_resized:i.id,style:{height:100*y.length+"%"}},[S.el("div",{class:"dhx_resizer_grip_line"})])]),(u=i.header&&(null===(c=i.header[0])||void 0===c?void 0:c.colspan))&&(p=u,x=1),p&&x!==p&&(0===h&&(t=null),x++),"footer"===_&&(t=null)),n.align&&(e+=" dhx_align-"+n.align);var c=function(t,e,i){e={"aria-colindex":e};return"footer"===t||n.content?e.role="gridcell":(e.role="columnheader",e["aria-sort"]=i),e};if(n.content)return S.el(".dhx_grid-"+_+"-cell.dhx_grid-custom-content-cell",w(w({class:e.trim(),"data-dhx-id":i.id,_key:i.id,style:{width:i.$width,height:"footer"===_?m+M/2+"px":m+"px"}},b(i,_,f)),c(_,o,s)),[P(n,i,f,_,"",h),t||null]);var d,u="dhx_grid-header-cell-text_content";return f.autoHeight&&(u+=" dhx_grid-header-cell-text_content-auto-height"),S.el(".dhx_grid-"+_+"-cell",w(w({class:e.trim(),"data-dhx-id":i.id,_key:i.id,style:{width:i.$width,height:"footer"===_?m+M/2+"px":m+"px"}},b(i,_,f)),c(_,o,s)),[S.el("div.dhx_grid-header-cell-text",{role:"presentation"},[S.el("span",w(w({class:u},(d=n.text,a?{role:"button","aria-label":"Sort by "+d}:{})),{".innerHTML":n.text})),t||null]),a&&S.el("div",{class:r,"aria-hidden":"true"})])}))})}function h(u,h,f){var p=u.filteredColumns,t=E.transpose(p.map(function(t){return t[h.name]||[]})),g=u[h.name+"RowHeight"]||40,_=h.name,v=0;return t.map(function(t,d){return v=0,S.el(".dhx_span-row",{style:{top:g*d+"px",height:g},class:"dhx_header-row","aria-hidden":"true"},t.map(function(t,e){var i=p[e];v+=i.hidden?0:i.$width;var n=0===e?"dhx_first-column-cell":"",o=f?1:u.fixedColumns.right.length+1,r=e===p.length-o||(t.colspan||0)+(e-1)>=p.length-o?"dhx_last-column-cell":"",s=g;t.rowspan&&(s=s*t.rowspan-1),"footer"===h.name&&1<t.rowspan&&s++;var a=E.isSortable(u,i)&&t.rowspan&&t.text&&"footer"!==h.name&&!1!==t.headerSort,l="dxi dxi-sort-variant dhx_grid-sort-icon";u.sortBy&&""+i.id===u.sortBy&&!t.content&&(l+=" dhx_grid-sort-icon--"+(u.sortDir||"asc"));var c=i.align?"dhx_align-"+i.align:"number"!==i.type&&"percent"!==i.type&&"date"!==i.type||t.colspan?"dhx_align-left":"dhx_align-right",o="dhx_grid-header-cell "+n+" "+r+" "+(t.rowspan?"dhx_span-cell__rowspan":"")+" "+(t.align?"dhx_align-"+t.align:c)+" "+(t.css||"");a&&(o+=" dhx_grid-header-cell--sortable"),t.content||(t.align?o+=" dhx_grid-header-cell--align_"+t.align+" ":o+=" dhx_grid-header-cell--"+("number"===i.type||"percent"===i.type||"date"===i.type?"align_right":"align_left")+" ");n=null;t.content&&((n=P(t,i,u,_,o,d)).attrs.style=w(w({},n.attrs.style),{width:"100%",borderRight:"0"}));r="";0<v-i.$width&&(r="var(--dhx-border)");c="dhx_grid-header-cell-text_content";return u.autoHeight&&(c+=" dhx_grid-header-cell-text_content-auto-height"),t.colspan||t.rowspan?S.el(".dhx_span-cell",w({style:{width:m.getWidth(u.columns,e+t.colspan>p.length?p.length-e:t.colspan,y.findIndex(u.columns,function(t){return t.id===i.id})),height:s,left:v-i.$width,borderLeft:r,top:g*d},class:o.trim(),"data-dhx-id":i.id},b(i,_,u)),[n||t.rowspan?S.el("div.dhx_grid-header-cell-text",{role:"presentation"},[S.el("span",{class:c,".innerHTML":t.text})]):S.el("span",{class:c,".innerHTML":t.text}),a&&S.el("div",{class:l})]):null}).filter(function(t){return t}))})}function H(t){return{role:"rowgroup","aria-rowcount":t}}e.getRows=u,e.getFixedSpans=h,e.getFixedRows=function(i,n,t){var o,r,s=i.leftSplit,e=i.$totalWidth,a=u(i,n),l=h(i,n,t),t=null;"footer"!==n.name||n.sticky||(o=i.rightSplit,r=i.fixedColumns,t=C((d=function(t){void 0===t&&(t=!1);var e=t?r.right:r.left;return!t&&0<=s||t&&0<=o?u(w(w({},i),{currentColumns:e,$positions:w(w({},i.$positions),{xStart:0,xEnd:t?o:s})}),n):[]})(),d(!0)));var c,d=((d={position:"sticky"})[n.position]=0,d);return n.sticky||(d.left=-i.scroll.left,c=-i.scroll.left,d.position="relative"),S.el(".dhx_"+n.name+"-wrapper"+(i.rightSplit?".dhx_grid__rows_right--fixed":""),{class:n.sticky?"":"dhx_compatible-"+n.name,style:w(w({},d),{left:n.sticky?c:0,height:"footer"===n.name?i[n.name+"Height"]+M/2:i[n.name+"Height"],width:n.sticky?e:n.wrapper.width-M}),role:"presentation"},[S.el(".dhx_grid-"+n.name+(s?".dhx_grid_fixed_left":""),{style:{height:"footer"===n.name?i[n.name+"Height"]+M/2:i[n.name+"Height"],left:c,paddingLeft:n.shifts.x,width:e},role:"presentation"},[S.el(".dhx_"+n.name+"-rows",w({},H(C(a).length)),C(a)),S.el(".dhx_"+n.name+"-spans",{style:{marginLeft:-n.shifts.x},class:"dhx_"+n.name+"-rows",role:"presentation"},l),t&&S.el(".dhx_"+n.name+"-fixed-cols",{style:{position:"absolute",top:0,left:i.scroll.left+"px",height:"100%"}},t)]),S.el("div",{style:{width:e},role:"presentation"})])},e.getFixedDataRows=function(e,i,n){if(!(n===D.Split.top&&"number"!=typeof e.topSplit||n===D.Split.bottom&&"number"!=typeof e.bottomSplit)){var 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===D.Split.bottom,p=f?e.fixedRows.bottom:e.fixedRows.top,g=f?"bottomFixedRows":"topFixedRows",_=k.getCells(w(w({},e),{data:p,$renderFrom:g,$positions:w(w({},s),{yStart:0,yEnd:f?r:o})})),v=T.getEvents(e,f?D.Split.bottom:D.Split.top),m=p.reduce(function(t,e){return t+e.$height},0),y=k.getSpans(w(w({},e),{$renderFrom:g,data:a}),f?D.Split.bottom:D.Split.top),x=E.getTotalHeight(e.fixedRows.bottom),b=function(t){return O.getFixedCols(w(w({},e),{headerHeight:0,data:p,$renderFrom:g,scroll:w(w({},e.scroll),{top:-1}),$positions:w(w({},s),{yStart:0,yEnd:f?r:o}),$totalHeight:m,$data:a}),w(w({},i),{shifts:w(w({},i.shifts),{y:0})}),t,n)||[]},b=C(b(D.Split.left),b(D.Split.right));return[S.el(".dhx_grid-fixed-data-rows-wrap",{class:f?"dhx_grid__rows_bottom--fixed":"",style:{top:f?l<i.wrapper.height-h.x-M?l+d-x+M/2:i.wrapper.height-x-u-M/2-h.x:d,overflow:"hidden",height:m>i.wrapper.height?i.wrapper.height:m,width:t+h.y+M<c?t:c-h.y-M}},C([S.el(".dhx_grid-fixed-cols",w(w({onwheel:E.scrollFixedColsAndRows,style:{left:-e.scroll.left+"px",paddingLeft:i.shifts.x,position:"absolute",width:t},_flags:S.KEYED_LIST},k.getHandlers(0,s.xStart,e)),H(a.length)),[S.el(".dhx_grid-fixed-rows",w({class:e.rightSplit?"dhx_grid__rows_right--fixed":""},v),C(_,[y&&S.el(".dhx_span-spans",{role:"presentation"},[y])]))])],b,[e.bottomSplit?S.el(".dhx_grid__rows-border--frozen",{role:"presentation"}):null]))]}}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(119)),n(e(120)),n(e(121)),n(e(122)),n(e(33))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,e,i){"use strict";function n(t){var e=document.activeElement;e.classList.contains("dhx_alert__apply-button")&&"Enter"===t.key||e.classList.contains("dhx_alert__confirm-reject")||e.classList.contains("dhx_alert__confirm-aply")||t.preventDefault()}Object.defineProperty(e,"__esModule",{value:!0}),e.blockScreen=function(t){var e=document.createElement("div");return e.className="dhx_alert__overlay "+(t||""),document.body.appendChild(e),document.addEventListener("keydown",n),function(){document.body.removeChild(e),document.removeEventListener("keydown",n)}}},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var v=i(1),m=i(0),y=i(3),x=function(t){return t.toString()},b=function(t,e){return{role:"graphics-object","aria-label":t+"-axis"+(e?", "+e:"")}};e.bottom=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,f=[],c=0;return d&&(c=a,r=u&&!isNaN(u),s=n+a,f=t.map(function(t){var e,i=t[0],n=r?"rotate("+u+" "+i+" "+s+")":"",o=["scale-text","top-text"];return r&&(e=u%360,o.push(y.getClassesForRotateScale("bottom",e))),m.sv("text",{x:i,y:s,class:o.join(" "),transform:n},[y.verticalCenteredText(h(t[1]))])})),a=v.uid(),t=null,n=m.sv("path",{class:"main-scale",d:"M0 "+n+" H"+(i-.5),id:a}),o&&(t=m.sv("text",{dx:i/2,dy:l+c},[m.sv("textPath",{href:"#"+a,class:"scale-title "},o)])),m.sv("g",_({},b("x",o||e.text)),[n,t].concat(f))},e.bottomGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=n.targetValue,u=t.length,h=[],f="grid-line "+(a?"dash-line":"")+" "+(l?"":"hidden-line"),p=0;p<u;p++)0===p&&0===t[p][0]&&!n.hidden||(p!==c?(r="M"+t[p][0]+" 0 V "+i,s=m.sv("path",{d:r,class:f,_ref:"line"+Math.round(t[p][0])}),h.push(s),p===u-1&&t[p][0]!==e&&(o="M"+e+" 0 V "+i,o=m.sv("path",{d:o,class:f}),h.push(o))):(o="M"+t[p][0]+" 0 V "+i,o=m.sv("path",{d:o,class:f+" spec-grid-line"}),h.push(o)));return d&&(r="M"+d*e+" 0 V "+i,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.top=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,f=[],c=0;return d&&(c=a,r=u&&!isNaN(u),s=-a,f=t.map(function(t){var e,i=["scale-text"],n=t[0],o=r?"rotate("+u+" "+n+" "+s+")":"";return r&&(e=u%360,i.push(y.getClassesForRotateScale("top",e))),m.sv("text",{x:n,y:s,class:i.join(" "),transform:o},[y.verticalCenteredText(h(t[1]))])})),d=v.uid(),a=m.sv("path",{d:"M0 0 H"+i,class:"main-scale",id:d}),t=null,o&&(t=m.sv("text",{dx:i/2,dy:-l-c},[m.sv("textPath",{href:"#"+d,class:"scale-title"},o)])),m.sv("g",_({},b("x",o||e.text)),[a,t].concat(f))},e.topGrid=function(t,e,i,n){for(var o,r,s=n.dashed,a=n.grid,l=n.targetLine,c=t.length,d=[],u="grid-line "+(s?"dash-line":"")+" "+(a?"":"hidden-line"),h=0;h<c;h++)0===h&&0===t[h][0]&&!n.hidden||(h!==l?(o="M"+t[h][0]+" 0 V "+i,o=m.sv("path",{d:o,class:u,_ref:"line"+Math.round(t[h][0])}),d.push(o),h===c-1&&0!==t[h][0]&&(r="M0 0 V "+i,r=m.sv("path",{d:r,class:u}),d.push(r))):(r="M"+t[h][0]+" 0 V "+i,r=m.sv("path",{d:r,class:u+" spec-grid-line"}),d.push(r)));return m.sv("g",d)},e.left=function(t,e,i,n){var s,a,l,c=e.title,d=e.textPadding,o=e.scalePadding,r=e.textTemplate,u=e.showText,h=e.scaleRotate,f=r||x,p=[],g=0;return u&&(s=y.getFontStyle("scale-text"),a=0,l=h&&!isNaN(h),p=t.map(function(t){var e,i=t[0],n=-d,o=l?"rotate("+h+" "+n+" "+i+")":"",r=["scale-text"],t=f(t[1]);return c&&(e=y.getTextWidth(t,s),a<e&&(a=e)),l?(e=h%360,r.push(y.getClassesForRotateScale("left",e))):r.push("end-text"),m.sv("text",{x:n,y:i,class:r.join(" "),transform:o},[y.verticalCenteredText(t)])}),g=a+d),r=v.uid(),u=m.sv("path",{class:"main-scale",d:"M0 "+n+" V 0.5",id:r,_ref:t.length?"line0":null}),t=null,c&&(t=m.sv("text",{dx:n/2,dy:-o-g},[m.sv("textPath",{href:"#"+r,class:"scale-title"},c)])),m.sv("g",_({},b("y",c||e.text)),[u,t].concat(p))},e.leftGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=n.targetValue,u=t.length,h=[],f="grid-line "+(a?"dash-line":""),p=0;p<u;p++)0===p&&t[p][0]===i&&!n.hidden||(c!==p?l&&(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f}),h.push(s),p===u-1&&t[p][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:f}),h.push(o))):(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)));return d&&(r="M0 "+d*i+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.right=function(t,e,s,i){var a,l,c,d=e.title,u=e.textPadding,n=e.scalePadding,o=e.textTemplate,r=e.showText,h=e.scaleRotate,f=o||x,p=[],g=0;return r&&(a=y.getFontStyle("scale-text"),l=0,c=h&&!isNaN(h),p=t.map(function(t){var e,i=f(t[1]),n=t[0],o=s+u,r=c?"rotate("+h+" "+o+" "+n+")":"",t=["scale-text"];return d&&(e=y.getTextWidth(i,a),l<e&&(l=e)),c?(e=h%360,t.push(y.getClassesForRotateScale("right",e))):t.push("start-text"),m.sv("text",{x:o,y:n,class:t.join(" "),transform:r},[y.verticalCenteredText(i)])}),g=u+l),o=v.uid(),r=m.sv("path",{d:"M"+s+" "+i+" V 0",class:"main-scale",id:o,_ref:t.length?"line0":null}),t=null,d&&(t=m.sv("text",{dx:i/2,dy:n+g},[m.sv("textPath",{href:"#"+o,class:"scale-title"},d)])),m.sv("g",_({},b("y",d||e.text)),[r,t].concat(p))},e.rightGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=t.length,u=[],h="grid-line "+(a?"dash-line":""),f=0;f<d;f++)0===f&&t[f][0]===i&&!n.hidden||(c!==f?l&&(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h}),u.push(s),f===d-1&&t[f][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:h}),u.push(o))):(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h+" spec-grid-line"}),u.push(s)));return m.sv("g",u)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,v=i(0),a=i(3),i=i(35),o=(s=i.default,o(l,s),l.prototype.paint=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[];return this._form(t,e,n,i),this._markers(n),v.sv("g",r(r({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},l.prototype.paintformAndMarkers=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[],o=[];return this._form(t,e,n,i),this._markers(o),[v.sv("g",{class:"seria",_key:this.id},n),v.sv("g",{class:"seria_markers",_key:this.id+"_markers"},o)]},l.prototype._markers=function(t){var e,i,n=this;this.config.pointType&&(e=this.config.pointColor||this.config.color,i=this._getPointType(this.config.pointType,e),t.push.apply(t,this._points.map(function(t){return i(t[0],t[1],a.calcPointRef(t[2],n.id))})))},l.prototype._form=function(t,i,e,n){var o,r,s="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),a=this.config,l=a.id,c=a.fill,d=a.alpha,u=a.color,h=a.strokeWidth,f=this._points,a=f[f.length-1],p="";if(n){for(var g=n.length-1;0<=g;g--){var _=n[g];p+=g===f.length-1?"M"+_[0]+" "+_[1]+" ":"L"+_[0]+" "+_[1]+" "}p+=f.map(function(t,e){return e?"L "+t[0]+" "+t[1]:"V "+t[1]}).join(" ")+"Z"}else p+=f.map(function(t,e){return e?"L"+t[0]+" "+t[1]:"M0 "+i+" L0 "+t[1]+" L"+t[0]+" "+t[1]}).join(" ")+("L"+t+" "+a[1])+" V "+i;h&&(o=f.length-1,r=function(t){return t===o?-.5:t?0:.5},a=f.map(function(t,e){return e?"L"+(t[0]+r(e))+" "+t[1]:"M0 "+t[1]+" L0 "+(t[1]+r(e))+" L"+(t[0]+r(e))+" "+t[1]}).join(" ")+("L"+t+" "+a[1]),u=v.sv("path",{d:a,"stroke-width":h,stroke:u,fill:"none",class:s}),e.push(u));d=v.sv("path",{id:"seria"+l,d:p,class:s,fill:c,_ref:l,"fill-opacity":d,stroke:"none"});return e.push(d),e},l.prototype._setDefaults=function(t){var e={alpha:.3,strokeWidth:2,fill:t.color||"#5E83BA",color:"#5E83BA",active:!0,tooltip:!0,pointType:"empty"};this.config=r(r({},e),t);e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},l);function l(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(3),n={circle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2};return s.sv("circle",t)},rect:function(t,e,i,n,o,r){t={_ref:r,x:n-4,y:o-4,width:8,height:8,class:"figure point-rect",fill:e,stroke:t,"stroke-width":2};return s.sv("rect",t)},rhombus:function(t,e,i,n,o,r){t={_ref:r,points:n-5+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},triangle:function(t,e,i,n,o,r){t={_ref:r,points:n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},simpleCircle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:3,class:"figure point-simple-circle",fill:t};return s.sv("circle",t)},simpleRect:function(t,e,i,n,o,r){t={_ref:r,x:n-3,y:o-3,width:6,height:6,class:"figure point-simple-rect",fill:t};return s.sv("rect",t)},empty:function(){return null}},o={circle:function(t,e,i,n,o,r){return'<circle class="figure point-circle" _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="4" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rect:function(t,e,i,n,o,r){return'<rect _ref="'+r+'" x="'+(n-4)+'" y="'+(o-4)+'" width="8" height="8" class="figure point-rect" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rhombus:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+(n-5)+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5)+'" class="figure point-rhombus" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},triangle:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5)+'" class="figure point-triangle" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},simpleCircle:function(t,e,i,n,o,r){return'<circle _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="3" class="figure point-simple-circle" fill="'+t+'"/>'},simpleRect:function(t,e,i,n,o,r){return'<rect _ref="id" x="'+(n-3)+'" y="'+(o-3)+'" width="6" height="6" class="figure point-simple-rect" fill="'+t+'"/>'},empty:function(){return null}};function l(t){t=n[t.toString()];if(!t)throw new Error("unknown point type");return t}function c(t){t=o[t.toString()];if(!t)throw new Error("unknown point type");return t}e.getHelper=l,e.getHTMLHelper=c,e.getShadeHelper=function(t,n){var o=l(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}},e.getShadeHTMLHelper=function(t,n){var o=c(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),_=i(0),v=i(3),i=i(35),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){r.prototype.addScale.call(this,t,e),e.addPadding()},a.prototype.seriesShift=function(t){return this._shift=t,this.config.barWidth},a.prototype.paint=function(t,e,i){r.prototype.paint.call(this,t,e);if(!this.config.active)return null;var n=[];this._gradient&&n.push(_.sv("defs",[this._gradient()]));var o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),i=this._getForm(this._points,o,t,e,i),n=n.concat(i);return _.sv("g",g(g({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},a.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition<i?"bot":"top"},a.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&e<n?1/0:Math.abs(t-i)},a.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+(t[0]-this.config.barWidth/2)+" "+e+"\nV "+t[1]+"\nh "+this.config.barWidth+"\nV "+e},a.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:t-1},a.prototype._text=function(t,e,i){var n=t[0],t=(e+t[1])/2;return{x:n,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+n+" "+t+")":""}},a.prototype._getForm=function(t,i,e,n,o){function r(t){return o?o[t][1]:p}var s=this,a=this.config,l=a.baseLine,c=a.fill,d=a.alpha,u=a.showText,h=a.showTextTemplate,f=a.showTextRotate,a=[],p=this._base(n),n=t.map(function(t,e){return _.sv("path",g(g({_key:"seria"+s.config.id+e,_ref:v.calcPointRef(t[2],s.config.id),d:s._path(t,r(e)),class:i,fill:c,onclick:[s._handlers.onclick,t[2],s.config.value],onmousemove:[s._handlers.onmousemove,t[2],s.config.id],onmouseleave:[s._handlers.onmouseleave,t[2],s.config.id],"fill-opacity":d},{role:"graphics-symbol","aria-roledescription":"bar","aria-label":function(t,e,i){void 0===i&&(i=0);var n=e[3],o=i,e=e[4];return e<i&&(o=e,e=i),"xbar"===t?"bar y="+n+", x from "+o+" to "+e:"bar x="+n+", y from "+o+" to "+e}(s.config.type,t,l)}),{tabindex:0}))});return a.push.apply(a,n),(u||h||f)&&!1!==u&&(t=t.map(function(t,e){var i,n,o=s._getText(t);return i=t,n=e,16<Math.abs(r(n)-i[1])?_.sv("text",g(g({},s._text(t,r(e),f)),{"aria-hidden":"true"}),[h?v.verticalCenteredText(h(o)):v.verticalCenteredText(o)]):null}),a.push.apply(a,t)),a},a.prototype._getText=function(t){return t[4].toString()},a.prototype._setDefaults=function(t){this.config=g(g({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e,i,n=this.config.pointType,t=this.config.pointColor||this.config.color;n&&(this.config.pointType=n,this._drawPointType=this._getPointType(n,t)),this.config.gradient&&(e="gradient"+s.uid(),i=this.config.gradient(this.config.fill),this._gradient=function(){return v.linearGradient(i,e)},this.config.fill="url(#"+e+")")},a);function a(){var t=null!==r&&r.apply(this,arguments)||this;return t._shift=0,t}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i=t.length;if(i<3)a=t;else for(var n=t[0],o=t[0],r=t[1],s=t[2],a=[t[0].slice(0,2)],l=1;l<i;l++)a.push([(-n[0]+6*o[0]+r[0])/6,(-n[1]+6*o[1]+r[1])/6,(o[0]+6*r[0]-s[0])/6,(o[1]+6*r[1]-s[1])/6,r[0],r[1]]),n=o,o=r,r=s,s=t[l+2]||s;for(var c="",l=0;l<a.length;l++){var d=a[l],u=d.length;l?c+=5<u?"C"+d[0]+" "+d[1]+"\n\t\t\t\t"+d[2]+" "+d[3]+"\n\t\t\t\t"+d[4]+" "+d[5]:5===u?"L"+d[0]+" "+d[1]:"S"+d[0]+" "+d[1]+"\n\t\t\t\t"+d[2]+" "+d[3]:(c+=e?"L":"M",c+=5===u?d[0]+" "+d[1]:d[u-2]+" "+d[u-1])}return c}},function(t,e,i){i(67),i(68),i(69),i(70),i(71),t.exports=i(72)},function(t,e){Object.values=Object.values||function(e){var t=Object.prototype.toString.call(e);if(null==e)throw new TypeError("Cannot convert undefined or null to object");if(~["[object String]","[object Object]","[object Array]","[object Function]"].indexOf(t)){if(Object.keys)return Object.keys(e).map(function(t){return e[t]});var i,n=[];for(i in e)e.hasOwnProperty(i)&&n.push(e[i]);return n}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=0;o<e.length;o++){var r=e[o];if(null!=r)for(var s=Object.keys(Object(r)),a=0,l=s.length;a<l;a++){var c=s[a],d=Object.getOwnPropertyDescriptor(r,c);void 0!==d&&d.enumerable&&(n[c]=r[c])}}return n}})},function(t,e){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0==n)return!1;var o,r,e=0|e,s=Math.max(0<=e?e:n-Math.abs(e),0);for(;s<n;){if((o=i[s])===(r=t)||"number"==typeof o&&"number"==typeof r&&isNaN(o)&&isNaN(r))return!0;s++}return!1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],o=0;o<i;){var r=e[o];if(t.call(n,r,o,e))return r;o++}},configurable:!0,writable:!0}),Array.prototype.findIndex||(Array.prototype.findIndex=function(t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,o=arguments[1],r=0;r<n;r++)if(e=i[r],t.call(o,e,r,i))return r;return-1})},function(t,e){String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return e=e||0,this.indexOf(t,e)===e}}),String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))})},function(t,e){var i,n,o,r;Element&&!Element.prototype.matches&&((i=Element.prototype).matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector),"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var i=this;return{contains:function(t){return-1!==i.className.baseVal.split(" ").indexOf(t)},add:function(t){return i.setAttribute("class",i.getAttribute("class")+" "+t)},remove:function(t){var e=i.getAttribute("class").replace(new RegExp("(\\s|^)".concat(t,"(\\s|$)"),"g"),"$2");i.classList.contains(t)&&i.setAttribute("class",e)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),Object.entries||(n=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat),Object.entries=function(i){return n(Object.keys(i),function(t,e){return r(t,"string"==typeof e&&o(i,e)?[[e,i[e]]]:[])},[])}),Event.prototype.composedPath||(Event.prototype.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(document,window),this.path})},function(t,e){Math.sign=Math.sign||function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i(73),i(74);var n=i(0);e.vmdom={sv:n.sv};n=i(0);e.resizeHandler=n.resizeHandler,e.awaitRedraw=n.awaitRedraw,e.setTheme=n.setTheme;i=i(79);e.Chart=i.Chart},function(t,e,i){},function(t,e,i){},function(t,o,r){(function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function n(t,e){this._id=t,this._clearFn=e}o.setTimeout=function(){return new n(i.call(setTimeout,e,arguments),clearTimeout)},o.setInterval=function(){return new n(i.call(setInterval,e,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(e,this._id)},o.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},o.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},o._unrefActive=o.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(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,p){!function(i,n){"use strict";var o,r,s,a,l,c,e,d,t;function u(t){delete r[t]}function h(t){if(s)setTimeout(h,0,t);else{var e=r[t];if(e){s=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{u(t),s=!1}}}}function f(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(d)&&h(+t.data.slice(d.length))}i.setImmediate||(o=1,s=!(r={}),a=i.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&t.setTimeout?t:i,l="[object process]"==={}.toString.call(i.process)?function(t){p.nextTick(function(){h(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(d="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",f,!1):i.attachEvent("onmessage",f),function(t){i.postMessage(d+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){h(t.data)},function(t){e.port2.postMessage(t)}):a&&"onreadystatechange"in a.createElement("script")?(c=a.documentElement,function(t){var e=a.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,c.removeChild(e),e=null},c.appendChild(e)}):function(t){setTimeout(h,0,t)},t.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return t={callback:t,args:e},r[o]=t,l(o),o++},t.clearImmediate=u)}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(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")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}}();var a,l=[],c=!1,d=-1;function u(){c&&a&&(c=!1,a.length?l=a.concat(l):d=-1,l.length&&h())}function h(){if(!c){var t=s(u);c=!0;for(var e=l.length;e;){for(a=l,l=[];++d<e;)a&&a[d].run();d=-1,e=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new f(t,e)),1!==l.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=p,t.addListener=p,t.once=p,t.off=p,t.removeListener=p,t.removeAllListeners=p,t.emit=p,t.prependListener=p,t.prependOnceListener=p,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,i){
|
|
12
|
+
if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dhx=e():t.dhx=e()}(window,function(){return n={},o.m=i=[function(t,o,r){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!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?o.el("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n(function(){return e(t)}).observe(t.el)}}}):o.el("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return e(t)},e(t)}}})}o.el=e.defineElement,o.sv=e.defineSvgElement,o.view=e.defineView,o.create=e.createView,o.inject=e.injectView,o.KEYED_LIST=e.KEYED_LIST,o.disableHelp=function(){e.DEVMODE.mutations=!1,e.DEVMODE.warnings=!1,e.DEVMODE.verbose=!1,e.DEVMODE.UNKEYED_INPUT=!1},o.resizer=i,o.resizeHandler=function(t,e){return o.create({render:function(){return i(e)}}).mount(t)},o.awaitRedraw=function(){return new t(function(t){requestAnimationFrame(function(){t()})})},o.setTheme=function(t,e){void 0===t&&(t="light");var i="data-dhx-theme";e||document.querySelectorAll("["+i+"]").forEach(function(t){return t.removeAttribute(i)}),e=e||document.documentElement,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)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(2),n=(new Date).valueOf();e.uid=function(){return"u"+n++},e.extend=function t(e,i,n){if(void 0===n&&(n=!0),i)for(var o in i){var r=i[o],s=e[o];void 0===r?delete e[o]:!n||"object"!=typeof s||s instanceof Date||s instanceof Array?e[o]=r:t(s,r)}return e},e.copy=function(t,e){var i,n={};for(i in t)e&&i.startsWith("$")||(n[i]=t[i]);return n},e.naturalSort=function(t){return t.sort(function(t,e){return"string"==typeof t?t.localeCompare(e):t-e})},e.findIndex=function(t,e){for(var i=t.length,n=0;n<i;n++)if(e(t[n]))return n;return-1},e.isEqualString=function(t,e){if(t=t.toString(),e=e.toString(),t.length>e.length)return!1;for(var i=0;i<t.length;i++)if(t[i].toLowerCase()!==e[i].toLowerCase())return!1;return!0},e.singleOuterClick=function(e){var i=function(t){e(t)&&document.removeEventListener("click",i)};document.addEventListener("click",i)},e.detectWidgetClick=function(e,i){function t(t){return i(r.locate(t,"data-dhx-widget-id")===e)}return document.addEventListener("click",t),function(){return document.removeEventListener("click",t)}},e.unwrapBox=function(t){return Array.isArray(t)?t[0]:t},e.wrapBox=function(t){return Array.isArray(t)?t:[t]},e.isDefined=function(t){return null!=t},e.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,i=new Blob([t],{type:i});window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(i,e):(n=document.createElement("a"),o=URL.createObjectURL(i),n.href=o,n.download=e,document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(o)},0))},e.debounce=function(o,r,s){var a;return function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=s&&!a;clearTimeout(a),a=setTimeout(function(){a=null,s||o.apply(t,e)},r),n&&o.apply(this,e)}},e.compare=function t(e,i){for(var n in e){if(e.hasOwnProperty(n)!==i.hasOwnProperty(n))return!1;switch(typeof e[n]){case"object":if(!t(e[n],i[n]))return!1;break;case"function":if(void 0===i[n]||"compare"!==n&&e[n].toString()!==i[n].toString())return!1;break;default:if(e[n]!==i[n])return!1}}for(var n in i)if(!e.hasOwnProperty(n))return!1;return!0},e.isType=function(t){return((Object.prototype.toString.call(t).match(/^\[object (\S+?)\]$/)||[])[1]||"undefined").toLowerCase()},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.getMaxArrayNymber=function(t){if(t.length){for(var e=-1/0,i=0,n=t.length;i<n;i++)t[i]>e&&(e=t[i]);return e}},e.getMinArrayNymber=function(t){if(t.length){for(var e=1/0,i=0,n=t.length;i<n;i++)t[i]<e&&(e=t[i]);return e}},e.getStringWidth=function(t,e){e=o({font:"normal 14px Roboto",lineHeight:20},e);var i=document.createElement("canvas"),n=i.getContext("2d");e.font&&(n.font=e.font);t=n.measureText(t).width;return r.isIE()||i.remove(),t},e.rgbToHex=function(t){if("#"===t.substr(0,1))return t;if("rgb"===t.substr(0,3)){t=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t);return"#"+parseInt(t[2],10).toString(16).padStart(2,"0")+parseInt(t[3],10).toString(16).padStart(2,"0")+parseInt(t[4],10).toString(16).padStart(2,"0")}}},function(t,e,i){"use strict";var c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function n(t,e,i){for(void 0===e&&(e="data-dhx-id"),void 0===i&&(i="target"),t instanceof Event&&(t=t[i]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector("[data-cell-id="+t+"]")||document.querySelector(t)||(null===(e=document.querySelector("[data-dhx-root-id="+t+"]"))||void 0===e?void 0:e.parentElement)||document.body:t||document.body},e.eventHandler=function(s,a,l){var c=Object.keys(a);return function(t){var e=s(t);if(void 0!==e){var i=t.target;t:for(;i;){var n=i.getAttribute&&i.getAttribute("class")||"";if(n.length)for(var o=n.split(" "),r=0;r<c.length;r++)if(o.includes(c[r])){if(!1===a[c[r]](t,e)||t.cancelBubble)return!1;break t}i=i.parentNode}}return l&&l(t),!0}},e.locateNode=n,e.locate=function(t,e){return void 0===e&&(e="data-dhx-id"),(t=n(t,e))?t.getAttribute(e):""},e.locateNodeByClassName=function(t,e){for(t instanceof Event&&(t=t.target);t;){if(e){if(t.classList&&t.classList.contains(e))return t}else if(t.getAttribute&&t.getAttribute("data-dhx-id"))return t;t=t.parentNode}},e.getBox=function(t){var e=t.getBoundingClientRect(),i=document.body,n=window.pageYOffset||i.scrollTop,t=window.pageXOffset||i.scrollLeft;return{top:e.top+n,left:e.left+t,right:i.offsetWidth-e.right,bottom:i.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var o=-1;e.getScrollbarWidth=function(){if(-1<o)return o;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",o=t.offsetWidth-t.clientWidth,document.body.removeChild(t),o};var r=-1;function s(t){t=t.getBoundingClientRect();return{left:t.left+window.pageXOffset,right:t.right+window.pageXOffset,top:t.top+window.pageYOffset,bottom:t.bottom+window.pageYOffset}}function d(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function l(t,e){var i,n,o,r=d(),s=r.rightBorder,a=r.bottomBorder-t.bottom-e.height,l=t.top-e.height;if("bottom"===e.mode?0<=a?i=t.bottom:0<=l&&(i=l):0<=l?i=l:0<=a&&(i=t.bottom),a<0&&l<0){if(e.auto)return u(t,c(c({},e),{mode:"right",auto:!1}));i=l<a?t.bottom:l}return{left:e.centering?(n=t,o=e.width,r=s,a=(o-(n.right-n.left))/2,l=n.left-a,a=n.right+a,0<=l&&a<=r?l:l<0?0:r-o):(s=s-t.left-e.width,e=t.right-e.width,0<=s||!(0<=e)&&s<e?t.left:e),top:i}}function u(t,e){var i,n,o=d(),r=o.rightBorder,s=o.bottomBorder,a=r-t.right-e.width,o=t.left-e.width;if("right"===e.mode?0<=a?n=t.right:0<=o&&(n=o):0<=o?n=o:0<=a&&(n=t.right),o<0&&a<0){if(e.auto)return l(t,c(c({},e),{mode:"bottom",auto:!1}));n=a<o?o:t.right}return{left:n,top:e.centering?(a=t,i=e.height,o=r,n=(i-(a.bottom-a.top))/2,r=a.top-n,n=a.bottom+n,0<=r&&n<=o?r:r<0?0:o-i):(i=t.bottom-e.height,!(0<=(e=s-t.top-e.height))&&(0<i||e<i)?i:t.top)}}function a(t,e){var i=("bottom"===e.mode||"top"===e.mode?l:u)(t,e),t=i.left,i=i.top;return{left:Math.round(t)+"px",top:Math.round(i)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(-1<r)return r;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",r=t.offsetHeight-t.clientHeight,document.body.removeChild(t),r},e.isIE=function(){var t=window.navigator.userAgent;return t.includes("MSIE ")||t.includes("Trident/")},e.isSafari=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Firefox/);return!e&&!i&&t(/Safari/)},e.isFirefox=function(){function t(t){return t.test(window.navigator.userAgent)}var e=t(/Chrome/),i=t(/Safari/);return!e&&!i&&t(/Firefox/)},e.getRealPosition=s,e.calculatePosition=a,e.fitPosition=function(t,e){return a(s(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var i=document.styleSheets[e],n=("cssRules"in i?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push(r.selectorText+" {\n"+r.style.cssText+"\n}\n")}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,i=t.type,n=t.labelWidth,o=t.label,r=n&&n.toString().startsWith("0"),t="text"!==i&&t.required;return!!(e||t||!(!o||o&&r)||n&&!r)&&{style:(o||n)&&!r&&{width:n,"max-width":"100%"},label:o&&r?null:o}};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(r.selectorText+" {\n"+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="'+t+'" rel="stylesheet"/>')});else for(var i=0;i<document.styleSheets.length;i++){var n=document.styleSheets[i];h(n)&&e.push('<link href="'+n.href+'" rel="stylesheet"/>')}return e.join("\n")}},function(t,n,e){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var r,s,a=e(0),i=["#2A9D8F","#78586F","#E76F51","#E5A910","#11A3D0","#985F99","#217B70","#BD9391","#9C89B8","#734B5E","#D66BA0","#5C5D8D"],l=["#237396","#2780A8","#3892A3","#4DA3A0","#67BF99"];function c(e){var i={};return function(t){return i[t]||(i[t]=e(t))}}n.getDefaultColor=function(t,e){return void 0===t&&(t=0),(e?l:i)[t]},n.locator=function(e){return e?"string"==typeof e?function(t){return t[e]}:e:function(){return""}},n.log10=function(t){return Math.log(t)/Math.LN10},n.getTextWidth=(r=function(t,e){void 0===e&&(e="");var i=document.createElement("canvas").getContext("2d");return e&&(i.font=e),i.measureText(t).width},s={},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=s,n=0;n<t.length-1;n++)i[t[n]]=i[t[n]]||{},i=i[t[n]];var o=t.length-1;return i[o]||(i[o]=r.apply(void 0,t))});var d=c(function(t){var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,e.fillRect(0,0,2,2),[(e=e.getImageData(1,1,1,1).data)[0],e[1],e[2]]});function u(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}n.getColorShade=function(t,e){return"rgb("+(t=d(t).map(function(t){return Math.floor(t*e+255*(1-e))}))[0]+","+t[1]+","+t[2]+")"},n.getFontStyle=c(function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","dhx_chart");var i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("class",t),e.setAttribute("visibility","hidden"),i.textContent="test",e.appendChild(i),document.body.appendChild(e);i=getComputedStyle(i),i=i.fontSize+" "+i.fontFamily;return document.body.removeChild(e),i}),n.linearGradient=function(t,e){return t=t.stops.map(function(t){return a.sv("stop",{offset:100*t.offset+"%","stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("linearGradient",{id:e,gradientTransform:"rotate(90)"},t)},n.getRadialGradient=function(t,e,i){return e=e.map(function(t){return a.sv("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}),a.sv("radialGradient",o({id:i,cx:0,cy:0,gradientUnits:"userSpaceOnUse"},t),e)},n.euclideanDistance=function(t,e,i,n){return Math.sqrt((t-i)*(t-i)+(e-n)*(e-n))},n.roundToTwoNumAfterPoint=function(t){return Math.round(100*(100*t+Number.EPSILON))/100},n.verticalCenteredText=function(t){return a.sv("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},n.verticalTopText=function(t){return a.sv("tspan",{dy:"-0.5ex"},t)},n.verticalBottomText=function(t){return a.sv("tspan",{dy:"1.5ex"},t)},n.calcPointRef=function(t,e){return t+"_"+e},n.getClassesForRotateScale=function(t,e){var i="",n=[];switch("left"===t||"top"===t?n.push("start-text","end-text"):"right"!==t&&"bottom"!==t||n.push("end-text","start-text"),t){case"left":case"right":0===e?i=n[1]:0<e?180===e?i=n[0]:180<e?e<270?i=n[0]:270<e&&(i=n[1]):e<180&&(90<e?i=n[0]:e<90&&(i=n[1])):e<0&&(-180===e?i=n[0]:e<-180?-270<e?i=n[0]:e<-270&&(i=n[1]):-180<e&&(e<-90?i=n[0]:-90<e&&(i=n[1])));break;case"top":case"bottom":0<e?180<e?i=n[0]:e<180&&(i=n[1]):e<0&&(-180<e?i=n[0]:e<-180&&(i=n[1]))}return i},n.getScales=function(t){var e,i=[];for(e in t){var n=t[e];(n.min||n.max||n.maxTicks||n.text||n.value)&&i.push(e)}return i},n.getSizesSVGText=function(t,e){var i=[];return e=o({font:"normal 14px Roboto",lineHeight:18},e),i.push(n.getTextWidth(t,e.font)),i.push(e.lineHeight),i},n.superposition=u,n.checkPositions=function(t,e,i,n,o){u(t,e)&&(e=o.right?e.y-t.y+t.height:e.y-e.height-t.y,e=o.text1.y+e,Math.abs(e)+o.dy>n&&(e=0<e?n+o.dy:-n+o.dy,o.changeSector=!o.changeSector),n=Math.sqrt(Math.pow(i,2)-Math.pow((e-o.dy)*i/n,2)),n=o.right?n:-n,o.changeSector&&(n*=-1,o.line*=-1,t.class=o.right?"pie-value end-text":"pie-value start-text"),o.text1.x=n,o.text1.y=e,o.text2.x=n,o.text2.y=e+16)}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(e.HeaderFilterEvent||(e.HeaderFilterEvent={})).change="change",(n=e.GridEvents||(e.GridEvents={})).scroll="scroll",n.expand="expand",n.filterChange="filterChange",n.beforeFilter="beforeFilter",n.beforeResizeStart="beforeResizeStart",n.resize="resize",n.afterResizeEnd="afterResizeEnd",n.cellClick="cellClick",n.cellRightClick="cellRightClick",n.cellMouseOver="cellMouseOver",n.cellMouseDown="cellMouseDown",n.cellDblClick="cellDblClick",n.headerCellClick="headerCellClick",n.footerCellClick="footerCellClick",n.headerCellMouseOver="headerCellMouseOver",n.footerCellMouseOver="footerCellMouseOver",n.headerCellMouseDown="headerCellMouseDown",n.footerCellMouseDown="footerCellMouseDown",n.headerCellDblClick="headerCellDblClick",n.footerCellDblClick="footerCellDblClick",n.headerCellRightClick="headerCellRightClick",n.footerCellRightClick="footerCellRightClick",n.beforeEditStart="beforeEditStart",n.afterEditStart="afterEditStart",n.beforeEditEnd="beforeEditEnd",n.afterEditEnd="afterEditEnd",n.beforeKeyDown="beforeKeyDown",n.afterKeyDown="afterKeyDown",n.beforeColumnHide="beforeColumnHide",n.afterColumnHide="afterColumnHide",n.beforeColumnShow="beforeColumnShow",n.afterColumnShow="afterColumnShow",n.beforeRowHide="beforeRowHide",n.afterRowHide="afterRowHide",n.beforeRowShow="beforeRowShow",n.afterRowShow="afterRowShow",n.beforeRowDrag="beforeRowDrag",n.dragRowStart="dragRowStart",n.dragRowOut="dragRowOut",n.dragRowIn="dragRowIn",n.canRowDrop="canRowDrop",n.cancelRowDrop="cancelRowDrop",n.beforeRowDrop="beforeRowDrop",n.afterRowDrop="afterRowDrop",n.afterRowDrag="afterRowDrag",n.beforeColumnDrag="beforeColumnDrag",n.dragColumnStart="dragColumnStart",n.dragColumnOut="dragColumnOut",n.dragColumnIn="dragColumnIn",n.canColumnDrop="canColumnDrop",n.cancelColumnDrop="cancelColumnDrop",n.beforeColumnDrop="beforeColumnDrop",n.afterColumnDrop="afterColumnDrop",n.afterColumnDrag="afterColumnDrag",n.beforeRowResize="beforeRowResize",n.afterRowResize="afterRowResize",n.beforeSort="beforeSort",n.afterSort="afterSort",(n=e.GridSystemEvents||(e.GridSystemEvents={})).cellTouchMove="cellTouchMove",n.cellTouchEnd="cellTouchEnd",n.headerCellTouchMove="headerCellTouchMove",n.headerCellTouchEnd="headerCellTouchEnd",(n=e.GridSelectionEvents||(e.GridSelectionEvents={})).beforeUnSelect="beforeUnSelect",n.afterUnSelect="afterUnSelect",n.beforeSelect="beforeSelect",n.afterSelect="afterSelect",(e=e.Split||(e.Split={})).left="leftSplit",e.right="rightSplit",e.top="topSplit",e.bottom="bottomSplit"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.on=function(t,e,i){t=t.toLowerCase();this.events[t]=this.events[t]||[],this.events[t].push({callback:e,context:i||this.context})},o.prototype.detach=function(t,e){var t=t.toLowerCase(),i=this.events[t];if(e&&i&&i.length)for(var n=i.length-1;0<=n;n--)i[n].context===e&&i.splice(n,1);else this.events[t]=[]},o.prototype.fire=function(t,e){void 0===e&&(e=[]);t=t.toLowerCase();return!this.events[t]||!this.events[t].map(function(t){return t.callback.apply(t.context,e)}).includes(!1)},o.prototype.clear=function(){this.events={}},o);function o(t){this.events={},this.context=t||this}e.EventSystem=n,e.EventsMixin=function(t){var e=new n(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(11)),n(e(38)),n(e(84)),n(e(85)),n(e(15)),n(e(126)),n(e(12)),n(e(41)),n(e(40)),n(e(127)),n(e(39)),n(e(24))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),n=i(2);e.transpose=function(t,e){for(var i=[],n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.length;r++){i[r]=i[r]||[];var s=e?e(o[r]):o[r];i[r].push(s)}return i},e.getStyleByClass=function(t,e,i,n){return e=e.querySelector("."+i),i=e,i="string"==typeof(t='<div class="'+t+'"></div>')?(i.insertAdjacentHTML("beforeend",t),i.lastChild):(i.appendChild(t),t),t={color:"rgb(0, 0, 0)"===(t=window.getComputedStyle(i)).color?n.color:o.rgbToHex(t.color),background:"rgba(0, 0, 0, 0)"===t.backgroundColor?n.background:o.rgbToHex(t.backgroundColor),fontSize:Math.round(parseFloat(t.fontSize))},e.removeChild(i),t.color===n.color&&t.background===n.background&&t.fontSize===n.fontSize?null:t},e.removeHTMLTags=function(t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t?"":(""+(null==t?"":t)).replace(/<[^>]*>/g,"").replace(/["]/g,""").trim()},e.isCssSupport=function(e,i){try{return CSS.supports(e,i)}catch(t){var n=document.createElement("div");return n.style[e]=i,n.style[e]===i}},e.isRowEmpty=function(i){if(i)return Object.keys(i).reduce(function(t,e){return"id"!==e&&!e.startsWith("$")&&t&&void 0!==i[e]&&""!==i[e]?void 0:t},!0)},e.isSortable=function(t,e){return!1!==e.sortable&&t.sortable||e.sortable},e.isAutoWidth=function(e,t){if(t)return!1!==t.autoWidth&&e.autoWidth||t.autoWidth;var i=!1;return e.columns.map(function(t){(!1!==t.autoWidth&&e.autoWidth||t.autoWidth)&&(i=!0)}),i},e.isTooltip=function(t,e){return!1!==e.tooltip&&t.tooltip||e.tooltip},e.isHtmlEnable=function(t,e){return!1!==e.htmlEnable&&t.htmlEnable||e.htmlEnable},e.getTotalWidth=function(t){return t.reduce(function(t,e){return t+(e.$width||0)},0)},e.getTotalHeight=function(t){return t.reduce(function(t,e){return t+(e.$height||0)},0)},e.scrollFixedColsAndRows=function(t){var e=n.locateNode(t,"data-dhx-widget-id").querySelector(".dhx_grid-body"),i=t.deltaY,i=t.shiftKey?[i,0]:[0,i];null!=e&&e.scrollBy.apply(e,i)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(2),i=(r.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=o.toNode(t),this._container.tagName?this._view.mount(this._container):this._container.attach&&this._container.attach(this))},r.prototype.unmount=function(){var t=this.getRootView();t&&t.node&&(t.unmount(),this._view=null)},r.prototype.getRootView=function(){return this._view},r.prototype.getRootNode=function(){return this._view&&this._view.node&&this._view.node.el},r.prototype.paint=function(){this._view&&(this._view.node||this._container)&&(this._doNotRepaint=!1,this._view.redraw())},r);function r(t,e){this.config=e||{},this._uid=null!==(e=this.config.rootId)&&void 0!==e?e:n.uid()}e.View=i,e.toViewLike=function(e){return{getRootView:function(){return e},paint:function(){return e.node&&e.redraw()},mount:function(t){return e.mount(t)}}}},function(t,e,i){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var v=i(1),O=i(7),T=i(13);function l(t,e){t[e]&&("string"==typeof t[e]?t[e]=[{text:""+t[e]}]:t[e]=t[e].map(function(t){return"string"==typeof t&&(t={text:t}),t}))}e.normalizeColumns=function(t,e){var i=t.columns,n=t.htmlEnable;void 0===e&&(e=!1);for(var o=0,r=i;o<r.length;o++){var s=r[o];s.$htmlEnable=!(!s.htmlEnable&&!n),s.$cellCss=s.$cellCss||{},l(s,"header"),l(s,"footer"),s.header.reduce(function(t,e){return t||!!e.content},!1)&&(s.$uniqueData=[]),s.minWidth&&s.minWidth<20&&(s.minWidth=20),s.maxWidth&&s.maxWidth<20&&(s.maxWidth=20);var a=s.minWidth||100;s.width&&(a=(a=s.maxWidth&&s.minWidth?s.width>=s.minWidth&&s.width<=s.maxWidth?s.width:s.width>=s.maxWidth?s.maxWidth:s.minWidth:s.maxWidth?s.width<=s.maxWidth?s.width:100<s.maxWidth?s.maxWidth:100:!s.minWidth||s.width>=s.minWidth?s.width:s.minWidth)<20?20:a),s.$width=s.$width&&!e?s.$width:a,s.$width>s.maxWidth&&(s.$width=s.maxWidth),s.$width<s.minWidth&&(s.$width=s.minWidth)}},e.countColumns=function(t,e){var n=0,o=0,r=0,s=!1,i=0,a=!1;return e.forEach(function(t){if(n=Math.max(n,t.header.length),r+=t.$width,t.footer&&(o=Math.max(o,t.footer.length),a=a||!0),!s)for(var e=0,i=t.header;e<i.length;e++)if(i[e].colspan)return void(s=!0)}),e.forEach(function(t){if(t.header.length<n)for(var e=0;e<n;e++)t.header[e]=t.header[e]||{text:""};if(a&&(t.footer=t.footer||[]),t.footer&&t.footer.length<o)for(e=0;e<o;e++)t.footer[e]=t.footer[e]||{text:""};t.header=t.header.map(function(t){return"object"!=typeof t&&(t={text:t}),t.css=t.css||"",t.text||t.css.includes("dhx_cell-empty")||(t.css+=" dhx_cell-empty"),t}),""===t.header[0].text&&i++}),t.$totalWidth=r,t.$headerLevel=n,t.$footerLevel=o,t.$colspans=s,t.$footer=a,i},e.calculatePositions=function(t,e,i,n,o){for(var r=n.columns||[],s=r.length,a=o||[],l=a.length,c=n.leftSplit?n.columns.slice(0,n.leftSplit).filter(function(t){return!t.hidden}).length:0,d=null!==(h=n.topSplit)&&void 0!==h?h:0,u=null!==(P=n.rightSplit)&&void 0!==P?P:0,h=null!==(o=n.bottomSplit)&&void 0!==o?o:0,f=0,p=i.left,g=n.$totalWidth/s,_=0;_<s;_++){if(!(0<(p-=r[_].$width)+g/2))break;f++}for(var v=0,m=i.top,y=n.$totalHeight/l,_=0;_<l;_++){if(!(0<(m-=(M=a[_]).$height)+y/2))break;v++}for(var x=0,b=0,w=-1/0,C=1/0,S=0;S<s;S++){var E=r[S];f<=S&&x<t&&!E.hidden&&(x+=E.$width,b++),E.$width>w&&(w=E.$width),E.$width<C&&(C=E.$width)}for(var D=0,k=0,O=-1/0,T=1/0,S=0;S<l;S++){var M=a[S];v<=S&&D<e&&!M.hidden&&(D+=M.$height,k++),M.$height>O&&(O=M.$height),M.$height<T&&(T=M.$height)}T=T<n.rowHeight?T:n.rowHeight;var P=Math.round(w/C),o=Math.round(O/T),i=c<=f-P?f-P:c,P=f+b+P,c=(n.leftSplit||0)-c;return{xStart:i,xEnd:P<(u=r.length-u-c)?P:u,yStart:d<=v-o?v-o:d,yEnd:(c=v+k+o)<(h=a.length-h)?c:h}},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&&v.isDefined(t)}).sort()},e.getMaxRowHeight=function(t,e,i){void 0===i&&(i={font:"20px Roboto",lineHeight:20});var n=document.createElement("canvas"),o=n.getContext("2d",{alpha:!1});o.font=i.font;for(var r={},s=e.length,a=0;a<s;a++)e[a].template?r[e[a].id]={width:e[a].$width||0,htmlEnable:e[a].$htmlEnable,template:e[a].template,cols:e[a]}:r[e[a].id]={width:e[a].$width||0,htmlEnable:e[a].$htmlEnable};for(var l=[],c=[],d=0,u=Object.entries(t);d<u.length;d++){var h,f=u[d],p=f[0],g=f[1];!r[p]||"id"===p||"height"===p||p.startsWith("$")||"string"!=typeof g&&"number"!=typeof g||(h="",h=null!==(f=r[p])&&void 0!==f&&f.template?(f=r[p].template(g,t,r[p].cols),r[p].htmlEnable?O.removeHTMLTags(f):f):"string"==typeof g?r[p].htmlEnable?O.removeHTMLTags(g):g:g.toString(),l.push(h.split("\n").length),c.push(Math.round(o.measureText(h).width/(null===(p=r[p])||void 0===p?void 0:p.width))))}var _=Math.max(v.getMaxArrayNymber(l),v.getMaxArrayNymber(c));return n.remove(),_*i.lineHeight},e.getCalculatedRowHeight=function(t,e){void 0===e&&(e={rowHeight:40,padding:8});var i=e.rowHeight<40?t:t+2*e.padding;return t<e.rowHeight?e.rowHeight:i},e.getTreeCellWidthOffset=function(t){return 20+20*t.$level-(t.$items?20:0)},e.getMaxColsWidth=function(t,e,i,n){if(void 0===i&&(i={font:"normal 14.4px Arial"}),t.length&&e.length){var o=document.createElement("canvas"),r=o.getContext("2d",{alpha:!1});r.font=i.font;for(var s={},a=e.length,l=0;l<a;l++){var c=e[l],d=c.template,u=c.$htmlEnable,h=c.format,f=c.id,p=c.type;s[f]=d&&"data"===n?{width:20,htmlEnable:u,template:d,cols:c,type:p}:{width:20,htmlEnable:u,format:"date"===p?h||"%M %d %Y":h,type:p}}for(var g=t.length,l=0;l<g;l++)for(var _=0,v=Object.entries(t[l]);_<v.length;_++){var m,y,x=v[_],b=x[0],w=x[1],C=s[b];C&&"id"!==b&&"height"!==b&&!b.startsWith("$")&&("string"==typeof w||"number"==typeof w||w instanceof Date)&&(d=C.template,m=C.cols,h=C.format,p=C.type,y=C.htmlEnable,x=C.width,C=void 0,C="function"==typeof d?(m=d(w,t[l],m),y?O.removeHTMLTags(m):m):y?O.removeHTMLTags(w):w.toString(),null!=(y=h&&"date"===p&&new Date(C))&&y.valueOf()&&(C=T.getFormattedDate(h,y)),x<(C=r.measureText(C).width)&&(s[b].width=C))}o.remove();for(var S={},E=0,D=Object.entries(s);E<D.length;E++){var k=D[E],b=k[0],w=k[1];S[b]=Math.ceil(w.width)}return S}},e.toFormat=function(s,t,a){if("boolean"==typeof s)return s;if(!s&&"number"!=typeof s)return s;switch(t){case"number":case"percent":return a=a||"#",v.isDefined(s)&&!isNaN(Number(s))?function(t){var e=a.replace(/#+/g,"#").split("#").filter(function(t){return t}),i=a.match(/0/g)&&a.match(/0/g).length;s=("percent"===t?100*Number(s):s).toString();var n,o,r=Math.trunc(Number(s));i&&(o=s.split(".")[1]||"0",n=e.find(function(t){return t.includes("0")}).replace(/0+/g,""),o=Number("0."+o).toFixed(i),1<=Number(o)&&r++,o=o.toString().split(".")[1].padEnd(i,"0"));var r=(s<0&&0===Math.abs(r)?"-":"")+r,e=e.find(function(t){return!t.includes("0")}),r=e?r.replace(/(\d)(?=(\d{3})+(\D|$))/g,"$1"+e):r;return r+=(n||"")+(o||""),"percent"===t?r+"%":r}(t):s;case"date":return a=a||"%M %d %Y","string"==typeof s?s=T.getFormattedDate(a,T.stringToDate(s,a)):"object"==typeof s&&(s=T.getFormattedDate(a,s)),s;default:return s}},e.getEditorOptions=function(t,e){return n(("function"==typeof t.options?t.options(t,e):t.options)||[],t.$customOptions||[])}},function(t,b,e){"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)},d=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(b,"__esModule",{value:!0});var C=e(0),u=e(2),c=e(9),S=e(7),E=e(4),D=e(16),k=e(56),O=e(57),p=e(1);function T(t,e,i){void 0===e&&(e=!1);var n=t.headerHeight,o=void 0===n?t.$headerLevel*t.headerRowHeight:n,n=t.footerHeight,n=void 0===n?t.$footerLevel*t.footerRowHeight:n,n=t.$totalHeight+o+n+b.BORDERS>(null!==(o=null==i?void 0:i.height)&&void 0!==o?o:t.$height),o=!n||e?0:u.getScrollbarWidth(),t=t.$totalWidth+b.BORDERS+o>(null!==(i=null==i?void 0:i.width)&&void 0!==i?i:t.$width);return{x:!t||e?0:u.getScrollbarWidth(),y:o,xState:t,yState:n}}function h(t,e){return t[e]?(e===E.Split.left?t.columns.slice(0,t.leftSplit):t.columns.slice(-t.rightSplit)).filter(function(t){return!t.hidden}):[]}function M(t,e,i){var n=t.config,o=n.columns.filter(function(t){return!t.hidden}),r=c.calculatePositions(i.width,i.height,t._scroll,n,e),s=o.slice(r.xStart,r.xEnd),a=e.slice(r.yStart,r.yEnd),l={left:h(n,E.Split.left),right:h(n,E.Split.right)},i={top:e.slice(0,n.topSplit||0),bottom:n.bottomSplit?e.slice(-n.bottomSplit):[]};return w(w({},n),{data:e,columns:n.columns,scroll:t._scroll,$positions:r,headerHeight:n.$headerLevel*n.headerRowHeight,footerHeight:n.$footerLevel*n.footerRowHeight,firstColId:o[0]&&o[0].id,events:t.events,_events:t._events,filteredColumns:o,currentColumns:s,currentRows:a,fixedColumns:l,fixedRows:i,sortBy:t._sortBy,sortDir:t._sortDir,content:t.content,gridId:t._uid,$renderFrom:"render"})}function P(t){if(t&&(t.tagName||(t=t._parent._container),t)){var e=t.currentStyle||window.getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)||0,e=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)||0;return{width:t.clientWidth-i,height:t.clientHeight-e}}}function g(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]=u.eventHandler(function(t){var e,i,n=u.locate(t,"data-dhx-id"),o=u.locate(t,"data-dhx-col-id");switch(r){case E.Split.left:case E.Split.right:e=d(l.top,l.bottom,a).find(function(t){return t.id.toString()===n}),i=d(c.left,c.right).find(function(t){return t.id===o});break;case E.Split.top:case E.Split.bottom:e=d(l.top,l.bottom).find(function(t){return(null==t?void 0:t.id.toString())===n}),i=d(c.left,c.right,s).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:{}}},w({},e)));return n}function H(t,e){var i,n=D.getCells(t),o=t.filteredColumns,r=t.$resizing,s=t.$totalHeight,a=t.$totalWidth,l=t.leftSplit,c=t.data,d=t.$positions,u=D.getSpans(t);r&&(h=p.findIndex(o,function(t){return t.id===r}),f=S.getTotalWidth(o.slice(0,h))+o[h].$width,i=C.el(".dhx_grid-resize-line",{style:{top:0,left:f,height:s}}));var h="string"==typeof(h=t.selection?t.selection.toHTML():null)?C.el("div.dhx_selection",{".innerHTML":h}):h,f=d,d=g(t);return C.el(".dhx_data-wrap",w({style:{height:s,width:a,"padding-left":e.x,"padding-top":e.y},role:"presentation"},d),[C.el(".dhx_grid_data"+(l?".dhx_grid_fixed_left":""),w(w({_flags:C.KEYED_LIST},D.getHandlers(f.yStart,f.xStart,t)),{role:"rowgroup","aria-rowcount":c.length}),n),C.el(".dhx_span-spans",w({role:"presentation"},D.getHandlers(f.yStart,f.xStart,t)),u),C.el(".dhx_grid_selection",{_ref:"selection","aria-hidden":"true"},[h,i])])}function L(t,e,i){i=i.height-b.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),void 0===i&&(i=!1);var s,n=!i&&e.$totalHeight>=t.height-e.headerRowHeight?u.getScrollbarWidth():0,a=t.width-b.BORDERS-n,l=e.columns.filter(function(t){return!t.hidden}),n=l.filter(function(t){return!t.width&&!t.$fixed&&S.isAutoWidth(e,t)}),c=S.getTotalWidth(l.filter(function(t){return t.width||t.$fixed||!S.isAutoWidth(e,t)})),d=n.reduce(function(t,e){return t+(e.gravity||1)},0);a<e.$totalWidth?(s=n.reduce(function(t,e){return t+(e.maxWidth||e.$width)},0),n.length&&n.forEach(function(t){var e=0,i=(e=o?Math.abs(a-s)*((t.gravity||1)/d):Math.abs(a-c)*((t.gravity||1)/d))<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,t.$fixed=!0):n&&(t.$width=t.maxWidth,t.$fixed=!0):t.$width=e,t.$width<20&&(t.$width=20)})):n.forEach(function(t){var e=Math.abs(a-c)*((t.gravity||1)/d),i=e<t.minWidth,n=e>t.maxWidth;i||n?i?(c+=t.$width-e,r&&(t.$fixed=!0)):n&&(t.$width=t.maxWidth,r&&(t.$fixed=!0)):t.$width=e,t.$width<20&&(t.$width=20),!o&&t.$fixed&&delete t.$fixed}),o&&I(e,t,!1,r,i)}b.BORDERS=2,b.calcScrollBarWidth=T,b.getCurrFixedCols=h,b.getRenderConfig=M,b.getElementSizes=P,b.getEvents=g,b.applyAutoWidth=I,b.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&&(x=P(t.node.parent.el),e.config.$width=x.width,e.config.$height=x.height);var r=e.config;if(!r)return C.el("div");if(!r.columns.length)return C.el(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"empty-grid"});var s=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=s.reduce(function(t,e){return t+(e.$height||0)},0);var a=P(e._container),l={width:r.$width||(r.width&&"number"==typeof r.width?r.width:null==a?void 0:a.width)||0,height:r.$height||(r.height&&"number"==typeof r.height?r.height:null==a?void 0:a.height)||0};S.isAutoWidth(r)&&(I(r,l),r.$totalWidth=S.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.$width=l.width,r.$height=l.height;var c=M(e,s,l);c.selection=n,c.datacollection=e.data;var d=D.getShifts(c);c.$scrollBarWidth=T(c);var u,h,f,p,g=S.isCssSupport("position","sticky"),_=L(c,g,l),v={wrapper:l,sticky:g,shifts:d,gridBodyHeight:_},m=O.getFixedRows(c,w(w({},v),{name:"header",position:"top"})),y=c.$footer?O.getFixedRows(c,w(w({},v),{name:"footer",position:"bottom"})):null,x=c.$totalWidth+b.BORDERS<l.width?"dhx_grid-less-width":"",a=c.$totalHeight+b.BORDERS<l.height?"dhx_grid-less-height":"",s=c.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",n=r.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";return t.node||(t=e.getScrollState(),u=t.x,h=t.y,C.awaitRedraw().then(function(){e.scroll(u,h)})),C.el(".dhx_grid.dhx_widget",w({class:(c.css||"")+(g?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent},(f=c.data,p=r.columns,t=c.editable,o=c.multiselection,{role:"grid","aria-rowcount":f.length,"aria-colcount":p.filter(function(t){return!t.hidden}).length,"aria-readonly":t?"false":"true","aria-multiselectable":o?"true":"false"})),[C.resizer(function(t){return S.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,I(r,l,!0,!0)),e.paint()}),C.el(".dhx_grid-content",{style:w({},l),onclick:i.onclick,onmouseover:i.onmouseover,class:(x+" "+a+" "+s+" "+n).trim(),role:"presentation"},[g?null:m,C.el(".dhx_grid-body",{style:{height:_,width:l.width-b.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[C.el("div",{},[g?m:null,H(c,d),g?y:null])]),k.getFixedColsHeader(c,v,E.Split.left),k.getFixedColsHeader(c,v,E.Split.right),k.getFixedCols(c,v,E.Split.left),k.getFixedCols(c,v,E.Split.right),O.getFixedDataRows(c,v,E.Split.top),O.getFixedDataRows(c,v,E.Split.bottom),g?null:y])])},b.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&&(_=P(t.node.parent.el),e.config.$width=_.width,e.config.$height=_.height);var r=e.config;if(!r)return C.el("div");if(!r.columns.length)return C.el(".dhx_grid",{"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"empty-grid"});var s,a=e.data.getRawData(0,-1,null,2);r.columns.reduce(function(t,e){return e.hidden&&t},!0)?r.$totalHeight=0:r.$totalHeight=a.reduce(function(t,e){return t+(e.$height||0)},0);var l=P(e._container);"auto"===e.config.height&&(s=function(t,e,i){var n=t._container,o=e.$headerLevel*e.headerRowHeight,r=e.$footerLevel*e.footerRowHeight,o=o+(r&&1+r)+e.$totalHeight+b.BORDERS;if(n){var r=window.getComputedStyle(n),n=r.minHeight,r=r.maxHeight;return o<=parseFloat(n)?parseFloat(n):o>=parseFloat(r)?parseFloat(r):o+T(e,!(null===(r=t.scrollView)||void 0===r||!r.config.enable),i).x}return o+(i?T(e,!(null===(t=t.scrollView)||void 0===t||!t.config.enable),i).x:0)}(e,r,_||l)),v=r.$width||(r.width&&"number"==typeof r.width?r.width:null==l?void 0:l.width),m=r.$height||(r.height&&"number"==typeof r.height?r.height:null==l?void 0:l.height);var c={width:v||0,height:("auto"===e.config.height?s:m)||0};S.isAutoWidth(r)&&(I(r,c,!0,!1,e.scrollView&&e.scrollView.config.enable),r.$totalWidth=S.getTotalWidth(r.columns.filter(function(t){return!t.hidden}))),r.$width=c.width,r.$height=c.height;var d=M(e,a,c);d.selection=n,d.datacollection=e.data;var u=D.getShifts(d);d.$scrollBarWidth=T(d,!(null===(y=e.scrollView)||void 0===y||!y.config.enable));var h,f,p=S.isCssSupport("position","sticky"),g=L(d,p,c),_={wrapper:c,sticky:p,shifts:u,gridBodyHeight:g},l=O.getFixedRows(d,w(w({},_),{name:"header",position:"top"})),v=d.$footer?O.getFixedRows(d,w(w({},_),{name:"footer",position:"bottom"})):null,m=d.$totalWidth+b.BORDERS<c.width?"dhx_grid-less-width":"",a=d.$totalHeight+b.BORDERS<c.height?"dhx_grid-less-height":"",n=d.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",y=r.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";return t.node||(t=e.getScrollState(),h=t.x,f=t.y,C.awaitRedraw().then(function(){e.scroll(h,f)})),u=C.el("div",{},[p?l:null,H(d,u),p?v:null]),C.el(".dhx_grid.dhx_widget",{class:(d.css||"")+(p?"":" dhx_grid_border")+(r.multiselection?" dhx_no-select--pointer":""),style:{height:null!=s?s:null},"data-dhx-widget-id":o,"data-dhx-root-id":r.rootParent,role:"grid","aria-rowcount":d.data.length,"aria-colcount":r.columns.filter(function(t){return!t.hidden}).length},[C.resizer(function(t){return S.isAutoWidth(e.config)&&t&&(r.$totalWidth=0,I(r,c,!0,!0)),e.paint()}),C.el(".dhx_grid-content",{style:w({},c),onclick:i.onclick,onmouseover:i.onmouseover,class:(m+" "+a+" "+n+" "+y).trim(),role:"presentation"},[p?null:l,C.el(".dhx_grid-body",{style:{height:g,width:c.width-b.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[e.scrollView&&e.scrollView.config.enable?e.scrollView.render([u]):u]),k.getFixedColsHeader(d,_,E.Split.left),k.getFixedColsHeader(d,_,E.Split.right),k.getFixedCols(d,_,E.Split.left),k.getFixedCols(d,_,E.Split.right),O.getFixedDataRows(d,_,E.Split.top),O.getFixedDataRows(d,_,E.Split.bottom),p?null:v])])}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.TreeFilterType||(e.TreeFilterType={})).all="all",n.level="level",n.leafs="leafs",(n=e.DataEvents||(e.DataEvents={})).afterAdd="afteradd",n.beforeAdd="beforeadd",n.removeAll="removeall",n.beforeRemove="beforeremove",n.afterRemove="afterremove",n.change="change",n.dataRequest="dataRequest",n.load="load",n.loadError="loaderror",n.beforeLazyLoad="beforelazyload",n.afterLazyLoad="afterlazyload",n.beforeItemLoad="beforeItemLoad",n.afterItemLoad="afterItemLoad",(n=e.DragEvents||(e.DragEvents={})).beforeDrag="beforeDrag",n.dragStart="dragStart",n.dragOut="dragOut",n.dragIn="dragIn",n.canDrop="canDrop",n.cancelDrop="cancelDrop",n.beforeDrop="beforeDrop",n.afterDrop="afterDrop",n.afterDrag="afterDrag",(e=e.DataDriver||(e.DataDriver={})).json="json",e.csv="csv",e.xml="xml"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(15),o=i(39);e.isEqualObj=function(t,e){for(var i in t)if(t[i]!==e[i]||Array.isArray(t[i]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var n=[],o=[];for(t.replace(/(\d+)|(\D+)/g,function(t,e,i){n.push([e||1/0,i||""])}),e.replace(/(\d+)|(\D+)/g,function(t,e,i){o.push([e||1/0,i||""])});n.length&&o.length;){var i=n.shift(),r=o.shift(),r=i[0]-r[0]||i[1].localeCompare(r[1]);if(r)return r}return n.length-o.length}return t-e},e.findByConf=function(t,e){if("function"==typeof e){if(e.call(this,t))return t}else if(e.by&&e.match&&t[e.by]===e.match)return t},e.isDebug=function(){var t=window.dhx;if(void 0!==t)return void 0!==t.debug&&t.debug},e.dhxWarning=function(t){console.warn(t)},e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"==e?new n.DataProxy(t):"object"==e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,e=e&&e.dataDrivers||o.dataDrivers;if(e[t])return new e[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(e)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var i,n={};for(i in t)i.startsWith("$")||e&&e[i]||(n[i]=t[i]);return n},e.isTreeCollection=function(t){return Boolean(t.getRoot)},e.hasJsonOrArrayStructure=function(t){if("object"==typeof t)return!0;if("string"!=typeof t)return!1;try{var e=JSON.parse(t);return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}catch(t){return!1}}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e(1),s=e(1);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"};var v,n={"%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 0===t&&(t=12),t<10?"0"+t:t},"%g":function(t){t=t.getHours()%12;return 0===t&&(t=12),t},"%H":function(t){t=t.getHours();return t<10?"0"+t:t},"%G":function(t){return t.getHours()},"%i":function(t){t=t.getMinutes();return t<10?"0"+t:t},"%s":function(t){t=t.getSeconds();return t<10?"0"+t:t},"%a":function(t){return 12<=t.getHours()?"pm":"am"},"%A":function(t){return 12<=t.getHours()?"PM":"AM"},"%u":function(t){return t.getMilliseconds()}},m={"%d":function(t,e,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=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=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"!==(_=h[u]).formatter&&"%a"!==_.formatter||(n=_.value);for(var f=new Date(0),p=0,g=r;p<g.length;p++){var _=g[p];if(m[_.formatter]){if(i&&!m[_.formatter](f,_.value,n,i))return!1;m[_.formatter](f,_.value,n)}}return!!i||f}}(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;a.copy=function(t){return new Date(t)},a.fromYear=function(t){return new Date(t,0,1)},a.fromYearAndMonth=function(t,e){return new Date(t,e,1)},a.weekStart=function(t,e){e=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-e)},a.monthStart=function(t){return new Date(t.getFullYear(),t.getMonth(),1)},a.yearStart=function(t){return new Date(t.getFullYear(),0,1)},a.dayStart=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},a.addDay=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},a.addMonth=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth()+e)},a.addYear=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear()+e,t.getMonth())},a.withHoursAndMinutes=function(t,e,i,n){return void 0===n||!n&&12===e||n&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,i):n&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,i):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,i)},a.setMonth=function(t,e){t.setMonth(e)},a.setYear=function(t,e){t.setFullYear(e)},a.mergeHoursAndMinutes=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes())},a.isWeekEnd=function(t){return 0===t.getDay()||6===t.getDay()},a.getTwelweYears=function(t){t=t.getFullYear(),t-=t%12;return i.range(t,11+t)},a.getDayOrdinal=function(t){return(t.valueOf()-a.yearStart(t).valueOf())/864e5},a.getWeekNumber=function(t){6!==t.getDay()&&(t=a.addDay(t,6-t.getDay()));var e=a.getDayOrdinal(t);return e-t.getDay()<0&&(t=new Date(t.getFullYear()-1,12,0),e=a.getDayOrdinal(t)),Math.floor((e-t.getDay()+10)/7)},a.isSameDay=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},a.toDateObject=function(t,e){return"string"==typeof t?o(t,e):new Date(t)},a.nullTimestampDate=new Date(0),e=a;function a(){}r.DateHelper=e},function(t,e,i){(function(o,r){!function(){o="undefined"!=typeof window?window:this;var e=1,i={},n=!1;function d(t){o.setImmediate?r(t):o.importScripts?setTimeout(t):(i[++e]=t,o.postMessage(e,"*"))}function u(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,i,n=this,r=0,s=0,o=[];(n.promise=n).resolve=function(t){return e=n.fn,i=n.er,r||(s=t,r=1,d(c)),n},n.reject=function(t){return e=n.fn,i=n.er,r||(s=t,r=2,d(c)),n},n._d=1,n.then=function(t,e){if(1!=this._d)throw TypeError();var i=new u;return i.fn=t,i.er=e,3==r?i.resolve(s):4==r?i.reject(s):o.push(i),i},n.catch=function(t){return n.then(null,t)};var a=function(t){r=t||4,o.map(function(t){3==r&&t.resolve(s)||t.reject(s)})};try{"function"==typeof t&&t(n.resolve,n.reject)}catch(t){n.reject(t)}return n;function l(t,e,i,n){if(2==r)return n();if("object"!=typeof s&&"function"!=typeof s||"function"!=typeof t)n();else try{var o=0;t.call(s,function(t){o++||(s=t,e())},function(t){o++||(s=t,i())})}catch(t){s=t,i()}}function c(){var t;try{t=s&&s.then}catch(t){return s=t,r=2,c()}l(t,function(){r=1,c()},function(){r=2,c()},function(){try{1==r&&"function"==typeof e?s=e(s):2==r&&"function"==typeof i&&(s=i(s),r=1)}catch(t){return s=t,a()}s==n?(s=TypeError(),a()):l(t,function(){a(3)},a,function(){a(1==r&&3)})})}}o.setImmediate||o.addEventListener("message",function(t){if(t.source==o)if(n)d(i[t.data]);else{n=!0;try{i[t.data]()}catch(t){}delete i[t.data],n=!1}}),u.resolve=function(e){if(1!=this._d)throw TypeError();return e instanceof u?e:new u(function(t){t(e)})},u.reject=function(i){if(1!=this._d)throw TypeError();return new u(function(t,e){e(i)})},u.all=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return u.reject(TypeError());var o=new u;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){return n[e]=t,i(),t},i)}))}(),o},u.race=function(n){if(1!=this._d)throw TypeError();if(!(n instanceof Array))return u.reject(TypeError());if(0==n.length)return new u;var o=new u;return function i(t,e){return e?o.resolve(e):t?o.reject(t):(0==n.reduce(function(t,e){return e&&e.then?t+1:t},0)&&o.resolve(n),void n.map(function(t,e){t&&t.then&&t.then(function(t){i(null,t)},i)}))}(),o},u._d=1,t.exports=u}()}).call(this,i(23),i(75).setImmediate)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(24),i=(o.prototype.updateUrl=function(t,e){for(var i in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[i]=e[i],this.url+=i+"="+encodeURIComponent(e[i])+"&";this.url=this.url.slice(0,-1)},o.prototype.load=function(){return n.ajax.get(this.url,null,{responseType:"text"})},o.prototype.save=function(t,e){switch(e){case"delete":return n.ajax.delete(this.url,t);case"update":return n.ajax.put(this.url,t);case"insert":default:return n.ajax.post(this.url,t)}},o);function o(t,e){this.url=this._url=t,this.config=e}e.DataProxy=i},function(t,e,i){"use strict";var y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var Y=i(1),X=i(0),q=i(21),U=i(7),K=i(4),n=i(88),c=i(2),J=i(9),Z=i(10);function o(t,e,i,n,o){e=c.locateNodeByClassName(o.target,"dhx_grid-fixed-cols-wrap")?0:e;var r,s,a=c.locateNodeByClassName(o.target,"dhx_grid-cell"),l=c.locateNodeByClassName(o.target,"dhx_span-cell");(a||l)&&n&&(e=a?a.parentNode:l,r=(a||l).getAttribute("data-dhx-col-id"),l=i.filteredColumns.find(function(t){return t.id===r}),s=e.getAttribute("data-dhx-id"),e=(i.$data||i.data).find(function(t){return t.id.toString()===s}),(n.toLocaleLowerCase().includes("touch")?i._events:i.events).fire(n,[e,l,o]))}function m(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-"+i.align:"dhx_align-left",a="";r&&(a="dhx_tree-cell "+(i.$cellCss[e.id]||"")+" "+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":"")));o=J.getTreeCellWidthOffset(e);return X.el(".dhx_grid-cell",y({class:a,style:{width:i.$width,height:e.$height,padding:e.$items?0:"0 0 0 "+o+"px"},"data-dhx-col-id":i.id},{role:"gridcell","aria-colindex":1}),r?[e.$items?X.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 "+(4+o)+"px":"0 0 0 4px"}})):null,X.el(".dhx_tree-cell",{class:s+(n.autoHeight?" dhx_tree-cell_auto-height":"")},[t])]:null)}function Q(t,e,i){return n.getEditor(t,e,i)}function tt(t){var e=t.$scrollBarWidth,i=t.$headerLevel*t.headerRowHeight,n=t.$footerLevel*t.footerRowHeight,o=t.$totalWidth-t.$width+Z.BORDERS+e.y,e=t.$totalHeight-t.$height+i+n+Z.BORDERS+e.x;return{x:0<o?o-t.scroll.left:0,y:0<e?e-t.scroll.top:0}}e.getHandlers=function(t,e,i){return{onclick:[o,t,e,i,K.GridEvents.cellClick],onmouseover:[o,t,e,i,K.GridEvents.cellMouseOver],onmousedown:[o,t,e,i,K.GridEvents.cellMouseDown],ondblclick:[o,t,e,i,K.GridEvents.cellDblClick],oncontextmenu:[o,t,e,i,K.GridEvents.cellRightClick],ontouchstart:[o,t,e,i,K.GridEvents.cellMouseDown],ontouchmove:[o,t,e,i,K.GridSystemEvents.cellTouchMove],ontouchend:[o,t,e,i,K.GridSystemEvents.cellTouchEnd]}},e.getTreeCell=m,e.getCells=function(p){if(!p.data||!p.filteredColumns)return[];var o,g=p.$positions,r=p.data?p.data.slice(g.yStart,g.yEnd):[],s=p.filteredColumns.slice(g.xStart,g.xEnd),_=p.selection.getCell(),v=!0,t=document.querySelector(".dhx_drag-ghost");return!t||(t=Array.from(t.querySelectorAll(".dhx_grid-row")).map(function(t){return Number(t.getAttribute("aria-rowindex"))-1})).length&&(o=t.map(function(t){return p.data[t]}).filter(function(e){return e&&!r.find(function(t){return t.id===e.id})}),r.push.apply(r,o)),r.map(function(f,t){var e=null==o?void 0:o.some(function(t){return t.id===f.id}),i=r.length-1===t,n="";return p.rowCss&&(n=p.rowCss(f)),f.$css&&(n+=f.$css),X.el(".dhx_grid-row",y({style:{height:i?f.$height+1:f.$height,display:e?"none":null},"data-dhx-id":f.id,class:n,_key:f.id,_flags:X.KEYED_LIST},e?{}:{role:"row","aria-rowindex":g.yStart+t+1}),f.$customRender?[f.$customRender(f,p)]:s.map(function(t,e){var i;if(!t.hidden){var n=f[t.id],o=J.getEditorOptions(t,f);(t.editable||p.editable&&!1!==t.editable)&&("select"===t.editorType||"combobox"===t.editorType||"multiselect"===t.editorType)&&o&&(n=(n="string"==typeof n&&"multiselect"===t.editorType?n.split(",").map(function(t){return t.trim()}):[null==n?void 0:n.toString()]).map(function(e){var t;return null!==(t=null===(t=o.find(function(t){return t.id&&t.id.toString()===e}))||void 0===t?void 0:t.value)&&void 0!==t?t:e}).join(", "));var r=J.toFormat(n,t.type,t.format),s=function(t,e,i,n){return y({role:"gridcell","aria-colindex":e,"aria-readonly":n?"false":"true"},(e=t,n=f,t={tabindex:-1},_?_.row.id===n.id&&_.column.id===e.id&&(t.tabindex=0):v&&(t.tabindex=0,t.onfocus=function(t){var e;p.selection&&!_&&(e=t.target.parentNode.getAttribute("data-dhx-id"),(t=t.target.getAttribute("data-dhx-col-id"))&&e&&(p.selection.setCell(e,t),_=p.selection.getCell()))}),v=!1,t))},a=t.template?t.template(r,f,t):"boolean"!=typeof(i=r)&&"boolean"!==t.type||"string"==typeof i?i||0===i?i:"":""+Boolean(i);"string"==typeof a&&(a=U.isHtmlEnable(p,t)?X.el("div.dhx_grid-cell__content",y({".innerHTML":a},{role:"button","aria-label":"Edit content"})):a);var l=((t.$cellCss&&t.$cellCss[f.id]||"")+" dhx_"+t.type+"-cell").replace(/\s+/g," "),c=t.$width,d=p.$editable&&p.$editable.row===f.id&&p.$editable.col===t.id&&!p.$editable.isSpan,u=p.leftSplit,h=p.filteredColumns;return((d||"boolean"===t.type&&(p.editable&&(null===(n=t.editable)||void 0===n||n)||!p.editable&&t.editable))&&(a=Q(f,t,p).toHTML(),l+=" dhx_grid-cell__editable",u===h.indexOf(t)+1&&--c),"tree"===p.type&&p.firstColId===t.id)?m(a,f,t,p):(p.dragMode&&!d&&(l+=(f.$drophere?" dhx_grid-cell--drophere":"")+(f.$dragtarget?" dhx_grid-cell--dragtarget":"")),t.align&&(l+=" dhx_align-"+t.align),U.isHtmlEnable(p,t)&&(l+=" dhx_grid-cell__content_html-enable"),p.autoHeight&&(l+=" dhx_grid-cell__content_auto-height"),X.el(".dhx_grid-cell",y({class:l,style:{width:c,height:f.$height+"px"},_key:t.id,"data-dhx-col-id":t.id},s(t,g.xStart+e+1,0,p.editable)),[a]))}}))})},e.getSpans=function(j,F){var $,N=[],V=j.filteredColumns,W=j.data,t=j.spans,z=j.bottomSplit;if(!V.length||!t)return null;for(var B=j.fixedColumns.right.length,G=t.filter(function(t){return null===(t=t.$renderFrom)||void 0===t?void 0:t.includes(j.$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<G.length;e++)!function(t){var e=G[t].row,i=G[t].column,n=G[t].rowspan||1,o=G[t].colspan||1,r=G[t].text,s=G[t].css,a=G[t].$markCss,l=G[t].$type,c=F===K.Split.bottom&&j.$renderFrom.endsWith("FixedCols"),d=c?j.$data:W,u=Y.findIndex(V,function(t){return""+t.id==""+i}),h=Y.findIndex(d,function(t){return""+t.id==""+e});if(u<0||h<0)return;if(c){var f=j.$data[h+n-1];if(!W.find(function(t){return t.id===(null==f?void 0:f.id)}))return}var p=V[u],g=d[h];if(p.hidden)return;var _=void 0;_=Y.isDefined(r)?r.toString():void 0===g[i]?"":J.toFormat(g[i],p.type,p.format);_=(p.template||function(t,e,i){return t||0===t?t:""})(_,g,p);var v=U.isHtmlEnable(j,p);_="string"==typeof _?X.el("div.dhx_span-cell-content",{".innerHTML":v?_:null},v?null:_):_;var m=void 0;m="bottomFixedRows"===j.$renderFrom||c?h<(A=d.length-z)?-U.getTotalHeight(d.slice(h,A)):U.getTotalHeight(d.slice(A,h)):U.getTotalHeight(d.slice(0,h))-(F?0:1);var y=0;if("rightFixedCols"===j.$renderFrom)var x=V.length-j.fixedColumns.right.length,y=u<x?-U.getTotalWidth(V.slice(u,x)):U.getTotalWidth(V.slice(x,u));else for(var b=u-1;0<=b;b--)y+=V[b].$width;var w=g.$items&&0===u,C=u===V.length-1,S=u+o===V.length,E=B&&u===V.length-B,D=F===K.Split.bottom&&j.fixedRows.bottom.find(function(t){return t.id===e}),k=z&&h+n>d.length-z,O=B&&u+o===V.length-B,T=p.header[0].text?" dhx_span-cell":" dhx_span-cell dhx_span-cell--title";T+=w?" dhx_span-expand-cell":"",T+=a?" "+a:"",T+=s?" "+s:"",T+=0===h?" dhx_span-first-row":"",T+=h+n===d.length?" dhx_grid__span_bottom--last-row":"",T+=0===u||E?" dhx_span-first-col":"",T+=C||S?" dhx_span-last-col":"",T+=1===o?" dhx_span-"+(p.type||"string")+"-cell":" dhx_span-string-cell",T+=p.align?" dhx_align-"+p.align:" dhx_"+l+"-cell",T+=D?" dhx_grid__span_bottom--all-fixed":"",T+=k?" dhx_grid__span_bottom--part-fixed":"",T+=O?" dhx_grid__span_right--before-fixed":"";r=Y.findIndex(j.columns,function(t){return t.id===i}),v=1<o?q.getWidth(j.columns,o,r):p.$width,c=void 0;1<n?(c=q.getHeight(d,n,h),F!==K.Split.top||!j.$renderFrom.endsWith("FixedCols")||0<(M=h+n-d.length)&&(P=j.fixedRows.top.length,c+=U.getTotalHeight(j.$data.slice(P,P+M)))):c=g.$height;var M,P,H,L,I,R,A=null;((null===($=j.$editable)||void 0===$?void 0:$.isSpan)&&j.$editable.row===e&&j.$editable.col===i||"boolean"===p.type&&(j.editable&&(null===($=p.editable)||void 0===$||$)||!j.editable&&p.editable))&&(x=j.topSplit,s=(a=j.fixedColumns.left.length)&&u+o<=a||B&&u>=V.length-B,E=h<(x||0)||h+n>d.length-(z||0),C=x&&h+n<=x||z&&h>=d.length-z,S=u<(a||0)||u+o>V.length-(B||0),("render"===j.$renderFrom||s&&!E||C&&!S)&&(l=j.$height,D=j.$scrollBarWidth,k=j.scroll,O=j.fixedRows,r=j.fixedColumns,P=G[t].text,M=0,_=Q(g,p,j).toHTML(P),T+=" dhx_span__editable",C||(x=j.$headerLevel*j.headerRowHeight,E=j.$footerLevel*j.footerRowHeight,S=U.getTotalHeight(O.top),t=U.getTotalHeight(O.bottom),x=(P=D.yState?l-x-E-D.x-Z.BORDERS:j.$totalHeight)-t<(l=m+c-k.top),(E=m-S<k.top)&&x&&D.xState&&(M=1),m=E?k.top+S-(S&&!s?1:0):m,c=x?P-m-t+k.top-M:E?l-S:c),"render"===j.$renderFrom&&(A=12,r.left.find(function(t){return t.id===i})&&(y=k.left+U.getTotalWidth(r.left.slice(0,u)),s||(L=U.getTotalWidth(r.left.slice(u,a)),v=v-k.left>L?v-k.left:L)),O.top.find(function(t){return t.id===e})&&(m=k.top+U.getTotalHeight(O.top.slice(0,h)),C||(I=U.getTotalHeight(j.fixedRows.top.slice(h,j.topSplit)),c=0<c?I+c-M:I)),r.right.find(function(t){return t===V[V.indexOf(p)+o-1]})&&(R=V.length,H=tt(j),L=(k=R-V.indexOf(p)-o)?U.getTotalWidth(r.right.slice(0,-k)):U.getTotalWidth(r.right),r=U.getTotalWidth(V.slice(u,R-B)),y=H.x>r?y-H.x+r:y,s||(v=H.x<r?v-H.x-1:L-1)),O.bottom.find(function(t){return t===d[d.indexOf(g)+n-1]})&&(R=d.length,H=tt(j),I=(L=R-d.indexOf(g)-n)?U.getTotalHeight(O.bottom.slice(0,-L)):U.getTotalHeight(j.fixedRows.bottom),R=U.getTotalHeight(d.slice(h,R-z)),m=H.y>R?m-H.y+R:m,C||(c=H.y<R?I+c-M-(L?-1:M?0:1):I-(L?-1:1)))),a===u+1&&--v,u===V.length-B&&(y+=1,--v))),N.push(X.el("div",{class:T,style:{width:v,height:c,top:m,left:y,zIndex:A},"data-dhx-col-id":i,"data-dhx-id":e,"aria-hidden":"true"},[w?X.el(".dhx_span-expand-cell-icon",{class:g.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":g.id,role:"button","aria-label":g.$opened?"Collapse group":"Expand group",style:{padding:"0 0 0 "+(4+J.getTreeCellWidthOffset(g))+"px"}}):null,_]))}(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:U.getTotalWidth(e),y:U.getTotalHeight(t)}},e.normalizeSpan=function(t,e){var i=void 0===(v=e.topSplit)?0:v,n=void 0===(m=e.bottomSplit)?0:m,o=e.data,r=e.columns,s=Z.getCurrFixedCols(e,K.Split.left).length,a=Z.getCurrFixedCols(e,K.Split.right).length,l=t.column,c=t.row,d=t.colspan,u=t.rowspan,h=r.findIndex(function(t){return t.id==l}),f=Y.isDefined(t.text)?"string":r[h].type,p=o.findIndex(function(t){return t.id==c}),g=h+(d?d-1:0),_=p+(u?u-1:0),v=[],m=h<s,e=p<i,d=g>=r.length-a,u=_>=o.length-n;return s<=g&&i<=_&&h<r.length-a&&p<o.length-n&&v.push("render"),m&&v.push("leftFixedCols"),d&&v.push("rightFixedCols"),!e||m||d?e&&!v.includes("render")&&v.push("render"):v.push("topFixedRows"),!u||m||d?u&&!v.includes("render")&&v.push("render"):v.push("bottomFixedRows"),y(y({},t),{$renderFrom:v,$type:f})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ChartEvents||(e.ChartEvents={})).toggleSeries="toggleSeries",e.chartMouseMove="chartMouseMove",e.chartMouseLeave="chartMouseLeave",e.resize="resize",e.serieClick="serieClick",e.seriaMouseMove="seriaMouseMove",e.seriaMouseLeave="seriaMouseLeave"},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var v=i(0),m=i(3);function y(t,e,i,n){return n&&(t+=2*e*Math.asin(.5*n/e)/(2*Math.PI*e)),[Math.cos(2*Math.PI*t)*e,Math.sin(2*Math.PI*t)*i]}function r(t,e,i){t.setAttribute("transform","translate("+e+", "+i+") scale(1.05)"),t.classList.add("dhx_pie-transform-delay")}function n(t){t.setAttribute("transform","translate(0, 0)"),t.classList.remove("dhx_pie-transform-delay")}function x(t,e){return t-1e-6<e&&e<t+1e-6}function b(t,e){return"M"+-t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+t+",0A"+t+","+t+" 0 "+(e?0:1)+" 1 "+-t+",0"}e.getCoordinates=y,e.shiftCoordinates=function(t,e,i){return[t[0]+e,t[1]+i]},e.pieLikeHandlers={onmouseover:function(e,i,t,n){var o=n.parent.attrs.id;r(n.el,e,i),n.parent.body.forEach(function(t){t.attrs.id!==o+"-text"&&t.attrs.id!==o+"-connector"||r(t.el,e,i)})},onmouseout:function(t,e){var i=e.parent.attrs.id;n(e.el),e.parent.body.forEach(function(t){t.attrs.id!==i+"-text"&&t.attrs.id!==i+"-connector"||n(t.el)})}},e.radarScale=function(t,e,i){var n,a=e<i?e/2:i/2,l=1/t.scales.length,c=.5<l?1:0,d=[],o=(n=a,o="#fafafa",v.sv("circle",{cx:0,cy:0,r:n,fill:o,stroke:"none",class:"background-circle"}));d.push(o);for(var u=-.25,r=[],s=t.axis,h="radar-grid "+(t.zebra?"zebra":""),f=1;f<s.length;f+=2){var p=a*s[f-1],g=a*s[f],g=b(p,!0)+" "+b(g,!1),g=v.sv("path",{d:g,fill:"none",stroke:"black",class:h});r.push(g)}return d.push(r),t.scales.forEach(function(t){var e=y(u,a,a),i=e[0],n=e[1],o=u+l,r=y(o,a,a),e=r[0],r=r[1],e="M "+i+" "+n+" A "+a+" "+a+" 0 "+c+" 1 "+e+" "+r+" L 0 0",r=v.sv("path",{d:e,stroke:"black",fill:"none",class:"radar-scale"});d.push(r);var s,e=[8,8],r=e[0],e=e[1],r=x(u,0)||x(u,.5)?0:u<0||.5<u?-r:r,e=x(u,-.25)||x(u,.25)?0:u<-.25||.25<u?-e:e;t=x(u,-.25)||x(u,.25)?(s=x(u,-.25)?m.verticalTopText:m.verticalBottomText,v.sv("text",{x:i+e,y:n+r,class:"scale-text"},[s(t)])):(s=-.25<=u&&u<=.25?"start-text scale-text":"end-text scale-text",v.sv("text",{x:i+e,y:n+r,class:s},[m.verticalCenteredText(t)])),d.push(t),u=o}),u=-.25,t.realAxis&&(o=t.realAxis.map(function(t,e){var i=y(-.25,a*s[e],a*s[e]),e=i[0],i=i[1];return v.sv("text",{x:e,y:i,dx:-10,class:"radar-axis-text"},[m.verticalCenteredText(t.toString())])}),d.push(o)),v.sv("g",_({transform:"translate("+e/2+", "+i/2+")"},{"aria-label":"x-axis"+((t=t.attribute)?", "+t:"")}),d)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(1),r=i(17),s=i(3),n=i(63),a=i(13),i=(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]);i[0]>s&&(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);e[0]>r&&(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){if((this._data.getItem(e)||"calendarHeatMap"===this.config.type)&&this.config.tooltip){var t,i=void 0,n=void 0;return"calendarHeatMap"===this.config.type?(n=this._points.find(function(t){return t[2]===e.toString()}))&&((t=new Date).setTime(n[0]),n=[a.getFormattedDate(this.config.dateFormat,t),n[1]]):i=this._defaultLocator(this._data.getItem(e)),this.config.tooltipTemplate?this.config.tooltipTemplate(i||n):i?i[0]:n[1]+", <br>"+n[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 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 n.getShadeHelper(t,e)},l);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||o.uid(),this._events=i,this._points=[],this._setDefaults(e)}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),i=(o.prototype.getFocusId=function(){return this._activeWidgetId},o.prototype.setFocusId=function(t){this._activeWidgetId=t},o);function o(){var e=this;this._initHandler=function(t){return e._activeWidgetId=n.locate(t,"data-dhx-widget-id")},this._removeFocusClass=function(t){var e=document.body.classList;e.contains("utilityfocus")&&e.remove("utilityfocus")},this._addFocusClass=function(t){var e=document.body.classList;"Tab"===t.code?e.contains("utilityfocus")||e.add("utilityfocus"):e.contains("utilityfocus")&&e.remove("utilityfocus")},document.addEventListener("focusin",this._initHandler),document.addEventListener("pointerdown",this._initHandler),document.addEventListener("mousedown",this._removeFocusClass),document.addEventListener("keydown",this._addFocusClass)}e.focusManager=new i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),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}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SelectionEvents||(e.SelectionEvents={})).beforeUnSelect="beforeunselect",e.afterUnSelect="afterunselect",e.beforeSelect="beforeselect",e.afterSelect="afterselect"},function(t,e){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},function(t,e,i){"use strict";(function(c){Object.defineProperty(e,"__esModule",{value:!0});var d=i(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.includes("?")?"&":"?",o+=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=u.toDataDriver(d.DataDriver.xml);return i?e.text().then(function(t){return i.toJsonObject(t)}):e.text();default:return e.text()}})):new c(function(t,e){var i,n=new XMLHttpRequest;for(i in n.onload=function(){200<=n.status&&n.status<300?("raw"===a&&t({url:n.responseURL,headers:n.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce(function(t,e){e=e.split(": ");return t[e[0]]=e[1],t},{}),body:n.response}),204===n.status?t():t(function(t,e){switch(e){case"json":return JSON.parse(t);case"text":return t;case"xml":var i=u.toDataDriver(d.DataDriver.xml);return i?i.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"};default:return t}}(n.responseText,a||h(n.getResponseHeader("Content-Type"))))):e({status:n.status,statusText:n.statusText})},n.onerror=function(){e({status:n.status,statusText:n.statusText,message:n.responseText})},n.open(s,o),l)n.setRequestHeader(i,l[i]);switch(s){case"POST":case"DELETE":case"PUT":n.send(void 0!==r?JSON.stringify(r):"");break;case"GET":default:n.send()}})}e.ajax={get:function(t,e,i){return n(t,e,"GET",i&&i.headers,void 0!==i?i.responseType:void 0)},post:function(t,e,i){return n(t,e,"POST",i&&i.headers,void 0!==i?i.responseType:void 0)},put:function(t,e,i){return n(t,e,"PUT",i&&i.headers,void 0!==i?i.responseType:void 0)},delete:function(t,e,i){return n(t,e,"DELETE",i&&i.headers,void 0!==i?i.responseType:void 0)}}}).call(this,i(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!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"},i=(n.prototype.destructor=function(){document.removeEventListener("keydown",this._initHandler),this.removeHotKey()},n.prototype.addHotKey=function(t,e){t=a(t);this._keysStorage[t]||(this._keysStorage[t]=[]),this._keysStorage[t].push({handler:e})},n.prototype.removeHotKey=function(t,i){var n,o,r=this;t?t&&i?(n=a(t),o=function(t){return t.toString().replace(/\n/g,"").replace(/\s/g,"")},this._keysStorage[n].forEach(function(t,e){o(t.handler)===o(i)&&(delete r._keysStorage[n][e],r._keysStorage[n]=r._keysStorage[n].filter(function(t){return t}))})):(t=a(t),delete this._keysStorage[t]):this._keysStorage={}},n.prototype.exist=function(t){t=a(t);return!!this._keysStorage[t]},n.prototype.getKeyStorageLength=function(){return Object.keys(this._keysStorage).length},n);function n(t){var o=this;this._keysStorage={},this._initHandler=function(t){var e;e=48<=t.which&&t.which<=57||65<=t.which&&t.which<=90?String.fromCharCode(t.which):(e=32===t.which?t.code:t.key,s.isIE()&&l[e]||e);var i=o._keysStorage[(t.ctrlKey||t.metaKey?4:0)+(t.shiftKey?2:0)+(t.altKey?1:0)+(e&&e.toLowerCase())];if(i)for(var n=0;n<i.length;n++){if(o._beforeCall&&!1===o._beforeCall(t,r.focusManager.getFocusId()))return;i[n].handler(t)}},t&&(this._beforeCall=t),document.addEventListener("keydown",this._initHandler)}e.KeyManager=i},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(27)),n(e(97)),n(e(28))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(28),a=i(44),l=i(0),o=(r=a.Cell,o(c,r),c.prototype.destructor=function(){for(var t=0,e=this._all;t<e.length;t++){var i=e[t];this._all[i].destructor()}this.config=this._cells=this._root=this._xLayout=this._isViewLayout=null,this._all={},this.unmount()},c.prototype.toVDOM=function(){if(this._isViewLayout){var t=[this.getCell(this.config.activeView).toVDOM()];return r.prototype.toVDOM.call(this,t)}var e=[];return this._inheritTypes(),this._cells.forEach(function(t){t=t.toVDOM();Array.isArray(t)?e=e.concat(t):e.push(t)}),r.prototype.toVDOM.call(this,e)},c.prototype.removeCell=function(e){if(this.events.fire(s.LayoutEvents.beforeRemove,[e])){var t=this.config.parent||this;if(t!==this)return t.removeCell(e);t=this.getCell(e);t&&(t=t.getParent(),delete this._all[e],t._cells=t._cells.filter(function(t){return t.id!=e}),t.paint()),this.events.fire(s.LayoutEvents.afterRemove,[e])}},c.prototype.addCell=function(t,e){var i;void 0===e&&(e=-1),this.events.fire(s.LayoutEvents.beforeAdd,[t.id])&&(i=this._createCell(t),e<0&&(e=this._cells.length+e+1),this._cells.splice(e,0,i),this.paint(),this.events.fire(s.LayoutEvents.afterAdd,[t.id]))},c.prototype.getId=function(t){return t<0&&(t=this._cells.length+t),this._cells[t]?this._cells[t].id:void 0},c.prototype.getRefs=function(t){return this._root.getRootView().refs[t]},c.prototype.getCell=function(t){var e;return null===(e=this._root)||void 0===e?void 0:e._all[t]},c.prototype.forEach=function(t,e,i){if(void 0===i&&(i=1/0),this._haveCells(e)&&!(i<1))for(var n=(e?this._root._all[e]:this._root)._cells,o=0;o<n.length;o++){var r=n[o];t.call(this,r,o,n),this._haveCells(r.id)&&r.forEach(t,r.id,--i)}},c.prototype.cell=function(t){return this.getCell(t)},c.prototype.progressShow=function(){this._progress=!0,this.paint()},c.prototype.progressHide=function(){this._progress=!1,this.paint()},c.prototype._getCss=function(t){var e=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",i=this.config.align?" "+e+"--"+this.config.align:"";if(t)return e+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:"");var n=this.config.parent?r.prototype._getCss.call(this):"dhx_widget dhx_layout",t=this.config.parent?"":" dhx_layout-cell";return n+(this.config.full?t:" "+e)+i},c.prototype._parseConfig=function(){var e=this,t=this.config,i=t.rows||t.cols||t.views||[];this._xLayout=!t.rows,this._cells=i.map(function(t){return e._createCell(t)})},c.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new c(this,t)):new a.Cell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},c.prototype._haveCells=function(t){if(t){t=this._root._all[t];return t._cells&&0<t._cells.length}return 0<Object.keys(this._all).length},c.prototype._inheritTypes=function(t){var e,i=this;void 0===t&&(t=this._cells),Array.isArray(t)?t.forEach(function(t){return i._inheritTypes(t)}):((e=t.config).rows||e.cols)&&(t=t.getParent(),!e.type&&t&&(t.config.type?e.type=t.config.type:this._inheritTypes(t)))},c);function c(t,e){var i=r.call(this,t,e)||this;return i._root=i.config.parent||i,i._all={},i._parseConfig(),i._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=l.create({render:function(){return i.toVDOM()}},i),i.mount(t,e)),i}e.Layout=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.LayoutEvents||(e.LayoutEvents={})).beforeShow="beforeShow",e.afterShow="afterShow",e.beforeHide="beforeHide",e.afterHide="afterHide",e.beforeResizeStart="beforeResizeStart",e.resize="resize",e.afterResizeEnd="afterResizeEnd",e.beforeAdd="beforeAdd",e.afterAdd="afterAdd",e.beforeRemove="beforeRemove",e.afterRemove="afterRemove",e.beforeCollapse="beforeCollapse",e.afterCollapse="afterCollapse",e.beforeExpand="beforeExpand",e.afterExpand="afterExpand"},function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e(1),o=e(0),v=e(2);i.scrollViewConfig={enable:!1,autoHide:!0,timeout:1e3,scrollHandler:function(){}};n.prototype.enable=function(){this.config.enable=!0,this._getRootView().redraw()},n.prototype.disable=function(){this.config.enable=!1,this._getRootView().redraw()},n.prototype.render=function(t,e){var i=this;if(void 0===e&&(e=""),!this.config.enable||!t.length)return t;e&&(this._uid=e);var n=this.config.enable?[o.el(".y-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-y-area-"+e:"scroll-y-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"6px",height:"100%",right:0,top:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-y-runner-"+e:"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),o.el(".x-scroll",((n={})[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-x-area-"+e:"scroll-x-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"100%",height:"6px",left:0,bottom:0,position:"absolute"},n),[o.el(".scroll-runner",{_ref:e?"scroll-x-runner-"+e:"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return o.el(".scroll-view-wrapper",[o.el(".scroll-view",{onscroll:this._handlers.onscroll,_ref:e?"scroll-view-"+e:"scroll-view",_hooks:{didInsert:function(){i.update()},didRecycle:function(){i.update()}},style:{width:"calc(100% + "+this._scrollWidth+"px)",height:"calc(100% + "+this._scrollHeight+"px)"}},t)].concat(n))},n.prototype.update=function(){var t,e,i,n,o,r=this._getRefs();r&&(o=r.area,t=r.areaX,e=r.areaY,i=r.runnerY,n=r.runnerX,this._visibleYArea=o.clientHeight/o.scrollHeight,this._visibleXArea=o.clientWidth/o.scrollWidth,this._scrollYTop=o.scrollTop,this._scrollXLeft=o.scrollLeft,this._runnerYTop=this._scrollYTop*this._visibleYArea,this._runnerXLeft=this._scrollXLeft*this._visibleXArea,this._runnerHeight=this._visibleYArea<1?o.clientHeight*this._visibleYArea:0,this._runnerWidth=this._visibleXArea<1?o.clientWidth*this._visibleXArea:0,r=i.style.top,o=n.style.left,i.style.opacity=1,i.style.top=this._runnerYTop+"px",i.style.height=this._runnerHeight+"px",n.style.opacity=1,n.style.left=this._runnerXLeft+"px",n.style.width=this._runnerWidth+"px",r!==i.style.top&&(e.style.opacity=.9,e.style.width="10px"),o!==n.style.left&&(t.style.opacity=.9,t.style.height="10px"),this.config.autoHide?this._autoHideFunc||(this._autoHideFunc=s.debounce(function(){i.style.opacity=0,e.style.width="6px",n.style.opacity=0,t.style.height="6px"},this.config.timeout)):this._autoHideFunc=s.debounce(function(){e.style.width="6px",t.style.height="6px"},this.config.timeout),this._autoHideFunc())},n.prototype._getRefs=function(){var t=this._getRootView(),e=!(!t.refs["scroll-view"]||!t.refs["scroll-x-runner"]&&!t.refs["scroll-y-runner"]),i=!(!this._uid||!t.refs["scroll-view-"+this._uid]||!t.refs["scroll-x-runner-"+this._uid]&&!t.refs["scroll-y-runner-"+this._uid]);if(t.refs)return e?{area:t.refs["scroll-view"].el,areaY:t.refs["scroll-y-area"].el,areaX:t.refs["scroll-x-area"].el,runnerY:t.refs["scroll-y-runner"].el,runnerX:t.refs["scroll-x-runner"].el}:i?{area:t.refs["scroll-view-"+this._uid].el,areaY:t.refs["scroll-y-area-"+this._uid].el,areaX:t.refs["scroll-x-area-"+this._uid].el,runnerY:t.refs["scroll-y-runner-"+this._uid].el,runnerX:t.refs["scroll-x-runner-"+this._uid].el}:void 0},e=n;function n(t,e){var _=this;void 0===e&&(e={}),this.config=s.extend({enable:i.scrollViewConfig.enable,autoHide:i.scrollViewConfig.autoHide,timeout:i.scrollViewConfig.timeout,scrollHandler:i.scrollViewConfig.scrollHandler},e),this._wheelName=v.isIE()?"onmousewheel":"onwheel",this._getRootView=t,this._scrollYTop=this._scrollXLeft=this._runnerYTop=this._runnerXLeft=this._runnerHeight=this._runnerWidth=0,this._visibleYArea=this._visibleXArea=1,this._scrollWidth=v.getScrollbarWidth(),this._scrollHeight=v.getScrollbarHeight(),this._handlers=((t={onscroll:function(t){_.config.scrollHandler(t),_.update()}})[this._wheelName]=function(t){var e=!!v.locateNodeByClassName(t.target,"y-scroll");t.preventDefault();var i,n=40*(0<(t.deltaY||-t.wheelDelta)?1:-1),t=_._getRefs().area;e?(e=t.scrollHeight-_._runnerHeight,i=_._scrollYTop+n,t.scrollTop=i<0?0:e<i?e:i):(i=t.scrollWidth-_._runnerWidth,n=_._scrollXLeft+n,t.scrollLeft=n<0?0:i<n?i:n),_.update()},t.onmousedownRunner=function(t){t.preventDefault();function e(t){var e;i?(e=t.pageY-d,o.scrollTop=e<=a?0:l<e?c:(e-a)/_._visibleYArea):(t=t.pageX-p,o.scrollLeft=t<=u?0:h<t?f:(t-u)/_._visibleXArea),_.update()}var i=!!v.locateNodeByClassName(t.target,"y-scroll"),n=_._getRefs(),o=n.area,r=n.runnerY,s=n.runnerX,n=o.getBoundingClientRect(),a=n.top+window.pageYOffset,l=n.bottom+window.pageYOffset,c=o.scrollHeight-_._runnerHeight,d=t.pageY-r.getBoundingClientRect().top-window.pageYOffset,u=n.left+window.pageXOffset,h=n.right+window.pageXOffset,f=o.scrollWidth-_._runnerWidth,p=t.pageX-s.getBoundingClientRect().left-window.pageXOffset,g=function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",g),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",e),document.addEventListener("mouseup",g)},t.onmousedownArea=function(t){var e,i,n,o;v.locateNodeByClassName(t,"scroll-runner")||(t.preventDefault(),e=!!v.locateNodeByClassName(t.target,"y-scroll"),i=(o=_._getRefs()).area,n=o.runnerY,o=o.runnerX,e?i.scrollTop+=(t.pageY-n.getBoundingClientRect().top)/_._visibleYArea:i.scrollLeft+=(t.pageX-o.getBoundingClientRect().left)/_._visibleXArea,_.update())},t.onmouseenter=function(t){var e,i;v.locateNodeByClassName(t,"scroll-runner")||(i=_._getRefs())&&(e=!!v.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<_._runnerHeight?i.style.background="#eee":!e&&0<_._runnerWidth&&(t.style.background="#eee"))},t.onmouseleave=function(t){var e,i;v.locateNodeByClassName(t,"scroll-runner")||(i=_._getRefs())&&(e=!!v.locateNodeByClassName(t.target,"y-scroll"),t=i.areaX,i=i.areaY,e&&0<_._runnerHeight?i.style.background="transparent":!e&&0<_._runnerWidth&&(t.style.background="transparent"))},t)}i.ScrollView=e},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(101)),n(e(45))},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(49)),n(e(112)),n(e(55))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.ListEvents||(e.ListEvents={})).click="click",e.doubleClick="doubleclick",e.focusChange="focuschange",e.beforeEditStart="beforeEditStart",e.afterEditStart="afterEditStart",e.beforeEditEnd="beforeEditEnd",e.afterEditEnd="afterEditEnd",e.itemRightClick="itemRightClick",e.itemMouseOver="itemMouseOver",e.contextmenu="contextmenu"},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.RealPosition||(e.RealPosition={})).left="left",n.right="right",n.top="top",n.bottom="bottom",n.center="center",(n=e.Position||(e.Position={})).right="right",n.bottom="bottom",n.center="center",n.left="left",n.top="top",(e=e.MessageContainerPosition||(e.MessageContainerPosition={})).topLeft="top-left",e.topRight="top-right",e.bottomLeft="bottom-left",e.bottomRight="bottom-right"},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(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},r=(l.prototype.addPadding=function(){this._padding=!0},l.prototype.getSize=function(){return this.config.size},l.prototype.scaleReady=function(t){var e=[];this._charts.forEach(function(t){t.getPoints().forEach(function(t){return e.push(t[1])})}),this._axis=new o.AxisCreator(e,this.config).getScale();var i=this._position;"radial"!==i&&(t[i]+=this.config.size)},l.prototype.point=function(t){return this.config.log?this._logPoint(t):this._isXDirection?(t-this._axis.min)/(this._axis.max-this._axis.min):1-(t-this._axis.min)/(this._axis.max-this._axis.min)},l.prototype.add=function(t){this._charts.push(t)},l.prototype.paint=function(e,i){var n=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t){return[n._isXDirection?n.point(t)*e:n.point(t)*i,t]});return 0===t.length&&"left"===this._position&&(t=[[0,0]]),a[this._position](t,this.config,e,i)},l.prototype.scaleGrid=function(){var a=this,l=this._position,c=this.config.grid,d=this.config.dashed,u=this.config.hidden;return{paint:function(t,e){var i,n,o=a._axis.steps.indexOf(a.config.targetLine),r=(i=t,n=e,a._axis.steps.map(function(t){return[a._isXDirection?a.point(t)*i:a.point(t)*n,t]})),s=a.point(a.config.targetValue),s={targetLine:o,dashed:d,grid:c,targetValue:s,hidden:u};return h[l](r,t,e,s)}}},l.prototype._setDefaults=function(t){t.locator&&(this.locator=s.locator(t.locator)),this.config=n(n({},{scalePadding:20,textPadding:11,grid:!0,targetLine:null,showText:!0}),t)},l.prototype._logPoint=function(t){var e=Math.abs(t)/t,i=this._axis.steps,n=i.length-1,o=i.indexOf(t);return n=-1!==o?o/n:((this._axis.min<0?i.indexOf(0):0)+e*s.log10(Math.abs(t)))/n,this._isXDirection?n:1-n},l);function l(t,e,i){this._data=t,this._padding=!1,this._charts=[],this._position=i,this._setDefaults(e),this._isXDirection="bottom"===i||"top"===i,"radial"!==i&&(this.config.size="left"===i||"right"===i?this.config.size||40+(this.config.title?40:0):this.config.size||20+(this.config.title?40:0))}e.Scale=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(3),i=i(19),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=e.locator):(this.yScale=e,this._yLocator=s.locator(this.config.value))},a.prototype.paint=function(t,e){r.prototype.paint.call(this,t,e)},a.prototype.dataReady=function(o){var r=this;return this.config.active?(this._points=this._data.map(function(t,e){var i=r._xLocator(t),n=r._yLocator(t),n=[i,n,t.id,i,n];return o&&(n[1]+=o[e][1]),n}),this._points):this._points=[]},a.prototype._calckFinalPoints=function(n,o){var r=this;this._points.forEach(function(t,e){t[0]=r.xScale.point(t[0])*n||0;var i=r.yScale.point(t[1])*o;t[1]=isNaN(i)?"xbar"===r.config.type?0:o:i})},a.prototype._defaultLocator=function(t){return[this._yLocator(t),this._xLocator(t)]},a);function a(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(3),i=i(19),o=(s=i.default,o(l,s),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.dataReady=function(){var s=this,t=this._data;return this._sum=t.reduce(function(t,e){return e.$hidden?t:t+parseFloat(s._valueLocator(e))},0),this._points=t.reduce(function(t,e,i){if(e.$hidden)return t;var n=s._textLocator(e),o=s._valueLocator(e),r=o/s._sum,i=s._colorLocator?s._colorLocator(e):a.getDefaultColor(i);return t.push([r,o,e.id,n,i]),t},[]),this._points},l.prototype.toggle=function(t){var e=this._data.getItem(t);e&&this._data.update(t,{$hidden:!e.$hidden})},l.prototype.getClosest=function(t,e){for(var i=1-(Math.atan2(t-this._center[0],e-this._center[1])+Math.PI)/Math.PI/2,n=this._points,o=0;o<n.length;o++){if(n[o][0]>=i)return[0,this._tooltipData[o][0],this._tooltipData[o][1],n[o][2]];i-=n[o][0]}return[1/0,null,null,null]},l.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t[0]}},l.prototype.getTooltipType=function(t){return"simple"},l.prototype._setDefaults=function(e){var i=this,t={subType:"basic",paddings:e.useLines?70:50};this.config=r(r({},t),e),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=a.locator(e.value),this._textLocator=a.locator(e.text),e.color?this._colorLocator=a.locator(e.color):e.monochrome&&(this._colorLocator=function(t){return a.getColorShade(e.monochrome,2*i._getPercent(t))})},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getPercent=function(t){return parseFloat(this._valueLocator(t))/this._sum},l);function l(){var t=null!==s&&s.apply(this,arguments)||this;return t._center=[0,0],t._tooltipData=[],t}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var l,c=i(0),d=i(3),i=i(35),o=(l=i.default,o(r,l),r.prototype.paint=function(t,e){var r=this;l.prototype.paint.call(this,t,e);var i,n=this.config.pointColor||this.config.color,o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),s=[];return this.config.strokeWidth&&s.push(this._getForm(this._points,this.config,o,t,e)),this.config.pointType&&(i=this._getPointType(this.config.pointType,n),s=s.concat(this._points.map(function(t){return i(t[0],t[1],d.calcPointRef(t[2],r.id))}).map(function(t,e){var i,n,o;return t&&t.attrs&&(t.attrs=a(a({},t.attrs),(i=t.key,n=r._points,i&&(o=n.find(function(t){return i.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":o?"point x="+o[3]+" y="+o[4]:"",tabindex:0})),r.config.tooltip&&(t.attrs.onmousemove=[r._handlers.onmousemove,r._points[e][2],r.id],t.attrs.onmouseleave=[r._handlers.onmouseleave,r._points[e][2],r.id],t.attrs.onclick=[r._handlers.onmousemove,r._points[e][2],r.id])),t}))),c.sv("g",a(a({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),s)},r.prototype._getForm=function(t,e,i,n,o){t=t.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ");return c.sv("path",{id:"seria"+e.id,d:t,stroke:e.color,class:i,"stroke-width":this.config.strokeWidth,fill:"none"})},r.prototype._setDefaults=function(t){this.config=a(a({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},r);function r(){return null!==l&&l.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),r=i(80),s=i(83),a=i(15),c=i(12),d=i(11),p=i(1),i=(u.prototype._reset=function(){this._order=[],this._pull={},this._changes={order:[]},this._initOrder=null,this._meta=new WeakMap,this._loaded=!1},u.prototype.add=function(t,i){var n=this;if(this.events.fire(d.DataEvents.beforeAdd,[t])){t=Array.isArray(t)?t.map(function(t,e){return 0!==e&&(i+=1),n._add(t,i)}):this._add(t,i);return this._applySmart(),t}},u.prototype.remove=function(t){var e=this;t instanceof Array?n(t).map(function(t){e._remove(t)}):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?c.isEqualObj(e,n)||(p.isId(e.id)&&t!==e.id?(c.dhxWarning("this method doesn't allow change id"),c.isDebug()):(e.parent&&n.parent&&e.parent!==n.parent&&this.move(t,-1,this,e.parent),p.extend(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),i||this._onChange("update",t,this._pull[t])),this._applySmart()):c.dhxWarning("item not found")},u.prototype.getIndex=function(e){return p.isId(e)&&p.isDefined(this._pull[e])?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===t&&(t=0),void 0===e&&(e=this._order.length),p.isNumeric(t)&&p.isNumeric(e)?0===this._order.slice(t,e).filter(function(t){return t&&t.$empty}).length:(this._loaded||(this._loaded=!this.find(function(t){return t.$empty})),!!this._loaded)},u.prototype.filter=function(t,e){var i;this.isDataLoaded()?(e&&e.add||(this._order=this._initOrder||this._order,this._initOrder=null),!t||"function"==typeof t||void 0!==(i=t).by&&void 0!==i.match&&(t=i.compare?function(t){return i.compare(t[i.by],i.match,t,i.multi)}:function(t){return t[i.by]==i.match}),this._filter=e&&e.smartFilter?t:null,this._applyFilters(t),this.events.fire(d.DataEvents.change)):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.find=function(t){for(var e in this._pull){var i=c.findByConf(this._pull[e],t);if(i)return i}return null},u.prototype.findAll=function(t){var e,i=[];for(e in this._pull){var n=c.findByConf(this._pull[e],t);n&&i.push(n)}return i},u.prototype.sort=function(t,e){this.isDataLoaded()?(e&&e.smartSorting&&(this._sorter=t),t&&this._applySorters(t),this.events.fire(d.DataEvents.change,[void 0,"sort",t])):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.copy=function(t,i,n,o){var r=this;return t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},u.prototype.move=function(t,i,n,o,e){var r=this;return t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o,0,e)},u.prototype.forEach=function(t){for(var e=0;e<this._order.length;e++)t.call(this,this._order[e],e,this._order)},u.prototype.load=function(t,e){return"string"==typeof t&&(this.dataProxy=t=new a.DataProxy(t)),this.dataProxy=t,this._loader.load(t,e)},u.prototype.parse=function(t,e){return this._reset(),this._loader.parse(t,e)},u.prototype.$parse=function(t){var e=this.config.approximate;e&&(t=this._approximate(t,e.value,e.maxNum)),this._parse_data(t),this._applySmart(),this.events.fire(d.DataEvents.change,["load"]),this.events.fire(d.DataEvents.load)},u.prototype.save=function(t){"string"==typeof t&&(t=new a.DataProxy(t)),this._loader.save(t)},u.prototype.changeId=function(t,e,i){var n;void 0===e&&(e=p.uid()),i||this.isDataLoaded()?(n=this.getItem(t))?(n.id=e,p.extend(this._pull[t],n),this._pull[e]=this._pull[t],i||this._onChange("update",e,this._pull[e]),delete this._pull[t]):c.dhxWarning("item not found"):c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype.isSaved=function(){return!this._changes.order.length},u.prototype.map=function(t){for(var e=[],i=0;i<this._order.length;i++)e.push(t.call(this,this._order[i],i,this._order));return e},u.prototype.mapRange=function(t,e,i){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var n=this._order.slice(t,e),o=[],r=t;r<=e;r++)o.push(i.call(this,this._order[r],r,n));return o},u.prototype.reduce=function(t,e){for(var i=0;i<this._order.length;i++)e=t.call(this,e,this._order[i],i);return e},u.prototype.serialize=function(t){void 0===t&&(t=d.DataDriver.json);for(var i=[],n=this,e=0;e<this._order.length;e++)!function(t){var e=l({},n._order[t]);Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),i.push(e)}(e);t=c.toDataDriver(t);if(t)return t.serialize(i)},u.prototype.getInitialData=function(){return this._initOrder},u.prototype.setMeta=function(t,e,i){var n;t&&((n=this._meta.get(t))||(n={},this._meta.set(t,n)),n[e]=i)},u.prototype.getMeta=function(t,e){t=this._meta.get(t);return t?t[e]:null},u.prototype.getMetaMap=function(t){return this._meta.get(t)},u.prototype.setRange=function(t,e){this._range=e?[t,e]:null},u.prototype.getRawData=function(t,e,i,n){if(i=i||this._order,1===n)return i;var o;if(this._range&&(t=this._range[0]+t,e=-1===e||t+(o=Math.abs(e-t))>this._range[1]?this._range[1]:t+o),!e||0===t&&(-1===e||e===i.length))return i;if(t>=i.length)return[];(-1===e||e>i.length)&&(e=i.length);i=i.slice(t,e);return 0!==i.filter(function(t){return t.$empty}).length&&this.events.fire(d.DataEvents.dataRequest,[t,e]),i},u.prototype._add=function(t,e){if(this.isDataLoaded()){e=this._addCore(t,e);return this._onChange("add",t.id,t),this.events.fire(d.DataEvents.afterAdd,[t]),e}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._remove=function(t){if(this.isDataLoaded()){var e=this._pull[t];if(e){if(!this.events.fire(d.DataEvents.beforeRemove,[e]))return;this._removeCore(e.id),this._onChange("remove",t,e)}this.events.fire(d.DataEvents.afterRemove,[e])}else c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._copy=function(t,e,i,n,o){if(this.isDataLoaded()){if(!this.exists(t))return null;var r=p.uid();return(o&&(e=-1===e?-1:e+o),i)?i instanceof u||!n?i.exists(t)?(i.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r):(i.add(c.copyWithoutInner(this.getItem(t)),e),t):void i.add(c.copyWithoutInner(this.getItem(t)),e):(this.add(l(l({},c.copyWithoutInner(this.getItem(t))),{id:r}),e),r)}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._move=function(t,e,i,n,o,r){if(this.isDataLoaded()){if(o&&(e=-1===e?-1:e+o),i&&i!==this&&this.exists(t)){var s=p.copy(this.getItem(t),!0);return r&&(s.id=r),(!r&&i.exists(t)||i.exists(r))&&(s.id=p.uid()),n&&(s.parent=n),i.add(s,e),this.remove(t),s.id}if(this.getIndex(t)===e)return null;s=this._order.splice(this.getIndex(t),1)[0];return-1===e&&(e=this._order.length),this._order.splice(e,0,s),this.events.fire(d.DataEvents.change,[t,"update",this.getItem(t)]),t}c.dhxWarning("the method doesn't work with lazyLoad")},u.prototype._addCore=function(t,e){var i;return this.config.init&&(t=this.config.init(t)),t.id=null!==(i=t.id)&&void 0!==i?i:p.uid(),this._pull[t.id]&&c.dhxError("Item "+t.id+" already exist"),this._initOrder&&!c.isTreeCollection(this)&&this._addToOrder(this._initOrder,t,e),this._addToOrder(this._order,t,e),t.id},u.prototype._removeCore=function(e){0<=this.getIndex(e)&&(this._order=this._order.filter(function(t){return t.id!==e}),delete this._pull[e]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e}),delete this._pull[e])},u.prototype._parse_data=function(t){var e=this._order.length;this.config.prep&&(t=this.config.prep(t));for(var i=0,n=t;i<n.length;i++){var o=n[i];this._addCore(o,e++)}},u.prototype._approximate=function(t,e,i){for(var n=t.length,o=e.length,r=Math.floor(n/i),s=Array(Math.ceil(n/r)),a=0,l=0;l<n;l+=r){for(var c=p.copy(t[l]),d=Math.min(n,l+r),u=0;u<o;u++){for(var h=0,f=l;f<d;f++)h+=t[f][e[u]];c[e[u]]=h/(d-l)}s[a++]=c}return s},u.prototype._onChange=function(t,e,i){for(var n=0,o=0,r=this._changes.order;o<r.length;o++){var s=r[o],a=this._changes.order.indexOf(s);if(s.id===e&&!s.saving&&(n+=1,a===this._changes.order.length-1||this._changes.order[a+1].id!==e))return s.error&&(s.error=!1),s=l(l({},s),{obj:i,status:t}),10<(n+=1)?this._changes.order.splice(a,n-10,s):this._changes.order.splice(a+1,0,s),this._loader.updateChanges(this._changes),"remove"===t&&i.$emptyRow?void 0:void this.events.fire(d.DataEvents.change,[e,t,i])}this._changes.order.push({id:e,status:t,obj:l({},i),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(d.DataEvents.change,[e,t,i])},u.prototype._addToOrder=function(t,e,i){0<=i&&t[i]?(this._pull[e.id]=e,t.splice(i,0,e)):(this._pull[e.id]=e,t.push(e))},u.prototype._applySmart=function(){this._filter&&this._applyFilters(),this._sorter&&this._applySorters()},u.prototype._applySorters=function(t){this._sort.sort(this._order,t,this._sorter),this._initOrder&&this._initOrder.length&&this._sort.sort(this._initOrder,t,this._sorter)},u.prototype._applyFilters=function(e){var t,i=this._filter;e===i&&(e=null),(e||i)&&(t=this._order.filter(function(t){return(!e||e(t))&&(!i||i(t))}),this._initOrder||(this._initOrder=this._order),this._order=t)},u);function u(t,e){var n=this;this._changes={order:[]},this.config=t||{},this._sort=new s.Sort,this._loader=new r.Loader(this,this._changes),this.events=e||new o.EventSystem(this),this.events.on(d.DataEvents.dataRequest,function(t,e){var i=n.dataProxy;i&&i.updateUrl&&(i.updateUrl(null,{from:t,limit:i.config.limit||e-t}),n.load(i))}),this.events.on(d.DataEvents.loadError,function(t){setTimeout(function(){"string"!=typeof t?c.dhxError(t):c.dhxWarning(t)},0)}),this._reset()}e.DataCollection=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(40),r=i(41),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";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.serialize=function(t){return t},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},o);function o(){}e.JsonDriver=n},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=(r.prototype.getFields=function(t,e){for(var i=new RegExp('(?<!")'+this.config.columnDelimiter+'(?!")'),n=t.trim().split(i),o={},r=0;r<n.length;r++)o[e?e[r]:r+1]=isNaN(Number(n[r]))?n[r].replace(/"[,;"]"/gi,function(t){return t.split("").splice(1,1).slice(-1,1).join("")}):parseFloat(n[r]);return o},r.prototype.getRows=function(t){return t.trim().split(this.config.rowDelimiter)},r.prototype.toJsonArray=function(t){var e=this,i=this.getRows(t),n=this.config.names;return this.config.skipHeader&&(t=i.splice(0,this.config.skipHeader),this.config.nameByHeader&&(n=t[0].trim().split(this.config.columnDelimiter))),i.map(function(t){return e.getFields(t,n)})},r.prototype.serialize=function(t,e){var i=t[0]?Object.keys(t[0]).filter(function(t){return!t.startsWith("$")}).join(this.config.columnDelimiter)+this.config.columnDelimiter+this.config.rowDelimiter:"",t=this._serialize(t);return e?t:i+t},r.prototype._serialize=function(t){var o=this;return t.reduce(function(t,n){var e=Object.keys(n).reduce(function(t,e,i){return e.startsWith("$")||"items"===e?t:""+t+n[e].replaceAll(/[,;"]/gi,function(t){return'"'+t+'"'})+(i===n.length-1?"":o.config.columnDelimiter)},"");return n.items?t+(t?"\n":"")+e+o._serialize(n.items):""+t+(t?o.config.rowDelimiter:"")+e},"")},r);function r(t){this.config=n(n({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}e.CsvDriver=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(43)),n(e(124)),n(e(4)),n(e(21));var o=e(16);i.getTreeCell=o.getTreeCell,n(e(9)),n(e(7))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},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},v=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r,l=i(0),a=i(5),c=i(2),p=i(1),d=i(25),u=i(8),h=i(6),f=i(86),m=i(9),_=i(21),y=i(7),x=i(87),b=i(4),w=i(10),C=i(13),S=i(114),E=i(118),D=i(58),k=i(123),O=i(20),T=i(16),o=(r=u.View,o(M,r),M.prototype.destructor=function(){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()},M.prototype.setColumns=function(t){var e=this;this.config.columns=t,this._parseColumns(!0),this._adjustColumns(),this._checkFilters(),this._checkMarks(),this.paint(),this.config.keyNavigation&&l.awaitRedraw().then(function(){e._initHotKey(!0),e.paint()})},M.prototype.addRowCss=function(t,e){var i=this.data.getItem(t),t=i.$css||"";t.match(new RegExp(e,"g"))||(i.$css=t+" "+e,this.paint())},M.prototype.removeRowCss=function(t,e){t=this.data.getItem(t),e=t.$css?t.$css.replace(e,""):"";t.$css=e,this.paint()},M.prototype.addCellCss=function(t,e,i){var n=this.getColumn(e),o=this.config.spans?this.getSpan(t,e):null;(o||n)&&((e=o?o.css:n.$cellCss[t])?(e=e.match(new RegExp(i,"g"))?"":" "+i,o?o.css+=e:n.$cellCss[t]+=e):this.data.getItem(t)&&(o?o.css=i+" ":n.$cellCss[t]=i+" "),this.paint())},M.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]=""))},M.prototype.showColumn=function(t){var e=this.getColumn(t);e&&e.hidden&&this.events.fire(b.GridEvents.beforeColumnShow,[e])&&(e.hidden=!1,this.config.$totalWidth+=e.$width,(t=this._hiddenFilters&&this._hiddenFilters[e.id])&&(this._activeFilters[e.id]=t,delete this._hiddenFilters[e.id]),this.paint(),this._checkFilters(),this.events.fire(b.GridEvents.afterColumnShow,[e]))},M.prototype.hideColumn=function(t){var e,i=this,n=this.getColumn(t);n&&!n.hidden&&this.events.fire(b.GridEvents.beforeColumnHide,[n])&&(n.hidden=!0,this.config.$totalWidth-=n.$width,(t=this._activeFilters&&this._activeFilters[n.id])&&(this._hiddenFilters||(this._hiddenFilters={}),this._hiddenFilters[n.id]=t,delete this._activeFilters[n.id],this.data.filter()),this.paint(),t=this.content.comboFilter,e=function(){i._checkFilters(),i.events.fire(b.GridEvents.afterColumnHide,[n])},Object.keys(t.element).length?l.awaitRedraw().then(function(){i.paint(),e()}):e())},M.prototype.isColumnHidden=function(t){t=this.getColumn(t);if(t)return!!t.hidden},M.prototype.showRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&t.hidden&&this.events.fire(b.GridEvents.beforeRowShow,[t])&&(this.data.update(e,{hidden:!1}),this.data.filter(function(t){return!t.hidden}),this.events.fire(b.GridEvents.afterRowShow,[t])))},M.prototype.hideRow=function(t){var e;p.isDefined(t)&&(e=t.toString(),(t=this.data.getItem(e))&&this.events.fire(b.GridEvents.beforeRowHide,[t])&&(this.data.update(e,{hidden:!0}),this.data.filter(function(t){return!t.hidden}),this.events.fire(b.GridEvents.afterRowHide,[t])))},M.prototype.isRowHidden=function(t){if(p.isDefined(t)){t=this.data.getItem(t.toString());return t?!!t.hidden:void 0}},M.prototype.getScrollState=function(){return{x:this._scroll.left,y:this._scroll.top}},M.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()},M.prototype.scrollTo=function(e,i){var t=this.selection.getCell(),n=this.config.columns.filter(function(t){return!t.hidden}),o=p.findIndex(n,function(t){return t.id==i}),r=t?t.column:this.config.columns[0],s=p.findIndex(n,function(t){return t.id==r.id}),a=this.config.leftSplit?y.getTotalWidth(n.slice(0,this.config.leftSplit)):0,l=y.getTotalWidth(n.slice(0,o))-(o-s<0?a:0),c=this.data.getRawData(0,-1),d=p.findIndex(c,function(t){return t.id==e}),u=y.getTotalHeight(c.slice(0,d)),h=this.getScrollState(),f=this.config.$width+h.x,t=this.config.$height+h.y-this.config.headerRowHeight*this.config.$headerLevel,s=u-h.y-c[d].$height,a=l-h.x-n[o].$width,t=u+2*c[d].$height+18-t,f=l+2*n[o].$width+18-f,t=0<s&&t<0?0:s<0?s:t,f=0<a&&f<0?0:a<0?a:f;this.scroll(f+h.x,t+h.y)},M.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()},M.prototype.getCellRect=function(e,i){var t=this.config.columns.filter(function(t){return!t.hidden}),n=this.data.getRawData(0,-1),o=this.getSpan(e,i),r=p.findIndex(t,function(t){return t.id==(o?o.column:i)}),s=p.findIndex(n,function(t){return t.id==(o?o.row:e)});return{x:y.getTotalWidth(t.slice(0,r)),y:y.getTotalHeight(n.slice(0,s)),height:null!=o&&o.rowspan?_.getHeight(n,o.rowspan,s):n[s]?n[s].$height:0,width:null!=o&&o.colspan?_.getWidth(this.config.columns,o.colspan,p.findIndex(this.config.columns,function(t){return t.id===o.column})):t[r]?t[r].$width:0}},M.prototype.getColumn=function(t){for(var e,i=0,n=null===(e=this.config)||void 0===e?void 0:e.columns;i<n.length;i++){var o=n[i];if(o.id==t)return o}},M.prototype.addSpan=function(e){this.config.spans=this.config.spans||[];var t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e.row&&""+t.column==""+e.column});0<=t?this.config.spans[t]=e:(this.config.spans.push(T.normalizeSpan(e,this.config)),this._checkMarks(),this.paint())},M.prototype.getSpan=function(t,e){var r=this;if(this.config.spans){var s=this.data.getIndex(t.toString()),a=this.config.columns.findIndex(function(t){return t.id===e}),i=p.findIndex(this.config.spans,function(e){var t=r.data.getIndex(e.row.toString()),i=r.config.columns.findIndex(function(t){return t.id===e.column}),n=e.rowspan?t+e.rowspan:t+1,o=e.colspan?i+e.colspan:i+1;return t<=s&&s<n&&i<=a&&a<o});return null===(t=this.config)||void 0===t?void 0:t.spans[i]}},M.prototype.removeSpan=function(e,i){var t;this.config.spans&&(t=p.findIndex(this.config.spans,function(t){return""+t.row==""+e&&""+t.column==""+i}),this.config.spans.splice(t,1),this.paint())},M.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),p.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)&&void 0!==n&&n.editor||this.config.$editable&&this.config.$editable.row===t&&this.config.$editable.col===e&&this.config.$editable.editorType===i||(this.config.$editable={row: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])))):h.dhxWarning("item not found")},M.prototype.editEnd=function(t){this.config.$editable&&this.config.$editable.editor&&this.config.$editable.editor.endEdit(t)},M.prototype.getSortingState=function(){return{dir:this._sortDir,by:this._sortBy}},M.prototype.getHeaderFilter=function(e){var i=this,t=this.getColumn(e);if(t){var n=null;return t.header.forEach(function(t){t.content&&(n=i.content[t.content].element[e])}),n}},M.prototype.edit=function(t,e,i){this.editCell(t,e,i)},M.prototype.paint=function(){var t=this.config.hotkeys?Object.keys(this.config.hotkeys).length:0;!this.keyManager||this.keyManager.getKeyStorageLength()-t||this._initHotKey(!0),r.prototype.paint.call(this)},M.prototype._createView=function(){var i=this;return l.create({render:function(t,e){return w.render(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},M.prototype._parseColumns=function(t){void 0===t&&(t=!1),m.normalizeColumns(this.config,t);t=this.config.columns.filter(function(t){return!t.hidden});m.countColumns(this.config,t)},M.prototype._parseData=function(){this.config.data=this._prepareData(this.data),this._detectColsTypes(),this._checkFilters(),this._checkMarks(),this.data.filter(function(t){return!t.hidden}),this._render()},M.prototype._createCollection=function(t){this.data=new h.DataCollection({prep:t},this.events)},M.prototype._getRowIndex=function(t){return this.data.getIndex(t)},M.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 _.data.exists(t)&&_.data.update(t,n)}),_.data.exists(i)&&_.data.update(i,n)}var _=this;this.data.events.on(h.DataEvents.load,function(){_.data.filter(function(t){return t}),_._parseData(),_._checkFilters(),_.config.data instanceof h.DataCollection?l.awaitRedraw().then(function(){return _._normalizeSpans()}):_._normalizeSpans()}),this.data.events.on(h.DataEvents.change,function(e,t,i){if("setPage"!==t){if("sort"===t?(i.dir?_._sortDir=i.dir:_._sortBy===i.by?_._sortDir="asc"===_._sortDir?"desc":"asc":_._sortDir="asc",_._sortBy=i.by):"add"===t||"update"===t||"remove"===t?(!p.isId(e)||"remove"!==t||(n=_.selection.getCells().find(function(t){return t.row.id===e}))&&_.selection.removeCell(n.row.id,n.column.id),_.config.data=_._prepareData(_.data)):(h.isTreeCollection(_.data)&&(_.config.data=_._prepareData(_.data)),_._adjustColumns()),p.isId(e)&&(_._filterData=_.data.map(function(t){return t})||[],_._checkFilters()),_._detectColsTypes(),_._removeMarks(),_._checkMarks(),_.config.autoEmptyRow&&(!_._activeFilters||p.isEmptyObj(_._activeFilters))){var n=_.data.find({by:"$emptyRow",match:!0});if(n){if(n.id===e)return;_.data.move(n.id,_.data.getLength()-1)}else _._addEmptyRow()}_._render()}else l.awaitRedraw().then(function(){var t=_.config.columns.find(function(t){return!0!==t.hidden});_.scrollTo(_.data.getId(i[0]).toString(),t.id.toString()),_._render()})}),this.data.events.on(h.DataEvents.removeAll,function(){_.config.columns.map(function(e){e.header.map(function(t){!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(e.$uniqueData=[])})})}),this.events.on(h.DragEvents.beforeDrag,function(t,e){return _.data.getItem(t.start)?_.events.fire(b.GridEvents.beforeRowDrag,[t,e]):"column"===_.config.dragItem||"both"===_.config.dragItem?_.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}),_.data.getItem(o)?(_.events.fire(b.GridEvents.dragRowStart,[t,e]),_._autoScroll("vertical")):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||(_.events.fire(b.GridEvents.dragColumnStart,[t,e]),_._autoScroll("horizontal"))}),this.events.on(h.DragEvents.dragIn,function(t,e){_.data.getItem(t.start)?_.events.fire(b.GridEvents.dragRowIn,[t,e]):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.events.fire(b.GridEvents.dragColumnIn,[t,e])}),this.events.on(h.DragEvents.dragOut,function(t,e){_.data.getItem(t.start)?_.events.fire(b.GridEvents.dragRowOut,[t,e]):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.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?_.events.fire(b.GridEvents.canRowDrop,[t,e]):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.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}),_.data.getItem(o)?_.events.fire(b.GridEvents.cancelRowDrop,[t,e]):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.events.fire(b.GridEvents.cancelColumnDrop,[t,e])}),this.events.on(h.DragEvents.beforeDrop,function(t,e){return"row"!==_.config.dragItem||"both"!==_.config.dragMode&&"target"!==_.config.dragMode?"column"===_.config.dragItem||"both"===_.config.dragItem?_.events.fire(b.GridEvents.beforeColumnDrop,[t,e]):void 0:_.events.fire(b.GridEvents.beforeRowDrop,[t,e])}),this.events.on(h.DragEvents.afterDrop,function(e,t){var i,n;if(_.data.getItem(e.start)){_.events.fire(b.GridEvents.afterRowDrop,[e,t]);var o=e.source;if(!o.some(function(t){return t==e.target})){for(var r=_.data.getItem(e.start),s=0,a=_.config.columns;s<a.length;s++){var l=a[s];void 0===r[l.id]&&_.data.update(r.id,((i={})[l.id]=null,i),!0)}var c,d=_.data.getInitialData(),u=null==d?void 0:d.findIndex(function(t){return t.id==e.start}),h=null==d?void 0:d.findIndex(function(t){return t.id==e.target});if(-1<u&&-1<h)if(1<(null===(n=e.source)||void 0===n?void 0:n.length)){for(var f=[],p=0,g=o;p<g.length;p++)!function(e){var t=null==d?void 0:d.findIndex(function(t){return t.id==e}),t=null==d?void 0:d.splice(t,1)[0];f.push(t)}(g[p]);0<(h=null==d?void 0:d.findIndex(function(t){return t.id==e.target}))&&++h,null!=d&&d.splice.apply(d,v([h,0],f))}else null!=d&&d.splice(h,0,null==d?void 0:d.splice(u,1)[0]);for(c in _.config.data=_._prepareData(d||_.data.map(function(t){return t})),_.data.parse(_.config.data),_._activeFilters)_.data.filter(_._activeFilters[c],{add:!0})}}else"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.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}),_.data.getItem(o)?_.events.fire(b.GridEvents.afterRowDrag,[t,e]):"column"!==_.config.dragItem&&"both"!==_.config.dragItem||_.events.fire(b.GridEvents.afterColumnDrag,[t,e]),_.config.data=_._prepareData(_.data instanceof Array?_.data.map(function(t){return t}):_.data.getInitialData()||_.data),_.data.parse(_.config.data)}),this.events.on(b.GridEvents.cellMouseDown,function(t,e,i){i.targetTouches?(_._touch.timer=setTimeout(function(){_._dragStart(i)},_._touch.duration),_._touch.timeStamp?(_._touch.dblDuration>=_._touch.timeStamp-+i.timeStamp.toFixed()&&((!1!==e.editable&&_.config.editable||e.editable)&&_.editCell(t.id,e.id,e.editorType),i.preventDefault(),_.events.fire(b.GridEvents.cellDblClick,[t,e,i])),_._touch.timeStamp=null):_._touch.timeStamp=+i.timeStamp.toFixed(),setTimeout(function(){_._touch.timeStamp=null},_._touch.dblDuration)):_._dragStart(i)}),this._events.on(b.GridSystemEvents.cellTouchMove,function(t,e,i){_._touch.start&&i.preventDefault(),_._clearTouchTimer()}),this._events.on(b.GridSystemEvents.cellTouchEnd,function(){_._touch.start=!1,_._clearTouchTimer()}),this.events.on(b.GridEvents.filterChange,function(e,t,o){var i;if(_.events.fire(b.GridEvents.beforeFilter,[e,t])){!_.config.autoEmptyRow||(i=_.data.find({by:"$emptyRow",match:!0}))&&_.data.remove(i.id),_._activeFilters||(_._activeFilters={});var n,r,s,a,l=_.getColumn(t),c=l.header.filter(function(t){return t.content===o&&void 0!==t.customFilter})[0];for(a in"comboFilter"===o&&void 0!==e||"comboFilter"!==o&&""!==e?(n=m.getEditorOptions(l),"combobox"!==l.editorType&&"select"!==l.editorType&&"multiselect"!==l.editorType||!n||(e=Array.isArray(e)?e.map(function(e){var t;return(null===(t=n.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===t?void 0:t.id)||e}):null!==(i=null===(i=n.find(function(t){return"string"==typeof t?t===e:t.value===e}))||void 0===i?void 0:i.id)&&void 0!==i?i:e),_._activeFilters[t]={by:t,match:e,compare:null!==(c=null==c?void 0:c.customFilter)&&void 0!==c?c:(r=t,s=_.getColumn(r),function(t,e,i,n){return _.content[o].match({val:t,match:e,obj:i,multi:n,col:s})}),multi:"multiselect"===(null==l?void 0:l.editorType)}):delete _._activeFilters[t],_.data.filter(function(t){return!t.hidden}),_._activeFilters)_.data.filter(_._activeFilters[a],{add:!0})}}),this.events.on(b.GridEvents.scroll,function(t){_._scroll={top:t.y,left:t.x},_.editEnd(),_.paint()}),this.events.on(b.GridEvents.cellDblClick,function(t,e,i){c.locateNodeByClassName(i,"dhx_boolean-cell")||(!1!==e.editable&&_.config.editable||e.editable)&&_.editCell(t.id,e.id,e.editorType)}),this.events.on(b.GridEvents.afterEditEnd,function(t,e,i){var n,o;null!==(n=_.config.$editable)&&void 0!==n&&n.editor&&(_.config.$editable.col!==i.id||_.config.$editable.row!==e.id)||(e=_.config.$editable?(o=_.config.$editable.row,_.config.$editable.col):(o=e.id,i.id),i=_.getSpan(o,e),p.isDefined(null==i?void 0:i.text)&&void 0!==t?i.text=t.toString():(delete(i=_.data.getItem(o)).$emptyRow,void 0!==t&&_.data.update(o,g(g({},i),((i={})[e]=t,i)))),_.config.$editable=null,_._checkFilters(),_.paint())}),this.events.on(b.GridEvents.headerCellMouseDown,function(t,e){var i=e.target.getAttribute("dhx_resized");i&&_.events.fire(b.GridEvents.beforeResizeStart,[t,e])&&E.startResize(_,i.toString(),e,function(){_.paint(),_.config.$resizing=null,_.events.fire(b.GridEvents.afterResizeEnd,[t,e])}),e.targetTouches&&(_._touch.timeStamp?(_._touch.dblDuration>=_._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),_.events.fire(b.GridEvents.headerCellDblClick,[t,e])),_._touch.timeStamp=null):_._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){_._touch.timeStamp=null},_._touch.dblDuration))}),this.events.on(b.GridEvents.footerCellDblClick,function(t,e){e.targetTouches&&(_._touch.timeStamp?(_._touch.dblDuration>=_._touch.timeStamp-+e.timeStamp.toFixed()&&(e.preventDefault(),_.events.fire(b.GridEvents.footerCellDblClick,[t,e])),_._touch.timeStamp=null):_._touch.timeStamp=+e.timeStamp.toFixed(),setTimeout(function(){_._touch.timeStamp=null},_._touch.dblDuration))}),this.events.on(b.GridEvents.resize,function(){_._parseColumns(),_._checkFilters()}),this.events.on(b.GridEvents.afterResizeEnd,function(e){var t;_.config.columns=null===(t=_.config.columns)||void 0===t?void 0:t.map(function(t){return t.id==e.id&&(t.width=e.$width),t}),_._parseColumns(),_._checkFilters()})},M.prototype._addEmptyRow=function(){var t=this.data.getId(this.data.getLength()-1),e=this.data.getItem(t),t=this.config.columns.filter(function(t){return!t.hidden});y.isRowEmpty(e)||this.data.add(t.reduce(function(t,e){return t[e.id]="",t},{$emptyRow:!0}))},M.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?C.stringToDate(t,e.format):t).getTime():t?""+t:""}}),this.events.fire(b.GridEvents.afterSort,[this.getColumn(i),t])},M.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},M.prototype._checkFilters=function(){var o=this,i=this._filterData;if(i){this.config.columns.forEach(function(e){e.header.forEach(function(t){!t.content||"selectFilter"!==t.content&&"comboFilter"!==t.content||(t=e.header.find(function(t){return t.filterConfig}),t=m.getUnique(i,e.id,t?t.filterConfig.multiselection:null),e.$uniqueData&&e.$uniqueData.length>t.length?t.forEach(function(t){e.$uniqueData.includes(t)||e.$uniqueData.push(t)}):e.$uniqueData=t)})});var t,r=this;for(t in this._activeFilters)!function(e){var i=r.config.columns.find(function(t){return t.id===e}),t=i.header.find(function(t){return!!t.content}),n=!1,n=Array.isArray(r._activeFilters[e].match)?r._activeFilters[e].match.reduce(function(t,e){if(i.$uniqueData.find(function(t){return t.toString()===e}))return!0},!1):i.$uniqueData.find(function(t){return t.toString()===o._activeFilters[e].match});!t||"selectFilter"!==t.content&&"comboFilter"!==t.content||n?r.data.filter(r._activeFilters[e],{add:!0}):(delete r._activeFilters[e],r.data.filter())}(t)}},M.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)})},M.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})},M.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=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+(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=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=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},M.prototype._prepareColumnData=function(t,e){for(var i,n,o=[],r=0;r<t.length;r++){for(var s=[],a=0;a<(null===(i=t[r])||void 0===i?void 0:i[e].length);a++){var l={};null!==(i=null===(i=t[r])||void 0===i?void 0:i[e][a])&&void 0!==i&&i.text?(l[t[r].id]=(null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.text)||"",s.push(l)):null!==(n=null===(n=t[r])||void 0===n?void 0:n[e][a])&&void 0!==n&&n.content&&(l[t[r].id]=this.content[null===(n=null===(n=t[r])||void 0===n?void 0:n[e][a])||void 0===n?void 0:n.content].toHtml(this.getColumn(t[r].id),this.config)||"",s.push(l))}for(var c=0;c<s.length;c++)for(var d=0,u=Object.entries(s[c]);d<u.length;d++){var h=u[d],f=h[0],p=h[1];o[c]=g({},o[c])||{},o[c]=Object.assign(o[c],((h={})[f]=p,h))}}return o},M.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this.getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1!==(null==e?void 0:e.draggable)){e=c.locateNode(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id");return t.targetTouches&&(this._touch.start=!0),h.dragManager.onMouseDown(t,[e],[this._getRowGhost([e])])}}},M.prototype._getRowGhost=function(t){var e=this._container||c.toNode(this._uid),t=t.map(function(t){return e.querySelector('.dhx_grid-row[data-dhx-id="'+t+'"]')}),i=document.createElement("div");return t.forEach(function(t){return t&&i.appendChild(t.cloneNode(!0))}),i},M.prototype._initHooks=function(){var i,n=this;return{didMount:function(t){var e;i&&(t.render=i,i=null,n.paint()),n._canDataParse(!0)&&(n._container||(e=n.getRootView().node.parent.el,t=w.getElementSizes(e),e=null===(e=n.scrollView)||void 0===e?void 0:e.config.enable,w.applyAutoWidth(n.config,t,!0,!1,e)),n.data.parse(n.config.data))},didUnmount:function(t){i=t.render,t.render=function(){return l.el("div")}}}},M.prototype._canDataParse=function(t){var e;return void 0===t&&(t=!1),!!(null!==(e=this.config.data)&&void 0!==e&&e.length&&this.config.data instanceof Array&&this.config.columns)&&(this.config.autoWidth&&this.config.autoHeight?t:!t)},M.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()},M.prototype._attachDataCollection=function(){var e=this;if(this.config.data instanceof h.DataCollection)return this.data=this.config.data,this.data.config.collapsed=this.config.collapsed,void(this.config.data=this.data.serialize());this._createCollection(function(t){return t.spans&&(e.config.spans=t.spans,t=t.data),t})},M.prototype._setMarks=function(o,r){for(var t=this.data.map(function(t){return{id:t.id,data:t[o.id],row:t}}),s=this.data.map(function(t){return t[o.id]}),a=this,e=0,i=t;e<i.length;e++)!function(t){var e,i,n=r(t.data,s,t.row,o);n&&(o.$cellCss=o.$cellCss||{},e=(o.$cellCss[t.id]||"").split(" "),n.split(" ").map(function(t){e.includes(t)||e.push(t)}),i=e.join(" "),n=a.getSpan(t.id,o.id),o.$cellCss[t.id]=i,n&&(n.rowspan||n.colspan&&n.column===o.id)&&n.$markCss!==i&&(n.$markCss=i))}(i[e])},M.prototype._checkMarks=function(){var e=this;this.config.columns.map(function(t){var o=t.mark;o&&("function"==typeof o?e._setMarks(t,o):e._setMarks(t,function(t,e){var i=[];e.forEach(function(t){null!=t&&""!==t&&i.push(parseFloat(t))});var n=p.getMinArrayNymber(i),e=p.getMaxArrayNymber(i);return o.max&&e===parseFloat(t)?o.max:!(!o.min||n!==parseFloat(t))&&o.min}))})},M.prototype._removeMarks=function(){var t;this.config.columns.forEach(function(t){t.mark&&(t.$cellCss={})}),null!==(t=this.config.spans)&&void 0!==t&&t.forEach(function(t){t.$markCss&&delete t.$markCss})},M.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"))})},M.prototype._destroyContent=function(){for(var t in this.content)"comboFilter"===t&&this.content[t].destroy()},M.prototype._render=function(){this.paint()},M.prototype._initHotKey=function(t){void 0===t&&(t=!1);var e=k.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])},M.prototype._normalizeConfig=function(e){return Object.keys(e).forEach(function(t){t.startsWith("$")&&delete e[t]}),e},M.prototype._normalizeSpans=function(){var t,e=this;this.config.spans=null===(t=this.config.spans)||void 0===t?void 0:t.map(function(t){return T.normalizeSpan(t,e.config)})},M.prototype._autoScroll=function(n){var t,o,r,s,a,l,e,i,c,d,u=null!==(t=this.scrollView)&&void 0!==t&&t.config.enable?null===(i=this.getRootNode())||void 0===i?void 0:i.querySelector(".scroll-view"):null===(e=this.getRootNode())||void 0===e?void 0:e.querySelector(".dhx_grid-body");u&&(o=null,i=u.getBoundingClientRect(),r=i.top,s=i.bottom,a=i.left,l=i.right,e=i.height,i=i.width,c=function(t){"up"===t||"down"===t?u.scrollBy(0,"up"===t?-40:40):u.scrollBy("left"===t?-40:40,0),o=setTimeout(function(){c(t)},100)},d=function(t){var e=t.clientX,i=t.clientY;switch(n){case"horizontal":l-30<e&&e<l&&r<i&&i<s?o||c("right"):a<e&&e<a+30&&r<i&&i<s?o||c("left"):o&&(clearTimeout(o),o=null);break;case"vertical":s-30<i&&i<s&&a<e&&e<l?o||c("down"):r<i&&i<r+30&&a<e&&e<l?o||c("up"):o&&(clearTimeout(o),o=null)}},(i<u.scrollWidth||e<u.scrollHeight)&&(document.addEventListener("pointermove",d),document.addEventListener("pointerup",function(){document.removeEventListener("pointermove",d),o&&clearTimeout(o)},{once:!0})))},M);function M(t,e){var a=r.call(this,t,e)||this;a._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},a.version="8.1.8",a.config=p.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=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});function n(e,i,t){var n,o,r,s;e&&i&&y.isTooltip(a.config,i)&&(s=void 0,"combobox"===i.editorType||"select"===i.editorType?s=(n=m.getEditorOptions(i,e).find(function(t){return(t instanceof Object?t.id.toString():t)===(null===(t=e[i.id])||void 0===t?void 0:t.toString())}))instanceof Object?n.value:n:"multiselect"!==i.editorType||null!=(o=null===(n=e[i.id])||void 0===n?void 0:n.toString().split(", "))&&o.length&&(s=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=m.toFormat(s||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()&&D.tooltip(r.toString(),{css:"dhx_grid_tooltip",node:t,htmlEnable:y.isHtmlEnable(a.config,i)}))}function i(t,e){var i;e&&y.isTooltip(a.config,e)&&((i=t.target.querySelector(".dhx_grid-header-cell-text span")&&t.target.querySelector(".dhx_grid-header-cell-text span").textContent||t.target.querySelector(".dhx_grid-footer-cell-text span")&&t.target.querySelector(".dhx_grid-footer-cell-text span").textContent||"")&&D.tooltip(i,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:y.isHtmlEnable(a.config,e)}))}return a._htmlEvents={onclick:c.eventHandler(function(t){return c.locate(t)},{"dhx_grid-header-cell--sortable":function(t,e){var i,n=t.target.getAttribute("dhx_resized"),o=a.getColumn(e);o&&y.isSortable(a.config,o)&&!n&&a.events.fire(b.GridEvents.beforeSort,[o,a._sortDir?"asc":"desc"])&&(t=(i=null===(t=c.locateNodeByClassName(t,"dhx_grid-header-cell"))||void 0===t?void 0:t.querySelector(".dhx_grid-header-cell-text_content").innerHTML)?o.header.find(function(t){return t.text===i}):null,o="asc"===a._sortDir&&a._sortBy===e?"desc":"asc",a._sort(e,o,null==t?void 0:t.sortAs))},"dhx_grid-expand-cell":function(t,e){t.target.classList.contains("dhx_grid-expand-cell-icon")&&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 e=t.composedPath(),i=a.data.getItem(e[3].getAttribute("data-dhx-id")),t=a.getColumn(e[2].getAttribute("data-dhx-col-id"));n(i,t,e[2])},".dhx_span-cell:not(.dhx_grid-header-cell)":function(t){var e,i=a.data.getItem(t.target.getAttribute("data-dhx-id")),n=a.getColumn(t.target.getAttribute("data-dhx-col-id")),o=a.getSpan(i.id,n.id);i&&o&&y.isTooltip(a.config,o)&&(e=o.text||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&&D.tooltip(e,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:!0}))},".dhx_grid-header-cell:not(.dhx_span-cell)":function(t){var e=a.getColumn(t.target.getAttribute("data-dhx-id"));i(t,e)},".dhx_grid-footer-cell:not(.dhx_span-cell)":function(t){var e=a.getColumn(t.target.getAttribute("data-dhx-id"));i(t,e)},".dhx_grid-header-cell.dhx_span-cell":function(t){var e=a.getColumn(t.target.getAttribute("data-dhx-id")),i=e&&e.header.find(function(t){return!(!t.rowspan&&!t.colspan)});e&&i&&y.isTooltip(a.config,e)&&((i=i.text||"")&&D.tooltip(i,{css:"dhx_grid_tooltip",node:t.target,htmlEnable:y.isHtmlEnable(a.config,e)}))},".dhx_grid-header-cell-text_content":function(t){var e=t.composedPath(),i=a.getColumn(e[1].getAttribute("data-dhx-id"));i&&y.isTooltip(a.config,i)&&((t=e[2].querySelector(".dhx_grid-header-cell-text_content")&&e[2].querySelector(".dhx_grid-header-cell-text_content").textContent||"")&&D.tooltip(t,{css:"dhx_grid_tooltip",node:e[1],htmlEnable:y.isHtmlEnable(a.config,i)}))}}},(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()),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=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,d=i(1),u=i(0),s=i(8),l=i(28),h=i(96),a=i(5),f=i(42),p=i(27),o=(r=s.View,o(g,r),g.prototype.paint=function(){var t;this.isVisible()&&((t=this.getRootView())?t.redraw():null!==(t=this._parent)&&void 0!==t&&t.paint())},g.prototype.isVisible=function(){if(!this._parent)return!(!this._container||!this._container.tagName)||Boolean(this.getRootNode());var t=null===(t=this._parent.config)||void 0===t?void 0:t.activeView;return(!t||t===this.id)&&(!this.config.hidden&&(!this._parent||this._parent.isVisible()))},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 f.Grid&&this._ui.config.keyNavigation&&u.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?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 f.Grid&&this._ui.config.keyNavigation&&u.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._calculateStyle(),n=d.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",o=this.config.full||this.config.html?i:c(c({},i),n);this.config.html||(e=this._ui?((l=this._ui.getRootView()).render&&(l=u.inject(l)),[l]):t||null);var i=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?u.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),c(c({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[u.el("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,r={};if(this.config.on)for(var s in this.config.on)r["on"+s]=this.config.on[s];var a="",l=this.config.cols||this.config.rows;if(this.config.type&&l)switch(this.config.type){case"line":a=" dhx_layout-line";break;case"wide":a=" dhx_layout-wide";break;case"space":a=" dhx_layout-space"}n=u.el("div",c(c(((t={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,t["data-cell-id"]=null!==(l=this.config.id)&&void 0!==l?l:null,t),r),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?a:""),style:o}),[this.config.full?[u.el("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to "+(this.config.collapsed?"expand":"collapse"):null,class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&u.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&u.el(".dhx_layout-cell-header__image-wrapper",[u.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&u.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?u.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):u.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:u.el("div",{style:c(c({},n),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?a:"")},this.config.html?[u.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:u.el(".dhx_layout-cell-content",{style:n},[u.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])],this._checkProgress()&&this._getProgressBar()]);return i?[n,i]:n}},g.prototype._getProgressBar=function(){return u.el("span",{class:"dhx_progress-bar"},[u.sv("svg",{viewBox:"25 25 50 50",class:"dhx_spinner"},[u.sv("circle",{cx:"50",cy:"50",r:"20",class:"path"})])])},g.prototype._getCss=function(t){return"dhx_layout-cell"},g.prototype._initHandlers=function(){var r=this;window.addEventListener("resize",this._afterWindowResized);function n(t,e){var i,n,o;void 0===e&&(e={x:0,y:0}),s.isActive&&(o=s.xLayout,i=t.targetTouches?t.targetTouches[0].clientX:t.clientX+e.x,n=t.targetTouches?t.targetTouches[0].clientY:t.clientY+e.y,t=o?"width":"height",(e=o?i-s.range.min+window.pageXOffset:n-s.range.min+window.pageYOffset)<0?e=s.resizerLength/2:e>s.size&&(e=s.size-s.resizerLength),n=(i=function(t){return parseInt(null===(t=r.config[t])||void 0===t?void 0:t.toString())})(o?"maxWidth":"maxHeight"),o=i(o?"minWidth":"minHeight"),(!n||e<n)&&(!o||o<e)&&(r.config[t]=e-s.resizerLength/2+"px",s.nextCell.config[t]=s.size-e-s.resizerLength/2+"px",s.nextCell._getAnyFlexCell()&&(s.nextCell._getAnyFlexCell().config[t]=void 0),r.paint(),r.events.fire(l.LayoutEvents.resize,[r.id])))}function i(t){var e,i,n;t.targetTouches&&t.preventDefault(),3!==t.which&&(s.isActive&&a(t),r.events.fire(l.LayoutEvents.beforeResizeStart,[r.id])&&(document.body.classList.add("dhx_no-select--resize"),i=r.getCellView(),n=(e=r._getNextCell()).getCellView(),t=r._getResizerView(),i=i.el.getBoundingClientRect(),t=t.el.getBoundingClientRect(),n=n.el.getBoundingClientRect(),s.xLayout=r._isXDirection(),s.left=i.left+window.pageXOffset,s.top=i.top+window.pageYOffset,s.collapsedSize=r._getCollapsedSize(r,e),s.margin=h.getMarginSize(r.getParent().config),s.range=h.getBlockRange(i,n,s.xLayout),s.size=s.range.max-s.range.min-s.margin-s.collapsedSize,s.isActive=!0,s.nextCell=e,s.resizerLength=s.xLayout?t.width:t.height))}var s={left:null,top:null,isActive:!(this._handlers={enterCollapse:function(t){13===t.keyCode&&r._handlers.toggle()},collapse:function(){r.config.collapsable&&r.collapse()},expand:function(){r.config.collapsable&&r.expand()},toggle:function(){r.config.collapsable&&r.toggle()}}),range:null,xLayout:null,nextCell:null,size:null,resizerLength:null,margin:null,collapsedSize:null},o={},a=function(t){if(s.isActive=!1,document.body.classList.remove("dhx_no-select--resize"),t.targetTouches)for(var e in document.removeEventListener("touchend",a),document.removeEventListener("touchmove",n),o)o[e].node.contentWindow.document.removeEventListener("touchend",a),o[e].node.contentWindow.document.removeEventListener("touchmove",o[e].listener);else for(var e in document.removeEventListener("mouseup",a),document.removeEventListener("mousemove",n),o)o[e].node.contentWindow.document.removeEventListener("mouseup",a),o[e].node.contentWindow.document.removeEventListener("mousemove",o[e].listener);r.events.fire(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)return i;for(var r=t+1;r<o;r++)n._cells[r].config.collapsed&&(this._isXDirection()?i+=45:i+=Number(n._cells[r].config.headerHeight)||37);return i},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),e=!this._isLastCell()&&t._cells[e+1];return!!e&&(e.config.hidden||e.config.collapsed?e._getNextCell():e)},g.prototype._getAnyFlexCell=function(e){var i=this;void 0===e&&(e=!1);var t=this._parent,n=this._isXDirection()?"$autoWidth":"$autoHeight",t=null===(t=null==t?void 0:t._cells)||void 0===t?void 0:t.filter(function(t){return!0===t.config[n]&&(!!e||t.id!==i.id)});return!(null==t||!t.length)&&t[t.length-1]},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(){if(this._stopProgressDefault)return!1;var t=this.config,e=t.html;return 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=this.config;if(t){var e={},i=!1,n=!1;isNaN(Number(t.width))||(t.width=t.width+"px"),isNaN(Number(t.height))||(t.height=t.height+"px"),isNaN(Number(t.minWidth))||(t.minWidth=t.minWidth+"px"),isNaN(Number(t.minHeight))||(t.minHeight=t.minHeight+"px"),isNaN(Number(t.maxWidth))||(t.maxWidth=t.maxWidth+"px"),isNaN(Number(t.maxHeight))||(t.maxHeight=t.maxHeight+"px"),"content"===t.width&&(i=!0),"content"===t.height&&(n=!0);var o=t.width,r=t.height,s=t.cols,a=t.rows,l=t.minWidth,c=t.minHeight,d=t.maxWidth,u=t.maxHeight,h=t.gravity,f=t.collapsed,p=t.$fixed,g=-1===Math.sign(h)?0:h;"boolean"==typeof h&&(g=h?1:0);var _="boolean"==typeof h?!h:-1===Math.sign(h);this._isXDirection()?(p||o||void 0===h&&(l||d))&&(_=!0):(p||r||void 0===h&&(c||u))&&(_=!0);var v,h=this._checkFullSizeCell(),_=_&&!h?0:!h&&g||1,g=this._isXDirection()?"x":"y";return void 0===l||f||(e.minWidth=l),void 0===c||f||(e.minHeight=c),void 0!==d&&(e.maxWidth=d),void 0!==u&&(e.maxHeight=u),void 0===this._parent&&(g=!0),h||void 0===o||"content"===o?!0===g?e.width="100%":"x"===g&&(i?e.flex="0 0 auto":(v=this._isXDirection()?"1px":"auto",e.flex=_+" "+(s||a?"0 "+v:"1 auto"))):e.width=o,h||void 0===r||"content"===r?!0===g?e.height="100%":"y"===g&&(n?e.flex="0 0 auto":(v=this._isXDirection()?"auto":"1px",e.flex=_+" "+(s||a?"0 "+v:"1 auto"))):e.height=r,!0===g&&void 0===t.width&&void 0===t.height&&(e.flex=_+" 1 auto"),f&&(this._isXDirection()?e.width="auto":e.height="auto",e.flex="0 0 auto"),e}},g.prototype._resizedWindow=function(){var t;void 0===this._isLastFlexCell?this._isLastFlexCell=(null===(t=this._getAnyFlexCell(!0))||void 0===t?void 0:t.id)===this.id:this._isLastFlexCell||window.removeEventListener("resize",this._afterWindowResized),this._isLastFlexCell&&(t=this._isXDirection()?"width":"height",this.config[t]=void 0,this.paint())},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 e=this;if(!this._parent)return!1;var t=this._isXDirection()?"$autoWidth":"$autoHeight";if(!this.config[t])return!1;t=this._parent._cells.filter(function(t){return t!==e&&!t.config.hidden});return!!t.length&&t.every(function(t){return t.config.collapsed})},g);function g(t,e){var i=r.call(this,t,e)||this;return i._disabled=[],t&&t.isVisible&&(i._parent=t),i._parent&&i._parent.events?i.events=i._parent.events:i.events=new a.EventSystem(i),i.config.full=void 0===i.config.full?Boolean(i.config.header||i.config.collapsable||i.config.headerHeight||i.config.headerIcon||i.config.headerImage):i.config.full,i._afterWindowResized=i._resizedWindow.bind(i),i._initHandlers(),i.id=i.config.id||d.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=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.PopupEvents||(e.PopupEvents={})).beforeHide="beforeHide",e.beforeShow="beforeShow",e.afterHide="afterHide",e.afterShow="afterShow",e.click="click"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.SliderEvents||(e.SliderEvents={})).beforeChange="beforeChange",e.change="change",e.focus="focus",e.blur="blur",e.keydown="keydown",e.mousedown="mousedown",e.mouseup="mouseup"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.TimepickerEvents||(e.TimepickerEvents={})).beforeChange="beforeChange",e.change="change",e.beforeApply="beforeApply",e.afterApply="afterApply",e.beforeClose="beforeClose",e.afterClose="afterClose",e.apply="apply",e.close="close",e.save="save"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e=e.CalendarEvents||(e.CalendarEvents={})).change="change",e.beforeChange="beforechange",e.modeChange="modeChange",e.monthSelected="monthSelected",e.yearSelected="yearSelected",e.cancelClick="cancelClick",e.dateMouseOver="dateMouseOver",e.dateHover="dateHover"},function(t,i,e){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(i,"__esModule",{value:!0});var r=e(1),f=e(0),s=e(5),p=e(2),a=e(107),l=e(8),c=e(6),d=e(26),u=e(50),g=e(30),_=e(111),v=e(53),m=e(22),y=e(54),x=e(55);i.$template=function(t){return t.icon?f.el("div.dhx_combobox-options-wrapper",[f.el("span",{class:t.icon+" dhx_combobox-options__icon"}),f.el("span",{class:"dhx_combobox-options__value"},t.value)]):t.src?f.el("div.dhx_combobox-options-wrapper",[f.el("img",{class:"dhx_combobox-options__image",alt:t.value,src:t.src}),f.el("span",{class:"dhx_combobox-options__value"},t.value)]):f.el("span",{class:"dhx_combobox-options__value"},t.value)};var b,o=(b=l.View,o(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?r.wrapBox(e):Array.isArray(e)?e.join(","):e},w.prototype.setValue=function(t){return this._setValue(t,!1)},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)),i=this.config.multiselection&&e?h(this.list.selection.getId(),[i]):i,this.setValue(i))},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(),this.config.multiselection?("string"==typeof t&&(t=t.split(",")),"number"==typeof t&&(t=[t]),t.forEach(function(t){i.list.selection.add(t,!1,!1,e)})):(t=r.unwrapBox(t),this.list.selection.add(t,!1,!1,e),(t=this.data.getItem(t))&&(this._state.value=this._getItemText(t))),this.paint()},w.prototype._createLayout=function(){var t=this.list=new u.List(null,{$template:i.$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 d.Layout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(y.selectAllView)},w.prototype._initHandlers=function(){var i=this;this.config.helpMessage&&(this._helper=new g.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={addOption:function(){return i.addOption(i._state.value)},showHelper:function(t){t.preventDefault(),t.stopPropagation(),i._helper.show(t.target,{mode:"left"===i.config.labelPosition?"bottom":"right",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!==a.KEY_CODES.DOWN_ARROW||i._showOptions(),i.popup.isVisible()&&(t.which===a.KEY_CODES.RIGHT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(u.MOVE_DOWN),t.preventDefault()),t.which===a.KEY_CODES.LEFT_ARROW&&i.config.readOnly&&!i.config.multiselection&&(i.list.moveFocus(u.MOVE_UP),t.preventDefault()),t.which===a.KEY_CODES.DOWN_ARROW&&(i.list.moveFocus(u.MOVE_DOWN),t.preventDefault()),t.which===a.KEY_CODES.UP_ARROW&&(i.list.moveFocus(u.MOVE_UP),t.preventDefault()),t.which===a.KEY_CODES.ESC&&i._hideOptions(),t.which===a.KEY_CODES.ENTER&&(i.data.getLength()?(e=i.list.getFocus(),e=i.config.multiselection?h(i.list.selection.getId(),[e]):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===a.KEY_CODES.BACKSPACE&&!i._state.value&&i.config.multiselection&&i.list.selection.getId().length&&(t=(t=i.list.selection.getId())[t.length-1],i.list.selection.remove(t),i._changePopupPosition(),i.paint()))},oninput:function(t){i.config.disabled||(t=t.target.value,i.events.fire(x.ComboboxEvents.input,[t]),i._state.value=t,i._filter(),t.length?i._state.canDelete=!1:(i._state.ignoreNext=!0,i._state.canDelete=!0),i.config.multiselection||(i.list.selection.remove(),i.paint()),i.popup.isVisible()||i._showOptions(),i._updatePopup())},oninputclick:function(t){if(!i.config.disabled){if(i.focus(),t.target.classList.contains("dhx_combobox__action-remove")){var e=null===(e=i.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;return r.isId(e)?(i.list.selection.remove(e),i._changePopupPosition(),void i.paint()):void 0}if(t.target.classList.contains("dhx_combobox__action-clear-all"))return i.list.selection.getId().forEach(function(t){return i.list.selection.remove(t)}),i.config.selectAllButton&&i._state.unselectActive&&(i._layout.getCell("select-unselect-all").attach(y.selectAllView),i._state.unselectActive=!1),void i.paint();t.preventDefault(),i.popup.isVisible()?i.focus():i._showOptions()}},toggleIcon:function(){i.focus(),i.popup.isVisible()?i._hideOptions():i._showOptions()},onfocus:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(x.ComboboxEvents.focus,[])},onblur:function(){var t;return null===(t=i.events)||void 0===t?void 0:t.fire(x.ComboboxEvents.blur,[])}}},w.prototype._initEvents=function(){var i=this;this.data.events.on(c.DataEvents.load,function(){i.config.value&&i._setValue(i.config.value,!0)}),this.data.events.on(c.DataEvents.afterAdd,function(){i.config.multiselection?i._changePopupPosition():i._hideOptions()}),this.list.events.on(u.ListEvents.click,function(){i.config.multiselection||i._hideOptions(),i._changePopupPosition()}),this.list.selection.events.on(m.SelectionEvents.beforeSelect,function(t){t=i.config.multiselection?h(i.getValue(i.config.multiselection),[t]):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(g.PopupEvents.beforeShow,function(){if(!i.popup.isVisible()&&!i._isPopupConfiqureted)return i._configurePopup(),!1}),this.config.readOnly&&this.popup.events.on(g.PopupEvents.afterShow,function(){var t;i._state.value?(t=i.list.selection.getId(),i.list.setFocus(t)):i.list.setFocus(i.data.getId(0)),i._keyListener.startNewListen(function(t){return i._findBest(t)})})},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=""),f.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):r.isEqualString(n._state.value,n._getItemText(t))}),this.config.multiselection?this.list.setFocus(this.data.getId(0)):(e=this.data.getIndex(this.list.selection.getId()),this.list.setFocus(this.data.getId(-1<e?e:0))),t=this._layout.getCell("list"),e=this._layout.getCell("not-found"),0===this.data.getLength()?(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").hide(),t.hide(),this._state.creatingState=!0,i=this.config.newOptions?this._state.value:"",e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").show(),!(this._state.value&&this.data.find(function(t){return t.value===n._state.value}))&&this._state.value?(this._state.creatingState=this.config.newOptions,t.show(),this.config.newOptions?(i=this._state.value,e.height=y.emptyListHeight(i,this.getRootView().refs.holder.el.offsetWidth),e.attach(y.emptyListView,i),e.show()):e.hide()):(this._state.creatingState=!1,e.isVisible()&&(t.show(),e.hide()))))},w.prototype._findBest=function(e){var i=this,t=this.data.find(function(t){return r.isEqualString(e,i._getItemText(t))});t&&this.list.selection.getId()!==t.id&&(this.list.setFocus(t.id),this.paint())},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(){if(!this.config)return f.el("div");var t=this.config,e=t.multiselection,i=t.labelPosition,n=t.hiddenLabel,o=t.required,r=t.disabled,s=t.css,a=t.helpMessage,l=t.readOnly,c=t.placeholder,d=e?null:this.data.getItem(this.list.selection.getId()),u=!this.list.selection.getId()||"object"==typeof this.list.selection.getId()&&0===this.list.selection.getId().length,t=p.getLabelStyle(this.config),e=this.config.htmlEnable&&this.config.template&&!this.config.multiselection&&(this.config.readOnly||!this.popup.isVisible());return f.el("div",{"data-dhx-widget-id":this._uid,onkeydown:this._handlers.onkeydown,onkeyup:this._handlers.onkeyup,class:"dhx_widget dhx_combobox"+("left"===i?" dhx_combobox--label-inline":"")+(n?" dhx_combobox--sr_only":"")+(o?" dhx_combobox--required":"")+(r?" dhx_combobox--disabled":"")+(s?" "+s:"")},[t?f.el("label.dhx_label.dhx_combobox__label",{style:t.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.oninputclick},a?[(t.label||o)&&f.el("span.dhx_label__holder",t.label),f.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,id:"dhx_label__help_"+this._uid})]:t.label):null,f.el("div.dhx_combobox-input-box"+(r?".dhx_combobox-input-box--disabled":"")+(l?".dhx_combobox-input-box--readonly":"")+(this._state.currentState===x.ComboState.error?".dhx_combobox-input-box--state_error":"")+(this._state.currentState===x.ComboState.success?".dhx_combobox-input-box--state_success":""),{_ref:"holder"},[f.el("div.dhx_combobox-input__icon",{onclick:this._handlers.toggleIcon},[f.el("span"+(this.popup.isVisible()?".dxi.dxi-menu-up":".dxi.dxi-menu-down"))]),f.el("div.dhx_combobox-input-list-wrapper",{onclick:this._handlers.oninputclick},[f.el("ul.dhx_combobox-input-list",h(this._drawSelectedItems(),[f.el("li.dhx_combobox-input-list__item.dhx_combobox-input-list__item--input",[e&&d?f.el("div.dhx_combobox-input__template",{".innerHTML":this.config.template(d)}):null,f.el("input.dhx_combobox-input",{style:{opacity:e?0:null},oninput:this._handlers.oninput,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_ref:"input",_key:this._uid,type:"text",placeHolder:u&&c?c:void 0,value:l&&d?this._getItemText(d):this._state.value,readOnly:l||r,required:o,"aria-label":l?"Select value":"Type or select value","aria-describedby":a?"dhx_label__help_"+this._uid:null,"aria-expanded":!0})])]))])])])},w.prototype._drawSelectedItems=function(){var t,n=this;if(!this.config.multiselection)return[];if(this.config.itemsCount){var e=this.list.selection.getId().length;return e?[f.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",[f.el("span.dhx_combobox-tag__value",(t=e,"function"==typeof(e=this.config.itemsCount)?e(t):t+" "+v.default.selectedItems)),f.el("button.dhx_button.dhx_combobox-tag__action.dhx_combobox__action-clear-all",{"aria-label":"clear all"},[f.el("span.dhx_button__icon.dxi.dxi-close-circle")])])]:[]}return this.list.selection.getId().map(function(t){var e=n.data.getItem(t);if(!e)return null;var i=n._drawImageOrIcon(e);return f.el("li.dhx_combobox-input-list__item.dhx_combobox-tag",{"data-dhx-id":t},h(i||!n.config.template?[i,f.el("span.dhx_combobox-tag__value",n._getItemText(e))]:[f.el("span.dhx_combobox-tag__template",{".innerHTML":n.config.template(e)})],[f.el("button.dhx_button.dhx_button--icon.dhx_combobox-tag__action.dhx_combobox__action-remove",{type:"button","aria-label":"remove"},[f.el("span.dhx_button__icon.dxi.dxi-close-circle")])]))})},w.prototype._drawImageOrIcon=function(t){return t.src?f.el("img.dhx_combobox-tag__image",{src:t.src,alt:""}):t.icon?f.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)))&&void 0!==t?t:"",this.paint()},w.prototype._changePopupPosition=function(){var t=this;this.config.multiselection&&f.awaitRedraw().then(function(){t._updatePopup()})},w.prototype._updatePopup=function(){var t=this.getRootView().refs.holder.el;this.popup.getContainer().style.width=t.offsetWidth+"px";var e=this.data.getLength()*(this.config.itemHeight||36);"string"==typeof this.config.listHeight&&this.config.listHeight.includes("px")&&(this.config.listHeight=this.config.listHeight.replace("px",""));e=e<this.config.listHeight?e:this.config.listHeight;this.popup.getContainer().style.height=Number(e)+(this.config.selectAllButton&&this.config.multiselection&&this._layout.getCell("select-unselect-all").isVisible()?33:0)+(this._state.creatingState?this._layout.getCell("not-found").height:0)+"px",this.popup.show(t,{mode:"bottom",theme:this.getRootNode()})},w);function w(t,e){var i=b.call(this,t,r.extend({listHeight:224,itemHeight:36,disabled:!1,readOnly:!1,newOptions:!1,htmlEnable:!0},e))||this;i.config.itemsCount=i.config.itemsCount||i.config.showItemsCount,i.config.helpMessage=i.config.helpMessage||i.config.help,i.config.cellHeight&&36===i.config.itemHeight&&(i.config.itemHeight=i.config.cellHeight),i.config.labelInline&&(i.config.labelPosition="left"),Array.isArray(i.config.data)?(i.events=new s.EventSystem(i),i.data=new c.DataCollection({}),i.data.parse(i.config.data)):i.config.data?(i.data=i.config.data,i.events=new s.EventSystem(i),i.events.context=i):(i.events=new s.EventSystem(i),i.data=new c.DataCollection({})),i.popup=new g.Popup,i.popup.events.on(g.PopupEvents.afterShow,function(){i.paint()}),i.popup.events.on(g.PopupEvents.afterHide,function(){i.config.multiselection&&(i._state.value=""),i.paint()}),i.popup.events.on(g.PopupEvents.beforeHide,function(t){t&&i._hideOptions()}),(i.config.readonly||i.config.readOnly)&&(i.config.readOnly=i.config.readOnly||i.config.readonly,i._keyListener=new _.KeyListener),i._state={value:"",ignoreNext:!1,canDelete:!1,unselectActive:!1,currentState:x.ComboState.default,creatingState:!1},i._initHandlers(),i._createLayout(),i.config.value&&i._setValue(i.config.value,!0),i._initEvents();e=f.create({render:function(){return i._draw()},hooks:{didRedraw:function(){i.popup.isVisible()&&(i.focus(),i._configurePopup())}}});return i.mount(t,e),i}i.Combobox=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(51)),n(e(110)),n(e(52)),n(e(32))},function(t,r,e){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(r,"__esModule",{value:!0});var l=e(1),c=e(6),d=e(0),u=e(25),h=e(22),o=e(8),f=e(52),p=e(2),g=e(32),_=e(108);r.MOVE_UP=1,r.MOVE_DOWN=2;var v,i=(v=o.View,i(m,v),m.prototype._didRedraw=function(t){},m.prototype._dblClick=function(t){var e=p.locate(t);e&&(e=this.data.getItem(e).id,this.config.editable&&this.editItem(e),this.events.fire(g.ListEvents.doubleClick,[e,t]))},m.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},m.prototype._dragStart=function(t){var e=this;this._touch.start=!0;var i=[],n=p.locateNode(t,"data-dhx-id"),o=n&&n.getAttribute("data-dhx-id"),n=this.selection.getId();return this.config.multiselection&&n instanceof Array&&(n.map(function(t){t!==o&&e.getRootView().refs[t]&&i.push(e.getRootView().refs[t].el)}),n=a(n)),"string"==typeof n&&(n=[n]),this.config.dragMode&&!this._edited?c.dragManager.onMouseDown(t,n||[o],i):null},m.prototype.disableSelection=function(){this.selection.disable()},m.prototype.enableSelection=function(){this.selection.enable()},m.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(g.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(g.ListEvents.afterEditStart,[t])):this._edited=null},m.prototype.editEnd=function(t,e){var i;this._edited&&(null!==t&&(i=this.data.getItem(e),this.data.update(e,s(s({},i),{value:t})),this._changed=!0),this._edited=null,this.paint())},m.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},m.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.events.fire(g.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.showItem(t),this.paint())},m.prototype.getFocus=function(){return this._focus},m.prototype.destructor=function(){this.events&&this.events.clear(),this.keyManager&&this.keyManager.destructor(),this.selection&&this.selection.destructor(),this.config=this.events=this.selection=this.keyManager=null,this._handlers=this._focus=this._edited=this._events=this._topOffset=this._visibleHeight=this._touch=null,this.unmount()},m.prototype.showItem=function(t){var e,i,n,o=this.getRootView();o&&o.node&&o.node.el&&void 0!==t&&((e=this.getRootNode())&&(i=this.config.virtual,n=this.data.getIndex(t),o=Math.floor(n/e.children.length)||0,t=e.children[n-e.children.length*o],(i||t)&&(o=i?parseInt(this.config.itemHeight):t.clientHeight,(t=i?n*o:t.offsetTop)>=e.scrollTop+e.clientHeight-o?e.scrollTo(0,t-e.clientHeight+o):t<e.scrollTop&&e.scrollTo(0,t))))},m.prototype._renderItem=function(t,e){var i=this.config.itemHeight;if(t.$empty)return d.el("li",{class:"dhx_list-item",style:{height:i}});var n="";this.config.template&&(n=this.config.template(t)),t.html&&(n=t.html);var o=t.id==this._focus&&this.config.keyNavigation;if(t.id==this._edited)return _.getEditor(t,this).toHTML();var r=this.data.getMetaMap(t),o=s(s(s(s({},this._events),{class:"dhx_list-item"+(r&&r.selected?" dhx_list-item--selected":"")+(o?" dhx_list-item--focus":"")+(r&&r.drop&&!this._edited?" dhx_list-item--drophere":"")+(r&&r.drag&&!this._edited?" dhx_list-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_list-item--drag":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,_ref:t.id.toString(),style:{height:i},_key:t.id}),this.getItemAriaAttrs(this,t)),{tabindex:o?0:-1});if(n)return n===t.html||this.config.htmlEnable?(o[".innerHTML"]=n,d.el("li",o)):d.el("li",o,n);if(this.config.$template)return d.el("li",o,[this.config.$template(t)]);t=t.text||t.value;return this.config.htmlEnable?o[".innerHTML"]=t:o.class+=" dhx_list-item--text",this.config.htmlEnable?d.el("li",o):d.el("li",o,t)},m.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});return this.config.virtual&&(e=a([d.el(".div",{style:{height:t[2]+"px"}})],e,[d.el(".div",{style:{height:t[3]+"px"}})])),d.el("ul.dhx_widget.dhx_list",s(s({style:{"max-height":this.config.height,position:"relative"},tabindex:0,class:(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),e)},m.prototype.moveFocus=function(t,e){var i,n,o=this.data.getLength();o&&(n=(i=this._focus)?this.data.getIndex(i):-1,e=e||1,t===r.MOVE_DOWN?i=this.data.getId(Math.min(n+e,o-1)):t===r.MOVE_UP&&(i=this.data.getId(Math.max(n-e,0))),this.setFocus(i))},m.prototype._getRange=function(){if(this.config.virtual){var t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight),i=this.data.getRawData(0,-1).length,n=i*e,o=this._topOffset,o=Math.max(0,Math.min(o,n-t)),r=Math.floor(o/e),t=Math.min(i-r,Math.floor(t/e)+5);return this._topOffset=o,[r,t+r,r*e,n-e*(t+r)]}return[0,-1,0,0]},m.prototype._getHotkeys=function(){var n=this;return{arrowDown:function(t){n.moveFocus(r.MOVE_DOWN),n._changed&&(n._changed=!1),t.preventDefault()},arrowUp:function(t){n.moveFocus(r.MOVE_UP),n._changed&&(n._changed=!1),t.preventDefault()},escape:function(){n.editEnd(null),n._changed&&(n._changed=!1)},enter:function(t){var e,i;n._changed?n._changed=!1:(i=(e=n.selection.getItem())instanceof Array?null===(i=e[0])||void 0===i?void 0:i.id:null==e?void 0:e.id,n.config.editable&&!n._edited&&(e&&i===n._focus||!e)?n.editItem(n._focus):n.selection.add(n._focus),n.events.fire(g.ListEvents.click,[n._focus,t]))},"shift+enter":function(t){n.selection.add(n._focus,!1,!0),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+enter":function(t){n.selection.add(n._focus,!0,!1),n.events.fire(g.ListEvents.click,[n._focus,t])},"ctrl+a":function(t){n.config.multiselection&&(t.preventDefault(),n.selection.remove(),n.data.map(function(t){return t.id}).forEach(function(t){"ctrlClick"===n.config.multiselection?n.selection.add(t,!0):n.selection.add(t)}))}}},m.prototype._initHotKey=function(){var t,e=this._getHotkeys();for(t in e)this.keyManager.addHotKey(t,e[t]);for(t in this.config.hotkeys)this.keyManager.addHotKey(t,this.config.hotkeys[t])},m.prototype.getItemAriaAttrs=function(t,e){var i,n,o;return s(s({role:"option","aria-selected":e.$selected?"true":"false"},(o=e,(n=t).config.dragMode&&!n._edited?{"aria-grabbed":Boolean(o.$dragtarget&&!n._edited).toString()}:{})),(i=t).config.editable?{"aria-roledescription":i._edited?"Press Enter to stop editing":"Double click to edit content"}:{})},m.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox "+(t.title||"")+", count of options = "+e+"."+(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},m);function m(t,e){void 0===e&&(e={});var n=this,i=e.itemHeight||(e.virtual?37:null);i&&"number"==typeof i&&(i=i.toString()+"px"),(n=v.call(this,t,l.extend({itemHeight:i,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},e))||this)._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null};e=n.config.data;e instanceof c.DataCollection?(n.data=e,n.events=e.events):(n.data=new c.DataCollection({}),n.events=n.data.events,e&&n.data.parse(e)),n.selection=new f.Selection({disabled:!n.config.selection,multiselection:n.config.multiselection},n.data,n.events),n.config.keyNavigation&&(n.keyManager=new u.KeyManager(function(t,e){return e==n._uid&&(!n._edited||n._edited&&"escape"!==t.key)}),n._initHotKey()),n.events.on(c.DataEvents.change,function(t,e,i){"setPage"===e&&n.showItem(n.data.getId(i[0])),n.paint()}),n.events.on(h.SelectionEvents.afterUnSelect,function(){return n.paint()}),n.events.on(h.SelectionEvents.afterSelect,function(t){l.isId(t)&&n.config.selection&&(n._focus=t),n.paint()}),n.events.on(g.ListEvents.afterEditEnd,n.editEnd.bind(n));e=function(e){return function(t){n.data.setMeta(n.data.getItem(t.target),"drop",e),n.paint()}};n.events.on(c.DragEvents.canDrop,e(!0)),n.events.on(c.DragEvents.cancelDrop,e(!1));e=function(e){return function(t){t.source.map(function(t){return n.data.setMeta(n.data.getItem(t),"drag",e)}),n.paint()}};n.events.on(c.DragEvents.dragStart,e(!0)),n.events.on(c.DragEvents.afterDrag,e(!1)),n._handlers={onmousedown:function(t){n._dragStart(t)},ontouchstart:function(t){n._touch.timer=setTimeout(function(){n._dragStart(t)},n._touch.duration),n._touch.timeStamp?(n._touch.dblDuration>=n._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),n._dblClick(t)),n._touch.timeStamp=null):n._touch.timeStamp=+t.timeStamp.toFixed(),setTimeout(function(){n._touch.timeStamp=null},n._touch.dblDuration)},ontouchmove:function(t){n._touch.start&&t.preventDefault(),n._clearTouchTimer()},ontouchend:function(){n._touch.start=!1,n._clearTouchTimer()},ondragstart:function(){return!(n.config.dragMode&&!n._edited)&&null},oncontextmenu:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&n.events.fire(g.ListEvents.itemRightClick,[e,t])},onclick:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&(n.selection.add(e,t.ctrlKey||t.metaKey,t.shiftKey),n.config.selection&&(n._focus=e),n.events.fire(g.ListEvents.click,[e,t]),n.paint())},ondblclick:function(t){n._dblClick(t)},onscroll:function(t){n.config.virtual&&(n._topOffset=t.target.scrollTop,n._visibleHeight=t.target.offsetHeight,n.paint())},onmouseover:function(t){var e=null===(e=n.data.getItem(p.locate(t)))||void 0===e?void 0:e.id;l.isId(e)&&e!==p.locate(t.relatedTarget)&&n.events.fire(g.ListEvents.itemMouseOver,[e,t])}};e=n.config.eventHandlers;if(e)for(var o=0,r=Object.entries(e);o<r.length;o++){var s=r[o],a=s[0],s=s[1];n._handlers[a]=p.eventHandler(function(t){return p.locate(t)},s,n._handlers[a])}n.config.dragMode&&c.dragManager.setItem(n._uid,n),n._topOffset=n._visibleHeight=0;e=d.create({render:function(){return n._renderList()},hooks:{didMount:function(t){n.config.virtual&&(n._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return n._didRedraw(t)}}});return n.mount(t,e),n}r.List=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(22),o=i(6),r=i(1),i=(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 r.isId(t)?this._selected.includes(t):0<this._selected.length},s.prototype.remove=function(t){var e=this;r.isId(t)?this._unselectItem(t):(this._selected.forEach(function(t){return e._unselectItem(t)}),this._selected=[])},s.prototype.add=function(t,e,i,n){var o,r=this;this.config.disabled||(void 0!==t?(o=this.config.multiselection,i&&this._selected.length&&o?this._addMulti(t,n):this._addSingle(t,o&&("ctrlClick"!==o||e),n)):this._data.serialize().filter(function(t){t=t.id;return!r._selected.includes(t)}).forEach(function(t){t=t.id;r._addMulti(t,n)}))},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=(t=[o,n])[0],o=t[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]))},s);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&&(e=n._data.getIndex(t.id),1<(t=n._data.getLength())&&(e=t==e-1?e-1:e+1,n._nextSelection=n._data.getId(e)))}),this._data.events.on(o.DataEvents.afterRemove,function(t){t=n._selected.indexOf(t.id);-1!==t&&n._selected.splice(t,1),r.isId(n._nextSelection)&&(n.add(n._nextSelection),n._nextSelection=null)})}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={notFound:"Not Found",selectAll:"Select All",unselectAll:"Unselect All",selectedItems:"selected items",createItem:"Create"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(53);e.selectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.selectAll)},e.unselectAllView=function(){return n.el(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.unselectAll)},e.emptyListView=function(t){return n.el("ul.dhx_list",[n.el("li.dhx_list-item.dhx_combobox-options__item"+(t?".dhx_combobox-options__action-create-option":""),{},t?o.default.createItem+' "'+t+'"':o.default.notFound)])},e.emptyListHeight=function(t,e){var i=document.createElement("canvas").getContext("2d",{alpha:!1});return i.font="normal 14px Roboto",t=t?o.default.createItem+' "'+t+'"':o.default.notFound,13+20*Math.ceil(i.measureText(t).width/(e-16))}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.ComboboxEvents||(e.ComboboxEvents={})).beforeChange="beforeChange",n.change="change",n.focus="focus",n.blur="blur",n.keydown="keydown",n.input="input",n.beforeOpen="beforeOpen",n.afterOpen="afterOpen",n.beforeClose="beforeClose",n.afterClose="afterClose",n.open="open",n.close="close",(e=e.ComboState||(e.ComboState={}))[e.default=0]="default",e[e.error=1]="error",e[e.success=2]="success"},function(t,e,i){"use strict";var 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.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var S=i(0),E=i(4),D=i(16),k=i(57),O=i(7),T=i(10);e.getFixedColsHeader=function(t,e,i){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)){var n=t.leftSplit,o=t.rightSplit,r=t.$positions,s=t.$totalWidth,a=t.$scrollBarWidth,l=i===E.Split.right,c=l?t.fixedColumns.right:t.fixedColumns.left,d=O.getTotalWidth(c),c=k.getFixedRows(w(w({},t),{currentColumns:c,$positions:w(w({},r),{xStart:0,xEnd:l?o:n}),scroll:{top:0,left:0},filteredColumns:c}),w(w({},e),{name:"header",position:"top",shifts:{x:0,y:0}}),i),i=w(w({},e),{name:"header",position:"top"});return S.el(".dhx_"+i.name+"-fixed-cols",w({onwheel:O.scrollFixedColsAndRows,class:l?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:0,left:l?s<e.wrapper.width-a.y-T.BORDERS?s-d:e.wrapper.width-d-a.y-T.BORDERS:0,width:d,overflow:"hidden"}},{role:"rowgroup","aria-rowcount":c.length}),c.body)}},e.getFixedCols=function(t,e,i,n){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)){var o=t.leftSplit,r=t.rightSplit,s=t.$totalWidth,a=t.$totalHeight,l=t.headerHeight,c=t.footerHeight,d=t.$positions,u=t.scroll,h=t.data,f=t.$scrollBarWidth,p=i===E.Split.right,g=a+l+c,_=g>e.gridBodyHeight?t.$footer?g-f.x:e.gridBodyHeight:g<e.gridBodyHeight-f.x?g:t.$footer?e.gridBodyHeight:e.gridBodyHeight-f.x,v=p?t.fixedColumns.right:t.fixedColumns.left,m=O.getTotalWidth(v),y=p?"rightFixedCols":"leftFixedCols",x=D.getCells(w(w({},t),{filteredColumns:v,$renderFrom:y,$positions:w(w({},d),{xStart:0,xEnd:p?r:o})})),c=e.sticky,g=w(w({},e),{name:"footer",position:"bottom"}),o=k.getRows(w(w({},t),{currentColumns:v,$positions:w(w({},d),{xStart:0,xEnd:p?r:o})}),w(w({},e),{name:"footer",position:"bottom"})),b=0;o.forEach(function(t){return b+=t.attrs.style.height});v=k.getFixedSpans(w(w({},t),{filteredColumns:v}),w(w({},e),{name:"footer",position:"bottom"}),i),i=function(t){return{role:"rowgroup","aria-rowcount":t}},o=c?S.el(".dhx_"+g.name+"-fixed-cols",w({onwheel:O.scrollFixedColsAndRows,class:p?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:_<e.gridBodyHeight?_-b:null,left:p?s<e.wrapper.width-f.y-T.BORDERS?s-m:e.wrapper.width-m-f.y-T.BORDERS:0,bottom:_>=e.gridBodyHeight?(c?f.x:0)+"px":null}},i(o.length)),[o,S.el("span.dhx_span-spans",{class:"dhx_footer-spans",role:"presentation"},v)]):null,v=d,d=T.getEvents(t,p?E.Split.right:E.Split.left),n=D.getSpans(w(w({},t),{$renderFrom:y}),n||(p?E.Split.right:E.Split.left));return[S.el(".dhx_grid-fixed-cols-wrap",w(w({style:{left:p?s<e.wrapper.width-f.y-T.BORDERS?s-m:e.wrapper.width-m-f.y-T.BORDERS:0,height:_>=e.gridBodyHeight?(c?e.gridBodyHeight:e.gridBodyHeight+l)-f.x:_,paddingTop:l,overflow:"hidden",width:m}},d),{role:"presentation","aria-label":"Fixed column"}),[S.el(".dhx_grid-fixed-cols",w(w({onwheel:O.scrollFixedColsAndRows,class:p?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{top:-u.top+l-1+"px",paddingTop:e.shifts.y,height:a,position:"absolute"},_flags:S.KEYED_LIST},D.getHandlers(v.yStart,v.xStart,t)),i(h.length)),C(x,[n&&S.el("span.dhx_span-spans",{role:"presentation"},[n])])),p?S.el(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:0}}):S.el(".dhx_grid__cols-border--frozen",{role:"presentation",style:{right:0}})]),t.$footer?o:null]}}},function(t,e,i){"use strict";var w=this&&this.__assign||function(){return(w=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},C=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var S=i(0),m=i(21),E=i(7),D=i(4),k=i(16),O=i(56),T=i(10),y=i(1),M=2;function n(t,e,i,n){i&&(i.toLocaleLowerCase().includes("touch")?e._events:e.events).fire(i,[t,n])}function b(t,e,i){return{onclick:[n,t,i,D.GridEvents[e+"CellClick"]],onmouseover:[n,t,i,D.GridEvents[e+"CellMouseOver"]],onmousedown:[n,t,i,D.GridEvents[e+"CellMouseDown"]],ontouchstart:[n,t,i,D.GridEvents[e+"CellMouseDown"]],ondblclick:[n,t,i,D.GridEvents[e+"CellDblClick"]],oncontextmenu:[n,t,i,D.GridEvents[e+"CellRightClick"]],ontouchmove:[n,t,i,D.GridSystemEvents[e+"CellTouchMove"]],ontouchend:[n,t,i,D.GridSystemEvents[e+"CelltouchEnd"]]}}function P(t,e,i,n,o,r){void 0===o&&(o="");var s=e.type?"dhx_"+e.type+"-cell":"dhx_string-cell",t=i.content[t.content]&&i.content[t.content].toHtml(e,i),a={};return i.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}),S.el("."+s,{style:{class:o.trim(),padding:0}},[t&&("string"==typeof t||"number"==typeof t?S.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(f,t){if(!f.data||!f.filteredColumns)return[];var e,p,g=f.$positions,_=t.name,v=f.currentColumns,m=f[_+"RowHeight"]||40,y=(e=_,t=(t=v).map(function(t){return t[e]||[{}]}),E.transpose(t)),x=1;return y.map(function(t,h){return S.el(".dhx_"+_+"-row",w({style:{height:m}},{role:"row","aria-rowindex":h+1}),t.map(function(n,t){var e=n.css||"",i=v[t],o=g.xStart+t+1,r="dxi dxi-sort-variant dhx_grid-sort-icon",s="none";f.sortBy&&""+i.id===f.sortBy&&!n.content&&(r+=" dhx_grid-sort-icon--"+(l=f.sortDir||"asc"),e+=" dhx_grid-"+_+"-cell--sorted ",s="asc"===l?"ascending":"descending");var a=E.isSortable(f,i)&&n.text&&"footer"!==_&&!1!==n.headerSort;a&&(e+=" dhx_grid-header-cell--sortable");var l=0===t?"dhx_first-column-cell":"",t=t===v.length-1?"dhx_last-column-cell":"";n.content||(n.align?e+=" dhx_grid-header-cell--align_"+n.align+" ":e+=" dhx_grid-header-cell--"+("number"===i.type||"percent"===i.type||"date"===i.type?"align_right":"align_left")+" "),e+=l+" "+t;t=(void 0!==i.resizable?i:f).resizable;t&&(u=f.rightSplit&&f.$scrollBarWidth.xState&&f.fixedColumns.right.includes(i),t=S.el("div",{class:"dhx_resizer_grip_wrap","aria-hidden":"true"},[S.el("div",{class:"dhx_resizer_grip"+(u?" dhx_resizer_grip--left":" dhx_resizer_grip--right"),dhx_resized:i.id,style:{height:100*y.length+"%"}},[S.el("div",{class:"dhx_resizer_grip_line"})])]),(u=i.header&&(null===(c=i.header[0])||void 0===c?void 0:c.colspan))&&(p=u,x=1),p&&x!==p&&(0===h&&(t=null),x++),"footer"===_&&(t=null)),n.align&&(e+=" dhx_align-"+n.align);var c=function(t,e,i){e={"aria-colindex":e};return"footer"===t||n.content?e.role="gridcell":(e.role="columnheader",e["aria-sort"]=i),e};if(n.content)return S.el(".dhx_grid-"+_+"-cell.dhx_grid-custom-content-cell",w(w({class:e.trim(),"data-dhx-id":i.id,_key:i.id,style:{width:i.$width,height:"footer"===_?m+M/2+"px":m+"px"}},b(i,_,f)),c(_,o,s)),[P(n,i,f,_,"",h),t||null]);var d,u="dhx_grid-header-cell-text_content";return f.autoHeight&&(u+=" dhx_grid-header-cell-text_content-auto-height"),S.el(".dhx_grid-"+_+"-cell",w(w({class:e.trim(),"data-dhx-id":i.id,_key:i.id,style:{width:i.$width,height:"footer"===_?m+M/2+"px":m+"px"}},b(i,_,f)),c(_,o,s)),[S.el("div.dhx_grid-header-cell-text",{role:"presentation"},[S.el("span",w(w({class:u},(d=n.text,a?{role:"button","aria-label":"Sort by "+d}:{})),{".innerHTML":n.text})),t||null]),a&&S.el("div",{class:r,"aria-hidden":"true"})])}))})}function h(u,h,f){var p=u.filteredColumns,t=E.transpose(p.map(function(t){return t[h.name]||[]})),g=u[h.name+"RowHeight"]||40,_=h.name,v=0;return t.map(function(t,d){return v=0,S.el(".dhx_span-row",{style:{top:g*d+"px",height:g},class:"dhx_header-row","aria-hidden":"true"},t.map(function(t,e){var i=p[e];v+=i.hidden?0:i.$width;var n=0===e?"dhx_first-column-cell":"",o=f?1:u.fixedColumns.right.length+1,r=e===p.length-o||(t.colspan||0)+(e-1)>=p.length-o?"dhx_last-column-cell":"",s=g;t.rowspan&&(s=s*t.rowspan-1),"footer"===h.name&&1<t.rowspan&&s++;var a=E.isSortable(u,i)&&t.rowspan&&t.text&&"footer"!==h.name&&!1!==t.headerSort,l="dxi dxi-sort-variant dhx_grid-sort-icon";u.sortBy&&""+i.id===u.sortBy&&!t.content&&(l+=" dhx_grid-sort-icon--"+(u.sortDir||"asc"));var c=i.align?"dhx_align-"+i.align:"number"!==i.type&&"percent"!==i.type&&"date"!==i.type||t.colspan?"dhx_align-left":"dhx_align-right",o="dhx_grid-header-cell "+n+" "+r+" "+(t.rowspan?"dhx_span-cell__rowspan":"")+" "+(t.align?"dhx_align-"+t.align:c)+" "+(t.css||"");a&&(o+=" dhx_grid-header-cell--sortable"),t.content||(t.align?o+=" dhx_grid-header-cell--align_"+t.align+" ":o+=" dhx_grid-header-cell--"+("number"===i.type||"percent"===i.type||"date"===i.type?"align_right":"align_left")+" ");n=null;t.content&&((n=P(t,i,u,_,o,d)).attrs.style=w(w({},n.attrs.style),{width:"100%",borderRight:"0"}));r="";0<v-i.$width&&(r="var(--dhx-border)");c="dhx_grid-header-cell-text_content";return u.autoHeight&&(c+=" dhx_grid-header-cell-text_content-auto-height"),t.colspan||t.rowspan?S.el(".dhx_span-cell",w({style:{width:m.getWidth(u.columns,e+t.colspan>p.length?p.length-e:t.colspan,y.findIndex(u.columns,function(t){return t.id===i.id})),height:s,left:v-i.$width,borderLeft:r,top:g*d},class:o.trim(),"data-dhx-id":i.id},b(i,_,u)),[n||t.rowspan?S.el("div.dhx_grid-header-cell-text",{role:"presentation"},[S.el("span",{class:c,".innerHTML":t.text})]):S.el("span",{class:c,".innerHTML":t.text}),a&&S.el("div",{class:l})]):null}).filter(function(t){return t}))})}function H(t){return{role:"rowgroup","aria-rowcount":t}}e.getRows=u,e.getFixedSpans=h,e.getFixedRows=function(i,n,t){var o,r,s=i.leftSplit,e=i.$totalWidth,a=u(i,n),l=h(i,n,t),t=null;"footer"!==n.name||n.sticky||(o=i.rightSplit,r=i.fixedColumns,t=C((d=function(t){void 0===t&&(t=!1);var e=t?r.right:r.left;return!t&&0<=s||t&&0<=o?u(w(w({},i),{currentColumns:e,$positions:w(w({},i.$positions),{xStart:0,xEnd:t?o:s})}),n):[]})(),d(!0)));var c,d=((d={position:"sticky"})[n.position]=0,d);return n.sticky||(d.left=-i.scroll.left,c=-i.scroll.left,d.position="relative"),S.el(".dhx_"+n.name+"-wrapper"+(i.rightSplit?".dhx_grid__rows_right--fixed":""),{class:n.sticky?"":"dhx_compatible-"+n.name,style:w(w({},d),{left:n.sticky?c:0,height:"footer"===n.name?i[n.name+"Height"]+M/2:i[n.name+"Height"],width:n.sticky?e:n.wrapper.width-M}),role:"presentation"},[S.el(".dhx_grid-"+n.name+(s?".dhx_grid_fixed_left":""),{style:{height:"footer"===n.name?i[n.name+"Height"]+M/2:i[n.name+"Height"],left:c,paddingLeft:n.shifts.x,width:e},role:"presentation"},[S.el(".dhx_"+n.name+"-rows",w({},H(C(a).length)),C(a)),S.el(".dhx_"+n.name+"-spans",{style:{marginLeft:-n.shifts.x},class:"dhx_"+n.name+"-rows",role:"presentation"},l),t&&S.el(".dhx_"+n.name+"-fixed-cols",{style:{position:"absolute",top:0,left:i.scroll.left+"px",height:"100%"}},t)]),S.el("div",{style:{width:e},role:"presentation"})])},e.getFixedDataRows=function(e,i,n){if(!(n===D.Split.top&&"number"!=typeof e.topSplit||n===D.Split.bottom&&"number"!=typeof e.bottomSplit)){var 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===D.Split.bottom,p=f?e.fixedRows.bottom:e.fixedRows.top,g=f?"bottomFixedRows":"topFixedRows",_=k.getCells(w(w({},e),{data:p,$renderFrom:g,$positions:w(w({},s),{yStart:0,yEnd:f?r:o})})),v=T.getEvents(e,f?D.Split.bottom:D.Split.top),m=p.reduce(function(t,e){return t+e.$height},0),y=k.getSpans(w(w({},e),{$renderFrom:g,data:a}),f?D.Split.bottom:D.Split.top),x=E.getTotalHeight(e.fixedRows.bottom),b=function(t){return O.getFixedCols(w(w({},e),{headerHeight:0,data:p,$renderFrom:g,scroll:w(w({},e.scroll),{top:-1}),$positions:w(w({},s),{yStart:0,yEnd:f?r:o}),$totalHeight:m,$data:a}),w(w({},i),{shifts:w(w({},i.shifts),{y:0})}),t,n)||[]},b=C(b(D.Split.left),b(D.Split.right));return[S.el(".dhx_grid-fixed-data-rows-wrap",{class:f?"dhx_grid__rows_bottom--fixed":"",style:{top:f?l<i.wrapper.height-h.x-M?l+d-x+M/2:i.wrapper.height-x-u-M/2-h.x:d,overflow:"hidden",height:m>i.wrapper.height?i.wrapper.height:m,width:t+h.y+M<c?t:c-h.y-M}},C([S.el(".dhx_grid-fixed-cols",w(w({onwheel:E.scrollFixedColsAndRows,style:{left:-e.scroll.left+"px",paddingLeft:i.shifts.x,position:"absolute",width:t},_flags:S.KEYED_LIST},k.getHandlers(0,s.xStart,e)),H(a.length)),[S.el(".dhx_grid-fixed-rows",w({class:e.rightSplit?"dhx_grid__rows_right--fixed":""},v),C(_,[y&&S.el(".dhx_span-spans",{role:"presentation"},[y])]))])],b,[e.bottomSplit?S.el(".dhx_grid__rows-border--frozen",{role:"presentation"}):null]))]}}},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(119)),n(e(120)),n(e(121)),n(e(122)),n(e(33))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,e,i){"use strict";function n(t){var e=document.activeElement;e.classList.contains("dhx_alert__apply-button")&&"Enter"===t.key||e.classList.contains("dhx_alert__confirm-reject")||e.classList.contains("dhx_alert__confirm-aply")||t.preventDefault()}Object.defineProperty(e,"__esModule",{value:!0}),e.blockScreen=function(t){var e=document.createElement("div");return e.className="dhx_alert__overlay "+(t||""),document.body.appendChild(e),document.addEventListener("keydown",n),function(){document.body.removeChild(e),document.removeEventListener("keydown",n)}}},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var v=i(1),m=i(0),y=i(3),x=function(t){return t.toString()},b=function(t,e){return{role:"graphics-object","aria-label":t+"-axis"+(e?", "+e:"")}};e.bottom=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,f=[],c=0;return d&&(c=a,r=u&&!isNaN(u),s=n+a,f=t.map(function(t){var e,i=t[0],n=r?"rotate("+u+" "+i+" "+s+")":"",o=["scale-text","top-text"];return r&&(e=u%360,o.push(y.getClassesForRotateScale("bottom",e))),m.sv("text",{x:i,y:s,class:o.join(" "),transform:n},[y.verticalCenteredText(h(t[1]))])})),a=v.uid(),t=null,n=m.sv("path",{class:"main-scale",d:"M0 "+n+" H"+(i-.5),id:a}),o&&(t=m.sv("text",{dx:i/2,dy:l+c},[m.sv("textPath",{href:"#"+a,class:"scale-title "},o)])),m.sv("g",_({},b("x",o||e.text)),[n,t].concat(f))},e.bottomGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=n.targetValue,u=t.length,h=[],f="grid-line "+(a?"dash-line":"")+" "+(l?"":"hidden-line"),p=0;p<u;p++)0===p&&0===t[p][0]&&!n.hidden||(p!==c?(r="M"+t[p][0]+" 0 V "+i,s=m.sv("path",{d:r,class:f,_ref:"line"+Math.round(t[p][0])}),h.push(s),p===u-1&&t[p][0]!==e&&(o="M"+e+" 0 V "+i,o=m.sv("path",{d:o,class:f}),h.push(o))):(o="M"+t[p][0]+" 0 V "+i,o=m.sv("path",{d:o,class:f+" spec-grid-line"}),h.push(o)));return d&&(r="M"+d*e+" 0 V "+i,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.top=function(t,e,i,n){var r,s,o=e.title,a=e.textPadding,l=e.scalePadding,c=e.textTemplate,d=e.showText,u=e.scaleRotate,h=c||x,f=[],c=0;return d&&(c=a,r=u&&!isNaN(u),s=-a,f=t.map(function(t){var e,i=["scale-text"],n=t[0],o=r?"rotate("+u+" "+n+" "+s+")":"";return r&&(e=u%360,i.push(y.getClassesForRotateScale("top",e))),m.sv("text",{x:n,y:s,class:i.join(" "),transform:o},[y.verticalCenteredText(h(t[1]))])})),d=v.uid(),a=m.sv("path",{d:"M0 0 H"+i,class:"main-scale",id:d}),t=null,o&&(t=m.sv("text",{dx:i/2,dy:-l-c},[m.sv("textPath",{href:"#"+d,class:"scale-title"},o)])),m.sv("g",_({},b("x",o||e.text)),[a,t].concat(f))},e.topGrid=function(t,e,i,n){for(var o,r,s=n.dashed,a=n.grid,l=n.targetLine,c=t.length,d=[],u="grid-line "+(s?"dash-line":"")+" "+(a?"":"hidden-line"),h=0;h<c;h++)0===h&&0===t[h][0]&&!n.hidden||(h!==l?(o="M"+t[h][0]+" 0 V "+i,o=m.sv("path",{d:o,class:u,_ref:"line"+Math.round(t[h][0])}),d.push(o),h===c-1&&0!==t[h][0]&&(r="M0 0 V "+i,r=m.sv("path",{d:r,class:u}),d.push(r))):(r="M"+t[h][0]+" 0 V "+i,r=m.sv("path",{d:r,class:u+" spec-grid-line"}),d.push(r)));return m.sv("g",d)},e.left=function(t,e,i,n){var s,a,l,c=e.title,d=e.textPadding,o=e.scalePadding,r=e.textTemplate,u=e.showText,h=e.scaleRotate,f=r||x,p=[],g=0;return u&&(s=y.getFontStyle("scale-text"),a=0,l=h&&!isNaN(h),p=t.map(function(t){var e,i=t[0],n=-d,o=l?"rotate("+h+" "+n+" "+i+")":"",r=["scale-text"],t=f(t[1]);return c&&(e=y.getTextWidth(t,s),a<e&&(a=e)),l?(e=h%360,r.push(y.getClassesForRotateScale("left",e))):r.push("end-text"),m.sv("text",{x:n,y:i,class:r.join(" "),transform:o},[y.verticalCenteredText(t)])}),g=a+d),r=v.uid(),u=m.sv("path",{class:"main-scale",d:"M0 "+n+" V 0.5",id:r,_ref:t.length?"line0":null}),t=null,c&&(t=m.sv("text",{dx:n/2,dy:-o-g},[m.sv("textPath",{href:"#"+r,class:"scale-title"},c)])),m.sv("g",_({},b("y",c||e.text)),[u,t].concat(p))},e.leftGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=n.targetValue,u=t.length,h=[],f="grid-line "+(a?"dash-line":""),p=0;p<u;p++)0===p&&t[p][0]===i&&!n.hidden||(c!==p?l&&(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f}),h.push(s),p===u-1&&t[p][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:f}),h.push(o))):(r="M0 "+t[p][0]+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)));return d&&(r="M0 "+d*i+" H "+e,s=m.sv("path",{d:r,class:f+" spec-grid-line"}),h.push(s)),m.sv("g",h)},e.right=function(t,e,s,i){var a,l,c,d=e.title,u=e.textPadding,n=e.scalePadding,o=e.textTemplate,r=e.showText,h=e.scaleRotate,f=o||x,p=[],g=0;return r&&(a=y.getFontStyle("scale-text"),l=0,c=h&&!isNaN(h),p=t.map(function(t){var e,i=f(t[1]),n=t[0],o=s+u,r=c?"rotate("+h+" "+o+" "+n+")":"",t=["scale-text"];return d&&(e=y.getTextWidth(i,a),l<e&&(l=e)),c?(e=h%360,t.push(y.getClassesForRotateScale("right",e))):t.push("start-text"),m.sv("text",{x:o,y:n,class:t.join(" "),transform:r},[y.verticalCenteredText(i)])}),g=u+l),o=v.uid(),r=m.sv("path",{d:"M"+s+" "+i+" V 0",class:"main-scale",id:o,_ref:t.length?"line0":null}),t=null,d&&(t=m.sv("text",{dx:i/2,dy:n+g},[m.sv("textPath",{href:"#"+o,class:"scale-title"},d)])),m.sv("g",_({},b("y",d||e.text)),[r,t].concat(p))},e.rightGrid=function(t,e,i,n){for(var o,r,s,a=n.dashed,l=n.grid,c=n.targetLine,d=t.length,u=[],h="grid-line "+(a?"dash-line":""),f=0;f<d;f++)0===f&&t[f][0]===i&&!n.hidden||(c!==f?l&&(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h}),u.push(s),f===d-1&&t[f][0]!==e&&(o="M0 0 H"+e,o=m.sv("path",{d:o,class:h}),u.push(o))):(r="M0 "+t[f][0]+" H "+e,s=m.sv("path",{d:r,class:h+" spec-grid-line"}),u.push(s)));return m.sv("g",u)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,v=i(0),a=i(3),i=i(35),o=(s=i.default,o(l,s),l.prototype.paint=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[];return this._form(t,e,n,i),this._markers(n),v.sv("g",r(r({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},l.prototype.paintformAndMarkers=function(t,e,i){s.prototype.paint.call(this,t,e);var n=[],o=[];return this._form(t,e,n,i),this._markers(o),[v.sv("g",{class:"seria",_key:this.id},n),v.sv("g",{class:"seria_markers",_key:this.id+"_markers"},o)]},l.prototype._markers=function(t){var e,i,n=this;this.config.pointType&&(e=this.config.pointColor||this.config.color,i=this._getPointType(this.config.pointType,e),t.push.apply(t,this._points.map(function(t){return i(t[0],t[1],a.calcPointRef(t[2],n.id))})))},l.prototype._form=function(t,i,e,n){var o,r,s="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),a=this.config,l=a.id,c=a.fill,d=a.alpha,u=a.color,h=a.strokeWidth,f=this._points,a=f[f.length-1],p="";if(n){for(var g=n.length-1;0<=g;g--){var _=n[g];p+=g===f.length-1?"M"+_[0]+" "+_[1]+" ":"L"+_[0]+" "+_[1]+" "}p+=f.map(function(t,e){return e?"L "+t[0]+" "+t[1]:"V "+t[1]}).join(" ")+"Z"}else p+=f.map(function(t,e){return e?"L"+t[0]+" "+t[1]:"M0 "+i+" L0 "+t[1]+" L"+t[0]+" "+t[1]}).join(" ")+("L"+t+" "+a[1])+" V "+i;h&&(o=f.length-1,r=function(t){return t===o?-.5:t?0:.5},a=f.map(function(t,e){return e?"L"+(t[0]+r(e))+" "+t[1]:"M0 "+t[1]+" L0 "+(t[1]+r(e))+" L"+(t[0]+r(e))+" "+t[1]}).join(" ")+("L"+t+" "+a[1]),u=v.sv("path",{d:a,"stroke-width":h,stroke:u,fill:"none",class:s}),e.push(u));d=v.sv("path",{id:"seria"+l,d:p,class:s,fill:c,_ref:l,"fill-opacity":d,stroke:"none"});return e.push(d),e},l.prototype._setDefaults=function(t){var e={alpha:.3,strokeWidth:2,fill:t.color||"#5E83BA",color:"#5E83BA",active:!0,tooltip:!0,pointType:"empty"};this.config=r(r({},e),t);e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},l);function l(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(3),n={circle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2};return s.sv("circle",t)},rect:function(t,e,i,n,o,r){t={_ref:r,x:n-4,y:o-4,width:8,height:8,class:"figure point-rect",fill:e,stroke:t,"stroke-width":2};return s.sv("rect",t)},rhombus:function(t,e,i,n,o,r){t={_ref:r,points:n-5+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},triangle:function(t,e,i,n,o,r){t={_ref:r,points:n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return s.sv("polygon",t)},simpleCircle:function(t,e,i,n,o,r){t={_ref:r,cx:n,cy:o,r:3,class:"figure point-simple-circle",fill:t};return s.sv("circle",t)},simpleRect:function(t,e,i,n,o,r){t={_ref:r,x:n-3,y:o-3,width:6,height:6,class:"figure point-simple-rect",fill:t};return s.sv("rect",t)},empty:function(){return null}},o={circle:function(t,e,i,n,o,r){return'<circle class="figure point-circle" _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="4" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rect:function(t,e,i,n,o,r){return'<rect _ref="'+r+'" x="'+(n-4)+'" y="'+(o-4)+'" width="8" height="8" class="figure point-rect" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},rhombus:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+(n-5)+","+o+" "+n+","+(o+5)+" "+(n+5)+","+o+" "+n+","+(o-5)+'" class="figure point-rhombus" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},triangle:function(t,e,i,n,o,r){return'<polygon _ref="'+r+'" points="'+n+","+(o-5)+" "+(n+5)+","+(o+5)+" "+(n-5)+","+(o+5)+'" class="figure point-triangle" fill="'+e+'" stroke="'+t+'" stroke-width="2"/>'},simpleCircle:function(t,e,i,n,o,r){return'<circle _ref="'+r+'" cx="'+n+'" cy="'+o+'" r="3" class="figure point-simple-circle" fill="'+t+'"/>'},simpleRect:function(t,e,i,n,o,r){return'<rect _ref="id" x="'+(n-3)+'" y="'+(o-3)+'" width="6" height="6" class="figure point-simple-rect" fill="'+t+'"/>'},empty:function(){return null}};function l(t){t=n[t.toString()];if(!t)throw new Error("unknown point type");return t}function c(t){t=o[t.toString()];if(!t)throw new Error("unknown point type");return t}e.getHelper=l,e.getHTMLHelper=c,e.getShadeHelper=function(t,n){var o=l(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}},e.getShadeHTMLHelper=function(t,n){var o=c(t);n=n||"none";var r=a.getColorShade(n,.2);return function(t,e,i){return o(n,r,"",t,e,i)}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),_=i(0),v=i(3),i=i(35),o=(r=i.default,o(a,r),a.prototype.addScale=function(t,e){r.prototype.addScale.call(this,t,e),e.addPadding()},a.prototype.seriesShift=function(t){return this._shift=t,this.config.barWidth},a.prototype.paint=function(t,e,i){r.prototype.paint.call(this,t,e);if(!this.config.active)return null;var n=[];this._gradient&&n.push(_.sv("defs",[this._gradient()]));var o="chart "+this.config.type+" "+(this.config.css||"")+" "+(this.config.dashed?"dash-line":""),i=this._getForm(this._points,o,t,e,i),n=n.concat(i);return _.sv("g",g(g({class:"seria",_key:this.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),n)},a.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition<i?"bot":"top"},a.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&e<n?1/0:Math.abs(t-i)},a.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+(t[0]-this.config.barWidth/2)+" "+e+"\nV "+t[1]+"\nh "+this.config.barWidth+"\nV "+e},a.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:t-1},a.prototype._text=function(t,e,i){var n=t[0],t=(e+t[1])/2;return{x:n,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+n+" "+t+")":""}},a.prototype._getForm=function(t,i,e,n,o){function r(t){return o?o[t][1]:p}var s=this,a=this.config,l=a.baseLine,c=a.fill,d=a.alpha,u=a.showText,h=a.showTextTemplate,f=a.showTextRotate,a=[],p=this._base(n),n=t.map(function(t,e){return _.sv("path",g(g({_key:"seria"+s.config.id+e,_ref:v.calcPointRef(t[2],s.config.id),d:s._path(t,r(e)),class:i,fill:c,onclick:[s._handlers.onclick,t[2],s.config.value],onmousemove:[s._handlers.onmousemove,t[2],s.config.id],onmouseleave:[s._handlers.onmouseleave,t[2],s.config.id],"fill-opacity":d},{role:"graphics-symbol","aria-roledescription":"bar","aria-label":function(t,e,i){void 0===i&&(i=0);var n=e[3],o=i,e=e[4];return e<i&&(o=e,e=i),"xbar"===t?"bar y="+n+", x from "+o+" to "+e:"bar x="+n+", y from "+o+" to "+e}(s.config.type,t,l)}),{tabindex:0}))});return a.push.apply(a,n),(u||h||f)&&!1!==u&&(t=t.map(function(t,e){var i,n,o=s._getText(t);return i=t,n=e,16<Math.abs(r(n)-i[1])?_.sv("text",g(g({},s._text(t,r(e),f)),{"aria-hidden":"true"}),[h?v.verticalCenteredText(h(o)):v.verticalCenteredText(o)]):null}),a.push.apply(a,t)),a},a.prototype._getText=function(t){return t[4].toString()},a.prototype._setDefaults=function(t){this.config=g(g({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e,i,n=this.config.pointType,t=this.config.pointColor||this.config.color;n&&(this.config.pointType=n,this._drawPointType=this._getPointType(n,t)),this.config.gradient&&(e="gradient"+s.uid(),i=this.config.gradient(this.config.fill),this._gradient=function(){return v.linearGradient(i,e)},this.config.fill="url(#"+e+")")},a);function a(){var t=null!==r&&r.apply(this,arguments)||this;return t._shift=0,t}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i=t.length;if(i<3)a=t;else for(var n=t[0],o=t[0],r=t[1],s=t[2],a=[t[0].slice(0,2)],l=1;l<i;l++)a.push([(-n[0]+6*o[0]+r[0])/6,(-n[1]+6*o[1]+r[1])/6,(o[0]+6*r[0]-s[0])/6,(o[1]+6*r[1]-s[1])/6,r[0],r[1]]),n=o,o=r,r=s,s=t[l+2]||s;for(var c="",l=0;l<a.length;l++){var d=a[l],u=d.length;l?c+=5<u?"C"+d[0]+" "+d[1]+"\n\t\t\t\t"+d[2]+" "+d[3]+"\n\t\t\t\t"+d[4]+" "+d[5]:5===u?"L"+d[0]+" "+d[1]:"S"+d[0]+" "+d[1]+"\n\t\t\t\t"+d[2]+" "+d[3]:(c+=e?"L":"M",c+=5===u?d[0]+" "+d[1]:d[u-2]+" "+d[u-1])}return c}},function(t,e,i){i(67),i(68),i(69),i(70),i(71),t.exports=i(72)},function(t,e){Object.values=Object.values||function(e){var t=Object.prototype.toString.call(e);if(null==e)throw new TypeError("Cannot convert undefined or null to object");if(~["[object String]","[object Object]","[object Array]","[object Function]"].indexOf(t)){if(Object.keys)return Object.keys(e).map(function(t){return e[t]});var i,n=[];for(i in e)e.hasOwnProperty(i)&&n.push(e[i]);return n}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=0;o<e.length;o++){var r=e[o];if(null!=r)for(var s=Object.keys(Object(r)),a=0,l=s.length;a<l;a++){var c=s[a],d=Object.getOwnPropertyDescriptor(r,c);void 0!==d&&d.enumerable&&(n[c]=r[c])}}return n}})},function(t,e){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0==n)return!1;var o,r,e=0|e,s=Math.max(0<=e?e:n-Math.abs(e),0);for(;s<n;){if((o=i[s])===(r=t)||"number"==typeof o&&"number"==typeof r&&isNaN(o)&&isNaN(r))return!0;s++}return!1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],o=0;o<i;){var r=e[o];if(t.call(n,r,o,e))return r;o++}},configurable:!0,writable:!0}),Array.prototype.findIndex||(Array.prototype.findIndex=function(t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,o=arguments[1],r=0;r<n;r++)if(e=i[r],t.call(o,e,r,i))return r;return-1})},function(t,e){String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return e=e||0,this.indexOf(t,e)===e}}),String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))})},function(t,e){var i,n,o,r;Element&&!Element.prototype.matches&&((i=Element.prototype).matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector),"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var i=this;return{contains:function(t){return-1!==i.className.baseVal.split(" ").indexOf(t)},add:function(t){return i.setAttribute("class",i.getAttribute("class")+" "+t)},remove:function(t){var e=i.getAttribute("class").replace(new RegExp("(\\s|^)".concat(t,"(\\s|$)"),"g"),"$2");i.classList.contains(t)&&i.setAttribute("class",e)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),Object.entries||(n=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat),Object.entries=function(i){return n(Object.keys(i),function(t,e){return r(t,"string"==typeof e&&o(i,e)?[[e,i[e]]]:[])},[])}),Event.prototype.composedPath||(Event.prototype.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(document,window),this.path})},function(t,e){Math.sign=Math.sign||function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i(73),i(74);var n=i(0);e.vmdom={sv:n.sv};n=i(0);e.resizeHandler=n.resizeHandler,e.awaitRedraw=n.awaitRedraw,e.setTheme=n.setTheme;i=i(79);e.Chart=i.Chart},function(t,e,i){},function(t,e,i){},function(t,o,r){(function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function n(t,e){this._id=t,this._clearFn=e}o.setTimeout=function(){return new n(i.call(setTimeout,e,arguments),clearTimeout)},o.setInterval=function(){return new n(i.call(setInterval,e,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(e,this._id)},o.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},o.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},o._unrefActive=o.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(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,p){!function(i,n){"use strict";var o,r,s,a,l,c,e,d,t;function u(t){delete r[t]}function h(t){if(s)setTimeout(h,0,t);else{var e=r[t];if(e){s=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{u(t),s=!1}}}}function f(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(d)&&h(+t.data.slice(d.length))}i.setImmediate||(o=1,s=!(r={}),a=i.document,t=(t=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&t.setTimeout?t:i,l="[object process]"==={}.toString.call(i.process)?function(t){p.nextTick(function(){h(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(d="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",f,!1):i.attachEvent("onmessage",f),function(t){i.postMessage(d+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){h(t.data)},function(t){e.port2.postMessage(t)}):a&&"onreadystatechange"in a.createElement("script")?(c=a.documentElement,function(t){var e=a.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,c.removeChild(e),e=null},c.appendChild(e)}):function(t){setTimeout(h,0,t)},t.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return t={callback:t,args:e},r[o]=t,l(o),o++},t.clearImmediate=u)}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(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")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}}();var a,l=[],c=!1,d=-1;function u(){c&&a&&(c=!1,a.length?l=a.concat(l):d=-1,l.length&&h())}function h(){if(!c){var t=s(u);c=!0;for(var e=l.length;e;){for(a=l,l=[];++d<e;)a&&a[d].run();d=-1,e=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new f(t,e)),1!==l.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=p,t.addListener=p,t.once=p,t.off=p,t.removeListener=p,t.removeAllListeners=p,t.emit=p,t.prependListener=p,t.prependOnceListener=p,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,i){
|
|
13
13
|
/**
|
|
14
14
|
* Copyright (c) 2017, Leon Sorokin
|
|
15
15
|
* All rights reserved. (MIT Licensed)
|
|
@@ -18,4 +18,4 @@ if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"=
|
|
|
18
18
|
* A thin, fast, dependency-free vdom view layer
|
|
19
19
|
* @preserve https://github.com/leeoniya/domvm (v3.2.6, micro build)
|
|
20
20
|
*/
|
|
21
|
-
t.exports=function(){"use strict";var k=1,l=2,O=3,T=4,M=5,t=typeof window!=="undefined",e,r=(t?window:{}).requestAnimationFrame,c={};function i(){}var p=Array.isArray;function d(t){return t!=null}function s(t){return t!=null&&t.constructor===Object}function o(t,e,i,n){t.splice.apply(t,[i,n].concat(e))}function a(t){var e=typeof t;return e==="string"||e==="number"}function u(t){return typeof t==="function"}function h(t){return typeof t==="object"&&u(t.then)}function f(t){var e=arguments;for(var i=1;i<e.length;i++)for(var n in e[i])t[n]=e[i][n];return t}function g(t,e,i){var n;while(n=e.shift())if(e.length===0)t[n]=i;else t[n]=t=t[n]||{}}function _(t,e){var i=[];for(var n=e;n<t.length;n++)i.push(t[n]);return i}function v(t,e){for(var i in t)if(t[i]!==e[i])return false;return true}function m(t,e){var i=t.length;if(e.length!==i)return false;for(var n=0;n<i;n++)if(t[n]!==e[n])return false;return true}function y(t){if(!r)return t;var e,i,n;function o(){e=0;t.apply(i,n)}return function(){i=this;n=arguments;if(!e)e=r(o)}}function x(t,e,i){return function(){return t.apply(i,e)}}function b(t){var e=t.slice();var i=[];i.push(0);var n;var o;for(var r=0,s=t.length;r<s;++r){var a=i[i.length-1];if(t[a]<t[r]){e[r]=a;i.push(r);continue}n=0;o=i.length-1;while(n<o){var l=(n+o)/2|0;if(t[i[l]]<t[r])n=l+1;else o=l}if(t[r]<t[i[n]]){if(n>0)e[r]=i[n-1];i[n]=r}}n=i.length;o=i[n-1];while(n-- >0){i[n]=o;o=e[o]}return i}function w(t,e){var i=0;var n=e.length-1;var o;var r=n<=2147483647?true:false;if(r)while(i<=n){o=i+n>>1;if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}else while(i<=n){o=Math.floor((i+n)/2);if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}return i==e.length?null:i}function C(t){return t[0]==="o"&&t[1]==="n"}function S(t){return t[0]==="_"}function E(t){return t==="style"}function D(t){t&&t.el&&t.el.offsetHeight}function P(t){return t.node!=null&&t.node.el!=null}function H(t,e){switch(e){case"value":case"checked":case"selected":return true}return false}function L(t){t=t||c;while(t.vm==null&&t.parent)t=t.parent;return t.vm}function I(){}var n=I.prototype={constructor:I,type:null,vm:null,key:null,ref:null,data:null,hooks:null,ns:null,el:null,tag:null,attrs:null,body:null,flags:0,_class:null,_diff:null,_dead:false,_lis:false,idx:null,parent:null};function R(t){var e=new I;e.type=l;e.body=t;return e}var A={},j=/\[(\w+)(?:=(\w+))?\]/g;function F(t){{var e=A[t];if(e==null){var i,n,o,r;A[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=j.exec(t)){if(e.attrs==null)e.attrs={};e.attrs[r[1]]=r[2]||""}}return e}}var $=1,N=2,V=4,W=8;function z(t,e,i,n){var o=new I;o.type=k;if(d(n))o.flags=n;o.attrs=e;var r=F(t);o.tag=r.tag;if(r.id||r.class||r.attrs){var s=o.attrs||{};if(r.id&&!d(s.id))s.id=r.id;if(r.class){o._class=r.class;s.class=r.class+(d(s.class)?" "+s.class:"")}if(r.attrs)for(var a in r.attrs)if(!d(s[a]))s[a]=r.attrs[a];o.attrs=s}var l=o.attrs;if(d(l)){if(d(l._key))o.key=l._key;if(d(l._ref))o.ref=l._ref;if(d(l._hooks))o.hooks=l._hooks;if(d(l._data))o.data=l._data;if(d(l._flags))o.flags=l._flags;if(!d(o.key))if(d(o.ref))o.key=o.ref;else if(d(l.id))o.key=l.id;else if(d(l.name))o.key=l.name+(l.type==="radio"||l.type==="checkbox"?l.value:"")}if(i!=null)o.body=i;return o}function B(t,e,i){var n=["refs"].concat(e.split("."));g(t,n,i)}function G(t){while(t=t.parent)t.flags|=$}function Y(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)B(L(t),t.ref,t);var o=t.hooks,r=n&&n.hooks;if(o&&(o.willRemove||o.didRemove)||r&&(r.willUnmount||r.didUnmount))G(t);if(p(t.body))X(t);else;}function X(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];if(n===false||n==null)e.splice(i--,1);else if(p(n))o(e,n,i--,1);else{if(n.type==null)e[i]=n=R(""+n);if(n.type===l)if(n.body==null||n.body==="")e.splice(i--,1);else if(i>0&&e[i-1].type===l){e[i-1].body+=n.body;e.splice(i--,1)}else Y(n,t,i,null);else Y(n,t,i,null)}}}var q={animationIterationCount:true,boxFlex:true,boxFlexGroup:true,boxOrdinalGroup:true,columnCount:true,flex:true,flexGrow:true,flexPositive:true,flexShrink:true,flexNegative:true,flexOrder:true,gridRow:true,gridColumn:true,order:true,lineClamp:true,borderImageOutset:true,borderImageSlice:true,borderImageWidth:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,tabSize:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeDasharray:true,strokeDashoffset:true,strokeMiterlimit:true,strokeOpacity:true,strokeWidth:true};function U(t,e){return!isNaN(e)&&!q[t]?e+"px":e}function K(t,e){var i=(t.attrs||c).style;var n=e?(e.attrs||c).style:null;if(i==null||a(i))t.el.style.cssText=i;else{for(var o in i){var r=i[o];if(n==null||r!=null&&r!==n[o])t.el.style[o]=U(o,r)}if(n)for(var s in n)if(i[s]==null)t.el.style[s]=""}}var J=[];function Z(t,e,i,n,o){if(t!=null){var r=i.hooks[e];if(r)if(e[0]==="d"&&e[1]==="i"&&e[2]==="d")o?D(i.parent)&&r(i,n):J.push([r,i,n]);else return r(i,n)}}function Q(t){if(J.length){D(t.node);var e;while(e=J.shift())e[0](e[1],e[2])}}var tt=t?document:null;function et(t){while(t._node==null)t=t.parentNode;return t._node}function it(t,e){if(e!=null)return tt.createElementNS(e,t);return tt.createElement(t)}function nt(t){return tt.createTextNode(t)}function ot(t){return tt.createComment(t)}function rt(t){return t.nextSibling}function st(t){return t.previousSibling}function at(t){var e=t.vm;var i=e!=null&&Z(e.hooks,"willUnmount",e,e.data);var n=Z(t.hooks,"willRemove",t);if((t.flags&$)===$&&p(t.body))for(var o=0;o<t.body.length;o++)at(t.body[o]);return i||n}function lt(t,e,i){var n=e._node,o=n.vm;if(p(n.body))if((n.flags&$)===$)for(var r=0;r<n.body.length;r++)lt(e,n.body[r].el);else dt(n);delete e._node;t.removeChild(e);Z(n.hooks,"didRemove",n,null,i);if(o!=null){Z(o.hooks,"didUnmount",o,o.data,i);o.node=null}}function ct(t,e){var i=e._node;if(i._dead)return;var n=at(i);if(n!=null&&h(n)){i._dead=true;n.then(x(lt,[t,e,true]))}else lt(t,e)}function dt(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];delete n.el._node;if(n.vm!=null)n.vm.node=null;if(p(n.body))dt(n)}}function ut(t){var e=t.el;if((t.flags&$)===0){p(t.body)&&dt(t);e.textContent=null}else{var i=e.firstChild;do{var n=rt(i);ct(e,i)}while(i=n)}}function ht(t,e,i){var n=e._node,o=e.parentNode!=null;var r=e===i||!o?n.vm:null;if(r!=null)Z(r.hooks,"willMount",r,r.data);Z(n.hooks,o?"willReinsert":"willInsert",n);t.insertBefore(e,i);Z(n.hooks,o?"didReinsert":"didInsert",n);if(r!=null)Z(r.hooks,"didMount",r,r.data)}function ft(t,e,i){ht(t,e,i?rt(i):null)}var pt={};function gt(t){f(pt,t)}function _t(t){var e=this,i=e,n=_(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());if(pt[t])pt[t].apply(e,n)}var vt=i;function mt(t){vt=t.onevent||vt;if(t.onemit)gt(t.onemit)}function yt(t,e,i){t[e]=i}function xt(t,e,i,n,o){var r=t.apply(o,e.concat([i,n,o,o.data]));o.onevent(i,n,o,o.data,e);vt.call(null,i,n,o,o.data,e);if(r===false){i.preventDefault();i.stopPropagation()}}function bt(t){var e=et(t.target);var i=L(e);var n=t.currentTarget._node.attrs["on"+t.type],o,r;if(p(n)){o=n[0];r=n.slice(1);xt(o,r,t,e,i)}else for(var s in n)if(t.target.matches(s)){var a=n[s];if(p(a)){o=a[0];r=a.slice(1)}else{o=a;r=[]}xt(o,r,t,e,i)}}function wt(t,e,i,n){if(i===n)return;var o=t.el;if(i==null||u(i))yt(o,e,i);else if(n==null)yt(o,e,bt)}function Ct(t,e,i){if(e[0]==="."){e=e.substr(1);i=true}if(i)t.el[e]="";else t.el.removeAttribute(e)}function St(t,e,i,n,o){var r=t.el;if(i==null)!o&&Ct(t,e,false);else if(t.ns!=null)r.setAttribute(e,i);else if(e==="class")r.className=i;else if(e==="id"||typeof i==="boolean"||n)r[e]=i;else if(e[0]===".")r[e.substr(1)]=i;else r.setAttribute(e,i)}function Et(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=H(t.tag,r);var l=a?t.el[r]:o[r];if(s===l);else if(E(r))K(t,e);else if(S(r));else if(C(r))wt(t,r,s,l);else St(t,r,s,a,i)}for(var r in o)!(r in n)&&!S(r)&&Ct(t,r,H(t.tag,r)||C(r))}}function Dt(t,e,i,n){if(t.type===T){e=t.data;i=t.key;n=t.opts;t=t.view}return new Yt(t,e,i,n)}function kt(t){for(var e=0;e<t.body.length;e++){var i=t.body[e];var n=i.type;if(n<=O)ht(t.el,Ot(i));else if(n===T){var o=Dt(i.view,i.data,i.key,i.opts)._redraw(t,e,false);n=o.node.type;ht(t.el,Ot(o.node))}else if(n===M){var o=i.vm;o._redraw(t,e);n=o.node.type;ht(t.el,o.node.el)}}}function Ot(t,e){if(t.el==null)if(t.type===k){t.el=e||it(t.tag,t.ns);if(t.attrs!=null)Et(t,c,true);if((t.flags&W)===W)t.body.body(t);if(p(t.body))kt(t);else if(t.body!=null&&t.body!=="")t.el.textContent=t.body}else if(t.type===l)t.el=e||nt(t.body);else if(t.type===O)t.el=e||ot(t.body);t.el._node=t;return t.el}function Tt(t,e){return e[t.idx+1]}function Mt(t,e){return e[t.idx-1]}function Pt(t){return t.parent}window.lisMove=Rt;var Ht=1,Lt=2;function It(l,c,d,u,h,f,p,g){return function(t,e,i,n,o,r){var s,a;if(n[u]!=null){if((s=n[u]._node)==null){n[u]=l(n[u]);return}if(Pt(s)!==t){a=l(n[u]);s.vm!=null?s.vm.unmount(true):ct(e,n[u]);n[u]=a;return}}if(n[h]==o)return Lt;else if(n[h].el==null){d(e,Ot(n[h]),n[u]);n[h]=c(n[h],i)}else if(n[h].el===n[u]){n[h]=c(n[h],i);n[u]=l(n[u])}else if(!r&&s===n[p]){a=n[u];n[u]=l(a);g(e,a,n[f]);n[f]=a}else{if(r&&n[u]!=null)return Rt(l,c,d,u,h,e,i,s,n);return Ht}}}function Rt(t,e,i,n,o,r,s,a,l){if(a._lis){i(r,l[o].el,l[n]);l[o]=e(l[o],s)}else{var c=w(a.idx,l.tombs);a._lis=true;var d=t(l[n]);i(r,l[n],c!=null?s[l.tombs[c]].el:c);if(c==null)l.tombs.push(a.idx);else l.tombs.splice(c,0,a.idx);l[n]=d}}var At=It(rt,Tt,ht,"lftSib","lftNode","rgtSib","rgtNode",ft),jt=It(st,Mt,ft,"rgtSib","rgtNode","lftSib","lftNode",ht);function Ft(t,e){var i=e.body,n=t.el,o=t.body,r={lftNode:o[0],rgtNode:o[o.length-1],lftSib:(i[0]||c).el,rgtSib:(i[i.length-1]||c).el};t:while(1){while(1){var s=At(t,n,o,r,null,false);if(s===Ht)break;if(s===Lt)break t}while(1){var a=jt(t,n,o,r,r.lftNode,false);if(a===Ht)break;if(a===Lt)break t}$t(t,n,o,r);break}}function $t(t,e,i,n){var o=Array.prototype.slice.call(e.childNodes);var r=[];for(var s=0;s<o.length;s++){var a=o[s]._node;if(a.parent===t)r.push(a.idx)}var l=b(r).map(function(t){return r[t]});for(var c=0;c<l.length;c++)i[l[c]]._lis=true;n.tombs=l;while(1){var d=At(t,e,i,n,null,true);if(d===Lt)break}}function Nt(t){return t.el._node.parent!==t.parent}function Vt(t,e,i){return e[i]}function Wt(t,e,i){for(;i<e.length;i++){var n=e[i];if(n.vm!=null){if(t.type===T&&n.vm.view===t.view&&n.vm.key===t.key||t.type===M&&n.vm===t.vm)return n}else if(!Nt(n)&&t.tag===n.tag&&t.type===n.type&&t.key===n.key&&(t.flags&~$)===(n.flags&~$))return n}return null}function zt(t,e,i){return e[e._keys[t.key]]}function Bt(t,e){Z(e.hooks,"willRecycle",e,t);var i=t.el=e.el;var n=e.body;var o=t.body;i._node=t;if(t.type===l&&o!==n){i.nodeValue=o;return}if(t.attrs!=null||e.attrs!=null)Et(t,e,false);var r=p(n);var s=p(o);var a=(t.flags&W)===W;if(r){if(s||a)Gt(t,e);else if(o!==n)if(o!=null)i.textContent=o;else ut(e)}else if(s){ut(e);kt(t)}else if(o!==n)if(i.firstChild)i.firstChild.nodeValue=o;else i.textContent=o;Z(e.hooks,"didRecycle",e,t)}function Gt(t,e){var i=t.body,n=i.length,o=e.body,r=o.length,s=(t.flags&W)===W,a=(t.flags&N)===N,l=(t.flags&V)===V,c=!a&&t.type===k,d=true,u=l?zt:a||s?Vt:Wt;if(l){var h={};for(var f=0;f<o.length;f++)h[o[f].key]=f;o._keys=h}if(c&&n===0){ut(e);if(s)t.body=[];return}var p,g,_,v=0,m=false,y=0;if(s){var x={key:null};var b=Array(n)}for(var f=0;f<n;f++){if(s){var w=false;var C=null;if(d){if(l)x.key=i.key(f);p=u(x,o,y)}if(p!=null){_=p.idx;C=i.diff(f,p);if(C===true){g=p;g.parent=t;g.idx=f;g._lis=false}else w=true}else w=true;if(w){g=i.tpl(f);Y(g,t,f);g._diff=C!=null?C:i.diff(f);if(p!=null)Bt(g,p)}else;b[f]=g}else{var g=i[f];var S=g.type;if(S<=O){if(p=d&&u(g,o,y)){Bt(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=Dt(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&&Nt(o[y]))y++}}if(s)t.body=b;c&&Ft(t,e)}function Yt(t,e,i,n){var o=this;o.view=t;o.data=e;o.key=i;if(n){o.opts=n;o.config(n)}var r=s(t)?t:t.call(o,o,e,i,n);if(u(r))o.render=r;else{o.render=r.render;o.config(r)}o._redrawAsync=y(function(t){return o.redraw(true)});o._updateAsync=y(function(t){return o.update(t,true)});o.init&&o.init.call(o,o,o.data,o.key,n)}var Xt=Yt.prototype={constructor:Yt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:i,refs:null,render:null,mount:qt,unmount:Ut,config:function(t){var e=this;if(t.init)e.init=t.init;if(t.diff)e.diff=t.diff;if(t.onevent)e.onevent=t.onevent;if(t.hooks)e.hooks=f(e.hooks||{},t.hooks);if(t.onemit)e.onemit=f(e.onemit||{},t.onemit)},parent:function(){return L(this.node.parent)},root:function(){var t=this.node;while(t.parent)t=t.parent;return t.vm},redraw:function(t){var e=this;t?e._redraw(null,null,P(e)):e._redrawAsync();return e},update:function(t,e){var i=this;e?i._update(t,null,null,P(i)):i._updateAsync(t);return i},_update:Zt,_redraw:Jt,_redrawAsync:null,_updateAsync:null};function qt(t,e){var i=this;if(e){ut({el:t,flags:0});i._redraw(null,null,false);if(t.nodeName.toLowerCase()!==i.node.tag){Ot(i.node);ht(t.parentNode,i.node.el,t);t.parentNode.removeChild(t)}else ht(t.parentNode,Ot(i.node,t),t)}else{i._redraw(null,null);if(t)ht(t,i.node.el)}if(t)Q(i);return i}function Ut(t){var e=this;var i=e.node;var n=i.el.parentNode;ct(n,i.el);if(!t)Q(e)}function Kt(t,e,i,n){if(i!=null){i.body[n]=e;e.idx=n;e.parent=i;e._lis=false}return t}function Jt(t,e,i){var n=t==null;var o=this;var r=o.node&&o.node.el&&o.node.el.parentNode;var s=o.node,a,l;if(o.diff!=null){a=o._diff;o._diff=l=o.diff(o,o.data);if(s!=null){var c=p(a)?m:v;var d=a===l||c(a,l);if(d)return Kt(o,s,t,e)}}r&&Z(o.hooks,"willRedraw",o,o.data);var u=o.render.call(o,o,o.data,a,l);if(u===s)return Kt(o,s,t,e);o.refs=null;if(o.key!=null&&u.key!==o.key)u.key=o.key;o.node=u;if(t){Y(u,t,e,o);t.body[e]=u}else if(s&&s.parent){Y(u,s.parent,s.idx,o);s.parent.body[s.idx]=u}else Y(u,null,null,o);if(i!==false)if(s)if(s.tag!==u.tag||s.key!==u.key){s.vm=u.vm=null;var h=s.el.parentNode;var f=rt(s.el);ct(h,s.el);ht(h,Ot(u),f);s.el=u.el;u.vm=o}else Bt(u,s);else Ot(u);r&&Z(o.hooks,"didRedraw",o,o.data);if(n&&r)Q(o);return o}function Zt(t,e,i,n){var o=this;if(t!=null)if(o.data!==t){Z(o.hooks,"willUpdate",o,t);o.data=t}return o._redraw(e,i,n)}function Qt(t,e,i,n){var o,r;if(i==null)if(s(e))o=e;else r=e;else{o=e;r=i}return z(t,o,r,n)}var te="http://www.w3.org/2000/svg";function ee(t,e,i,n){var o=Qt(t,e,i,n);o.ns=te;return o}function ie(t){var e=new I;e.type=O;e.body=t;return e}function ne(t,e,i,n){this.view=t;this.data=e;this.key=i;this.opts=n}function oe(t,e,i,n){return new ne(t,e,i,n)}function re(t){this.vm=t}function se(t){return new re(t)}function ae(t){var e=new I;e.type=k;e.el=e.key=t;return e}function le(r,s){var o=r.length;var a={items:r,length:o,key:function(t){return s.key(r[t],t)},diff:function(t,e){var i=s.diff(r[t],t);if(e==null)return i;var n=e._diff;var o=i===n||p(n)?m(i,n):v(i,n);return o||i},tpl:function(t){return s.tpl(r[t],t)},map:function(t){s.tpl=t;return a},body:function(t){var e=Array(o);for(var i=0;i<o;i++){var n=a.tpl(i);n._diff=a.diff(i);e[i]=n;Y(n,t,i)}t.body=e}};return a}ne.prototype={constructor:ne,type:T,view:null,data:null,key:null,opts:null},re.prototype={constructor:re,type:M,vm:null};var ce={config:mt,ViewModel:Yt,VNode:I,createView:Dt,defineElement:Qt,defineSvgElement:ee,defineText:R,defineComment:ie,defineView:oe,injectView:se,injectElement:ae,lazyList:le,FIXED_BODY:N,DEEP_REMOVE:$,KEYED_LIST:V,LAZY_LIST:W};function de(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(Y(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&D(e),Q(L(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),Et(t,n),i&&D(t))}}(this,t,e)}function ue(t,e,i){if(null!=e.type)null==t.vm&&(Y(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&D(e),Q(L(e)));else{var n=Object.create(t);(n=Object.create(t)).attrs=f({},t.attrs);var o=f(t.attrs,e),s;null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),Et(t,n),i&&D(t)}}function he(t,e){var i=t.body;if(p(i))for(var n=0;n<i.length;n++){var o=i[n];if(o.vm!=null)e.push(o.vm);else he(o,e)}return e}function fe(t){var e=arguments;var i=e.length;var n,o;if(i>1){var r=1;if(s(e[1])){o=e[1];r=2}if(i===r+1&&(a(e[r])||p(e[r])||o&&(o._flags&W)===W))n=e[r];else n=_(e,r)}return z(t,o,n)}function pe(){var t=fe.apply(null,arguments);return t.ns=te,t}return n.patch=function(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(Y(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&D(e),Q(L(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),Et(t,n),i&&D(t))}}(this,t,e)},Xt.emit=function(t){var e=this,i=e,n=_(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());pt[t]&&pt[t].apply(e,n)},Xt.onemit=null,Xt.body=function(){return function t(e,i){var n=e.body;if(p(n))for(var o=0;o<n.length;o++){var r=n[o];null!=r.vm?i.push(r.vm):t(r,i)}return i}(this.node,[])},ce.defineElementSpread=fe,ce.defineSvgElementSpread=function(){var t=fe.apply(null,arguments);return t.ns=te,t},ce}()},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=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),o=(r=l.View,o(b,r),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)&&void 0!==i&&i.forEach(function(t,e){var i;void 0!==t.baseLine&&t.baseLine<s&&(t.baseLine=void 0);var 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||v.getDefaultColor(e)),n.fill||(n.fill=n.color||v.getDefaultColor(e));break;case"treeMap":n.legendType=(null===(i=r.legend)||void 0===i?void 0:i.type)||"groupName",null!==(i=null===(i=r.legend)||void 0===i?void 0:i.treeSeries)&&void 0!==i&&i.map(function(t,e){var i;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(i=t.id)&&void 0!==i?i:y.uid(),t.color||(t.color=v.getDefaultColor(e,"range"===n.legendType))}),n.treeSeries=null===(i=r.legend)||void 0===i?void 0:i.treeSeries;break;case"scatter":n.pointColor||(n.pointColor=n.color||v.getDefaultColor(e))}t=g.default[n.type];(n.barWidth||a.config.barWidth)&&(n.barWidth=n.barWidth||a.config.barWidth);var o=new t(a.data,n,a.events),t=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()})},b);function b(t,i){var e;void 0===i&&(i={});var u=r.call(this,null,i)||this;u._width=0,u._height=0,u._left=0,u._top=0;var n={};i.maxPoints&&(n.approximate={value:null===(e=i.series)||void 0===e?void 0:e.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)(n,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)(n,u.events)),u._globalHTMLHandlers={onmousemove:function(t){var e=u._layers.getSizes(),i=e.left,n=e.top,o=e.bottom,r=e.right,s=t.pageX,e=t.pageY,t=u.getRootView().node.el.getBoundingClientRect();u._left=t.left+window.pageXOffset,u._top=t.top+window.pageYOffset;s=s-i-u._left,e=e-n-u._top;0<=s&&s<=u._width-r-i&&0<=e&&e<=u._height-o-n?u.events.fire(f.ChartEvents.chartMouseMove,[s,e,u._left+i,u._top+n]):u.events.fire(f.ChartEvents.chartMouseLeave)},onmouseleave:function(){return u.events.fire(f.ChartEvents.chartMouseLeave)}},u._layers=new h.ComposeLayer,u.setConfig(i),u._initEvents(),u._tooltip=new m.Tooltip(u);n=s.create({render:function(){if(!u.data.getLength())return s.el("div");function t(t){function o(t){return t._isXDirection?"X":"Y"}function r(t){return t.title||t.text||t.value||""}function s(t){return t.steps&&t.steps.length?t.steps[0]:t.min||0}function a(t){return t.steps&&t.steps.length?t.steps[t.steps.length-1]:t.max||t.maxPoints||"max"}function l(t,e){return e[t]}var c=u._scales,i=t.series,n=t.type,d=((n=n||(i&&i.length&&i[0]&&i[0].type||""))||"")+" chart.";return c&&Object.keys(c).forEach(function(t){var e,i=c[t],n=i._axis||i.config;"radial"===t?(e=i._data._order,d+=" X scale "+r(i.config)+": "+t+" axis from "+l(i.config.value,e[0])+" to "+l(i.config.value,e[e.length-1])+".",d+=" "+o(i)+" scale: axis from "+s(n)+" to "+a(n)+"."):d+=" "+o(i)+" scale "+r(i.config)+": "+t+" axis from "+s(n)+" to "+a(n)+"."}),i&&i.length&&(d+=" Series:",i.forEach(function(t,e){d+=" "+("pie"===n||"pie3D"===n||"donut"===n?t.text:t.value),d+=e===i.length-1?".":","})),d}var e=[s.resizer(function(t,e){u._width=t,u._height=e||400;e=u.getRootView();e&&e.node&&e.node.el&&(e=e.node.el.getBoundingClientRect(),u._left=e.left+window.pageXOffset,u._top=e.top+window.pageYOffset),u.events.fire(f.ChartEvents.resize,[u._width,u._height]),u.paint(),!document.querySelector(".dhx_widget.dhx_chart")&&u._tooltip&&u._tooltip.destructor()})];return u._width&&u._height&&e.push(u._layers.toVDOM(u._width,u._height)),s.el(".dhx_widget.dhx_chart",c(c({class:i.css||"",onmousemove:u._globalHTMLHandlers.onmousemove,onmouseleave:u._globalHTMLHandlers.onmouseleave},{"aria-label":t(i)}),{tabIndex:0}),e)},hooks:{didMount:function(t){t&&t.node&&t.node.parent&&t.node.parent.el&&(u._width=t.node.parent.el.offsetWidth,u._height=t.node.parent.el.offsetHeight||400,u.paint())}}});return u.mount(t,n),u.export=new x.Exporter("chart",u),u}e.Chart=o},function(t,i,n){"use strict";(function(s){var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0});var c=n(1),d=n(12),u=n(11),h=n(1),t=(e.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])})},e.prototype.parse=function(t,e){var n=this;if(void 0===e&&(e=u.DataDriver.json),"json"!==e||d.hasJsonOrArrayStructure(t)||this._parent.events.fire(u.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=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=o+e,e=n._parent.getId(i);c.isId(e)?(i=n._parent.getItem(e))&&i.$empty&&(i=t.id||i.id,h.isDefined(t.id)&&n._parent.changeId(e,i,!0),n._parent.update(i,l(l({},t),{$empty:void 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},e.prototype.save=function(o){for(var r=this,t=this._getUniqueOrder(),e=this,i=0,n=t;i<n.length;i++)!function(i){var n,t;i.saving||i.pending?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),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})},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(e,t){var i,n=this;switch(e.status){case"remove":i="delete";break;case"add":i="insert";break;default:i=e.status}return e.promise=t.save(e.obj,i),e.promise.then(function(){n._removeFromOrder(e)}).catch(function(t){e.saving=!1,e.error=!0,d.dhxError(t)}),e.saving=!0,this._saving=!0,this._addToChain(e.promise),e.promise},e.prototype._addToChain=function(t){this._parent.saveData&&this._saving?this._parent.saveData=this._parent.saveData.then(function(){return t}):this._parent.saveData=t},e.prototype._findPrevState=function(t){for(var e=0,i=this._changes.order;e<i.length;e++){var n=i[e];if(n.id===t)return n}return null},e.prototype._removeFromOrder=function(e){this._changes.order=this._changes.order.filter(function(t){return!d.isEqualObj(t,e)})},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce(function(t,e){var i=t.findIndex(function(t){return t.id===e.id}),n=-1<i?t[i]:null;return n&&!1===n.saving&&"add"===n.status?"remove"===e.status?t.splice(i,1):n.obj=e.obj:n&&!1===n.saving&&"update"===n.status?t.splice(i,1,e):t.push(e),t},[])},e);function e(t,e){this._parent=t,this._changes=e}i.Loader=t}).call(this,n(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(82);o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.toJsonObject=function(t){var e;return"string"==typeof t&&(e=this._fromString(t)),function t(e,i){i=i||{};var n=e.attributes;if(n&&n.length)for(var o=0;o<n.length;o++)i[n[o].name]=n[o].value;for(var r,s=e.childNodes,o=0;o<s.length;o++)1===s[o].nodeType&&(i[r=s[o].tagName]?("function"!=typeof i[r].push&&(i[r]=[i[r]]),i[r].push(t(s[o],{}))):i[r]=t(s[o],{}));return i}(e)},o.prototype.serialize=function(t){return n.jsonToXML(t)},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){if("string"==typeof t&&(t=this._fromString(t)),t){t=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes;return t&&t.length?this._getRows(t):null}return[]},o.prototype._getRows=function(t){for(var e=[],i=0;i<t.length;i++)"item"===t[i].tagName&&e.push(this._nodeToJS(t[i]));return e},o.prototype._fromString=function(t){try{return(new DOMParser).parseFromString(t,"text/xml")}catch(t){return null}},o.prototype._nodeToJS=function(t){var e={};if(this._haveAttrs(t))for(var i=t.attributes,n=0;n<i.length;n++){var o=i[n],r=o.name,o=o.value;e[r]=this._toType(o)}if(3===t.nodeType)return e.value=e.value||this._toType(t.textContent),e;var s=t.childNodes;if(s)for(n=0;n<s.length;n++){var a=s[n],l=a.tagName;l&&("items"===l&&a.childNodes?e[l]=this._getRows(a.childNodes):this._haveAttrs(a)?e[l]=this._nodeToJS(a):e[l]=this._toType(a.textContent))}return e},o.prototype._toType=function(t){return"false"===t||"true"===t?"true"===t:t},o.prototype._haveAttrs=function(t){return t.attributes&&t.attributes.length},i=o;function o(){}e.XMLDriver=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=4;function s(t){return" ".repeat(t)}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var i='<?xml version="1.0" encoding="iso-8859-1"?>\n<'+e+">",n=0;n<t.length;n++)i+="\n"+function e(t,i){void 0===i&&(i=r);var n,o=s(i)+"<item>\n";for(n in t)Array.isArray(t[n])?(o+=s(i+r)+"<"+n+">\n",o+=t[n].map(function(t){return e(t,i+2*r)}).join("\n")+"\n",o+=s(i+r)+"</"+n+">\n"):o+=s(i+r)+("<"+n+">"+t[n])+"</"+n+">\n";return o+=s(i)+"</item>"}(t[n]);return i+"\n</"+e+">"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(12),i=(n.prototype.sort=function(t,e,i){this._createSorter(e),i===e&&(e=null),(i||e)&&this._sort(t,i,e)},n.prototype._createSorter=function(i){var n=this;i&&!i.rule&&(i.rule=function(t,e){t=null!==(t=n._checkVal(i.as,t[i.by]))&&void 0!==t?t:"",e=null!==(e=n._checkVal(i.as,e[i.by]))&&void 0!==e?e:"";return o.naturalCompare(t.toString(),e.toString())})},n.prototype._checkVal=function(t,e){return t?t.call(this,e):e},n.prototype._sort=function(t,n,o){var r=this,s={asc:1,desc:-1};return t.sort(function(t,e){var i=0;return n&&(i=n.rule.call(r,t,e)*(s[n.dir]||s.asc)),0===i&&o&&(i=o.rule.call(r,t,e)*(s[o.dir]||s.asc)),i})},n);function n(){}e.Sort=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var d=i(1),s=i(38),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))}var c,o=(c=s.DataCollection,o(f,c),f.prototype.add=function(t,i,n){var o=this;if(void 0===i&&(i=-1),void 0===n&&(n=this._root),this.events.fire(h.DataEvents.beforeAdd,[t]))return"object"!=typeof t&&(t={value:t}),t=Array.isArray(t)?t.map(function(t,e){return o._add(t,i,n,e)}):this._add(t,i,n),this._applySmart(),t},f.prototype.getRoot=function(){return this._root},f.prototype.getParent=function(t,e){if(void 0===e&&(e=!1),!this._pull[t])return null;t=this._pull[t].parent;return e?this._pull[t]:t},f.prototype.getItems=function(t){return this._childs&&this._childs[t]?this._childs[t]:[]},f.prototype.getLength=function(t){return void 0===t&&(t=this._root),this._childs[t]?this._childs[t].length:null},f.prototype.removeAll=function(t){if(d.isId(t)){if(this._childs[t])for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}}else{c.prototype.removeAll.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype.getIndex=function(e){var t=this.getParent(e);return t&&this._childs[t]?d.findIndex(this._childs[t],function(t){return t.id===e}):-1},f.prototype.sort=function(t){var e=this;if(t){for(var i in this._childs)this._sort.sort(this._childs[i],t);if(this._initChilds&&Object.keys(this._initChilds).length)for(var i in this._initChilds)this._sort.sort(this._initChilds[i],t)}else this._childs={},this._parse_data(Object.keys(this._pull).map(function(t){return e._pull[t]})),this._filters&&this.filter(this._filters.filters,this._filters.config);this.events.fire(h.DataEvents.change,[void 0,"sort",t])},f.prototype.filter=function(t,e){var n=this;if(void 0===e&&(e={}),t&&e.add||(this.restoreOrder(),t)){if(this._initOrder||(this._initOrder=this._order),this._initChilds||(this._initChilds=this._childs),e.type=e.type||h.TreeFilterType.all,this._filters={filters:{},config:e},"function"!=typeof t)if(t.by)this._filters.filters[t.by]=t;else for(var i in t)this._filters.filters[i]=t[i];else this._filters.filters=t;var o={};this._recursiveFilter(this._filters.filters,e,this._root,0,o),e&&!e.smartFilter&&(this._filters=null),Object.keys(o).forEach(function(t){for(var e=n.getParent(t),i=n.getItem(t);e;)o[e]||(o[e]=[]),i&&!o[e].find(function(t){return t.id===i.id})&&o[e].push(i),i=n.getItem(e),e=n.getParent(e)}),this._childs=o,this.events.fire(h.DataEvents.change)}},f.prototype.restoreOrder=function(){this._initChilds&&(this._childs=this._initChilds,this._initChilds=null),this.events.fire(h.DataEvents.change)},f.prototype.copy=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},f.prototype.move=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o)},f.prototype.forEach=function(t,e,i){if(void 0===e&&(e=this._root),void 0===i&&(i=1/0),this.haveItems(e)&&!(i<1))for(var n=this._childs[e],o=0;o<n.length;o++)t.call(this,n[o],o,n),this.haveItems(n[o].id)&&this.forEach(t,n[o].id,--i)},f.prototype.eachChild=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=function(){return!0}),this.haveItems(t))for(var o=0;o<this._childs[t].length;o++)e.call(this,this._childs[t][o],o),i&&n(this._childs[t][o])&&this.eachChild(this._childs[t][o].id,e,i,n)},f.prototype.getNearId=function(t){return t},f.prototype.loadItems=function(e,i){var 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="+e:"?id="+e),new a.DataProxy(t).load().then(function(t){t=(i=u.toDataDriver(i)).toJsonArray(t),n._parse_data(t,e),n.events.fire(h.DataEvents.change),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){if(e===t)return!1;var i=!0;return this.eachParent(t,function(t){return t.id===e?i=!1:null}),i},f.prototype.serialize=function(t,e){void 0===t&&(t=h.DataDriver.json);e=this._serialize(this._root,e),t=u.toDataDriver(t);if(t)return t.serialize(e)},f.prototype.getId=function(t,e){if(void 0===e&&(e=this._root),this._childs[e]&&this._childs[e][t])return this._childs[e][t].id},f.prototype.map=function(t,e,i){void 0===e&&(e=this._root),void 0===i&&(i=!0);var n=[];if(!this.haveItems(e))return n;for(var o,r=0;r<this._childs[e].length;r++)n.push(t.call(this,this._childs[e][r],r,this._childs)),i&&(o=this.map(t,this._childs[e][r].id,i),n=n.concat(o));return n},f.prototype.getRawData=function(t,e,i,n,o){return o=null!=o?o:this._root,this._childs[o]?(o=o===this._root?c.prototype.getRawData.call(this,t,e,this._childs[o]):this._childs[o],2===n?this.flatten(o):o):[]},f.prototype.flatten=function(t){var i=this,n=[];return t.forEach(function(t){n.push(t);var e=i._childs[t.id];e&&t.$opened&&(n=n.concat(i.flatten(e)))}),n},f.prototype._add=function(t,e,i,n){void 0===e&&(e=-1),void 0===i&&(i=this._root),t.parent=t.parent?t.parent.toString():i,0<n&&-1!==e&&(e+=1);e=c.prototype._add.call(this,t,e);if(Array.isArray(t.items))for(var o=0,r=t.items;o<r.length;o++){var s=r[o];this.add(s,-1,t.id)}return e},f.prototype._copy=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;var r=this._childs[t];if(o&&(e=-1===e?-1:e+o),i===this&&!this.canCopy(t,n))return null;o=u.copyWithoutInner(this.getItem(t),{items:!0});if(i.exists(t)&&(o.id=d.uid()),u.isTreeCollection(i)){if(this.exists(t)&&(o.parent=n,i!==this&&n===this._root&&(o.parent=i.getRoot()),i.add(o,e),t=o.id),r)for(var s=0,a=r;s<a.length;s++){var l=a[s].id,c=this.getIndex(l);"string"==typeof t&&this.copy(l,c,i,t)}return t}i.add(o,e)},f.prototype._move=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;if(o&&(e=-1===e?-1:e+o),i!==this){if(!u.isTreeCollection(i))return i.add(u.copyWithoutInner(this.getItem(t)),e),void this.remove(t);var r=this.copy(t,e,i,n);return this.remove(t),r}if(!this.canCopy(t,n))return null;i=this.getParent(t),r=this.getIndex(t),r=this._childs[i].splice(r,1)[0];return r.parent=n,this._childs[i].length||delete this._childs[i],this.haveItems(n)||(this._childs[n]=[]),-1===e?e=this._childs[n].push(r):this._childs[n].splice(e,0,r),this.events.fire(h.DataEvents.change,[t,"update",this.getItem(t)]),t},f.prototype._reset=function(t){if(d.isId(t))for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}else{c.prototype._reset.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype._removeCore=function(e){var t;this._pull[e]&&(t=this.getParent(e),this._childs[t]=this._childs[t].filter(function(t){return t.id!==e}),t===this._root||this._childs[t].length||delete this._childs[t],this._initChilds&&this._initChilds[t]&&(this._initChilds[t]=this._initChilds[t].filter(function(t){return t.id!==e}),t===this._root||this._initChilds[t].length||delete this._initChilds[t]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e})),this._fastDeleteChilds(this._childs,e),this._initChilds&&this._fastDeleteChilds(this._initChilds,e))},f.prototype._addToOrder=function(t,e,i){var n=this._childs,o=this._initChilds,r=e.parent;(this._pull[e.id]=e).parent&&this._pull[e.parent]&&this._pull[e.parent].items&&!this._pull[e.parent].items.find(function(t){return t.id===e.id})&&this._pull[e.parent].items.push(e),c.prototype._addToOrder.call(this,t,e,i),l(n,e,r,i),o&&l(o,e,r,i)},f.prototype._parse_data=function(t,e){var i;void 0===e&&(e=this._root);for(var n=this._order.length,o=0,r=t;o<r.length;o++){var s=r[o];this.config.init&&(s=this.config.init(s)),s&&"object"!=typeof s&&(s={value:s}),s.id=null!==(i=s.id)&&void 0!==i?i:d.uid(),s.parent=void 0===s.parent||null===s.parent||s.parent&&s.$items?e:s.parent,this._pull[s.id]&&u.dhxError("Item "+s.id+" already exist"),this._pull[s.id]=s,this._order[n++]=s,this._childs[s.parent]||(this._childs[s.parent]=[]),this._childs[s.parent].push(s),s.items&&s.items instanceof Object&&this._parse_data(s.items,s.id)}},f.prototype._applySmart=function(){this._filters&&this.filter(this._filters.filters,this._filters.config)},f.prototype._fastDeleteChilds=function(t,e){if(this._pull[e]&&delete this._pull[e],t[e]){for(var i=0;i<t[e].length;i++)this._fastDeleteChilds(t,t[e][i].id);delete t[e]}},f.prototype._recursiveFilter=function(o,e,t,i,n){var r=this,s=this._childs[t];if(s){var a,l=function(t){switch(e.type){case h.TreeFilterType.all:return!0;case h.TreeFilterType.level:return i===e.level;case h.TreeFilterType.leafs:return!r.haveItems(t.id)}};a="function"==typeof o?function(t){return l(t)&&o(t)}:function(t){var e,i,n=!0;for(i in o)if(o[i].by&&""!==o[i].match&&(n=o[i].compare?o[i].compare(t[o[i].by],o[i].match,t):-1!==(null===(e=t[o[i].by])||void 0===e?void 0:e.toString().toLocaleLowerCase().indexOf(o[i].match.toString().toLowerCase()))),!n)break;return l(t)&&n},(a=s.filter(a)).length?n[t]=a:t===this._root&&(n[t]=[]);for(var c=0,d=s;c<d.length;c++){var u=d[c];this._recursiveFilter(o,e,u.id,i+1,n)}}},f.prototype._serialize=function(t,n){var o=this;return void 0===t&&(t=this._root),this.map(function(t){var e,i={};for(e in t)"parent"===e||"items"===e||e.startsWith("$")||(i[e]=t[e]);return n&&(i=n(i)),o.haveItems(t.id)&&(i.items=o._serialize(t.id,n)),i},t,!1)},f);function f(t,e){var i=c.call(this,t,e)||this;i._childs={};e=i._root=t&&t.rootId||"_ROOT_"+d.uid();return i._childs=((t={})[e]=[],t),i._initChilds=null,i}e.TreeCollection=o},function(t,e,i){"use strict";var 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.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var h=i(2),x=i(42),f=i(125),p=i(11),b=i(12),w=i(1);var n=(o.prototype.setItem=function(t,e){f.collectionStore.setItem(t,e)},o.prototype.onMouseDown=function(t,e,i){var n,o,r,s;1!==t.which&&!t.targetTouches||(t.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp)),o=(n=h.locateNode(t,"data-dhx-id"))&&n.getAttribute("data-dhx-id"),r=h.locate(t,"data-dhx-widget-id"),Array.isArray(e)&&e.includes(o)?(this._transferData.source=y(e),this._itemsForGhost=i):(this._transferData.source=[o],this._itemsForGhost=null),o&&r&&(e=(s=h.getBox(n)).left,i=s.top,s=(t.targetTouches?t.targetTouches[0]:t).pageX,t=(t.targetTouches?t.targetTouches[0]:t).pageY,this._transferData.initXOffset=s-e,this._transferData.initYOffset=t-i,this._transferData.x=s,this._transferData.y=t,this._transferData.componentId=r,this._transferData.start=o,this._transferData.item=n))},o.prototype.isDrag=function(){return this._isDrag},o.prototype.cancelCanDrop=function(t){this._canMove=!1,this._isDrag=!1;var e=this._transferData,i=e.start,n=e.source,o=e.target,e=e.dropComponentId,n={start:i,source:n,target:o},e=f.collectionStore.getItem(e);e&&o&&e.events.fire(p.DragEvents.cancelDrop,[n,t]),this._transferData.dropComponentId=null,this._transferData.target=null},o.prototype._moveGhost=function(t,e){this._transferData.ghost&&(this._transferData.ghost.style.left=t-this._transferData.initXOffset+"px",this._transferData.ghost.style.top=e-this._transferData.initYOffset+"px")},o.prototype._removeGhost=function(){document.body.removeChild(this._transferData.ghost)},o.prototype._onDrop=function(t){var e,i,n,o,r;this._canMove&&(r=(o=this._transferData).start,i=o.source,e=o.target,n=o.dropComponentId,i={start:r,source:i,target:e,dropPosition:o.dropPosition},n=(o=f.collectionStore.getItem(n))&&o.config,o&&"source"!==n.dragMode&&o.events.fire(p.DragEvents.beforeDrop,[i,t])&&(o={id:e,component:o},r={id:r,component:this._transferData.component,newId:null},this._move(r,o),r.newId&&r.component!==o.component&&(i.start=r.newId),o.component.events.fire(p.DragEvents.afterDrop,[i,t]))),this._endDrop(t)},o.prototype._onDragStart=function(t,e,i){var n=f.collectionStore.getItem(e),o=n.config,r=this._transferData,e={start:r.start,source:r.source,target:r.target};if("target"===o.dragMode||n._pregroupData)return null;r=function(t,e,i){void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=document.createElement("div"),r=t.cloneNode(!0),s=window.getComputedStyle(t.parentElement).fontSize;return r.style.width=n.width+"px",r.style.height=n.height+"px",r.style.maxHeight=n.height+"px",r.style.opacity="0.8",r.style.fontSize=s,i&&e&&e.length||o.appendChild(r),e&&e.length&&e.forEach(function(t,e){t=t.cloneNode(!0);t.style.width=n.width+"px",t.style.height=n.height+"px",t.style.maxHeight=n.height+"px",t.style.top=12*(e+1)-n.height-n.height*e+"px",t.style.left=12*(e+1)+"px",t.style.opacity="0.6",t.style.zIndex=""+(-e-1),i||(t.style.fontSize=s,t.style.overflow="hidden"),o.appendChild(t)}),o.className="dhx_drag-ghost",o}(this._transferData.item,this._itemsForGhost,"row"===o.dragItem||"column"===o.dragItem||"both"===o.dragItem);return n.events.fire(p.DragEvents.beforeDrag,[e,i,r])&&w.isId(t)?(n.events.fire(p.DragEvents.dragStart,[e,i]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.component=n,this._transferData.dragConfig=o,r):null},o.prototype._onDrag=function(t){var e=(t.targetTouches?t.targetTouches[0]:t).clientX,i=(t.targetTouches?t.targetTouches[0]:t).clientY,n=document.elementFromPoint(e,i),o=h.locate(n,"data-dhx-widget-id");if(o){var r=f.collectionStore.getItem(o),s=!!h.locateNodeByClassName(n,"dhx_grid-header")||!!h.locateNodeByClassName(n,"dhx_grid-footer"),a=r&&r.config.columns?r.config:void 0,l=a&&("both"===a.dragItem||"column"===a.dragItem);if(!s||l){var c=h.locate(n,"data-dhx-id"),d=h.locate(n,"data-dhx-root-id");if(!c&&!d)return this.cancelCanDrop(t),this._transferData.dropComponentId=o,this._transferData.target=null,void this._canDrop(t);var u=this._transferData,e=u.dropComponentId,i=u.start,a=u.source,s=u.target,l=u.componentId,n=u.dropPosition;if("complex"===r.config.dropBehaviour){u=function(t){var e=t.clientY;if(!(t=h.locateNode(t)))return null;if(t=t.childNodes[0]){t=t.getBoundingClientRect();return(e-t.top)/t.height}}(t);this._transferData.dropPosition=u<=.25?"top":.75<=u?"bottom":"in"}else if((s===c||!c&&s===d)&&e===o)return;e={id:i,component:this._transferData.component};"source"!==r.config.dragMode&&(e.component.events.fire(p.DragEvents.dragOut,[{start:i,source:a,target:s},t]),o!==l||!b.isTreeCollection(e.component.data)||b.isTreeCollection(e.component.data)&&e.component.data.canCopy(e.id,c)?(this.cancelCanDrop(t),this._transferData.target=c||d,this._transferData.dropComponentId=o,e.component.events.fire(p.DragEvents.dragIn,[{start:i,source:a,target:s,dropPosition:n},t])&&this._canDrop(t)):this.cancelCanDrop(t))}else this._canMove&&this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)},o.prototype._move=function(i,e){var t=i.component,n=e.component,o=i.component.data,r=e.component.data,s=0,a=e.id,l=b.isTreeCollection(r)?e.component.config.dropBehaviour:void 0,c=i.component.config.columns?i.component.config:void 0,d=c&&("both"===c.dragItem||"column"===c.dragItem)&&c.columns.map(function(t){return t.id}).filter(function(t){return t===i.id||t===e.id}).length;if(d&&i.component===e.component){if(i.id===e.id)return;var u=(h=t.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id});return-1===(f=h.findIndex(function(t){return t.id===e.id}))?void 0:(h.splice(f,0,h.splice(u,1)[0]),t.setColumns(h),void t.paint())}if(d&&i.component instanceof x.ProGrid&&e.component instanceof x.ProGrid){var h,u=(h=t.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id}),c=n.config.columns.map(function(t){return m({},t)}),d=n.data.getLength(),f=c.findIndex(function(t){return t.id===e.id}),p=[],g=i.id;t.data.forEach(function(t){var e;p.push(((e={id:t.id})[g]=t[i.id],e))}),d?t.data.forEach(function(t,e){t=n.data.getItem(t.id);t?n.data.update(t.id,m(m({},t),p[e])):n.data.add(p[e])}):n.data.parse(p);u=h.splice(u,1)[0];return c.find(function(t){return t.id===g})||c.splice(f,0,u),n.setColumns(c),n.paint(),t.setColumns(h),void t.paint()}var _=e.id===n.config.rootParent;switch(l){case"child":break;case"sibling":a=r.getParent(a),s=r.getIndex(e.id)+1;break;case"complex":var v=this._transferData.dropPosition;_?(a=e.id,s=r.getLength()):"top"===v?(a=r.getParent(a),s=r.getIndex(e.id)):"bottom"===v&&(a=r.getParent(a),s=r.getIndex(e.id)+1);break;default:s=w.isId(e.id)?i.component===e.component&&r.getIndex(i.id)<r.getIndex(e.id)?r.getIndex(e.id)-1:(-1<r.getIndex(i.id)&&(i.newId=w.uid()),r.getIndex(e.id)):-1}this._transferData.dragConfig.dragCopy?this._transferData.source instanceof Array&&1<this._transferData.source.length?this._transferData.source.map(function(t){o.copy(t,s,r,a),-1<s&&s++}):o.copy(i.id,s,r,a):this._transferData.source instanceof Array&&1<this._transferData.source.length?o.move(this._transferData.source,s,r,a):n instanceof x.Grid&&!n.config.columns.length?(l=t.data.getItem(i.id),n.data.parse([m({},l)]),n.setColumns(y(t.config.columns)),n.paint(),t.data.remove(i.id),t.paint()):o.move(i.id,s,r,a,i.newId)},o.prototype._endDrop=function(t){var e;this._toggleTextSelection(!1),this._transferData.component&&(e={start:(e=this._transferData).start,source:e.source,target:e.target},this._transferData.component.events.fire(p.DragEvents.afterDrag,[e,t])),this.cancelCanDrop(t),this._canMove=!0,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null},o.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,i={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},e=f.collectionStore.getItem(this._transferData.dropComponentId);e&&this._transferData.target&&(e instanceof x.Grid&&(i.dragItem=this._transferData.item.classList.contains("dhx_grid-row")?"row":"column"),e.events.fire(p.DragEvents.canDrop,[i,t]))},o.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},o);function o(){var a=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._onMouseMove=function(t){if(a._transferData.start){var e=(t.targetTouches?t.targetTouches[0]:t).pageX,i=(t.targetTouches?t.targetTouches[0]:t).pageY,n=a._transferData,o=n.x,r=n.y,s=n.start,n=n.componentId;if(!a._transferData.ghost){if(Math.abs(o-e)<3&&Math.abs(r-i)<3)return;n=a._onDragStart(s,n,t);if(!n)return void a._endDrop(t);a._transferData.ghost=n,document.body.appendChild(a._transferData.ghost)}a._moveGhost(e,i),a._onDrag(t)}},this._onMouseUp=function(t){a._transferData.x&&(a._transferData.ghost?(a._removeGhost(),a._onDrop(t)):a._endDrop(t),t.targetTouches?(document.removeEventListener("touchmove",a._onMouseMove),document.removeEventListener("touchend",a._onMouseUp)):(document.removeEventListener("mousemove",a._onMouseMove),document.removeEventListener("mouseup",a._onMouseUp)))}}i=window.dhxHelpers=window.dhxHelpers||{};i.dragManager=i.dragManager||new n,e.dragManager=i.dragManager},function(t,e,i){"use strict";var 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)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var v=i(7),l=i(6),n=i(1),m=i(13),x=i(2),b=i(0);o.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},o.prototype.png=function(t){this._rawExport(t,"png",this._view)},o.prototype.xlsx=function(t){return this._export(t)},o.prototype.csv=function(t){var e;void 0===t&&(t={}),t=y({asFile:!0,rowDelimiter:"\n",columnDelimiter:",",skipHeader:0},t),e="getRoot"in this._view.data&&t.flat?this.getFlatCSV(t):this._getCSV(t);var i=t.name||"grid_export";return t.asFile&&n.downloadFile(e,i+".csv","text/csv"),e},o.prototype._export=function(t){void 0===t&&(t={});for(var c=this._view.config.columns.filter(function(t){return!t.hidden}),d={},e=v.transpose(c.map(function(t){return t.header.map(function(t){return t.text||" "})})),u=[],h={default:{color:"#000000",background:"#FFFFFF",fontSize:14}},f=[],o={},i=this._view.data.serialize().map(function(n,t){return d[n.id]=t,c.map(function(t,e){var i;return o[t.id]=e,n[t.id]instanceof Date&&(i=t.format||"%M %d %Y","string"==typeof n[t.id]?n[t.id]=m.getFormattedDate(i,m.stringToDate(n[t.id],i)):"object"==typeof n[t.id]&&(n[t.id]=m.getFormattedDate(i,n[t.id]))),n[t.id]||e||!n.$groupName?v.removeHTMLTags(n[t.id]):"^ "+n.$groupName})}),p=[],g=this._view.content,_=this,n=0,r=c;n<r.length;n++)!function(t){var n,e,o,i,r;for(r in t.footer&&(n=t.id,i=e=_._view.data.serialize().reduce(function(t,e){return void 0===e[n]||""===e[n]||isNaN(e[n])||t.push(parseFloat(e[n])),t},[]),"tree"===_._view.config.type&&(i=(o=_._view.data).serialize().reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[n]||""===e[n]||isNaN(e[n])?(i=0,o.eachChild(e.id,function(t){o.haveItems(t.id)||(i+=parseFloat(t[n]))}),t.push(i)):t.push(parseFloat(e[n])||0)),t},[])),t.footer[0].content?(i=g[t.footer[0].content].calculate(e,i),p.push(i.toString())):p.push(t.footer[0].css||t.footer[0].text||" ")),u.push({width:t.width}),t.$cellCss){var s,a=t.$cellCss[r],l=a.split("").reduce(function(t,e){e=(t<<5)-t+e.charCodeAt(0);return Math.abs(e&e)},0).toString();h[l]||(s=document.body,(s=v.getStyleByClass(a,s,"dhx_grid-row",h.default))&&(h[l]=s)),h[l]&&f.push([d[r],c.indexOf(t),l])}}(r[n]);p.length&&i.push(p);var s,i={name:t.name||"data",columns:u,header:e,data:i,styles:{cells:f,css:h}};return t.url&&((s=document.createElement("form")).setAttribute("target","_blank"),s.setAttribute("action",t.url),s.setAttribute("method","POST"),s.style.visibility="hidden",(t=document.createElement("textarea")).setAttribute("name","data"),t.value=JSON.stringify(i),s.appendChild(t),document.body.appendChild(s),s.submit(),setTimeout(function(){s.parentNode.removeChild(s)},100)),i},o.prototype.getFlatCSV=function(o){var e=this._view.data,t=e.getRoot(),r=this._view.config.columns[0],s=e.getMaxLevel(),i="";e.eachChild(t,function(n){var t=function(t,e){for(var i,n=[],o=0;o<=s;o++)t&&t[r.id]?(n[t.$level]=t[r.id],t=(i=e.getParent(t.id,!0))&&i.id?i:null):n[o]="";return n}(n,e).join(o.columnDelimiter);i+=t+Object.keys(n).reduce(function(t,e,i){return"id"===e||"parent"===e||e.startsWith("$")||0===i?t:t+o.columnDelimiter+(null===n[e]?"":n[e])},""),i+=o.rowDelimiter});var t=this._export(o),n=function(t,e){for(var i=0;i<t.length;i++)t[i]=e;return t}(new Array(s+1),""),t=t.header.map(function(t){return t.splice.apply(t,a([0,1],n)),t});return new l.CsvDriver(o).serialize(t,!0)+o.rowDelimiter+i},o.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)},o.prototype._rawExport=function(i,t,e){void 0===i&&(i={});var n=document.createElement("div");n.setAttribute("style","display: none;");var o=e.config,r=o.headerRowHeight,s=void 0===r?0:r,a=o.footerRowHeight,l=void 0===a?0:a,c=o.$totalHeight,d=void 0===c?0:c,r=o.$headerLevel,a=void 0===r?0:r,c=o.$footerLevel,r=void 0===c?0:c,c=o.$footer,u=o.columns,h="",f=e.config.exportStyles;"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&&(p=i.pdf,i.pdf=y(y({},p),{printBackground:!1,format:null!==(p=null==p?void 0:p.format)&&void 0!==p?p:"A4"}));var p=e.config.$totalWidth,s=d+a*(s+1)+1;c&&(s+=r*(l+1));for(var g=[],_=0;_<u.length;_++){var v=u[_];g.push(y(y({},v),{width:v.$width}))}var s=y(y({},e.config),{width:p,height:s,columns:g,data:e.data.getRawData(),keyNavigation:!1,selection:!1,resizable:!1,autoWidth:!1,autoHeight:!1,adjust:!1}),m=new e.constructor(n,s);b.awaitRedraw().then(function(){!0===f?h=x.getPageLinksCss()+"<style>"+x.getPageInlineCss()+"</style>":Array.isArray(f)&&f.length&&(h=""+x.getPageLinksCss(f)),null!==(t=n.children[0])&&void 0!==t&&t.setAttribute("data-dhx-theme",i.theme||"light");var t="\n\t\t\t\t\t"+h+"\n\t\t\t\t\t"+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;m.destructor(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n),null!==(t=e.parentNode)&&void 0!==t&&t.removeChild(e)},100)}).catch(function(){var t;m.destructor(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n)})},i=o;function o(t,e,i){this._name=t,this._version=e,this._view=i}e.Exporter=i},function(t,e,i){"use strict";var u=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var j=i(0),s=i(6),F=i(1),o=i(5),$=i(4),h=i(20),N=i(10),r=i(10),V=i(7),i=(n.prototype.setCell=function(e,i,t,n){var o,r=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var s="tree"===this._grid.config.type;if(this._gridId&&h.focusManager.getFocusId()!==this._gridId&&h.focusManager.setFocusId(this._gridId),!(this.config.disabled||this._grid.config.$editable||(null===(o=this._selectedCells[0])||void 0===o?void 0:o.row.id)===((null===(o=e)||void 0===o?void 0:o.id)||e)&&(null===(o=this._selectedCells[0])||void 0===o?void 0:o.column.id)===((null===(o=i)||void 0===o?void 0:o.id)||i))&&(this._multiselection||!this._selectedCells.length||this._removeCell(null===(a=this._selectedCell)||void 0===a?void 0:a.row,null===(c=this._selectedCell)||void 0===c?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?void 0:e.id)||e)&&t.column.id===((null===i||void 0===i?void 0:i.id)||i)}))return void this.removeCell((null===e||void 0===e?void 0:e.id)||e,(null===i||void 0===i?void 0:i.id)||i);n&&1<this._selectedCells.length&&!s&&u(this._selectedCells).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,d,t=null===(c=null===(a=this._grid.config)||void 0===a?void 0:a.columns)||void 0===c?void 0:c.filter(function(t){return!t.hidden});i=i||(null==t?void 0:t[0]),(i=this._grid.getColumn(i.id||i))&&e&&(this._multiselection&&n&&this._selectedCells.length&&!s?(c=null===(a=this._selectedCells)||void 0===a?void 0:a[0],n=this._grid.data.getIndex(c.row.id),(s=this._grid.data.getIndex(e.id))<n&&(n=(l=[s,n])[0],s=l[1]),"cell"===this._type||"complex"===this._type?(l=(a=t.map(function(t){return t.id})).indexOf(c.column.id),c=a.indexOf(i.id),-1!==l&&-1!==c&&(c<l&&(l=(a=[c,l])[0],c=a[1]),d=t.slice(l,c+1),this._grid.data.mapRange(n,s,function(e){d.forEach(function(t){-1===r._findIndex({row:e,column:t})&&r._setCell(e,t)})}))):this._grid.data.mapRange(n,s,function(t){-1===r._findIndex({row:t,column:i})&&r._setCell(t,i)})):this._setCell(e,i),j.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(),j.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=this;if(!this._isUnselected()){if(this._multiselection){var r=[],s={};return this._selectedCells.forEach(function(t,e,i){var n=o._normalizeCell(t);r.push(o._toHTML(n.row,n.column,e===i.length-1||"cell"===o._type||"complex"===o._type,s[t.row.id])),s[t.row.id]=!0}),r}var t=this._normalizeCell(this._selectedCell);return this._toHTML(t.row,t.column,!0)}},n.prototype._setCell=function(t,e){t&&e&&F.isDefined(t.id)&&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){if(void 0===t&&(t=!1),!(e&&i&&F.isDefined(e.id)&&F.isDefined(i.id)))return!1;if(!t&&!this.events.fire($.GridSelectionEvents.beforeUnSelect,[e,i]))return!1;var n=this._selectedCells.findIndex(function(t){return t.row.id===e.id&&t.column.id===i.id});return 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?void 0:n[(null===(n=this._selectedCells)||void 0===n?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),u(this._selectedCells).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?void 0:e.id)||(null===(n=n[i-1])||void 0===n?void 0:n.id)||t.parent:r._grid.data.getId(i+1)||r._grid.data.getId(i-1),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=this._grid.data.getRawData(0,-1,null,2);if(-1===F.findIndex(o,function(t){return t.id==e.id}))return null;var r,s,a,l,c,d,u,h=this._grid.config,f=h.topSplit,p=h.bottomSplit,g=h.$totalWidth,_=h.$totalHeight,v=h.columns,m=null==v?void 0:v.filter(function(t){return!t.hidden}),y={left:N.getCurrFixedCols(this._grid.config,$.Split.left),right:N.getCurrFixedCols(this._grid.config,$.Split.right)},x=this._grid.data.getLength(),b={top:f?this._grid.data.getRawData(0,f):[],bottom:p?this._grid.data.getRawData(x-p,x):[]},w={left:null===(H=null==y?void 0:y.left)||void 0===H?void 0:H.map(function(t){return t.id}),right:null===(L=null==y?void 0:y.right)||void 0===L?void 0:L.map(function(t){return t.id})},C={top:b.top.map(function(t){return t.id}),bottom:b.bottom.map(function(t){return t.id})},S=null===(I=null==y?void 0:y.left)||void 0===I?void 0:I.reduce(function(t,e){return t+(e.$width||0)},0),E=null===(R=null==y?void 0:y.right)||void 0===R?void 0:R.reduce(function(t,e){return t+(e.$width||0)},0),D=b.top.reduce(function(t,e){return t+e.$height},0),k=b.bottom.reduce(function(t,e){return t+e.$height},0),O=this._grid.getCellRect(e.id,t.id),T=this._grid.getScrollState(),M=O.y,P=null===(A=C.top)||void 0===A?void 0:A.includes(e.id),v=null===(h=w.left)||void 0===h?void 0:h.includes(t.id),x=y.left.length&&S>O.x-T.x,H=b.top.length&&D>O.y-T.y,L=O.width,I=O.height-1,R=null,A=null,h=x?S+T.x:O.x;x&&(L-=(v?V.getTotalWidth(y.left.slice(0,m.indexOf(t))):S)-(O.x-T.x)),H&&(I-=(P?V.getTotalHeight(b.top.slice(0,o.indexOf(e))):D)-(O.y-T.y)-1,M+=O.height-I),P&&(M=O.y+T.y,(r=this._grid.getSpan(e.id,t.id))&&1<r.rowspan?(l=o.indexOf(e),R=V.getTotalHeight(b.top.slice(l,l+r.rowspan))):I=f===C.top.indexOf(e.id)+1?O.height-1:O.height),v&&(h=O.x+T.x,(r=this._grid.getSpan(e.id,t.id))&&1<r.colspan?(l=null==m?void 0:m.indexOf(t),A=V.getTotalWidth(y.left.slice(l,l+r.colspan))):L=y.left.length===w.left.indexOf(t.id)+1?O.width-1:O.width),(null!==(D=y.right)&&void 0!==D&&D.length||p)&&(r=this._grid.getSpan(e.id,t.id),f=this._getReverseScrollState(T),null!==(D=y.right)&&void 0!==D&&D.length&&(s=(null===(D=w.right)||void 0===D?void 0:D.includes(t.id))||r&&m.indexOf(t)+(r.colspan||1)>m.length-y.right.length,(a=g-E<f.x+O.x+O.width)&&!s&&(L-=f.x+O.x+O.width-g+E),s&&(L=!r||null!==(D=w.right)&&void 0!==D&&D.includes(r.column)?(c=null!==(c=w.right)&&void 0!==c&&c.indexOf(t.id)?0:1,h=O.x-f.x+c,O.width-c):(l=m.length-m.indexOf(t)-(r.colspan||1),E=g-E,h=O.x+f.x<1+E?O.x:E-f.x+1,A=V.getTotalWidth(l?y.right.slice(0,-l):y.right)-1,O.width-f.x))),p&&(d=C.bottom.includes(e.id)||r&&o.indexOf(e)+(r.rowspan||1)>o.length-p,(u=_-k<f.y+O.y+O.height)&&!d&&(I-=f.y+O.y+O.height-_+k),d&&(I=r&&!C.bottom.includes(r.row)?(k=_-k,c=(l=o.length-o.indexOf(e)-(r.rowspan||1))?0:1,M=O.y+f.y<k?O.y:k-f.y,R=V.getTotalHeight(l?b.bottom.slice(0,-l):b.bottom)-c,O.height-f.y-c):(M=O.y-f.y,O.height-(p===C.bottom.indexOf(e.id)+1?1:0)))));C=null;"row"!==this._type&&"complex"!==this._type||n||(C=j.el(".dhx_grid-selected-row",{style:{width:null!==(n=y.left)&&void 0!==n&&n.length?g-T.x:g,height:I,minHeight:R,minWidth:A,display:I<0&&!R?"none":"flex",top:M,left:null!==(y=y.left)&&void 0!==y&&y.length?T.x:0,position:"absolute"}}));T=null;return"cell"!==this._type&&"complex"!==this._type||!i||(T=j.el(".dhx_grid-selected-cell",{style:{width:L,height:I,top:M,minHeight:R,minWidth:A,left:h,position:"absolute",display:L<0&&!A||I<0&&!R?"none":"flex",borderLeft:x&&!v?"none":null,borderRight:a&&!s?"none":null,borderTop:H&&!P?"none":null,borderBottom:u&&!d?"none":null}})),j.el(".dhx_grid-selection",{style:{zIndex:20}},[C,T])},n.prototype._isUnselected=function(){return!this._selectedCell||!this._selectedCell.row||!this._selectedCell.column||0===this._selectedCells.length},n.prototype._findIndex=function(i){var n=this;void 0===i&&(i=this._selectedCell);var o=-1;return this._selectedCells.some(function(t,e){if("cell"===n._type||"complex"===n._type){if(F.compare(t.row,i.row)&&F.compare(t.column,i.column))return o=e,!0}else if("row"===n._type&&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&&(e=t.querySelector('[data-dhx-id="'+this._selectedCell.row.id+'"]'),t=this._grid.getSpan(this._selectedCell.row.id,this._selectedCell.column.id),!e||(e=(i=t?i.querySelector(".dhx_span-spans"):null)?i.querySelector('[data-dhx-col-id="'+t.column+'"][data-dhx-id="'+t.row+'"]'):e.querySelector('[data-dhx-col-id="'+this._selectedCell.column.id+'"]'))&&(e.tabIndex=0,e.focus({preventScroll:!0})))},n.prototype._getReverseScrollState=function(t){var e=this._grid.config.$headerLevel*this._grid.config.headerRowHeight,i=this._grid.config.$footerLevel*this._grid.config.footerRowHeight,n=r.calcScrollBarWidth(this._grid.config,!(null===(o=this._grid.scrollView)||void 0===o||!o.config.enable)),o=this._grid.config.$totalWidth-this._grid.config.$width+N.BORDERS+n.y,n=this._grid.config.$totalHeight-this._grid.config.$height+e+i+N.BORDERS+n.x;return{x:0<o?o-t.x:0,y:0<n?n-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}},n);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()}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=i(4),s=i(89),a=i(90),l=i(91),c=i(105),d=i(106),u=i(113),h={cell:{row:null,col:null},editor:null,gridId:null};e.getEditor=function(t,e,i){var n="boolean"===e.type?"checkbox":i.$editable.editorType;if(void 0===n&&(n=i.autoHeight?"textarea":"input"),h.cell.row===t.id&&h.cell.col===e.id&&h.gridId===i.gridId&&i.$editable.editor)return h.editor;switch("checkbox"!==n&&(h={cell:{row:t.id,col:e.id},editor:h.editor,gridId:i.gridId}),o||(o=function(){h={cell:{row:null,col:null},editor:null,gridId:null}},i.events.on(r.GridEvents.afterEditEnd,o)),n){case"input":return h.editor=new s.InputEditor(t,e,i);case"textarea":return h.editor=new u.TextAreaEditor(t,e,i);case"select":return h.editor=new a.SelectEditor(t,e,i);case"datePicker":return h.editor=new l.DateEditor(t,e,i);case"checkbox":return new c.CheckboxEditor(t,e,i);case"multiselect":case"combobox":return h.editor=new d.ComboboxEditor(t,e,i);default:return h.editor=new s.InputEditor(t,e,i)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(4),r=i(1),i=(s.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),"string"!==this._cell.col.type&&r.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},s.prototype.toHTML=function(t){var e=this._cell.row[this._cell.col.id];return this._input&&(e=this._input.value),this._config.$editable.editor=this,n.el("input.dhx_cell-editor.dhx_cell-editor__input",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value: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)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(4),r=i(9),i=(s.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("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=r.getEditorOptions(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[],e=this._cell.row[this._cell.col.id];this._input&&(e=this._input.options[this._input.selectedIndex].value);t=t.map(function(t){return n.el("option",{selected:t.id.toString()===(null==e?void 0:e.toString()),value:t.id},t.value)});return this._config.$editable.editor=this,n.el("select.dhx_cell-editor.dhx_cell-editor__select",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor"},t)},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)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.SelectEditor=i},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};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(4),o=i(92),l=i(13),r=i(30),i=(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();!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),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),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(){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)}}},c);function c(t,e,i){var n=this;this._config=i,this._cell={row:t,col:e},this._calendar=new o.Calendar(null,this._cleanConfig(e));t=this._cell.row[this._cell.col.id],e=this._calendar.config.dateFormat;(l.stringToDate(t,e,!0)||t instanceof Date)&&(this._calendar.setValue(t),this._value=this._calendar.getValue(),this._cell.row[this._cell.col.id]=this._value),this._popup=new 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()}e.DateEditor=i},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(93)),n(e(48))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),b=i(0),a=i(5),l=i(8),c=i(94),d=i(104),w=i(13),u=i(48),h=i(2),o=(r=l.View,o(f,r),f.prototype.setValue=function(t){if(!t||t instanceof Array&&0===t.length)return!1;var e=t instanceof Array?t[0]:t,i=w.DateHelper.toDateObject(e,this.config.dateFormat),e=w.DateHelper.copy(this._getSelected());return!!this.events.fire(u.CalendarEvents.beforeChange,[i,e,!1])&&(this._selected=[],this._setSelected(t),this._timepicker&&(this._timepicker.setValue(i),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(u.CalendarEvents.change,[i,e,!1]),this.paint(),!0)},f.prototype.getValue=function(t){var e=this;return void 0===t&&(t=!1),this._selected[0]?this.config.range?t?this._selected.map(function(t){return w.DateHelper.copy(t)}):this._selected.map(function(t){return w.getFormattedDate(e.config.dateFormat,t)}):t?w.DateHelper.copy(this._selected[0]):w.getFormattedDate(this.config.dateFormat,this._selected[0]):""},f.prototype.getCurrentMode=function(){return this._currentViewMode},f.prototype.showDate=function(t,e){t&&(this._currentDate=w.DateHelper.copy(t)),e&&(this._currentViewMode=e),this.paint()},f.prototype.destructor=function(){this._linkedCalendar&&this._unlink(),this._timepicker&&this._timepicker.destructor(),this.events&&this.events.clear(),this.config=this.events=null,this._uid=this._selected=this._currentDate=this._currentViewMode=this._handlers=this._timepicker=this._time=null,this.unmount()},f.prototype.clear=function(){var t=this.getValue(!0);this.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]))},f.prototype.link=function(t){var e=this;this._linkedCalendar&&this._unlink(),this._linkedCalendar=t;var i=this.getValue(!0),n=t.getValue(!0),o=i&&w.DateHelper.dayStart(i),r=n&&w.DateHelper.dayStart(n);this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(o&&r)return o<=t&&t<=r&&function(t){if(w.DateHelper.isSameDay(r,o))return null;var e="dhx_calendar-day--in-range";return w.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--first-date"),w.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--last-date"),e}(t)}),this.config.disabledDates&&this._linkedCalendar.config.disabledDates||(this.config.disabledDates=function(t){if(r)return r<t},this._linkedCalendar.config.disabledDates=function(t){if(o)return t<o}),this.config.thisMonthOnly=!0,t.config.thisMonthOnly=!0,this.events.on(u.CalendarEvents.change,function(t){o=t?w.DateHelper.dayStart(t):null,e._linkedCalendar.paint()},"link"),this._linkedCalendar.events.on(u.CalendarEvents.change,function(t){r=t?w.DateHelper.dayStart(t):null,e.paint()},"link"),this._linkedCalendar.paint(),this.paint()},f.prototype._unlink=function(){this._linkedCalendar&&(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=null,this.config.disabledDates=this._linkedCalendar.config.disabledDates=null,this.events.detach(u.CalendarEvents.change,"link"),this._linkedCalendar.events.detach(u.CalendarEvents.change,"link"),this._linkedCalendar.paint(),this._linkedCalendar=null)},f.prototype._setSelected=function(t){var i,n=this,e=t instanceof Array?t[0]:t,e=w.DateHelper.toDateObject(e,this.config.dateFormat);t instanceof Array&&this.config.range?(i=[],t.forEach(function(t,e){e<2&&i.push(w.DateHelper.toDateObject(t,n.config.dateFormat))}),2===i.length&&i[0]<i[1]?i.forEach(function(t){return n._selected.push(t)}):this._selected[0]=i[0]):this._selected[0]=e},f.prototype._getSelected=function(){return this._selected[this._selected.length-1]},f.prototype._draw=function(){switch(this._currentViewMode){case"calendar":return this.events.fire(u.CalendarEvents.modeChange,["calendar"]),this._drawCalendar();case"month":return this.events.fire(u.CalendarEvents.modeChange,["month"]),this._drawMonthSelector();case"year":return this.events.fire(u.CalendarEvents.modeChange,["year"]),this._drawYearSelector();case"timepicker":return this.events.fire(u.CalendarEvents.modeChange,["timepicker"]),this._drawTimepicker()}},f.prototype._initHandlers=function(){function n(t){void 0===t&&(t=!1);var e=0;switch(o._currentViewMode){case"calendar":e=t?-7:7;break;case"month":e=t?-4:4;break;case"year":e=t?-4:4}return e}var o=this,r={Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Left:"ArrowLeft",Esc:"Escape",Spacebar:"Space"};this._handlers={onkeydown:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){switch(48<=(i=t).which&&i.which<=57||65<=i.which&&i.which<=90?String.fromCharCode(i.which):(i=32===i.which?i.code:i.key,h.isIE()&&r[i]||i)){case"Enter":o._selectDate(t,e);break;case"ArrowLeft":o._moveBrowseFocus(t,e,-1);break;case"ArrowRight":o._moveBrowseFocus(t,e,1);break;case"ArrowUp":o._moveBrowseFocus(t,e,n(!0));break;case"ArrowDown":o._moveBrowseFocus(t,e,n())}var i}},onclick:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){o._selectDate(t,e)},".dhx_calendar-action__cancel":function(){o.showDate(o._getSelected(),"calendar"),o.events.fire(u.CalendarEvents.cancelClick,[])},".dhx_calendar-action__show-month":function(){return o.showDate(null,"month")},".dhx_calendar-action__show-year":function(){return o.showDate(null,"year")},".dhx_calendar-action__next":function(){var t;switch(o._currentViewMode){case"calendar":t=w.DateHelper.addMonth(o._currentDate,1);break;case"month":t=w.DateHelper.addYear(o._currentDate,1);break;case"year":t=w.DateHelper.addYear(o._currentDate,12)}o.showDate(t)},".dhx_calendar-action__prev":function(){var t;switch(o._currentViewMode){case"calendar":t=w.DateHelper.addMonth(o._currentDate,-1);break;case"month":t=w.DateHelper.addYear(o._currentDate,-1);break;case"year":t=w.DateHelper.addYear(o._currentDate,-12)}o.showDate(t)},".dhx_calendar-action__show-timepicker":function(){o._currentViewMode="timepicker",o.paint()}},onmouseover:{".dhx_calendar-day":function(t,e){o.events.fire(u.CalendarEvents.dateMouseOver,[new Date(e.attrs._date),t]),o.events.fire(u.CalendarEvents.dateHover,[new Date(e.attrs._date),t])}}}},f.prototype._getData=function(r){var t,s=this;switch(this._isSelectedInCurrentRange=!1,this.config.weekStart){case"saturday":t=-1;break;case"monday":t=1;break;default:t=0}for(var e=[],i=6,a=w.DateHelper.weekStart(w.DateHelper.monthStart(r),t);i--;){for(var n=w.DateHelper.getWeekNumber(a),l=0,o=7,c=[],d=function(){var t,e=w.DateHelper.isWeekEnd(a),i=r.getMonth()===a.getMonth(),n=u.config.disabledDates&&u.config.disabledDates(a),o=[];u.config.range&&u._selected[0]&&u._selected[1]&&(t=function(){if(s._selected[0]&&s._selected[1]){var t=w.DateHelper.dayStart(s._selected[0]),e=w.DateHelper.dayStart(s._selected[1]);return t<=a&&a<=e&&(w.DateHelper.isSameDay(s._selected[0],s._selected[1])?null:"dhx_calendar-day--in-range")}},u.config.$rangeMark=t),e&&o.push("dhx_calendar-day--weekend"),i||(u.config.thisMonthOnly?(l++,o.push("dhx_calendar-day--hidden")):o.push("dhx_calendar-day--muffled")),!u.config.mark||(i=u.config.mark(a))&&o.push(i),u.config.$rangeMark&&(t=u.config.$rangeMark(a))&&o.push(t),n&&(e?o.push("dhx_calendar-day--weekend-disabled"):o.push("dhx_calendar-day--disabled")),u._selected.forEach(function(t,e){t&&w.DateHelper.isSameDay(t,a)&&(s._isSelectedInCurrentRange=!0,t="dhx_calendar-day--selected",s.config.range&&(t+=" dhx_calendar-day--selected-"+(0===e?"first ":"last")),o.push(t))}),c.push({date:a,day:a.getDate(),css:o.join(" ")}),a=w.DateHelper.addDay(a)},u=this;o--;)d();e.push({weekNumber:n,days:c,disabledWeekNumber:7===l})}return e},f.prototype._drawCalendar=function(){var t,i=this,e=this._currentDate,n=this.config,o=n.weekStart,r=n.thisMonthOnly,s=n.css,a=n.timePicker,l=n.width;switch(o){case"saturday":t=x([w.locale.daysShort[6]],w.locale.daysShort.slice(0,-1));break;case"monday":t=x(w.locale.daysShort.slice(1),[w.locale.daysShort[0]]);break;default:t=w.locale.daysShort}for(var c,n=t.map(function(t){return b.el(".dhx_calendar-weekday",t)}),o=this._getData(e),d=!0,u=this._getSelected(),h=function(t){var e={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(i._isSelectedInCurrentRange?(t=t.date)&&u&&t.getTime()===u.getTime()&&(e.tabindex=0,e["aria-pressed"]="true"):d&&(e.tabindex=0),d=!1),e},f=[],p=[],g=0,_=o;g<_.length;g++){var v=_[g],m=v.days.map(function(t){return b.el("div.dhx_calendar-day",y({class:t.css,_date:t.date},h(t)),t.day)});!this.config.weekNumbers||v.disabledWeekNumber&&r||p.push(b.el("div",{class:"dhx_calendar-week-number"},v.weekNumber)),f=f.concat(m)}this.config.weekNumbers&&(c=b.el(".dhx_calendar__week-numbers",p));s="dhx_calendar dhx_widget"+(s?" "+s:"")+(a?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return b.el("div",y({class:s,style:{width:this.config.weekNumbers?parseInt(l.toString())+48+"px":l}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_calendar-action__show-month.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},w.locale.months[e.getMonth()]+" "+e.getFullYear())),this.config.weekNumbers&&b.el(".dhx_calendar__dates-wrapper",[b.el(".dhx_calendar__weekdays",n),b.el(".dhx_calendar__days",f),c]),!this.config.weekNumbers&&b.el(".dhx_calendar__weekdays",n),!this.config.weekNumbers&&b.el(".dhx_calendar__days",f),a?b.el(".dhx_timepicker__actions",[b.el("button.dhx_calendar__timepicker-button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__show-timepicker",{type:"button"},[b.el("span.dhx_button__icon.dxi.dxi-clock-outline"),b.el("span.dhx_button__text",this._time)])]):null])])},f.prototype._drawMonthSelector=function(){function o(t){return d&&e===t}var t=this._currentDate,e=t.getMonth(),i=this._getSelected()?this._getSelected().getFullYear():null,n=this.config,r=n.css,s=n.timePicker,a=n.weekNumbers,l=n.width,n=n.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),c=!0,d=i===t.getFullYear();return b.el("div",y({class:s,style:{width:a?parseInt(l.toString())+48+"px":l}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_calendar-action__show-year.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},t.getFullYear())),b.el(".dhx_calendar__months",w.locale.monthsShort.map(function(t,e){return b.el("div",y(y({class:"dhx_calendar-month"+(o(e)?" dhx_calendar-month--selected":"")},(i=e,n={role:"button",tabindex:-1,"aria-pressed":"false"},t&&(d?o(i)&&(n.tabindex=0,n["aria-pressed"]="true"):c&&(n.tabindex=0),c=!1),n)),{_date:e}),t);var i,n})),"month"!==n?b.el(".dhx_calendar__actions",[b.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},w.locale.cancel)]):null])])},f.prototype._drawYearSelector=function(){function n(t){return e._getSelected()&&t===e._getSelected().getFullYear()}var e=this,t=this._currentDate,i=w.DateHelper.getTwelweYears(t),o=this.config,r=o.css,s=o.timePicker,a=o.weekNumbers,t=o.width,o=o.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),l=!0,c=this._getSelected()&&i.includes(this._getSelected().getFullYear());return b.el("div",y({class:s,style:{width:a?parseInt(t.toString())+48+"px":t}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},i[0]+"-"+i[i.length-1])),b.el(".dhx_calendar__years",i.map(function(t){return b.el("div",y({class:"dhx_calendar-year"+(n(t)?" dhx_calendar-year--selected":""),_date:t},(i={role:"button",tabindex:-1,"aria-pressed":"false"},(e=t)&&(c?n(e)&&(i.tabindex=0,i["aria-pressed"]="true"):l&&(i.tabindex=0),l=!1),i)),t);var e,i})),"year"!==o&&"month"!==o?b.el(".dhx_calendar__actions",[b.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},w.locale.cancel)]):null])])},f.prototype._drawHeader=function(t){return b.el(".dhx_calendar__navigation",[b.el("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[b.el(".dhx_button__icon.dxi.dxi-chevron-left")]),t,b.el("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[b.el(".dhx_button__icon.dxi.dxi-chevron-right")])])},f.prototype._drawTimepicker=function(){var t=this.config,e=t.css,i=t.weekNumbers,t=t.width;return b.el(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:i?parseInt(t.toString())+48+"px":t}},[b.inject(this._timepicker.getRootView())])},f.prototype._selectDate=function(t,e){var i=e.attrs._date,n=w.DateHelper.copy(this._getSelected());switch(this._currentViewMode){case"calendar":var o=this.config.timePicker?w.DateHelper.mergeHoursAndMinutes(i,this._getSelected()||this._currentDate):i;if(!this.events.fire(u.CalendarEvents.beforeChange,[o,n,!0]))return;this.config.range&&1===this._selected.length&&this._selected[0]<o?this._selected.push(o):(this._selected=[],this._selected[0]=o),e.el.blur(),this.showDate(this._getSelected()),this.events.fire(u.CalendarEvents.change,[i,n,!0]);break;case"month":if("month"!==this.config.mode)w.DateHelper.setMonth(this._currentDate,i),this.showDate(null,"calendar"),this.events.fire(u.CalendarEvents.monthSelected,[i]);else{var r=w.DateHelper.fromYearAndMonth(this._currentDate.getFullYear()||this._getSelected().getFullYear(),i);if(!this.events.fire(u.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(u.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(u.CalendarEvents.monthSelected,[i]),this.paint()}break;case"year":if("year"!==this.config.mode)w.DateHelper.setYear(this._currentDate,i),this.showDate(null,"month"),this.events.fire(u.CalendarEvents.yearSelected,[i]);else{r=w.DateHelper.fromYear(i);if(!this.events.fire(u.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(u.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(u.CalendarEvents.yearSelected,[i]),this.paint()}}},f.prototype._moveBrowseFocus=function(t,e,i){e&&(!(i=e.parent.body[e.idx+i])||(i=i.el)&&(t.target.tabIndex=-1,i.tabIndex=0,i.focus({preventScroll:!0})))},f);function f(t,e){void 0===e&&(e={});var o=r.call(this,t,s.extend({weekStart:"sunday",thisMonthOnly:!1,dateFormat:window&&window.dhx&&window.dhx.dateFormat,width:"250px"},e))||this;switch(o._selected=[],o.events=new a.EventSystem,o.config.disabledDates=o.config.disabledDates||o.config.block,o.config.mode=o.config.mode||o.config.view,o.config.dateFormat||(o.config.timePicker?12===o.config.timeFormat?o.config.dateFormat="%d/%m/%y %h:%i %A":o.config.dateFormat="%d/%m/%y %H:%i":o.config.dateFormat="%d/%m/%y"),o.config.value&&o._setSelected(o.config.value),o.config.date?o._currentDate=w.DateHelper.toDateObject(o.config.date,o.config.dateFormat):o._getSelected()?o._currentDate=w.DateHelper.copy(o._getSelected()):o._currentDate=new Date,o.config.mode){case"month":o._currentViewMode="month";break;case"year":o._currentViewMode="year";break;case"timepicker":o._currentViewMode=o.config.timePicker?"timepicker":"calendar";break;default:o._currentViewMode="calendar"}o._initHandlers(),o.config.timePicker&&(o._timepicker=new c.Timepicker(null,{timeFormat:o.config.timeFormat,controls:!0}),e=o._getSelected()||new Date,o._timepicker.setValue(e),o._time=o._timepicker.getValue(),o._timepicker.events.on(c.TimepickerEvents.afterClose,function(){o._timepicker.setValue(o._time),o.showDate(null,"calendar")}),o._timepicker.events.on(c.TimepickerEvents.afterApply,function(){var t=o._timepicker.getValue(!0),e=t.hour,i=t.minute,n=t.AM,t=o._getSelected(),n=w.DateHelper.withHoursAndMinutes(o._getSelected()||new Date,e,i,n);o.events.fire(u.CalendarEvents.beforeChange,[n,t,!0])&&(o._selected[o._selected.length-1]=n,o.events.fire(u.CalendarEvents.change,[n,t,!0])),o._time=o._timepicker.getValue(),o.showDate(null,"calendar")}));return o.mount(t,b.create({render:function(){return o._draw()}})),o}e.Calendar=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(95)),n(e(47))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(5),c=i(8),d=i(26),u=i(99),h=i(102),f=i(103),p=i(47),g=i(2);function _(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}var v,o=(v=c.View,o(m,v),m.prototype.getValue=function(t){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;if(e){e={hour:i,minute:n};return 12===this.config.timeFormat&&(e.AM=t),e}return(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"number"==typeof t&&(t=new Date(t)),t instanceof Date?(n=t.getMinutes(),o=t.getHours()):Array.isArray(t)?(o=_(t[0],23),n=_(t[1],59),t[2]&&"pm"===t[2].toLowerCase()&&(e=!0)):"string"==typeof t?(o=_(+(i=t.match(/\d+/g))[0],23),n=_(+i[1],59),t.toLowerCase().includes("pm")&&(e=!0)):"object"==typeof t&&t.hasOwnProperty("hour")&&t.hasOwnProperty("minute")&&(o=t.hour,n=t.minute,e=!t.AM),e&&o<12&&(o+=12),12===this.config.timeFormat&&!f.isTimeCheck(t)&&12<=o&&(e=!0),this._time={hour:o,minute:n,AM:!e}},m.prototype._initUI=function(t){var e=this,i={gravity:!1,css:"dhx_widget dhx_timepicker "+(this.config.css||"")+(this.config.controls?" dhx_timepicker--with-controls":""),rows:[{id:"timepicker",css:"dhx_timepicker__inputs"},{id:"hour-slider",css:"dhx_timepicker__hour"},{id:"minute-slider",css:"dhx_timepicker__minute"}]};this.config.controls&&(i.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),i.rows.push({id:"save-action",css:"dhx_timepicker__save"}));var n=this.layout=new d.Layout(t,i),o=a.create({render:function(){return e._draw()}}),t=this._inputsView=c.toViewLike(o),i=this._minutesSlider=new u.Slider(null,{min:0,max:59,step:1,tooltip:!1,labelPosition:"top",label:h.default.minutes,value:this.config.value?this._time.minute:0}),o=this._hoursSlider=new u.Slider(null,{min:0,max:23,step:1,tooltip:!1,labelPosition:"top",label:h.default.hours,value:!this.config.value||12===this._time.hour&&this._time.AM?0:this._time.hour});n.getCell("timepicker").attach(t),n.getCell("hour-slider").attach(o),n.getCell("minute-slider").attach(i),this.config.controls&&(n.getCell("save-action").attach(function(){return a.el("button.dhx_timepicker__button-save.dhx_button.dhx_button--view_flat.dhx_button--color_primary.dhx_button--size_small.dhx_button--circle.dhx_button--width_full",{onclick:e._outerHandlers.save,type:"button"},h.default.save)}),n.getCell("close-action").attach(function(){return a.el("button.dhx_timepicker__button-close.dhx_button.dhx_button--view_link.dhx_button--size_medium.dhx_button--view_link.dhx_button--color_secondary.dhx_button--icon.dhx_button--circle",{_ref:"close",onclick:e._outerHandlers.close,type:"button","aria-label":"close timepicker"},[a.el("span.dhx_button__icon.dxi.dxi-close")])}))},m.prototype._initHandlers=function(){function e(t){var e=_(parseInt(t.value,10),59);t.value=e.toString(),n._minutesSlider.setValue(e)}function i(t){var e=_(parseInt(t.value,10),23);t.value=e.toString(),n._hoursSlider.setValue(e)}var n=this;this._handlers={onchange:{".dhx_timepicker-input--hour":function(t){return i(t.target)},".dhx_timepicker-input--minutes":function(t){return e(t.target)}},oninput:{".dhx_timepicker-input--hour":function(t){(g.isSafari()||g.isFirefox())&&i(t.target)},".dhx_timepicker-input--minutes":function(t){(g.isSafari()||g.isFirefox())&&e(t.target)}}},this._outerHandlers={close:function(){n.events.fire(p.TimepickerEvents.beforeClose,[n.getValue(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){if(!(t<i._hoursSlider.config.min||t>i._hoursSlider.config.max)){var e=r({},i._time);12===i.config.timeFormat?(e.AM=t<12,e.hour=t%12||12):e.hour=t;t=i._isTimeObj();return 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){if(!(t<i._minutesSlider.config.min||t>i._minutesSlider.config.max)){var e=r(r({},i._time),{minute:t}),t=i._isTimeObj();return i.events.fire(p.TimepickerEvents.beforeChange,[i._getValue(e,t)])}}),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 a.el(".dhx_timepicker-inputs",r({},this._handlers),[a.el("input.dhx_timepicker-input.dhx_timepicker-input--hour",{_key:"hour",_ref:"hour",value:1<this.getValue(!0).hour.toString().length?this.getValue(!0).hour:"0"+this.getValue(!0).hour,"aria-label":"hours"}),a.el("span.dhx_timepicker-delimer",":"),a.el("input.dhx_timepicker-input.dhx_timepicker-input--minutes",{_key:"minute",value:1<this.getValue(!0).minute.toString().length?this.getValue(!0).minute:"0"+this.getValue(!0).minute,"aria-label":"minutes"}),12===this.config.timeFormat?a.el(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},m.prototype._isTimeObj=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},m);function m(t,e){void 0===e&&(e={});e=v.call(this,t,s.extend({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},e))||this;return e.events=new l.EventSystem(e),e._time={hour:0,minute:0,AM:!0},12===e.config.timeFormat&&(e._time.hour=12),e.config.controls=e.config.controls||e.config.actions,e.config.value&&e._setValue(e.config.value),e._initUI(t),e._initHandlers(),e._initEvents(),e}e.Timepicker=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBlockRange=function(t,e,i){return void 0===i&&(i=!0),i?{min:t.left+window.pageXOffset,max:e.right+window.pageXOffset}:{min:t.top+window.pageYOffset,max:e.bottom+window.pageYOffset}},e.getMarginSize=function(t){return t&&("space"===t.type||"wide"===t.type)?12:0}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(27),a=i(98),o=(r=s.Layout,o(l,r),l.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new l(this,t)):new a.ProCell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},l);function l(t,e){return r.call(this,t,e)||this}e.ProLayout=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,u=i(1),h=i(0),s=i(29),i=i(44),o=(r=i.Cell,o(a,r),a.prototype._getFirstRootView=function(t){return void 0===t&&(t=this),t.getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},a.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this._calculateStyle(),n=u.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",o=this.config.full||this.config.html?i:d(d({},i),n);this.config.html||(e=this._ui?((c=this._ui.getRootView()).render&&(c=h.inject(c)),c?[this.scrollView.render(c)]:c||null):t?this.scrollView.render([t]):t||null);var r=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?h.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),d(d({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[h.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="",i=this.config.cols||this.config.rows;if(this.config.type&&i)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 c=h.el(".dhx_layout-cell-content",{_key:this._uid+"_html",style:n},[h.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),c=h.el("div",d(d(((t={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,t["data-cell-id"]=null!==(i=this.config.id)&&void 0!==i?i:null,t),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:o}),[this.config.full?[h.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&&h.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&h.el(".dhx_layout-cell-header__image-wrapper",[h.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&h.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?h.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):h.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:h.el("div",{style:d(d({},n),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?l:"")},this.config.html?[h.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable?this.scrollView.render([c],this._uid):c],this._checkProgress()&&this._getProgressBar()]);return r?[c,r]:c}},a);function a(t,e){var i=r.call(this,t,e)||this;return i.scrollView=new s.ScrollView(function(){return i._getFirstRootView()}),i}e.ProCell=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(100)),n(e(46))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),c=i(0),s=i(5),a=i(25),d=i(8),u=i(30),h=i(46),f=i(2);function p(t,e,i){return t<e?e:i<t?i:t}var g,o=(g=d.View,o(_,g),_.prototype.disable=function(){this._disabled=!0,this.paint()},_.prototype.enable=function(){this._disabled=!1,this.paint()},_.prototype.isDisabled=function(){return this._disabled},_.prototype.focus=function(t){this.getRootView().refs[t?"extraRunner":"runner"].el.focus()},_.prototype.blur=function(){this.getRootView().refs[this._isExtraActive?"extraRunner":"runner"].el.blur()},_.prototype.getValue=function(){var t,e;return this.config.range?(t=this._getValue(this._currentPosition))<(e=this._getValue(this._extraCurrentPosition))?[t,e]:[e,t]:[this._getValue(this._currentPosition)]},_.prototype.setValue=function(t){var e=this._getValue(this._currentPosition);if(Array.isArray(t)&&1<t.length){var i=this._getValue(this._extraCurrentPosition);this.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){void 0===e&&(e=!1),this.config.inverse&&(t=-t);var i=this.config,n=i.max,o=i.min,r=e?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),i=r+t;(n<i||i<o)&&(i=r),this.events.fire(h.SliderEvents.beforeChange,[i,r,e])&&(this._setValue(r+t,e),this.events.fire(h.SliderEvents.change,[i,r,e]),this.paint())},_.prototype._initStartPosition=function(){var t,e,i=this.config,n=i.max,o=i.min,r=i.range,i=(t=this.config.value,e=this.config.min,i=this.config.max,(t=void 0===t?[]:Array.isArray(t)?t:"string"==typeof t?t.split(",").map(function(t){return parseInt(t,10)}):[t])[0]=void 0===t[0]?e:p(t[0],e,i),t[1]=void 0===t[1]?i:p(t[1],e,i),t),t=i[0],i=i[1];this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(n-i)/(n-o)*100),this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(i-o)/(n-o)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,r&&(this._extraCurrentPosition=100-this._extraCurrentPosition))},_.prototype._getValue=function(t){this._isInverse()&&(t=100-t);var e=this.config,i=e.min,n=e.max,e=e.step;if(100===t)return n;if(0===t)return i;t=t*(n-i)/100,n=t%e,e=e/2<=n?e:0;return+(Number(i)+Number(t)-n+e).toFixed(5)},_.prototype._setValue=function(t,e){void 0===e&&(e=!1);var i=this.config,n=i.max,i=i.min;if(n<t||t<i)return!1;i=(t-i)/(n-i)*100,i=this._isInverse()?100-i:i;e?this._extraCurrentPosition=i:this._currentPosition=i},_.prototype._initHandlers=function(){function e(t){if(t.cancelable&&t.preventDefault(),t=((t.targetTouches?t.targetTouches[0]:t)[n._axis]-n._getBegining())/n._length*100,n._findNewDirection){if(Math.abs(n._currentPosition-t)<1)return;t>n._currentPosition?n._possibleRange=[n._currentPosition,100]:n._possibleRange=[0,n._currentPosition],n._findNewDirection=null}n._inSide(t)&&n._updatePosition(t,n._isExtraActive),n.paint()}function i(t){var e,i;n._disabled||3===t.which||(n.events.fire(h.SliderEvents.mousedown,[t]),n._isMouseMoving=!0,e=t.target.classList.contains("dhx_slider__thumb--extra")?(n._isExtraActive=!0,n._extraCurrentPosition):(n._isExtraActive=!1,n._currentPosition),n._findNewDirection=null,n.config.range?(t=(i=n._currentPosition>n._extraCurrentPosition?[n._currentPosition,n._extraCurrentPosition]:[n._extraCurrentPosition,n._currentPosition])[0],i=i[1],n._currentPosition===n._extraCurrentPosition?(n._findNewDirection=e,n._possibleRange=[0,100]):n._possibleRange=e<t?[0,t]:[i,100]):n._possibleRange=[0,100])}var n=this,o=function(t){n.events.fire(h.SliderEvents.mouseup,[t]),setTimeout(function(){n._isMouseMoving=!1,n.paint()},4),t.targetTouches?(document.removeEventListener("touchend",o),document.removeEventListener("touchmove",e)):(document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",e))};this.config.helpMessage&&(this._helper=new u.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(t){t.preventDefault(),t.stopPropagation(),n._helper.show(t.target,{theme:t.target})},onmousedown:function(t){i(t),document.addEventListener("mousemove",e),document.addEventListener("mouseup",o)},ontouchstart:function(t){n._setTooltip(t),n._mouseIn=!1,i(t),document.addEventListener("touchmove",e,{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||(e=(t[n._axis]-n._getBegining())/n._length*100,t=n.getRootView().refs,!n.config.range||Math.abs(n._currentPosition-e)<Math.abs(n._extraCurrentPosition-e)?(n._updatePosition(e,!1),t.runner.el.focus()):(n._updatePosition(e,!0),t.extraRunner.el.focus()),n.paint())},onmouseover:function(t){n._setTooltip(t),n._mouseIn=!0,n.paint()},onmouseout:function(t){n._setTooltip(t),n._mouseIn=!1,n.paint()},onfocus:function(t){n._setTooltip(t),n._focusIn=!0,n.events.fire(h.SliderEvents.focus,[]),n.paint()},onblur:function(t){n._setTooltip(t),n._focusIn=!1,n.events.fire(h.SliderEvents.blur,[]),n.paint()},onkeydown:function(t){n.events.fire(h.SliderEvents.keydown,[t])}}},_.prototype._getBegining=function(){return"horizontal"===this.config.mode?this._offsets.left-window.pageXOffset:this._offsets.top-window.pageYOffset},_.prototype._inSide=function(t){var e=this._possibleRange;return t<e[0]?(this._updatePosition(e[0],this._isExtraActive),!1):!(t>e[1])||(this._updatePosition(e[1],this._isExtraActive),!1)},_.prototype._updatePosition=function(t,e){void 0===e&&(e=!1),100<t&&(t=100),t<0&&(t=0);var i=this.config,n=i.max,o=i.min,i=e?this._extraCurrentPosition:this._currentPosition,i=this._getValue(i),t=this._getValue(t);i!==t&&this.events.fire(h.SliderEvents.beforeChange,[t,i,e])&&(o=(t-o)/(n-o)*100,o=this._isInverse()?100-o:o,e?this._extraCurrentPosition=o:this._currentPosition=o,this.events.fire(h.SliderEvents.change,[t,i,e]))},_.prototype._getRunnerStyle=function(t){void 0===t&&(t=!1);var e="horizontal"===this.config.mode?"left":"top",i=t?this._extraCurrentPosition:this._currentPosition;return(t={})[e]=i+"%",t},_.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},_.prototype._getRunnerCss=function(t){return void 0===t&&(t=!1),"dhx_slider__thumb"+(t?" dhx_slider__thumb--extra":"")+(this._isMouseMoving&&(t&&this._isExtraActive||!t&&!this._isExtraActive)?" dhx_slider__thumb--active":"")+(this._disabled?" dhx_slider__thumb--disabled":"")+(this._isNullable(t?this._extraCurrentPosition:this._currentPosition)&&!this.config.range?" dhx_slider__thumb--nullable":"")},_.prototype._draw=function(){var t=this.config,e=t.labelPosition,i=t.mode,n=t.hiddenLabel,o=t.tick,r=t.majorTick,s=t.css,a=t.helpMessage,t=f.getLabelStyle(l(l({},this.config),{required:!1}));return!this._tooltip||this._mouseIn&&this._focusIn&&this._isMouseMoving||document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),c.el("div",{class:"dhx_slider dhx_slider--mode_"+i+("left"===e?" dhx_slider--label-inline":"")+(n?" dhx_slider--label_sr":"")+(o?" dhx_slider--ticks":"")+(r?" dhx_slider--major-ticks":"")+(s?" "+s:"")+(this._disabled?" dhx_slider--disabled":"")},[t?c.el("label.dhx_label.dhx_slider__label",{style:t.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},a?[t.label&&c.el("span.dhx_label__holder",t.label),c.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:t.label):null,this._drawSlider()])},_.prototype._drawSlider=function(){return c.el(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[c.el(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),c.el("div",{_ref:"runner",class:this._getRunnerCss(),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(),tabindex:0}),this.config.tooltip&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip():null,this.config.tooltip&&this.config.range&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip(!0):null,this.config.range?c.el("div",{_ref:"extraRunner",class:this._getRunnerCss(!0),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(!0),tabindex:0}):null]),this.config.tick?this._drawTicks():null])},_.prototype._getDetector=function(){var t;if(this._disabled)return c.el(".dhx_slider__range");var e="horizontal"===this.config.mode?"left":"top",i="horizontal"===this.config.mode?"width":"height";if(this.config.range){var n=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition],o=n[0],r=n[1];return c.el(".dhx_slider__range",{style:((n={})[e]=r+"%",n[i]=o-r+"%",n)})}return this._isInverse()?c.el(".dhx_slider__range",{style:((t={})[e]=this._currentPosition+"%",t[i]=100-this._currentPosition+"%",t)}):c.el(".dhx_slider__range",{style:((t={})[e]=0,t[i]=this._currentPosition+"%",t)})},_.prototype._drawTooltip=function(t){var e,i,n;void 0===t&&(t=!1),"none"!==this._activeTooltip&&this.getRootView()&&(e="extraTooltip"===this._activeTooltip?this._extraCurrentPosition:this._currentPosition,i="horizontal"===this.config.mode?"left":"top",n="",(t&&this._isExtraActive||!t&&!this._isExtraActive)&&(n+=" dhx_slider__thumb-label--active"),this._tooltip||(this._tooltip=document.createElement("div")),t=("tooltip"===this._activeTooltip?this.getRootView().refs.runner:this.getRootView().refs.extraRunner).el.getBoundingClientRect(),this._tooltip.className="dhx_slider__thumb-label"+n,this._tooltip.style.left=t.x+("left"==i?6:-30)+window.pageXOffset+"px",this._tooltip.style.top=t.y+("left"==i?-30:6)+window.pageYOffset+"px",this._tooltip.innerText=this._getValue(e).toString(),document.body.appendChild(this._tooltip))},_.prototype._getTicks=function(){for(var t=this.config,e=t.max,i=t.min,n=t.step,o=t.tick,r=t.majorTick,s=e-i,a=n*o/s,l=[],c=0,d=0;c<1;){var u=+(Number(i)+c*s).toFixed(5),h=d%r==0;l.push({position:(this._isInverse()?100*(1-c):100*c)+"%",isMultiple:h,label:h&&"function"==typeof this.config.tickTemplate?this.config.tickTemplate(u):null}),c+=a,d++}return l.push({position:(this._isInverse()?0:100)+"%",isMultiple:!0,label:"function"==typeof this.config.tickTemplate?this.config.tickTemplate(e):null}),l},_.prototype._drawTicks=function(){var i="horizontal"===this.config.mode?"left":"top";return c.el(".dhx_slider__ticks-holder",this._getTicks().map(function(t){var e;return c.el("div",{class:"dhx_slider__tick"+(t.isMultiple?" dhx_slider__tick--major":""),style:((e={})[i]=t.position,e)},void 0!==t.label?[c.el(".dhx_slider__tick-label",t.label)]:null)}))},_.prototype._isNullable=function(t){return this._isInverse()?100===t:0===t},_.prototype._setTooltip=function(t){t.target.classList.contains("dhx_slider__thumb--extra")?this._activeTooltip="extraTooltip":t.target.classList.contains("dhx_slider__thumb")?this._activeTooltip="tooltip":this._activeTooltip="none"},_);function _(t,e){var i=g.call(this,t,r.extend({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},e))||this;i._disabled=!1,i.config.helpMessage=i.config.helpMessage||i.config.help,void 0!==i.config.thumbLabel&&(i.config.tooltip=i.config.thumbLabel),i.config.labelInline&&(i.config.labelPosition="left"),i.events=new s.EventSystem(i),i._axis="horizontal"===i.config.mode?"clientX":"clientY",i._initStartPosition(),i._keyManager=new a.KeyManager(function(){var t;return document.activeElement===(null===(t=null===(t=i.getRootView().refs)||void 0===t?void 0:t[i._isExtraActive?"extraRunner":"runner"])||void 0===t?void 0:t.el)}),i._initHotkeys();e=c.create({render:function(){return i._draw()},hooks:{didMount:function(){return i._calcSliderPosition()},didRedraw:function(){return i._calcSliderPosition()}}});return i._initHandlers(),i.mount(t,e),i}e.Slider=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(1),l=i(0),c=i(5),d=i(2),u=i(8),h=i(45),o=(r=u.View,o(f,r),f.prototype.show=function(t,e,i){var n=this;void 0===e&&(e={}),this.events.fire(h.PopupEvents.beforeShow,[t])&&(t=d.toNode(t),this._isActive?this._setPopupSize(t,e):(i&&this.attach(i),e.theme&&this._setTheme(e.theme),this._popup.style.left="0",this._popup.style.top="0",l.awaitRedraw().then(function(){n._setPopupSize(t,e),n._popup.style.position="fixed",document.body.appendChild(n._popup),n._isActive=!0}).then(function(){n._popup.style.position="absolute",n.events.fire(h.PopupEvents.afterShow,[t]),n._outerClickDestructor=n._detectOuterClick(t)})))},f.prototype.hide=function(){this._hide(!1,null)},f.prototype.isVisible=function(){return this._isActive},f.prototype.attach=function(t,e){return this._html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof u.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},f.prototype.attachHTML=function(t){this._html=t,this.paint()},f.prototype.getWidget=function(){return this._ui},f.prototype.getContainer=function(){return this.getRootView().refs.content.el},f.prototype.toVDOM=function(){var t;return this._html?t=l.el(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=l.inject(t)),l.el("div",{class:"dhx_popup-content",tabindex:0,onclick:this._clickEvent,_key:this._uid,_ref:"content"},[t])},f.prototype.destructor=function(){this.hide(),this._outerClickDestructor&&this._outerClickDestructor(),this._popup=null},f.prototype._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?void 0:t.getAttribute("data-dhx-theme"))&&this._popup.setAttribute("data-dhx-theme",t)},f.prototype._setPopupSize=function(t,e,i){var n=this;void 0===i&&(i=3);var o=this._popup.getBoundingClientRect(),r=o.width,o=o.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!i||0!==r&&0!==o){r=d.fitPosition(t,s(s({centering:!0,mode:"bottom"},e),{width:r,height:o})),o=r.left,r=r.top;if(this._popup.style.left=o,this._popup.style.top=r,e.indent&&0!==e.indent)switch(e.mode){case"top":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"bottom":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;case"left":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"right":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;default:this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px"}}else this._timeout=setTimeout(function(){n._isActive&&(n._setPopupSize(t,e,i-1),n._timeout=null)})},f.prototype._detectOuterClick=function(n){var o=this,r=!1,s=new WeakMap,a=function(t){var e=t.target,i=document.querySelectorAll(".dhx_popup");for(r?i.forEach(function(t){return s.has(t)||s.set(t,o._popup)}):(r=Boolean(i.length))&&i.forEach(function(t){return s.set(t,!0)});e;){if(e===n||e===o._popup||s.get(e)===o._popup)return;e=e.parentNode}o._hide(!0,t)&&document.removeEventListener("mousedown",a)};return document.addEventListener("mousedown",a),function(){return document.removeEventListener("mousedown",a)}},f.prototype._hide=function(t,e){if(this._isActive)return!!this.events.fire(h.PopupEvents.beforeHide,[t,e])&&(document.body.removeChild(this._popup),this._isActive=!1,this._outerClickDestructor&&(this._outerClickDestructor(),this._outerClickDestructor=null),this.events.fire(h.PopupEvents.afterHide,[e]),!0)},f);function f(t){void 0===t&&(t={});var e=r.call(this,null,a.extend({},t))||this,i=e._popup=document.createElement("div");return i.className="dhx_widget dhx_popup"+(e.config.css?" "+e.config.css:""),i.style.position="absolute",i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-live","polite"),e.config.theme&&e._setTheme(e.config.theme),e.mount(i,l.create({render:function(){return e.toVDOM()}})),e._clickEvent=function(t){return e.events.fire(h.PopupEvents.click,[t])},e.events=t.events||new c.EventSystem(e),e._isActive=!1,e}e.Popup=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={hours:"Hours",minutes:"Minutes",save:"Save"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeCheck=function(t){return/(^12:[0-5][0-9]?AM$)/i.test(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linkButtonClasses=".dhx_button.dhx_button--view_link.dhx_button--icon.dhx_button--size_medium.dhx_button--color_secondary"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(4),i=(s.prototype.endEdit=function(){var t=this._checked;this._config.events.fire(r.GridEvents.beforeEditEnd,[t,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(r.GridEvents.afterEditEnd,[t,this._cell.row,this._cell.col])):this._input.checked=!t},s.prototype.toHTML=function(){void 0===this._checked&&(this._checked=this._cell.row[this._cell.col.id]);var t=n.uid();return o.el("div.dhx_checkbox.dhx_cell-editor__checkbox",[o.el("label",{style:{display:"none"},for:t},this._checked||"false"),o.el("input.dhx_checkbox__input",{type:"checkbox",_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",checked:this._checked,id:t,style:{userSelect:"none"}}),o.el("span.dhx_checkbox__visual-input")])},s.prototype._initHandlers=function(){var e=this;this._handlers={onClick:function(){var t=!e._input.checked;e._config.events.fire(r.GridEvents.beforeEditStart,[e._cell.row,e._cell.col,"checkbox"])?(e._checked=t,e._config.events.fire(r.GridEvents.afterEditStart,[e._cell.row,e._cell.col,"checkbox"]),e.endEdit()):e._input.checked=!t},didInsert:function(t){e._checkbox=t.el.parentNode.lastChild,e._input=t.el.parentNode.querySelector("input"),t.el.parentNode.addEventListener("click",e._handlers.onClick)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.CheckboxEditor=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=i(4),s=i(31),a=i(20),l=i(9),i=(c.prototype.endEdit=function(t){var e,i,n=this;t||(e=this._input.getValue(),e="multiselect"===this._cell.col.editorType?e.split(",").join(", "):e),this._config.events.fire(r.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(i=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=l.getEditorOptions(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[];return this._input||(this._input=new s.Combobox(null,n({itemHeight:37,css:"dhx_cell-editor__combobox",multiselection:"multiselect"===this._cell.col.editorType},this._cell.col.editorConfig)),this._input.data.parse(t),t=this._cell.row[this._cell.col.id],t="multiselect"===this._cell.col.editorType?((null==t?void 0:t.toString())||"").split(", "):t,this._input.setValue(t),this._input.events.on("keydown",this._handlers.onkeydown),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,o.awaitRedraw().then(function(){var t=e._input.getRootView().refs.holder.el;e._input.popup.getContainer().style.width=t.offsetWidth+"px",e._input.popup.show(t)}),a.focusManager.setFocusId(this._input._uid),o.inject(this._input.getRootView())},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()}}},c);function c(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.ComboboxEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEY_CODES={BACKSPACE:8,ENTER:13,ESC:27,DOWN_ARROW:40,UP_ARROW:38,LEFT_ARROW:37,RIGHT_ARROW:39}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(109);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(32),i=(r.prototype.endEdit=function(){var t;this._input&&(t=this._input.value,this._list.events.fire(o.ListEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._list.events.fire(o.ListEvents.afterEditEnd,[t,this._item.id])):this._input.focus())},r.prototype.toHTML=function(){this._mode=!0;var t=this._config.itemHeight;return n.el(".dhx_input__wrapper",{role:"presentation"},[n.el("div.dhx_input__container",{role:"presentation"},[n.el("input.dhx_input",{class:this._item.css?" "+this._item.css:"",style:{height:t,width:"100%",padding:"8px 12px"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},r.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},onKeyDown:function(t){"Enter"===t.key&&e._item.value===e._input.value&&e.endEdit(),"Escape"===t.key&&(e._input.value=e._item.value,e.endEdit())},didInsert:function(t){t=t.el;(e._input=t).focus(),t.value=e._item.value,t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onKeyDown)}}},r);function r(t,e){var i=this;this._list=e,this._config=e.config,this._item=t,this._list.events.on(o.ListEvents.focusChange,function(t,e){i._mode&&e!==i._item.id&&i.endEdit()}),this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(29),i=i(51),o=(a=i.List,o(d,a),d.prototype.destructor=function(){a.prototype.destructor.call(this),this.scrollView=null},d.prototype.showItem=function(t){var e,i,n,o=this.getRootView();o&&o.node&&o.node.el&&void 0!==t&&((e=null!==(i=this.scrollView)&&void 0!==i&&i.config.enable?null===(n=this.getRootNode())||void 0===n?void 0:n.querySelector(".scroll-view"):this.getRootNode())&&(o=this.config.virtual,i=this.data.getIndex(t),n=Math.floor(i/e.children.length)||0,t=e.children[i-e.children.length*n],(o||t)&&(n=o?parseInt(this.config.itemHeight):t.clientHeight,(t=o?i*n:t.offsetTop)>=e.scrollTop+e.clientHeight-n?e.scrollTo(0,t-e.clientHeight+n):t<e.scrollTop&&e.scrollTo(0,t))))},d.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});this.config.virtual&&(e=s([l.el(".div",{style:{height:t[2]+"px"}})],e,[l.el(".div",{style:{height:t[3]+"px"}})]));var n=this.scrollView&&this.scrollView.config.enable,t=(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(n?" dhx_list--scroll-view":"");return l.el("ul.dhx_widget.dhx_list",r(r({style:{"max-height":this.config.height,position:"relative"},class:t,"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),n?[].concat(this.scrollView.render(e)):e)},d);function d(t,e){var i=a.call(this,t,e)||this;return i.scrollView=new c.ScrollView(function(){return i.getRootView()}),i.paint(),i}e.ProList=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.startNewListen=function(t){this._isActive=!0,this._sequence="",this._currentAction=t},o.prototype.endListen=function(){this._currentAction=null,this.reset(),this._isActive=!1},o.prototype.reset=function(){this._sequence=""},o.prototype._change=function(){this._currentAction(this._sequence),this._addClearTimeout()},o.prototype._addClearTimeout=function(){var t=this;this._clearTimeout&&clearTimeout(this._clearTimeout),this._clearTimeout=setTimeout(function(){t.reset(),t._clearTimeout=null},2e3)},o);function o(){var e=this;this._sequence="",document.addEventListener("keydown",function(t){e._isActive&&("Backspace"===(t=t.key)&&0<e._sequence.length&&(e._sequence=e._sequence.slice(0,e._sequence.length-1),e._change()),t.length<2&&(e._sequence+=t,e._change()))})}e.KeyListener=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(49),a=i(50),l=i(26),c=i(54),o=(r=s.Combobox,o(d,r),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 r.call(this,t,e)||this}e.ProCombobox=o},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=i(4),o=i(1),a=i(9),i=(l.prototype.endEdit=function(t){var e;t||(e=this._editor.value),this._config.events.fire(s.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._editor.removeEventListener("blur",this._handlers.onBlur),this._editor.removeEventListener("change",this._handlers.onChange),this._editor.removeEventListener("input",this._handlers.onInput),"string"!==this._cell.col.type&&o.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(s.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._editor.focus()},l.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];this._editor&&(t=this._editor.value);var e=void 0!==(this._config.$editable.editor=this)._cell.row.height||this._cell.col.htmlEnable?"dhx_cell-editor dhx_cell-editor__textarea_constant-height":"dhx_cell-editor dhx_cell-editor__textarea";return n.el("textarea",{_hooks:{didInsert:this._handlers.didInsert},_ref:"textarea",_key:"cell_editor","data-dhx-id":"cell_editor",value:t,class:e,style:{width:this._width}})},l.prototype._initHandlers=function(){var o=this;this._handlers={onBlur:function(){o.endEdit()},onChange:function(){o.endEdit()},onInput:function(t){if(void 0===o._cell.row.height&&!o._cell.col.htmlEnable){var e=o._getCurrentHeight(o._editor.value,{width:o._cell.col.$width-2,maxHeight:o._config.rowHeight});o._cell.row[o._cell.col.id]=o._editor.value;var i=a.getCalculatedRowHeight(a.getMaxRowHeight(o._cell.row,o._config.columns)),n=a.getCalculatedRowHeight(a.getMaxRowHeight(((n={})[o._cell.col.id]=o._cell.row[o._cell.col.id],n),o._config.columns));if(o._minHeight=i===n?o._config.rowHeight:i,e>=o._minHeight&&e!==o._prevHeight){if(!o._config.events.fire(s.GridEvents.beforeRowResize,[o._cell.row,t,e]))return;o._config.events.fire(s.GridEvents.afterRowResize,[o._cell.row,t,e])}o._prevHeight=e}},didInsert:function(t){o._editor=t.el,o._editor.focus(),o._editor.setSelectionRange(0,o._editor.value.length),o._editor.addEventListener("change",o._handlers.onChange),o._editor.addEventListener("blur",o._handlers.onBlur),o._editor.addEventListener("input",o._handlers.onInput)}}},l.prototype._getCurrentHeight=function(t,e){e=r({width:100,maxHeight:40,lineHeight:20},e);var i=document.createElement("textarea");i.className="dhx_cell-editor dhx_cell-editor__textarea",i.value=t,i.style.width=e.width+"px",i.style.lineHeight=e.lineHeight+"px",i.style.maxHeight=e.maxHeight+"px",i.style.boxSizing="border-box",document.body.appendChild(i);var n=this._getElementHeight(i),o=i.value.split("\n").length,t=Math.round(n/e.lineHeight),n=n<e.maxHeight?e.maxHeight:n;return document.body.removeChild(i),1===o&&o===t?e.maxHeight:n},l.prototype._getElementHeight=function(t){return t.scrollHeight},l);function l(t,e,i){this._config=i,this._cell={row:t,col:e},this._width=this._cell.col.$width;e=0;this._config.firstColId===this._cell.col.id&&this._cell.row.hasOwnProperty("$level")&&(e=a.getTreeCellWidthOffset(this._cell.row)),this._width-=e-4,this._initHandlers()}e.TextAreaEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(0),c=i(31),d=i(6),u=i(9),r=i(1),h=i(115),s=i(116),f=i(117);function n(t,n,e,i){if(t&&n&&e){var o=t.id,t=i?i(o,n.data):n.data.reduce(function(t,e){return void 0===e[o]||""===e[o]||isNaN(e[o])||t.push(parseFloat(e[o])),t},[]),i=t;return"tree"===n.type&&(i=n.data.reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[o]||""===e[o]||isNaN(e[o])?(i=0,n.datacollection.eachChild(e.id,function(t){n.datacollection.haveItems(t.id)||(i+=parseFloat(t[o]))}),t.push(i)):t.push(parseFloat(e[o])||0)),t},[])),e(t,i)}}e.getContent=function(){function a(e){var t=e.$uniqueData,i=u.getEditorOptions(e);return"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})),"string"!==e.type?Array.from(new Set(t.map(function(t){return u.toFormat(t,e.type,e.format)}))):t}var i=this;return{inputFilter:{element:{},toHtml:function(t,e){var i=this,n=r.uid(),o=t.id.toString(),n=new f.InputFilter(t,e,n,this.value[o]);return n.events.on("change",function(t){i.value[o]=t}),(this.element[o]=n).getFilter()},match:function(t){for(var e=t.val,i=t.match,t=t.col,t=u.toFormat(e,t.type,t.format),n="",o=0;o<i.length;o++){var r=i.charCodeAt(o);n+=32<r&&r<48||63===r||90<r&&r<95||124===r?"\\"+i[o]:i[o]}return new RegExp(""+n,"i").test(t)},value:{}},selectFilter:{element:{},toHtml:function(t,e){var i=this,n=t.id.toString(),o=a(t),o=new s.SelectFilter(t,e,o,this.value[n]);return o.events.on("change",function(t){i.value[n]=t}),(this.element[n]=o).getFilter()},match:function(t){var e=t.val,i=t.match,t=t.col,t=u.toFormat(e,t.type,t.format);return!i||(t||"boolean"==typeof t)&&t.toString()==i},value:{}},comboFilter:{element:{},toHtml:function(i,t){var e,n,o,r=this,s=i.id.toString();return!this.element[s]&&t.events?(e=a(i),n=i.header.filter(function(t){return void 0!==t.filterConfig})[0],(o=new h.ComboFilter(i,t,e,this.value[s],n)).events.on("change",function(t){r.value[s]=t}),this.element[s]=o,t.events.on(d.DataEvents.change,function(t,e){"add"!==e&&"update"!==e&&"remove"!==e||(e=a(i),o.getFilter().data.parse(e.map(function(t){return{value:t}})),o.getFilter().events.fire(c.ComboboxEvents.change,[o.getFilter().list.selection.getItem()]))}),t.events.on(d.DataEvents.removeAll,function(){o.getFilter().data.parse(i.$uniqueData.map(function(t){return{value:t}})),o.getFilter().events.fire(c.ComboboxEvents.change,[o.getFilter().list.selection.getItem()])})):o=this.element[i.id]||new h.ComboFilter(i),l.inject(o.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,t=t.col,r=u.toFormat(e,t.type,t.format);if(Array.isArray(n)){for(var s=void 0,a=0;a<n.length;a++)if("break"===function(e){if(s=o&&"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(){if(i.content&&i.content.comboFilter.element){var t,e=i.content.comboFilter.element;for(t in e)e[t].destructor(),delete e[t]}},value:{}},sum:{calculate:function(t,e){return e.reduce(function(t,e){return t+(parseFloat(e)||0)},0)},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},avg:{calculate:function(t,e){return t.length?e.reduce(function(t,e){return t+e},0)/t.length:null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},min:{calculate:function(t){return t.length?Math.min.apply(Math,t):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},max:{calculate:function(t){return t.length?Math.max.apply(Math,t):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},count:{calculate:function(t,e){return e.length},validate:function(i,t){return t.reduce(function(t,e){return void 0!==e[i]&&""!==e[i]&&(isNaN(e)?t.push(1):t.push(e)),t},[])},toHtml:function(t,e){return n(t,e,this.calculate,this.validate)}}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(31),r=i(5),o=i(6),s=i(4),i=(a.prototype.initFilter=function(){this._filter=new n.Combobox(null,Object.assign({},this.filterConfig)),this.data&&this._filter.data&&this._filter.data.parse(this.data.map(function(t){return{value:t}}))},a.prototype.initHandlers=function(){var t,i=this,n=this.column.id.toString();this.config.events.on(o.DataEvents.load,function(){i._filter.data.parse(i.column.$uniqueData.map(function(t){return{value:t}}))}),this._filter.events.on("change",function(t){var e;t&&(e=void 0,(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):i.value=void 0,null!==(e=i.config.events)&&void 0!==e&&e.fire(s.GridEvents.filterChange,[i.value,n,"comboFilter"]))}),this.config.events.on(s.GridEvents.filterChange,function(t){i.events.fire(s.HeaderFilterEvent.change,[t])}),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)&&void 0!==t&&t.on(s.GridEvents.scroll,function(){var t;i._isFocused&&null!==(t=i._filter.getRootView().refs)&&void 0!==t&&t.input&&i._filter.focus()}),null!==(t=this.config.events)&&void 0!==t&&t.on(s.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(s.GridEvents.cellMouseDown,function(){return i.blur()})},a.prototype.getFilter=function(){return this._filter},a.prototype.setValue=function(e){var t,i=this;!this.filterConfig.multiselection&&Array.isArray(e)||(this._filter.clear(),null!=e&&e.length||""===e?(t=this.filterConfig.multiselection&&Array.isArray(e)?e.map(function(e){var t;return null===(t=i._filter.data.find(function(t){return t.value===e}))||void 0===t?void 0:t.id}):null===(t=this._filter.data.find(function(t){return t.value===e}))||void 0===t?void 0:t.id,this._filter.setValue(t)):this.filterConfig.multiselection||void 0===this.value||(this.value=void 0,null!==(t=this.config.events)&&void 0!==t&&t.fire(s.GridEvents.filterChange,[this.value,this.column.id,"comboFilter"])))},a.prototype.clear=function(){this.setValue()},a.prototype.focus=function(){var t;this._isFocused=!0,null!==(t=this._filter.getRootView().refs)&&void 0!==t&&t.input&&this._filter.focus()},a.prototype.blur=function(){var t;this._isFocused=!1,null!==(t=this._filter.getRootView().refs)&&void 0!==t&&t.input&&this._filter.blur()},a);function a(t,e,i,n,o){this.events=new r.EventSystem,this.column=t,this.config=e,this.data=i,this.value=n,this.filterConfig=(null==o?void 0:o.filterConfig)||{},(this.column.htmlEnable||null!==(o=this.config)&&void 0!==o&&o.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()}e.ComboFilter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(5),r=i(4),i=(s.prototype.initHandlers=function(){var n=this;this._handlers={onchange:function(t){var e,i=(null===(e=t.target)||void 0===e?void 0:e.value)||(null===(e=null===(e=t.composedPath())||void 0===e?void 0:e[0])||void 0===e?void 0:e.value)||(null===(i=t.explicitOriginalTarget)||void 0===i?void 0:i.value);n.setValue(i)},onfocus:function(){n._isFocused=!0},onblur:function(){n._isFocused=!1}}},s.prototype.initFilter=function(){var t,i=this;this._filter=n.el("label.dhx_grid-filter__label.dxi.dxi-menu-down",{_ref:this.column.id+"_filter"},[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},[n.el("option",{value:""},""),this.data.map(function(t){return""!==(t=null!=t?t:"")&&n.el("option",{value:t,selected:i.value===t.toString()},t)})])]),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.scroll,function(){var t,e=null===(t=null===(t=null===(t=null===(t=i.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[i.column.id+"_filter"])||void 0===t?void 0:t.el;i._isFocused&&e&&n.awaitRedraw().then(function(){e.focus()})}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.cellMouseDown,function(){return i.blur()})},s.prototype.getFilter=function(){return this._filter},s.prototype.setValue=function(t){this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[t]),null!==(t=this.config.events)&&void 0!==t&&t.fire(r.GridEvents.filterChange,[this.value,this.column.id,"selectFilter"])},s.prototype.clear=function(){this.setValue("")},s.prototype.focus=function(){this._isFocused=!0;var t=null===(t=null===(t=null===(t=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[this.column.id+"_filter"])||void 0===t?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?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[this.column.id+"_filter"])||void 0===t?void 0:t.el;t&&t.blur()},s);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.initFilter()}e.SelectFilter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(5),r=i(4),i=(s.prototype.initHandlers=function(){var n=this;this._handlers={onchange:function(i){n._inputDelay&&clearTimeout(n._inputDelay),n._inputDelay=setTimeout(function(){var t,e=(null===(t=i.target)||void 0===t?void 0:t.value)||(null===(t=null===(t=i.composedPath())||void 0===t?void 0:t[0])||void 0===t?void 0:t.value)||(null===(e=i.explicitOriginalTarget)||void 0===e?void 0:e.value);n.setValue(e)},500)},onfocus:function(){n._isFocused=!0},onblur:function(){n._isFocused=!1}}},s.prototype.initFilter=function(){var t,i=this;this._filter=n.el("div.dhx_grid-filter__label.dxi.dxi-magnify",{"aria-label":"Type to search",_ref:this.column.id+"_filter"},[n.el("label",{style:{display:"none"},"aria-label":"Type to search",for:this.id},"Type to search"),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})]),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.scroll,function(){var t,e=null===(t=null===(t=null===(t=null===(t=i.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[i.column.id+"_filter"])||void 0===t?void 0:t.el;i._isFocused&&e&&n.awaitRedraw().then(function(){var t;null!==(t=e.querySelector("input"))&&void 0!==t&&t.focus()})}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.cellMouseDown,function(){return i.blur()})},s.prototype.getFilter=function(){return this._filter},s.prototype.setValue=function(t){this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[this.value]),null!==(t=this.config.events)&&void 0!==t&&t.fire(r.GridEvents.filterChange,[this.value,this.column.id,"inputFilter"])},s.prototype.clear=function(){this.setValue("")},s.prototype.focus=function(){var t;this._isFocused=!0;var e=null===(e=null===(e=null===(e=null===(e=this.config.events)||void 0===e?void 0:e.context)||void 0===e?void 0:e.getRootView())||void 0===e?void 0:e.refs[this.column.id+"_filter"])||void 0===e?void 0:e.el;e&&null!==(t=e.querySelector("input"))&&void 0!==t&&t.focus()},s.prototype.blur=function(){var t;this._isFocused=!1;var e=null===(e=null===(e=null===(e=null===(e=this.config.events)||void 0===e?void 0:e.context)||void 0===e?void 0:e.getRootView())||void 0===e?void 0:e.refs[this.column.id+"_filter"])||void 0===e?void 0:e.el;e&&null!==(t=e.querySelector("input"))&&void 0!==t&&t.blur()},s);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.initFilter()}e.InputFilter=i},function(t,e,i){"use strict";var _=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var v=i(1),m=i(4),y=i(10);e.startResize=function(a,l,t,e){var i,c=a.config.rightSplit;t.targetTouches&&t.preventDefault();var d=(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===(i=a.scrollView)||void 0===i||!i.config.enable),p=c?y.calcScrollBarWidth(a.config,f).xState:null,g=0;function n(t){var e,i,n=v.findIndex(u,function(t){return t.id===l}),o=(t.targetTouches?t.targetTouches[0]:t).clientX,r=o-a.getRootNode().getBoundingClientRect().left,s=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,e=u[n].minWidth||40,r=u[n].maxWidth,s=o-d,o=_(u),s=g+(p&&h.includes(l)?-s:s),r&&r<=s||s<=e?(s<=e&&(i=e),r<=s&&(i=r)):i=s,o[n].$width=i,o[n].$fixed=!0,a.events.fire(m.GridEvents.resize,[u[n],t]),a.paint())}a.config.$resizing=l;var o=function(){t.targetTouches?(document.removeEventListener("touchmove",n),document.removeEventListener("touchend",o)):(document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)),e()};t.targetTouches?(document.addEventListener("touchmove",n),document.addEventListener("touchend",o)):(document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)),a.paint()}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(2),l=i(33),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){"string"==typeof t&&(t={text:t}),t.position=t.position||l.MessageContainerPosition.topRight;var e=document.createElement("div");e.className="dhx_widget dhx_message "+(t.css||""),e.setAttribute("role","alert"),(o=t.text&&s.uid())&&e.setAttribute("aria-describedby",o),t.html?e.innerHTML=t.html:(e.innerHTML='<span class="dhx_message__text" id='+o+"></span>\n\t\t"+(t.icon?'<span class="dhx_message__icon dxi '+t.icon+'"></span>':""),e.querySelector("#"+o).textContent=t.text);var i=t.node?a.toNode(t.node):document.body;"static"===getComputedStyle(i).position&&(i.style.position="relative"),(o=d.get(i))?o[t.position]||(o[t.position]={stack:[],container:u(i,t.position)}):d.set(i,((n={})[t.position]={stack:[],container:u(i,t.position)},n));var n=(o=d.get(i)[t.position]).stack,o=o.container;function r(t){void 0===t&&(t=!0),e&&(function(t,e){e&&clearTimeout(c.get(t));var i=t.parentNode,n=i.getAttribute("data-position"),o=i.parentNode;(e=d.get(o))&&(!(e=e[n])||-1!==(e=(n=e.stack).indexOf(t))&&(i.removeChild(t),n.splice(e,1),0===n.length&&o.removeChild(i)))}(e,t),e=null)}return 0===n.length&&i.appendChild(o),n.push(e),o.appendChild(e),t.expire&&(t=setTimeout(function(){return r(!1)},t.expire),c.set(e,t)),e.onclick=function(){return r()},{close:function(){return r()}}}},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(59),i=o(60),c=o(1);n.alert=function(s){var a=s.buttons&&s.buttons[0]?s.buttons[0]:e.default.apply,l=i.blockScreen(s.blockerCss);return new t(function(e){var t="dhx_alert__"+c.uid()+"_content",i="dhx_alert__"+c.uid()+"_header",n=document.createElement("div");n.setAttribute("role","alert"),n.setAttribute("aria-modal","true"),s.text&&n.setAttribute("aria-describedby",t),s.header&&n.setAttribute("aria-labelledby",i),n.className="dhx_widget dhx_alert "+(s.css||"");var o=function(t){"Escape"!==t.key&&"Esc"!==t.key||(r(t),e(!1))};function r(t){t.preventDefault(),l(),document.body.removeChild(n),document.removeEventListener("keydown",o)}n.innerHTML="\n\t\t\t"+(s.header?"<div id="+i+' class="dhx_alert__header"> '+(!1!==s.htmlEnable?s.header:"")+" </div>":"")+"\n\t\t\t"+(s.text?"<div id="+t+' class="dhx_alert__content">'+(!1!==s.htmlEnable?s.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(s.buttonsAlignment?"dhx_alert__footer--"+s.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="confirm" class="dhx_alert__apply-button dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+a+"</button>\n\t\t\t</div>",!1===s.htmlEnable&&(s.header&&(n.querySelector("#"+i).textContent=s.header),s.text&&(n.querySelector("#"+t).textContent=s.text)),document.body.appendChild(n),n.querySelector(".dhx_alert__apply-button").focus(),n.querySelector("button").addEventListener("click",function(t){r(t),e(!0)}),document.addEventListener("keydown",o)})}}).call(this,o(14))},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(59),i=o(60),h=o(1);n.confirm=function(l){l.buttonsAlignment=l.buttonsAlignment||"right";var c=l.buttons&&l.buttons[1]?l.buttons[1]:e.default.apply,d=l.buttons&&l.buttons[0]?l.buttons[0]:e.default.reject,u=i.blockScreen("dhx_alert__overlay-confirm "+(l.blockerCss||""));return new t(function(e){var i=document.createElement("div");i.setAttribute("role","alertdialog"),i.setAttribute("aria-modal","true");var n,t=l.header&&h.uid(),o=l.header&&h.uid();o&&i.setAttribute("aria-describedby",o),t&&i.setAttribute("aria-labelledby",t);function r(t){u(),i.removeEventListener("click",s),document.removeEventListener("keydown",a),document.body.removeChild(i),e(t)}var s=function(t){"BUTTON"===t.target.tagName&&r(t.target.classList.contains("dhx_alert__confirm-aply"))},a=function(t){"Escape"===t.key||"Esc"===t.key?(i.querySelector(".dhx_alert__confirm-aply").focus(),r(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===n?(n="reject",i.querySelector(".dhx_alert__confirm-reject").focus()):(n="aply",i.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};i.className="dhx_widget dhx_alert dhx_alert--confirm"+(l.css?" "+l.css:""),i.innerHTML="\n\t\t"+(l.header?'<div class="dhx_alert__header" id='+t+"> "+(!1!==l.htmlEnable?l.header:"")+" </div>":"")+"\n\t\t"+(l.text?'<div class="dhx_alert__content" id='+o+">"+(!1!==l.htmlEnable?l.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(l.buttonsAlignment?"dhx_alert__footer--"+l.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="reject" class="dhx_alert__confirm-reject dhx_button dhx_button--view_link dhx_button--color_primary dhx_button--size_medium">'+d+'</button>\n\t\t\t\t<button type="button" aria-label="aply"class="dhx_alert__confirm-aply dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+c+"</button>\n\t\t\t</div>",!1===l.htmlEnable&&(l.header&&(i.querySelector("#"+t).textContent=l.header),l.text&&(i.querySelector("#"+o).textContent=l.text)),document.body.appendChild(i),n="aply",i.querySelector(".dhx_alert__confirm-aply").focus(),i.addEventListener("click",s),document.addEventListener("keydown",a)})}}).call(this,o(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)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),u=i(33),h=750,f=200;function d(t,e,i,n,o,r){var s,a,l;switch(void 0===o&&(o=8),void 0===r&&(r=0),1<r&&(e=u.Position.center),e){case u.Position.center:return(a=t.left+window.pageXOffset+(t.width-i)/2)+o<window.pageXOffset&&(a=t.left+window.pageXOffset),{left:a,top:l=t.top+window.pageYOffset+(t.height-n)/2,pos:s=u.RealPosition.center};case u.Position.right:return(s=u.RealPosition.right,(a=t.right+window.pageXOffset+o)+i>window.innerWidth+window.pageXOffset)?d(t,u.Position.left,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case u.Position.left:return(s=u.RealPosition.left,(a=window.pageXOffset+t.left-i-o)<0)?d(t,u.Position.right,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case u.Position.top:return s=u.RealPosition.top,(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),(l=window.pageYOffset+t.top-n-o)-n<0?d(t,u.Position.bottom,i,n,o,++r):{left:a,top:l,pos:s};case u.Position.bottom:default:return(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),s=u.RealPosition.bottom,(l=window.pageYOffset+t.bottom+o)+n>window.innerHeight+window.pageYOffset?d(t,u.Position.top,i,n,o,++r):{left:a,top:l,pos:s}}}e.findPosition=d;var p=document.createElement("div"),g=document.createElement("span");g.className="dhx_tooltip__text",p.appendChild(g),p.setAttribute("role","tooltip"),p.style.position="absolute";var _,v=null,m=!1,y=null,x=null;function b(t){return t&&(t.classList.contains("dhx_popup--window")&&t.classList.contains("dhx_popup--window_active")||t.classList.contains("dhx_popup--window_modal")||t.classList.contains("dhx_popup"))?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?g.innerHTML=e:g.textContent=e,document.body.appendChild(p),p.className="dhx_widget dhx_tooltip"+(o?" dhx_tooltip--forced":"");var e=p.getBoundingClientRect(),r=d(a,i,e.width,e.height,r),l=r.left,c=r.top,r=r.pos,t=b(t);switch(t&&(p.style.zIndex=t.toString()),r){case u.RealPosition.bottom:case u.RealPosition.top:case u.RealPosition.left:case u.RealPosition.right:case u.RealPosition.center:p.style.left=l+"px",p.style.top=c+"px"}p.className+=" dhx_tooltip--"+r+" "+(n||""),m=!0,o||setTimeout(function(){p.className+=" dhx_tooltip--animate"})}function r(e,t,i){var n=i.force,o=i.showDelay,r=i.hideDelay,s=i.position,a=i.css,l=i.htmlEnable,c=i.margin;n||(x=setTimeout(function(){w(e,t,s||u.Position.bottom,a,!1,c,l)},o||h));var d=function(){var t;m&&(t=r,v&&(y=setTimeout(function(){document.body.removeChild(p),m=!1,y=null},t||f))),clearTimeout(x),e.removeEventListener("mouseleave",d),e.removeEventListener("blur",d),document.removeEventListener("mousedown",d),_=v=null};n&&w(e,t,s,a,n,c,l),e.addEventListener("mouseleave",d),e.addEventListener("blur",d),document.addEventListener("mousedown",d),_=d}function s(t,e){var i=o.toNode(e.node);i!==v&&(_&&(_(),_=null),v=i,y?(clearTimeout(y),y=null,r(i,t,n(n({},e),{force:!0}))):r(i,t,e))}function a(t){t=o.locateNode(t,"dhx_tooltip_text");t&&s(t.getAttribute("dhx_tooltip_text"),{position:t.getAttribute("dhx_tooltip_position")||u.Position.bottom,node:t})}e.getZIndex=b,e.tooltip=s,e.enableTooltip=function(){document.addEventListener("mousemove",a)},e.disableTooltip=function(){document.removeEventListener("mousemove",a)}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(4),d=i(2),a=i(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||d.locateNodeByClassName(t,"dhx_grid-header-cell")||(t&&t.preventDefault(),a=e.selection.getCell(),t=e.config.columns.filter(function(t){return!t.hidden}),a&&("vertical"===i?o?(l=1===n?e.data.getItem(e.data.getId(e.data.getLength()-1)):e.data.getItem(e.data.getId(0)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):0<=(c=e.data.getIndex(a.row.id.toString()))+n&&c+n<e.data.getLength()&&(l=e.data.getItem(e.data.getId(c+n)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):o?(l=1===n?t[t.length-1]:t[0],e.selection.setCell(a.row.id,l.id,r,s),e.scrollTo(a.row.id.toString(),l.id.toString())):0<=(c=t.indexOf(a.column))+n&&c+n<t.length&&(e.selection.setCell(a.row.id,t[c+n].id,r,s),e.scrollTo(a.row.id.toString(),t[c+n].id.toString()))))}function u(t,e){var i=t.selection.getCell(),n=i&&t.getSpan(i.row.id,i.column.id);if(n){if("up"===e||"down"===e){var o=l.findIndex(t.config.data,function(t){return t.id===n.row}),r=l.findIndex(t.config.data,function(t){return t.id===i.row.id});return"up"===e?o-r-1:o+(n.rowspan||1)-r}t=t.config.columns.filter(function(t){return!t.hidden}),o=l.findIndex(t,function(t){return t.id===n.column}),r=l.findIndex(t,function(t){return t.id===i.column.id});return"left"===e?o-r-1:o+(n.colspan||1)-r}return"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?void 0:t.refs)||void 0===t?void 0:t.grid_body)||void 0===t?void 0:t.el;if(!i)return;e={pageUp:function(t){t.preventDefault(),i.scrollTop-=i.clientHeight},pageDown:function(t){t.preventDefault(),i.scrollTop+=i.clientHeight},home:function(t){t.preventDefault(),i.scrollTop=0},end:function(t){t.preventDefault(),i.scrollTop+=i.scrollHeight}}}return r({enter:function(t){var e,i=d.locateNodeByClassName(t,"dhx_grid-header-cell");i&&(e=i.getAttribute("data-dhx-id"),i=t.target.getAttribute("dhx_resized"),!e||(t=o.getColumn(e))&&a.isSortable(o.config,t)&&!i&&o.events.fire(s.GridEvents.afterSort,[e])),n?(e=o.selection.getCell())&&(!1!==e.column.editable&&o.config.editable||e.column.editable)&&(o.config.$editable?o.editEnd():"boolean"===e.column.type?o.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)&&void 0!==e?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&&!d.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)+1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):0<=i&&((n=o.data.getIndex(n.row.id.toString())+1)<o.data.getLength()&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[0].id),o.scrollTo(o.data.getId(n).toString(),e[0].id.toString())))))},"shift+tab":function(t){var e,i,n;o.config.selection&&!d.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)-1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):i<o.data.getLength()&&(0<=(n=o.data.getIndex(n.row.id.toString())-1)&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[e.length-1].id),o.scrollTo(o.data.getId(n).toString(),e[e.length-1].id.toString())))))},arrowUp:function(t){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=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(43),c=i(4),f=i(6),d=i(2),u=i(9),p=i(10),h=i(0),g=i(29),o=(a=l.Grid,o(_,a),_.prototype._createView=function(){var i=this;return h.create({render:function(t,e){return p.proRender(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},_.prototype._setEventHandlers=function(){var r=this;a.prototype._setEventHandlers.call(this),this.events.on(c.GridEvents.headerCellMouseDown,function(t,e){var i=d.locateNodeByClassName(e,"dhx_header-row"),i=i&&i.getAttribute("aria-rowindex");null!==(i=t.header[Number(i)-1])&&void 0!==i&&i.content||(e.targetTouches?r._touch.timer=setTimeout(function(){r._dragStartColumn(e,t)},r._touch.duration):r._dragStartColumn(e,t))}),this._events.on(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._checkFilters()}),this.events.on(c.GridEvents.afterResizeEnd,function(){r.config.autoHeight&&(r.config.data=r.data.map(function(t){var e=u.getMaxRowHeight(t,r.config.columns);return t.$height=u.getCalculatedRowHeight(e,{rowHeight:r.config.rowHeight,padding:8}),t}))}),this.events.on(c.GridEvents.afterRowResize,function(t,e,i){var n=r.data.getItem(t.id),o=n.id,t=n.height,n=n.$height;t&&t!==n&&r.data.update(o,{height:i}),r.data.update(o,{$height:i},!0),r.config.data=r.data.map(function(t){return t}),r.paint()}),this.events.on(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)||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=u.getMaxRowHeight(t,i.config.columns),t.$height=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=u.getMaxRowHeight(t,n.config.columns);return t.$height=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)){e=d.locateNode(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id");t.targetTouches&&(this._touch.start=!0);var i=[e];if(this.config.multiselection&&1<(i=s(i,this.selection.getCells().map(function(t){return t.row.id}))).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=s(Object.values(o))}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,o=p.getRenderConfig(this,e,{width:this.config.$width,height:this.config.$height}),r=t.config.limit,s=r,a=o.currentRows,l=a[0],c=a[a.length-1],d=this.data.getIndex(c.id),e=function(t){for(var e=1;e<a.length;e++)if("firstFilledRow"===t&&!a[e].$empty&&a[e-1].$empty||"firstEmptyRow"===t&&a[e].$empty&&!a[e-1].$empty)return i.data.getIndex(a[e].id)};if(l.$empty)if(c.$empty)n=this.data.getIndex(l.id);else{var u=e("firstFilledRow"),o=u-s;o<0&&(o=0);for(var h=o;h<u;h++)if(this.data.getItem(this.data.getId(h)).$empty){s=u-(n=h);break}}else c.$empty?n=e("firstEmptyRow"):(n=null!==(c=e("firstEmptyRow"))&&void 0!==c?c:this.data.getIndex(l.id),s=(null!==(e=e("firstFilledRow"))&&void 0!==e?e:d)-n);!this.data.isDataLoaded(n,d)&&this.data.events.fire(f.DataEvents.beforeLazyLoad,[])&&(t.updateUrl(null,{from:n,limit:s}),t.config.limit=r,this.data.load(t).then(function(){i.config.autoHeight&&i._prepareDataFromTo(i.data,n,d)}))}}},_.prototype._getColumnGhost=function(t){var e=this._container||d.toNode(this._uid),i=e.querySelector(".dhx_header-row"),n=i.querySelector('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]'),n=Array.from(i.childNodes).indexOf(n)+1,t=e.querySelectorAll('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]:not(.dhx_span-cell)'),n=e.querySelectorAll(".dhx_grid_data .dhx_grid-cell:nth-child("+n+")"),o=document.createElement("div");return t.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),n.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),o},_.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)||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=a.call(this,t,r({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=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.setItem=function(t,e){this._store[t]=e},o.prototype.getItem=function(t){return this._store[t]||null},o);function o(){this._store={}}var r=window.dhxHelpers=window.dhxHelpers||{};r.collectionStore=r.collectionStore||new n,e.collectionStore=r.collectionStore},function(t,l,c){"use strict";(function(t){var n,e=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(l,"__esModule",{value:!0});var o,i=c(15),r=c(1),s=c(24),e=(o=i.DataProxy,e(a,o),a.prototype.load=function(){var i=this;return new t(function(t,e){i._timeout?(clearTimeout(i._timeout),i._timeout=setTimeout(function(){s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0},i.config.delay),i._cooling&&(t(null),i._cooling=!1)):(s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0,i._timeout=setTimeout(function(){}))})},a);function a(t,e){var i=o.call(this,t)||this;return i.config=r.extend({from:0,limit:50,delay:50,prepare:0},e),i.updateUrl(t,{from:i.config.from,limit:i.config.limit}),i}l.LazyDataProxy=e}).call(this,c(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),n=i(22),r=i(11),s=i(1),i=(a.prototype.getId=function(){return this._selected},a.prototype.getItem=function(){return s.isId(this._selected)?this._data.getItem(this._selected):null},a.prototype.remove=function(t){return t=null!=t?t:this._selected,!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]))},a);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;!s.isId(n._selected)||(t=n._data.getNearId(n._selected))!==n._selected&&(n._selected=null,t&&n.add(t))})}e.Selection=i},function(t,e,i){"use strict";var c=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var d=i(0),u=i(129),i=(n.prototype.add=function(t){this._data.push(t)},n.prototype.clear=function(){this._data.forEach(function(t){return t.destructor&&t.destructor()}),this._data=[]},n.prototype.getSizes=function(){return this._sizes},n.prototype.toVDOM=function(e,i){var n={left:20,right:20,top:10,bottom:10},t=this._data.filter(function(t){return!t.dataReady||t.dataReady().length});this._data.forEach(function(t){return!t.scaleReady||t.scaleReady(n)});var o=0,r=0;t.forEach(function(t){t.seriesShift&&(o+=t.seriesShift(),r++)});var s=o/r,o=r?(s-o)/2:0;t.forEach(function(t){t.seriesShift&&(t.seriesShift(o),o+=s)}),this._sizes=n;var a=e-n.left-n.right,l=i-n.top-n.bottom,l=d.sv("g",{transform:"translate("+n.left+", "+n.top+")"},c([d.sv("rect.dhx_chart-graph_area",{width:0<a?a:0,height:0<l?l:0,fill:"transparent"})],t.map(function(t){return t.paint(e-(n.left+n.right),i-(n.top+n.bottom))}))),t=d.sv("defs",[u.dropShadow(),u.shadow()]);return d.sv("svg",{width:e,height:i,role:"graphics-document"},[t,l])},n);function n(){this._data=[],this._sizes={left:20,right:20,top:10,bottom:10}}e.ComposeLayer=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0);e.shadow=function(){return n.sv("filter",{id:"shadow"},[n.sv("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[n.sv("feDistantLight",{azimuth:90,elevation:25})]),n.sv("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])},e.dropShadow=function(){return n.sv("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[n.sv("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),n.sv("feComposite",{in2:"offsetblur",operator:"in"}),n.sv("feMerge",[n.sv("feMergeNode"),n.sv("feMergeNode",{in:"SourceGraphic"})])])}},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(6),r=i(17),v=i(0),x=i(3),m=i(131),b=i(1);n.prototype.scaleReady=function(t){var e="column"===this.config.direction&&("left"===this.config.halign||"right"===this.config.halign);switch(this.config.valign){case"middle":"right"===this.config.halign?t.right+=0<=this.config.size?this.config.size:200:"left"===this.config.halign&&(t.left+=0<=this.config.size?this.config.size:200);break;case"top":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.top+=0<=this.config.size?this.config.size:40;break;case"bottom":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.bottom+=0<=this.config.size?this.config.size:40}},n.prototype.paint=function(n,t){var e,i,o=this,r=this._getData(),s=this.config;s.$sizes={width:0,height:0};var a=x.getFontStyle("legend-text"),l=s.margin,c=s.itemPadding,d=[],u="middle"===s.valign,h=0,f=0,p=0,g=0;switch(r.forEach(function(t,e){var i;u||"row"!==s.direction||(i=x.getTextWidth(t.text,a),n<h+i+15&&0!==e&&(h=0,f+=c+2)),d.push(v.sv("g",_(_({transform:"translate("+h+","+f+")",onclick:[o._handlers.onclick,t.id,o.config.values],onkeyup:[o._handlers.onkeyup,t.id,o.config.values],class:"legend-item "+(t.active?"":"not-active")},{role:"button","aria-label":(e=t).active?"Hide chart "+e.text:"Show chart "+e.text}),{tabindex:0}),[v.sv("text",{x:t.maxValue?0:10,y:0,class:"start-text legend-text"},[x.verticalCenteredText(t.text)]),[m.legendShape(s.form,t),!isNaN(t.maxValue)&&!isNaN(t.minValue)&&m.legendTicks(s.form,t)]]));t="line"!==s.form?15+x.getTextWidth(t.text,a):0;u||"row"!==s.direction?(h=0,p=t<p?p:t,g=(f+=c+2)<g?g:f):p=(h+=t+c)<p?p:h}),s.valign){case"top":i="row"===s.direction?-l-f-5-("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 v.sv("g",{transform:"translate("+(0<e?e:0)+", "+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,u=t.tickTemplate,h=this.setCriticals(),t=h[0],h=h[1];i.push({id:b.uid(),text:r,alpha:1,fill:e,minValue:null!=s?s:t,maxValue:null!=a?a:h,positiveColor:n,negativeColor:o,active:!0,tick:l,majorTick:c,step:d,tickTemplate:u})}else if(this.config.values){var f=x.locator(this.config.values.text),p=x.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()||x.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?e.from+" - "+e.to:e.less?"<= "+e.less:e.greater?">= "+e.greater:void 0,alpha:1,fill:t.color,active:t.active})})}else for(var _=0,v=g=this.config.$seriesInfo;_<v.length;_++){var m=v[_].config,y=m.fill&&m.color;i.push({id:m.id,text:m.name||m.value,alpha:m.alpha,fill:m.fill||m.color,color:y&&m.color,active:m.active})}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]},i=n;function n(t,e,i){var n=this;this._data=t,this._events=i;this.config=_(_({},{form:"rect",itemPadding:20,halign:"right",valign:"top",direction:"row",type:"groupName"}),e),this.config.margin=e.margin||function(t,e,i,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,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])}}}e.Legend=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),h=i(0),n={circle:function(t,e,i){return h.sv("circle",{id:s.uid(),r:5,fill:e,class:"figure "+("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":i,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,i){return h.sv("rect",{id:s.uid(),fill:e,"fill-opacity":i,width:10,"stroke-width":2,height:10,class:"figure "+("none"!==t?"with-stroke":""),stroke:t,transform:"translate(-5, -5)"})},line:function(t,e,i,n){var o=function(t,e,i){return h.sv("stop",{offset:e+"%","stop-color":t,class:t?"":i})},r="lg"+s.uid(),o=h.sv("linearGradient",{id:r},[o(t[1],0,"heat-negative"),o(e,n,"heat-neutral"),o(t[0],100,"heat-positive")]),t=h.sv("rect",{id:s.uid(),y:16,fill:"url(#"+r+")","fill-opacity":i,width:500,"stroke-width":2,height:16,class:"figure figure-line",stroke:t});return h.sv("g",{id:s.uid(),width:500,height:16},[o,t])}};e.legendShape=function(t,e){var i;return"string"==typeof t&&(i=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=(e.minValue+a*(o||1)*d).toFixed();c.push(u>e.maxValue?e.maxValue:u)}return c=c.map(function(t,e,i){t=(e%(r||1)==0||e===i.length-1)&&h.sv("text",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:34},s?s(t):t),e=h.sv("rect",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:18,width:1,height:4});return h.sv("g",{transform:"translate(0, 16)",class:"legend-tick"},[t,e])})}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(133),o=i(34),i=i(135),o={radial:n.RadialScale,text:i.TextScale,numeric:o.Scale};e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(18),i=i(34),o=(r=i.Scale,o(s,r),s.prototype.paint=function(t,e){var i=this;if(this.config.hidden)return null;var n=this.config.zebra,o=this.config.value,r=this.config.showAxis?this._axis.steps:null,s=this._axis.steps.map(function(t){return i.point(t)}),n={scales:this._data.map(function(t){return t[o]}),axis:s,realAxis:r,zebra:n,attribute:o};return a.radarScale(n,t,e)},s.prototype.point=function(t){return(t-this._axis.min)/(this._axis.max-this._axis.min)},s);function s(t,e){return r.call(this,t,e,"radial")||this}e.RadialScale=o},function(t,e,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),r=[1,2,3,5,10],i=(a.prototype.getScale=function(){var t=this.config.log?this._logSteps():this._calculateSteps(this._getStep());return{min:t[0],max:t[t.length-1],steps:t}},a.prototype._getStep=function(){var t=this.config.maxTicks,e=this.config.max-this.config.min,i=Math.floor(o.log10(e/t)),i=Math.pow(10,i)||1,t=e/i/t;return r[n(r,[t]).sort(function(t,e){return t-e}).indexOf(t)]*i},a.prototype._calculateSteps=function(t){for(var e=Math.floor(this.config.min/t),i=Math.ceil(this.config.max/t),n=[],o="radial"===this.config.type?e-1:e;o<=i;o++){var r=t*o;Math.floor(r)!==r&&(r=parseFloat(r.toFixed(8))),n.push(r)}return n},a.prototype._logSteps=function(){var t=[];if(this.config.min<0){for(var e=Math.ceil(o.log10(-this.config.min));0<e;e--)t.push(-Math.pow(10,e));t.push(0)}if(0<this.config.max)for(var i=Math.ceil(o.log10(this.config.max)),e=0;e<=i;e++)t.push(Math.pow(10,e));return t},a.prototype._addPadding=function(){this.config.min-=this.config.padding},a);function a(t,e){void 0===e&&(e={}),this._data=t;for(var i=[],n=0,o=this._data;n<o.length;n++){var r=o[n];"number"==typeof r&&i.push(r),"string"!=typeof r||isNaN(parseFloat(r))||i.push(parseFloat(r))}t={min:Math.min.apply(Math,i),max:Math.max.apply(Math,i),maxTicks:this._data.length<20?this._data.length:20};this.config=s(s({},t),e),this.config.padding&&this._addPadding()}e.AxisCreator=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(3),l=i(34),i=i(61),c={left:i.left,right:i.right,bottom:i.bottom,top:i.top},u={left:i.leftGrid,right:i.rightGrid,bottom:i.bottomGrid,top:i.topGrid},o=(s=l.Scale,o(d,s),d.prototype.scaleReady=function(t){var e=this._data.getLength()-1,i=this._data.map(this.locator);this._axis={max:e,steps:i},t[this._position]+=this.config.size},d.prototype.point=function(t){var e=this._axis.steps.indexOf(t);if(this._padding){var i=this._axis.max+1,t=.5/i,i=e/i;return this._isXDirection?t+i:1-t-i}return this._isXDirection?e/this._axis.max:1-e/this._axis.max},d.prototype.paint=function(i,n){var o=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t,e){return[o._isXDirection?o._getAxisPoint(e)*i:o.point(t)*n,t]});return c[this._position](t,this.config,i,n)},d.prototype.scaleGrid=function(){var s=this,a=this._position,l=this.config.grid,c=this.config.dashed,d=this.config.hidden;return{paint:function(t,e){var i,n,o=s._axis.steps.indexOf(s.config.targetLine),r=(i=t,n=e,s._axis.steps.map(function(t,e){return[s._isXDirection?s._getAxisPoint(e)*i:s._getAxisPoint(e)*n,t]})),o={targetLine:o,dashed:c,grid:l,hidden:d};return u[a](r,t,e,o)}}},d.prototype._setDefaults=function(t){this.locator=a.locator(t.text),this.config=r(r({},{scalePadding:30,textPadding:12,grid:!0,targetLine:null,showText:!0}),t)},d.prototype._getAxisPoint=function(t){var e=this._axis.max;if(this._padding){var i=e+1,n=.5/i,i=t/i;return this._isXDirection?n+i:1-n-i}return this._isXDirection?t/e:1-t/e},d);function d(){return null!==s&&s.apply(this,arguments)||this}e.TextScale=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(62),o=i(64),r=i(137),s=i(138),a=i(37),l=i(139),c=i(140),d=i(141),u=i(142),h=i(143),f=i(144),p=i(145),i=i(146),i={line:a.default,spline:h.default,area:n.default,splineArea:f.default,scatter:u.default,pie:l.default,pie3D:c.default,donut:s.default,radar:d.default,bar:o.default,xbar:r.default,treeMap:p.default,calendarHeatMap:i.default};e.default=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,i=i(64),o=(r=i.default,o(s,r),s.prototype.addScale=function(t,e){t="top"===t||"bottom"===t?"left":"top";r.prototype.addScale.call(this,t,e)},s.prototype.paint=function(t,e,i){return r.prototype.paint.call(this,e,t,i)},s.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition>e?"left":"right"},s.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[1],r[0]);i[0]>s&&(i[0]=s,i[1]=r[1],i[2]=r[0],i[3]=r[2])}return i},s.prototype._getText=function(t){return t[4].toString()},s.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&i<t?1/0:Math.abs(e-n)},s.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+e+" "+(t[0]-this.config.barWidth/2)+"\nH "+t[1]+"\nv "+this.config.barWidth+"\nH "+e},s.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:0},s.prototype._text=function(t,e,i){e=(e+t[1])/2,t=t[0];return{x:e,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+e+" "+t+")":""}},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),B=this&&this.__assign||function(){return(B=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,G=i(0),Y=i(18),X=i(3),i=i(36),o=(r=i.default,o(s,r),s.prototype.paint=function(P,H){function L(t,e,i){return void 0===i&&(i=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":(e||"")+", "+t+" ("+X.roundToTwoNumAfterPoint(i)+"%)"}}var I=this,t=this.config,R=t.stroke,e=t.strokeWidth,A=t.useLines,j=t.subType,F=!e||e<1?4:15<e?15:e,$=P<H?P/2:H/2,N=-.25,V=[],W=[],z=[];return 1<this._points.length&&R&&V.push(G.sv("circle",{cx:0,cy:0,r:$-.5,fill:R})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=Y.getCoordinates(N,$,$,1<I._points.length&&R?F/2:null),d=c[0],u=c[1],h=N+n/2;N+=n+l;var f=Y.getCoordinates(N,$,$,1<I._points.length&&R?-F/2:null),p=f[0],g=f[1],_=.5<n?1:0,v=Y.getCoordinates(h,$,$),m=-.25<h&&h<.25,y=.5<h||h<0,x=h<.25?5:-5,c=[5,30],l=c[0],b=c[1],f=[Y.getCoordinates(h,$+l,$+l),Y.getCoordinates(h,$+b,$+b)],c=f[0],w=f[1];switch(I.config.subType){case"basic":var C=m?"donut-value-title start-text":"donut-value-title end-text",S=y?-20:10,E=Y.getCoordinates(h,$+10,$+10),D=m?"donut-value start-text":"donut-value end-text",k={text1:{x:(A?w:E)[0],y:(A?w:E)[1]+S,width:0,height:0,class:""},text2:{x:(A?w:E)[0],y:(A?w:E)[1]+S+16,width:0,height:0,class:""},changeSector:!1,line:x,right:m,dy:S},O=G.sv("text",B(B({x:(A?w:E)[0],y:(A?w:E)[1]+S,class:C},L(o,s,n)),{tabindex:0}),[X.verticalCenteredText(s.toString())]),C=G.sv("text",{x:(A?w:E)[0],y:(A?w:E)[1]+S+16,class:D,"aria-hidden":"true"},[X.verticalCenteredText(o.toString())]),D=X.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});k.text1.width=D[0],k.text1.height=D[1],D=X.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),k.text2.width=D[0],k.text2.height=D[1];var T=A?$+b:$+10;0!==W.length&&(m?(W.forEach(function(t){X.checkPositions(k.text1,t.text1,T,T,k),X.checkPositions(k.text1,t.text2,T,T,k)}),k.text1.class&&(k.text2.class=k.text1.class)):(W.forEach(function(t){X.checkPositions(k.text2,t.text2,T,T,k),X.checkPositions(k.text2,t.text1,T,T,k)}),k.text2.class&&(k.text1.class=k.text2.class)),O.attrs.x=k.text1.x,O.attrs.y=k.text1.y,C.attrs.x=k.text2.x,C.attrs.y=k.text2.y,(k.text1.class||k.text2.class)&&(O.attrs.class=k.text1.class,C.attrs.class=k.text2.class),x=k.line,A?(w[0]=k.text1.x,w[1]=k.text1.y-S):(E[0]=k.text1.x,E[1]=k.text1.y-S)),W.push(k);E=G.sv("text",B({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},L(o,s,n)),[X.verticalCenteredText(Math.round(100*n)+"%")]);i.push(G.sv("g",{id:r+"-text",class:"chart donut"},[O,C])),i.push(E);break;case"valueOnly":var M=G.sv("text",B(B({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},L(o,s,n)),{tabindex:0}),[X.verticalCenteredText(""+o)]);i.push(M);break;case"percentOnly":M=G.sv("text",B(B({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},L(o,s,n)),{tabindex:0}),[X.verticalCenteredText(Math.round(100*n)+"%")]);i.push(M)}A&&"basic"===j&&(S=y?3:0,i.push(G.sv("path",{d:"M"+c[0]+" "+c[1]+" L"+w[0]+"\n\t\t\t\t\t\t\t"+(w[1]+S)+" h "+x,id:r+"-connector",class:"pie-value-connector chart donut"})));l=0,f=0,c=F/(2*Math.sin(Math.PI/I._points.length));1<I._points.length&&R&&(l=(c=Y.getCoordinates(h,c,c))[0],f=c[1]);g="M "+d+" "+u+" A "+$+" "+$+" 0 "+_+" 1 "+p+" "+g+"\n\t\t\t\tL "+(0+l)+" "+(0+f),l=Y.getCoordinates(h,4,4),f=l[0],l=l[1],l=G.sv("path",{d:g,_key:r,fill:a||X.getDefaultColor(e),class:"chart donut",onclick:[I._handlers.onclick,t[1],t[2]],onmouseout:[Y.pieLikeHandlers.onmouseout],onmouseover:[Y.pieLikeHandlers.onmouseover,f,l],role:"presentation"});i.unshift(l),V.push(G.sv("g",{id:r},i)),1===I._points.length?z.push([P/2,H/2]):z.push([.8*v[0]+P/2,.8*v[1]+H/2])}),this._center=[P/2,H/2],this._tooltipData=z,(V=V.concat([])).push(G.sv("circle",{cx:0,cy:0,r:5*$/9,fill:"#FFFFFF",role:"presentation"})),G.sv("g",B(B({transform:"translate("+P/2+", "+H/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),V)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),X=this&&this.__assign||function(){return(X=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,q=i(1),U=i(0),K=i(18),J=i(3),i=i(36),o=(r=i.default,o(s,r),s.prototype.paint=function(P,H){var L=this,t=this.config,I=t.stroke,e=t.strokeWidth,R=t.gradient,A=t.useLines,j=t.showText,F=t.showTextTemplate,$=t.subType,N=!e||e<1?4:15<e?15:e,V=P<H?P/2:H/2,W=-.25,z=[],B=[],e=[],G=[],Y=[];return 1<this._points.length&&I&&e.push(U.sv("circle",{cx:0,cy:0,r:V-.5,fill:I})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=a||J.getDefaultColor(e);R&&(p=R(a),g="gradient"+q.uid(),_=J.getRadialGradient(p.options,p.stops,g),c="url(#"+g+")",G.push(_));var d=K.getCoordinates(W,V,V,1<L._points.length&&I?N/2:null),e=d[0],a=d[1],u=W+n/2,h=u<.25?5:-5,f=K.getCoordinates(u,V,V);W+=n+l;var p=K.getCoordinates(W,V,V,1<L._points.length&&I?-N/2:null),g=p[0],_=p[1],d=.5<n?1:0,l=[5,30],p=l[0],v=l[1],l=[K.getCoordinates(u,V+p,V+p),K.getCoordinates(u,V+v,V+v)],p=l[0],m=l[1],y=-.25<u&&u<.25,x=.5<u||u<0,b=-.25<u&&u<.25?"pie-value start-text":"pie-value end-text";switch((j||F)&&!1!==j&&(M=U.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[F?J.verticalCenteredText(F(o.toString())):J.verticalCenteredText(o.toString())]),i.push(M)),L.config.subType){case"basic":var w=x?-20:10,C=K.getCoordinates(u,V+10,V+10),S=y?"donut-value start-text":"donut-value end-text",E={text1:{x:(A?m:C)[0],y:(A?m:C)[1]+w,width:0,height:0,class:""},text2:{x:(A?m:C)[0],y:(A?m:C)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:w},D=U.sv("text",X({x:(A?m:C)[0],y:(A?m:C)[1]+w,class:b},(k=n,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(s||"")+", "+o+" ("+J.roundToTwoNumAfterPoint(k)+"%)"})),[J.verticalCenteredText(s.toString())]),k=U.sv("text",{x:(A?m:C)[0],y:(A?m:C)[1]+w+16,class:S,"aria-hidden":"true"},[J.verticalCenteredText(o.toString())]),S=J.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});E.text1.width=S[0],E.text1.height=S[1],S=J.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),E.text2.width=S[0],E.text2.height=S[1];var O=A?V+v:V+10;0!==z.length&&(y?(z.forEach(function(t){J.checkPositions(E.text1,t.text1,O,O,E),J.checkPositions(E.text1,t.text2,O,O,E)}),E.text1.class&&(E.text2.class=E.text1.class)):(z.forEach(function(t){J.checkPositions(E.text2,t.text2,O,O,E),J.checkPositions(E.text2,t.text1,O,O,E)}),E.text2.class&&(E.text1.class=E.text2.class)),D.attrs.x=E.text1.x,D.attrs.y=E.text1.y,k.attrs.x=E.text2.x,k.attrs.y=E.text2.y,(E.text1.class||E.text2.class)&&(D.attrs.class=E.text1.class,k.attrs.class=E.text2.class),h=E.line,A?(m[0]=E.text1.x,m[1]=E.text1.y-w):(C[0]=E.text1.x,C[1]=E.text1.y-w)),z.push(E);C=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(U.sv("g",{id:r+"-text",class:"chart donut"},[D,k])),i.push(C);break;case"valueOnly":var T=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(""+o)]);i.push(T);break;case"percentOnly":T=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(T)}A&&"basic"===$&&(w=x?3:0,i.push(U.sv("path",{d:"M"+p[0]+" "+p[1]+" L"+m[0]+"\n\t\t\t\t\t\t\t"+(m[1]+w)+" h "+h,id:r+"-connector",class:"pie-value-connector chart pie"})));var l=0,M=0,p=N/(2*Math.sin(Math.PI/L._points.length));1<L._points.length&&I&&(l=(p=K.getCoordinates(u,p,p))[0],M=p[1]);_="M "+e+" "+a+" A "+V+" "+V+" 0 "+d+" 1 "+g+" "+_+"\n\t\t\t\tL "+(0+l)+" "+(0+M),l=K.getCoordinates(u,4,4),M=l[0],l=l[1],l=U.sv("path",{d:_,class:"chart pie",_key:r,fill:c,onclick:[L._handlers.onclick,t[1],t[2]],onmouseover:[K.pieLikeHandlers.onmouseover,M,l],onmouseout:[K.pieLikeHandlers.onmouseout],role:"presentation"});i.unshift(l),Y.push(U.sv("g",{id:r},i)),1===L._points.length?B.push([P/2,H/2]):B.push([.7*f[0]+P/2,.7*f[1]+H/2])}),this._center=[P/2,H/2],this._tooltipData=B,e.push(U.sv("defs",G)),e=(e=e.concat(Y)).concat([]),U.sv("g",X(X({transform:"translate("+P/2+", "+H/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),e)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),X=this&&this.__assign||function(){return(X=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,q=i(0),U=i(18),K=i(3),i=i(36),o=(r=i.default,o(s,r),s.prototype.paint=function(H,L){var I=this,t=this.config,R=t.subType,A=t.useLines,j=t.showText,F=t.showTextTemplate,$=H<L?H/2:L/2,N=.5*$,V=$/5,W=[],z=-.25,B=[],G=[],Y=[];return this._points.forEach(function(t,e){var i=t[0],n=t[1],o=t[2],r=t[3],s=t[4],a=0===i||1===i?-1e-6:0,l=U.getCoordinates(z,$,N),c=l[0],d=l[1],u=z+i/2,h=u<.25?5:-5,f=U.getCoordinates(u,$,N),p=0;0<u&&u<.5&&(p=V*Math.sin(2*Math.PI*u));var g=U.getCoordinates(u,$+5+p,5+N+p),_=U.getCoordinates(u,$+30+p,30+N+p),v=z+i+a,m=U.getCoordinates(v,$,N),l=m[0],a=m[1],m=.5<i?1:0,y=-.25<u&&u<.25,x=.5<u||u<0,b=y?"pie-value start-text":"pie-value end-text";switch(I.config.subType){case"basic":var w=x?-20:10,C=y?"donut-value start-text":"donut-value end-text",S={text1:{x:(A?_:g)[0],y:(A?_:g)[1]+w,width:0,height:0,class:""},text2:{x:(A?_:g)[0],y:(A?_:g)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:w},E=q.sv("text",X({x:(A?_:g)[0],y:(A?_:g)[1]+w,dx:A?0<h/2+h?10:-10:null,class:b},(k=i,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(r||"")+", "+n+" ("+K.roundToTwoNumAfterPoint(k)+"%)"})),[K.verticalCenteredText(r.toString())]),D=q.sv("text",{x:(A?_:g)[0],y:(A?_:g)[1]+w+16,dx:A?0<h/2+h?10:-10:null,class:C,"aria-hidden":"true"},[K.verticalCenteredText(n.toString())]),k=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]),C=K.getSizesSVGText(r.toString(),{font:"normal 14px Roboto",lineHeight:14});S.text1.width=C[0],S.text1.height=C[1],C=K.getSizesSVGText(n.toString(),{font:"normal 12px Roboto",lineHeight:12}),S.text2.width=C[0],S.text2.height=C[1];var O=A?$+30+p:$+5+p,T=A?30+N+p:5+N+p;0!==Y.length&&(y?(Y.forEach(function(t){K.checkPositions(S.text1,t.text1,O,T,S),K.checkPositions(S.text1,t.text2,O,T,S)}),S.text1.class&&(S.text2.class=S.text1.class)):(Y.forEach(function(t){K.checkPositions(S.text2,t.text2,O,T,S),K.checkPositions(S.text2,t.text1,O,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),h=S.line,A?(_[0]=S.text1.x,_[1]=S.text1.y-w):(g[0]=S.text1.x,g[1]=S.text1.y-w)),Y.push(S),G.push(E,D,k);break;case"valueOnly":var M=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(n.toString())]);G.push(M);break;case"percentOnly":M=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]);G.push(M)}A&&"basic"===R&&G.push(q.sv("path",{d:"M"+g[0]+" "+g[1]+" L"+_[0]+" "+_[1]+" h "+h,class:"pie-value-connector"})),(j||F)&&!1!==j&&(P=q.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[F?K.verticalCenteredText(F(n)):K.verticalCenteredText(n.toString())]),G.push(P));var P="";z<=0&&.5<=v?P="M "+$+" 0 v "+V+" A "+$+" "+N+" 0 1 1 "+-$+" "+V+" v "+-V:z<=0&&v<.5?P="M "+$+" 0 v "+V+" A "+$+" "+N+" 0 0 1 "+l+" "+(a+V)+" v "+-V:0<z&&z<=.5&&.5<=v?P="M "+c+" "+d+" v "+V+" A "+$+" "+N+" 0 0 1 "+-$+" "+V+" v "+-V:0<z&&v<.5&&(P="M "+c+" "+d+" v "+V+" A "+$+" "+N+" 0 0 1 "+l+" "+(a+V)+" v "+-V),P&&(P=q.sv("path",{_key:o+"__shadow__",d:P,fill:s||K.getDefaultColor(e),onclick:[I._handlers.onclick,t[1],t[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"}),B.push(P));a="M "+c+" "+d+" A "+$+" "+N+" 0 "+m+" 1 "+l+" "+a+" L 0 0";B.push(q.sv("path",{d:a,_key:o,fill:s||K.getDefaultColor(e),stroke:"none",onclick:[I._handlers.onclick,t[1],t[2]],class:"chart pie3d",role:"presentation"})),1===I._points.length?W.push([H/2,L/2]):W.push([.7*f[0]+H/2,.7*f[1]+L/2]),z=v}),this._center=[H/2,L/2],this._tooltipData=W,B=B.concat(G),q.sv("g",X(X({transform:"translate("+H/2+", "+L/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),B)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),c=i(18),l=i(3),i=i(19),o=(s=i.default,o(d,s),d.prototype.addScale=function(t,e){this._scale=e},d.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},d.prototype.dataReady=function(n){var o=this;if(!this.config.active)return this._points=[];var r=l.locator(this._scale.config.value);return this._points=this._data.map(function(t,e){var i=o._locator(t),i=[i,i,t.id,i,i];return n&&(i[1]+=n[e][1]),r&&i.push(r(t)),i}),this._points},d.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t}},d.prototype.paint=function(t,e){var o=this;s.prototype.paint.call(this,t,e);if(this.config.active){var i=this.config,t=[],e=this._points.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ")+"Z";return t.push(a.sv("path",{d:e,stroke:i.color,"stroke-width":i.strokeWidth,fill:i.fill,"fill-opacity":i.alpha,class:"chart radar"})),i.pointType&&(e=this._points.map(function(t){return o._drawPointType(t[0],t[1],l.calcPointRef(t[2],o.id))}).map(function(t){var e,i,n;return t&&t.attrs&&(t.attrs=r(r({},t.attrs),(e=t.key,i=o._points,e&&(n=i.find(function(t){return e.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":n?"point x="+n[5]+" y="+n[4]:"",tabindex:0}))),t}),t.push(a.sv("g",e))),a.sv("g",r(r({id:"seria"+i.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),t)}},d.prototype._calckFinalPoints=function(n,o){var r=this,s=n<o?n/2:o/2,a=1/this._data.getLength(),l=-.25-a;this._points.forEach(function(t,e){l+=a;var i=r._scale.point(t[0]),i=c.getCoordinates(l,i*s,i*s);t[0]=i[0]+n/2,t[1]=i[1]+o/2})},d.prototype._defaultLocator=function(t){return this._locator(t)},d.prototype._setDefaults=function(t){this._locator=l.locator(t.value),t.scales=t.scales||["radial"],this.config=r(r({},{strokeWidth:2,active:!0,tooltip:!0,paddings:5,color:"none",fill:"none",pointType:"circle"}),t),this.config.pointType&&(t=this.config.pointColor||this.config.color,this._drawPointType=this._getPointType(this.config.pointType,t))},d);function d(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(37),l=i(3),o=(s=a.default,o(c,s),c.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=l.locator(this.config.value)):(this.yScale=e,this._yLocator=l.locator(this.config.valueY))},c.prototype._setDefaults=function(t){this.config=r(r({},{active:!0,tooltip:!0,pointType:"rect"}),t);var e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(0),l=i(65),i=i(37),o=(r=i.default,o(s,r),s.prototype._getForm=function(t,e,i,n,o){var r=e.color,s=e.css,t=l.default(t);return a.sv("path",{id:"seria"+e.id,d:t,class:s,stroke:r,"stroke-width":2,fill:"none"})},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,h=i(0),f=i(65),i=i(62),o=(r=i.default,o(s,r),s.prototype._form=function(t,e,i,n){var o=this.config,r=o.fill,s=o.alpha,a=o.strokeWidth,l=o.color,c=o.id,d=this.config.css,u="",o=this._points[0],u=n?f.default([].concat(n).reverse())+" "+f.default(this._points,!0)+" Z":"M"+o[0]+" "+e+" V "+o[1]+" "+f.default(this._points)+" V"+e+" H "+o[0];a&&(o=f.default(this._points),l=h.sv("path",{d:o,"stroke-width":a,stroke:l,fill:"none","stroke-linecap":"butt",class:d}),i.push(l));s=h.sv("path",{id:"seria"+c,d:u,class:d,fill:r,"fill-opacity":s,stroke:"none"});return i.push(s),i},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),C=this&&this.__assign||function(){return(C=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,S=i(1),E=i(0),s=i(6),D=i(3),a=i(17),i=i(19),o=(r=i.default,o(l,r),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.toggle=function(e){var t=this.config.treeSeries.find(function(t){return t.id===e});t&&(t.active=!t.active)},l.prototype.dataReady=function(){var s=this;if(!this.config.active)return this._points=[];var a="groupName"===this.config.legendType;return this._sum=0,this._data.forEach(function(t){var e,i=s._data.getItem(s._data.getParent(t.id));i&&i.$hidden&&1<s._maxLevel||(e=s._valueLocator(t))&&(i=s._getSerie(a?t.id:e,a),t.color=(i||t).color,t.$hidden=!!i&&!i.active,!t.$hidden&&e&&(s._sum+=parseFloat(t[s.config.value])))}),this._points=[],this._data.eachChild(this._data.getRoot(),function(t){var o,e,r,i;t.$hidden||(o=s._valueLocator(t),e=s._textLocator(t),r=[],!o&&s._data.haveItems(t.id)&&(o=0,s._data.eachChild(t.id,function(t){var e,i,n;t.$hidden||(e=s._valueLocator(t),i=s._textLocator(t),n=t.color||(null===(n=s._getSerie(a?t.id:e,a))||void 0===n?void 0:n.color),e&&(o+=e),r.push([0,e,t.id,i,n]))})),t.percent=parseFloat(o)/s._sum,i=t.color||(null===(i=s._getSerie(a?t.id:o,a))||void 0===i?void 0:i.color),s._points.push([t.percent,o,t.id.toString(),e,i,{items:r}]))},!1),this._maxLevel=this._getMaxLevel(),this._points},l.prototype.paint=function(t,e){var p=this;if(!!this.config.treeSeries.find(function(t){return t.active})){var g=this.config.strokeWidth,_=[],v=[],i=[],n=1<this._maxLevel?2*g:g,t=t-n,e=e-n;this._layout={id:S.uid(),area:t*e,width:t,height:e,restArea:t*e,restWidth:t,restHeight:e,startX:n/2,startY:n/2,stroke:n};var m=this._layout.startX,y=this._layout.startY;return this._layout.width>=this._layout.height?this._layout.cols=[]:this._layout.rows=[],this._points.sort(function(t,e){return e[0]-t[0]}),this._points.forEach(function(e,t,i){var n,o,r,s,a,l,c,d,u=e[0],h=(e[1],e[2]),f=(e[3],e[4],e[5]);0!==u&&(n=(r=p._drawBar(e,t,i,p._layout,m,y,!(!f||null===(a=f.items)||void 0===a||!a.length)))[0],o=r[1],u=r[2],t=r[3],i=r[4],a=r[5],r=r[6],m=a[0],y=a[1],v.push(E.sv("g",{id:h},[n,o,r])),_.push(u),f&&null!==(s=f.items)&&void 0!==s&&s.length&&(s=a[2]-g,a=a[3]-g,l={id:S.uid(),parent:p._layout.id,area:s*a,width:s,height:a,restArea:s*a,restWidth:s,restHeight:a,startX:m+g/2,startY:y+g/2+("asc"!==p.config.direction&&r?g/2:0),stroke:g},c=l.startX,d=l.startY,l.width>=l.height?l.cols=[]:l.rows=[],f.items.map(function(t){return t[0]=t[1]/e[1]}),f.items.sort(function(t,e){return e[0]-t[0]}),f.items.forEach(function(t,e,i){var n=t[2],o=p._drawBar(t,e,i,l,c,d,!1),r=o[0],t=o[1],e=o[2],i=o[3],o=o[4];v.push(E.sv("g",{id:n},[r,t])),_.push(e),c=i,d=o})),m=t,y=i)}),i.push(E.sv("defs",_)),i=i.concat(v),E.sv("g",C(C({id:"seria"+this.config.id},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0,transform:"asc"===this.config.direction?"rotate(180 "+(this._layout.startX+this._layout.width/2)+" "+(this._layout.startY+this._layout.height/2)+")":""}),i)}},l.prototype._drawBar=function(t,e,i,n,o,r,s){var a=this,l=t[0],c=t[1],d=t[2],u=t[3],h=t[4],f=this.config,p=f.stroke,g=f.showText,_=f.showTextTemplate,v=l*n.area,m=this._getDeepParent(n),y=s&&0<l&&u,x=n.startX+n.width-m.restWidth,b=n.startY+n.height-m.restHeight;o=x<o?x:o,r=b<r?b:r;f=this._getBar(m,v,o,r,i,e,n.area),x=f[0],b=f[1],m=f[2],o=f[3],r=f[4];if(!(x[2]<0||x[3]<0)){this._recountParentArea(v,r,n);var w,f=y?E.sv("rect",{x:x[0]+n.stroke/4,y:"asc"===this.config.direction?x[1]+x[3]-this._headerHeight-n.stroke/2:x[1]+n.stroke/4,width:x[2]-n.stroke/2,height:this._headerHeight+n.stroke/4,stroke:p,"stroke-width":n.stroke/2,class:"treeMap-header",_key:d,onclick:function(){return a._toggleGroup(d)}}):null,v=y?E.sv("text",{x:x[0]+x[2]/2,y:"asc"===this.config.direction?x[1]+x[3]-this._headerHeight/2-n.stroke/2:x[1]+this._headerHeight/2+n.stroke/2,class:"header-text","aria-hidden":"true",transform:"asc"===this.config.direction?"rotate(180 "+(x[0]+x[2]/2)+" "+(x[1]+x[3]-this._headerHeight/2-n.stroke/2)+")":""},[_?D.verticalCenteredText(_(null==u?void 0:u.toString())):D.verticalCenteredText(null==u?void 0:u.toString())]):null,r=s&&0<l&&u?E.sv("g",{},[f,v]):null,y=_?_(null==u?void 0:u.toString()):null==u?void 0:u.toString(),f=D.getSizesSVGText(y,{font:"normal 12px Roboto",lineHeight:14})[0]<x[2]-2*n.stroke,v=S.uid(),_=x[2]>2*n.stroke&&x[3]>2*n.stroke?E.sv("clipPath",{id:v,"clip-rule":"nonzero"},[E.sv("rect",{x:x[0]+n.stroke,y:x[1]+n.stroke,width:x[2]-2*n.stroke,height:x[3]-2*n.stroke,fill:"none",stroke:"black"})]):null,e=E.sv("rect",C(C({},(w=l,{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":(u||"")+", "+c+" ("+D.roundToTwoNumAfterPoint(w)+"%)"})),{x:x[0],y:x[1],width:x[2],height:x[3],stroke:p,"stroke-width":n.stroke,class:"chart treeMap",_key:d,fill:h,onclick:[this._handlers.onclick,t[1],t[2]],onmousemove:1<this._maxLevel&&1===this._getDataLevel(d)?"":[this._handlers.onmousemove,i[e][2],this.id],onmouseleave:1<this._maxLevel&&1===this._getDataLevel(d)?"":[this._handlers.onmouseleave,i[e][2],this.id]})),y=g?E.sv("text",{x:f?b[0]:x[0]+n.stroke,y:b[1],class:"treeMap-inner-value "+(f?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'+v+'")',transform:"asc"===this.config.direction?"rotate(180 "+b[0]+" "+b[1]+")":""},[D.verticalCenteredText(y)]):null;return s&&r&&(x[1]+="asc"===this.config.direction?0:this._headerHeight,x[3]-=this._headerHeight+n.stroke/4),[e,y,_,m,o,x,r]}},l.prototype._getBar=function(t,e,i,n,l,c,d){var o,r,s,a,u=this,h=function(t,e,i,n){for(var o={area:0,width:t.width,height:t.height},r=e;r<=i;r++)o.area+=l[r][0]*d;"rows"===n?o.width=o.area/o.height:o.height=o.area/o.width;var s="rows"===n?o.width:t.area/o.height,a="rows"===n?t.area/o.width:o.height;return(s/a>u._aspectRatio||a/s>u._aspectRatio)&&.01<l[c][0]&&i!==u._points.length-1?h(t,e,i+1,n):[s,a,o]},f=i,p=n,g=t.restWidth>t.restHeight?"cols":"rows",_="cols"==g?"rows":"cols",v="cols"==g?e/t.restHeight:t.restWidth,m="cols"==g?t.restHeight:e/t.restWidth;return(m/v>this._aspectRatio||v/m>this._aspectRatio)&&0!==Math.round(e-t.restArea)&&c<l.length-2&&e<t.restArea?(o=void 0,r={id:S.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:S.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=S.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:S.uid(),area:e,width:v,height:m},t[_]&&t.restArea.toFixed(2)>e.toFixed(2)?(a=S.uid(),t[_].push(((_={id:a,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"==g?t.restWidth-v:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-m})[g]=[r],_)),r.parent=a):((t.cols||t.rows).push(r),r.parent=t.id,"cols"==g?t.restWidth-=v:t.restHeight-=m),"cols"==g?(f+=v,p=0===Math.round(t.restArea-e)?p+m:p):(p+=m,f=0===Math.round(t.restArea-e)?f+v:f)),[[i,n,r.width,r.height],[i+r.width/2,n+r.height/2],f,p,r.parent]},l.prototype._setDefaults=function(t){this.config=C(C({},{active:!0,stroke:"#FFFFFF",strokeWidth:2,showText:!0,tooltip:!0,paddings:5,color:"none",fill:"none",direction:"desc"}),t),this._headerHeight=25,this._aspectRatio=2.5,this._valueLocator=D.locator(t.value),this._textLocator=D.locator(t.text)},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getSerie=function(i,n){var o=this;return this.config.treeSeries.find(function(t){if(n){var e=o._data.getParent(i);return t.id===e||t.id===i}return t.from&&t.to&&i>=t.from&&i<t.to||t.less&&i<t.less||t.greater&&i>t.greater})},l.prototype._getDataLevel=function(t){var e=1;return this._data.eachParent(t,function(){e++}),e},l.prototype._getMaxLevel=function(){var e=this,i=1;return this._data.forEach(function(t){t=e._getDataLevel(t.id);i=Math.max(t,i)}),i},l.prototype._getDeepParent=function(t){var e=null===(e=t.cols||t.rows)||void 0===e?void 0:e.find(function(t){return t.restArea&&0<Math.round(t.restArea)});return e?this._getDeepParent(e):t},l.prototype._getLayoutObj=function(t,e){var i;if(void 0===e&&(e=this._layout),e.id===t)i=e;else{var n=e.cols||e.rows;if(!n||!n.length)return;for(var o=0;o<n.length&&!(i=this._getLayoutObj(t,n[o]));o++);}return i},l.prototype._recountParentArea=function(t,e,i){e=this._getLayoutObj(e,i);e&&e.id!==i.parent&&(e.restArea-=t,e.parent&&this._recountParentArea(t,e.parent,i))},l.prototype._toggleGroup=function(e){var i=this,n=0;this.config.treeSeries.forEach(function(t){t.active&&n++}),this._data.eachChild(this._data.getRoot(),function(t){t.id!==e&&("groupName"===i.config.legendType?(1<n&&(i._getSerie(t.id,!0).active=!0),i._events.fire(a.ChartEvents.toggleSeries,[t.id])):(t.$hidden=!t.$hidden,i._events.fire(s.DataEvents.change)))},!1)},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,v=i(1),E=i(13),D=i(0),m=i(6),l=i(3),i=i(19),o=(a=i.default,o(c,a),c.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},c.prototype.dataReady=function(){var a,l,c=this,d=[];this._years=[],this._points=[],this.config.startDate&&(a="string"==typeof this.config.startDate?E.stringToDate(this.config.startDate,this.config.dateFormat):this.config.startDate),this.config.endDate&&(l="string"==typeof this.config.endDate?E.stringToDate(this.config.endDate,this.config.dateFormat):this.config.endDate),(null==l?void 0:l.getTime())<(null==a?void 0:a.getTime())&&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);"string"==typeof n&&(n=E.stringToDate(n,c.config.dateFormat));var e=null===n||void 0===n?void 0:n.getTime(),o=(null===(s=t.id)||void 0===s?void 0:s.toString())||v.uid();if(a||l){var r=E.DateHelper.dayStart(n).getTime(),t=a&&E.DateHelper.dayStart(a).getTime()||0,s=l&&E.DateHelper.dayStart(l).getTime()||1/0;if(r<t||s<r)return}r=d.findIndex(function(t){var e=t[0],t=t[1],e=E.DateHelper.isSameDay(new Date(e),n);return e&&(i+=t),e});-1<r&&(d[r]=[e,i,o]),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,o])}),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);var t=a||new Date(d[0][0]),e=l||new Date(d[d.length-1][0]),i=t.getFullYear(),n=e.getFullYear();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));for(var o=0,r=new Date(a.getTime()),s=new Date(l.getFullYear(),l.getMonth(),l.getDate()+1);!E.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(;!E.DateHelper.isSameDay(r,u);)this._points.push([r.getTime(),0,v.uid()]),h();this._points.push(d[o]),o+=1}else E.DateHelper.isSameDay(r,u)?this._points.push(d[o]):this._points.push([r.getTime(),0,v.uid()]);else this._points.push([r.getTime(),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 m,y,x=this,i=this.config,n=i.days,b=i.months;switch(this.config.weekStart){case"saturday":m=-1;break;case"monday":m=1;break;default:m=0}switch(this.config.weekStart){case"saturday":y=s([null==n?void 0:n[6]],n.slice(0,-1));break;case"monday":y=s(n.slice(1),[null==n?void 0:n[0]]);break;default:y=n}var w=[],i=[],C=0,S=0;this._years.forEach(function(t,i){for(var e=t.year,n=t.startIndex,o=new Date(e,0,1),r=[],s=[],a=0,l=1,c=n;c<x._points.length&&c!==(null===(v=x._years[i+1])||void 0===v?void 0:v.startIndex);c++){var d=x._points[c],u=d[0],h=d[1],f=d[2],p=new Date;p.setTime(u);var g=p.getMonth(),_=E.DateHelper.addDay(p,-1*m).getDay();0!==_||E.DateHelper.isSameDay(o,p)||(l+=1);var v=0<=h?h/x._maxValue||0:h/x._minValue||0;0<x._maxValue*x._minValue&&(v=(h-x._minValue)/(x._maxValue-x._minValue));d=10+l*(x._cellSize+2),u=.5+(_+1)*(x._cellSize+2)+i*(y.length*x._cellSize+x._headerHeight);6===_&&(S=u+4*x._cellSize),r.push(D.sv("rect",{x:d,y:u,fill:x.config.color,width:x._cellSize,height:x._cellSize,onclick:[x._handlers.onclick,h,f],onmousemove:[x._handlers.onmousemove,f,x.id],onmouseleave:[x._handlers.onmouseleave,f,x.id],class:x.config.color?"":"heat-neutral"},[]));_="";0<=h&&!x.config.positiveColor?_="heat-positive":h<0&&!x.config.negativeColor&&(_="heat-negative"),0!==v&&r.push(D.sv("rect",{x:d,y:u,fill:0<=h?x.config.positiveColor:x.config.negativeColor,"fill-opacity":isFinite(v)?v:0,width:x._cellSize,height:x._cellSize,onclick:[x._handlers.onclick,h,f],onmousemove:[x._handlers.onmousemove,f,x.id],onmouseleave:[x._handlers.onmouseleave,f,x.id],class:_},[])),a=d+x._cellSize,1===p.getDate()&&(d=null==b?void 0:b[g],p=10+l*(x._cellSize+2),g=x._cellSize-2+i*(y.length*x._cellSize+x._headerHeight)+y.length*(x._cellSize+2)+4.5,d=D.sv("text",{x:p,y:8+g+12.5,class:"start-text"},[d]),g=D.sv("rect",{x:p,y:g,height:8,width:1}),s.push(D.sv("g",{class:"heat-month-text"},[g,d])))}t=y.map(function(t,e){return D.sv("text",{x:20,y:.5+(e+1)*(x._cellSize+2)+x._cellSize/2+i*(y.length*x._cellSize+x._headerHeight),class:"end-text heat-day-text"},[D.sv("tspan",{dy:"0.5ex"},[t])])}),n=D.sv("text",{x:10+x._cellSize+2,y:x._cellSize-4+i*(y.length*x._cellSize+x._headerHeight),class:"start-text heat-year-text"},[e]);w.push(D.sv("g",{id:e+"_year"},[n,s,t,r])),C=a<C?C:a});i.push(D.sv("defs",[])),i=i.concat(w);e=e/S<1?e/S:1,t=(t-C*e)/2;return D.sv("g",r(r({id:"seria"+this.config.id},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0,transform:"translate("+(0<t?t:0)+", 26) scale("+e+")"}),i)},c.prototype._setDefaults=function(t){this.config=r(r({},{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=l.locator(t.value),this._dateLocator=l.locator(t.date)},c.prototype._defaultLocator=function(t){return[this._valueLocator(t),E.getFormattedDate("%d/%m/%y",this._dateLocator(t))]},c);function c(){return null!==a&&a.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(0),i=(n.prototype.add=function(t){this._series.push(t)},n.prototype.dataReady=function(e){return this._toPaint=this._series.filter(function(t){t=t.dataReady(e);return!!t.length&&(e=t,!0)}),e||[]},n.prototype.getPoints=function(){return this._toPaint.length?this._toPaint[0].getPoints().concat(this._toPaint[this._toPaint.length-1].getPoints()):[]},n.prototype.paint=function(n,o,r){var s=[],a=[];return this._toPaint.forEach(function(t){var e,i;t.paintformAndMarkers?(i=(e=t.paintformAndMarkers(n,o,r))[0],e=e[1],s.push(i),a.push(e)):(i=t.paint(n,o,r),s.push(i)),r=t.getPoints()}),l.sv("g",s.concat(a))},n);function n(){this._series=[]}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var g=i(58),s=i(3),_=i(63),n=i(17),i=(o.prototype.destructor=function(){this._tooltip&&(document.body.removeChild(this._tooltip),this._tooltip=null)},o.prototype._showLineTooltip=function(t){for(var e,i,n,o,r,s="",a=this._chart.getRootView(),l=0,c=0,d=t;c<d.length;c++){var u,h,f,p=d[c];l+=p.top,this._prevLine=a&&a.refs&&a.refs["line"+Math.round(p.left)]&&a.refs["line"+Math.round(p.left)].el,this._prevLine.classList.add("grid-line__active"),!p.text||(h=(u=this._chart.getSeries(p.seriaId)).getPoints()).length&&u.config.tooltip&&(f=u.config.pointColor||(u.config.color&&"none"!==u.config.color?u.config.color:u.config.fill),f=_.getShadeHTMLHelper("empty"!==u.config.pointType&&u.config.pointType?u.config.pointType:"simpleRect",f),s+='<div class="line-point" _ref="dhx_tooltip_'+u.config.id+'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">'+f(4,4,h[0][2])+'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_'+u.config.id+'_text">'+p.text+"</span>\n\t\t\t</div>")}s&&(this._tooltip||this._createTooltip(),e=document.body.offsetHeight,r=document.body.offsetWidth,this._tooltip.innerHTML=s,this._tooltip.classList.add("dhx_chart_tooltip__visible"),o=l/t.length,i=this._prevLine.getBoundingClientRect(),n=this._tooltip.offsetHeight,t=this._tooltip.offsetWidth,e<(o=o-n/2+i.top+window.scrollY)+n&&(o-=o+n-e),r<(r=i.left+10)+t&&(r=i.left-t-10),(t=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=t.toString()),this._tooltip.style.left=r+"px",this._tooltip.style.top=o+"px")},o.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var i=document.body.offsetHeight,n=document.body.offsetWidth;this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible");var o=this._tooltip.offsetHeight,r=this._tooltip.offsetWidth,s=e.pageY+10,t=e.pageX+10;i<s+o&&(s=e.pageY-o),n<t+r&&(t=e.pageX-r-10);r=g.getZIndex(this._chart.getRootNode());r&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=t+"px",this._tooltip.style.top=s+"px"},o.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e,i,n,o,r=this._chart.getSeries(t[4]);!r||(o=r.getTooltipText(t[3]))&&(e=this._chart._layers.getSizes(),i=this._chart.getRootNode().getBoundingClientRect(),this._tooltip.innerHTML=o,this._tooltip.classList.add("dhx_chart_tooltip__visible"),n=document.body.offsetHeight,r=this._tooltip.offsetHeight,n<(o=t[2]+i.top+r/2+e.top-("radar"===this._chart.config.type?10:15))+r&&(o=t[2]+i.top-r/2+e.top-("radar"===this._chart.config.type?10:15)),n<o+r&&this._tooltip.classList.remove("dhx_chart_tooltip__visible"),(r=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=i.left+t[1]+10+"px",this._tooltip.style.top=o+"px")},o.prototype._createTooltip=function(){this._tooltip=document.createElement("div"),this._tooltip.setAttribute("data-dhx-widget-id",this._chart._uid),this._tooltip.classList.add("dhx_chart_tooltip","dhx_chart_tooltip_line","dhx_chart_tooltip__hidden","tooltip-text"),document.body.appendChild(this._tooltip)},o.prototype._initEvents=function(){var a=this;this._chart.events.on(n.ChartEvents.chartMouseMove,function(n,o){var r,s;a._prevLine&&a._prevLine.classList.remove("grid-line__active"),a._mouseOverBar||(r=[],s=[1/0,null,null,null,null],a._chart.eachSeries(function(t){var e,i=t.config.type;"line"===i||"spline"===i||"splineArea"===i||"area"===i?"number"==typeof(e={value:(e=t.getClosestVertical(n))[4],text:t.getTooltipText(e[3]),seriaId:t.config.id,left:e[1],top:e[2]}).left&&"number"==typeof e.top&&r.push(e):"pie"!==i&&"pie3D"!==i&&"donut"!==i&&"radar"!==i||(i=t.getClosest(n,o),s[0]>i[0]&&(s[0]=i[0],s[1]=i[1],s[2]=i[2],s[3]=i[3],s[4]=t.id))}),r.length?(r.sort(function(t,e){return e.value-t.value}),a._showLineTooltip(r)):a._showTooltipOnClosest(s))}),this._chart.events.on(n.ChartEvents.seriaMouseMove,function(t,e,i){a._mouseOverBar=!0;var n=a._chart.getRootView(),o=a._chart.getSeries(e),r=o.getTooltipText(t),e=n&&n.refs&&n.refs[s.calcPointRef(t,e)].el;null!=e&&e.setAttribute("fill-opacity",.6<o.config.alpha?o.config.alpha-.4:1),r?a._showTooltip(r,i):a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.seriaMouseLeave,function(t,e){a._mouseOverBar=!1;var i=a._chart.getRootView(),n=a._chart.getSeries(e);"area"===n.config.type||"treeMap"===n.config.type||"calendarHeatMap"===n.config.type||null!=(e=i&&i.refs&&i.refs[s.calcPointRef(t,e)].el)&&e.setAttribute("fill-opacity",n.config.alpha),a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.chartMouseLeave,function(){a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible"),a._prevLine&&a._prevLine.classList.remove("grid-line__active")})},o);function o(t){this._chart=t,this._initEvents()}e.Tooltip=i},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(2),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._rawExport=function(t,e,i){void 0===t&&(t={}),t.url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e&&(n=t.pdf||{},t.pdf=r(r({},n),{printBackground:!1}));var e="",n=i.config.exportStyles;"boolean"!=typeof t.exportStyles&&!Array.isArray(t.exportStyles)||(n=t.exportStyles),!0===n?e=s.getPageLinksCss()+"<style>"+s.getPageInlineCss()+"</style>":null!=n&&n.length&&(e=""+s.getPageLinksCss(n));n=document.createElement("div");n.setAttribute("style","display: none;");i=i.getRootView().node.el.cloneNode(!0);i.setAttribute("data-dhx-theme",t.theme||"light"),n.appendChild(i);var e="\n\t\t\t"+e+"\n\t\t\t"+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=e,o.childNodes[1].value=JSON.stringify(t),document.body.appendChild(o),o.submit(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n),setTimeout(function(){var t;null!==(t=o.parentNode)&&void 0!==t&&t.removeChild(o)},100)},n);function n(t,e){this._name=t,this._view=e,this._version="8.1.7"}e.Exporter=i}],o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/codebase/",o(o.s=66);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var i,n}),window.dhx_legacy){if(window.dhx)for(var key in dhx)dhx_legacy[key]=dhx[key];window.dhx=dhx_legacy,delete window.dhx_legacy}
|
|
21
|
+
t.exports=function(){"use strict";var k=1,l=2,O=3,T=4,M=5,t=typeof window!=="undefined",e,r=(t?window:{}).requestAnimationFrame,c={};function i(){}var p=Array.isArray;function d(t){return t!=null}function s(t){return t!=null&&t.constructor===Object}function o(t,e,i,n){t.splice.apply(t,[i,n].concat(e))}function a(t){var e=typeof t;return e==="string"||e==="number"}function u(t){return typeof t==="function"}function h(t){return typeof t==="object"&&u(t.then)}function f(t){var e=arguments;for(var i=1;i<e.length;i++)for(var n in e[i])t[n]=e[i][n];return t}function g(t,e,i){var n;while(n=e.shift())if(e.length===0)t[n]=i;else t[n]=t=t[n]||{}}function _(t,e){var i=[];for(var n=e;n<t.length;n++)i.push(t[n]);return i}function v(t,e){for(var i in t)if(t[i]!==e[i])return false;return true}function m(t,e){var i=t.length;if(e.length!==i)return false;for(var n=0;n<i;n++)if(t[n]!==e[n])return false;return true}function y(t){if(!r)return t;var e,i,n;function o(){e=0;t.apply(i,n)}return function(){i=this;n=arguments;if(!e)e=r(o)}}function x(t,e,i){return function(){return t.apply(i,e)}}function b(t){var e=t.slice();var i=[];i.push(0);var n;var o;for(var r=0,s=t.length;r<s;++r){var a=i[i.length-1];if(t[a]<t[r]){e[r]=a;i.push(r);continue}n=0;o=i.length-1;while(n<o){var l=(n+o)/2|0;if(t[i[l]]<t[r])n=l+1;else o=l}if(t[r]<t[i[n]]){if(n>0)e[r]=i[n-1];i[n]=r}}n=i.length;o=i[n-1];while(n-- >0){i[n]=o;o=e[o]}return i}function w(t,e){var i=0;var n=e.length-1;var o;var r=n<=2147483647?true:false;if(r)while(i<=n){o=i+n>>1;if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}else while(i<=n){o=Math.floor((i+n)/2);if(e[o]===t)return o;else if(e[o]<t)i=o+1;else n=o-1}return i==e.length?null:i}function C(t){return t[0]==="o"&&t[1]==="n"}function S(t){return t[0]==="_"}function E(t){return t==="style"}function D(t){t&&t.el&&t.el.offsetHeight}function P(t){return t.node!=null&&t.node.el!=null}function H(t,e){switch(e){case"value":case"checked":case"selected":return true}return false}function L(t){t=t||c;while(t.vm==null&&t.parent)t=t.parent;return t.vm}function I(){}var n=I.prototype={constructor:I,type:null,vm:null,key:null,ref:null,data:null,hooks:null,ns:null,el:null,tag:null,attrs:null,body:null,flags:0,_class:null,_diff:null,_dead:false,_lis:false,idx:null,parent:null};function R(t){var e=new I;e.type=l;e.body=t;return e}var A={},j=/\[(\w+)(?:=(\w+))?\]/g;function F(t){{var e=A[t];if(e==null){var i,n,o,r;A[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=j.exec(t)){if(e.attrs==null)e.attrs={};e.attrs[r[1]]=r[2]||""}}return e}}var $=1,N=2,V=4,W=8;function z(t,e,i,n){var o=new I;o.type=k;if(d(n))o.flags=n;o.attrs=e;var r=F(t);o.tag=r.tag;if(r.id||r.class||r.attrs){var s=o.attrs||{};if(r.id&&!d(s.id))s.id=r.id;if(r.class){o._class=r.class;s.class=r.class+(d(s.class)?" "+s.class:"")}if(r.attrs)for(var a in r.attrs)if(!d(s[a]))s[a]=r.attrs[a];o.attrs=s}var l=o.attrs;if(d(l)){if(d(l._key))o.key=l._key;if(d(l._ref))o.ref=l._ref;if(d(l._hooks))o.hooks=l._hooks;if(d(l._data))o.data=l._data;if(d(l._flags))o.flags=l._flags;if(!d(o.key))if(d(o.ref))o.key=o.ref;else if(d(l.id))o.key=l.id;else if(d(l.name))o.key=l.name+(l.type==="radio"||l.type==="checkbox"?l.value:"")}if(i!=null)o.body=i;return o}function B(t,e,i){var n=["refs"].concat(e.split("."));g(t,n,i)}function G(t){while(t=t.parent)t.flags|=$}function Y(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)B(L(t),t.ref,t);var o=t.hooks,r=n&&n.hooks;if(o&&(o.willRemove||o.didRemove)||r&&(r.willUnmount||r.didUnmount))G(t);if(p(t.body))X(t);else;}function X(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];if(n===false||n==null)e.splice(i--,1);else if(p(n))o(e,n,i--,1);else{if(n.type==null)e[i]=n=R(""+n);if(n.type===l)if(n.body==null||n.body==="")e.splice(i--,1);else if(i>0&&e[i-1].type===l){e[i-1].body+=n.body;e.splice(i--,1)}else Y(n,t,i,null);else Y(n,t,i,null)}}}var q={animationIterationCount:true,boxFlex:true,boxFlexGroup:true,boxOrdinalGroup:true,columnCount:true,flex:true,flexGrow:true,flexPositive:true,flexShrink:true,flexNegative:true,flexOrder:true,gridRow:true,gridColumn:true,order:true,lineClamp:true,borderImageOutset:true,borderImageSlice:true,borderImageWidth:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,tabSize:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeDasharray:true,strokeDashoffset:true,strokeMiterlimit:true,strokeOpacity:true,strokeWidth:true};function U(t,e){return!isNaN(e)&&!q[t]?e+"px":e}function K(t,e){var i=(t.attrs||c).style;var n=e?(e.attrs||c).style:null;if(i==null||a(i))t.el.style.cssText=i;else{for(var o in i){var r=i[o];if(n==null||r!=null&&r!==n[o])t.el.style[o]=U(o,r)}if(n)for(var s in n)if(i[s]==null)t.el.style[s]=""}}var J=[];function Z(t,e,i,n,o){if(t!=null){var r=i.hooks[e];if(r)if(e[0]==="d"&&e[1]==="i"&&e[2]==="d")o?D(i.parent)&&r(i,n):J.push([r,i,n]);else return r(i,n)}}function Q(t){if(J.length){D(t.node);var e;while(e=J.shift())e[0](e[1],e[2])}}var tt=t?document:null;function et(t){while(t._node==null)t=t.parentNode;return t._node}function it(t,e){if(e!=null)return tt.createElementNS(e,t);return tt.createElement(t)}function nt(t){return tt.createTextNode(t)}function ot(t){return tt.createComment(t)}function rt(t){return t.nextSibling}function st(t){return t.previousSibling}function at(t){var e=t.vm;var i=e!=null&&Z(e.hooks,"willUnmount",e,e.data);var n=Z(t.hooks,"willRemove",t);if((t.flags&$)===$&&p(t.body))for(var o=0;o<t.body.length;o++)at(t.body[o]);return i||n}function lt(t,e,i){var n=e._node,o=n.vm;if(p(n.body))if((n.flags&$)===$)for(var r=0;r<n.body.length;r++)lt(e,n.body[r].el);else dt(n);delete e._node;t.removeChild(e);Z(n.hooks,"didRemove",n,null,i);if(o!=null){Z(o.hooks,"didUnmount",o,o.data,i);o.node=null}}function ct(t,e){var i=e._node;if(i._dead)return;var n=at(i);if(n!=null&&h(n)){i._dead=true;n.then(x(lt,[t,e,true]))}else lt(t,e)}function dt(t){var e=t.body;for(var i=0;i<e.length;i++){var n=e[i];delete n.el._node;if(n.vm!=null)n.vm.node=null;if(p(n.body))dt(n)}}function ut(t){var e=t.el;if((t.flags&$)===0){p(t.body)&&dt(t);e.textContent=null}else{var i=e.firstChild;do{var n=rt(i);ct(e,i)}while(i=n)}}function ht(t,e,i){var n=e._node,o=e.parentNode!=null;var r=e===i||!o?n.vm:null;if(r!=null)Z(r.hooks,"willMount",r,r.data);Z(n.hooks,o?"willReinsert":"willInsert",n);t.insertBefore(e,i);Z(n.hooks,o?"didReinsert":"didInsert",n);if(r!=null)Z(r.hooks,"didMount",r,r.data)}function ft(t,e,i){ht(t,e,i?rt(i):null)}var pt={};function gt(t){f(pt,t)}function _t(t){var e=this,i=e,n=_(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());if(pt[t])pt[t].apply(e,n)}var vt=i;function mt(t){vt=t.onevent||vt;if(t.onemit)gt(t.onemit)}function yt(t,e,i){t[e]=i}function xt(t,e,i,n,o){var r=t.apply(o,e.concat([i,n,o,o.data]));o.onevent(i,n,o,o.data,e);vt.call(null,i,n,o,o.data,e);if(r===false){i.preventDefault();i.stopPropagation()}}function bt(t){var e=et(t.target);var i=L(e);var n=t.currentTarget._node.attrs["on"+t.type],o,r;if(p(n)){o=n[0];r=n.slice(1);xt(o,r,t,e,i)}else for(var s in n)if(t.target.matches(s)){var a=n[s];if(p(a)){o=a[0];r=a.slice(1)}else{o=a;r=[]}xt(o,r,t,e,i)}}function wt(t,e,i,n){if(i===n)return;var o=t.el;if(i==null||u(i))yt(o,e,i);else if(n==null)yt(o,e,bt)}function Ct(t,e,i){if(e[0]==="."){e=e.substr(1);i=true}if(i)t.el[e]="";else t.el.removeAttribute(e)}function St(t,e,i,n,o){var r=t.el;if(i==null)!o&&Ct(t,e,false);else if(t.ns!=null)r.setAttribute(e,i);else if(e==="class")r.className=i;else if(e==="id"||typeof i==="boolean"||n)r[e]=i;else if(e[0]===".")r[e.substr(1)]=i;else r.setAttribute(e,i)}function Et(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=H(t.tag,r);var l=a?t.el[r]:o[r];if(s===l);else if(E(r))K(t,e);else if(S(r));else if(C(r))wt(t,r,s,l);else St(t,r,s,a,i)}for(var r in o)!(r in n)&&!S(r)&&Ct(t,r,H(t.tag,r)||C(r))}}function Dt(t,e,i,n){if(t.type===T){e=t.data;i=t.key;n=t.opts;t=t.view}return new Yt(t,e,i,n)}function kt(t){for(var e=0;e<t.body.length;e++){var i=t.body[e];var n=i.type;if(n<=O)ht(t.el,Ot(i));else if(n===T){var o=Dt(i.view,i.data,i.key,i.opts)._redraw(t,e,false);n=o.node.type;ht(t.el,Ot(o.node))}else if(n===M){var o=i.vm;o._redraw(t,e);n=o.node.type;ht(t.el,o.node.el)}}}function Ot(t,e){if(t.el==null)if(t.type===k){t.el=e||it(t.tag,t.ns);if(t.attrs!=null)Et(t,c,true);if((t.flags&W)===W)t.body.body(t);if(p(t.body))kt(t);else if(t.body!=null&&t.body!=="")t.el.textContent=t.body}else if(t.type===l)t.el=e||nt(t.body);else if(t.type===O)t.el=e||ot(t.body);t.el._node=t;return t.el}function Tt(t,e){return e[t.idx+1]}function Mt(t,e){return e[t.idx-1]}function Pt(t){return t.parent}window.lisMove=Rt;var Ht=1,Lt=2;function It(l,c,d,u,h,f,p,g){return function(t,e,i,n,o,r){var s,a;if(n[u]!=null){if((s=n[u]._node)==null){n[u]=l(n[u]);return}if(Pt(s)!==t){a=l(n[u]);s.vm!=null?s.vm.unmount(true):ct(e,n[u]);n[u]=a;return}}if(n[h]==o)return Lt;else if(n[h].el==null){d(e,Ot(n[h]),n[u]);n[h]=c(n[h],i)}else if(n[h].el===n[u]){n[h]=c(n[h],i);n[u]=l(n[u])}else if(!r&&s===n[p]){a=n[u];n[u]=l(a);g(e,a,n[f]);n[f]=a}else{if(r&&n[u]!=null)return Rt(l,c,d,u,h,e,i,s,n);return Ht}}}function Rt(t,e,i,n,o,r,s,a,l){if(a._lis){i(r,l[o].el,l[n]);l[o]=e(l[o],s)}else{var c=w(a.idx,l.tombs);a._lis=true;var d=t(l[n]);i(r,l[n],c!=null?s[l.tombs[c]].el:c);if(c==null)l.tombs.push(a.idx);else l.tombs.splice(c,0,a.idx);l[n]=d}}var At=It(rt,Tt,ht,"lftSib","lftNode","rgtSib","rgtNode",ft),jt=It(st,Mt,ft,"rgtSib","rgtNode","lftSib","lftNode",ht);function Ft(t,e){var i=e.body,n=t.el,o=t.body,r={lftNode:o[0],rgtNode:o[o.length-1],lftSib:(i[0]||c).el,rgtSib:(i[i.length-1]||c).el};t:while(1){while(1){var s=At(t,n,o,r,null,false);if(s===Ht)break;if(s===Lt)break t}while(1){var a=jt(t,n,o,r,r.lftNode,false);if(a===Ht)break;if(a===Lt)break t}$t(t,n,o,r);break}}function $t(t,e,i,n){var o=Array.prototype.slice.call(e.childNodes);var r=[];for(var s=0;s<o.length;s++){var a=o[s]._node;if(a.parent===t)r.push(a.idx)}var l=b(r).map(function(t){return r[t]});for(var c=0;c<l.length;c++)i[l[c]]._lis=true;n.tombs=l;while(1){var d=At(t,e,i,n,null,true);if(d===Lt)break}}function Nt(t){return t.el._node.parent!==t.parent}function Vt(t,e,i){return e[i]}function Wt(t,e,i){for(;i<e.length;i++){var n=e[i];if(n.vm!=null){if(t.type===T&&n.vm.view===t.view&&n.vm.key===t.key||t.type===M&&n.vm===t.vm)return n}else if(!Nt(n)&&t.tag===n.tag&&t.type===n.type&&t.key===n.key&&(t.flags&~$)===(n.flags&~$))return n}return null}function zt(t,e,i){return e[e._keys[t.key]]}function Bt(t,e){Z(e.hooks,"willRecycle",e,t);var i=t.el=e.el;var n=e.body;var o=t.body;i._node=t;if(t.type===l&&o!==n){i.nodeValue=o;return}if(t.attrs!=null||e.attrs!=null)Et(t,e,false);var r=p(n);var s=p(o);var a=(t.flags&W)===W;if(r){if(s||a)Gt(t,e);else if(o!==n)if(o!=null)i.textContent=o;else ut(e)}else if(s){ut(e);kt(t)}else if(o!==n)if(i.firstChild)i.firstChild.nodeValue=o;else i.textContent=o;Z(e.hooks,"didRecycle",e,t)}function Gt(t,e){var i=t.body,n=i.length,o=e.body,r=o.length,s=(t.flags&W)===W,a=(t.flags&N)===N,l=(t.flags&V)===V,c=!a&&t.type===k,d=true,u=l?zt:a||s?Vt:Wt;if(l){var h={};for(var f=0;f<o.length;f++)h[o[f].key]=f;o._keys=h}if(c&&n===0){ut(e);if(s)t.body=[];return}var p,g,_,v=0,m=false,y=0;if(s){var x={key:null};var b=Array(n)}for(var f=0;f<n;f++){if(s){var w=false;var C=null;if(d){if(l)x.key=i.key(f);p=u(x,o,y)}if(p!=null){_=p.idx;C=i.diff(f,p);if(C===true){g=p;g.parent=t;g.idx=f;g._lis=false}else w=true}else w=true;if(w){g=i.tpl(f);Y(g,t,f);g._diff=C!=null?C:i.diff(f);if(p!=null)Bt(g,p)}else;b[f]=g}else{var g=i[f];var S=g.type;if(S<=O){if(p=d&&u(g,o,y)){Bt(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=Dt(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&&Nt(o[y]))y++}}if(s)t.body=b;c&&Ft(t,e)}function Yt(t,e,i,n){var o=this;o.view=t;o.data=e;o.key=i;if(n){o.opts=n;o.config(n)}var r=s(t)?t:t.call(o,o,e,i,n);if(u(r))o.render=r;else{o.render=r.render;o.config(r)}o._redrawAsync=y(function(t){return o.redraw(true)});o._updateAsync=y(function(t){return o.update(t,true)});o.init&&o.init.call(o,o,o.data,o.key,n)}var Xt=Yt.prototype={constructor:Yt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:i,refs:null,render:null,mount:qt,unmount:Ut,config:function(t){var e=this;if(t.init)e.init=t.init;if(t.diff)e.diff=t.diff;if(t.onevent)e.onevent=t.onevent;if(t.hooks)e.hooks=f(e.hooks||{},t.hooks);if(t.onemit)e.onemit=f(e.onemit||{},t.onemit)},parent:function(){return L(this.node.parent)},root:function(){var t=this.node;while(t.parent)t=t.parent;return t.vm},redraw:function(t){var e=this;t?e._redraw(null,null,P(e)):e._redrawAsync();return e},update:function(t,e){var i=this;e?i._update(t,null,null,P(i)):i._updateAsync(t);return i},_update:Zt,_redraw:Jt,_redrawAsync:null,_updateAsync:null};function qt(t,e){var i=this;if(e){ut({el:t,flags:0});i._redraw(null,null,false);if(t.nodeName.toLowerCase()!==i.node.tag){Ot(i.node);ht(t.parentNode,i.node.el,t);t.parentNode.removeChild(t)}else ht(t.parentNode,Ot(i.node,t),t)}else{i._redraw(null,null);if(t)ht(t,i.node.el)}if(t)Q(i);return i}function Ut(t){var e=this;var i=e.node;var n=i.el.parentNode;ct(n,i.el);if(!t)Q(e)}function Kt(t,e,i,n){if(i!=null){i.body[n]=e;e.idx=n;e.parent=i;e._lis=false}return t}function Jt(t,e,i){var n=t==null;var o=this;var r=o.node&&o.node.el&&o.node.el.parentNode;var s=o.node,a,l;if(o.diff!=null){a=o._diff;o._diff=l=o.diff(o,o.data);if(s!=null){var c=p(a)?m:v;var d=a===l||c(a,l);if(d)return Kt(o,s,t,e)}}r&&Z(o.hooks,"willRedraw",o,o.data);var u=o.render.call(o,o,o.data,a,l);if(u===s)return Kt(o,s,t,e);o.refs=null;if(o.key!=null&&u.key!==o.key)u.key=o.key;o.node=u;if(t){Y(u,t,e,o);t.body[e]=u}else if(s&&s.parent){Y(u,s.parent,s.idx,o);s.parent.body[s.idx]=u}else Y(u,null,null,o);if(i!==false)if(s)if(s.tag!==u.tag||s.key!==u.key){s.vm=u.vm=null;var h=s.el.parentNode;var f=rt(s.el);ct(h,s.el);ht(h,Ot(u),f);s.el=u.el;u.vm=o}else Bt(u,s);else Ot(u);r&&Z(o.hooks,"didRedraw",o,o.data);if(n&&r)Q(o);return o}function Zt(t,e,i,n){var o=this;if(t!=null)if(o.data!==t){Z(o.hooks,"willUpdate",o,t);o.data=t}return o._redraw(e,i,n)}function Qt(t,e,i,n){var o,r;if(i==null)if(s(e))o=e;else r=e;else{o=e;r=i}return z(t,o,r,n)}var te="http://www.w3.org/2000/svg";function ee(t,e,i,n){var o=Qt(t,e,i,n);o.ns=te;return o}function ie(t){var e=new I;e.type=O;e.body=t;return e}function ne(t,e,i,n){this.view=t;this.data=e;this.key=i;this.opts=n}function oe(t,e,i,n){return new ne(t,e,i,n)}function re(t){this.vm=t}function se(t){return new re(t)}function ae(t){var e=new I;e.type=k;e.el=e.key=t;return e}function le(r,s){var o=r.length;var a={items:r,length:o,key:function(t){return s.key(r[t],t)},diff:function(t,e){var i=s.diff(r[t],t);if(e==null)return i;var n=e._diff;var o=i===n||p(n)?m(i,n):v(i,n);return o||i},tpl:function(t){return s.tpl(r[t],t)},map:function(t){s.tpl=t;return a},body:function(t){var e=Array(o);for(var i=0;i<o;i++){var n=a.tpl(i);n._diff=a.diff(i);e[i]=n;Y(n,t,i)}t.body=e}};return a}ne.prototype={constructor:ne,type:T,view:null,data:null,key:null,opts:null},re.prototype={constructor:re,type:M,vm:null};var ce={config:mt,ViewModel:Yt,VNode:I,createView:Dt,defineElement:Qt,defineSvgElement:ee,defineText:R,defineComment:ie,defineView:oe,injectView:se,injectElement:ae,lazyList:le,FIXED_BODY:N,DEEP_REMOVE:$,KEYED_LIST:V,LAZY_LIST:W};function de(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(Y(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&D(e),Q(L(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),Et(t,n),i&&D(t))}}(this,t,e)}function ue(t,e,i){if(null!=e.type)null==t.vm&&(Y(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&D(e),Q(L(e)));else{var n=Object.create(t);(n=Object.create(t)).attrs=f({},t.attrs);var o=f(t.attrs,e),s;null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),Et(t,n),i&&D(t)}}function he(t,e){var i=t.body;if(p(i))for(var n=0;n<i.length;n++){var o=i[n];if(o.vm!=null)e.push(o.vm);else he(o,e)}return e}function fe(t){var e=arguments;var i=e.length;var n,o;if(i>1){var r=1;if(s(e[1])){o=e[1];r=2}if(i===r+1&&(a(e[r])||p(e[r])||o&&(o._flags&W)===W))n=e[r];else n=_(e,r)}return z(t,o,n)}function pe(){var t=fe.apply(null,arguments);return t.ns=te,t}return n.patch=function(t,e){!function(t,e,i){{var n,o;null!=e.type?null==t.vm&&(Y(e,t.parent,t.idx,null),Bt(t.parent.body[t.idx]=e,t),i&&D(e),Q(L(e))):((n=Object.create(t)).attrs=f({},t.attrs),o=f(t.attrs,e),null!=t._class&&(e=o.class,o.class=null!=e&&""!==e?t._class+" "+e:t._class),Et(t,n),i&&D(t))}}(this,t,e)},Xt.emit=function(t){var e=this,i=e,n=_(arguments,1).concat(i,i.data);do{var o=e.onemit,o=o?o[t]:null;if(o){o.apply(e,n);break}}while(e=e.parent());pt[t]&&pt[t].apply(e,n)},Xt.onemit=null,Xt.body=function(){return function t(e,i){var n=e.body;if(p(n))for(var o=0;o<n.length;o++){var r=n[o];null!=r.vm?i.push(r.vm):t(r,i)}return i}(this.node,[])},ce.defineElementSpread=fe,ce.defineSvgElementSpread=function(){var t=fe.apply(null,arguments);return t.ns=te,t},ce}()},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,s=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),o=(r=l.View,o(b,r),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)&&void 0!==i&&i.forEach(function(t,e){var i;void 0!==t.baseLine&&t.baseLine<s&&(t.baseLine=void 0);var 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||v.getDefaultColor(e)),n.fill||(n.fill=n.color||v.getDefaultColor(e));break;case"treeMap":n.legendType=(null===(i=r.legend)||void 0===i?void 0:i.type)||"groupName",null!==(i=null===(i=r.legend)||void 0===i?void 0:i.treeSeries)&&void 0!==i&&i.map(function(t,e){var i;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(i=t.id)&&void 0!==i?i:y.uid(),t.color||(t.color=v.getDefaultColor(e,"range"===n.legendType))}),n.treeSeries=null===(i=r.legend)||void 0===i?void 0:i.treeSeries;break;case"scatter":n.pointColor||(n.pointColor=n.color||v.getDefaultColor(e))}t=g.default[n.type];(n.barWidth||a.config.barWidth)&&(n.barWidth=n.barWidth||a.config.barWidth);var o=new t(a.data,n,a.events),t=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()})},b);function b(t,i){var e;void 0===i&&(i={});var u=r.call(this,null,i)||this;u._width=0,u._height=0,u._left=0,u._top=0;var n={};i.maxPoints&&(n.approximate={value:null===(e=i.series)||void 0===e?void 0:e.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)(n,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)(n,u.events)),u._globalHTMLHandlers={onmousemove:function(t){var e=u._layers.getSizes(),i=e.left,n=e.top,o=e.bottom,r=e.right,s=t.pageX,e=t.pageY,t=u.getRootView().node.el.getBoundingClientRect();u._left=t.left+window.pageXOffset,u._top=t.top+window.pageYOffset;s=s-i-u._left,e=e-n-u._top;0<=s&&s<=u._width-r-i&&0<=e&&e<=u._height-o-n?u.events.fire(f.ChartEvents.chartMouseMove,[s,e,u._left+i,u._top+n]):u.events.fire(f.ChartEvents.chartMouseLeave)},onmouseleave:function(){return u.events.fire(f.ChartEvents.chartMouseLeave)}},u._layers=new h.ComposeLayer,u.setConfig(i),u._initEvents(),u._tooltip=new m.Tooltip(u);n=s.create({render:function(){if(!u.data.getLength())return s.el("div");function t(t){function o(t){return t._isXDirection?"X":"Y"}function r(t){return t.title||t.text||t.value||""}function s(t){return t.steps&&t.steps.length?t.steps[0]:t.min||0}function a(t){return t.steps&&t.steps.length?t.steps[t.steps.length-1]:t.max||t.maxPoints||"max"}function l(t,e){return e[t]}var c=u._scales,i=t.series,n=t.type,d=((n=n||(i&&i.length&&i[0]&&i[0].type||""))||"")+" chart.";return c&&Object.keys(c).forEach(function(t){var e,i=c[t],n=i._axis||i.config;"radial"===t?(e=i._data._order,d+=" X scale "+r(i.config)+": "+t+" axis from "+l(i.config.value,e[0])+" to "+l(i.config.value,e[e.length-1])+".",d+=" "+o(i)+" scale: axis from "+s(n)+" to "+a(n)+"."):d+=" "+o(i)+" scale "+r(i.config)+": "+t+" axis from "+s(n)+" to "+a(n)+"."}),i&&i.length&&(d+=" Series:",i.forEach(function(t,e){d+=" "+("pie"===n||"pie3D"===n||"donut"===n?t.text:t.value),d+=e===i.length-1?".":","})),d}var e=[s.resizer(function(t,e){u._width=t,u._height=e||400;e=u.getRootView();e&&e.node&&e.node.el&&(e=e.node.el.getBoundingClientRect(),u._left=e.left+window.pageXOffset,u._top=e.top+window.pageYOffset),u.events.fire(f.ChartEvents.resize,[u._width,u._height]),u.paint(),!document.querySelector(".dhx_widget.dhx_chart")&&u._tooltip&&u._tooltip.destructor()})];return u._width&&u._height&&e.push(u._layers.toVDOM(u._width,u._height)),s.el(".dhx_widget.dhx_chart",c(c({class:i.css||"",onmousemove:u._globalHTMLHandlers.onmousemove,onmouseleave:u._globalHTMLHandlers.onmouseleave},{"aria-label":t(i)}),{tabIndex:0}),e)},hooks:{didMount:function(t){t&&t.node&&t.node.parent&&t.node.parent.el&&(u._width=t.node.parent.el.offsetWidth,u._height=t.node.parent.el.offsetHeight||400,u.paint())}}});return u.mount(t,n),u.export=new x.Exporter("chart",u),u}e.Chart=o},function(t,i,n){"use strict";(function(s){var l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0});var c=n(1),d=n(12),u=n(11),h=n(1),t=(e.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])})},e.prototype.parse=function(t,e){var n=this;if(void 0===e&&(e=u.DataDriver.json),"json"!==e||d.hasJsonOrArrayStructure(t)||this._parent.events.fire(u.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=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=o+e,e=n._parent.getId(i);c.isId(e)?(i=n._parent.getItem(e))&&i.$empty&&(i=t.id||i.id,h.isDefined(t.id)&&n._parent.changeId(e,i,!0),n._parent.update(i,l(l({},t),{$empty:void 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},e.prototype.save=function(o){for(var r=this,t=this._getUniqueOrder(),e=this,i=0,n=t;i<n.length;i++)!function(i){var n,t;i.saving||i.pending?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),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})},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(e,t){var i,n=this;switch(e.status){case"remove":i="delete";break;case"add":i="insert";break;default:i=e.status}return e.promise=t.save(e.obj,i),e.promise.then(function(){n._removeFromOrder(e)}).catch(function(t){e.saving=!1,e.error=!0,d.dhxError(t)}),e.saving=!0,this._saving=!0,this._addToChain(e.promise),e.promise},e.prototype._addToChain=function(t){this._parent.saveData&&this._saving?this._parent.saveData=this._parent.saveData.then(function(){return t}):this._parent.saveData=t},e.prototype._findPrevState=function(t){for(var e=0,i=this._changes.order;e<i.length;e++){var n=i[e];if(n.id===t)return n}return null},e.prototype._removeFromOrder=function(e){this._changes.order=this._changes.order.filter(function(t){return!d.isEqualObj(t,e)})},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce(function(t,e){var i=t.findIndex(function(t){return t.id===e.id}),n=-1<i?t[i]:null;return n&&!1===n.saving&&"add"===n.status?"remove"===e.status?t.splice(i,1):n.obj=e.obj:n&&!1===n.saving&&"update"===n.status?t.splice(i,1,e):t.push(e),t},[])},e);function e(t,e){this._parent=t,this._changes=e}i.Loader=t}).call(this,n(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(82);o.prototype.toJsonArray=function(t){return this.getRows(t)},o.prototype.toJsonObject=function(t){var e;return"string"==typeof t&&(e=this._fromString(t)),function t(e,i){i=i||{};var n=e.attributes;if(n&&n.length)for(var o=0;o<n.length;o++)i[n[o].name]=n[o].value;for(var r,s=e.childNodes,o=0;o<s.length;o++)1===s[o].nodeType&&(i[r=s[o].tagName]?("function"!=typeof i[r].push&&(i[r]=[i[r]]),i[r].push(t(s[o],{}))):i[r]=t(s[o],{}));return i}(e)},o.prototype.serialize=function(t){return n.jsonToXML(t)},o.prototype.getFields=function(t){return t},o.prototype.getRows=function(t){if("string"==typeof t&&(t=this._fromString(t)),t){t=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes;return t&&t.length?this._getRows(t):null}return[]},o.prototype._getRows=function(t){for(var e=[],i=0;i<t.length;i++)"item"===t[i].tagName&&e.push(this._nodeToJS(t[i]));return e},o.prototype._fromString=function(t){try{return(new DOMParser).parseFromString(t,"text/xml")}catch(t){return null}},o.prototype._nodeToJS=function(t){var e={};if(this._haveAttrs(t))for(var i=t.attributes,n=0;n<i.length;n++){var o=i[n],r=o.name,o=o.value;e[r]=this._toType(o)}if(3===t.nodeType)return e.value=e.value||this._toType(t.textContent),e;var s=t.childNodes;if(s)for(n=0;n<s.length;n++){var a=s[n],l=a.tagName;l&&("items"===l&&a.childNodes?e[l]=this._getRows(a.childNodes):this._haveAttrs(a)?e[l]=this._nodeToJS(a):e[l]=this._toType(a.textContent))}return e},o.prototype._toType=function(t){return"false"===t||"true"===t?"true"===t:t},o.prototype._haveAttrs=function(t){return t.attributes&&t.attributes.length},i=o;function o(){}e.XMLDriver=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=4;function s(t){return" ".repeat(t)}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var i='<?xml version="1.0" encoding="iso-8859-1"?>\n<'+e+">",n=0;n<t.length;n++)i+="\n"+function e(t,i){void 0===i&&(i=r);var n,o=s(i)+"<item>\n";for(n in t)Array.isArray(t[n])?(o+=s(i+r)+"<"+n+">\n",o+=t[n].map(function(t){return e(t,i+2*r)}).join("\n")+"\n",o+=s(i+r)+"</"+n+">\n"):o+=s(i+r)+("<"+n+">"+t[n])+"</"+n+">\n";return o+=s(i)+"</item>"}(t[n]);return i+"\n</"+e+">"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(12),i=(n.prototype.sort=function(t,e,i){this._createSorter(e),i===e&&(e=null),(i||e)&&this._sort(t,i,e)},n.prototype._createSorter=function(i){var n=this;i&&!i.rule&&(i.rule=function(t,e){t=null!==(t=n._checkVal(i.as,t[i.by]))&&void 0!==t?t:"",e=null!==(e=n._checkVal(i.as,e[i.by]))&&void 0!==e?e:"";return o.naturalCompare(t.toString(),e.toString())})},n.prototype._checkVal=function(t,e){return t?t.call(this,e):e},n.prototype._sort=function(t,n,o){var r=this,s={asc:1,desc:-1};return t.sort(function(t,e){var i=0;return n&&(i=n.rule.call(r,t,e)*(s[n.dir]||s.asc)),0===i&&o&&(i=o.rule.call(r,t,e)*(s[o.dir]||s.asc)),i})},n);function n(){}e.Sort=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var d=i(1),s=i(38),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))}var c,o=(c=s.DataCollection,o(f,c),f.prototype.add=function(t,i,n){var o=this;if(void 0===i&&(i=-1),void 0===n&&(n=this._root),this.events.fire(h.DataEvents.beforeAdd,[t]))return"object"!=typeof t&&(t={value:t}),t=Array.isArray(t)?t.map(function(t,e){return o._add(t,i,n,e)}):this._add(t,i,n),this._applySmart(),t},f.prototype.getRoot=function(){return this._root},f.prototype.getParent=function(t,e){if(void 0===e&&(e=!1),!this._pull[t])return null;t=this._pull[t].parent;return e?this._pull[t]:t},f.prototype.getItems=function(t){return this._childs&&this._childs[t]?this._childs[t]:[]},f.prototype.getLength=function(t){return void 0===t&&(t=this._root),this._childs[t]?this._childs[t].length:null},f.prototype.removeAll=function(t){if(d.isId(t)){if(this._childs[t])for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}}else{c.prototype.removeAll.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype.getIndex=function(e){var t=this.getParent(e);return t&&this._childs[t]?d.findIndex(this._childs[t],function(t){return t.id===e}):-1},f.prototype.sort=function(t){var e=this;if(t){for(var i in this._childs)this._sort.sort(this._childs[i],t);if(this._initChilds&&Object.keys(this._initChilds).length)for(var i in this._initChilds)this._sort.sort(this._initChilds[i],t)}else this._childs={},this._parse_data(Object.keys(this._pull).map(function(t){return e._pull[t]})),this._filters&&this.filter(this._filters.filters,this._filters.config);this.events.fire(h.DataEvents.change,[void 0,"sort",t])},f.prototype.filter=function(t,e){var n=this;if(void 0===e&&(e={}),t&&e.add||(this.restoreOrder(),t)){if(this._initOrder||(this._initOrder=this._order),this._initChilds||(this._initChilds=this._childs),e.type=e.type||h.TreeFilterType.all,this._filters={filters:{},config:e},"function"!=typeof t)if(t.by)this._filters.filters[t.by]=t;else for(var i in t)this._filters.filters[i]=t[i];else this._filters.filters=t;var o={};this._recursiveFilter(this._filters.filters,e,this._root,0,o),e&&!e.smartFilter&&(this._filters=null),Object.keys(o).forEach(function(t){for(var e=n.getParent(t),i=n.getItem(t);e;)o[e]||(o[e]=[]),i&&!o[e].find(function(t){return t.id===i.id})&&o[e].push(i),i=n.getItem(e),e=n.getParent(e)}),this._childs=o,this.events.fire(h.DataEvents.change)}},f.prototype.restoreOrder=function(){this._initChilds&&(this._childs=this._initChilds,this._initChilds=null),this.events.fire(h.DataEvents.change)},f.prototype.copy=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._copy(t,i,n,o,e)}):this._copy(t,i,n,o)},f.prototype.move=function(t,i,n,o){var r=this;return void 0===n&&(n=this),void 0===o&&(o=this._root),t instanceof Array?t.map(function(t,e){return r._move(t,i,n,o,e)}):this._move(t,i,n,o)},f.prototype.forEach=function(t,e,i){if(void 0===e&&(e=this._root),void 0===i&&(i=1/0),this.haveItems(e)&&!(i<1))for(var n=this._childs[e],o=0;o<n.length;o++)t.call(this,n[o],o,n),this.haveItems(n[o].id)&&this.forEach(t,n[o].id,--i)},f.prototype.eachChild=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=function(){return!0}),this.haveItems(t))for(var o=0;o<this._childs[t].length;o++)e.call(this,this._childs[t][o],o),i&&n(this._childs[t][o])&&this.eachChild(this._childs[t][o].id,e,i,n)},f.prototype.getNearId=function(t){return t},f.prototype.loadItems=function(e,i){var 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="+e:"?id="+e),new a.DataProxy(t).load().then(function(t){t=(i=u.toDataDriver(i)).toJsonArray(t),n._parse_data(t,e),n.events.fire(h.DataEvents.change),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){if(e===t)return!1;var i=!0;return this.eachParent(t,function(t){return t.id===e?i=!1:null}),i},f.prototype.serialize=function(t,e){void 0===t&&(t=h.DataDriver.json);e=this._serialize(this._root,e),t=u.toDataDriver(t);if(t)return t.serialize(e)},f.prototype.getId=function(t,e){if(void 0===e&&(e=this._root),this._childs[e]&&this._childs[e][t])return this._childs[e][t].id},f.prototype.map=function(t,e,i){void 0===e&&(e=this._root),void 0===i&&(i=!0);var n=[];if(!this.haveItems(e))return n;for(var o,r=0;r<this._childs[e].length;r++)n.push(t.call(this,this._childs[e][r],r,this._childs)),i&&(o=this.map(t,this._childs[e][r].id,i),n=n.concat(o));return n},f.prototype.getRawData=function(t,e,i,n,o){return o=null!=o?o:this._root,this._childs[o]?(o=o===this._root?c.prototype.getRawData.call(this,t,e,this._childs[o]):this._childs[o],2===n?this.flatten(o):o):[]},f.prototype.flatten=function(t){var i=this,n=[];return t.forEach(function(t){n.push(t);var e=i._childs[t.id];e&&t.$opened&&(n=n.concat(i.flatten(e)))}),n},f.prototype._add=function(t,e,i,n){void 0===e&&(e=-1),void 0===i&&(i=this._root),t.parent=t.parent?t.parent.toString():i,0<n&&-1!==e&&(e+=1);e=c.prototype._add.call(this,t,e);if(Array.isArray(t.items))for(var o=0,r=t.items;o<r.length;o++){var s=r[o];this.add(s,-1,t.id)}return e},f.prototype._copy=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;var r=this._childs[t];if(o&&(e=-1===e?-1:e+o),i===this&&!this.canCopy(t,n))return null;o=u.copyWithoutInner(this.getItem(t),{items:!0});if(i.exists(t)&&(o.id=d.uid()),u.isTreeCollection(i)){if(this.exists(t)&&(o.parent=n,i!==this&&n===this._root&&(o.parent=i.getRoot()),i.add(o,e),t=o.id),r)for(var s=0,a=r;s<a.length;s++){var l=a[s].id,c=this.getIndex(l);"string"==typeof t&&this.copy(l,c,i,t)}return t}i.add(o,e)},f.prototype._move=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;if(o&&(e=-1===e?-1:e+o),i!==this){if(!u.isTreeCollection(i))return i.add(u.copyWithoutInner(this.getItem(t)),e),void this.remove(t);var r=this.copy(t,e,i,n);return this.remove(t),r}if(!this.canCopy(t,n))return null;i=this.getParent(t),r=this.getIndex(t),r=this._childs[i].splice(r,1)[0];return r.parent=n,this._childs[i].length||delete this._childs[i],this.haveItems(n)||(this._childs[n]=[]),-1===e?e=this._childs[n].push(r):this._childs[n].splice(e,0,r),this.events.fire(h.DataEvents.change,[t,"update",this.getItem(t)]),t},f.prototype._reset=function(t){if(d.isId(t))for(var e=0,i=r(this._childs[t]);e<i.length;e++){var n=i[e];this.remove(n.id)}else{c.prototype._reset.call(this);var o=this._root;this._initChilds=null,this._childs=((t={})[o]=[],t)}},f.prototype._removeCore=function(e){var t;this._pull[e]&&(t=this.getParent(e),this._childs[t]=this._childs[t].filter(function(t){return t.id!==e}),t===this._root||this._childs[t].length||delete this._childs[t],this._initChilds&&this._initChilds[t]&&(this._initChilds[t]=this._initChilds[t].filter(function(t){return t.id!==e}),t===this._root||this._initChilds[t].length||delete this._initChilds[t]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter(function(t){return t.id!==e})),this._fastDeleteChilds(this._childs,e),this._initChilds&&this._fastDeleteChilds(this._initChilds,e))},f.prototype._addToOrder=function(t,e,i){var n=this._childs,o=this._initChilds,r=e.parent;(this._pull[e.id]=e).parent&&this._pull[e.parent]&&this._pull[e.parent].items&&!this._pull[e.parent].items.find(function(t){return t.id===e.id})&&this._pull[e.parent].items.push(e),c.prototype._addToOrder.call(this,t,e,i),l(n,e,r,i),o&&l(o,e,r,i)},f.prototype._parse_data=function(t,e){var i;void 0===e&&(e=this._root);for(var n=this._order.length,o=0,r=t;o<r.length;o++){var s=r[o];this.config.init&&(s=this.config.init(s)),s&&"object"!=typeof s&&(s={value:s}),s.id=null!==(i=s.id)&&void 0!==i?i:d.uid(),s.parent=void 0===s.parent||null===s.parent||s.parent&&s.$items?e:s.parent,this._pull[s.id]&&u.dhxError("Item "+s.id+" already exist"),this._pull[s.id]=s,this._order[n++]=s,this._childs[s.parent]||(this._childs[s.parent]=[]),this._childs[s.parent].push(s),s.items&&s.items instanceof Object&&this._parse_data(s.items,s.id)}},f.prototype._applySmart=function(){this._filters&&this.filter(this._filters.filters,this._filters.config)},f.prototype._fastDeleteChilds=function(t,e){if(this._pull[e]&&delete this._pull[e],t[e]){for(var i=0;i<t[e].length;i++)this._fastDeleteChilds(t,t[e][i].id);delete t[e]}},f.prototype._recursiveFilter=function(o,e,t,i,n){var r=this,s=this._childs[t];if(s){var a,l=function(t){switch(e.type){case h.TreeFilterType.all:return!0;case h.TreeFilterType.level:return i===e.level;case h.TreeFilterType.leafs:return!r.haveItems(t.id)}};a="function"==typeof o?function(t){return l(t)&&o(t)}:function(t){var e,i,n=!0;for(i in o)if(o[i].by&&""!==o[i].match&&(n=o[i].compare?o[i].compare(t[o[i].by],o[i].match,t):-1!==(null===(e=t[o[i].by])||void 0===e?void 0:e.toString().toLocaleLowerCase().indexOf(o[i].match.toString().toLowerCase()))),!n)break;return l(t)&&n},(a=s.filter(a)).length?n[t]=a:t===this._root&&(n[t]=[]);for(var c=0,d=s;c<d.length;c++){var u=d[c];this._recursiveFilter(o,e,u.id,i+1,n)}}},f.prototype._serialize=function(t,n){var o=this;return void 0===t&&(t=this._root),this.map(function(t){var e,i={};for(e in t)"parent"===e||"items"===e||e.startsWith("$")||(i[e]=t[e]);return n&&(i=n(i)),o.haveItems(t.id)&&(i.items=o._serialize(t.id,n)),i},t,!1)},f);function f(t,e){var i=c.call(this,t,e)||this;i._childs={};e=i._root=t&&t.rootId||"_ROOT_"+d.uid();return i._childs=((t={})[e]=[],t),i._initChilds=null,i}e.TreeCollection=o},function(t,e,i){"use strict";var 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.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var h=i(2),x=i(42),f=i(125),p=i(11),b=i(12),w=i(1);var n=(o.prototype.setItem=function(t,e){f.collectionStore.setItem(t,e)},o.prototype.onMouseDown=function(t,e,i){var n,o,r,s;1!==t.which&&!t.targetTouches||(t.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp)),o=(n=h.locateNode(t,"data-dhx-id"))&&n.getAttribute("data-dhx-id"),r=h.locate(t,"data-dhx-widget-id"),Array.isArray(e)&&e.includes(o)?(this._transferData.source=y(e),this._itemsForGhost=i):(this._transferData.source=[o],this._itemsForGhost=null),o&&r&&(e=(s=h.getBox(n)).left,i=s.top,s=(t.targetTouches?t.targetTouches[0]:t).pageX,t=(t.targetTouches?t.targetTouches[0]:t).pageY,this._transferData.initXOffset=s-e,this._transferData.initYOffset=t-i,this._transferData.x=s,this._transferData.y=t,this._transferData.componentId=r,this._transferData.start=o,this._transferData.item=n))},o.prototype.isDrag=function(){return this._isDrag},o.prototype.cancelCanDrop=function(t){this._canMove=!1,this._isDrag=!1;var e=this._transferData,i=e.start,n=e.source,o=e.target,e=e.dropComponentId,n={start:i,source:n,target:o},e=f.collectionStore.getItem(e);e&&o&&e.events.fire(p.DragEvents.cancelDrop,[n,t]),this._transferData.dropComponentId=null,this._transferData.target=null},o.prototype._moveGhost=function(t,e){this._transferData.ghost&&(this._transferData.ghost.style.left=t-this._transferData.initXOffset+"px",this._transferData.ghost.style.top=e-this._transferData.initYOffset+"px")},o.prototype._removeGhost=function(){document.body.removeChild(this._transferData.ghost)},o.prototype._onDrop=function(t){var e,i,n,o,r;this._canMove&&(r=(o=this._transferData).start,i=o.source,e=o.target,n=o.dropComponentId,i={start:r,source:i,target:e,dropPosition:o.dropPosition},n=(o=f.collectionStore.getItem(n))&&o.config,o&&"source"!==n.dragMode&&o.events.fire(p.DragEvents.beforeDrop,[i,t])&&(o={id:e,component:o},r={id:r,component:this._transferData.component,newId:null},this._move(r,o),r.newId&&r.component!==o.component&&(i.start=r.newId),o.component.events.fire(p.DragEvents.afterDrop,[i,t]))),this._endDrop(t)},o.prototype._onDragStart=function(t,e,i){var n=f.collectionStore.getItem(e),o=n.config,r=this._transferData,e={start:r.start,source:r.source,target:r.target};if("target"===o.dragMode||n._pregroupData)return null;r=function(t,e,i){void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=document.createElement("div"),r=t.cloneNode(!0),s=window.getComputedStyle(t.parentElement).fontSize;return r.style.width=n.width+"px",r.style.height=n.height+"px",r.style.maxHeight=n.height+"px",r.style.opacity="0.8",r.style.fontSize=s,i&&e&&e.length||o.appendChild(r),e&&e.length&&e.forEach(function(t,e){t=t.cloneNode(!0);t.style.width=n.width+"px",t.style.height=n.height+"px",t.style.maxHeight=n.height+"px",t.style.top=12*(e+1)-n.height-n.height*e+"px",t.style.left=12*(e+1)+"px",t.style.opacity="0.6",t.style.zIndex=""+(-e-1),i||(t.style.fontSize=s,t.style.overflow="hidden"),o.appendChild(t)}),o.className="dhx_drag-ghost",o}(this._transferData.item,this._itemsForGhost,"row"===o.dragItem||"column"===o.dragItem||"both"===o.dragItem);return n.events.fire(p.DragEvents.beforeDrag,[e,i,r])&&w.isId(t)?(n.events.fire(p.DragEvents.dragStart,[e,i]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.component=n,this._transferData.dragConfig=o,r):null},o.prototype._onDrag=function(t){var e=(t.targetTouches?t.targetTouches[0]:t).clientX,i=(t.targetTouches?t.targetTouches[0]:t).clientY,n=document.elementFromPoint(e,i),o=h.locate(n,"data-dhx-widget-id");if(o){var r=f.collectionStore.getItem(o),s=!!h.locateNodeByClassName(n,"dhx_grid-header")||!!h.locateNodeByClassName(n,"dhx_grid-footer"),a=r&&r.config.columns?r.config:void 0,l=a&&("both"===a.dragItem||"column"===a.dragItem);if(!s||l){var c=h.locate(n,"data-dhx-id"),d=h.locate(n,"data-dhx-root-id");if(!c&&!d)return this.cancelCanDrop(t),this._transferData.dropComponentId=o,this._transferData.target=null,void this._canDrop(t);var u=this._transferData,e=u.dropComponentId,i=u.start,a=u.source,s=u.target,l=u.componentId,n=u.dropPosition;if("complex"===r.config.dropBehaviour){u=function(t){var e=t.clientY;if(!(t=h.locateNode(t)))return null;if(t=t.childNodes[0]){t=t.getBoundingClientRect();return(e-t.top)/t.height}}(t);this._transferData.dropPosition=u<=.25?"top":.75<=u?"bottom":"in"}else if((s===c||!c&&s===d)&&e===o)return;e={id:i,component:this._transferData.component};"source"!==r.config.dragMode&&(e.component.events.fire(p.DragEvents.dragOut,[{start:i,source:a,target:s},t]),o!==l||!b.isTreeCollection(e.component.data)||b.isTreeCollection(e.component.data)&&e.component.data.canCopy(e.id,c)?(this.cancelCanDrop(t),this._transferData.target=c||d,this._transferData.dropComponentId=o,e.component.events.fire(p.DragEvents.dragIn,[{start:i,source:a,target:s,dropPosition:n},t])&&this._canDrop(t)):this.cancelCanDrop(t))}else this._canMove&&this.cancelCanDrop(t)}else this._canMove&&this.cancelCanDrop(t)},o.prototype._move=function(i,e){var t=i.component,n=e.component,o=i.component.data,r=e.component.data,s=0,a=e.id,l=b.isTreeCollection(r)?e.component.config.dropBehaviour:void 0,c=i.component.config.columns?i.component.config:void 0,d=c&&("both"===c.dragItem||"column"===c.dragItem)&&c.columns.map(function(t){return t.id}).filter(function(t){return t===i.id||t===e.id}).length;if(d&&i.component===e.component){if(i.id===e.id)return;var u=(h=t.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id});return-1===(f=h.findIndex(function(t){return t.id===e.id}))?void 0:(h.splice(f,0,h.splice(u,1)[0]),t.setColumns(h),void t.paint())}if(d&&i.component instanceof x.ProGrid&&e.component instanceof x.ProGrid){var h,u=(h=t.config.columns.map(function(t){return m({},t)})).findIndex(function(t){return t.id===i.id}),c=n.config.columns.map(function(t){return m({},t)}),d=n.data.getLength(),f=c.findIndex(function(t){return t.id===e.id}),p=[],g=i.id;t.data.forEach(function(t){var e;p.push(((e={id:t.id})[g]=t[i.id],e))}),d?t.data.forEach(function(t,e){t=n.data.getItem(t.id);t?n.data.update(t.id,m(m({},t),p[e])):n.data.add(p[e])}):n.data.parse(p);u=h.splice(u,1)[0];return c.find(function(t){return t.id===g})||c.splice(f,0,u),n.setColumns(c),n.paint(),t.setColumns(h),void t.paint()}var _=e.id===n.config.rootParent;switch(l){case"child":break;case"sibling":a=r.getParent(a),s=r.getIndex(e.id)+1;break;case"complex":var v=this._transferData.dropPosition;_?(a=e.id,s=r.getLength()):"top"===v?(a=r.getParent(a),s=r.getIndex(e.id)):"bottom"===v&&(a=r.getParent(a),s=r.getIndex(e.id)+1);break;default:s=w.isId(e.id)?i.component===e.component&&r.getIndex(i.id)<r.getIndex(e.id)?r.getIndex(e.id)-1:(-1<r.getIndex(i.id)&&(i.newId=w.uid()),r.getIndex(e.id)):-1}this._transferData.dragConfig.dragCopy?this._transferData.source instanceof Array&&1<this._transferData.source.length?this._transferData.source.map(function(t){o.copy(t,s,r,a),-1<s&&s++}):o.copy(i.id,s,r,a):this._transferData.source instanceof Array&&1<this._transferData.source.length?o.move(this._transferData.source,s,r,a):n instanceof x.Grid&&!n.config.columns.length?(l=t.data.getItem(i.id),n.data.parse([m({},l)]),n.setColumns(y(t.config.columns)),n.paint(),t.data.remove(i.id),t.paint()):o.move(i.id,s,r,a,i.newId)},o.prototype._endDrop=function(t){var e;this._toggleTextSelection(!1),this._transferData.component&&(e={start:(e=this._transferData).start,source:e.source,target:e.target},this._transferData.component.events.fire(p.DragEvents.afterDrag,[e,t])),this.cancelCanDrop(t),this._canMove=!0,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null},o.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,i={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},e=f.collectionStore.getItem(this._transferData.dropComponentId);e&&this._transferData.target&&(e instanceof x.Grid&&(i.dragItem=this._transferData.item.classList.contains("dhx_grid-row")?"row":"column"),e.events.fire(p.DragEvents.canDrop,[i,t]))},o.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},o);function o(){var a=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._onMouseMove=function(t){if(a._transferData.start){var e=(t.targetTouches?t.targetTouches[0]:t).pageX,i=(t.targetTouches?t.targetTouches[0]:t).pageY,n=a._transferData,o=n.x,r=n.y,s=n.start,n=n.componentId;if(!a._transferData.ghost){if(Math.abs(o-e)<3&&Math.abs(r-i)<3)return;n=a._onDragStart(s,n,t);if(!n)return void a._endDrop(t);a._transferData.ghost=n,document.body.appendChild(a._transferData.ghost)}a._moveGhost(e,i),a._onDrag(t)}},this._onMouseUp=function(t){a._transferData.x&&(a._transferData.ghost?(a._removeGhost(),a._onDrop(t)):a._endDrop(t),t.targetTouches?(document.removeEventListener("touchmove",a._onMouseMove),document.removeEventListener("touchend",a._onMouseUp)):(document.removeEventListener("mousemove",a._onMouseMove),document.removeEventListener("mouseup",a._onMouseUp)))}}i=window.dhxHelpers=window.dhxHelpers||{};i.dragManager=i.dragManager||new n,e.dragManager=i.dragManager},function(t,e,i){"use strict";var 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)},a=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var v=i(7),l=i(6),n=i(1),m=i(13),x=i(2),b=i(0);o.prototype.pdf=function(t){this._rawExport(t,"pdf",this._view)},o.prototype.png=function(t){this._rawExport(t,"png",this._view)},o.prototype.xlsx=function(t){return this._export(t)},o.prototype.csv=function(t){var e;void 0===t&&(t={}),t=y({asFile:!0,rowDelimiter:"\n",columnDelimiter:",",skipHeader:0},t),e="getRoot"in this._view.data&&t.flat?this.getFlatCSV(t):this._getCSV(t);var i=t.name||"grid_export";return t.asFile&&n.downloadFile(e,i+".csv","text/csv"),e},o.prototype._export=function(t){void 0===t&&(t={});for(var c=this._view.config.columns.filter(function(t){return!t.hidden}),d={},e=v.transpose(c.map(function(t){return t.header.map(function(t){return t.text||" "})})),u=[],h={default:{color:"#000000",background:"#FFFFFF",fontSize:14}},f=[],o={},i=this._view.data.serialize().map(function(n,t){return d[n.id]=t,c.map(function(t,e){var i;return o[t.id]=e,n[t.id]instanceof Date&&(i=t.format||"%M %d %Y","string"==typeof n[t.id]?n[t.id]=m.getFormattedDate(i,m.stringToDate(n[t.id],i)):"object"==typeof n[t.id]&&(n[t.id]=m.getFormattedDate(i,n[t.id]))),n[t.id]||e||!n.$groupName?v.removeHTMLTags(n[t.id]):"^ "+n.$groupName})}),p=[],g=this._view.content,_=this,n=0,r=c;n<r.length;n++)!function(t){var n,e,o,i,r;for(r in t.footer&&(n=t.id,i=e=_._view.data.serialize().reduce(function(t,e){return void 0===e[n]||""===e[n]||isNaN(e[n])||t.push(parseFloat(e[n])),t},[]),"tree"===_._view.config.type&&(i=(o=_._view.data).serialize().reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[n]||""===e[n]||isNaN(e[n])?(i=0,o.eachChild(e.id,function(t){o.haveItems(t.id)||(i+=parseFloat(t[n]))}),t.push(i)):t.push(parseFloat(e[n])||0)),t},[])),t.footer[0].content?(i=g[t.footer[0].content].calculate(e,i),p.push(i.toString())):p.push(t.footer[0].css||t.footer[0].text||" ")),u.push({width:t.width}),t.$cellCss){var s,a=t.$cellCss[r],l=a.split("").reduce(function(t,e){e=(t<<5)-t+e.charCodeAt(0);return Math.abs(e&e)},0).toString();h[l]||(s=document.body,(s=v.getStyleByClass(a,s,"dhx_grid-row",h.default))&&(h[l]=s)),h[l]&&f.push([d[r],c.indexOf(t),l])}}(r[n]);p.length&&i.push(p);var s,i={name:t.name||"data",columns:u,header:e,data:i,styles:{cells:f,css:h}};return t.url&&((s=document.createElement("form")).setAttribute("target","_blank"),s.setAttribute("action",t.url),s.setAttribute("method","POST"),s.style.visibility="hidden",(t=document.createElement("textarea")).setAttribute("name","data"),t.value=JSON.stringify(i),s.appendChild(t),document.body.appendChild(s),s.submit(),setTimeout(function(){s.parentNode.removeChild(s)},100)),i},o.prototype.getFlatCSV=function(o){var e=this._view.data,t=e.getRoot(),r=this._view.config.columns[0],s=e.getMaxLevel(),i="";e.eachChild(t,function(n){var t=function(t,e){for(var i,n=[],o=0;o<=s;o++)t&&t[r.id]?(n[t.$level]=t[r.id],t=(i=e.getParent(t.id,!0))&&i.id?i:null):n[o]="";return n}(n,e).join(o.columnDelimiter);i+=t+Object.keys(n).reduce(function(t,e,i){return"id"===e||"parent"===e||e.startsWith("$")||0===i?t:t+o.columnDelimiter+(null===n[e]?"":n[e])},""),i+=o.rowDelimiter});var t=this._export(o),n=function(t,e){for(var i=0;i<t.length;i++)t[i]=e;return t}(new Array(s+1),""),t=t.header.map(function(t){return t.splice.apply(t,a([0,1],n)),t});return new l.CsvDriver(o).serialize(t,!0)+o.rowDelimiter+i},o.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)},o.prototype._rawExport=function(i,t,e){void 0===i&&(i={});var n=document.createElement("div");n.setAttribute("style","display: none;");var o=e.config,r=o.headerRowHeight,s=void 0===r?0:r,a=o.footerRowHeight,l=void 0===a?0:a,c=o.$totalHeight,d=void 0===c?0:c,r=o.$headerLevel,a=void 0===r?0:r,c=o.$footerLevel,r=void 0===c?0:c,c=o.$footer,u=o.columns,h="",f=e.config.exportStyles;"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&&(p=i.pdf,i.pdf=y(y({},p),{printBackground:!1,format:null!==(p=null==p?void 0:p.format)&&void 0!==p?p:"A4"}));var p=e.config.$totalWidth,s=d+a*(s+1)+1;c&&(s+=r*(l+1));for(var g=[],_=0;_<u.length;_++){var v=u[_];g.push(y(y({},v),{width:v.$width}))}var s=y(y({},e.config),{width:p,height:s,columns:g,data:e.data.getRawData(),keyNavigation:!1,selection:!1,resizable:!1,autoWidth:!1,autoHeight:!1,adjust:!1}),m=new e.constructor(n,s);b.awaitRedraw().then(function(){!0===f?h=x.getPageLinksCss()+"<style>"+x.getPageInlineCss()+"</style>":Array.isArray(f)&&f.length&&(h=""+x.getPageLinksCss(f)),null!==(t=n.children[0])&&void 0!==t&&t.setAttribute("data-dhx-theme",i.theme||"light");var t="\n\t\t\t\t\t"+h+"\n\t\t\t\t\t"+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;m.destructor(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n),null!==(t=e.parentNode)&&void 0!==t&&t.removeChild(e)},100)}).catch(function(){var t;m.destructor(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n)})},i=o;function o(t,e,i){this._name=t,this._version=e,this._view=i}e.Exporter=i},function(t,e,i){"use strict";var u=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var j=i(0),s=i(6),F=i(1),o=i(5),$=i(4),h=i(20),N=i(10),r=i(10),V=i(7),i=(n.prototype.setCell=function(e,i,t,n){var o,r=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var s="tree"===this._grid.config.type;if(this._gridId&&h.focusManager.getFocusId()!==this._gridId&&h.focusManager.setFocusId(this._gridId),!(this.config.disabled||this._grid.config.$editable||(null===(o=this._selectedCells[0])||void 0===o?void 0:o.row.id)===((null===(o=e)||void 0===o?void 0:o.id)||e)&&(null===(o=this._selectedCells[0])||void 0===o?void 0:o.column.id)===((null===(o=i)||void 0===o?void 0:o.id)||i))&&(this._multiselection||!this._selectedCells.length||this._removeCell(null===(a=this._selectedCell)||void 0===a?void 0:a.row,null===(c=this._selectedCell)||void 0===c?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?void 0:e.id)||e)&&t.column.id===((null===i||void 0===i?void 0:i.id)||i)}))return void this.removeCell((null===e||void 0===e?void 0:e.id)||e,(null===i||void 0===i?void 0:i.id)||i);n&&1<this._selectedCells.length&&!s&&u(this._selectedCells).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,d,t=null===(c=null===(a=this._grid.config)||void 0===a?void 0:a.columns)||void 0===c?void 0:c.filter(function(t){return!t.hidden});i=i||(null==t?void 0:t[0]),(i=this._grid.getColumn(i.id||i))&&e&&(this._multiselection&&n&&this._selectedCells.length&&!s?(c=null===(a=this._selectedCells)||void 0===a?void 0:a[0],n=this._grid.data.getIndex(c.row.id),(s=this._grid.data.getIndex(e.id))<n&&(n=(l=[s,n])[0],s=l[1]),"cell"===this._type||"complex"===this._type?(l=(a=t.map(function(t){return t.id})).indexOf(c.column.id),c=a.indexOf(i.id),-1!==l&&-1!==c&&(c<l&&(l=(a=[c,l])[0],c=a[1]),d=t.slice(l,c+1),this._grid.data.mapRange(n,s,function(e){d.forEach(function(t){-1===r._findIndex({row:e,column:t})&&r._setCell(e,t)})}))):this._grid.data.mapRange(n,s,function(t){-1===r._findIndex({row:t,column:i})&&r._setCell(t,i)})):this._setCell(e,i),j.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(),j.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=this;if(!this._isUnselected()){if(this._multiselection){var r=[],s={};return this._selectedCells.forEach(function(t,e,i){var n=o._normalizeCell(t);r.push(o._toHTML(n.row,n.column,e===i.length-1||"cell"===o._type||"complex"===o._type,s[t.row.id])),s[t.row.id]=!0}),r}var t=this._normalizeCell(this._selectedCell);return this._toHTML(t.row,t.column,!0)}},n.prototype._setCell=function(t,e){t&&e&&F.isDefined(t.id)&&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){if(void 0===t&&(t=!1),!(e&&i&&F.isDefined(e.id)&&F.isDefined(i.id)))return!1;if(!t&&!this.events.fire($.GridSelectionEvents.beforeUnSelect,[e,i]))return!1;var n=this._selectedCells.findIndex(function(t){return t.row.id===e.id&&t.column.id===i.id});return 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?void 0:n[(null===(n=this._selectedCells)||void 0===n?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),u(this._selectedCells).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?void 0:e.id)||(null===(n=n[i-1])||void 0===n?void 0:n.id)||t.parent:r._grid.data.getId(i+1)||r._grid.data.getId(i-1),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=this._grid.data.getRawData(0,-1,null,2);if(-1===F.findIndex(o,function(t){return t.id==e.id}))return null;var r,s,a,l,c,d,u,h=this._grid.config,f=h.topSplit,p=h.bottomSplit,g=h.$totalWidth,_=h.$totalHeight,v=h.columns,m=null==v?void 0:v.filter(function(t){return!t.hidden}),y={left:N.getCurrFixedCols(this._grid.config,$.Split.left),right:N.getCurrFixedCols(this._grid.config,$.Split.right)},x=this._grid.data.getLength(),b={top:f?this._grid.data.getRawData(0,f):[],bottom:p?this._grid.data.getRawData(x-p,x):[]},w={left:null===(H=null==y?void 0:y.left)||void 0===H?void 0:H.map(function(t){return t.id}),right:null===(L=null==y?void 0:y.right)||void 0===L?void 0:L.map(function(t){return t.id})},C={top:b.top.map(function(t){return t.id}),bottom:b.bottom.map(function(t){return t.id})},S=null===(I=null==y?void 0:y.left)||void 0===I?void 0:I.reduce(function(t,e){return t+(e.$width||0)},0),E=null===(R=null==y?void 0:y.right)||void 0===R?void 0:R.reduce(function(t,e){return t+(e.$width||0)},0),D=b.top.reduce(function(t,e){return t+e.$height},0),k=b.bottom.reduce(function(t,e){return t+e.$height},0),O=this._grid.getCellRect(e.id,t.id),T=this._grid.getScrollState(),M=O.y,P=null===(A=C.top)||void 0===A?void 0:A.includes(e.id),v=null===(h=w.left)||void 0===h?void 0:h.includes(t.id),x=y.left.length&&S>O.x-T.x,H=b.top.length&&D>O.y-T.y,L=O.width,I=O.height-1,R=null,A=null,h=x?S+T.x:O.x;x&&(L-=(v?V.getTotalWidth(y.left.slice(0,m.indexOf(t))):S)-(O.x-T.x)),H&&(I-=(P?V.getTotalHeight(b.top.slice(0,o.indexOf(e))):D)-(O.y-T.y)-1,M+=O.height-I),P&&(M=O.y+T.y,(r=this._grid.getSpan(e.id,t.id))&&1<r.rowspan?(l=o.indexOf(e),R=V.getTotalHeight(b.top.slice(l,l+r.rowspan))):I=f===C.top.indexOf(e.id)+1?O.height-1:O.height),v&&(h=O.x+T.x,(r=this._grid.getSpan(e.id,t.id))&&1<r.colspan?(l=null==m?void 0:m.indexOf(t),A=V.getTotalWidth(y.left.slice(l,l+r.colspan))):L=y.left.length===w.left.indexOf(t.id)+1?O.width-1:O.width),(null!==(D=y.right)&&void 0!==D&&D.length||p)&&(r=this._grid.getSpan(e.id,t.id),f=this._getReverseScrollState(T),null!==(D=y.right)&&void 0!==D&&D.length&&(s=(null===(D=w.right)||void 0===D?void 0:D.includes(t.id))||r&&m.indexOf(t)+(r.colspan||1)>m.length-y.right.length,(a=g-E<f.x+O.x+O.width)&&!s&&(L-=f.x+O.x+O.width-g+E),s&&(L=!r||null!==(D=w.right)&&void 0!==D&&D.includes(r.column)?(c=null!==(c=w.right)&&void 0!==c&&c.indexOf(t.id)?0:1,h=O.x-f.x+c,O.width-c):(l=m.length-m.indexOf(t)-(r.colspan||1),E=g-E,h=O.x+f.x<1+E?O.x:E-f.x+1,A=V.getTotalWidth(l?y.right.slice(0,-l):y.right)-1,O.width-f.x))),p&&(d=C.bottom.includes(e.id)||r&&o.indexOf(e)+(r.rowspan||1)>o.length-p,(u=_-k<f.y+O.y+O.height)&&!d&&(I-=f.y+O.y+O.height-_+k),d&&(I=r&&!C.bottom.includes(r.row)?(k=_-k,c=(l=o.length-o.indexOf(e)-(r.rowspan||1))?0:1,M=O.y+f.y<k?O.y:k-f.y,R=V.getTotalHeight(l?b.bottom.slice(0,-l):b.bottom)-c,O.height-f.y-c):(M=O.y-f.y,O.height-(p===C.bottom.indexOf(e.id)+1?1:0)))));C=null;"row"!==this._type&&"complex"!==this._type||n||(C=j.el(".dhx_grid-selected-row",{style:{width:null!==(n=y.left)&&void 0!==n&&n.length?g-T.x:g,height:I,minHeight:R,minWidth:A,display:I<0&&!R?"none":"flex",top:M,left:null!==(y=y.left)&&void 0!==y&&y.length?T.x:0,position:"absolute"}}));T=null;return"cell"!==this._type&&"complex"!==this._type||!i||(T=j.el(".dhx_grid-selected-cell",{style:{width:L,height:I,top:M,minHeight:R,minWidth:A,left:h,position:"absolute",display:L<0&&!A||I<0&&!R?"none":"flex",borderLeft:x&&!v?"none":null,borderRight:a&&!s?"none":null,borderTop:H&&!P?"none":null,borderBottom:u&&!d?"none":null}})),j.el(".dhx_grid-selection",{style:{zIndex:20}},[C,T])},n.prototype._isUnselected=function(){return!this._selectedCell||!this._selectedCell.row||!this._selectedCell.column||0===this._selectedCells.length},n.prototype._findIndex=function(i){var n=this;void 0===i&&(i=this._selectedCell);var o=-1;return this._selectedCells.some(function(t,e){if("cell"===n._type||"complex"===n._type){if(F.compare(t.row,i.row)&&F.compare(t.column,i.column))return o=e,!0}else if("row"===n._type&&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&&(e=t.querySelector('[data-dhx-id="'+this._selectedCell.row.id+'"]'),t=this._grid.getSpan(this._selectedCell.row.id,this._selectedCell.column.id),!e||(e=(i=t?i.querySelector(".dhx_span-spans"):null)?i.querySelector('[data-dhx-col-id="'+t.column+'"][data-dhx-id="'+t.row+'"]'):e.querySelector('[data-dhx-col-id="'+this._selectedCell.column.id+'"]'))&&(e.tabIndex=0,e.focus({preventScroll:!0})))},n.prototype._getReverseScrollState=function(t){var e=this._grid.config.$headerLevel*this._grid.config.headerRowHeight,i=this._grid.config.$footerLevel*this._grid.config.footerRowHeight,n=r.calcScrollBarWidth(this._grid.config,!(null===(o=this._grid.scrollView)||void 0===o||!o.config.enable)),o=this._grid.config.$totalWidth-this._grid.config.$width+N.BORDERS+n.y,n=this._grid.config.$totalHeight-this._grid.config.$height+e+i+N.BORDERS+n.x;return{x:0<o?o-t.x:0,y:0<n?n-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}},n);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()}e.Selection=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=i(4),s=i(89),a=i(90),l=i(91),c=i(105),d=i(106),u=i(113),h={cell:{row:null,col:null},editor:null,gridId:null};e.getEditor=function(t,e,i){var n="boolean"===e.type?"checkbox":i.$editable.editorType;if(void 0===n&&(n=i.autoHeight?"textarea":"input"),h.cell.row===t.id&&h.cell.col===e.id&&h.gridId===i.gridId&&i.$editable.editor)return h.editor;switch("checkbox"!==n&&(h={cell:{row:t.id,col:e.id},editor:h.editor,gridId:i.gridId}),o||(o=function(){h={cell:{row:null,col:null},editor:null,gridId:null}},i.events.on(r.GridEvents.afterEditEnd,o)),n){case"input":return h.editor=new s.InputEditor(t,e,i);case"textarea":return h.editor=new u.TextAreaEditor(t,e,i);case"select":return h.editor=new a.SelectEditor(t,e,i);case"datePicker":return h.editor=new l.DateEditor(t,e,i);case"checkbox":return new c.CheckboxEditor(t,e,i);case"multiselect":case"combobox":return h.editor=new d.ComboboxEditor(t,e,i);default:return h.editor=new s.InputEditor(t,e,i)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(4),r=i(1),i=(s.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),"string"!==this._cell.col.type&&r.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()},s.prototype.toHTML=function(t){var e=this._cell.row[this._cell.col.id];return this._input&&(e=this._input.value),this._config.$editable.editor=this,n.el("input.dhx_cell-editor.dhx_cell-editor__input",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value: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)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(4),r=i(9),i=(s.prototype.endEdit=function(t){var e;t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("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=r.getEditorOptions(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[],e=this._cell.row[this._cell.col.id];this._input&&(e=this._input.options[this._input.selectedIndex].value);t=t.map(function(t){return n.el("option",{selected:t.id.toString()===(null==e?void 0:e.toString()),value:t.id},t.value)});return this._config.$editable.editor=this,n.el("select.dhx_cell-editor.dhx_cell-editor__select",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor"},t)},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)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.SelectEditor=i},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};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(4),o=i(92),l=i(13),r=i(30),i=(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();!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),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),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(){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)}}},c);function c(t,e,i){var n=this;this._config=i,this._cell={row:t,col:e},this._calendar=new o.Calendar(null,this._cleanConfig(e));t=this._cell.row[this._cell.col.id],e=this._calendar.config.dateFormat;(l.stringToDate(t,e,!0)||t instanceof Date)&&(this._calendar.setValue(t),this._value=this._calendar.getValue(),this._cell.row[this._cell.col.id]=this._value),this._popup=new 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()}e.DateEditor=i},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(93)),n(e(48))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(1),b=i(0),a=i(5),l=i(8),c=i(94),d=i(104),w=i(13),u=i(48),h=i(2),o=(r=l.View,o(f,r),f.prototype.setValue=function(t){if(!t||t instanceof Array&&0===t.length)return!1;var e=t instanceof Array?t[0]:t,i=w.DateHelper.toDateObject(e,this.config.dateFormat),e=w.DateHelper.copy(this._getSelected());return!!this.events.fire(u.CalendarEvents.beforeChange,[i,e,!1])&&(this._selected=[],this._setSelected(t),this._timepicker&&(this._timepicker.setValue(i),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(u.CalendarEvents.change,[i,e,!1]),this.paint(),!0)},f.prototype.getValue=function(t){var e=this;return void 0===t&&(t=!1),this._selected[0]?this.config.range?t?this._selected.map(function(t){return w.DateHelper.copy(t)}):this._selected.map(function(t){return w.getFormattedDate(e.config.dateFormat,t)}):t?w.DateHelper.copy(this._selected[0]):w.getFormattedDate(this.config.dateFormat,this._selected[0]):""},f.prototype.getCurrentMode=function(){return this._currentViewMode},f.prototype.showDate=function(t,e){t&&(this._currentDate=w.DateHelper.copy(t)),e&&(this._currentViewMode=e),this.paint()},f.prototype.destructor=function(){this._linkedCalendar&&this._unlink(),this._timepicker&&this._timepicker.destructor(),this.events&&this.events.clear(),this.config=this.events=null,this._uid=this._selected=this._currentDate=this._currentViewMode=this._handlers=this._timepicker=this._time=null,this.unmount()},f.prototype.clear=function(){var t=this.getValue(!0);this.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]))},f.prototype.link=function(t){var e=this;this._linkedCalendar&&this._unlink(),this._linkedCalendar=t;var i=this.getValue(!0),n=t.getValue(!0),o=i&&w.DateHelper.dayStart(i),r=n&&w.DateHelper.dayStart(n);this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(o&&r)return o<=t&&t<=r&&function(t){if(w.DateHelper.isSameDay(r,o))return null;var e="dhx_calendar-day--in-range";return w.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--first-date"),w.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--last-date"),e}(t)}),this.config.disabledDates&&this._linkedCalendar.config.disabledDates||(this.config.disabledDates=function(t){if(r)return r<t},this._linkedCalendar.config.disabledDates=function(t){if(o)return t<o}),this.config.thisMonthOnly=!0,t.config.thisMonthOnly=!0,this.events.on(u.CalendarEvents.change,function(t){o=t?w.DateHelper.dayStart(t):null,e._linkedCalendar.paint()},"link"),this._linkedCalendar.events.on(u.CalendarEvents.change,function(t){r=t?w.DateHelper.dayStart(t):null,e.paint()},"link"),this._linkedCalendar.paint(),this.paint()},f.prototype._unlink=function(){this._linkedCalendar&&(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=null,this.config.disabledDates=this._linkedCalendar.config.disabledDates=null,this.events.detach(u.CalendarEvents.change,"link"),this._linkedCalendar.events.detach(u.CalendarEvents.change,"link"),this._linkedCalendar.paint(),this._linkedCalendar=null)},f.prototype._setSelected=function(t){var i,n=this,e=t instanceof Array?t[0]:t,e=w.DateHelper.toDateObject(e,this.config.dateFormat);t instanceof Array&&this.config.range?(i=[],t.forEach(function(t,e){e<2&&i.push(w.DateHelper.toDateObject(t,n.config.dateFormat))}),2===i.length&&i[0]<i[1]?i.forEach(function(t){return n._selected.push(t)}):this._selected[0]=i[0]):this._selected[0]=e},f.prototype._getSelected=function(){return this._selected[this._selected.length-1]},f.prototype._draw=function(){switch(this._currentViewMode){case"calendar":return this.events.fire(u.CalendarEvents.modeChange,["calendar"]),this._drawCalendar();case"month":return this.events.fire(u.CalendarEvents.modeChange,["month"]),this._drawMonthSelector();case"year":return this.events.fire(u.CalendarEvents.modeChange,["year"]),this._drawYearSelector();case"timepicker":return this.events.fire(u.CalendarEvents.modeChange,["timepicker"]),this._drawTimepicker()}},f.prototype._initHandlers=function(){function n(t){void 0===t&&(t=!1);var e=0;switch(o._currentViewMode){case"calendar":e=t?-7:7;break;case"month":e=t?-4:4;break;case"year":e=t?-4:4}return e}var o=this,r={Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Left:"ArrowLeft",Esc:"Escape",Spacebar:"Space"};this._handlers={onkeydown:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){switch(48<=(i=t).which&&i.which<=57||65<=i.which&&i.which<=90?String.fromCharCode(i.which):(i=32===i.which?i.code:i.key,h.isIE()&&r[i]||i)){case"Enter":o._selectDate(t,e);break;case"ArrowLeft":o._moveBrowseFocus(t,e,-1);break;case"ArrowRight":o._moveBrowseFocus(t,e,1);break;case"ArrowUp":o._moveBrowseFocus(t,e,n(!0));break;case"ArrowDown":o._moveBrowseFocus(t,e,n())}var i}},onclick:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(t,e){o._selectDate(t,e)},".dhx_calendar-action__cancel":function(){o.showDate(o._getSelected(),"calendar"),o.events.fire(u.CalendarEvents.cancelClick,[])},".dhx_calendar-action__show-month":function(){return o.showDate(null,"month")},".dhx_calendar-action__show-year":function(){return o.showDate(null,"year")},".dhx_calendar-action__next":function(){var t;switch(o._currentViewMode){case"calendar":t=w.DateHelper.addMonth(o._currentDate,1);break;case"month":t=w.DateHelper.addYear(o._currentDate,1);break;case"year":t=w.DateHelper.addYear(o._currentDate,12)}o.showDate(t)},".dhx_calendar-action__prev":function(){var t;switch(o._currentViewMode){case"calendar":t=w.DateHelper.addMonth(o._currentDate,-1);break;case"month":t=w.DateHelper.addYear(o._currentDate,-1);break;case"year":t=w.DateHelper.addYear(o._currentDate,-12)}o.showDate(t)},".dhx_calendar-action__show-timepicker":function(){o._currentViewMode="timepicker",o.paint()}},onmouseover:{".dhx_calendar-day":function(t,e){o.events.fire(u.CalendarEvents.dateMouseOver,[new Date(e.attrs._date),t]),o.events.fire(u.CalendarEvents.dateHover,[new Date(e.attrs._date),t])}}}},f.prototype._getData=function(r){var t,s=this;switch(this._isSelectedInCurrentRange=!1,this.config.weekStart){case"saturday":t=-1;break;case"monday":t=1;break;default:t=0}for(var e=[],i=6,a=w.DateHelper.weekStart(w.DateHelper.monthStart(r),t);i--;){for(var n=w.DateHelper.getWeekNumber(a),l=0,o=7,c=[],d=function(){var t,e=w.DateHelper.isWeekEnd(a),i=r.getMonth()===a.getMonth(),n=u.config.disabledDates&&u.config.disabledDates(a),o=[];u.config.range&&u._selected[0]&&u._selected[1]&&(t=function(){if(s._selected[0]&&s._selected[1]){var t=w.DateHelper.dayStart(s._selected[0]),e=w.DateHelper.dayStart(s._selected[1]);return t<=a&&a<=e&&(w.DateHelper.isSameDay(s._selected[0],s._selected[1])?null:"dhx_calendar-day--in-range")}},u.config.$rangeMark=t),e&&o.push("dhx_calendar-day--weekend"),i||(u.config.thisMonthOnly?(l++,o.push("dhx_calendar-day--hidden")):o.push("dhx_calendar-day--muffled")),!u.config.mark||(i=u.config.mark(a))&&o.push(i),u.config.$rangeMark&&(t=u.config.$rangeMark(a))&&o.push(t),n&&(e?o.push("dhx_calendar-day--weekend-disabled"):o.push("dhx_calendar-day--disabled")),u._selected.forEach(function(t,e){t&&w.DateHelper.isSameDay(t,a)&&(s._isSelectedInCurrentRange=!0,t="dhx_calendar-day--selected",s.config.range&&(t+=" dhx_calendar-day--selected-"+(0===e?"first ":"last")),o.push(t))}),c.push({date:a,day:a.getDate(),css:o.join(" ")}),a=w.DateHelper.addDay(a)},u=this;o--;)d();e.push({weekNumber:n,days:c,disabledWeekNumber:7===l})}return e},f.prototype._drawCalendar=function(){var t,i=this,e=this._currentDate,n=this.config,o=n.weekStart,r=n.thisMonthOnly,s=n.css,a=n.timePicker,l=n.width;switch(o){case"saturday":t=x([w.locale.daysShort[6]],w.locale.daysShort.slice(0,-1));break;case"monday":t=x(w.locale.daysShort.slice(1),[w.locale.daysShort[0]]);break;default:t=w.locale.daysShort}for(var c,n=t.map(function(t){return b.el(".dhx_calendar-weekday",t)}),o=this._getData(e),d=!0,u=this._getSelected(),h=function(t){var e={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(i._isSelectedInCurrentRange?(t=t.date)&&u&&t.getTime()===u.getTime()&&(e.tabindex=0,e["aria-pressed"]="true"):d&&(e.tabindex=0),d=!1),e},f=[],p=[],g=0,_=o;g<_.length;g++){var v=_[g],m=v.days.map(function(t){return b.el("div.dhx_calendar-day",y({class:t.css,_date:t.date},h(t)),t.day)});!this.config.weekNumbers||v.disabledWeekNumber&&r||p.push(b.el("div",{class:"dhx_calendar-week-number"},v.weekNumber)),f=f.concat(m)}this.config.weekNumbers&&(c=b.el(".dhx_calendar__week-numbers",p));s="dhx_calendar dhx_widget"+(s?" "+s:"")+(a?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return b.el("div",y({class:s,style:{width:this.config.weekNumbers?parseInt(l.toString())+48+"px":l}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_calendar-action__show-month.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},w.locale.months[e.getMonth()]+" "+e.getFullYear())),this.config.weekNumbers&&b.el(".dhx_calendar__dates-wrapper",[b.el(".dhx_calendar__weekdays",n),b.el(".dhx_calendar__days",f),c]),!this.config.weekNumbers&&b.el(".dhx_calendar__weekdays",n),!this.config.weekNumbers&&b.el(".dhx_calendar__days",f),a?b.el(".dhx_timepicker__actions",[b.el("button.dhx_calendar__timepicker-button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__show-timepicker",{type:"button"},[b.el("span.dhx_button__icon.dxi.dxi-clock-outline"),b.el("span.dhx_button__text",this._time)])]):null])])},f.prototype._drawMonthSelector=function(){function o(t){return d&&e===t}var t=this._currentDate,e=t.getMonth(),i=this._getSelected()?this._getSelected().getFullYear():null,n=this.config,r=n.css,s=n.timePicker,a=n.weekNumbers,l=n.width,n=n.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),c=!0,d=i===t.getFullYear();return b.el("div",y({class:s,style:{width:a?parseInt(l.toString())+48+"px":l}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_calendar-action__show-year.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},t.getFullYear())),b.el(".dhx_calendar__months",w.locale.monthsShort.map(function(t,e){return b.el("div",y(y({class:"dhx_calendar-month"+(o(e)?" dhx_calendar-month--selected":"")},(i=e,n={role:"button",tabindex:-1,"aria-pressed":"false"},t&&(d?o(i)&&(n.tabindex=0,n["aria-pressed"]="true"):c&&(n.tabindex=0),c=!1),n)),{_date:e}),t);var i,n})),"month"!==n?b.el(".dhx_calendar__actions",[b.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},w.locale.cancel)]):null])])},f.prototype._drawYearSelector=function(){function n(t){return e._getSelected()&&t===e._getSelected().getFullYear()}var e=this,t=this._currentDate,i=w.DateHelper.getTwelweYears(t),o=this.config,r=o.css,s=o.timePicker,a=o.weekNumbers,t=o.width,o=o.mode,s="dhx_calendar dhx_widget"+(r?" "+r:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),l=!0,c=this._getSelected()&&i.includes(this._getSelected().getFullYear());return b.el("div",y({class:s,style:{width:a?parseInt(t.toString())+48+"px":t}},this._handlers),[b.el(".dhx_calendar__wrapper",[this._drawHeader(b.el("button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},i[0]+"-"+i[i.length-1])),b.el(".dhx_calendar__years",i.map(function(t){return b.el("div",y({class:"dhx_calendar-year"+(n(t)?" dhx_calendar-year--selected":""),_date:t},(i={role:"button",tabindex:-1,"aria-pressed":"false"},(e=t)&&(c?n(e)&&(i.tabindex=0,i["aria-pressed"]="true"):l&&(i.tabindex=0),l=!1),i)),t);var e,i})),"year"!==o&&"month"!==o?b.el(".dhx_calendar__actions",[b.el("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},w.locale.cancel)]):null])])},f.prototype._drawHeader=function(t){return b.el(".dhx_calendar__navigation",[b.el("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[b.el(".dhx_button__icon.dxi.dxi-chevron-left")]),t,b.el("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+d.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[b.el(".dhx_button__icon.dxi.dxi-chevron-right")])])},f.prototype._drawTimepicker=function(){var t=this.config,e=t.css,i=t.weekNumbers,t=t.width;return b.el(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:i?parseInt(t.toString())+48+"px":t}},[b.inject(this._timepicker.getRootView())])},f.prototype._selectDate=function(t,e){var i=e.attrs._date,n=w.DateHelper.copy(this._getSelected());switch(this._currentViewMode){case"calendar":var o=this.config.timePicker?w.DateHelper.mergeHoursAndMinutes(i,this._getSelected()||this._currentDate):i;if(!this.events.fire(u.CalendarEvents.beforeChange,[o,n,!0]))return;this.config.range&&1===this._selected.length&&this._selected[0]<o?this._selected.push(o):(this._selected=[],this._selected[0]=o),e.el.blur(),this.showDate(this._getSelected()),this.events.fire(u.CalendarEvents.change,[i,n,!0]);break;case"month":if("month"!==this.config.mode)w.DateHelper.setMonth(this._currentDate,i),this.showDate(null,"calendar"),this.events.fire(u.CalendarEvents.monthSelected,[i]);else{var r=w.DateHelper.fromYearAndMonth(this._currentDate.getFullYear()||this._getSelected().getFullYear(),i);if(!this.events.fire(u.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(u.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(u.CalendarEvents.monthSelected,[i]),this.paint()}break;case"year":if("year"!==this.config.mode)w.DateHelper.setYear(this._currentDate,i),this.showDate(null,"month"),this.events.fire(u.CalendarEvents.yearSelected,[i]);else{r=w.DateHelper.fromYear(i);if(!this.events.fire(u.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(u.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(u.CalendarEvents.yearSelected,[i]),this.paint()}}},f.prototype._moveBrowseFocus=function(t,e,i){e&&(!(i=e.parent.body[e.idx+i])||(i=i.el)&&(t.target.tabIndex=-1,i.tabIndex=0,i.focus({preventScroll:!0})))},f);function f(t,e){void 0===e&&(e={});var o=r.call(this,t,s.extend({weekStart:"sunday",thisMonthOnly:!1,dateFormat:window&&window.dhx&&window.dhx.dateFormat,width:"250px"},e))||this;switch(o._selected=[],o.events=new a.EventSystem,o.config.disabledDates=o.config.disabledDates||o.config.block,o.config.mode=o.config.mode||o.config.view,o.config.dateFormat||(o.config.timePicker?12===o.config.timeFormat?o.config.dateFormat="%d/%m/%y %h:%i %A":o.config.dateFormat="%d/%m/%y %H:%i":o.config.dateFormat="%d/%m/%y"),o.config.value&&o._setSelected(o.config.value),o.config.date?o._currentDate=w.DateHelper.toDateObject(o.config.date,o.config.dateFormat):o._getSelected()?o._currentDate=w.DateHelper.copy(o._getSelected()):o._currentDate=new Date,o.config.mode){case"month":o._currentViewMode="month";break;case"year":o._currentViewMode="year";break;case"timepicker":o._currentViewMode=o.config.timePicker?"timepicker":"calendar";break;default:o._currentViewMode="calendar"}o._initHandlers(),o.config.timePicker&&(o._timepicker=new c.Timepicker(null,{timeFormat:o.config.timeFormat,controls:!0}),e=o._getSelected()||new Date,o._timepicker.setValue(e),o._time=o._timepicker.getValue(),o._timepicker.events.on(c.TimepickerEvents.afterClose,function(){o._timepicker.setValue(o._time),o.showDate(null,"calendar")}),o._timepicker.events.on(c.TimepickerEvents.afterApply,function(){var t=o._timepicker.getValue(!0),e=t.hour,i=t.minute,n=t.AM,t=o._getSelected(),n=w.DateHelper.withHoursAndMinutes(o._getSelected()||new Date,e,i,n);o.events.fire(u.CalendarEvents.beforeChange,[n,t,!0])&&(o._selected[o._selected.length-1]=n,o.events.fire(u.CalendarEvents.change,[n,t,!0])),o._time=o._timepicker.getValue(),o.showDate(null,"calendar")}));return o.mount(t,b.create({render:function(){return o._draw()}})),o}e.Calendar=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(95)),n(e(47))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(5),c=i(8),d=i(26),u=i(99),h=i(102),f=i(103),p=i(47),g=i(2);function _(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}var v,o=(v=c.View,o(m,v),m.prototype.getValue=function(t){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;if(e){e={hour:i,minute:n};return 12===this.config.timeFormat&&(e.AM=t),e}return(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"number"==typeof t&&(t=new Date(t)),t instanceof Date?(n=t.getMinutes(),o=t.getHours()):Array.isArray(t)?(o=_(t[0],23),n=_(t[1],59),t[2]&&"pm"===t[2].toLowerCase()&&(e=!0)):"string"==typeof t?(o=_(+(i=t.match(/\d+/g))[0],23),n=_(+i[1],59),t.toLowerCase().includes("pm")&&(e=!0)):"object"==typeof t&&t.hasOwnProperty("hour")&&t.hasOwnProperty("minute")&&(o=t.hour,n=t.minute,e=!t.AM),e&&o<12&&(o+=12),12===this.config.timeFormat&&!f.isTimeCheck(t)&&12<=o&&(e=!0),this._time={hour:o,minute:n,AM:!e}},m.prototype._initUI=function(t){var e=this,i={gravity:!1,css:"dhx_widget dhx_timepicker "+(this.config.css||"")+(this.config.controls?" dhx_timepicker--with-controls":""),rows:[{id:"timepicker",css:"dhx_timepicker__inputs"},{id:"hour-slider",css:"dhx_timepicker__hour"},{id:"minute-slider",css:"dhx_timepicker__minute"}]};this.config.controls&&(i.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),i.rows.push({id:"save-action",css:"dhx_timepicker__save"}));var n=this.layout=new d.Layout(t,i),o=a.create({render:function(){return e._draw()}}),t=this._inputsView=c.toViewLike(o),i=this._minutesSlider=new u.Slider(null,{min:0,max:59,step:1,tooltip:!1,labelPosition:"top",label:h.default.minutes,value:this.config.value?this._time.minute:0}),o=this._hoursSlider=new u.Slider(null,{min:0,max:23,step:1,tooltip:!1,labelPosition:"top",label:h.default.hours,value:!this.config.value||12===this._time.hour&&this._time.AM?0:this._time.hour});n.getCell("timepicker").attach(t),n.getCell("hour-slider").attach(o),n.getCell("minute-slider").attach(i),this.config.controls&&(n.getCell("save-action").attach(function(){return a.el("button.dhx_timepicker__button-save.dhx_button.dhx_button--view_flat.dhx_button--color_primary.dhx_button--size_small.dhx_button--circle.dhx_button--width_full",{onclick:e._outerHandlers.save,type:"button"},h.default.save)}),n.getCell("close-action").attach(function(){return a.el("button.dhx_timepicker__button-close.dhx_button.dhx_button--view_link.dhx_button--size_medium.dhx_button--view_link.dhx_button--color_secondary.dhx_button--icon.dhx_button--circle",{_ref:"close",onclick:e._outerHandlers.close,type:"button","aria-label":"close timepicker"},[a.el("span.dhx_button__icon.dxi.dxi-close")])}))},m.prototype._initHandlers=function(){function e(t){var e=_(parseInt(t.value,10),59);t.value=e.toString(),n._minutesSlider.setValue(e)}function i(t){var e=_(parseInt(t.value,10),23);t.value=e.toString(),n._hoursSlider.setValue(e)}var n=this;this._handlers={onchange:{".dhx_timepicker-input--hour":function(t){return i(t.target)},".dhx_timepicker-input--minutes":function(t){return e(t.target)}},oninput:{".dhx_timepicker-input--hour":function(t){(g.isSafari()||g.isFirefox())&&i(t.target)},".dhx_timepicker-input--minutes":function(t){(g.isSafari()||g.isFirefox())&&e(t.target)}}},this._outerHandlers={close:function(){n.events.fire(p.TimepickerEvents.beforeClose,[n.getValue(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){if(!(t<i._hoursSlider.config.min||t>i._hoursSlider.config.max)){var e=r({},i._time);12===i.config.timeFormat?(e.AM=t<12,e.hour=t%12||12):e.hour=t;t=i._isTimeObj();return 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){if(!(t<i._minutesSlider.config.min||t>i._minutesSlider.config.max)){var e=r(r({},i._time),{minute:t}),t=i._isTimeObj();return i.events.fire(p.TimepickerEvents.beforeChange,[i._getValue(e,t)])}}),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 a.el(".dhx_timepicker-inputs",r({},this._handlers),[a.el("input.dhx_timepicker-input.dhx_timepicker-input--hour",{_key:"hour",_ref:"hour",value:1<this.getValue(!0).hour.toString().length?this.getValue(!0).hour:"0"+this.getValue(!0).hour,"aria-label":"hours"}),a.el("span.dhx_timepicker-delimer",":"),a.el("input.dhx_timepicker-input.dhx_timepicker-input--minutes",{_key:"minute",value:1<this.getValue(!0).minute.toString().length?this.getValue(!0).minute:"0"+this.getValue(!0).minute,"aria-label":"minutes"}),12===this.config.timeFormat?a.el(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},m.prototype._isTimeObj=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},m);function m(t,e){void 0===e&&(e={});e=v.call(this,t,s.extend({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},e))||this;return e.events=new l.EventSystem(e),e._time={hour:0,minute:0,AM:!0},12===e.config.timeFormat&&(e._time.hour=12),e.config.controls=e.config.controls||e.config.actions,e.config.value&&e._setValue(e.config.value),e._initUI(t),e._initHandlers(),e._initEvents(),e}e.Timepicker=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBlockRange=function(t,e,i){return void 0===i&&(i=!0),i?{min:t.left+window.pageXOffset,max:e.right+window.pageXOffset}:{min:t.top+window.pageYOffset,max:e.bottom+window.pageYOffset}},e.getMarginSize=function(t){return t&&("space"===t.type||"wide"===t.type)?12:0}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(27),a=i(98),o=(r=s.Layout,o(l,r),l.prototype._createCell=function(t){var e=t.rows||t.cols||t.views?(t.parent=this._root,new l(this,t)):new a.ProCell(this,t);return this._root._all[e.id]=e,t.init&&t.init(e,t),e},l);function l(t,e){return r.call(this,t,e)||this}e.ProLayout=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,u=i(1),h=i(0),s=i(29),i=i(44),o=(r=i.Cell,o(a,r),a.prototype._getFirstRootView=function(t){return void 0===t&&(t=this),t.getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},a.prototype.toVDOM=function(t){if(null===this.config&&(this.config={}),!this.config.hidden){var e,i=this._calculateStyle(),n=u.isDefined(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:this.config.padding+"px"}:"",o=this.config.full||this.config.html?i:d(d({},i),n);this.config.html||(e=this._ui?((c=this._ui.getRootView()).render&&(c=h.inject(c)),c?[this.scrollView.render(c)]:c||null):t?this.scrollView.render([t]):t||null);var r=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?h.el(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),d(d({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[h.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="",i=this.config.cols||this.config.rows;if(this.config.type&&i)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 c=h.el(".dhx_layout-cell-content",{_key:this._uid+"_html",style:n},[h.el(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),c=h.el("div",d(d(((t={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,t["data-cell-id"]=null!==(i=this.config.id)&&void 0!==i?i:null,t),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:o}),[this.config.full?[h.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&&h.el("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&h.el(".dhx_layout-cell-header__image-wrapper",[h.el("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&h.el("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?h.el("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):h.el("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:h.el("div",{style:d(d({},n),{height:"calc(100% - "+(this.config.headerHeight||37)+"px)"}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?l:"")},this.config.html?[h.el("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:e)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?e:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable?this.scrollView.render([c],this._uid):c],this._checkProgress()&&this._getProgressBar()]);return r?[c,r]:c}},a);function a(t,e){var i=r.call(this,t,e)||this;return i.scrollView=new s.ScrollView(function(){return i._getFirstRootView()}),i}e.ProCell=o},function(t,i,e){"use strict";function n(t){for(var e in t)i.hasOwnProperty(e)||(i[e]=t[e])}Object.defineProperty(i,"__esModule",{value:!0}),n(e(100)),n(e(46))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(1),c=i(0),s=i(5),a=i(25),d=i(8),u=i(30),h=i(46),f=i(2);function p(t,e,i){return t<e?e:i<t?i:t}var g,o=(g=d.View,o(_,g),_.prototype.disable=function(){this._disabled=!0,this.paint()},_.prototype.enable=function(){this._disabled=!1,this.paint()},_.prototype.isDisabled=function(){return this._disabled},_.prototype.focus=function(t){this.getRootView().refs[t?"extraRunner":"runner"].el.focus()},_.prototype.blur=function(){this.getRootView().refs[this._isExtraActive?"extraRunner":"runner"].el.blur()},_.prototype.getValue=function(){var t,e;return this.config.range?(t=this._getValue(this._currentPosition))<(e=this._getValue(this._extraCurrentPosition))?[t,e]:[e,t]:[this._getValue(this._currentPosition)]},_.prototype.setValue=function(t){var e=this._getValue(this._currentPosition);if(Array.isArray(t)&&1<t.length){var i=this._getValue(this._extraCurrentPosition);this.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){void 0===e&&(e=!1),this.config.inverse&&(t=-t);var i=this.config,n=i.max,o=i.min,r=e?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),i=r+t;(n<i||i<o)&&(i=r),this.events.fire(h.SliderEvents.beforeChange,[i,r,e])&&(this._setValue(r+t,e),this.events.fire(h.SliderEvents.change,[i,r,e]),this.paint())},_.prototype._initStartPosition=function(){var t,e,i=this.config,n=i.max,o=i.min,r=i.range,i=(t=this.config.value,e=this.config.min,i=this.config.max,(t=void 0===t?[]:Array.isArray(t)?t:"string"==typeof t?t.split(",").map(function(t){return parseInt(t,10)}):[t])[0]=void 0===t[0]?e:p(t[0],e,i),t[1]=void 0===t[1]?i:p(t[1],e,i),t),t=i[0],i=i[1];this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(n-i)/(n-o)*100),this._currentPosition=(t-o)/(n-o)*100,r&&(this._extraCurrentPosition=(i-o)/(n-o)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,r&&(this._extraCurrentPosition=100-this._extraCurrentPosition))},_.prototype._getValue=function(t){this._isInverse()&&(t=100-t);var e=this.config,i=e.min,n=e.max,e=e.step;if(100===t)return n;if(0===t)return i;t=t*(n-i)/100,n=t%e,e=e/2<=n?e:0;return+(Number(i)+Number(t)-n+e).toFixed(5)},_.prototype._setValue=function(t,e){void 0===e&&(e=!1);var i=this.config,n=i.max,i=i.min;if(n<t||t<i)return!1;i=(t-i)/(n-i)*100,i=this._isInverse()?100-i:i;e?this._extraCurrentPosition=i:this._currentPosition=i},_.prototype._initHandlers=function(){function e(t){if(t.cancelable&&t.preventDefault(),t=((t.targetTouches?t.targetTouches[0]:t)[n._axis]-n._getBegining())/n._length*100,n._findNewDirection){if(Math.abs(n._currentPosition-t)<1)return;t>n._currentPosition?n._possibleRange=[n._currentPosition,100]:n._possibleRange=[0,n._currentPosition],n._findNewDirection=null}n._inSide(t)&&n._updatePosition(t,n._isExtraActive),n.paint()}function i(t){var e,i;n._disabled||3===t.which||(n.events.fire(h.SliderEvents.mousedown,[t]),n._isMouseMoving=!0,e=t.target.classList.contains("dhx_slider__thumb--extra")?(n._isExtraActive=!0,n._extraCurrentPosition):(n._isExtraActive=!1,n._currentPosition),n._findNewDirection=null,n.config.range?(t=(i=n._currentPosition>n._extraCurrentPosition?[n._currentPosition,n._extraCurrentPosition]:[n._extraCurrentPosition,n._currentPosition])[0],i=i[1],n._currentPosition===n._extraCurrentPosition?(n._findNewDirection=e,n._possibleRange=[0,100]):n._possibleRange=e<t?[0,t]:[i,100]):n._possibleRange=[0,100])}var n=this,o=function(t){n.events.fire(h.SliderEvents.mouseup,[t]),setTimeout(function(){n._isMouseMoving=!1,n.paint()},4),t.targetTouches?(document.removeEventListener("touchend",o),document.removeEventListener("touchmove",e)):(document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",e))};this.config.helpMessage&&(this._helper=new u.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(t){t.preventDefault(),t.stopPropagation(),n._helper.show(t.target,{theme:t.target})},onmousedown:function(t){i(t),document.addEventListener("mousemove",e),document.addEventListener("mouseup",o)},ontouchstart:function(t){n._setTooltip(t),n._mouseIn=!1,i(t),document.addEventListener("touchmove",e,{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||(e=(t[n._axis]-n._getBegining())/n._length*100,t=n.getRootView().refs,!n.config.range||Math.abs(n._currentPosition-e)<Math.abs(n._extraCurrentPosition-e)?(n._updatePosition(e,!1),t.runner.el.focus()):(n._updatePosition(e,!0),t.extraRunner.el.focus()),n.paint())},onmouseover:function(t){n._setTooltip(t),n._mouseIn=!0,n.paint()},onmouseout:function(t){n._setTooltip(t),n._mouseIn=!1,n.paint()},onfocus:function(t){n._setTooltip(t),n._focusIn=!0,n.events.fire(h.SliderEvents.focus,[]),n.paint()},onblur:function(t){n._setTooltip(t),n._focusIn=!1,n.events.fire(h.SliderEvents.blur,[]),n.paint()},onkeydown:function(t){n.events.fire(h.SliderEvents.keydown,[t])}}},_.prototype._getBegining=function(){return"horizontal"===this.config.mode?this._offsets.left-window.pageXOffset:this._offsets.top-window.pageYOffset},_.prototype._inSide=function(t){var e=this._possibleRange;return t<e[0]?(this._updatePosition(e[0],this._isExtraActive),!1):!(t>e[1])||(this._updatePosition(e[1],this._isExtraActive),!1)},_.prototype._updatePosition=function(t,e){void 0===e&&(e=!1),100<t&&(t=100),t<0&&(t=0);var i=this.config,n=i.max,o=i.min,i=e?this._extraCurrentPosition:this._currentPosition,i=this._getValue(i),t=this._getValue(t);i!==t&&this.events.fire(h.SliderEvents.beforeChange,[t,i,e])&&(o=(t-o)/(n-o)*100,o=this._isInverse()?100-o:o,e?this._extraCurrentPosition=o:this._currentPosition=o,this.events.fire(h.SliderEvents.change,[t,i,e]))},_.prototype._getRunnerStyle=function(t){void 0===t&&(t=!1);var e="horizontal"===this.config.mode?"left":"top",i=t?this._extraCurrentPosition:this._currentPosition;return(t={})[e]=i+"%",t},_.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},_.prototype._getRunnerCss=function(t){return void 0===t&&(t=!1),"dhx_slider__thumb"+(t?" dhx_slider__thumb--extra":"")+(this._isMouseMoving&&(t&&this._isExtraActive||!t&&!this._isExtraActive)?" dhx_slider__thumb--active":"")+(this._disabled?" dhx_slider__thumb--disabled":"")+(this._isNullable(t?this._extraCurrentPosition:this._currentPosition)&&!this.config.range?" dhx_slider__thumb--nullable":"")},_.prototype._draw=function(){var t=this.config,e=t.labelPosition,i=t.mode,n=t.hiddenLabel,o=t.tick,r=t.majorTick,s=t.css,a=t.helpMessage,t=f.getLabelStyle(l(l({},this.config),{required:!1}));return!this._tooltip||this._mouseIn&&this._focusIn&&this._isMouseMoving||document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),c.el("div",{class:"dhx_slider dhx_slider--mode_"+i+("left"===e?" dhx_slider--label-inline":"")+(n?" dhx_slider--label_sr":"")+(o?" dhx_slider--ticks":"")+(r?" dhx_slider--major-ticks":"")+(s?" "+s:"")+(this._disabled?" dhx_slider--disabled":"")},[t?c.el("label.dhx_label.dhx_slider__label",{style:t.style,class:a?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},a?[t.label&&c.el("span.dhx_label__holder",t.label),c.el("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:t.label):null,this._drawSlider()])},_.prototype._drawSlider=function(){return c.el(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[c.el(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),c.el("div",{_ref:"runner",class:this._getRunnerCss(),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(),tabindex:0}),this.config.tooltip&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip():null,this.config.tooltip&&this.config.range&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip(!0):null,this.config.range?c.el("div",{_ref:"extraRunner",class:this._getRunnerCss(!0),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(!0),tabindex:0}):null]),this.config.tick?this._drawTicks():null])},_.prototype._getDetector=function(){var t;if(this._disabled)return c.el(".dhx_slider__range");var e="horizontal"===this.config.mode?"left":"top",i="horizontal"===this.config.mode?"width":"height";if(this.config.range){var n=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition],o=n[0],r=n[1];return c.el(".dhx_slider__range",{style:((n={})[e]=r+"%",n[i]=o-r+"%",n)})}return this._isInverse()?c.el(".dhx_slider__range",{style:((t={})[e]=this._currentPosition+"%",t[i]=100-this._currentPosition+"%",t)}):c.el(".dhx_slider__range",{style:((t={})[e]=0,t[i]=this._currentPosition+"%",t)})},_.prototype._drawTooltip=function(t){var e,i,n;void 0===t&&(t=!1),"none"!==this._activeTooltip&&this.getRootView()&&(e="extraTooltip"===this._activeTooltip?this._extraCurrentPosition:this._currentPosition,i="horizontal"===this.config.mode?"left":"top",n="",(t&&this._isExtraActive||!t&&!this._isExtraActive)&&(n+=" dhx_slider__thumb-label--active"),this._tooltip||(this._tooltip=document.createElement("div")),t=("tooltip"===this._activeTooltip?this.getRootView().refs.runner:this.getRootView().refs.extraRunner).el.getBoundingClientRect(),this._tooltip.className="dhx_slider__thumb-label"+n,this._tooltip.style.left=t.x+("left"==i?6:-30)+window.pageXOffset+"px",this._tooltip.style.top=t.y+("left"==i?-30:6)+window.pageYOffset+"px",this._tooltip.innerText=this._getValue(e).toString(),document.body.appendChild(this._tooltip))},_.prototype._getTicks=function(){for(var t=this.config,e=t.max,i=t.min,n=t.step,o=t.tick,r=t.majorTick,s=e-i,a=n*o/s,l=[],c=0,d=0;c<1;){var u=+(Number(i)+c*s).toFixed(5),h=d%r==0;l.push({position:(this._isInverse()?100*(1-c):100*c)+"%",isMultiple:h,label:h&&"function"==typeof this.config.tickTemplate?this.config.tickTemplate(u):null}),c+=a,d++}return l.push({position:(this._isInverse()?0:100)+"%",isMultiple:!0,label:"function"==typeof this.config.tickTemplate?this.config.tickTemplate(e):null}),l},_.prototype._drawTicks=function(){var i="horizontal"===this.config.mode?"left":"top";return c.el(".dhx_slider__ticks-holder",this._getTicks().map(function(t){var e;return c.el("div",{class:"dhx_slider__tick"+(t.isMultiple?" dhx_slider__tick--major":""),style:((e={})[i]=t.position,e)},void 0!==t.label?[c.el(".dhx_slider__tick-label",t.label)]:null)}))},_.prototype._isNullable=function(t){return this._isInverse()?100===t:0===t},_.prototype._setTooltip=function(t){t.target.classList.contains("dhx_slider__thumb--extra")?this._activeTooltip="extraTooltip":t.target.classList.contains("dhx_slider__thumb")?this._activeTooltip="tooltip":this._activeTooltip="none"},_);function _(t,e){var i=g.call(this,t,r.extend({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},e))||this;i._disabled=!1,i.config.helpMessage=i.config.helpMessage||i.config.help,void 0!==i.config.thumbLabel&&(i.config.tooltip=i.config.thumbLabel),i.config.labelInline&&(i.config.labelPosition="left"),i.events=new s.EventSystem(i),i._axis="horizontal"===i.config.mode?"clientX":"clientY",i._initStartPosition(),i._keyManager=new a.KeyManager(function(){var t;return document.activeElement===(null===(t=null===(t=i.getRootView().refs)||void 0===t?void 0:t[i._isExtraActive?"extraRunner":"runner"])||void 0===t?void 0:t.el)}),i._initHotkeys();e=c.create({render:function(){return i._draw()},hooks:{didMount:function(){return i._calcSliderPosition()},didRedraw:function(){return i._calcSliderPosition()}}});return i._initHandlers(),i.mount(t,e),i}e.Slider=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(1),l=i(0),c=i(5),d=i(2),u=i(8),h=i(45),o=(r=u.View,o(f,r),f.prototype.show=function(t,e,i){var n=this;void 0===e&&(e={}),this.events.fire(h.PopupEvents.beforeShow,[t])&&(t=d.toNode(t),this._isActive?this._setPopupSize(t,e):(i&&this.attach(i),e.theme&&this._setTheme(e.theme),this._popup.style.left="0",this._popup.style.top="0",l.awaitRedraw().then(function(){n._setPopupSize(t,e),n._popup.style.position="fixed",document.body.appendChild(n._popup),n._isActive=!0}).then(function(){n._popup.style.position="absolute",n.events.fire(h.PopupEvents.afterShow,[t]),n._outerClickDestructor=n._detectOuterClick(t)})))},f.prototype.hide=function(){this._hide(!1,null)},f.prototype.isVisible=function(){return this._isActive},f.prototype.attach=function(t,e){return this._html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof u.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},f.prototype.attachHTML=function(t){this._html=t,this.paint()},f.prototype.getWidget=function(){return this._ui},f.prototype.getContainer=function(){return this.getRootView().refs.content.el},f.prototype.toVDOM=function(){var t;return this._html?t=l.el(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=l.inject(t)),l.el("div",{class:"dhx_popup-content",tabindex:0,onclick:this._clickEvent,_key:this._uid,_ref:"content"},[t])},f.prototype.destructor=function(){this.hide(),this._outerClickDestructor&&this._outerClickDestructor(),this._popup=null},f.prototype._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?void 0:t.getAttribute("data-dhx-theme"))&&this._popup.setAttribute("data-dhx-theme",t)},f.prototype._setPopupSize=function(t,e,i){var n=this;void 0===i&&(i=3);var o=this._popup.getBoundingClientRect(),r=o.width,o=o.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!i||0!==r&&0!==o){r=d.fitPosition(t,s(s({centering:!0,mode:"bottom"},e),{width:r,height:o})),o=r.left,r=r.top;if(this._popup.style.left=o,this._popup.style.top=r,e.indent&&0!==e.indent)switch(e.mode){case"top":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"bottom":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;case"left":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"right":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;default:this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px"}}else this._timeout=setTimeout(function(){n._isActive&&(n._setPopupSize(t,e,i-1),n._timeout=null)})},f.prototype._detectOuterClick=function(n){var o=this,r=!1,s=new WeakMap,a=function(t){var e=t.target,i=document.querySelectorAll(".dhx_popup");for(r?i.forEach(function(t){return s.has(t)||s.set(t,o._popup)}):(r=Boolean(i.length))&&i.forEach(function(t){return s.set(t,!0)});e;){if(e===n||e===o._popup||s.get(e)===o._popup)return;e=e.parentNode}o._hide(!0,t)&&document.removeEventListener("mousedown",a)};return document.addEventListener("mousedown",a),function(){return document.removeEventListener("mousedown",a)}},f.prototype._hide=function(t,e){if(this._isActive)return!!this.events.fire(h.PopupEvents.beforeHide,[t,e])&&(document.body.removeChild(this._popup),this._isActive=!1,this._outerClickDestructor&&(this._outerClickDestructor(),this._outerClickDestructor=null),this.events.fire(h.PopupEvents.afterHide,[e]),!0)},f);function f(t){void 0===t&&(t={});var e=r.call(this,null,a.extend({},t))||this,i=e._popup=document.createElement("div");return i.className="dhx_widget dhx_popup"+(e.config.css?" "+e.config.css:""),i.style.position="absolute",i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-live","polite"),e.config.theme&&e._setTheme(e.config.theme),e.mount(i,l.create({render:function(){return e.toVDOM()}})),e._clickEvent=function(t){return e.events.fire(h.PopupEvents.click,[t])},e.events=t.events||new c.EventSystem(e),e._isActive=!1,e}e.Popup=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={hours:"Hours",minutes:"Minutes",save:"Save"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeCheck=function(t){return/(^12:[0-5][0-9]?AM$)/i.test(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linkButtonClasses=".dhx_button.dhx_button--view_link.dhx_button--icon.dhx_button--size_medium.dhx_button--color_secondary"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(0),r=i(4),i=(s.prototype.endEdit=function(){var t=this._checked;this._config.events.fire(r.GridEvents.beforeEditEnd,[t,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(r.GridEvents.afterEditEnd,[t,this._cell.row,this._cell.col])):this._input.checked=!t},s.prototype.toHTML=function(){void 0===this._checked&&(this._checked=this._cell.row[this._cell.col.id]);var t=n.uid();return o.el("div.dhx_checkbox.dhx_cell-editor__checkbox",[o.el("label",{style:{display:"none"},for:t},this._checked||"false"),o.el("input.dhx_checkbox__input",{type:"checkbox",_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",checked:this._checked,id:t,style:{userSelect:"none"}}),o.el("span.dhx_checkbox__visual-input")])},s.prototype._initHandlers=function(){var e=this;this._handlers={onClick:function(){var t=!e._input.checked;e._config.events.fire(r.GridEvents.beforeEditStart,[e._cell.row,e._cell.col,"checkbox"])?(e._checked=t,e._config.events.fire(r.GridEvents.afterEditStart,[e._cell.row,e._cell.col,"checkbox"]),e.endEdit()):e._input.checked=!t},didInsert:function(t){e._checkbox=t.el.parentNode.lastChild,e._input=t.el.parentNode.querySelector("input"),t.el.parentNode.addEventListener("click",e._handlers.onClick)}}},s);function s(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.CheckboxEditor=i},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),r=i(4),s=i(31),a=i(20),l=i(9),i=(c.prototype.endEdit=function(t){var e,i,n=this;t||(e=this._input.getValue(),e="multiselect"===this._cell.col.editorType?e.split(",").join(", "):e),this._config.events.fire(r.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(i=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=l.getEditorOptions(this._cell.col,this._cell.row).map(function(t){return"string"==typeof t?{id:""+t,value:t}:t})||[];return this._input||(this._input=new s.Combobox(null,n({itemHeight:37,css:"dhx_cell-editor__combobox",multiselection:"multiselect"===this._cell.col.editorType},this._cell.col.editorConfig)),this._input.data.parse(t),t=this._cell.row[this._cell.col.id],t="multiselect"===this._cell.col.editorType?((null==t?void 0:t.toString())||"").split(", "):t,this._input.setValue(t),this._input.events.on("keydown",this._handlers.onkeydown),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,o.awaitRedraw().then(function(){var t=e._input.getRootView().refs.holder.el;e._input.popup.getContainer().style.width=t.offsetWidth+"px",e._input.popup.show(t)}),a.focusManager.setFocusId(this._input._uid),o.inject(this._input.getRootView())},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()}}},c);function c(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}e.ComboboxEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEY_CODES={BACKSPACE:8,ENTER:13,ESC:27,DOWN_ARROW:40,UP_ARROW:38,LEFT_ARROW:37,RIGHT_ARROW:39}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(109);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(32),i=(r.prototype.endEdit=function(){var t;this._input&&(t=this._input.value,this._list.events.fire(o.ListEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._list.events.fire(o.ListEvents.afterEditEnd,[t,this._item.id])):this._input.focus())},r.prototype.toHTML=function(){this._mode=!0;var t=this._config.itemHeight;return n.el(".dhx_input__wrapper",{role:"presentation"},[n.el("div.dhx_input__container",{role:"presentation"},[n.el("input.dhx_input",{class:this._item.css?" "+this._item.css:"",style:{height:t,width:"100%",padding:"8px 12px"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},r.prototype._initHandlers=function(){var e=this;this._handlers={onBlur:function(){e.endEdit()},onChange:function(){e.endEdit()},onKeyDown:function(t){"Enter"===t.key&&e._item.value===e._input.value&&e.endEdit(),"Escape"===t.key&&(e._input.value=e._item.value,e.endEdit())},didInsert:function(t){t=t.el;(e._input=t).focus(),t.value=e._item.value,t.setSelectionRange(0,t.value.length),t.addEventListener("change",e._handlers.onChange),t.addEventListener("blur",e._handlers.onBlur),t.addEventListener("keydown",e._handlers.onKeyDown)}}},r);function r(t,e){var i=this;this._list=e,this._config=e.config,this._item=t,this._list.events.on(o.ListEvents.focusChange,function(t,e){i._mode&&e!==i._item.id&&i.endEdit()}),this._initHandlers()}e.InputEditor=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(0),c=i(29),i=i(51),o=(a=i.List,o(d,a),d.prototype.destructor=function(){a.prototype.destructor.call(this),this.scrollView=null},d.prototype.showItem=function(t){var e,i,n,o=this.getRootView();o&&o.node&&o.node.el&&void 0!==t&&((e=null!==(i=this.scrollView)&&void 0!==i&&i.config.enable?null===(n=this.getRootNode())||void 0===n?void 0:n.querySelector(".scroll-view"):this.getRootNode())&&(o=this.config.virtual,i=this.data.getIndex(t),n=Math.floor(i/e.children.length)||0,t=e.children[i-e.children.length*n],(o||t)&&(n=o?parseInt(this.config.itemHeight):t.clientHeight,(t=o?i*n:t.offsetTop)>=e.scrollTop+e.clientHeight-n?e.scrollTo(0,t-e.clientHeight+n):t<e.scrollTop&&e.scrollTo(0,t))))},d.prototype._renderList=function(){var i=this,t=this._getRange(),e=this.data.getRawData(t[0],t[1]).map(function(t,e){return i._renderItem(t,e)});this.config.virtual&&(e=s([l.el(".div",{style:{height:t[2]+"px"}})],e,[l.el(".div",{style:{height:t[3]+"px"}})]));var n=this.scrollView&&this.scrollView.config.enable,t=(this.config.css||"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(n?" dhx_list--scroll-view":"");return l.el("ul.dhx_widget.dhx_list",r(r({style:{"max-height":this.config.height,position:"relative"},class:t,"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),n?[].concat(this.scrollView.render(e)):e)},d);function d(t,e){var i=a.call(this,t,e)||this;return i.scrollView=new c.ScrollView(function(){return i.getRootView()}),i.paint(),i}e.ProList=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.startNewListen=function(t){this._isActive=!0,this._sequence="",this._currentAction=t},o.prototype.endListen=function(){this._currentAction=null,this.reset(),this._isActive=!1},o.prototype.reset=function(){this._sequence=""},o.prototype._change=function(){this._currentAction(this._sequence),this._addClearTimeout()},o.prototype._addClearTimeout=function(){var t=this;this._clearTimeout&&clearTimeout(this._clearTimeout),this._clearTimeout=setTimeout(function(){t.reset(),t._clearTimeout=null},2e3)},o);function o(){var e=this;this._sequence="",document.addEventListener("keydown",function(t){e._isActive&&("Backspace"===(t=t.key)&&0<e._sequence.length&&(e._sequence=e._sequence.slice(0,e._sequence.length-1),e._change()),t.length<2&&(e._sequence+=t,e._change()))})}e.KeyListener=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=i(49),a=i(50),l=i(26),c=i(54),o=(r=s.Combobox,o(d,r),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 r.call(this,t,e)||this}e.ProCombobox=o},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=i(4),o=i(1),a=i(9),i=(l.prototype.endEdit=function(t){var e;t||(e=this._editor.value),this._config.events.fire(s.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._editor.removeEventListener("blur",this._handlers.onBlur),this._editor.removeEventListener("change",this._handlers.onChange),this._editor.removeEventListener("input",this._handlers.onInput),"string"!==this._cell.col.type&&o.isNumeric(e)&&(e=parseFloat(e)),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(s.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._editor.focus()},l.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];this._editor&&(t=this._editor.value);var e=void 0!==(this._config.$editable.editor=this)._cell.row.height||this._cell.col.htmlEnable?"dhx_cell-editor dhx_cell-editor__textarea_constant-height":"dhx_cell-editor dhx_cell-editor__textarea";return n.el("textarea",{_hooks:{didInsert:this._handlers.didInsert},_ref:"textarea",_key:"cell_editor","data-dhx-id":"cell_editor",value:t,class:e,style:{width:this._width}})},l.prototype._initHandlers=function(){var o=this;this._handlers={onBlur:function(){o.endEdit()},onChange:function(){o.endEdit()},onInput:function(t){if(void 0===o._cell.row.height&&!o._cell.col.htmlEnable){var e=o._getCurrentHeight(o._editor.value,{width:o._cell.col.$width-2,maxHeight:o._config.rowHeight});o._cell.row[o._cell.col.id]=o._editor.value;var i=a.getCalculatedRowHeight(a.getMaxRowHeight(o._cell.row,o._config.columns)),n=a.getCalculatedRowHeight(a.getMaxRowHeight(((n={})[o._cell.col.id]=o._cell.row[o._cell.col.id],n),o._config.columns));if(o._minHeight=i===n?o._config.rowHeight:i,e>=o._minHeight&&e!==o._prevHeight){if(!o._config.events.fire(s.GridEvents.beforeRowResize,[o._cell.row,t,e]))return;o._config.events.fire(s.GridEvents.afterRowResize,[o._cell.row,t,e])}o._prevHeight=e}},didInsert:function(t){o._editor=t.el,o._editor.focus(),o._editor.setSelectionRange(0,o._editor.value.length),o._editor.addEventListener("change",o._handlers.onChange),o._editor.addEventListener("blur",o._handlers.onBlur),o._editor.addEventListener("input",o._handlers.onInput)}}},l.prototype._getCurrentHeight=function(t,e){e=r({width:100,maxHeight:40,lineHeight:20},e);var i=document.createElement("textarea");i.className="dhx_cell-editor dhx_cell-editor__textarea",i.value=t,i.style.width=e.width+"px",i.style.lineHeight=e.lineHeight+"px",i.style.maxHeight=e.maxHeight+"px",i.style.boxSizing="border-box",document.body.appendChild(i);var n=this._getElementHeight(i),o=i.value.split("\n").length,t=Math.round(n/e.lineHeight),n=n<e.maxHeight?e.maxHeight:n;return document.body.removeChild(i),1===o&&o===t?e.maxHeight:n},l.prototype._getElementHeight=function(t){return t.scrollHeight},l);function l(t,e,i){this._config=i,this._cell={row:t,col:e},this._width=this._cell.col.$width;e=0;this._config.firstColId===this._cell.col.id&&this._cell.row.hasOwnProperty("$level")&&(e=a.getTreeCellWidthOffset(this._cell.row)),this._width-=e-4,this._initHandlers()}e.TextAreaEditor=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(0),c=i(31),d=i(6),u=i(9),s=i(1),h=i(115),r=i(116),f=i(117);function n(t,n,e,i){if(t&&n&&e){var o=t.id,t=i?i(o,n.data):n.data.reduce(function(t,e){return void 0===e[o]||""===e[o]||isNaN(e[o])||t.push(parseFloat(e[o])),t},[]),i=t;return"tree"===n.type&&(i=n.data.reduce(function(t,e){var i;return 0===e.$level&&(void 0===e[o]||""===e[o]||isNaN(e[o])?(i=0,n.datacollection.eachChild(e.id,function(t){n.datacollection.haveItems(t.id)||(i+=parseFloat(t[o]))}),t.push(i)):t.push(parseFloat(e[o])||0)),t},[])),e(t,i)}}e.getContent=function(){function a(e){var t=e.$uniqueData,i=u.getEditorOptions(e);return"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})),"string"!==e.type?Array.from(new Set(t.map(function(t){return u.toFormat(t,e.type,e.format)}))):t}var i=this;return{inputFilter:{element:{},toHtml:function(t,e){var i=this,n=s.uid(),o=t.id.toString(),n=new f.InputFilter(t,e,n,this.value[o]);return n.events.on("change",function(t){i.value[o]=t}),(this.element[o]=n).getFilter()},match:function(t){var e=t.val,i=t.match,t=t.col;if(!s.isDefined(e))return!1;for(var t=u.toFormat(e,t.type,t.format),n="",o=0;o<i.length;o++){var r=i.charCodeAt(o);n+=32<r&&r<48||63===r||90<r&&r<95||124===r?"\\"+i[o]:i[o]}return new RegExp(""+n,"i").test(t)},value:{}},selectFilter:{element:{},toHtml:function(t,e){var i=this,n=t.id.toString(),o=a(t),o=new r.SelectFilter(t,e,o,this.value[n]);return o.events.on("change",function(t){i.value[n]=t}),(this.element[n]=o).getFilter()},match:function(t){var e=t.val,i=t.match,t=t.col,t=u.toFormat(e,t.type,t.format);return!i||(t||"boolean"==typeof t)&&t.toString()==i},value:{}},comboFilter:{element:{},toHtml:function(i,t){var e,n,o,r=this,s=i.id.toString();return!this.element[s]&&t.events?(e=a(i),n=i.header.filter(function(t){return void 0!==t.filterConfig})[0],(o=new h.ComboFilter(i,t,e,this.value[s],n)).events.on("change",function(t){r.value[s]=t}),this.element[s]=o,t.events.on(d.DataEvents.change,function(t,e){"add"!==e&&"update"!==e&&"remove"!==e||(e=a(i),o.getFilter().data.parse(e.map(function(t){return{value:t}})),o.getFilter().events.fire(c.ComboboxEvents.change,[o.getFilter().list.selection.getItem()]))}),t.events.on(d.DataEvents.removeAll,function(){o.getFilter().data.parse(i.$uniqueData.map(function(t){return{value:t}})),o.getFilter().events.fire(c.ComboboxEvents.change,[o.getFilter().list.selection.getItem()])})):o=this.element[i.id]||new h.ComboFilter(i),l.inject(o.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,t=t.col,r=u.toFormat(e,t.type,t.format);if(Array.isArray(n)){for(var s=void 0,a=0;a<n.length;a++)if("break"===function(e){if(s=o&&"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(){if(i.content&&i.content.comboFilter.element){var t,e=i.content.comboFilter.element;for(t in e)e[t].destructor(),delete e[t]}},value:{}},sum:{calculate:function(t,e){return e.reduce(function(t,e){return t+(parseFloat(e)||0)},0)},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},avg:{calculate:function(t,e){return t.length?e.reduce(function(t,e){return t+e},0)/t.length:null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},min:{calculate:function(t){return t.length?Math.min.apply(Math,t):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},max:{calculate:function(t){return t.length?Math.max.apply(Math,t):null},toHtml:function(t,e){e=n(t,e,this.calculate);return t.format||"percent"===t.type?u.toFormat(e,t.type,t.format):e?e.toFixed(3):null}},count:{calculate:function(t,e){return e.length},validate:function(i,t){return t.reduce(function(t,e){return void 0!==e[i]&&""!==e[i]&&(isNaN(e)?t.push(1):t.push(e)),t},[])},toHtml:function(t,e){return n(t,e,this.calculate,this.validate)}}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(31),r=i(5),o=i(6),s=i(4),i=(a.prototype.initFilter=function(){this._filter=new n.Combobox(null,Object.assign({},this.filterConfig)),this.data&&this._filter.data&&this._filter.data.parse(this.data.map(function(t){return{value:t}}))},a.prototype.initHandlers=function(){var t,i=this,n=this.column.id.toString();this.config.events.on(o.DataEvents.load,function(){i._filter.data.parse(i.column.$uniqueData.map(function(t){return{value:t}}))}),this._filter.events.on("change",function(t){var e;t&&(e=void 0,(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):i.value=void 0,null!==(e=i.config.events)&&void 0!==e&&e.fire(s.GridEvents.filterChange,[i.value,n,"comboFilter"]))}),this.config.events.on(s.GridEvents.filterChange,function(t){i.events.fire(s.HeaderFilterEvent.change,[t])}),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)&&void 0!==t&&t.on(s.GridEvents.scroll,function(){var t;i._isFocused&&null!==(t=i._filter.getRootView().refs)&&void 0!==t&&t.input&&i._filter.focus()}),null!==(t=this.config.events)&&void 0!==t&&t.on(s.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(s.GridEvents.cellMouseDown,function(){return i.blur()})},a.prototype.getFilter=function(){return this._filter},a.prototype.setValue=function(e){var t,i=this;!this.filterConfig.multiselection&&Array.isArray(e)||(this._filter.clear(),null!=e&&e.length||""===e?(t=this.filterConfig.multiselection&&Array.isArray(e)?e.map(function(e){var t;return null===(t=i._filter.data.find(function(t){return t.value===e}))||void 0===t?void 0:t.id}):null===(t=this._filter.data.find(function(t){return t.value===e}))||void 0===t?void 0:t.id,this._filter.setValue(t)):this.filterConfig.multiselection||void 0===this.value||(this.value=void 0,null!==(t=this.config.events)&&void 0!==t&&t.fire(s.GridEvents.filterChange,[this.value,this.column.id,"comboFilter"])))},a.prototype.clear=function(){this.setValue()},a.prototype.focus=function(){var t;this._isFocused=!0,null!==(t=this._filter.getRootView().refs)&&void 0!==t&&t.input&&this._filter.focus()},a.prototype.blur=function(){var t;this._isFocused=!1,null!==(t=this._filter.getRootView().refs)&&void 0!==t&&t.input&&this._filter.blur()},a);function a(t,e,i,n,o){this.events=new r.EventSystem,this.column=t,this.config=e,this.data=i,this.value=n,this.filterConfig=(null==o?void 0:o.filterConfig)||{},(this.column.htmlEnable||null!==(o=this.config)&&void 0!==o&&o.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()}e.ComboFilter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(5),r=i(4),i=(s.prototype.initHandlers=function(){var n=this;this._handlers={onchange:function(t){var e,i=(null===(e=t.target)||void 0===e?void 0:e.value)||(null===(e=null===(e=t.composedPath())||void 0===e?void 0:e[0])||void 0===e?void 0:e.value)||(null===(i=t.explicitOriginalTarget)||void 0===i?void 0:i.value);n.setValue(i)},onfocus:function(){n._isFocused=!0},onblur:function(){n._isFocused=!1}}},s.prototype.initFilter=function(){var t,i=this;this._filter=n.el("label.dhx_grid-filter__label.dxi.dxi-menu-down",{_ref:this.column.id+"_filter"},[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},[n.el("option",{value:""},""),this.data.map(function(t){return""!==(t=null!=t?t:"")&&n.el("option",{value:t,selected:i.value===t.toString()},t)})])]),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.scroll,function(){var t,e=null===(t=null===(t=null===(t=null===(t=i.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[i.column.id+"_filter"])||void 0===t?void 0:t.el;i._isFocused&&e&&n.awaitRedraw().then(function(){e.focus()})}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.cellMouseDown,function(){return i.blur()})},s.prototype.getFilter=function(){return this._filter},s.prototype.setValue=function(t){this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[t]),null!==(t=this.config.events)&&void 0!==t&&t.fire(r.GridEvents.filterChange,[this.value,this.column.id,"selectFilter"])},s.prototype.clear=function(){this.setValue("")},s.prototype.focus=function(){this._isFocused=!0;var t=null===(t=null===(t=null===(t=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[this.column.id+"_filter"])||void 0===t?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?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[this.column.id+"_filter"])||void 0===t?void 0:t.el;t&&t.blur()},s);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.initFilter()}e.SelectFilter=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=i(5),r=i(4),i=(s.prototype.initHandlers=function(){var n=this;this._handlers={onchange:function(i){n._inputDelay&&clearTimeout(n._inputDelay),n._inputDelay=setTimeout(function(){var t,e=(null===(t=i.target)||void 0===t?void 0:t.value)||(null===(t=null===(t=i.composedPath())||void 0===t?void 0:t[0])||void 0===t?void 0:t.value)||(null===(e=i.explicitOriginalTarget)||void 0===e?void 0:e.value);n.setValue(e)},500)},onfocus:function(){n._isFocused=!0},onblur:function(){n._isFocused=!1}}},s.prototype.initFilter=function(){var t,i=this;this._filter=n.el("div.dhx_grid-filter__label.dxi.dxi-magnify",{"aria-label":"Type to search",_ref:this.column.id+"_filter"},[n.el("label",{style:{display:"none"},"aria-label":"Type to search",for:this.id},"Type to search"),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})]),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.scroll,function(){var t,e=null===(t=null===(t=null===(t=null===(t=i.config.events)||void 0===t?void 0:t.context)||void 0===t?void 0:t.getRootView())||void 0===t?void 0:t.refs[i.column.id+"_filter"])||void 0===t?void 0:t.el;i._isFocused&&e&&n.awaitRedraw().then(function(){var t;null!==(t=e.querySelector("input"))&&void 0!==t&&t.focus()})}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.headerCellMouseDown,function(t){t.id!==i.column.id&&i.blur()}),null!==(t=this.config.events)&&void 0!==t&&t.on(r.GridEvents.cellMouseDown,function(){return i.blur()})},s.prototype.getFilter=function(){return this._filter},s.prototype.setValue=function(t){this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[this.value]),null!==(t=this.config.events)&&void 0!==t&&t.fire(r.GridEvents.filterChange,[this.value,this.column.id,"inputFilter"])},s.prototype.clear=function(){this.setValue("")},s.prototype.focus=function(){var t;this._isFocused=!0;var e=null===(e=null===(e=null===(e=null===(e=this.config.events)||void 0===e?void 0:e.context)||void 0===e?void 0:e.getRootView())||void 0===e?void 0:e.refs[this.column.id+"_filter"])||void 0===e?void 0:e.el;e&&null!==(t=e.querySelector("input"))&&void 0!==t&&t.focus()},s.prototype.blur=function(){var t;this._isFocused=!1;var e=null===(e=null===(e=null===(e=null===(e=this.config.events)||void 0===e?void 0:e.context)||void 0===e?void 0:e.getRootView())||void 0===e?void 0:e.refs[this.column.id+"_filter"])||void 0===e?void 0:e.el;e&&null!==(t=e.querySelector("input"))&&void 0!==t&&t.blur()},s);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.initFilter()}e.InputFilter=i},function(t,e,i){"use strict";var _=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var v=i(1),m=i(4),y=i(10);e.startResize=function(a,l,t,e){var i,c=a.config.rightSplit;t.targetTouches&&t.preventDefault();var d=(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===(i=a.scrollView)||void 0===i||!i.config.enable),p=c?y.calcScrollBarWidth(a.config,f).xState:null,g=0;function n(t){var e,i,n=v.findIndex(u,function(t){return t.id===l}),o=(t.targetTouches?t.targetTouches[0]:t).clientX,r=o-a.getRootNode().getBoundingClientRect().left,s=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,e=u[n].minWidth||40,r=u[n].maxWidth,s=o-d,o=_(u),s=g+(p&&h.includes(l)?-s:s),r&&r<=s||s<=e?(s<=e&&(i=e),r<=s&&(i=r)):i=s,o[n].$width=i,o[n].$fixed=!0,a.events.fire(m.GridEvents.resize,[u[n],t]),a.paint())}a.config.$resizing=l;var o=function(){t.targetTouches?(document.removeEventListener("touchmove",n),document.removeEventListener("touchend",o)):(document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)),e()};t.targetTouches?(document.addEventListener("touchmove",n),document.addEventListener("touchend",o)):(document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)),a.paint()}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(2),l=i(33),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){"string"==typeof t&&(t={text:t}),t.position=t.position||l.MessageContainerPosition.topRight;var e=document.createElement("div");e.className="dhx_widget dhx_message "+(t.css||""),e.setAttribute("role","alert"),(o=t.text&&s.uid())&&e.setAttribute("aria-describedby",o),t.html?e.innerHTML=t.html:(e.innerHTML='<span class="dhx_message__text" id='+o+"></span>\n\t\t"+(t.icon?'<span class="dhx_message__icon dxi '+t.icon+'"></span>':""),e.querySelector("#"+o).textContent=t.text);var i=t.node?a.toNode(t.node):document.body;"static"===getComputedStyle(i).position&&(i.style.position="relative"),(o=d.get(i))?o[t.position]||(o[t.position]={stack:[],container:u(i,t.position)}):d.set(i,((n={})[t.position]={stack:[],container:u(i,t.position)},n));var n=(o=d.get(i)[t.position]).stack,o=o.container;function r(t){void 0===t&&(t=!0),e&&(function(t,e){e&&clearTimeout(c.get(t));var i=t.parentNode,n=i.getAttribute("data-position"),o=i.parentNode;(e=d.get(o))&&(!(e=e[n])||-1!==(e=(n=e.stack).indexOf(t))&&(i.removeChild(t),n.splice(e,1),0===n.length&&o.removeChild(i)))}(e,t),e=null)}return 0===n.length&&i.appendChild(o),n.push(e),o.appendChild(e),t.expire&&(t=setTimeout(function(){return r(!1)},t.expire),c.set(e,t)),e.onclick=function(){return r()},{close:function(){return r()}}}},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(59),i=o(60),c=o(1);n.alert=function(s){var a=s.buttons&&s.buttons[0]?s.buttons[0]:e.default.apply,l=i.blockScreen(s.blockerCss);return new t(function(e){var t="dhx_alert__"+c.uid()+"_content",i="dhx_alert__"+c.uid()+"_header",n=document.createElement("div");n.setAttribute("role","alert"),n.setAttribute("aria-modal","true"),s.text&&n.setAttribute("aria-describedby",t),s.header&&n.setAttribute("aria-labelledby",i),n.className="dhx_widget dhx_alert "+(s.css||"");var o=function(t){"Escape"!==t.key&&"Esc"!==t.key||(r(t),e(!1))};function r(t){t.preventDefault(),l(),document.body.removeChild(n),document.removeEventListener("keydown",o)}n.innerHTML="\n\t\t\t"+(s.header?"<div id="+i+' class="dhx_alert__header"> '+(!1!==s.htmlEnable?s.header:"")+" </div>":"")+"\n\t\t\t"+(s.text?"<div id="+t+' class="dhx_alert__content">'+(!1!==s.htmlEnable?s.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(s.buttonsAlignment?"dhx_alert__footer--"+s.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="confirm" class="dhx_alert__apply-button dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+a+"</button>\n\t\t\t</div>",!1===s.htmlEnable&&(s.header&&(n.querySelector("#"+i).textContent=s.header),s.text&&(n.querySelector("#"+t).textContent=s.text)),document.body.appendChild(n),n.querySelector(".dhx_alert__apply-button").focus(),n.querySelector("button").addEventListener("click",function(t){r(t),e(!0)}),document.addEventListener("keydown",o)})}}).call(this,o(14))},function(t,n,o){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0});var e=o(59),i=o(60),h=o(1);n.confirm=function(l){l.buttonsAlignment=l.buttonsAlignment||"right";var c=l.buttons&&l.buttons[1]?l.buttons[1]:e.default.apply,d=l.buttons&&l.buttons[0]?l.buttons[0]:e.default.reject,u=i.blockScreen("dhx_alert__overlay-confirm "+(l.blockerCss||""));return new t(function(e){var i=document.createElement("div");i.setAttribute("role","alertdialog"),i.setAttribute("aria-modal","true");var n,t=l.header&&h.uid(),o=l.header&&h.uid();o&&i.setAttribute("aria-describedby",o),t&&i.setAttribute("aria-labelledby",t);function r(t){u(),i.removeEventListener("click",s),document.removeEventListener("keydown",a),document.body.removeChild(i),e(t)}var s=function(t){"BUTTON"===t.target.tagName&&r(t.target.classList.contains("dhx_alert__confirm-aply"))},a=function(t){"Escape"===t.key||"Esc"===t.key?(i.querySelector(".dhx_alert__confirm-aply").focus(),r(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===n?(n="reject",i.querySelector(".dhx_alert__confirm-reject").focus()):(n="aply",i.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};i.className="dhx_widget dhx_alert dhx_alert--confirm"+(l.css?" "+l.css:""),i.innerHTML="\n\t\t"+(l.header?'<div class="dhx_alert__header" id='+t+"> "+(!1!==l.htmlEnable?l.header:"")+" </div>":"")+"\n\t\t"+(l.text?'<div class="dhx_alert__content" id='+o+">"+(!1!==l.htmlEnable?l.text:"")+"</div>":"")+'\n\t\t\t<div class="dhx_alert__footer '+(l.buttonsAlignment?"dhx_alert__footer--"+l.buttonsAlignment:"")+'">\n\t\t\t\t<button type="button" aria-label="reject" class="dhx_alert__confirm-reject dhx_button dhx_button--view_link dhx_button--color_primary dhx_button--size_medium">'+d+'</button>\n\t\t\t\t<button type="button" aria-label="aply"class="dhx_alert__confirm-aply dhx_button dhx_button--view_flat dhx_button--color_primary dhx_button--size_medium">'+c+"</button>\n\t\t\t</div>",!1===l.htmlEnable&&(l.header&&(i.querySelector("#"+t).textContent=l.header),l.text&&(i.querySelector("#"+o).textContent=l.text)),document.body.appendChild(i),n="aply",i.querySelector(".dhx_alert__confirm-aply").focus(),i.addEventListener("click",s),document.addEventListener("keydown",a)})}}).call(this,o(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)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(2),u=i(33),h=750,f=200;function d(t,e,i,n,o,r){var s,a,l;switch(void 0===o&&(o=8),void 0===r&&(r=0),1<r&&(e=u.Position.center),e){case u.Position.center:return(a=t.left+window.pageXOffset+(t.width-i)/2)+o<window.pageXOffset&&(a=t.left+window.pageXOffset),{left:a,top:l=t.top+window.pageYOffset+(t.height-n)/2,pos:s=u.RealPosition.center};case u.Position.right:return(s=u.RealPosition.right,(a=t.right+window.pageXOffset+o)+i>window.innerWidth+window.pageXOffset)?d(t,u.Position.left,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case u.Position.left:return(s=u.RealPosition.left,(a=window.pageXOffset+t.left-i-o)<0)?d(t,u.Position.right,i,n,o,++r):{left:a,top:l=window.pageYOffset+t.top+(t.height-n)/2,pos:s};case u.Position.top:return s=u.RealPosition.top,(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),(l=window.pageYOffset+t.top-n-o)-n<0?d(t,u.Position.bottom,i,n,o,++r):{left:a,top:l,pos:s};case u.Position.bottom:default:return(a=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?a=window.innerWidth+window.pageXOffset-i:a<0&&(a=0),s=u.RealPosition.bottom,(l=window.pageYOffset+t.bottom+o)+n>window.innerHeight+window.pageYOffset?d(t,u.Position.top,i,n,o,++r):{left:a,top:l,pos:s}}}e.findPosition=d;var p=document.createElement("div"),g=document.createElement("span");g.className="dhx_tooltip__text",p.appendChild(g),p.setAttribute("role","tooltip"),p.style.position="absolute";var _,v=null,m=!1,y=null,x=null;function b(t){return t&&(t.classList.contains("dhx_popup--window")&&t.classList.contains("dhx_popup--window_active")||t.classList.contains("dhx_popup--window_modal")||t.classList.contains("dhx_popup"))?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?g.innerHTML=e:g.textContent=e,document.body.appendChild(p),p.className="dhx_widget dhx_tooltip"+(o?" dhx_tooltip--forced":"");var e=p.getBoundingClientRect(),r=d(a,i,e.width,e.height,r),l=r.left,c=r.top,r=r.pos,t=b(t);switch(t&&(p.style.zIndex=t.toString()),r){case u.RealPosition.bottom:case u.RealPosition.top:case u.RealPosition.left:case u.RealPosition.right:case u.RealPosition.center:p.style.left=l+"px",p.style.top=c+"px"}p.className+=" dhx_tooltip--"+r+" "+(n||""),m=!0,o||setTimeout(function(){p.className+=" dhx_tooltip--animate"})}function r(e,t,i){var n=i.force,o=i.showDelay,r=i.hideDelay,s=i.position,a=i.css,l=i.htmlEnable,c=i.margin;n||(x=setTimeout(function(){w(e,t,s||u.Position.bottom,a,!1,c,l)},o||h));var d=function(){var t;m&&(t=r,v&&(y=setTimeout(function(){document.body.removeChild(p),m=!1,y=null},t||f))),clearTimeout(x),e.removeEventListener("mouseleave",d),e.removeEventListener("blur",d),document.removeEventListener("mousedown",d),_=v=null};n&&w(e,t,s,a,n,c,l),e.addEventListener("mouseleave",d),e.addEventListener("blur",d),document.addEventListener("mousedown",d),_=d}function s(t,e){var i=o.toNode(e.node);i!==v&&(_&&(_(),_=null),v=i,y?(clearTimeout(y),y=null,r(i,t,n(n({},e),{force:!0}))):r(i,t,e))}function a(t){t=o.locateNode(t,"dhx_tooltip_text");t&&s(t.getAttribute("dhx_tooltip_text"),{position:t.getAttribute("dhx_tooltip_position")||u.Position.bottom,node:t})}e.getZIndex=b,e.tooltip=s,e.enableTooltip=function(){document.addEventListener("mousemove",a)},e.disableTooltip=function(){document.removeEventListener("mousemove",a)}},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(4),d=i(2),a=i(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||d.locateNodeByClassName(t,"dhx_grid-header-cell")||(t&&t.preventDefault(),a=e.selection.getCell(),t=e.config.columns.filter(function(t){return!t.hidden}),a&&("vertical"===i?o?(l=1===n?e.data.getItem(e.data.getId(e.data.getLength()-1)):e.data.getItem(e.data.getId(0)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):0<=(c=e.data.getIndex(a.row.id.toString()))+n&&c+n<e.data.getLength()&&(l=e.data.getItem(e.data.getId(c+n)),e.selection.setCell(l.id,a.column.id,r,s),e.scrollTo(l.id.toString(),a.column.id.toString())):o?(l=1===n?t[t.length-1]:t[0],e.selection.setCell(a.row.id,l.id,r,s),e.scrollTo(a.row.id.toString(),l.id.toString())):0<=(c=t.indexOf(a.column))+n&&c+n<t.length&&(e.selection.setCell(a.row.id,t[c+n].id,r,s),e.scrollTo(a.row.id.toString(),t[c+n].id.toString()))))}function u(t,e){var i=t.selection.getCell(),n=i&&t.getSpan(i.row.id,i.column.id);if(n){if("up"===e||"down"===e){var o=l.findIndex(t.config.data,function(t){return t.id===n.row}),r=l.findIndex(t.config.data,function(t){return t.id===i.row.id});return"up"===e?o-r-1:o+(n.rowspan||1)-r}t=t.config.columns.filter(function(t){return!t.hidden}),o=l.findIndex(t,function(t){return t.id===n.column}),r=l.findIndex(t,function(t){return t.id===i.column.id});return"left"===e?o-r-1:o+(n.colspan||1)-r}return"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?void 0:t.refs)||void 0===t?void 0:t.grid_body)||void 0===t?void 0:t.el;if(!i)return;e={pageUp:function(t){t.preventDefault(),i.scrollTop-=i.clientHeight},pageDown:function(t){t.preventDefault(),i.scrollTop+=i.clientHeight},home:function(t){t.preventDefault(),i.scrollTop=0},end:function(t){t.preventDefault(),i.scrollTop+=i.scrollHeight}}}return r({enter:function(t){var e,i=d.locateNodeByClassName(t,"dhx_grid-header-cell");i&&(e=i.getAttribute("data-dhx-id"),i=t.target.getAttribute("dhx_resized"),!e||(t=o.getColumn(e))&&a.isSortable(o.config,t)&&!i&&o.events.fire(s.GridEvents.afterSort,[e])),n?(e=o.selection.getCell())&&(!1!==e.column.editable&&o.config.editable||e.column.editable)&&(o.config.$editable?o.editEnd():"boolean"===e.column.type?o.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)&&void 0!==e?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&&!d.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)+1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):0<=i&&((n=o.data.getIndex(n.row.id.toString())+1)<o.data.getLength()&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[0].id),o.scrollTo(o.data.getId(n).toString(),e[0].id.toString())))))},"shift+tab":function(t){var e,i,n;o.config.selection&&!d.locateNodeByClassName(t,"dhx_grid-header-cell")&&(o.config.$editable&&o.editEnd(),n=o.selection.getCell(),e=o.config.columns.filter(function(t){return!t.hidden}),n&&(0<=(i=e.indexOf(n.column)-1)&&i<e.length?(t&&t.preventDefault(),o.selection.setCell(n.row.id,e[i].id),o.scrollTo(n.row.id.toString(),e[i].id.toString())):i<o.data.getLength()&&(0<=(n=o.data.getIndex(n.row.id.toString())-1)&&(t&&t.preventDefault(),o.selection.setCell(o.data.getId(n),e[e.length-1].id),o.scrollTo(o.data.getId(n).toString(),e[e.length-1].id.toString())))))},arrowUp:function(t){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=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,l=i(43),c=i(4),f=i(6),d=i(2),u=i(9),p=i(10),h=i(0),g=i(29),o=(a=l.Grid,o(_,a),_.prototype._createView=function(){var i=this;return h.create({render:function(t,e){return p.proRender(t,e,i._htmlEvents,i.selection,i._uid)},hooks:this._initHooks()},this)},_.prototype._setEventHandlers=function(){var r=this;a.prototype._setEventHandlers.call(this),this.events.on(c.GridEvents.headerCellMouseDown,function(t,e){var i=d.locateNodeByClassName(e,"dhx_header-row"),i=i&&i.getAttribute("aria-rowindex");null!==(i=t.header[Number(i)-1])&&void 0!==i&&i.content||(e.targetTouches?r._touch.timer=setTimeout(function(){r._dragStartColumn(e,t)},r._touch.duration):r._dragStartColumn(e,t))}),this._events.on(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._checkFilters()}),this.events.on(c.GridEvents.afterResizeEnd,function(){r.config.autoHeight&&(r.config.data=r.data.map(function(t){var e=u.getMaxRowHeight(t,r.config.columns);return t.$height=u.getCalculatedRowHeight(e,{rowHeight:r.config.rowHeight,padding:8}),t}))}),this.events.on(c.GridEvents.afterRowResize,function(t,e,i){var n=r.data.getItem(t.id),o=n.id,t=n.height,n=n.$height;t&&t!==n&&r.data.update(o,{height:i}),r.data.update(o,{$height:i},!0),r.config.data=r.data.map(function(t){return t}),r.paint()}),this.events.on(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)||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=u.getMaxRowHeight(t,i.config.columns),t.$height=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=u.getMaxRowHeight(t,n.config.columns);return t.$height=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)){e=d.locateNode(t,"data-dhx-id"),e=e&&e.getAttribute("data-dhx-id");t.targetTouches&&(this._touch.start=!0);var i=[e];if(this.config.multiselection&&1<(i=s(i,this.selection.getCells().map(function(t){return t.row.id}))).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=s(Object.values(o))}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,o=p.getRenderConfig(this,e,{width:this.config.$width,height:this.config.$height}),r=t.config.limit,s=r,a=o.currentRows,l=a[0],c=a[a.length-1],d=this.data.getIndex(c.id),e=function(t){for(var e=1;e<a.length;e++)if("firstFilledRow"===t&&!a[e].$empty&&a[e-1].$empty||"firstEmptyRow"===t&&a[e].$empty&&!a[e-1].$empty)return i.data.getIndex(a[e].id)};if(l.$empty)if(c.$empty)n=this.data.getIndex(l.id);else{var u=e("firstFilledRow"),o=u-s;o<0&&(o=0);for(var h=o;h<u;h++)if(this.data.getItem(this.data.getId(h)).$empty){s=u-(n=h);break}}else c.$empty?n=e("firstEmptyRow"):(n=null!==(c=e("firstEmptyRow"))&&void 0!==c?c:this.data.getIndex(l.id),s=(null!==(e=e("firstFilledRow"))&&void 0!==e?e:d)-n);!this.data.isDataLoaded(n,d)&&this.data.events.fire(f.DataEvents.beforeLazyLoad,[])&&(t.updateUrl(null,{from:n,limit:s}),t.config.limit=r,this.data.load(t).then(function(){i.config.autoHeight&&i._prepareDataFromTo(i.data,n,d)}))}}},_.prototype._getColumnGhost=function(t){var e=this._container||d.toNode(this._uid),i=e.querySelector(".dhx_header-row"),n=i.querySelector('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]'),n=Array.from(i.childNodes).indexOf(n)+1,t=e.querySelectorAll('.dhx_grid-header-cell[data-dhx-id="'+t.id+'"]:not(.dhx_span-cell)'),n=e.querySelectorAll(".dhx_grid_data .dhx_grid-cell:nth-child("+n+")"),o=document.createElement("div");return t.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),n.forEach(function(t){return o.appendChild(t.cloneNode(!0))}),o},_.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)||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=a.call(this,t,r({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=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(o.prototype.setItem=function(t,e){this._store[t]=e},o.prototype.getItem=function(t){return this._store[t]||null},o);function o(){this._store={}}var r=window.dhxHelpers=window.dhxHelpers||{};r.collectionStore=r.collectionStore||new n,e.collectionStore=r.collectionStore},function(t,l,c){"use strict";(function(t){var n,e=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(l,"__esModule",{value:!0});var o,i=c(15),r=c(1),s=c(24),e=(o=i.DataProxy,e(a,o),a.prototype.load=function(){var i=this;return new t(function(t,e){i._timeout?(clearTimeout(i._timeout),i._timeout=setTimeout(function(){s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0},i.config.delay),i._cooling&&(t(null),i._cooling=!1)):(s.ajax.get(i.url,{responseType:"text"}).then(t).catch(e),i._cooling=!0,i._timeout=setTimeout(function(){}))})},a);function a(t,e){var i=o.call(this,t)||this;return i.config=r.extend({from:0,limit:50,delay:50,prepare:0},e),i.updateUrl(t,{from:i.config.from,limit:i.config.limit}),i}l.LazyDataProxy=e}).call(this,c(14))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),n=i(22),r=i(11),s=i(1),i=(a.prototype.getId=function(){return this._selected},a.prototype.getItem=function(){return s.isId(this._selected)?this._data.getItem(this._selected):null},a.prototype.remove=function(t){return t=null!=t?t:this._selected,!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]))},a);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;!s.isId(n._selected)||(t=n._data.getNearId(n._selected))!==n._selected&&(n._selected=null,t&&n.add(t))})}e.Selection=i},function(t,e,i){"use strict";var c=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var d=i(0),u=i(129),i=(n.prototype.add=function(t){this._data.push(t)},n.prototype.clear=function(){this._data.forEach(function(t){return t.destructor&&t.destructor()}),this._data=[]},n.prototype.getSizes=function(){return this._sizes},n.prototype.toVDOM=function(e,i){var n={left:20,right:20,top:10,bottom:10},t=this._data.filter(function(t){return!t.dataReady||t.dataReady().length});this._data.forEach(function(t){return!t.scaleReady||t.scaleReady(n)});var o=0,r=0;t.forEach(function(t){t.seriesShift&&(o+=t.seriesShift(),r++)});var s=o/r,o=r?(s-o)/2:0;t.forEach(function(t){t.seriesShift&&(t.seriesShift(o),o+=s)}),this._sizes=n;var a=e-n.left-n.right,l=i-n.top-n.bottom,l=d.sv("g",{transform:"translate("+n.left+", "+n.top+")"},c([d.sv("rect.dhx_chart-graph_area",{width:0<a?a:0,height:0<l?l:0,fill:"transparent"})],t.map(function(t){return t.paint(e-(n.left+n.right),i-(n.top+n.bottom))}))),t=d.sv("defs",[u.dropShadow(),u.shadow()]);return d.sv("svg",{width:e,height:i,role:"graphics-document"},[t,l])},n);function n(){this._data=[],this._sizes={left:20,right:20,top:10,bottom:10}}e.ComposeLayer=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0);e.shadow=function(){return n.sv("filter",{id:"shadow"},[n.sv("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[n.sv("feDistantLight",{azimuth:90,elevation:25})]),n.sv("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])},e.dropShadow=function(){return n.sv("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[n.sv("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feOffset",{dx:0,dy:0,result:"offsetblur"}),n.sv("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),n.sv("feComposite",{in2:"offsetblur",operator:"in"}),n.sv("feMerge",[n.sv("feMergeNode"),n.sv("feMergeNode",{in:"SourceGraphic"})])])}},function(t,e,i){"use strict";var _=this&&this.__assign||function(){return(_=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(6),r=i(17),v=i(0),x=i(3),m=i(131),b=i(1);n.prototype.scaleReady=function(t){var e="column"===this.config.direction&&("left"===this.config.halign||"right"===this.config.halign);switch(this.config.valign){case"middle":"right"===this.config.halign?t.right+=0<=this.config.size?this.config.size:200:"left"===this.config.halign&&(t.left+=0<=this.config.size?this.config.size:200);break;case"top":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.top+=0<=this.config.size?this.config.size:40;break;case"bottom":e?t[this.config.halign]+=0<=this.config.size?this.config.size:200:t.bottom+=0<=this.config.size?this.config.size:40}},n.prototype.paint=function(n,t){var e,i,o=this,r=this._getData(),s=this.config;s.$sizes={width:0,height:0};var a=x.getFontStyle("legend-text"),l=s.margin,c=s.itemPadding,d=[],u="middle"===s.valign,h=0,f=0,p=0,g=0;switch(r.forEach(function(t,e){var i;u||"row"!==s.direction||(i=x.getTextWidth(t.text,a),n<h+i+15&&0!==e&&(h=0,f+=c+2)),d.push(v.sv("g",_(_({transform:"translate("+h+","+f+")",onclick:[o._handlers.onclick,t.id,o.config.values],onkeyup:[o._handlers.onkeyup,t.id,o.config.values],class:"legend-item "+(t.active?"":"not-active")},{role:"button","aria-label":(e=t).active?"Hide chart "+e.text:"Show chart "+e.text}),{tabindex:0}),[v.sv("text",{x:t.maxValue?0:10,y:0,class:"start-text legend-text"},[x.verticalCenteredText(t.text)]),[m.legendShape(s.form,t),!isNaN(t.maxValue)&&!isNaN(t.minValue)&&m.legendTicks(s.form,t)]]));t="line"!==s.form?15+x.getTextWidth(t.text,a):0;u||"row"!==s.direction?(h=0,p=t<p?p:t,g=(f+=c+2)<g?g:f):p=(h+=t+c)<p?p:h}),s.valign){case"top":i="row"===s.direction?-l-f-5-("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 v.sv("g",{transform:"translate("+(0<e?e:0)+", "+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,u=t.tickTemplate,h=this.setCriticals(),t=h[0],h=h[1];i.push({id:b.uid(),text:r,alpha:1,fill:e,minValue:null!=s?s:t,maxValue:null!=a?a:h,positiveColor:n,negativeColor:o,active:!0,tick:l,majorTick:c,step:d,tickTemplate:u})}else if(this.config.values){var f=x.locator(this.config.values.text),p=x.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()||x.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?e.from+" - "+e.to:e.less?"<= "+e.less:e.greater?">= "+e.greater:void 0,alpha:1,fill:t.color,active:t.active})})}else for(var _=0,v=g=this.config.$seriesInfo;_<v.length;_++){var m=v[_].config,y=m.fill&&m.color;i.push({id:m.id,text:m.name||m.value,alpha:m.alpha,fill:m.fill||m.color,color:y&&m.color,active:m.active})}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]},i=n;function n(t,e,i){var n=this;this._data=t,this._events=i;this.config=_(_({},{form:"rect",itemPadding:20,halign:"right",valign:"top",direction:"row",type:"groupName"}),e),this.config.margin=e.margin||function(t,e,i,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,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])}}}e.Legend=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),h=i(0),n={circle:function(t,e,i){return h.sv("circle",{id:s.uid(),r:5,fill:e,class:"figure "+("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":i,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,i){return h.sv("rect",{id:s.uid(),fill:e,"fill-opacity":i,width:10,"stroke-width":2,height:10,class:"figure "+("none"!==t?"with-stroke":""),stroke:t,transform:"translate(-5, -5)"})},line:function(t,e,i,n){var o=function(t,e,i){return h.sv("stop",{offset:e+"%","stop-color":t,class:t?"":i})},r="lg"+s.uid(),o=h.sv("linearGradient",{id:r},[o(t[1],0,"heat-negative"),o(e,n,"heat-neutral"),o(t[0],100,"heat-positive")]),t=h.sv("rect",{id:s.uid(),y:16,fill:"url(#"+r+")","fill-opacity":i,width:500,"stroke-width":2,height:16,class:"figure figure-line",stroke:t});return h.sv("g",{id:s.uid(),width:500,height:16},[o,t])}};e.legendShape=function(t,e){var i;return"string"==typeof t&&(i=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=(e.minValue+a*(o||1)*d).toFixed();c.push(u>e.maxValue?e.maxValue:u)}return c=c.map(function(t,e,i){t=(e%(r||1)==0||e===i.length-1)&&h.sv("text",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:34},s?s(t):t),e=h.sv("rect",{x:e===i.length-1?499.5:500*e/l*(o||1)-.5,y:18,width:1,height:4});return h.sv("g",{transform:"translate(0, 16)",class:"legend-tick"},[t,e])})}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(133),o=i(34),i=i(135),o={radial:n.RadialScale,text:i.TextScale,numeric:o.Scale};e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(18),i=i(34),o=(r=i.Scale,o(s,r),s.prototype.paint=function(t,e){var i=this;if(this.config.hidden)return null;var n=this.config.zebra,o=this.config.value,r=this.config.showAxis?this._axis.steps:null,s=this._axis.steps.map(function(t){return i.point(t)}),n={scales:this._data.map(function(t){return t[o]}),axis:s,realAxis:r,zebra:n,attribute:o};return a.radarScale(n,t,e)},s.prototype.point=function(t){return(t-this._axis.min)/(this._axis.max-this._axis.min)},s);function s(t,e){return r.call(this,t,e,"radial")||this}e.RadialScale=o},function(t,e,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(3),r=[1,2,3,5,10],i=(a.prototype.getScale=function(){var t=this.config.log?this._logSteps():this._calculateSteps(this._getStep());return{min:t[0],max:t[t.length-1],steps:t}},a.prototype._getStep=function(){var t=this.config.maxTicks,e=this.config.max-this.config.min,i=Math.floor(o.log10(e/t)),i=Math.pow(10,i)||1,t=e/i/t;return r[n(r,[t]).sort(function(t,e){return t-e}).indexOf(t)]*i},a.prototype._calculateSteps=function(t){for(var e=Math.floor(this.config.min/t),i=Math.ceil(this.config.max/t),n=[],o="radial"===this.config.type?e-1:e;o<=i;o++){var r=t*o;Math.floor(r)!==r&&(r=parseFloat(r.toFixed(8))),n.push(r)}return n},a.prototype._logSteps=function(){var t=[];if(this.config.min<0){for(var e=Math.ceil(o.log10(-this.config.min));0<e;e--)t.push(-Math.pow(10,e));t.push(0)}if(0<this.config.max)for(var i=Math.ceil(o.log10(this.config.max)),e=0;e<=i;e++)t.push(Math.pow(10,e));return t},a.prototype._addPadding=function(){this.config.min-=this.config.padding},a);function a(t,e){void 0===e&&(e={}),this._data=t;for(var i=[],n=0,o=this._data;n<o.length;n++){var r=o[n];"number"==typeof r&&i.push(r),"string"!=typeof r||isNaN(parseFloat(r))||i.push(parseFloat(r))}t={min:Math.min.apply(Math,i),max:Math.max.apply(Math,i),maxTicks:this._data.length<20?this._data.length:20};this.config=s(s({},t),e),this.config.padding&&this._addPadding()}e.AxisCreator=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(3),l=i(34),i=i(61),c={left:i.left,right:i.right,bottom:i.bottom,top:i.top},u={left:i.leftGrid,right:i.rightGrid,bottom:i.bottomGrid,top:i.topGrid},o=(s=l.Scale,o(d,s),d.prototype.scaleReady=function(t){var e=this._data.getLength()-1,i=this._data.map(this.locator);this._axis={max:e,steps:i},t[this._position]+=this.config.size},d.prototype.point=function(t){var e=this._axis.steps.indexOf(t);if(this._padding){var i=this._axis.max+1,t=.5/i,i=e/i;return this._isXDirection?t+i:1-t-i}return this._isXDirection?e/this._axis.max:1-e/this._axis.max},d.prototype.paint=function(i,n){var o=this;if(this.config.hidden)return null;var t=this._axis.steps.map(function(t,e){return[o._isXDirection?o._getAxisPoint(e)*i:o.point(t)*n,t]});return c[this._position](t,this.config,i,n)},d.prototype.scaleGrid=function(){var s=this,a=this._position,l=this.config.grid,c=this.config.dashed,d=this.config.hidden;return{paint:function(t,e){var i,n,o=s._axis.steps.indexOf(s.config.targetLine),r=(i=t,n=e,s._axis.steps.map(function(t,e){return[s._isXDirection?s._getAxisPoint(e)*i:s._getAxisPoint(e)*n,t]})),o={targetLine:o,dashed:c,grid:l,hidden:d};return u[a](r,t,e,o)}}},d.prototype._setDefaults=function(t){this.locator=a.locator(t.text),this.config=r(r({},{scalePadding:30,textPadding:12,grid:!0,targetLine:null,showText:!0}),t)},d.prototype._getAxisPoint=function(t){var e=this._axis.max;if(this._padding){var i=e+1,n=.5/i,i=t/i;return this._isXDirection?n+i:1-n-i}return this._isXDirection?t/e:1-t/e},d);function d(){return null!==s&&s.apply(this,arguments)||this}e.TextScale=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(62),o=i(64),r=i(137),s=i(138),a=i(37),l=i(139),c=i(140),d=i(141),u=i(142),h=i(143),f=i(144),p=i(145),i=i(146),i={line:a.default,spline:h.default,area:n.default,splineArea:f.default,scatter:u.default,pie:l.default,pie3D:c.default,donut:s.default,radar:d.default,bar:o.default,xbar:r.default,treeMap:p.default,calendarHeatMap:i.default};e.default=i},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,i=i(64),o=(r=i.default,o(s,r),s.prototype.addScale=function(t,e){t="top"===t||"bottom"===t?"left":"top";r.prototype.addScale.call(this,t,e)},s.prototype.paint=function(t,e,i){return r.prototype.paint.call(this,e,t,i)},s.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition>e?"left":"right"},s.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[1],r[0]);i[0]>s&&(i[0]=s,i[1]=r[1],i[2]=r[0],i[3]=r[2])}return i},s.prototype._getText=function(t){return t[4].toString()},s.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&i<t?1/0:Math.abs(e-n)},s.prototype._path=function(t,e){return t[0]+=this._shift,"\nM "+e+" "+(t[0]-this.config.barWidth/2)+"\nH "+t[1]+"\nv "+this.config.barWidth+"\nH "+e},s.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:0},s.prototype._text=function(t,e,i){e=(e+t[1])/2,t=t[0];return{x:e,y:t,class:"bar-text",transform:i&&!isNaN(i)?"rotate("+i+" "+e+" "+t+")":""}},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),B=this&&this.__assign||function(){return(B=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,G=i(0),Y=i(18),X=i(3),i=i(36),o=(r=i.default,o(s,r),s.prototype.paint=function(P,H){function L(t,e,i){return void 0===i&&(i=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":(e||"")+", "+t+" ("+X.roundToTwoNumAfterPoint(i)+"%)"}}var I=this,t=this.config,R=t.stroke,e=t.strokeWidth,A=t.useLines,j=t.subType,F=!e||e<1?4:15<e?15:e,$=P<H?P/2:H/2,N=-.25,V=[],W=[],z=[];return 1<this._points.length&&R&&V.push(G.sv("circle",{cx:0,cy:0,r:$-.5,fill:R})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=Y.getCoordinates(N,$,$,1<I._points.length&&R?F/2:null),d=c[0],u=c[1],h=N+n/2;N+=n+l;var f=Y.getCoordinates(N,$,$,1<I._points.length&&R?-F/2:null),p=f[0],g=f[1],_=.5<n?1:0,v=Y.getCoordinates(h,$,$),m=-.25<h&&h<.25,y=.5<h||h<0,x=h<.25?5:-5,c=[5,30],l=c[0],b=c[1],f=[Y.getCoordinates(h,$+l,$+l),Y.getCoordinates(h,$+b,$+b)],c=f[0],w=f[1];switch(I.config.subType){case"basic":var C=m?"donut-value-title start-text":"donut-value-title end-text",S=y?-20:10,E=Y.getCoordinates(h,$+10,$+10),D=m?"donut-value start-text":"donut-value end-text",k={text1:{x:(A?w:E)[0],y:(A?w:E)[1]+S,width:0,height:0,class:""},text2:{x:(A?w:E)[0],y:(A?w:E)[1]+S+16,width:0,height:0,class:""},changeSector:!1,line:x,right:m,dy:S},O=G.sv("text",B(B({x:(A?w:E)[0],y:(A?w:E)[1]+S,class:C},L(o,s,n)),{tabindex:0}),[X.verticalCenteredText(s.toString())]),C=G.sv("text",{x:(A?w:E)[0],y:(A?w:E)[1]+S+16,class:D,"aria-hidden":"true"},[X.verticalCenteredText(o.toString())]),D=X.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});k.text1.width=D[0],k.text1.height=D[1],D=X.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),k.text2.width=D[0],k.text2.height=D[1];var T=A?$+b:$+10;0!==W.length&&(m?(W.forEach(function(t){X.checkPositions(k.text1,t.text1,T,T,k),X.checkPositions(k.text1,t.text2,T,T,k)}),k.text1.class&&(k.text2.class=k.text1.class)):(W.forEach(function(t){X.checkPositions(k.text2,t.text2,T,T,k),X.checkPositions(k.text2,t.text1,T,T,k)}),k.text2.class&&(k.text1.class=k.text2.class)),O.attrs.x=k.text1.x,O.attrs.y=k.text1.y,C.attrs.x=k.text2.x,C.attrs.y=k.text2.y,(k.text1.class||k.text2.class)&&(O.attrs.class=k.text1.class,C.attrs.class=k.text2.class),x=k.line,A?(w[0]=k.text1.x,w[1]=k.text1.y-S):(E[0]=k.text1.x,E[1]=k.text1.y-S)),W.push(k);E=G.sv("text",B({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},L(o,s,n)),[X.verticalCenteredText(Math.round(100*n)+"%")]);i.push(G.sv("g",{id:r+"-text",class:"chart donut"},[O,C])),i.push(E);break;case"valueOnly":var M=G.sv("text",B(B({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},L(o,s,n)),{tabindex:0}),[X.verticalCenteredText(""+o)]);i.push(M);break;case"percentOnly":M=G.sv("text",B(B({x:7*v[0]/9,y:7*v[1]/9,class:"pie-inner-value"},L(o,s,n)),{tabindex:0}),[X.verticalCenteredText(Math.round(100*n)+"%")]);i.push(M)}A&&"basic"===j&&(S=y?3:0,i.push(G.sv("path",{d:"M"+c[0]+" "+c[1]+" L"+w[0]+"\n\t\t\t\t\t\t\t"+(w[1]+S)+" h "+x,id:r+"-connector",class:"pie-value-connector chart donut"})));l=0,f=0,c=F/(2*Math.sin(Math.PI/I._points.length));1<I._points.length&&R&&(l=(c=Y.getCoordinates(h,c,c))[0],f=c[1]);g="M "+d+" "+u+" A "+$+" "+$+" 0 "+_+" 1 "+p+" "+g+"\n\t\t\t\tL "+(0+l)+" "+(0+f),l=Y.getCoordinates(h,4,4),f=l[0],l=l[1],l=G.sv("path",{d:g,_key:r,fill:a||X.getDefaultColor(e),class:"chart donut",onclick:[I._handlers.onclick,t[1],t[2]],onmouseout:[Y.pieLikeHandlers.onmouseout],onmouseover:[Y.pieLikeHandlers.onmouseover,f,l],role:"presentation"});i.unshift(l),V.push(G.sv("g",{id:r},i)),1===I._points.length?z.push([P/2,H/2]):z.push([.8*v[0]+P/2,.8*v[1]+H/2])}),this._center=[P/2,H/2],this._tooltipData=z,(V=V.concat([])).push(G.sv("circle",{cx:0,cy:0,r:5*$/9,fill:"#FFFFFF",role:"presentation"})),G.sv("g",B(B({transform:"translate("+P/2+", "+H/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),V)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),X=this&&this.__assign||function(){return(X=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,q=i(1),U=i(0),K=i(18),J=i(3),i=i(36),o=(r=i.default,o(s,r),s.prototype.paint=function(P,H){var L=this,t=this.config,I=t.stroke,e=t.strokeWidth,R=t.gradient,A=t.useLines,j=t.showText,F=t.showTextTemplate,$=t.subType,N=!e||e<1?4:15<e?15:e,V=P<H?P/2:H/2,W=-.25,z=[],B=[],e=[],G=[],Y=[];return 1<this._points.length&&I&&e.push(U.sv("circle",{cx:0,cy:0,r:V-.5,fill:I})),this._points.forEach(function(t,e){var i=[],n=t[0],o=t[1],r=t[2],s=t[3],a=t[4],l=0===n||1===n?-1e-6:0,c=a||J.getDefaultColor(e);R&&(p=R(a),g="gradient"+q.uid(),_=J.getRadialGradient(p.options,p.stops,g),c="url(#"+g+")",G.push(_));var d=K.getCoordinates(W,V,V,1<L._points.length&&I?N/2:null),e=d[0],a=d[1],u=W+n/2,h=u<.25?5:-5,f=K.getCoordinates(u,V,V);W+=n+l;var p=K.getCoordinates(W,V,V,1<L._points.length&&I?-N/2:null),g=p[0],_=p[1],d=.5<n?1:0,l=[5,30],p=l[0],v=l[1],l=[K.getCoordinates(u,V+p,V+p),K.getCoordinates(u,V+v,V+v)],p=l[0],m=l[1],y=-.25<u&&u<.25,x=.5<u||u<0,b=-.25<u&&u<.25?"pie-value start-text":"pie-value end-text";switch((j||F)&&!1!==j&&(M=U.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[F?J.verticalCenteredText(F(o.toString())):J.verticalCenteredText(o.toString())]),i.push(M)),L.config.subType){case"basic":var w=x?-20:10,C=K.getCoordinates(u,V+10,V+10),S=y?"donut-value start-text":"donut-value end-text",E={text1:{x:(A?m:C)[0],y:(A?m:C)[1]+w,width:0,height:0,class:""},text2:{x:(A?m:C)[0],y:(A?m:C)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:w},D=U.sv("text",X({x:(A?m:C)[0],y:(A?m:C)[1]+w,class:b},(k=n,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(s||"")+", "+o+" ("+J.roundToTwoNumAfterPoint(k)+"%)"})),[J.verticalCenteredText(s.toString())]),k=U.sv("text",{x:(A?m:C)[0],y:(A?m:C)[1]+w+16,class:S,"aria-hidden":"true"},[J.verticalCenteredText(o.toString())]),S=J.getSizesSVGText(s.toString(),{font:"normal 14px Roboto",lineHeight:14});E.text1.width=S[0],E.text1.height=S[1],S=J.getSizesSVGText(o.toString(),{font:"normal 12px Roboto",lineHeight:12}),E.text2.width=S[0],E.text2.height=S[1];var O=A?V+v:V+10;0!==z.length&&(y?(z.forEach(function(t){J.checkPositions(E.text1,t.text1,O,O,E),J.checkPositions(E.text1,t.text2,O,O,E)}),E.text1.class&&(E.text2.class=E.text1.class)):(z.forEach(function(t){J.checkPositions(E.text2,t.text2,O,O,E),J.checkPositions(E.text2,t.text1,O,O,E)}),E.text2.class&&(E.text1.class=E.text2.class)),D.attrs.x=E.text1.x,D.attrs.y=E.text1.y,k.attrs.x=E.text2.x,k.attrs.y=E.text2.y,(E.text1.class||E.text2.class)&&(D.attrs.class=E.text1.class,k.attrs.class=E.text2.class),h=E.line,A?(m[0]=E.text1.x,m[1]=E.text1.y-w):(C[0]=E.text1.x,C[1]=E.text1.y-w)),z.push(E);C=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(U.sv("g",{id:r+"-text",class:"chart donut"},[D,k])),i.push(C);break;case"valueOnly":var T=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(""+o)]);i.push(T);break;case"percentOnly":T=U.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[J.verticalCenteredText(Math.round(100*n)+"%")]);i.push(T)}A&&"basic"===$&&(w=x?3:0,i.push(U.sv("path",{d:"M"+p[0]+" "+p[1]+" L"+m[0]+"\n\t\t\t\t\t\t\t"+(m[1]+w)+" h "+h,id:r+"-connector",class:"pie-value-connector chart pie"})));var l=0,M=0,p=N/(2*Math.sin(Math.PI/L._points.length));1<L._points.length&&I&&(l=(p=K.getCoordinates(u,p,p))[0],M=p[1]);_="M "+e+" "+a+" A "+V+" "+V+" 0 "+d+" 1 "+g+" "+_+"\n\t\t\t\tL "+(0+l)+" "+(0+M),l=K.getCoordinates(u,4,4),M=l[0],l=l[1],l=U.sv("path",{d:_,class:"chart pie",_key:r,fill:c,onclick:[L._handlers.onclick,t[1],t[2]],onmouseover:[K.pieLikeHandlers.onmouseover,M,l],onmouseout:[K.pieLikeHandlers.onmouseout],role:"presentation"});i.unshift(l),Y.push(U.sv("g",{id:r},i)),1===L._points.length?B.push([P/2,H/2]):B.push([.7*f[0]+P/2,.7*f[1]+H/2])}),this._center=[P/2,H/2],this._tooltipData=B,e.push(U.sv("defs",G)),e=(e=e.concat(Y)).concat([]),U.sv("g",X(X({transform:"translate("+P/2+", "+H/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),e)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),X=this&&this.__assign||function(){return(X=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,q=i(0),U=i(18),K=i(3),i=i(36),o=(r=i.default,o(s,r),s.prototype.paint=function(H,L){var I=this,t=this.config,R=t.subType,A=t.useLines,j=t.showText,F=t.showTextTemplate,$=H<L?H/2:L/2,N=.5*$,V=$/5,W=[],z=-.25,B=[],G=[],Y=[];return this._points.forEach(function(t,e){var i=t[0],n=t[1],o=t[2],r=t[3],s=t[4],a=0===i||1===i?-1e-6:0,l=U.getCoordinates(z,$,N),c=l[0],d=l[1],u=z+i/2,h=u<.25?5:-5,f=U.getCoordinates(u,$,N),p=0;0<u&&u<.5&&(p=V*Math.sin(2*Math.PI*u));var g=U.getCoordinates(u,$+5+p,5+N+p),_=U.getCoordinates(u,$+30+p,30+N+p),v=z+i+a,m=U.getCoordinates(v,$,N),l=m[0],a=m[1],m=.5<i?1:0,y=-.25<u&&u<.25,x=.5<u||u<0,b=y?"pie-value start-text":"pie-value end-text";switch(I.config.subType){case"basic":var w=x?-20:10,C=y?"donut-value start-text":"donut-value end-text",S={text1:{x:(A?_:g)[0],y:(A?_:g)[1]+w,width:0,height:0,class:""},text2:{x:(A?_:g)[0],y:(A?_:g)[1]+w+16,width:0,height:0,class:""},changeSector:!1,line:h,right:y,dy:w},E=q.sv("text",X({x:(A?_:g)[0],y:(A?_:g)[1]+w,dx:A?0<h/2+h?10:-10:null,class:b},(k=i,{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":(r||"")+", "+n+" ("+K.roundToTwoNumAfterPoint(k)+"%)"})),[K.verticalCenteredText(r.toString())]),D=q.sv("text",{x:(A?_:g)[0],y:(A?_:g)[1]+w+16,dx:A?0<h/2+h?10:-10:null,class:C,"aria-hidden":"true"},[K.verticalCenteredText(n.toString())]),k=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]),C=K.getSizesSVGText(r.toString(),{font:"normal 14px Roboto",lineHeight:14});S.text1.width=C[0],S.text1.height=C[1],C=K.getSizesSVGText(n.toString(),{font:"normal 12px Roboto",lineHeight:12}),S.text2.width=C[0],S.text2.height=C[1];var O=A?$+30+p:$+5+p,T=A?30+N+p:5+N+p;0!==Y.length&&(y?(Y.forEach(function(t){K.checkPositions(S.text1,t.text1,O,T,S),K.checkPositions(S.text1,t.text2,O,T,S)}),S.text1.class&&(S.text2.class=S.text1.class)):(Y.forEach(function(t){K.checkPositions(S.text2,t.text2,O,T,S),K.checkPositions(S.text2,t.text1,O,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),h=S.line,A?(_[0]=S.text1.x,_[1]=S.text1.y-w):(g[0]=S.text1.x,g[1]=S.text1.y-w)),Y.push(S),G.push(E,D,k);break;case"valueOnly":var M=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(n.toString())]);G.push(M);break;case"percentOnly":M=q.sv("text",{x:.5*f[0],y:.5*f[1],class:"pie-inner-value","aria-hidden":"true"},[K.verticalCenteredText(Math.round(100*i)+"%")]);G.push(M)}A&&"basic"===R&&G.push(q.sv("path",{d:"M"+g[0]+" "+g[1]+" L"+_[0]+" "+_[1]+" h "+h,class:"pie-value-connector"})),(j||F)&&!1!==j&&(P=q.sv("text",{x:.7*f[0],y:.7*f[1],class:"pie-inner-value","aria-hidden":"true"},[F?K.verticalCenteredText(F(n)):K.verticalCenteredText(n.toString())]),G.push(P));var P="";z<=0&&.5<=v?P="M "+$+" 0 v "+V+" A "+$+" "+N+" 0 1 1 "+-$+" "+V+" v "+-V:z<=0&&v<.5?P="M "+$+" 0 v "+V+" A "+$+" "+N+" 0 0 1 "+l+" "+(a+V)+" v "+-V:0<z&&z<=.5&&.5<=v?P="M "+c+" "+d+" v "+V+" A "+$+" "+N+" 0 0 1 "+-$+" "+V+" v "+-V:0<z&&v<.5&&(P="M "+c+" "+d+" v "+V+" A "+$+" "+N+" 0 0 1 "+l+" "+(a+V)+" v "+-V),P&&(P=q.sv("path",{_key:o+"__shadow__",d:P,fill:s||K.getDefaultColor(e),onclick:[I._handlers.onclick,t[1],t[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"}),B.push(P));a="M "+c+" "+d+" A "+$+" "+N+" 0 "+m+" 1 "+l+" "+a+" L 0 0";B.push(q.sv("path",{d:a,_key:o,fill:s||K.getDefaultColor(e),stroke:"none",onclick:[I._handlers.onclick,t[1],t[2]],class:"chart pie3d",role:"presentation"})),1===I._points.length?W.push([H/2,L/2]):W.push([.7*f[0]+H/2,.7*f[1]+L/2]),z=v}),this._center=[H/2,L/2],this._tooltipData=W,B=B.concat(G),q.sv("g",X(X({transform:"translate("+H/2+", "+L/2+")"},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0}),B)},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(0),c=i(18),l=i(3),i=i(19),o=(s=i.default,o(d,s),d.prototype.addScale=function(t,e){this._scale=e},d.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},d.prototype.dataReady=function(n){var o=this;if(!this.config.active)return this._points=[];var r=l.locator(this._scale.config.value);return this._points=this._data.map(function(t,e){var i=o._locator(t),i=[i,i,t.id,i,i];return n&&(i[1]+=n[e][1]),r&&i.push(r(t)),i}),this._points},d.prototype.getTooltipText=function(t){if(this.config.tooltip){t=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(t):t}},d.prototype.paint=function(t,e){var o=this;s.prototype.paint.call(this,t,e);if(this.config.active){var i=this.config,t=[],e=this._points.map(function(t,e){return(e?"L":"M")+t[0]+" "+t[1]}).join(" ")+"Z";return t.push(a.sv("path",{d:e,stroke:i.color,"stroke-width":i.strokeWidth,fill:i.fill,"fill-opacity":i.alpha,class:"chart radar"})),i.pointType&&(e=this._points.map(function(t){return o._drawPointType(t[0],t[1],l.calcPointRef(t[2],o.id))}).map(function(t){var e,i,n;return t&&t.attrs&&(t.attrs=r(r({},t.attrs),(e=t.key,i=o._points,e&&(n=i.find(function(t){return e.includes(t[2])})),{role:"graphics-symbol","aria-roledescription":"point","aria-label":n?"point x="+n[5]+" y="+n[4]:"",tabindex:0}))),t}),t.push(a.sv("g",e))),a.sv("g",r(r({id:"seria"+i.id},{"aria-label":"chart "+(this.config.value||"")}),{tabindex:0}),t)}},d.prototype._calckFinalPoints=function(n,o){var r=this,s=n<o?n/2:o/2,a=1/this._data.getLength(),l=-.25-a;this._points.forEach(function(t,e){l+=a;var i=r._scale.point(t[0]),i=c.getCoordinates(l,i*s,i*s);t[0]=i[0]+n/2,t[1]=i[1]+o/2})},d.prototype._defaultLocator=function(t){return this._locator(t)},d.prototype._setDefaults=function(t){this._locator=l.locator(t.value),t.scales=t.scales||["radial"],this.config=r(r({},{strokeWidth:2,active:!0,tooltip:!0,paddings:5,color:"none",fill:"none",pointType:"circle"}),t),this.config.pointType&&(t=this.config.pointColor||this.config.color,this._drawPointType=this._getPointType(this.config.pointType,t))},d);function d(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(37),l=i(3),o=(s=a.default,o(c,s),c.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=l.locator(this.config.value)):(this.yScale=e,this._yLocator=l.locator(this.config.valueY))},c.prototype._setDefaults=function(t){this.config=r(r({},{active:!0,tooltip:!0,pointType:"rect"}),t);var e=this.config.pointType,t=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,t))},c);function c(){return null!==s&&s.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,a=i(0),l=i(65),i=i(37),o=(r=i.default,o(s,r),s.prototype._getForm=function(t,e,i,n,o){var r=e.color,s=e.css,t=l.default(t);return a.sv("path",{id:"seria"+e.id,d:t,class:s,stroke:r,"stroke-width":2,fill:"none"})},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r,h=i(0),f=i(65),i=i(62),o=(r=i.default,o(s,r),s.prototype._form=function(t,e,i,n){var o=this.config,r=o.fill,s=o.alpha,a=o.strokeWidth,l=o.color,c=o.id,d=this.config.css,u="",o=this._points[0],u=n?f.default([].concat(n).reverse())+" "+f.default(this._points,!0)+" Z":"M"+o[0]+" "+e+" V "+o[1]+" "+f.default(this._points)+" V"+e+" H "+o[0];a&&(o=f.default(this._points),l=h.sv("path",{d:o,"stroke-width":a,stroke:l,fill:"none","stroke-linecap":"butt",class:d}),i.push(l));s=h.sv("path",{id:"seria"+c,d:u,class:d,fill:r,"fill-opacity":s,stroke:"none"});return i.push(s),i},s);function s(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),C=this&&this.__assign||function(){return(C=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r,S=i(1),E=i(0),s=i(6),D=i(3),a=i(17),i=i(19),o=(r=i.default,o(l,r),l.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},l.prototype.toggle=function(e){var t=this.config.treeSeries.find(function(t){return t.id===e});t&&(t.active=!t.active)},l.prototype.dataReady=function(){var s=this;if(!this.config.active)return this._points=[];var a="groupName"===this.config.legendType;return this._sum=0,this._data.forEach(function(t){var e,i=s._data.getItem(s._data.getParent(t.id));i&&i.$hidden&&1<s._maxLevel||(e=s._valueLocator(t))&&(i=s._getSerie(a?t.id:e,a),t.color=(i||t).color,t.$hidden=!!i&&!i.active,!t.$hidden&&e&&(s._sum+=parseFloat(t[s.config.value])))}),this._points=[],this._data.eachChild(this._data.getRoot(),function(t){var o,e,r,i;t.$hidden||(o=s._valueLocator(t),e=s._textLocator(t),r=[],!o&&s._data.haveItems(t.id)&&(o=0,s._data.eachChild(t.id,function(t){var e,i,n;t.$hidden||(e=s._valueLocator(t),i=s._textLocator(t),n=t.color||(null===(n=s._getSerie(a?t.id:e,a))||void 0===n?void 0:n.color),e&&(o+=e),r.push([0,e,t.id,i,n]))})),t.percent=parseFloat(o)/s._sum,i=t.color||(null===(i=s._getSerie(a?t.id:o,a))||void 0===i?void 0:i.color),s._points.push([t.percent,o,t.id.toString(),e,i,{items:r}]))},!1),this._maxLevel=this._getMaxLevel(),this._points},l.prototype.paint=function(t,e){var p=this;if(!!this.config.treeSeries.find(function(t){return t.active})){var g=this.config.strokeWidth,_=[],v=[],i=[],n=1<this._maxLevel?2*g:g,t=t-n,e=e-n;this._layout={id:S.uid(),area:t*e,width:t,height:e,restArea:t*e,restWidth:t,restHeight:e,startX:n/2,startY:n/2,stroke:n};var m=this._layout.startX,y=this._layout.startY;return this._layout.width>=this._layout.height?this._layout.cols=[]:this._layout.rows=[],this._points.sort(function(t,e){return e[0]-t[0]}),this._points.forEach(function(e,t,i){var n,o,r,s,a,l,c,d,u=e[0],h=(e[1],e[2]),f=(e[3],e[4],e[5]);0!==u&&(n=(r=p._drawBar(e,t,i,p._layout,m,y,!(!f||null===(a=f.items)||void 0===a||!a.length)))[0],o=r[1],u=r[2],t=r[3],i=r[4],a=r[5],r=r[6],m=a[0],y=a[1],v.push(E.sv("g",{id:h},[n,o,r])),_.push(u),f&&null!==(s=f.items)&&void 0!==s&&s.length&&(s=a[2]-g,a=a[3]-g,l={id:S.uid(),parent:p._layout.id,area:s*a,width:s,height:a,restArea:s*a,restWidth:s,restHeight:a,startX:m+g/2,startY:y+g/2+("asc"!==p.config.direction&&r?g/2:0),stroke:g},c=l.startX,d=l.startY,l.width>=l.height?l.cols=[]:l.rows=[],f.items.map(function(t){return t[0]=t[1]/e[1]}),f.items.sort(function(t,e){return e[0]-t[0]}),f.items.forEach(function(t,e,i){var n=t[2],o=p._drawBar(t,e,i,l,c,d,!1),r=o[0],t=o[1],e=o[2],i=o[3],o=o[4];v.push(E.sv("g",{id:n},[r,t])),_.push(e),c=i,d=o})),m=t,y=i)}),i.push(E.sv("defs",_)),i=i.concat(v),E.sv("g",C(C({id:"seria"+this.config.id},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0,transform:"asc"===this.config.direction?"rotate(180 "+(this._layout.startX+this._layout.width/2)+" "+(this._layout.startY+this._layout.height/2)+")":""}),i)}},l.prototype._drawBar=function(t,e,i,n,o,r,s){var a=this,l=t[0],c=t[1],d=t[2],u=t[3],h=t[4],f=this.config,p=f.stroke,g=f.showText,_=f.showTextTemplate,v=l*n.area,m=this._getDeepParent(n),y=s&&0<l&&u,x=n.startX+n.width-m.restWidth,b=n.startY+n.height-m.restHeight;o=x<o?x:o,r=b<r?b:r;f=this._getBar(m,v,o,r,i,e,n.area),x=f[0],b=f[1],m=f[2],o=f[3],r=f[4];if(!(x[2]<0||x[3]<0)){this._recountParentArea(v,r,n);var w,f=y?E.sv("rect",{x:x[0]+n.stroke/4,y:"asc"===this.config.direction?x[1]+x[3]-this._headerHeight-n.stroke/2:x[1]+n.stroke/4,width:x[2]-n.stroke/2,height:this._headerHeight+n.stroke/4,stroke:p,"stroke-width":n.stroke/2,class:"treeMap-header",_key:d,onclick:function(){return a._toggleGroup(d)}}):null,v=y?E.sv("text",{x:x[0]+x[2]/2,y:"asc"===this.config.direction?x[1]+x[3]-this._headerHeight/2-n.stroke/2:x[1]+this._headerHeight/2+n.stroke/2,class:"header-text","aria-hidden":"true",transform:"asc"===this.config.direction?"rotate(180 "+(x[0]+x[2]/2)+" "+(x[1]+x[3]-this._headerHeight/2-n.stroke/2)+")":""},[_?D.verticalCenteredText(_(null==u?void 0:u.toString())):D.verticalCenteredText(null==u?void 0:u.toString())]):null,r=s&&0<l&&u?E.sv("g",{},[f,v]):null,y=_?_(null==u?void 0:u.toString()):null==u?void 0:u.toString(),f=D.getSizesSVGText(y,{font:"normal 12px Roboto",lineHeight:14})[0]<x[2]-2*n.stroke,v=S.uid(),_=x[2]>2*n.stroke&&x[3]>2*n.stroke?E.sv("clipPath",{id:v,"clip-rule":"nonzero"},[E.sv("rect",{x:x[0]+n.stroke,y:x[1]+n.stroke,width:x[2]-2*n.stroke,height:x[3]-2*n.stroke,fill:"none",stroke:"black"})]):null,e=E.sv("rect",C(C({},(w=l,{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":(u||"")+", "+c+" ("+D.roundToTwoNumAfterPoint(w)+"%)"})),{x:x[0],y:x[1],width:x[2],height:x[3],stroke:p,"stroke-width":n.stroke,class:"chart treeMap",_key:d,fill:h,onclick:[this._handlers.onclick,t[1],t[2]],onmousemove:1<this._maxLevel&&1===this._getDataLevel(d)?"":[this._handlers.onmousemove,i[e][2],this.id],onmouseleave:1<this._maxLevel&&1===this._getDataLevel(d)?"":[this._handlers.onmouseleave,i[e][2],this.id]})),y=g?E.sv("text",{x:f?b[0]:x[0]+n.stroke,y:b[1],class:"treeMap-inner-value "+(f?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'+v+'")',transform:"asc"===this.config.direction?"rotate(180 "+b[0]+" "+b[1]+")":""},[D.verticalCenteredText(y)]):null;return s&&r&&(x[1]+="asc"===this.config.direction?0:this._headerHeight,x[3]-=this._headerHeight+n.stroke/4),[e,y,_,m,o,x,r]}},l.prototype._getBar=function(t,e,i,n,l,c,d){var o,r,s,a,u=this,h=function(t,e,i,n){for(var o={area:0,width:t.width,height:t.height},r=e;r<=i;r++)o.area+=l[r][0]*d;"rows"===n?o.width=o.area/o.height:o.height=o.area/o.width;var s="rows"===n?o.width:t.area/o.height,a="rows"===n?t.area/o.width:o.height;return(s/a>u._aspectRatio||a/s>u._aspectRatio)&&.01<l[c][0]&&i!==u._points.length-1?h(t,e,i+1,n):[s,a,o]},f=i,p=n,g=t.restWidth>t.restHeight?"cols":"rows",_="cols"==g?"rows":"cols",v="cols"==g?e/t.restHeight:t.restWidth,m="cols"==g?t.restHeight:e/t.restWidth;return(m/v>this._aspectRatio||v/m>this._aspectRatio)&&0!==Math.round(e-t.restArea)&&c<l.length-2&&e<t.restArea?(o=void 0,r={id:S.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:S.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=S.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:S.uid(),area:e,width:v,height:m},t[_]&&t.restArea.toFixed(2)>e.toFixed(2)?(a=S.uid(),t[_].push(((_={id:a,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"==g?t.restWidth-v:t.restWidth,restHeight:"cols"==g?t.restHeight:t.restHeight-m})[g]=[r],_)),r.parent=a):((t.cols||t.rows).push(r),r.parent=t.id,"cols"==g?t.restWidth-=v:t.restHeight-=m),"cols"==g?(f+=v,p=0===Math.round(t.restArea-e)?p+m:p):(p+=m,f=0===Math.round(t.restArea-e)?f+v:f)),[[i,n,r.width,r.height],[i+r.width/2,n+r.height/2],f,p,r.parent]},l.prototype._setDefaults=function(t){this.config=C(C({},{active:!0,stroke:"#FFFFFF",strokeWidth:2,showText:!0,tooltip:!0,paddings:5,color:"none",fill:"none",direction:"desc"}),t),this._headerHeight=25,this._aspectRatio=2.5,this._valueLocator=D.locator(t.value),this._textLocator=D.locator(t.text)},l.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},l.prototype._getSerie=function(i,n){var o=this;return this.config.treeSeries.find(function(t){if(n){var e=o._data.getParent(i);return t.id===e||t.id===i}return t.from&&t.to&&i>=t.from&&i<t.to||t.less&&i<t.less||t.greater&&i>t.greater})},l.prototype._getDataLevel=function(t){var e=1;return this._data.eachParent(t,function(){e++}),e},l.prototype._getMaxLevel=function(){var e=this,i=1;return this._data.forEach(function(t){t=e._getDataLevel(t.id);i=Math.max(t,i)}),i},l.prototype._getDeepParent=function(t){var e=null===(e=t.cols||t.rows)||void 0===e?void 0:e.find(function(t){return t.restArea&&0<Math.round(t.restArea)});return e?this._getDeepParent(e):t},l.prototype._getLayoutObj=function(t,e){var i;if(void 0===e&&(e=this._layout),e.id===t)i=e;else{var n=e.cols||e.rows;if(!n||!n.length)return;for(var o=0;o<n.length&&!(i=this._getLayoutObj(t,n[o]));o++);}return i},l.prototype._recountParentArea=function(t,e,i){e=this._getLayoutObj(e,i);e&&e.id!==i.parent&&(e.restArea-=t,e.parent&&this._recountParentArea(t,e.parent,i))},l.prototype._toggleGroup=function(e){var i=this,n=0;this.config.treeSeries.forEach(function(t){t.active&&n++}),this._data.eachChild(this._data.getRoot(),function(t){t.id!==e&&("groupName"===i.config.legendType?(1<n&&(i._getSerie(t.id,!0).active=!0),i._events.fire(a.ChartEvents.toggleSeries,[t.id])):(t.$hidden=!t.$hidden,i._events.fire(s.DataEvents.change)))},!1)},l);function l(){return null!==r&&r.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};Object.defineProperty(e,"__esModule",{value:!0});var a,v=i(1),E=i(13),D=i(0),m=i(6),l=i(3),i=i(19),o=(a=i.default,o(c,a),c.prototype.scaleReady=function(t){for(var e in t)t[e]+=this.config.paddings;return t},c.prototype.dataReady=function(){var a,l,c=this,d=[];this._years=[],this._points=[],this.config.startDate&&(a="string"==typeof this.config.startDate?E.stringToDate(this.config.startDate,this.config.dateFormat):this.config.startDate),this.config.endDate&&(l="string"==typeof this.config.endDate?E.stringToDate(this.config.endDate,this.config.dateFormat):this.config.endDate),(null==l?void 0:l.getTime())<(null==a?void 0:a.getTime())&&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);"string"==typeof n&&(n=E.stringToDate(n,c.config.dateFormat));var e=null===n||void 0===n?void 0:n.getTime(),o=(null===(s=t.id)||void 0===s?void 0:s.toString())||v.uid();if(a||l){var r=E.DateHelper.dayStart(n).getTime(),t=a&&E.DateHelper.dayStart(a).getTime()||0,s=l&&E.DateHelper.dayStart(l).getTime()||1/0;if(r<t||s<r)return}r=d.findIndex(function(t){var e=t[0],t=t[1],e=E.DateHelper.isSameDay(new Date(e),n);return e&&(i+=t),e});-1<r&&(d[r]=[e,i,o]),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,o])}),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);var t=a||new Date(d[0][0]),e=l||new Date(d[d.length-1][0]),i=t.getFullYear(),n=e.getFullYear();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));for(var o=0,r=new Date(a.getTime()),s=new Date(l.getFullYear(),l.getMonth(),l.getDate()+1);!E.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(;!E.DateHelper.isSameDay(r,u);)this._points.push([r.getTime(),0,v.uid()]),h();this._points.push(d[o]),o+=1}else E.DateHelper.isSameDay(r,u)?this._points.push(d[o]):this._points.push([r.getTime(),0,v.uid()]);else this._points.push([r.getTime(),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 m,y,x=this,i=this.config,n=i.days,b=i.months;switch(this.config.weekStart){case"saturday":m=-1;break;case"monday":m=1;break;default:m=0}switch(this.config.weekStart){case"saturday":y=s([null==n?void 0:n[6]],n.slice(0,-1));break;case"monday":y=s(n.slice(1),[null==n?void 0:n[0]]);break;default:y=n}var w=[],i=[],C=0,S=0;this._years.forEach(function(t,i){for(var e=t.year,n=t.startIndex,o=new Date(e,0,1),r=[],s=[],a=0,l=1,c=n;c<x._points.length&&c!==(null===(v=x._years[i+1])||void 0===v?void 0:v.startIndex);c++){var d=x._points[c],u=d[0],h=d[1],f=d[2],p=new Date;p.setTime(u);var g=p.getMonth(),_=E.DateHelper.addDay(p,-1*m).getDay();0!==_||E.DateHelper.isSameDay(o,p)||(l+=1);var v=0<=h?h/x._maxValue||0:h/x._minValue||0;0<x._maxValue*x._minValue&&(v=(h-x._minValue)/(x._maxValue-x._minValue));d=10+l*(x._cellSize+2),u=.5+(_+1)*(x._cellSize+2)+i*(y.length*x._cellSize+x._headerHeight);6===_&&(S=u+4*x._cellSize),r.push(D.sv("rect",{x:d,y:u,fill:x.config.color,width:x._cellSize,height:x._cellSize,onclick:[x._handlers.onclick,h,f],onmousemove:[x._handlers.onmousemove,f,x.id],onmouseleave:[x._handlers.onmouseleave,f,x.id],class:x.config.color?"":"heat-neutral"},[]));_="";0<=h&&!x.config.positiveColor?_="heat-positive":h<0&&!x.config.negativeColor&&(_="heat-negative"),0!==v&&r.push(D.sv("rect",{x:d,y:u,fill:0<=h?x.config.positiveColor:x.config.negativeColor,"fill-opacity":isFinite(v)?v:0,width:x._cellSize,height:x._cellSize,onclick:[x._handlers.onclick,h,f],onmousemove:[x._handlers.onmousemove,f,x.id],onmouseleave:[x._handlers.onmouseleave,f,x.id],class:_},[])),a=d+x._cellSize,1===p.getDate()&&(d=null==b?void 0:b[g],p=10+l*(x._cellSize+2),g=x._cellSize-2+i*(y.length*x._cellSize+x._headerHeight)+y.length*(x._cellSize+2)+4.5,d=D.sv("text",{x:p,y:8+g+12.5,class:"start-text"},[d]),g=D.sv("rect",{x:p,y:g,height:8,width:1}),s.push(D.sv("g",{class:"heat-month-text"},[g,d])))}t=y.map(function(t,e){return D.sv("text",{x:20,y:.5+(e+1)*(x._cellSize+2)+x._cellSize/2+i*(y.length*x._cellSize+x._headerHeight),class:"end-text heat-day-text"},[D.sv("tspan",{dy:"0.5ex"},[t])])}),n=D.sv("text",{x:10+x._cellSize+2,y:x._cellSize-4+i*(y.length*x._cellSize+x._headerHeight),class:"start-text heat-year-text"},[e]);w.push(D.sv("g",{id:e+"_year"},[n,s,t,r])),C=a<C?C:a});i.push(D.sv("defs",[])),i=i.concat(w);e=e/S<1?e/S:1,t=(t-C*e)/2;return D.sv("g",r(r({id:"seria"+this.config.id},{"aria-label":"chart "+(this.config.text||"")}),{tabindex:0,transform:"translate("+(0<t?t:0)+", 26) scale("+e+")"}),i)},c.prototype._setDefaults=function(t){this.config=r(r({},{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=l.locator(t.value),this._dateLocator=l.locator(t.date)},c.prototype._defaultLocator=function(t){return[this._valueLocator(t),E.getFormattedDate("%d/%m/%y",this._dateLocator(t))]},c);function c(){return null!==a&&a.apply(this,arguments)||this}e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=i(0),i=(n.prototype.add=function(t){this._series.push(t)},n.prototype.dataReady=function(e){return this._toPaint=this._series.filter(function(t){t=t.dataReady(e);return!!t.length&&(e=t,!0)}),e||[]},n.prototype.getPoints=function(){return this._toPaint.length?this._toPaint[0].getPoints().concat(this._toPaint[this._toPaint.length-1].getPoints()):[]},n.prototype.paint=function(n,o,r){var s=[],a=[];return this._toPaint.forEach(function(t){var e,i;t.paintformAndMarkers?(i=(e=t.paintformAndMarkers(n,o,r))[0],e=e[1],s.push(i),a.push(e)):(i=t.paint(n,o,r),s.push(i)),r=t.getPoints()}),l.sv("g",s.concat(a))},n);function n(){this._series=[]}e.default=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var g=i(58),s=i(3),_=i(63),n=i(17),i=(o.prototype.destructor=function(){this._tooltip&&(document.body.removeChild(this._tooltip),this._tooltip=null)},o.prototype._showLineTooltip=function(t){for(var e,i,n,o,r,s="",a=this._chart.getRootView(),l=0,c=0,d=t;c<d.length;c++){var u,h,f,p=d[c];l+=p.top,this._prevLine=a&&a.refs&&a.refs["line"+Math.round(p.left)]&&a.refs["line"+Math.round(p.left)].el,this._prevLine.classList.add("grid-line__active"),!p.text||(h=(u=this._chart.getSeries(p.seriaId)).getPoints()).length&&u.config.tooltip&&(f=u.config.pointColor||(u.config.color&&"none"!==u.config.color?u.config.color:u.config.fill),f=_.getShadeHTMLHelper("empty"!==u.config.pointType&&u.config.pointType?u.config.pointType:"simpleRect",f),s+='<div class="line-point" _ref="dhx_tooltip_'+u.config.id+'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">'+f(4,4,h[0][2])+'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_'+u.config.id+'_text">'+p.text+"</span>\n\t\t\t</div>")}s&&(this._tooltip||this._createTooltip(),e=document.body.offsetHeight,r=document.body.offsetWidth,this._tooltip.innerHTML=s,this._tooltip.classList.add("dhx_chart_tooltip__visible"),o=l/t.length,i=this._prevLine.getBoundingClientRect(),n=this._tooltip.offsetHeight,t=this._tooltip.offsetWidth,e<(o=o-n/2+i.top+window.scrollY)+n&&(o-=o+n-e),r<(r=i.left+10)+t&&(r=i.left-t-10),(t=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=t.toString()),this._tooltip.style.left=r+"px",this._tooltip.style.top=o+"px")},o.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var i=document.body.offsetHeight,n=document.body.offsetWidth;this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible");var o=this._tooltip.offsetHeight,r=this._tooltip.offsetWidth,s=e.pageY+10,t=e.pageX+10;i<s+o&&(s=e.pageY-o),n<t+r&&(t=e.pageX-r-10);r=g.getZIndex(this._chart.getRootNode());r&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=t+"px",this._tooltip.style.top=s+"px"},o.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e,i,n,o,r=this._chart.getSeries(t[4]);!r||(o=r.getTooltipText(t[3]))&&(e=this._chart._layers.getSizes(),i=this._chart.getRootNode().getBoundingClientRect(),this._tooltip.innerHTML=o,this._tooltip.classList.add("dhx_chart_tooltip__visible"),n=document.body.offsetHeight,r=this._tooltip.offsetHeight,n<(o=t[2]+i.top+r/2+e.top-("radar"===this._chart.config.type?10:15))+r&&(o=t[2]+i.top-r/2+e.top-("radar"===this._chart.config.type?10:15)),n<o+r&&this._tooltip.classList.remove("dhx_chart_tooltip__visible"),(r=g.getZIndex(this._chart.getRootNode()))&&(this._tooltip.style.zIndex=r.toString()),this._tooltip.style.left=i.left+t[1]+10+"px",this._tooltip.style.top=o+"px")},o.prototype._createTooltip=function(){this._tooltip=document.createElement("div"),this._tooltip.setAttribute("data-dhx-widget-id",this._chart._uid),this._tooltip.classList.add("dhx_chart_tooltip","dhx_chart_tooltip_line","dhx_chart_tooltip__hidden","tooltip-text"),document.body.appendChild(this._tooltip)},o.prototype._initEvents=function(){var a=this;this._chart.events.on(n.ChartEvents.chartMouseMove,function(n,o){var r,s;a._prevLine&&a._prevLine.classList.remove("grid-line__active"),a._mouseOverBar||(r=[],s=[1/0,null,null,null,null],a._chart.eachSeries(function(t){var e,i=t.config.type;"line"===i||"spline"===i||"splineArea"===i||"area"===i?"number"==typeof(e={value:(e=t.getClosestVertical(n))[4],text:t.getTooltipText(e[3]),seriaId:t.config.id,left:e[1],top:e[2]}).left&&"number"==typeof e.top&&r.push(e):"pie"!==i&&"pie3D"!==i&&"donut"!==i&&"radar"!==i||(i=t.getClosest(n,o),s[0]>i[0]&&(s[0]=i[0],s[1]=i[1],s[2]=i[2],s[3]=i[3],s[4]=t.id))}),r.length?(r.sort(function(t,e){return e.value-t.value}),a._showLineTooltip(r)):a._showTooltipOnClosest(s))}),this._chart.events.on(n.ChartEvents.seriaMouseMove,function(t,e,i){a._mouseOverBar=!0;var n=a._chart.getRootView(),o=a._chart.getSeries(e),r=o.getTooltipText(t),e=n&&n.refs&&n.refs[s.calcPointRef(t,e)].el;null!=e&&e.setAttribute("fill-opacity",.6<o.config.alpha?o.config.alpha-.4:1),r?a._showTooltip(r,i):a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.seriaMouseLeave,function(t,e){a._mouseOverBar=!1;var i=a._chart.getRootView(),n=a._chart.getSeries(e);"area"===n.config.type||"treeMap"===n.config.type||"calendarHeatMap"===n.config.type||null!=(e=i&&i.refs&&i.refs[s.calcPointRef(t,e)].el)&&e.setAttribute("fill-opacity",n.config.alpha),a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible")}),this._chart.events.on(n.ChartEvents.chartMouseLeave,function(){a._tooltip&&a._tooltip.classList.remove("dhx_chart_tooltip__visible"),a._prevLine&&a._prevLine.classList.remove("grid-line__active")})},o);function o(t){this._chart=t,this._initEvents()}e.Tooltip=i},function(t,e,i){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(2),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._rawExport=function(t,e,i){void 0===t&&(t={}),t.url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e&&(n=t.pdf||{},t.pdf=r(r({},n),{printBackground:!1}));var e="",n=i.config.exportStyles;"boolean"!=typeof t.exportStyles&&!Array.isArray(t.exportStyles)||(n=t.exportStyles),!0===n?e=s.getPageLinksCss()+"<style>"+s.getPageInlineCss()+"</style>":null!=n&&n.length&&(e=""+s.getPageLinksCss(n));n=document.createElement("div");n.setAttribute("style","display: none;");i=i.getRootView().node.el.cloneNode(!0);i.setAttribute("data-dhx-theme",t.theme||"light"),n.appendChild(i);var e="\n\t\t\t"+e+"\n\t\t\t"+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=e,o.childNodes[1].value=JSON.stringify(t),document.body.appendChild(o),o.submit(),null!==(t=n.parentNode)&&void 0!==t&&t.removeChild(n),setTimeout(function(){var t;null!==(t=o.parentNode)&&void 0!==t&&t.removeChild(o)},100)},n);function n(t,e){this._name=t,this._view=e,this._version="8.1.8"}e.Exporter=i}],o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/codebase/",o(o.s=66);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var i,n}),window.dhx_legacy){if(window.dhx)for(var key in dhx)dhx_legacy[key]=dhx[key];window.dhx=dhx_legacy,delete window.dhx_legacy}
|