tg-ganttchart 0.0.7 → 0.0.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/babel.config.js +5 -0
- package/package.json +1 -4
- package/src/.eslintrc.js +18 -0
- package/src/App.vue +780 -0
- package/src/GanttElastic.standalone.vue +48 -0
- package/src/GanttElastic.vue +2305 -0
- package/src/assets/logo.png +0 -0
- package/src/components/Calendar/Calendar.vue +559 -0
- package/src/components/Calendar/CalendarRow.vue +112 -0
- package/src/components/Chart/Chart.vue +117 -0
- package/src/components/Chart/DaysHighlight.vue +60 -0
- package/src/components/Chart/DependencyLines.vue +112 -0
- package/src/components/Chart/Grid.vue +205 -0
- package/src/components/Chart/ProgressBar.vue +110 -0
- package/src/components/Chart/Row/Epic.vue +131 -0
- package/src/components/Chart/Row/Milestone.vue +117 -0
- package/src/components/Chart/Row/Project.vue +132 -0
- package/src/components/Chart/Row/Story.vue +127 -0
- package/src/components/Chart/Row/Subtask.vue +117 -0
- package/src/components/Chart/Row/Task.mixin.js +47 -0
- package/src/components/Chart/Row/Task.vue +82 -0
- package/src/components/Chart/Text.vue +105 -0
- package/src/components/Expander.vue +114 -0
- package/src/components/GanttElastic.standalone.vue +48 -0
- package/src/components/GanttElastic.vue +1646 -0
- package/src/components/Header/GanttViewFilter.vue +154 -0
- package/src/components/Header/Header.vue +266 -0
- package/src/components/MainView.vue +283 -0
- package/src/components/TaskList/ItemColumn.vue +212 -0
- package/src/components/TaskList/TaskList.vue +45 -0
- package/src/components/TaskList/TaskListHeader.vue +143 -0
- package/src/components/TaskList/TaskListItem.vue +35 -0
- package/src/components/bundle.js +28 -0
- package/src/components/components/Calendar/Calendar.vue +332 -0
- package/src/components/components/Calendar/CalendarRow.vue +96 -0
- package/src/components/components/Chart/Chart.vue +111 -0
- package/src/components/components/Chart/DaysHighlight.vue +71 -0
- package/src/components/components/Chart/DependencyLines.vue +112 -0
- package/src/components/components/Chart/Grid.vue +164 -0
- package/src/components/components/Chart/ProgressBar.vue +110 -0
- package/src/components/components/Chart/Row/Milestone.vue +117 -0
- package/src/components/components/Chart/Row/Project.vue +131 -0
- package/src/components/components/Chart/Row/Task.mixin.js +46 -0
- package/src/components/components/Chart/Row/Task.vue +107 -0
- package/src/components/components/Chart/Text.vue +105 -0
- package/src/components/components/Expander.vue +126 -0
- package/src/components/components/Header/Header.vue +265 -0
- package/src/components/components/MainView.vue +282 -0
- package/src/components/components/TaskList/ItemColumn.vue +121 -0
- package/src/components/components/TaskList/TaskList.vue +45 -0
- package/src/components/components/TaskList/TaskListHeader.vue +143 -0
- package/src/components/components/TaskList/TaskListItem.vue +35 -0
- package/src/components/components/bundle.js +28 -0
- package/src/components/style.js +308 -0
- package/src/index.js +12 -0
- package/src/main.js +6 -0
- package/src/style.js +398 -0
- package/vue.config.js +42 -0
- package/dist/demo.html +0 -1
- package/dist/tgganttchart.common.js +0 -9232
- package/dist/tgganttchart.common.js.map +0 -1
- package/dist/tgganttchart.css +0 -1
- package/dist/tgganttchart.umd.js +0 -9243
- package/dist/tgganttchart.umd.js.map +0 -1
- package/dist/tgganttchart.umd.min.js +0 -7
- package/dist/tgganttchart.umd.min.js.map +0 -1
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["tgganttchart"]=e(require("vue")):t["tgganttchart"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={4353:function(t){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",s="second",i="minute",n="hour",a="day",l="week",c="month",u="quarter",h="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var o=String(t);return!o||o.length>=e?t:""+Array(e+1-o.length).join(r)+t},v={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),o=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+g(o,2,"0")+":"+g(s,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var o=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(o,c),i=r-s<0,n=e.clone().add(o+(i?-1:1),c);return+(-(o+(r-s)/(i?s-n:n-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:l,d:a,D:d,h:n,m:i,s:s,ms:o,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",w={};w[b]=y;var x="$isDayjsObject",k=function(t){return t instanceof T||!(!t||!t[x])},_=function t(e,r,o){var s;if(!e)return b;if("string"==typeof e){var i=e.toLowerCase();w[i]&&(s=i),r&&(w[i]=r,s=i);var n=e.split("-");if(!s&&n.length>1)return t(n[0])}else{var a=e.name;w[a]=e,s=a}return!o&&s&&(b=s),s||!o&&b},O=function(t,e){if(k(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new T(r)},S=v;S.l=_,S.i=k,S.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=function(){function y(t){this.$L=_(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[x]=!0}var g=y.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var o=e.match(f);if(o){var s=o[2]-1||0,i=(o[7]||"0").substring(0,3);return r?new Date(Date.UTC(o[1],s,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],s,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(t,e){var r=O(t);return this.startOf(e)<=r&&r<=this.endOf(e)},g.isAfter=function(t,e){return O(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<O(t)},g.$g=function(t,e,r){return S.u(t)?this[e]:this.set(r,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var r=this,o=!!S.u(e)||e,u=S.p(t),p=function(t,e){var s=S.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return o?s:s.endOf(a)},f=function(t,e){return S.w(r.toDate()[t].apply(r.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case h:return o?p(1,0):p(31,11);case c:return o?p(1,y):p(0,y+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(o?g-w:g+(6-w),y);case a:case d:return f(v+"Hours",0);case n:return f(v+"Minutes",1);case i:return f(v+"Seconds",2);case s:return f(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var r,l=S.p(t),u="set"+(this.$u?"UTC":""),p=(r={},r[a]=u+"Date",r[d]=u+"Date",r[c]=u+"Month",r[h]=u+"FullYear",r[n]=u+"Hours",r[i]=u+"Minutes",r[s]=u+"Seconds",r[o]=u+"Milliseconds",r)[l],f=l===a?this.$D+(e-this.$W):e;if(l===c||l===h){var m=this.clone().set(d,1);m.$d[p](f),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[S.p(t)]()},g.add=function(o,u){var d,p=this;o=Number(o);var f=S.p(u),m=function(t){var e=O(p);return S.w(e.date(e.date()+Math.round(t*o)),p)};if(f===c)return this.set(c,this.$M+o);if(f===h)return this.set(h,this.$y+o);if(f===a)return m(1);if(f===l)return m(7);var y=(d={},d[i]=e,d[n]=r,d[s]=t,d)[f]||1,g=this.$d.getTime()+o*y;return S.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var o=t||"YYYY-MM-DDTHH:mm:ssZ",s=S.z(this),i=this.$H,n=this.$m,a=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,h=function(t,r,s,i){return t&&(t[r]||t(e,o))||s[r].slice(0,i)},d=function(t){return S.s(i%12||12,t,"0")},f=u||function(t,e,r){var o=t<12?"AM":"PM";return r?o.toLowerCase():o};return o.replace(m,(function(t,o){return o||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return S.s(e.$y,4,"0");case"M":return a+1;case"MM":return S.s(a+1,2,"0");case"MMM":return h(r.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return S.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,l,2);case"ddd":return h(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(i);case"HH":return S.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(i,n,!0);case"A":return f(i,n,!1);case"m":return String(n);case"mm":return S.s(n,2,"0");case"s":return String(e.$s);case"ss":return S.s(e.$s,2,"0");case"SSS":return S.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(o,d,p){var f,m=this,y=S.p(d),g=O(o),v=(g.utcOffset()-this.utcOffset())*e,b=this-g,w=function(){return S.m(m,g)};switch(y){case h:f=w()/12;break;case c:f=w();break;case u:f=w()/3;break;case l:f=(b-v)/6048e5;break;case a:f=(b-v)/864e5;break;case n:f=b/r;break;case i:f=b/e;break;case s:f=b/t;break;default:f=b}return p?f:S.a(f)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return w[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),o=_(t,e,!0);return o&&(r.$L=o),r},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},y}(),P=T.prototype;return O.prototype=P,[["$ms",o],["$s",s],["$m",i],["$H",n],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){P[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,T,O),t.$i=!0),O},O.locale=_,O.isDayjs=k,O.unix=function(t){return O(1e3*t)},O.en=w[b],O.Ls=w,O.p={},O}))},378:function(t,e,r){(function(e,o){t.exports=o(r(9274))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function r(o){if(e[o])return e[o].exports;var s=e[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)r.d(o,s,function(e){return t[e]}.bind(null,s));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"091b":function(t,e,r){var o=r("24fb");e=o(!1),e.push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),t.exports=e},"24fb":function(t,e,r){"use strict";function o(t,e){var r=t[1]||"",o=t[3];if(!o)return r;if(e&&"function"===typeof btoa){var i=s(o),n=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[r].concat(n).concat([i]).join("\n")}return[r].join("\n")}function s(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(r," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=o(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,o){"string"===typeof t&&(t=[[null,t,""]]);var s={};if(o)for(var i=0;i<this.length;i++){var n=this[i][0];null!=n&&(s[n]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);o&&s[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),e.push(l))}},e}},2638:function(t,e,r){"use strict";function o(){return o=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var o in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)}var s=["attrs","props","domProps"],i=["class","style","directives"],n=["on","nativeOn"],a=function(t){return t.reduce((function(t,e){for(var r in e)if(t[r])if(-1!==s.indexOf(r))t[r]=o({},t[r],e[r]);else if(-1!==i.indexOf(r)){var a=t[r]instanceof Array?t[r]:[t[r]],c=e[r]instanceof Array?e[r]:[e[r]];t[r]=a.concat(c)}else if(-1!==n.indexOf(r))for(var u in e[r])if(t[r][u]){var h=t[r][u]instanceof Array?t[r][u]:[t[r][u]],d=e[r][u]instanceof Array?e[r][u]:[e[r][u]];t[r][u]=h.concat(d)}else t[r][u]=e[r][u];else if("hook"==r)for(var p in e[r])t[r][p]=t[r][p]?l(t[r][p],e[r][p]):e[r][p];else t[r]=e[r];else t[r]=e[r];return t}),{})},l=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=a},"499e":function(t,e,r){"use strict";function o(t,e){for(var r=[],o={},s=0;s<e.length;s++){var i=e[s],n=i[0],a=i[1],l=i[2],c=i[3],u={id:t+":"+s,css:a,media:l,sourceMap:c};o[n]?o[n].parts.push(u):r.push(o[n]={id:n,parts:[u]})}return r}r.r(e),r.d(e,"default",(function(){return f}));var s="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},n=s&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,u=function(){},h=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,r,s){c=r,h=s||{};var n=o(t,e);return m(n),function(e){for(var r=[],s=0;s<n.length;s++){var a=n[s],l=i[a.id];l.refs--,r.push(l)}for(e?(n=o(t,e),m(n)):n=[],s=0;s<r.length;s++)if(l=r[s],0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete i[l.id]}}}function m(t){for(var e=0;e<t.length;e++){var r=t[e],o=i[r.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](r.parts[s]);for(;s<r.parts.length;s++)o.parts.push(g(r.parts[s]));o.parts.length>r.parts.length&&(o.parts.length=r.parts.length)}else{var n=[];for(s=0;s<r.parts.length;s++)n.push(g(r.parts[s]));i[r.id]={id:r.id,refs:1,parts:n}}}}function y(){var t=document.createElement("style");return t.type="text/css",n.appendChild(t),t}function g(t){var e,r,o=document.querySelector("style["+d+'~="'+t.id+'"]');if(o){if(c)return u;o.parentNode.removeChild(o)}if(p){var s=l++;o=a||(a=y()),e=b.bind(null,o,s,!1),r=b.bind(null,o,s,!0)}else o=y(),e=w.bind(null,o),r=function(){o.parentNode.removeChild(o)};return e(t),function(o){if(o){if(o.css===t.css&&o.media===t.media&&o.sourceMap===t.sourceMap)return;e(t=o)}else r()}}var v=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}();function b(t,e,r,o){var s=r?"":o.css;if(t.styleSheet)t.styleSheet.cssText=v(e,s);else{var i=document.createTextNode(s),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(i,n[e]):t.appendChild(i)}}function w(t,e){var r=e.css,o=e.media,s=e.sourceMap;if(o&&t.setAttribute("media",o),h.ssrId&&t.setAttribute(d,e.id),s&&(r+="\n/*# sourceURL="+s.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},"4abb":function(t,e,r){var o=r("7a57");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=r("499e").default;s("b2af7572",o,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,r){var o=r("091b");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=r("499e").default;s("2f6bee1a",o,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,r){var o=r("eef2");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=r("499e").default;s("1209fd47",o,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,r){"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* vue-class-component v7.0.1
|
|
4
|
-
* (c) 2015-present Evan You
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/function o(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}Object.defineProperty(e,"__esModule",{value:!0});var s=o(r("8bbf")),i="undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function n(t,e){a(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(r){a(t.prototype,e.prototype,r)})),Object.getOwnPropertyNames(e).forEach((function(r){a(t,e,r)}))}function a(t,e,r){var o=r?Reflect.getOwnMetadataKeys(e,r):Reflect.getOwnMetadataKeys(e);o.forEach((function(o){var s=r?Reflect.getOwnMetadata(o,e,r):Reflect.getOwnMetadata(o,e);r?Reflect.defineMetadata(o,s,t,r):Reflect.defineMetadata(o,s,t)}))}var l={__proto__:[]},c=l instanceof Array;function u(t){return function(e,r,o){var s="function"===typeof e?e:e.constructor;s.__decorators__||(s.__decorators__=[]),"number"!==typeof o&&(o=void 0),s.__decorators__.push((function(e){return t(e,r,o)}))}}function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s.extend({mixins:t})}function d(t){var e=typeof t;return null==t||"object"!==e&&"function"!==e}function p(t,e){var r=e.prototype._init;e.prototype._init=function(){var e=this,r=Object.getOwnPropertyNames(t);if(t.$options.props)for(var o in t.$options.props)t.hasOwnProperty(o)||r.push(o);r.forEach((function(r){"_"!==r.charAt(0)&&Object.defineProperty(e,r,{get:function(){return t[r]},set:function(e){t[r]=e},configurable:!0})}))};var o=new e;e.prototype._init=r;var s={};return Object.keys(o).forEach((function(t){void 0!==o[t]&&(s[t]=o[t])})),s}var f=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function m(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var r=t.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(f.indexOf(t)>-1)e[t]=r[t];else{var o=Object.getOwnPropertyDescriptor(r,t);void 0!==o.value?"function"===typeof o.value?(e.methods||(e.methods={}))[t]=o.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return e={},e[t]=o.value,e}}):(o.get||o.set)&&((e.computed||(e.computed={}))[t]={get:o.get,set:o.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return p(this,t)}});var o=t.__decorators__;o&&(o.forEach((function(t){return t(e)})),delete t.__decorators__);var a=Object.getPrototypeOf(t.prototype),l=a instanceof s?a.constructor:s,c=l.extend(e);return y(c,t,l),i&&n(c,t),c}function y(t,e,r){Object.getOwnPropertyNames(e).forEach((function(o){if("prototype"!==o){var s=Object.getOwnPropertyDescriptor(t,o);if(!s||s.configurable){var i=Object.getOwnPropertyDescriptor(e,o);if(!c){if("cid"===o)return;var n=Object.getOwnPropertyDescriptor(r,o);if(!d(i.value)&&n&&n.value===i.value)return}Object.defineProperty(t,o,i)}}}))}function g(t){return"function"===typeof t?m(t):function(e){return m(e,t)}}g.registerHooks=function(t){f.push.apply(f,t)},e.default=g,e.createDecorator=u,e.mixins=h},"7a57":function(t,e,r){var o=r("24fb");e=o(!1),e.push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),t.exports=e},8875:function(t,e,r){var o,s,i;(function(r,n){s=[],o=n,i="function"===typeof o?o.apply(e,s):o,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var r,o,s,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,n=/@([^@]*):(\d+):(\d+)\s*$/gi,a=i.exec(p.stack)||n.exec(p.stack),l=a&&a[1]||!1,c=a&&a[2]||!1,u=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");l===u&&(r=document.documentElement.outerHTML,o=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),s=r.replace(o,"$1").trim());for(var d=0;d<h.length;d++){if("interactive"===h[d].readyState)return h[d];if(h[d].src===l)return h[d];if(l===u&&h[d].innerHTML&&h[d].innerHTML.trim()===s)return h[d]}return null}}return t}))},"8bbf":function(e,r){e.exports=t},eef2:function(t,e,r){var o=r("24fb");e=o(!1),e.push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),t.exports=e},fb15:function(t,e,r){"use strict";if(r.r(e),r.d(e,"ERROR_TYPE",(function(){return J})),r.d(e,"VueSliderMark",(function(){return F})),r.d(e,"VueSliderDot",(function(){return C})),"undefined"!==typeof window){var o=window.document.currentScript,s=r("8875");o=s(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:s});var i=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var n=r("2638"),a=r.n(n);function l(t,e,r,o){var s,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(i<3?s(n):i>3?s(e,r,n):s(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n}var c=r("8bbf"),u=r.n(c),h=r("65d9"),d=r.n(h);function p(t,e){return void 0===e&&(e={}),Object(h["createDecorator"])((function(r,o){(r.props||(r.props={}))[o]=e,r.model={prop:o,event:t||o}}))}function f(t){return void 0===t&&(t={}),Object(h["createDecorator"])((function(e,r){(e.props||(e.props={}))[r]=t}))}function m(t,e){void 0===e&&(e={});var r=e.deep,o=void 0!==r&&r,s=e.immediate,i=void 0!==s&&s;return Object(h["createDecorator"])((function(e,r){"object"!==typeof e.watch&&(e.watch=Object.create(null));var s=e.watch;"object"!==typeof s[t]||Array.isArray(s[t])?"undefined"===typeof s[t]&&(s[t]=[]):s[t]=[s[t]],s[t].push({handler:r,deep:o,immediate:i})}))}function y(t){return y="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},y(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),t}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}function x(t,e){return x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},x(t,e)}function k(t){var e=S();return function(){var r,o=T(t);if(e){var s=T(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return _(this,r)}}function _(t,e){return!e||"object"!==y(e)&&"function"!==typeof e?O(t):e}function O(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}r("4ed8");var P=function(){var t=function(t){w(r,t);var e=k(r);function r(){return g(this,r),e.apply(this,arguments)}return b(r,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,attrs:{"aria-valuetext":"number"===typeof this.tooltipValue?this.tooltipValue.toString():this.tooltipValue},on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"===typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),r}(u.a);return l([f({default:0})],t.prototype,"value",void 0),l([f()],t.prototype,"tooltip",void 0),l([f()],t.prototype,"dotStyle",void 0),l([f()],t.prototype,"tooltipStyle",void 0),l([f({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],t.prototype,"tooltipPlacement",void 0),l([f({type:[String,Function]})],t.prototype,"tooltipFormatter",void 0),l([f({type:Boolean,default:!1})],t.prototype,"focus",void 0),l([f({default:!1})],t.prototype,"disabled",void 0),t=l([d()({name:"VueSliderDot"})],t),t}(),C=P;function E(t){return E="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},E(t)}function $(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function M(t,e,r){return e&&D(t.prototype,e),r&&D(t,r),t}function j(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}function L(t,e){return L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},L(t,e)}function z(t){var e=H();return function(){var r,o=I(t);if(e){var s=I(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return A(this,r)}}function A(t,e){return!e||"object"!==E(e)&&"function"!==typeof e?R(t):e}function R(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function H(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}r("556c");var V,W=function(){var t=function(t){j(r,t);var e=z(r);function r(){return $(this,r),e.apply(this,arguments)}return M(r,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle||{},e.style||{},e.active&&this.stepActiveStyle||{},e.active&&e.activeStyle||{}]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle||{},e.labelStyle||{},e.active&&this.labelActiveStyle||{},e.active&&e.labelActiveStyle||{}],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),r}(u.a);return l([f({required:!0})],t.prototype,"mark",void 0),l([f(Boolean)],t.prototype,"hideLabel",void 0),l([f()],t.prototype,"stepStyle",void 0),l([f()],t.prototype,"stepActiveStyle",void 0),l([f()],t.prototype,"labelStyle",void 0),l([f()],t.prototype,"labelActiveStyle",void 0),t=l([d()({name:"VueSlideMark"})],t),t}(),F=W,B=function(t){return"number"===typeof t?"".concat(t,"px"):t},N=function(t){var e=document.documentElement,r=document.body,o=t.getBoundingClientRect(),s={y:o.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||r.clientTop||0),x:o.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||r.clientLeft||0)};return s},Y=function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s="targetTouches"in t?t.targetTouches[0]:t,i=N(e),n={x:s.pageX-i.x,y:s.pageY-i.y};return{x:r?e.offsetWidth*o-n.x:n.x,y:r?e.offsetHeight*o-n.y:n.y}};(function(t){t[t["PAGE_UP"]=33]="PAGE_UP",t[t["PAGE_DOWN"]=34]="PAGE_DOWN",t[t["END"]=35]="END",t[t["HOME"]=36]="HOME",t[t["LEFT"]=37]="LEFT",t[t["UP"]=38]="UP",t[t["RIGHT"]=39]="RIGHT",t[t["DOWN"]=40]="DOWN"})(V||(V={}));var U=function(t,e){if(e.hook){var r=e.hook(t);if("function"===typeof r)return r;if(!r)return null}switch(t.keyCode){case V.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case V.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case V.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case V.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case V.END:return function(){return e.max};case V.HOME:return function(){return e.min};case V.PAGE_UP:return function(t){return t+10};case V.PAGE_DOWN:return function(t){return t-10};default:return null}};function X(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Z(t,e,r){return e&&G(t.prototype,e),r&&G(t,r),t}var q,J,K=function(){function t(e){X(this,t),this.num=e}return Z(t,[{key:"decimal",value:function(t,e){var r=this.num,o=this.getDecimalLen(r),s=this.getDecimalLen(t),i=0;switch(e){case"+":i=this.getExponent(o,s),this.num=(this.safeRoundUp(r,i)+this.safeRoundUp(t,i))/i;break;case"-":i=this.getExponent(o,s),this.num=(this.safeRoundUp(r,i)-this.safeRoundUp(t,i))/i;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(r,this.getExponent(o)),this.safeRoundUp(t,this.getExponent(s)))/this.getExponent(o+s);break;case"/":i=this.getExponent(o,s),this.num=this.safeRoundUp(r,i)/this.safeRoundUp(t,i);break;case"%":i=this.getExponent(o,s),this.num=this.safeRoundUp(r,i)%this.safeRoundUp(t,i)/i;break}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var e="".concat(t).split("e");return("".concat(e[0]).split(".")[1]||"").length-(e[1]?+e[1]:0)}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();function Q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach((function(e){ft(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function et(t,e){return st(t)||ot(t,e)||at(t,e)||rt()}function rt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ot(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],o=!0,s=!1,i=void 0;try{for(var n,a=t[Symbol.iterator]();!(o=(n=a.next()).done);o=!0)if(r.push(n.value),e&&r.length===e)break}catch(l){s=!0,i=l}finally{try{o||null==a["return"]||a["return"]()}finally{if(s)throw i}}return r}}function st(t){if(Array.isArray(t))return t}function it(t){return ct(t)||lt(t)||at(t)||nt()}function nt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function at(t,e){if(t){if("string"===typeof t)return ut(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ut(t,e):void 0}}function lt(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function ct(t){if(Array.isArray(t))return ut(t)}function ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function ht(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function pt(t,e,r){return e&&dt(t.prototype,e),r&&dt(t,r),t}function ft(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}(function(t){t[t["VALUE"]=1]="VALUE",t[t["INTERVAL"]=2]="INTERVAL",t[t["MIN"]=3]="MIN",t[t["MAX"]=4]="MAX",t[t["ORDER"]=5]="ORDER"})(J||(J={}));var mt=(q={},ft(q,J.VALUE,'The type of the "value" is illegal'),ft(q,J.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),ft(q,J.MIN,'The "value" must be greater than or equal to the "min".'),ft(q,J.MAX,'The "value" must be less than or equal to the "max".'),ft(q,J.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),q),yt=function(){function t(e){ht(this,t),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(J.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return pt(t,[{key:"setValue",value:function(t){var e=this;this.setDotsValue(Array.isArray(t)?this.order?it(t).sort((function(t,r){return e.getIndexByValue(t)-e.getIndexByValue(r)})):it(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,r=this.order?it(t).sort((function(t,e){return t-e})):t;this.dotsPos=r,this.setDotsValue(r.map((function(t){return e.getValueByPos(t)})),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var r=100;this.markList.forEach((function(o){var s=Math.abs(o.pos-t);s<r&&(r=s,e=o.value)}))}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map((function(e){return t.parseValue(e)}))}},{key:"getRecentDot",value:function(t){var e=this,r=this.dotsPos.filter((function(t,r){return!(e.getDotOption(r)&&e.getDotOption(r).disabled)})).map((function(e){return Math.abs(e-t)}));return r.indexOf(Math.min.apply(Math,it(r)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new K(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new K(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){t=this.getValidPos(t,e).pos;var r=t-this.dotsPos[e];if(r){var o=new Array(this.dotsPos.length);this.fixed?o=this.getFixedChangePosArr(r,e):this.minRange||this.maxRange?o=this.getLimitRangeChangePosArr(t,r,e):o[e]=r,this.setDotsPos(this.dotsPos.map((function(t,e){return t+(o[e]||0)})))}}},{key:"getFixedChangePosArr",value:function(t,e){var r=this;return this.dotsPos.forEach((function(o,s){if(s!==e){var i=r.getValidPos(o+t,s),n=i.pos,a=i.inRange;a||(t=Math.min(Math.abs(n-o),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(e){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,e,r){var o=this,s=[{index:r,changePos:e}],i=e;return[this.minRange,this.maxRange].forEach((function(n,a){if(!n)return!1;var l=0===a,c=e>0,u=0;u=l?c?1:-1:c?-1:1;var h=function(t,e){var r=Math.abs(t-e);return l?r<o.minRangeDir:r>o.maxRangeDir},d=r+u,p=o.dotsPos[d],f=t;while(o.isPos(p)&&h(p,f)){var m=o.getValidPos(p+i,d),y=m.pos;s.push({index:d,changePos:y-p}),d+=u,f=y,p=o.dotsPos[d]}})),this.dotsPos.map((function(t,e){var r=s.filter((function(t){return t.index===e}));return r.length?r[0].changePos:0}))}},{key:"isPos",value:function(t){return"number"===typeof t}},{key:"getValidPos",value:function(t,e){var r=this.valuePosRange[e],o=!0;return t<r[0]?(t=r[0],o=!1):t>r[1]&&(t=r[1],o=!1),{pos:t,inRange:o}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"===typeof t||"string"===typeof t){if(t=+t,t<this.min)return this.emitError(J.MIN),0;if(t>this.max)return this.emitError(J.MAX),0;if("number"!==typeof t||t!==t)return this.emitError(J.VALUE),0;t=new K(t).minus(this.min).divide(this.interval).toNumber()}var e=new K(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(e){var r=et(e,2),o=r[0],s=r[1];return t>=o&&t<=s}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new K(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new K(t).divide(new K(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,mt[t])}},{key:"getDotOption",value:function(t){return Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions}},{key:"getDotRange",value:function(t,e,r){if(!this.dotOptions)return r;var o=this.getDotOption(t);return o&&void 0!==o[e]?this.parseValue(o[e]):r}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,r){var o=t.parseValue(e);return tt({pos:o,value:e,label:e,active:t.isActiveByPos(o)},r)};return!0===this.marks?this.getValues().map((function(t){return e(t)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(t,e){return+t-+e})).map((function(r){var o=t.marks[r];return e(r,"string"!==typeof o?o:{label:o})})):Array.isArray(this.marks)?this.marks.map((function(t){return e(t)})):"function"===typeof this.marks?this.getValues().map((function(e){return{value:e,result:t.marks(e)}})).filter((function(t){var e=t.result;return!!e})).map((function(t){var r=t.value,o=t.result;return e(r,o)})):[]}},{key:"processArray",get:function(){if(this.process){if("function"===typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,it(this.dotsPos)),Math.max.apply(Math,it(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return t=this.data?this.data.length-1:new K(this.max).minus(this.min).divide(this.interval).toNumber(),t-Math.floor(t)!==0?(this.emitError(J.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,r=[];return e.forEach((function(o,s){r.push([Math.max(t.minRange?t.minRangeDir*s:0,t.enableCross?0:e[s-1]||0,t.getDotRange(s,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-s):100,t.enableCross?100:e[s+1]||100,t.getDotRange(s,"max",100))])})),r}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(e){return t.getIndexByValue(e)}))}}]),t}();function gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vt(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function bt(t,e,r){return e&&vt(t.prototype,e),r&&vt(t,r),t}var wt=function(){function t(e){gt(this,t),this.states=0,this.map=e}return bt(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();function xt(t,e){return Ot(t)||_t(t,e)||$t(t,e)||kt()}function kt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _t(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],o=!0,s=!1,i=void 0;try{for(var n,a=t[Symbol.iterator]();!(o=(n=a.next()).done);o=!0)if(r.push(n.value),e&&r.length===e)break}catch(l){s=!0,i=l}finally{try{o||null==a["return"]||a["return"]()}finally{if(s)throw i}}return r}}function Ot(t){if(Array.isArray(t))return t}function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function Tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?St(Object(r),!0).forEach((function(e){Pt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ct(t){return Mt(t)||Dt(t)||$t(t)||Et()}function Et(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $t(t,e){if(t){if("string"===typeof t)return jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jt(t,e):void 0}}function Dt(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Mt(t){if(Array.isArray(t))return jt(t)}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function Lt(t){return Lt="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},Lt(t)}function zt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Rt(t,e,r){return e&&At(t.prototype,e),r&&At(t,r),t}function Ht(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&It(t,e)}function It(t,e){return It=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},It(t,e)}function Vt(t){var e=Bt();return function(){var r,o=Nt(t);if(e){var s=Nt(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return Wt(this,r)}}function Wt(t,e){return!e||"object"!==Lt(e)&&"function"!==typeof e?Ft(t):e}function Ft(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function Nt(t){return Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Nt(t)}r("4abb");var Yt={None:0,Drag:2,Focus:4},Ut=4,Xt=function(){var t=function(t){Ht(r,t);var e=Vt(r);function r(){var t;return zt(this,r),t=e.apply(this,arguments),t.states=new wt(Yt),t.scale=1,t.focusDotIndex=0,t}return Rt(r,[{key:"isObjectData",value:function(t){return!!t&&"[object Object]"===Object.prototype.toString.call(t)}},{key:"isObjectArrayData",value:function(t){return!!t&&Array.isArray(t)&&t.length>0&&"object"===Lt(t[0])}},{key:"onValueChanged",value:function(){this.control&&!this.states.has(Yt.Drag)&&this.isNotSync&&(this.control.setValue(this.value),this.syncValueByPos())}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove,{passive:!1}),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){var t=new K(Math.floor(this.isHorizontal?this.$refs.rail.offsetWidth:this.$refs.rail.offsetHeight));void 0!==this.zoom&&t.multiply(this.zoom),t.divide(100),this.scale=t.toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new yt({value:this.value,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),this.syncValueByPos(),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(e){t.$watch(e,(function(r){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(r)&&t.control.data.length===r.length&&r.every((function(e,r){return e===t.control.data[r]})))return!1;switch(e){case"data":case"dataLabel":case"dataValue":t.control.data=t.sliderData;break;case"mark":t.control.marks=t.sliderMarks;break;default:t.control[e]=r}["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:Ct(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some((function(t,r){return t!==e[r]}))}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),r=this.control.getRecentDot(e);if(this.dots[r].disabled)return;this.dragStart(r),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(Yt.Drag),this.states.add(Yt.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(Yt.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var r=this.control.dotsValue;this.$emit("dragging",1===r.length?r[0]:Ct(r),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,r=t;if(r>this.dragRange[1]?(r=this.dragRange[1],this.focusDotIndex++):r<this.dragRange[0]&&(r=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex){var o=this.$refs["dot-".concat(this.focusDotIndex)];o&&o.$el&&o.$el.focus(),this.control.setDotPos(r,e)}}}},{key:"dragEnd",value:function(t){var e=this;if(!this.states.has(Yt.Drag))return!1;setTimeout((function(){e.lazy&&e.syncValueByPos(),e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos(),e.states.delete(Yt.Drag),e.useKeyboard&&!("targetTouches"in t)||e.states.delete(Yt.Focus),e.$emit("drag-end",e.focusDotIndex)}))}},{key:"blurHandle",value:function(t){if(!this.states.has(Yt.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(Yt.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(Yt.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(Yt.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(Yt.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?Ct(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,r=Array.isArray(t)?t.map((function(t){return e.control.getValueByIndex(t)})):this.control.getValueByIndex(t);this.setValue(r)}},{key:"setValueByPos",value:function(t){var e=this,r=this.control.getRecentDot(t);if(this.disabled||this.dots[r].disabled)return!1;this.focusDotIndex=r,this.control.setDotPos(t,r),this.syncValueByPos(),this.useKeyboard&&this.states.add(Yt.Focus),setTimeout((function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(Yt.Focus))return!1;var r=this.included&&this.marks,o=U(t,{direction:this.direction,max:r?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(o){t.preventDefault();var s=-1,i=0;r?(this.control.markList.some((function(t,r){return t.value===e.control.dotsValue[e.focusDotIndex]&&(s=o(r),!0)})),s<0?s=0:s>this.control.markList.length-1&&(s=this.control.markList.length-1),i=this.control.markList[s].pos):(s=o(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),i=this.control.parseValue(this.control.getValueByIndex(s))),this.isCrossDot(i),this.control.setDotPos(i,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return Y(t,this.$refs.rail,this.isReverse,this.zoom)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,r,o){var s=this.$createElement,i=this.$scopedSlots[t];return i?o?i(e):s("template",{slot:t},[i(e)]):r}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",a()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{ref:"rail",class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(r,o){return t.renderSlot("process",r,e("div",{class:"vue-slider-process",key:"process-".concat(o),style:r.style}),!0)})),this.sliderMarks?e("div",{class:"vue-slider-marks"},[this.control.markList.map((function(r,o){var s;return t.renderSlot("mark",r,e("vue-slider-mark",{key:"mark-".concat(o),attrs:{mark:r,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(s={},Pt(s,t.isHorizontal?"height":"width","100%"),Pt(s,t.isHorizontal?"width":"height",t.tailSize),Pt(s,t.mainDirection,"".concat(r.pos,"%")),s),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",r,null),t.renderSlot("label",r,null)]),!0)}))]):null,this.dots.map((function(r,o){var s;return e("vue-slider-dot",{ref:"dot-".concat(o),key:"dot-".concat(o),attrs:Tt({value:r.value,disabled:r.disabled,focus:r.focus,"dot-style":[r.style,r.disabled?r.disabledStyle:null,r.focus?r.focusStyle:null],tooltip:r.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,r.tooltipStyle,r.disabled?r.tooltipDisabledStyle:null,r.focus?r.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.sliderTooltipFormatter)?t.sliderTooltipFormatter[o]:t.sliderTooltipFormatter,"tooltip-placement":t.tooltipDirections[o],role:"slider","aria-valuenow":r.value,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.isHorizontal?"horizontal":"vertical",tabindex:"0"},t.dotAttrs),style:[t.dotBaseStyle,(s={},Pt(s,t.mainDirection,"".concat(r.pos,"%")),Pt(s,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),s)],on:{"drag-start":function(){return t.dragStart(o)}},nativeOn:{focus:function(){return!r.disabled&&t.focus(o)},blur:function(){return t.blur()}}},[t.renderSlot("dot",r,null),t.renderSlot("tooltip",r,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return B((this.isHorizontal?this.height:this.width)||Ut)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],e=xt(t,2),r=e[0],o=e[1],s=this.width?B(this.width):this.isHorizontal?"auto":B(Ut),i=this.height?B(this.height):this.isHorizontal?B(Ut):"auto";return{padding:this.contained?"".concat(o/2,"px ").concat(r/2,"px"):this.isHorizontal?"".concat(o/2,"px 0"):"0 ".concat(r/2,"px"),width:s,height:i}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map((function(e,r){var o,s=xt(e,3),i=s[0],n=s[1],a=s[2];if(i>n){var l=[n,i];i=l[0],n=l[1]}var c=t.isHorizontal?"width":"height";return{start:i,end:n,index:r,style:Tt(Tt((o={},Pt(o,t.isHorizontal?"height":"width","100%"),Pt(o,t.isHorizontal?"top":"left",0),Pt(o,t.mainDirection,"".concat(i,"%")),Pt(o,c,"".concat(n-i,"%")),Pt(o,"transitionProperty","".concat(c,",").concat(t.mainDirection)),Pt(o,"transitionDuration","".concat(t.animateTime,"s")),o),t.processStyle),a)}}))}},{key:"dotBaseStyle",get:function(){var t,e=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],r=xt(e,2),o=r[0],s=r[1];return t=this.isHorizontal?Pt({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),"-WebkitTransform":"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):Pt({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),"-WebkitTransform":"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),Tt({width:"".concat(o,"px"),height:"".concat(s,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map((function(){return t}))}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map((function(e,r){return Tt({pos:e,index:r,value:t.control.dotsValue[r],focus:t.states.has(Yt.Focus)&&t.focusDotIndex===r,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[r]:t.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(Yt.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"sliderData",get:function(){var t=this;return this.isObjectArrayData(this.data)?this.data.map((function(e){return e[t.dataValue]})):this.isObjectData(this.data)?Object.keys(this.data):this.data}},{key:"sliderMarks",get:function(){var t=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(e){var r={label:e};return t.data.some((function(o){return o[t.dataValue]===e&&(r.label=o[t.dataLabel],!0)})),r}:this.isObjectData(this.data)?this.data:void 0}},{key:"sliderTooltipFormatter",get:function(){var t=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(e){var r=""+e;return t.data.some((function(o){return o[t.dataValue]===e&&(r=o[t.dataLabel],!0)})),r};if(this.isObjectData(this.data)){var e=this.data;return function(t){return e[t]}}}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some((function(e,r){return e!==t[r]})):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),r}(u.a);return l([p("change",{default:0})],t.prototype,"value",void 0),l([f({type:Boolean,default:!1})],t.prototype,"silent",void 0),l([f({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],t.prototype,"direction",void 0),l([f({type:[Number,String]})],t.prototype,"width",void 0),l([f({type:[Number,String]})],t.prototype,"height",void 0),l([f({default:14})],t.prototype,"dotSize",void 0),l([f({default:!1})],t.prototype,"contained",void 0),l([f({type:Number,default:0})],t.prototype,"min",void 0),l([f({type:Number,default:100})],t.prototype,"max",void 0),l([f({type:Number,default:1})],t.prototype,"interval",void 0),l([f({type:Boolean,default:!1})],t.prototype,"disabled",void 0),l([f({type:Boolean,default:!0})],t.prototype,"clickable",void 0),l([f({type:Boolean,default:!1})],t.prototype,"dragOnClick",void 0),l([f({type:Number,default:.5})],t.prototype,"duration",void 0),l([f({type:[Object,Array]})],t.prototype,"data",void 0),l([f({type:String,default:"value"})],t.prototype,"dataValue",void 0),l([f({type:String,default:"label"})],t.prototype,"dataLabel",void 0),l([f({type:Boolean,default:!1})],t.prototype,"lazy",void 0),l([f({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],t.prototype,"tooltip",void 0),l([f({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}})],t.prototype,"tooltipPlacement",void 0),l([f({type:[String,Array,Function]})],t.prototype,"tooltipFormatter",void 0),l([f({type:Boolean,default:!0})],t.prototype,"useKeyboard",void 0),l([f(Function)],t.prototype,"keydownHook",void 0),l([f({type:Boolean,default:!0})],t.prototype,"enableCross",void 0),l([f({type:Boolean,default:!1})],t.prototype,"fixed",void 0),l([f({type:Boolean,default:!0})],t.prototype,"order",void 0),l([f(Number)],t.prototype,"minRange",void 0),l([f(Number)],t.prototype,"maxRange",void 0),l([f({type:[Boolean,Object,Array,Function],default:!1})],t.prototype,"marks",void 0),l([f({type:[Boolean,Function],default:!0})],t.prototype,"process",void 0),l([f({type:[Number]})],t.prototype,"zoom",void 0),l([f(Boolean)],t.prototype,"included",void 0),l([f(Boolean)],t.prototype,"adsorb",void 0),l([f(Boolean)],t.prototype,"hideLabel",void 0),l([f()],t.prototype,"dotOptions",void 0),l([f()],t.prototype,"dotAttrs",void 0),l([f()],t.prototype,"railStyle",void 0),l([f()],t.prototype,"processStyle",void 0),l([f()],t.prototype,"dotStyle",void 0),l([f()],t.prototype,"tooltipStyle",void 0),l([f()],t.prototype,"stepStyle",void 0),l([f()],t.prototype,"stepActiveStyle",void 0),l([f()],t.prototype,"labelStyle",void 0),l([f()],t.prototype,"labelActiveStyle",void 0),l([m("value")],t.prototype,"onValueChanged",null),t=l([d()({name:"VueSlider",data:function(){return{control:null}},components:{VueSliderDot:C,VueSliderMark:F}})],t),t}(),Gt=Xt;Gt.VueSliderMark=F,Gt.VueSliderDot=C;var Zt=Gt;e["default"]=Zt}})["default"]}))},9274:function(e){"use strict";e.exports=t},9306:function(t,e,r){"use strict";var o=r(4901),s=r(6823),i=TypeError;t.exports=function(t){if(o(t))return t;throw new i(s(t)+" is not a function")}},679:function(t,e,r){"use strict";var o=r(1625),s=TypeError;t.exports=function(t,e){if(o(e,t))return t;throw new s("Incorrect invocation")}},8551:function(t,e,r){"use strict";var o=r(34),s=String,i=TypeError;t.exports=function(t){if(o(t))return t;throw new i(s(t)+" is not an object")}},9617:function(t,e,r){"use strict";var o=r(5397),s=r(5610),i=r(6198),n=function(t){return function(e,r,n){var a=o(e),l=i(a);if(0===l)return!t&&-1;var c,u=s(n,l);if(t&&r!==r){while(l>u)if(c=a[u++],c!==c)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:n(!0),indexOf:n(!1)}},4527:function(t,e,r){"use strict";var o=r(3724),s=r(4376),i=TypeError,n=Object.getOwnPropertyDescriptor,a=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(s(t)&&!n(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},6319:function(t,e,r){"use strict";var o=r(8551),s=r(9539);t.exports=function(t,e,r,i){try{return i?e(o(r)[0],r[1]):e(r)}catch(n){s(t,"throw",n)}}},2195:function(t,e,r){"use strict";var o=r(9504),s=o({}.toString),i=o("".slice);t.exports=function(t){return i(s(t),8,-1)}},6955:function(t,e,r){"use strict";var o=r(2140),s=r(4901),i=r(2195),n=r(8227),a=n("toStringTag"),l=Object,c="Arguments"===i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(r){}};t.exports=o?i:function(t){var e,r,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(e=l(t),a))?r:c?i(e):"Object"===(o=i(e))&&s(e.callee)?"Arguments":o}},7740:function(t,e,r){"use strict";var o=r(9297),s=r(5031),i=r(7347),n=r(4913);t.exports=function(t,e,r){for(var a=s(e),l=n.f,c=i.f,u=0;u<a.length;u++){var h=a[u];o(t,h)||r&&o(r,h)||l(t,h,c(e,h))}}},2211:function(t,e,r){"use strict";var o=r(9039);t.exports=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},6699:function(t,e,r){"use strict";var o=r(3724),s=r(4913),i=r(6980);t.exports=o?function(t,e,r){return s.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:function(t,e,r){"use strict";var o=r(3724),s=r(4913),i=r(6980);t.exports=function(t,e,r){o?s.f(t,e,i(0,r)):t[e]=r}},2106:function(t,e,r){"use strict";var o=r(283),s=r(4913);t.exports=function(t,e,r){return r.get&&o(r.get,e,{getter:!0}),r.set&&o(r.set,e,{setter:!0}),s.f(t,e,r)}},6840:function(t,e,r){"use strict";var o=r(4901),s=r(4913),i=r(283),n=r(9433);t.exports=function(t,e,r,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(o(r)&&i(r,c,a),a.global)l?t[e]=r:n(e,r);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=r:s.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6279:function(t,e,r){"use strict";var o=r(6840);t.exports=function(t,e,r){for(var s in e)o(t,s,e[s],r);return t}},9433:function(t,e,r){"use strict";var o=r(4576),s=Object.defineProperty;t.exports=function(t,e){try{s(o,t,{value:e,configurable:!0,writable:!0})}catch(r){o[t]=e}return e}},3724:function(t,e,r){"use strict";var o=r(9039);t.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,e,r){"use strict";var o=r(4576),s=r(34),i=o.document,n=s(i)&&s(i.createElement);t.exports=function(t){return n?i.createElement(t):{}}},6837:function(t){"use strict";var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,r){"use strict";var o=r(4576),s=o.navigator,i=s&&s.userAgent;t.exports=i?String(i):""},9519:function(t,e,r){"use strict";var o,s,i=r(4576),n=r(2839),a=i.process,l=i.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(o=u.split("."),s=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!s&&n&&(o=n.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=n.match(/Chrome\/(\d+)/),o&&(s=+o[1]))),t.exports=s},6518:function(t,e,r){"use strict";var o=r(4576),s=r(7347).f,i=r(6699),n=r(6840),a=r(9433),l=r(7740),c=r(2796);t.exports=function(t,e){var r,u,h,d,p,f,m=t.target,y=t.global,g=t.stat;if(u=y?o:g?o[m]||a(m,{}):o[m]&&o[m].prototype,u)for(h in e){if(p=e[h],t.dontCallGetSet?(f=s(u,h),d=f&&f.value):d=u[h],r=c(y?h:m+(g?".":"#")+h,t.forced),!r&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&i(p,"sham",!0),n(u,h,p,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},6080:function(t,e,r){"use strict";var o=r(7476),s=r(9306),i=r(616),n=o(o.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?n(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,r){"use strict";var o=r(9039);t.exports=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,e,r){"use strict";var o=r(616),s=Function.prototype.call;t.exports=o?s.bind(s):function(){return s.apply(s,arguments)}},350:function(t,e,r){"use strict";var o=r(3724),s=r(9297),i=Function.prototype,n=o&&Object.getOwnPropertyDescriptor,a=s(i,"name"),l=a&&"something"===function(){}.name,c=a&&(!o||o&&n(i,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},7476:function(t,e,r){"use strict";var o=r(2195),s=r(9504);t.exports=function(t){if("Function"===o(t))return s(t)}},9504:function(t,e,r){"use strict";var o=r(616),s=Function.prototype,i=s.call,n=o&&s.bind.bind(i,i);t.exports=o?n:function(t){return function(){return i.apply(t,arguments)}}},7751:function(t,e,r){"use strict";var o=r(4576),s=r(4901),i=function(t){return s(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(o[t]):o[t]&&o[t][e]}},1767:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:function(t,e,r){"use strict";var o=r(6955),s=r(5966),i=r(4117),n=r(6269),a=r(8227),l=a("iterator");t.exports=function(t){if(!i(t))return s(t,l)||s(t,"@@iterator")||n[o(t)]}},81:function(t,e,r){"use strict";var o=r(9565),s=r(9306),i=r(8551),n=r(6823),a=r(851),l=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(s(r))return i(o(r,t));throw new l(n(t)+" is not iterable")}},5966:function(t,e,r){"use strict";var o=r(9306),s=r(4117);t.exports=function(t,e){var r=t[e];return s(r)?void 0:o(r)}},4576:function(t,e,r){"use strict";var o=function(t){return t&&t.Math===Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof r.g&&r.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,r){"use strict";var o=r(9504),s=r(8981),i=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},421:function(t){"use strict";t.exports={}},397:function(t,e,r){"use strict";var o=r(7751);t.exports=o("document","documentElement")},5917:function(t,e,r){"use strict";var o=r(3724),s=r(9039),i=r(4055);t.exports=!o&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,e,r){"use strict";var o=r(9504),s=r(9039),i=r(2195),n=Object,a=o("".split);t.exports=s((function(){return!n("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):n(t)}:n},3706:function(t,e,r){"use strict";var o=r(9504),s=r(4901),i=r(7629),n=o(Function.toString);s(i.inspectSource)||(i.inspectSource=function(t){return n(t)}),t.exports=i.inspectSource},1181:function(t,e,r){"use strict";var o,s,i,n=r(8622),a=r(4576),l=r(34),c=r(6699),u=r(9297),h=r(7629),d=r(6119),p=r(421),f="Object already initialized",m=a.TypeError,y=a.WeakMap,g=function(t){return i(t)?s(t):o(t,{})},v=function(t){return function(e){var r;if(!l(e)||(r=s(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return r}};if(n||h.state){var b=h.state||(h.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,o=function(t,e){if(b.has(t))throw new m(f);return e.facade=t,b.set(t,e),e},s=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var w=d("state");p[w]=!0,o=function(t,e){if(u(t,w))throw new m(f);return e.facade=t,c(t,w,e),e},s=function(t){return u(t,w)?t[w]:{}},i=function(t){return u(t,w)}}t.exports={set:o,get:s,has:i,enforce:g,getterFor:v}},4209:function(t,e,r){"use strict";var o=r(8227),s=r(6269),i=o("iterator"),n=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||n[i]===t)}},4376:function(t,e,r){"use strict";var o=r(2195);t.exports=Array.isArray||function(t){return"Array"===o(t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,r){"use strict";var o=r(9039),s=r(4901),i=/#|\.prototype\./,n=function(t,e){var r=l[a(t)];return r===u||r!==c&&(s(e)?o(e):!!e)},a=n.normalize=function(t){return String(t).replace(i,".").toLowerCase()},l=n.data={},c=n.NATIVE="N",u=n.POLYFILL="P";t.exports=n},4117:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},34:function(t,e,r){"use strict";var o=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:o(t)}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,r){"use strict";var o=r(7751),s=r(4901),i=r(1625),n=r(7040),a=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return s(e)&&i(e.prototype,a(t))}},2652:function(t,e,r){"use strict";var o=r(6080),s=r(9565),i=r(8551),n=r(6823),a=r(4209),l=r(6198),c=r(1625),u=r(81),h=r(851),d=r(9539),p=TypeError,f=function(t,e){this.stopped=t,this.result=e},m=f.prototype;t.exports=function(t,e,r){var y,g,v,b,w,x,k,_=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),T=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),C=o(e,_),E=function(t){return y&&d(y,"normal",t),new f(!0,t)},$=function(t){return O?(i(t),P?C(t[0],t[1],E):C(t[0],t[1])):P?C(t,E):C(t)};if(S)y=t.iterator;else if(T)y=t;else{if(g=h(t),!g)throw new p(n(t)+" is not iterable");if(a(g)){for(v=0,b=l(t);b>v;v++)if(w=$(t[v]),w&&c(m,w))return w;return new f(!1)}y=u(t,g)}x=S?t.next:y.next;while(!(k=s(x,y)).done){try{w=$(k.value)}catch(D){d(y,"throw",D)}if("object"==typeof w&&w&&c(m,w))return w}return new f(!1)}},9539:function(t,e,r){"use strict";var o=r(9565),s=r(8551),i=r(5966);t.exports=function(t,e,r){var n,a;s(t);try{if(n=i(t,"return"),!n){if("throw"===e)throw r;return r}n=o(n,t)}catch(l){a=!0,n=l}if("throw"===e)throw r;if(a)throw n;return s(n),r}},9462:function(t,e,r){"use strict";var o=r(9565),s=r(2360),i=r(6699),n=r(6279),a=r(8227),l=r(1181),c=r(5966),u=r(7657).IteratorPrototype,h=r(2529),d=r(9539),p=a("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",y=l.set,g=function(t){var e=l.getterFor(t?m:f);return n(s(u),{next:function(){var r=e(this);if(t)return r.nextHandler();try{var o=r.done?void 0:r.nextHandler();return h(o,r.done)}catch(s){throw r.done=!0,s}},return:function(){var r=e(this),s=r.iterator;if(r.done=!0,t){var i=c(s,"return");return i?o(i,s):h(void 0,!0)}if(r.inner)try{d(r.inner.iterator,"normal")}catch(n){return d(s,"throw",n)}return s&&d(s,"normal"),h(void 0,!0)}})},v=g(!0),b=g(!1);i(b,p,"Iterator Helper"),t.exports=function(t,e){var r=function(r,o){o?(o.iterator=r.iterator,o.next=r.next):o=r,o.type=e?m:f,o.nextHandler=t,o.counter=0,o.done=!1,y(this,o)};return r.prototype=e?v:b,r}},713:function(t,e,r){"use strict";var o=r(9565),s=r(9306),i=r(8551),n=r(1767),a=r(9462),l=r(6319),c=a((function(){var t=this.iterator,e=i(o(this.next,t)),r=this.done=!!e.done;if(!r)return l(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return i(this),s(t),new c(n(this),{mapper:t})}},7657:function(t,e,r){"use strict";var o,s,i,n=r(9039),a=r(4901),l=r(34),c=r(2360),u=r(2787),h=r(6840),d=r(8227),p=r(6395),f=d("iterator"),m=!1;[].keys&&(i=[].keys(),"next"in i?(s=u(u(i)),s!==Object.prototype&&(o=s)):m=!0);var y=!l(o)||n((function(){var t={};return o[f].call(t)!==t}));y?o={}:p&&(o=c(o)),a(o[f])||h(o,f,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:m}},6269:function(t){"use strict";t.exports={}},6198:function(t,e,r){"use strict";var o=r(8014);t.exports=function(t){return o(t.length)}},283:function(t,e,r){"use strict";var o=r(9504),s=r(9039),i=r(4901),n=r(9297),a=r(3724),l=r(350).CONFIGURABLE,c=r(3706),u=r(1181),h=u.enforce,d=u.get,p=String,f=Object.defineProperty,m=o("".slice),y=o("".replace),g=o([].join),v=a&&!s((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===m(p(e),0,7)&&(e="["+y(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!n(t,"name")||l&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&n(r,"arity")&&t.length!==r.arity&&f(t,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(s){}var o=h(t);return n(o,"source")||(o.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&d(this).source||c(this)}),"toString")},741:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var o=+t;return(o>0?r:e)(o)}},2360:function(t,e,r){"use strict";var o,s=r(8551),i=r(6801),n=r(8727),a=r(421),l=r(397),c=r(4055),u=r(6119),h=">",d="<",p="prototype",f="script",m=u("IE_PROTO"),y=function(){},g=function(t){return d+f+h+t+d+"/"+f+h},v=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=c("iframe"),r="java"+f+":";return e.style.display="none",l.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},w=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}w="undefined"!=typeof document?document.domain&&o?v(o):b():v(o);var t=n.length;while(t--)delete w[p][n[t]];return w()};a[m]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(y[p]=s(t),r=new y,y[p]=null,r[m]=t):r=w(),void 0===e?r:i.f(r,e)}},6801:function(t,e,r){"use strict";var o=r(3724),s=r(8686),i=r(4913),n=r(8551),a=r(5397),l=r(1072);e.f=o&&!s?Object.defineProperties:function(t,e){n(t);var r,o=a(e),s=l(e),c=s.length,u=0;while(c>u)i.f(t,r=s[u++],o[r]);return t}},4913:function(t,e,r){"use strict";var o=r(3724),s=r(5917),i=r(8686),n=r(8551),a=r(6969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";e.f=o?i?function(t,e,r){if(n(t),e=a(e),n(r),"function"===typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var o=u(t,e);o&&o[p]&&(t[e]=r.value,r={configurable:d in r?r[d]:o[d],enumerable:h in r?r[h]:o[h],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(n(t),e=a(e),n(r),s)try{return c(t,e,r)}catch(o){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7347:function(t,e,r){"use strict";var o=r(3724),s=r(9565),i=r(8773),n=r(6980),a=r(5397),l=r(6969),c=r(9297),u=r(5917),h=Object.getOwnPropertyDescriptor;e.f=o?h:function(t,e){if(t=a(t),e=l(e),u)try{return h(t,e)}catch(r){}if(c(t,e))return n(!s(i.f,t,e),t[e])}},8480:function(t,e,r){"use strict";var o=r(1828),s=r(8727),i=s.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,i)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2787:function(t,e,r){"use strict";var o=r(9297),s=r(4901),i=r(8981),n=r(6119),a=r(2211),l=n("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=i(t);if(o(e,l))return e[l];var r=e.constructor;return s(r)&&e instanceof r?r.prototype:e instanceof c?u:null}},1625:function(t,e,r){"use strict";var o=r(9504);t.exports=o({}.isPrototypeOf)},1828:function(t,e,r){"use strict";var o=r(9504),s=r(9297),i=r(5397),n=r(9617).indexOf,a=r(421),l=o([].push);t.exports=function(t,e){var r,o=i(t),c=0,u=[];for(r in o)!s(a,r)&&s(o,r)&&l(u,r);while(e.length>c)s(o,r=e[c++])&&(~n(u,r)||l(u,r));return u}},1072:function(t,e,r){"use strict";var o=r(1828),s=r(8727);t.exports=Object.keys||function(t){return o(t,s)}},8773:function(t,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,s=o&&!r.call({1:2},1);e.f=s?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},4270:function(t,e,r){"use strict";var o=r(9565),s=r(4901),i=r(34),n=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&s(r=t.toString)&&!i(a=o(r,t)))return a;if(s(r=t.valueOf)&&!i(a=o(r,t)))return a;if("string"!==e&&s(r=t.toString)&&!i(a=o(r,t)))return a;throw new n("Can't convert object to primitive value")}},5031:function(t,e,r){"use strict";var o=r(7751),s=r(9504),i=r(8480),n=r(3717),a=r(8551),l=s([].concat);t.exports=o("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=n.f;return r?l(e,r(t)):e}},7750:function(t,e,r){"use strict";var o=r(4117),s=TypeError;t.exports=function(t){if(o(t))throw new s("Can't call method on "+t);return t}},6119:function(t,e,r){"use strict";var o=r(5745),s=r(3392),i=o("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},7629:function(t,e,r){"use strict";var o=r(6395),s=r(4576),i=r(9433),n="__core-js_shared__",a=t.exports=s[n]||i(n,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:o?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,r){"use strict";var o=r(7629);t.exports=function(t,e){return o[t]||(o[t]=e||{})}},4495:function(t,e,r){"use strict";var o=r(9519),s=r(9039),i=r(4576),n=i.String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},5610:function(t,e,r){"use strict";var o=r(1291),s=Math.max,i=Math.min;t.exports=function(t,e){var r=o(t);return r<0?s(r+e,0):i(r,e)}},5397:function(t,e,r){"use strict";var o=r(7055),s=r(7750);t.exports=function(t){return o(s(t))}},1291:function(t,e,r){"use strict";var o=r(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:o(e)}},8014:function(t,e,r){"use strict";var o=r(1291),s=Math.min;t.exports=function(t){var e=o(t);return e>0?s(e,9007199254740991):0}},8981:function(t,e,r){"use strict";var o=r(7750),s=Object;t.exports=function(t){return s(o(t))}},2777:function(t,e,r){"use strict";var o=r(9565),s=r(34),i=r(757),n=r(5966),a=r(4270),l=r(8227),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!s(t)||i(t))return t;var r,l=n(t,u);if(l){if(void 0===e&&(e="default"),r=o(l,t,e),!s(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,r){"use strict";var o=r(2777),s=r(757);t.exports=function(t){var e=o(t,"string");return s(e)?e:e+""}},2140:function(t,e,r){"use strict";var o=r(8227),s=o("toStringTag"),i={};i[s]="z",t.exports="[object z]"===String(i)},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},3392:function(t,e,r){"use strict";var o=r(9504),s=0,i=Math.random(),n=o(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++s+i,36)}},7040:function(t,e,r){"use strict";var o=r(4495);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,r){"use strict";var o=r(3724),s=r(9039);t.exports=o&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:function(t,e,r){"use strict";var o=r(4576),s=r(4901),i=o.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},8227:function(t,e,r){"use strict";var o=r(4576),s=r(5745),i=r(9297),n=r(3392),a=r(4495),l=r(7040),c=o.Symbol,u=s("wks"),h=l?c["for"]||c:c&&c.withoutSetter||n;t.exports=function(t){return i(u,t)||(u[t]=a&&i(c,t)?c[t]:h("Symbol."+t)),u[t]}},4114:function(t,e,r){"use strict";var o=r(6518),s=r(8981),i=r(6198),n=r(4527),a=r(6837),l=r(9039),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=c||!u();o({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=s(this),r=i(e),o=arguments.length;a(r+o);for(var l=0;l<o;l++)e[r]=arguments[l],r++;return n(e,r),r}})},8111:function(t,e,r){"use strict";var o=r(6518),s=r(4576),i=r(679),n=r(8551),a=r(4901),l=r(2787),c=r(2106),u=r(4659),h=r(9039),d=r(9297),p=r(8227),f=r(7657).IteratorPrototype,m=r(3724),y=r(6395),g="constructor",v="Iterator",b=p("toStringTag"),w=TypeError,x=s[v],k=y||!a(x)||x.prototype!==f||!h((function(){x({})})),_=function(){if(i(this,f),l(this)===f)throw new w("Abstract class Iterator not directly constructable")},O=function(t,e){m?c(f,t,{configurable:!0,get:function(){return e},set:function(e){if(n(this),this===f)throw new w("You can't redefine this property");d(this,t)?this[t]=e:u(this,t,e)}}):f[t]=e};d(f,b)||O(b,v),!k&&d(f,g)&&f[g]!==Object||O(g,_),_.prototype=f,o({global:!0,constructor:!0,forced:k},{Iterator:_})},2489:function(t,e,r){"use strict";var o=r(6518),s=r(9565),i=r(9306),n=r(8551),a=r(1767),l=r(9462),c=r(6319),u=r(6395),h=l((function(){var t,e,r,o=this.iterator,i=this.predicate,a=this.next;while(1){if(t=n(s(a,o)),e=this.done=!!t.done,e)return;if(r=t.value,c(o,i,[r,this.counter++],!0))return r}}));o({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(t){return n(this),i(t),new h(a(this),{predicate:t})}})},7588:function(t,e,r){"use strict";var o=r(6518),s=r(2652),i=r(9306),n=r(8551),a=r(1767);o({target:"Iterator",proto:!0,real:!0},{forEach:function(t){n(this),i(t);var e=a(this),r=0;s(e,(function(e){t(e,r++)}),{IS_RECORD:!0})}})},1701:function(t,e,r){"use strict";var o=r(6518),s=r(713),i=r(6395);o({target:"Iterator",proto:!0,real:!0,forced:i},{map:s})},8237:function(t,e,r){"use strict";var o=r(6518),s=r(2652),i=r(9306),n=r(8551),a=r(1767),l=TypeError;o({target:"Iterator",proto:!0,real:!0},{reduce:function(t){n(this),i(t);var e=a(this),r=arguments.length<2,o=r?void 0:arguments[1],c=0;if(s(e,(function(e){r?(r=!1,o=e):o=t(o,e,c),c++}),{IS_RECORD:!0}),r)throw new l("Reduce of empty iterator with no initial value");return o}})},8992:function(t,e,r){"use strict";r(8111)},4520:function(t,e,r){"use strict";r(2489)},3949:function(t,e,r){"use strict";r(7588)},1454:function(t,e,r){"use strict";r(1701)},8872:function(t,e,r){"use strict";r(8237)}},r={};function o(t){var s=r[t];if(void 0!==s)return s.exports;var i=r[t]={exports:{}};return e[t].call(i.exports,i,i.exports,o),i.exports}!function(){o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,{a:e}),e}}(),function(){o.d=function(t,e){for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){o.p=""}();var s={};return function(){"use strict";if(o.r(s),o.d(s,{default:function(){return ur},ganttChart:function(){return lr}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(o.p=e[1])}var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"gantt-elastic",staticStyle:{width:"100%"}},[1==t.isHeaderVisible?e("gantt-header",{attrs:{slot:"header"},slot:"header"}):t._e(),t._t("header"),e("main-view",{ref:"mainView"}),t._t("footer")],2)},i=[],n=(o(4114),o(8992),o(4520),o(3949),o(1454),o(8872),o(4353)),a=o.n(n),l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__main-view",style:{...t.root.style["main-view"]}},[e("div",{staticClass:"gantt-elastic__main-container-wrapper",style:{...t.root.style["main-container-wrapper"],height:t.root.state.options.height+"px"}},[e("div",{ref:"mainView",staticClass:"gantt-elastic__main-container",style:{...t.root.style["main-container"],width:t.root.state.options.clientWidth+"px",height:t.root.state.options.height+"px"}},[e("div",{staticClass:"gantt-elastic__container",style:{...t.root.style["container"]},on:{mousemove:t.mouseMove,mouseup:t.mouseUp}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.root.state.options.taskList.display,expression:"root.state.options.taskList.display"}],ref:"taskList",staticClass:"gantt-elastic__task-list-container",style:{...t.root.style["task-list-container"],width:t.root.state.options.taskList.finalWidth+"px",height:t.root.state.options.height+"px"}},[e("task-list")],1),e("div",{ref:"chartContainer",staticClass:"gantt-elastic__main-view-container",style:{...t.root.style["main-view-container"]},on:{mousedown:t.chartMouseDown,touchstart:t.chartMouseDown,mouseup:t.chartMouseUp,touchend:t.chartMouseUp,mousemove:function(e){return e.preventDefault(),t.chartMouseMove.apply(null,arguments)},touchmove:function(e){return e.preventDefault(),t.chartMouseMove.apply(null,arguments)},wheel:function(e){return e.preventDefault(),t.chartWheel.apply(null,arguments)}}},[e("chart")],1)])]),e("div",{ref:"chartScrollContainerVertical",staticClass:"gantt-elastic__chart-scroll-container gantt-elastic__chart-scroll-container--vertical",style:{...t.root.style["chart-scroll-container"],...t.root.style["chart-scroll-container--vertical"],...t.verticalStyle},on:{scroll:t.onVerticalScroll}},[e("div",{staticClass:"gantt-elastic__chart-scroll--vertical",style:{width:"1px",height:t.root.state.options.allVisibleTasksHeight+"px"}})])]),e("div",{ref:"chartScrollContainerHorizontal",staticClass:"gantt-elastic__chart-scroll-container gantt-elastic__chart-scroll-container--horizontal",style:{...t.root.style["chart-scroll-container"],...t.root.style["chart-scroll-container--horizontal"],marginLeft:t.getMarginLeft},on:{scroll:t.onHorizontalScroll}},[e("div",{staticClass:"gantt-elastic__chart-scroll--horizontal",style:{height:"1px",width:t.root.state.options.width+"px"}})])])},c=[],u=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.root.state.options.taskList.display,expression:"root.state.options.taskList.display"}],ref:"taskListWrapper",staticClass:"gantt-elastic__task-list-wrapper",style:{...t.root.style["task-list-wrapper"],width:"100%",height:"100%"}},[e("div",{ref:"taskList",staticClass:"gantt-elastic__task-list",style:{...t.root.style["task-list"]}},[e("task-list-header"),e("div",{ref:"taskListItems",staticClass:"gantt-elastic__task-list-items",style:{...t.root.style["task-list-items"],height:t.root.state.options.rowsHeight+"px"}},t._l(t.root.visibleTasks,(function(t){return e("task-list-item",{key:t.id,attrs:{task:t}})})),1)],1)])},h=[],d=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__task-list-header",style:t.headerStyle},t._l(t.root.getTaskListColumns,(function(r){return e("div",{key:r._id,staticClass:"gantt-elastic__task-list-header-column",style:t.columnStyle(r)},[r.expander?e("task-list-expander",{attrs:{tasks:t.collapsible,options:t.root.state.options.taskList.expander}}):t._e(),e("div",{staticClass:"gantt-elastic__task-list-header-label",style:t.headerLabelStyle(r),attrs:{column:r},on:{mouseup:t.resizerMouseUp}},[t._v(" "+t._s(r.label)+" ")]),e("div",{staticClass:"gantt-elastic__task-list-header-resizer-wrapper",style:t.resizerWrapperStyle(r),attrs:{column:r},on:{mousedown:function(e){return t.resizerMouseDown(e,r)}}},[e("div",{staticClass:"gantt-elastic__task-list-header-resizer",style:t.resizerStyle(r)},t._l(3,(function(o){return e("div",{key:o,staticClass:"gantt-elastic__task-list-header-resizer-dot",style:t.resizerDotStyle(r)})})),0)])],1)})),0)},p=[],f=function(){var t=this,e=t._self._c;return e("div",{class:t.getClassPrefix()+"-wrapper",style:{...t.root.style[t.getClassPrefix(!1)+"-wrapper"],...t.style}},[t.allChildren.length?e("svg",{class:t.getClassPrefix()+"-content",style:{...t.root.style[t.getClassPrefix(!1)+"-content"]},attrs:{width:t.options.size,height:t.options.size},on:{click:t.toggle}},[e("rect",{class:t.getClassPrefix()+"-border",style:{...t.root.style[t.getClassPrefix(!1)+"-border"],...t.borderStyle},attrs:{x:t.border,y:t.border,width:t.options.size-2*t.border,height:t.options.size-2*t.border,rx:"2",ry:"2"}}),t.allChildren.length?e("line",{class:t.getClassPrefix()+"-line",style:{...t.root.style[t.getClassPrefix(!1)+"-line"]},attrs:{x1:t.lineOffset,y1:t.options.size/2,x2:t.options.size-t.lineOffset,y2:t.options.size/2}}):t._e(),t.collapsed?e("line",{class:t.getClassPrefix()+"-line",style:{...t.root.style[t.getClassPrefix(!1)+"-line"]},attrs:{x1:t.options.size/2,y1:t.lineOffset,x2:t.options.size/2,y2:t.options.size-t.lineOffset}}):t._e()]):t._e()])},m=[],y={name:"Expander",inject:["root"],props:["tasks","options","type"],data(){const t=.5;return{border:t,borderStyle:{"stroke-width":t},lineOffset:5}},computed:{style(){if("taskList"!==this.type)return{};const t=this.root.state.options.taskList.expander.margin,e=this.tasks[0].parents.length*this.root.state.options.taskList.expander.padding;return{"padding-left":e+t+"px",margin:"auto 0"}},allChildren(){const t=[];return this.tasks.forEach((e=>{e.allChildren.forEach((e=>{t.push(e)}))})),t},collapsed(){if(0===this.tasks.length)return!1;let t=0;for(let e=0,r=this.tasks.length;e<r;e++)this.tasks[e].collapsed&&t++;return t===this.tasks.length}},methods:{getClassPrefix(t=!0){return`${t?"gantt-elastic__":""}${this.options.type}-expander`},toggle(){if(0===this.tasks.length)return;const t=!this.collapsed;this.tasks.forEach((e=>{e.collapsed=t}))}}},g=y;function v(t,e,r,o,s,i,n,a){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),n?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},c._ssrRegister=l):s&&(l=a?function(){s.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:s),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}var b=v(g,f,m,!1,null,null,null),w=b.exports,x={name:"TaskListHeader",components:{TaskListExpander:w},inject:["root"],data(){return{resizer:{moving:!1,x:0}}},computed:{collapsible(){return this.root.state.tasks.filter((t=>t.allChildren.length>0))},headerStyle(){return{...this.root.style["task-list-header"],height:`${this.root.state.options.calendar.height}px`,marginBottom:`${this.root.state.options.calendar.gap}px`}}},methods:{columnStyle(t){return{...this.root.style["task-list-header-column"],...t.style["task-list-header-column"],width:`${t.finalWidth}px`}},headerLabelStyle(t){return{...this.root.style["task-list-header-label"],...t.style["task-list-header-label"]}},resizerWrapperStyle(t){return{...this.root.style["task-list-header-resizer-wrapper"],...t.style["task-list-header-resizer-wrapper"]}},resizerStyle(t){return{...this.root.style["task-list-header-resizer"],...t.style["task-list-header-resizer"]}},resizerDotStyle(t){return{...this.root.style["task-list-header-resizer-dot"],...t.style["task-list-header-resizer-dot"]}},resizerMouseDown(t,e){this.resizer.moving||(this.resizer.moving=e,this.resizer.x=t.clientX,this.resizer.initialWidth=e.width,this.root.$emit("taskList-column-width-change-start",this.resizer.moving))},resizerMouseMove(t){if(this.resizer.moving){const e=this.resizer.moving.width;this.resizer.moving.width=this.resizer.initialWidth+t.clientX-this.resizer.x,this.resizer.moving.width<this.root.state.options.taskList.minWidth&&(this.resizer.moving.width=this.root.state.options.taskList.minWidth),e!==this.resizer.moving.width&&this.root.$emit("taskList-column-width-change",this.resizer.moving)}},resizerMouseUp(){this.resizer.moving&&(this.root.$emit("taskList-column-width-change-stop",this.resizer.moving),this.resizer.moving=!1)}},created(){document.addEventListener("mouseup",this.resizerMouseUp),document.addEventListener("mousemove",this.resizerMouseMove),this.root.$on("main-view-mousemove",this.resizerMouseMove),this.root.$on("main-view-mouseup",this.resizerMouseUp)}},k=x,_=v(k,d,p,!1,null,null,null),O=_.exports,S=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__task-list-item",style:{...t.root.style["task-list-item"]}},t._l(t.columns,(function(r){return e("item-column",{key:r._id,attrs:{column:r,task:t.task}},[r.expander?e("task-list-expander",{attrs:{tasks:[t.task],options:t.root.state.options.taskList.expander,type:"taskList"}}):t._e()],1)})),1)},T=[],P=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__task-list-item-column",style:t.itemColumnStyle},[e("div",{staticClass:"gantt-elastic__task-list-item-value-wrapper",style:t.wrapperStyle},[t._t("default"),e("div",{staticClass:"gantt-elastic__task-list-item-value-container",style:t.containerStyle},[t.html?e("div",{staticClass:"gantt-elastic__task-list-item-value",style:t.valueStyle,domProps:{innerHTML:t._s(t.value)},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}}):e("div",{staticClass:"gantt-elastic__task-list-item-value",style:t.valueStyle,on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[t._v(" "+t._s(t.value)+" ")])])],2)])},C=[],E={name:"ItemColumn",inject:["root"],props:["column","task"],data(){return{}},methods:{emitEvent(t,e){"undefined"!==typeof this.column.events&&"function"===typeof this.column.events[t]&&this.column.events[t]({event:e,data:this.task,column:this.column}),this.root.$emit(`taskList-${this.task.type}-${t}`,{event:e,data:this.task,column:this.column})}},computed:{html(){return"undefined"!==typeof this.column.html&&!0===this.column.html},value(){return"function"===typeof this.column.value?this.column.value(this.task):this.task[this.column.value]},itemColumnStyle(){return{...this.root.style["task-list-item-column"],...this.column.style["task-list-item-column"],width:this.column.finalWidth+"px",height:this.column.height+"px"}},wrapperStyle(){return{...this.root.style["task-list-item-value-wrapper"],...this.column.style["task-list-item-value-wrapper"]}},containerStyle(){return{...this.root.style["task-list-item-value-container"],...this.column.style["task-list-item-value-container"]}},valueStyle(){return{...this.root.style["task-list-item-value"],...this.column.style["task-list-item-value"]}}}},$=E,D=v($,P,C,!1,null,null,null),M=D.exports,j={name:"TaskListItem",components:{TaskListExpander:w,ItemColumn:M},inject:["root"],props:["task"],data(){return{}},computed:{columns(){return this.root.state.options.taskList.columns}}},L=j,z=v(L,S,T,!1,null,null,null),A=z.exports,R={name:"TaskList",components:{TaskListHeader:O,TaskListItem:A},inject:["root"],data(){return{}},mounted(){this.root.state.refs.taskListWrapper=this.$refs.taskListWrapper,this.root.state.refs.taskList=this.$refs.taskList,this.root.state.refs.taskListItems=this.$refs.taskListItems}},H=R,I=v(H,u,h,!1,null,null,null),V=I.exports,W=function(){var t=this,e=t._self._c;return e("div",{ref:"chart",staticClass:"gantt-elastic__chart",style:{...t.root.style["chart"]}},[e("div",{ref:"chartCalendarContainer",staticClass:"gantt-elastic__chart-calendar-container",style:{...t.root.style["chart-calendar-container"],height:t.root.state.options.calendar.height+"px","margin-bottom":t.root.state.options.calendar.gap+"px"}},[e("calendar")],1),e("div",{ref:"chartGraphContainer",staticClass:"gantt-elastic__chart-graph-container",style:{...t.root.style["chart-graph-container"],height:t.root.state.options.height-t.root.state.options.calendar.height+"px"}},[e("div",{style:{...t.root.style["chart-area"],width:t.root.state.options.width+"px",height:t.root.state.options.rowsHeight+"px"}},[e("div",{ref:"chartGraph",staticClass:"gantt-elastic__chart-graph",style:{...t.root.style["chart-graph"],height:"100%"}},[e("svg",{ref:"chartGraphSvg",staticClass:"gantt-elastic__chart-graph-svg",style:{...t.root.style["chart-graph-svg"]},attrs:{x:"0",y:"0",width:t.root.state.options.width+"px",height:t.root.state.options.allVisibleTasksHeight+"px",xmlns:"http://www.w3.org/2000/svg"}},[e("days-highlight"),e("grid"),e("dependency-lines",{attrs:{tasks:t.root.visibleTasks}}),t._l(t.root.visibleTasks,(function(r){return e("g",{key:r.id,staticClass:"gantt-elastic__chart-row-wrapper",style:{...t.root.style["chart-row-wrapper"]},attrs:{task:r}},[e(r.type,{tag:"component",attrs:{task:r}})],1)}))],2)])])])])},F=[],B=function(){var t=this,e=t._self._c;return e("svg",{ref:"chart",staticClass:"gantt-elastic__grid-lines-wrapper",style:{...t.root.style["grid-lines-wrapper"]},attrs:{x:"0",y:"0",width:t.root.state.options.width,height:t.root.state.options.allVisibleTasksHeight,xmlns:"http://www.w3.org/2000/svg"}},[e("g",{staticClass:"gantt-elastic__grid-lines",style:{...t.root.style["grid-lines"]}},[t._l(t.horizontalLines,(function(r){return e("line",{key:r.key,staticClass:"gantt-elastic__grid-line-horizontal",style:{...t.root.style["grid-line-horizontal"]},attrs:{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}})})),t._l(t.verticalLines,(function(r){return e("line",{key:r.key,staticClass:"gantt-elastic__grid-line-vertical",style:{...t.root.style["grid-line-vertical"]},attrs:{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}})})),e("line",{staticClass:"gantt-elastic__grid-line-time",style:{...t.root.style["grid-line-time"]},attrs:{x1:t.timeLinePosition.x,y1:t.timeLinePosition.y1,x2:t.timeLinePosition.x,y2:t.timeLinePosition.y2}})],2)])},N=[],Y={name:"Grid",inject:["root"],data(){return{}},created(){this.root.$on("recenterPosition",this.recenterPosition)},mounted(){this.$nextTick((()=>{this.$nextTick((()=>{this.root.scrollToTime(this.timeLinePosition.time)}))}))},methods:{recenterPosition(){this.root.scrollToTime(this.timeLinePosition.time)}},computed:{verticalLines(){let t=[];const e=this.root.state;return e.options.times.steps.forEach((r=>{this.root.isInsideViewPort(r.offset.px,1)&&t.push({key:r.time,x1:r.offset.px,y1:0,x2:r.offset.px,y2:e.tasks.length*(e.options.row.height+2*e.options.chart.grid.horizontal.gap)+this.root.style["grid-line-vertical"]["stroke-width"]})})),t},horizontalLines(){let t=[];const e=this.root.state.options;let r=this.root.visibleTasks;for(let o=0,s=r.length;o<=s;o++){const r=o*(e.row.height+2*e.chart.grid.horizontal.gap)+this.root.style["grid-line-vertical"]["stroke-width"]/2;t.push({key:"hl"+o,x1:0,y1:r,x2:"100%",y2:r})}return t},inViewPort(){return t=>{const e=this.root.state.options;return t.x1>=e.scroll.chart.left&&t.x1<=e.scroll.chart.right}},timeLinePosition(){const t=new Date,e=t.getTime(),r=this.root.timeToPixelOffsetX(e),o={x:0,y1:0,y2:"100%",dateTime:"",time:e};return o.x=r,o.dateTime=t.toLocaleDateString(),o}}},U=Y,X=v(U,B,N,!1,null,null,null),G=X.exports,Z=function(){var t=this,e=t._self._c;return t.showWorkingDays?e("g",{staticClass:"gantt-elastic__chart-days-highlight-container",style:{...t.root.style["chart-days-highlight-container"]}},t._l(t.workingDays,(function(r){return e("rect",{key:t.getKey(r),staticClass:"gantt-elastic__chart-days-highlight-rect",style:{...t.root.style["chart-days-highlight-rect"]},attrs:{x:r.offset.px,y:"0",width:r.width.px,height:"100%"}})})),0):t._e()},q=[],J={name:"DaysHighlight",inject:["root"],data(){return{}},methods:{getKey(t){return a()(t.time).format("YYYY-MM-DD")}},computed:{workingDays(){return this.root.state.options.times.steps.filter((t=>-1===this.root.state.options.calendar.workingDays.indexOf(a()(t.time).day())))},showWorkingDays(){const t=this.root.state.options.calendar;return!("undefined"===typeof t.workingDays||!Array.isArray(t.workingDays)||!t.workingDays.length)}}},K=J,Q=v(K,Z,q,!1,null,null,null),tt=Q.exports,et=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__calendar-wrapper",style:{...t.root.style["calendar-wrapper"],width:t.root.state.options.width+"px"}},[e("div",{staticClass:"gantt-elastic__calendar",style:{...t.root.style["calendar"],width:t.root.state.options.width+"px"}},[t.root.state.options.calendar.month.display?e("calendar-row",{attrs:{items:t.dates.months,which:"month"}}):t._e(),t.root.state.options.calendar.day.display?e("calendar-row",{attrs:{items:t.dates.days,which:"day"}}):t._e(),t.root.state.options.calendar.hour.display?e("calendar-row",{attrs:{items:t.dates.hours,which:"hour"}}):t._e()],1)])},rt=[],ot=function(){var t=this,e=t._self._c;return e("div",{class:"gantt-elastic__calendar-row gantt-elastic__calendar-row--"+t.which,style:t.rowStyle},t._l(t.items,(function(r,o){return e("div",{key:r.key,class:"gantt-elastic__calendar-row-rect gantt-elastic__calendar-row-rect--"+t.which,style:t.rectStyle},t._l(r.children,(function(r,s){return e("div",{key:r.key,class:"gantt-elastic__calendar-row-rect-child gantt-elastic__calendar-row-rect-child--"+t.which,style:t.rectChildStyle[o][s]},[e("div",{class:"gantt-elastic__calendar-row-text gantt-elastic__calendar-row-text--"+t.which,style:t.textStyle(r)},[t._v(" "+t._s(r.label)+" ")])])})),0)})),0)},st=[],it={name:"CalendarRow",inject:["root"],props:["items","which"],data(){return{}},methods:{getTextX(t){let e=t.x+t.width/2-t.textWidth/2;if("month"===this.which&&this.root.isInsideViewPort(t.x,t.width,0)){let r=this.root.state.options.scroll.chart.right-this.root.state.options.scroll.chart.left;e=this.root.state.options.scroll.chart.left+r/2-t.textWidth/2+2,e+t.textWidth+2>t.x+t.width?e=t.x+t.width-t.textWidth-2:e<t.x&&(e=t.x+2)}return e-t.x}},computed:{rowStyle(){return{...this.root.style["calendar-row"],...this.root.style["calendar-row--"+this.which]}},rectStyle(){return{...this.root.style["calendar-row-rect"],...this.root.style["calendar-row-rect--"+this.which]}},rectChildStyle(){const t={...this.root.style["calendar-row-rect-child"],...this.root.style["calendar-row-rect-child--"+this.which]},e=[];for(let r of this.items){const o=[];for(let e of r.children)o.push({...t,width:e.width+"px",height:e.height+"px"});e.push(o)}return e},textStyle(){const t={...this.root.style["calendar-row-text"],...this.root.style["calendar-row-text--"+this.which]};return e=>{const r={...t};return"month"===this.which&&(r.left=this.getTextX(e)+"px"),r}}}},nt=it,at=v(nt,ot,st,!1,null,null,null),lt=at.exports,ct={name:"Calendar",components:{CalendarRow:lt},inject:["root"],data(){return{}},methods:{howManyHoursFit(t){const e=1,r=e+2;let o=this.root.state.options.times.steps[t].width.px,s=Object.keys(this.root.state.options.calendar.hour.format);for(let i=24;i>1;i=Math.ceil(i/2))for(let t of s)if((this.root.state.options.calendar.hour.maxWidths[t]+r)*i<=o&&i>1)return{count:i,type:t};return{count:0,type:""}},howManyDaysFit(){const t=1,e=t+2;let r=this.root.state.options.width,o=Object.keys(this.root.state.options.calendar.day.format);for(let s=this.root.state.options.times.steps.length;s>1;s=Math.ceil(s/2))for(let t of o)if((this.root.state.options.calendar.day.maxWidths[t]+e)*s<=r&&s>1)return{count:s,type:t};return{count:0,type:""}},howManyMonthsFit(){const t=1,e=t+2;let r=this.root.state.options.width,o=Object.keys(this.root.state.options.calendar.month.format),s=a()(this.root.state.options.times.firstTime);s.clone();this.root.state.options.times.lastTime;let i=this.root.monthsCount(this.root.state.options.times.firstTime,this.root.state.options.times.lastTime);if(1===i)for(let n of o)if(this.root.state.options.calendar.month.maxWidths[n]+e<=r)return{count:1,type:n};for(let n=i;n>1;n=Math.ceil(n/2))for(let t of o)if((this.root.state.options.calendar.month.maxWidths[t]+e)*n<=r&&n>1)return{count:n,type:t};return{count:0,type:o[0]}},generateHours(){let t=[];if(!this.root.state.options.calendar.hour.display)return t;const e=this.root.state.options.times.steps;this.root.state.options.locale.name;for(let r=0,o=e.length;r<o;r++){const o=this.howManyHoursFit(r);if(0===o.count)continue;const s={key:r+"step",children:[]},i=24/o.count,n=e[r].width.px/o.count;for(let t=0,a=o.count;t<a;t++){const a=t*i;let l=r;r>0&&(l=r-24*Math.floor(r/24));let c=0;"undefined"!==typeof this.root.state.options.calendar.hour.widths[l]&&(c=this.root.state.options.calendar.hour.widths[l][o.type]);let u=e[r].offset.px+n*t;s.children.push({index:r,key:"h"+t,x:u,y:this.root.state.options.calendar.day.height+this.root.state.options.calendar.month.height,width:n,textWidth:c,height:this.root.state.options.calendar.hour.height,label:this.root.state.options.calendar.hour.formatted[o.type][a]})}t.push(s)}return t},generateDays(){let t=[];if(!this.root.state.options.calendar.day.display)return t;const e=this.howManyDaysFit();if(0===e.count)return t;const r=this.root.state.options.times.steps,o=this.root.state.options.locale.name,s=Math.ceil(r.length/e.count);for(let i=0,n=r.length;i<n;i+=s){let n=0;for(let t=0;t<s;t++)"undefined"!==typeof r[i+t]&&(n+=r[i+t].width.px);const l=a()(r[i].time);let c=0;"undefined"!==typeof this.root.state.options.calendar.day.widths[i]&&(c=this.root.state.options.calendar.day.widths[i][e.type]);let u=r[i].offset.px;t.push({index:i,key:r[i].time+"d",x:u,y:this.root.state.options.calendar.month.height,width:n,textWidth:c,height:this.root.state.options.calendar.day.height,label:this.root.state.options.calendar.day.format[e.type](l.locale(o))})}return t.map((t=>({key:t.key,children:[t]})))},generateMonths(){let t=[];if(!this.root.state.options.calendar.month.display)return t;const e=this.howManyMonthsFit();if(0===e.count)return t;this.root.state.options.times.steps;const r=this.root.state.options.locale.name;let o=Object.keys(this.root.state.options.calendar.month.format),s=a()(this.root.state.options.times.firstTime);for(let i=0;i<e.count;i++){let e=0,n=Number.MAX_SAFE_INTEGER,l=a()(s).add(1,"month").startOf("month");l.valueOf()>this.root.state.options.times.lastTime&&(l=a()(this.root.state.options.times.lastTime));for(let t=0,r=this.root.state.options.times.steps.length;t<r;t++){let r=this.root.state.options.times.steps[t];r.time>=s.valueOf()&&r.time<l.valueOf()&&(e+=r.width.px,r.offset.px<n&&(n=r.offset.px))}let c,u="";for(let t of o)this.root.state.options.calendar.month.maxWidths[t]+2<=e&&(u=this.root.state.options.calendar.month.format[t](s.locale(r)),c=t);let h=0;"undefined"!==typeof this.root.state.options.calendar.month.widths[i]&&(h=this.root.state.options.calendar.month.widths[i][c]);let d=n;t.push({index:i,key:i+"m",x:d,y:0,width:e,textWidth:h,choosenFormatName:c,height:this.root.state.options.calendar.month.height,label:u}),s=s.add(1,"month").startOf("month"),s.valueOf()>this.root.state.options.times.lastTime&&(s=a()(this.root.state.options.times.lastTime))}return t.map((t=>({key:t.key,children:[t]})))},calculateCalendarDimensions({hours:t,days:e,months:r}){let o=0;this.root.state.options.calendar.hour.display&&t.length>0&&(o+=this.root.state.options.calendar.hour.height),this.root.state.options.calendar.day.display&&e.length>0&&(o+=this.root.state.options.calendar.day.height),this.root.state.options.calendar.month.display&&r.length>0&&(o+=this.root.state.options.calendar.month.height),this.root.state.options.calendar.height=o}},computed:{dates(){const t=this.generateHours(),e=this.generateDays(),r=this.generateMonths(),o={hours:t,days:e,months:r};return this.calculateCalendarDimensions(o),o}}},ut=ct,ht=v(ut,et,rt,!1,null,null,null),dt=ht.exports,pt=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"gantt-elastic__chart-dependency-lines-container",style:{...t.root.style["chart-dependency-lines-container"]},attrs:{x:"0",y:"0",width:"100%",height:"100%"}},t._l(t.dependencyTasks,(function(r){return e("g",{key:r.id,attrs:{task:r}},t._l(r.dependencyLines,(function(o){return e("path",{key:o.id,staticClass:"gantt-elastic__chart-dependency-lines-path",style:{...t.root.style["chart-dependency-lines-path"],...r.style["chart-dependency-lines-path"],...r.style["chart-dependency-lines-path-"+o.task_id]},attrs:{task:r,d:o.points}})})),0)})),0)},ft=[],mt={name:"DependencyLines",inject:["root"],props:["tasks"],data(){return{}},methods:{getPoints(t,e){const r=this.root.getTask(t),o=this.root.getTask(e);if(null===r||null===o||!this.root.isTaskVisible(o)||!this.root.isTaskVisible(r))return null;const s=r.x+r.width,i=r.y+r.height/2,n=o.x,a=o.y+o.height/2,l=n-s;let c,u=1;a>=i?c=a-i:(c=i-a,u=-1);const h=10,d=4,p=l<=h+d;let f=`M ${s} ${i}\n L ${s+h},${i} `;return f+=p?`Q ${s+h+d},${i} ${s+h+d},${i+d*u}\n L ${s+h+d},${i+c*u/2-d*u}\n Q ${s+h+d},${i+c*u/2} ${s+h},${i+c*u/2}\n L ${s-h+l},${i+c*u/2}\n Q ${s-h+l-d},${i+c*u/2} ${s-h+l-d},${i+c*u/2+d*u}\n L ${s-h+l-d},${a-d*u}\n Q ${s-h+l-d},${a} ${s-h+l},${a}\n L ${n},${a}`:`L ${s+l/2-d},${i}\n Q ${s+l/2},${i} ${s+l/2},${i+d*u}\n L ${s+l/2},${a-d*u}\n Q ${s+l/2},${a} ${s+l/2+d},${a}\n L ${n},${a}`,f}},computed:{dependencyTasks(){return this.tasks.filter((t=>"undefined"!==typeof t.dependentOn)).map((t=>(t.dependencyLines=t.dependentOn.map((e=>({points:this.getPoints(e,t.id),task_id:e}))),t))).filter((t=>null!==t.dependencyLines.points))}}},yt=mt,gt=v(yt,pt,ft,!1,null,null,null),vt=gt.exports,bt=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-task-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-task-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--task",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--task"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-task",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-task"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x,y:t.task.y,width:t.task.width,height:t.task.height,viewBox:`0 0 ${t.task.width} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("polygon",{attrs:{points:t.getPoints}})])]),e("polygon",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-task-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-task-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{points:t.getPoints}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},wt=[],xt=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"gantt-elastic__chart-row-text-wrapper",style:{...t.root.style["chart-row-text-wrapper"]},attrs:{x:t.task.x+t.task.width+t.root.state.options.chart.text.offset,y:t.task.y-t.root.state.options.chart.grid.horizontal.gap,width:t.getWidth,height:t.getHeight}},[e("foreignObject",{attrs:{x:"0",y:"0",width:"100%",height:t.getHeight}},[e("div",{staticClass:"gantt-elastic__chart-row-text",style:{...t.root.style["chart-row-text"]},attrs:{xmlns:"http://www.w3.org/1999/xhtml"}},[t.html?t._e():e("div",{staticClass:"gantt-elastic__chart-row-text-content gantt-elastic__chart-row-text-content--text",style:{...t.root.style["chart-row-text-content"],...t.root.style["chart-row-text-content--text"],...t.contentStyle}},[e("div",[t._v(t._s(t.task.label))])]),t.html?e("div",{staticClass:"gantt-elastic__chart-row-text-content gantt-elastic__chart-row-text-content--html",style:{...t.root.style["chart-row-text-content"],...t.root.style["chart-row-text-content--html"],...t.contentStyle},domProps:{innerHTML:t._s(t.task.label)}}):t._e()])])])},kt=[],_t={name:"ChartText",inject:["root"],props:["task"],data(){return{}},computed:{getWidth(){const t=this.root.style["chart-row-text"],e=`${t["font-weight"]} ${t["font-size"]} ${t["font-family"]}`;this.setFont(e);const r=this.root.state.ctx.measureText(this.task.label).width;return r+2*this.root.state.options.chart.text.xPadding},getHeight(){return this.task.height+2*this.root.state.options.chart.grid.horizontal.gap},contentStyle(){return{height:"100%","line-height":this.getHeight+"px"}},html(){const t=this.root.state.options.taskList.columns;for(let e=0,r=t.length;e<r;e++){const r=t[e];if("label"===r.value&&"undefined"!==typeof r.html&&r.html)return!0}return!1}},methods:{setFont(t){this.root.state.ctx.font=t}}},Ot=_t,St=v(Ot,xt,kt,!1,null,null,null),Tt=St.exports,Pt=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-progress-bar-wrapper",style:{...t.root.style["chart-row-progress-bar-wrapper"],...t.task.style["chart-row-progress-bar-wrapper"]}},[e("defs",[e("pattern",{attrs:{id:"diagonalHatch",width:t.root.state.options.chart.progress.width,height:t.root.state.options.chart.progress.width,patternTransform:"rotate(45 0 0)",patternUnits:"userSpaceOnUse"}},[e("line",{staticClass:"chart-row-progress-bar-line",style:{...t.root.style["chart-row-progress-bar-line"],...t.task.style["chart-row-progress-bar-line"]},attrs:{x1:"0",y1:"0",x2:"0",y2:t.root.state.options.chart.progress.width}})])]),t.root.state.options.chart.progress.bar?e("rect",{staticClass:"gantt-elastic__chart-row-progress-bar-solid",style:{...t.root.style["chart-row-progress-bar-solid"],...t.task.style["chart-row-progress-bar-solid"]},attrs:{x:"0",y:"0",width:t.getProgressWidth}}):t._e(),t.root.state.options.chart.progress.pattern?e("g",[e("rect",{staticClass:"gantt-elastic__chart-row-progress-bar-pattern",style:{...t.root.style["chart-row-progress-bar-pattern"],...t.task.style["chart-row-progress-bar-pattern"]},attrs:{x:t.getProgressWidth,y:"0",width:100-t.task.progress+"%",height:"100%"}}),e("path",{staticClass:"gantt-elastic__chart-row-progress-bar-outline",style:{...t.root.style["chart-row-progress-bar-outline"],...t.task.style["base"],...t.task.style["chart-row-progress-bar-outline"]},attrs:{d:t.getLinePoints}})]):t._e()])},Ct=[],Et={name:"ProgressBar",inject:["root"],props:["task"],data(){return{}},computed:{getProgressWidth(){return this.task.progress+"%"},getLinePoints(){const t=this.task.width/100*this.task.progress;return`M ${t} 0 L ${t} ${this.task.height}`},getSolidStyle(){return Object.assign({},this.root.state.options.chart.progress.styles.bar.solid,this.task.progressBarStyle.bar)},getLineStyle(){return Object.assign({},{stroke:this.root.state.options.row.styles.bar.stroke+"a0","stroke-width":this.root.state.options.row.styles.bar["stroke-width"]/2},this.task.style)}}},$t=Et,Dt=v($t,Pt,Ct,!1,null,null,null),Mt=Dt.exports,jt={computed:{getViewBox(){const t=this.task;return`0 0 ${t.width} ${t.height}`},getGroupTransform(){return`translate(${this.task.x} ${this.task.y})`},displayExpander(){const t=this.root.state.options.chart.expander;return t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display}},methods:{emitEvent(t,e){this.root.state.options.scroll.scrolling||this.root.$emit(`chart-${this.task.type}-${t}`,{event:e,data:this.task})}}},Lt={name:"Task",components:{ChartText:Tt,ProgressBar:Mt,Expander:w},inject:["root"],props:["task"],mixins:[jt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__task-clip-path-"+this.task.id},getPoints(){const t=this.task;return`0,0 ${t.width},0 ${t.width},${t.height} 0,${t.height}`}}},zt=Lt,At=v(zt,bt,wt,!1,null,null,null),Rt=At.exports,Ht=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-milestone-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-milestone-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--milestone",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--milestone"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-milestone",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-milestone"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x,y:t.task.y,width:t.task.width,height:t.task.height,viewBox:`0 0 ${t.task.width} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("polygon",{attrs:{points:t.getPoints}})])]),e("polygon",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-milestone-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-milestone-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{points:t.getPoints}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},It=[],Vt={name:"Milestone",components:{ChartText:Tt,ProgressBar:Mt,Expander:w},inject:["root"],props:["task"],mixins:[jt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__milestone-clip-path-"+this.task.id},getPoints(){const t=this.task,e=t.height/2;let r=e;return t.width/2-r<0&&(r=t.width/2),`0,${e}\n ${r},0\n ${t.width-r},0\n ${t.width},${e}\n ${t.width-r},${t.height}\n ${r},${t.height}`}}},Wt=Vt,Ft=v(Wt,Ht,It,!1,null,null,null),Bt=Ft.exports,Nt=function(){var t=this,e=t._self._c;return e("g",{staticClass:"gantt-elastic__chart-row-bar-wrapper gantt-elastic__chart-row-project-wrapper",style:{...t.root.style["chart-row-bar-wrapper"],...t.root.style["chart-row-project-wrapper"],...t.task.style["chart-row-bar-wrapper"]}},[t.displayExpander?e("foreignObject",{staticClass:"gantt-elastic__chart-expander gantt-elastic__chart-expander--project",style:{...t.root.style["chart-expander"],...t.root.style["chart-expander--project"],...t.task.style["chart-expander"]},attrs:{x:t.task.x-t.root.state.options.chart.expander.offset-t.root.state.options.chart.expander.size,y:t.task.y+(t.root.state.options.row.height-t.root.state.options.chart.expander.size)/2,width:t.root.state.options.chart.expander.size,height:t.root.state.options.chart.expander.size}},[e("expander",{attrs:{tasks:[t.task],options:t.root.state.options.chart.expander,type:"chart"}})],1):t._e(),e("svg",{staticClass:"gantt-elastic__chart-row-bar gantt-elastic__chart-row-project",style:{...t.root.style["chart-row-bar"],...t.root.style["chart-row-project"],...t.task.style["chart-row-bar"]},attrs:{x:t.task.x,y:t.task.y,width:t.task.width,height:t.task.height,viewBox:`0 0 ${t.task.width} ${t.task.height}`,xmlns:"http://www.w3.org/2000/svg"},on:{click:function(e){return t.emitEvent("click",e)},mouseenter:function(e){return t.emitEvent("mouseenter",e)},mouseover:function(e){return t.emitEvent("mouseover",e)},mouseout:function(e){return t.emitEvent("mouseout",e)},mousemove:function(e){return t.emitEvent("mousemove",e)},mousedown:function(e){return t.emitEvent("mousedown",e)},mouseup:function(e){return t.emitEvent("mouseup",e)},mousewheel:function(e){return t.emitEvent("mousewheel",e)},touchstart:function(e){return t.emitEvent("touchstart",e)},touchmove:function(e){return t.emitEvent("touchmove",e)},touchend:function(e){return t.emitEvent("touchend",e)}}},[e("defs",[e("clipPath",{attrs:{id:t.clipPathId}},[e("path",{attrs:{d:t.getPoints}})])]),e("path",{staticClass:"gantt-elastic__chart-row-bar-polygon gantt-elastic__chart-row-project-polygon",style:{...t.root.style["chart-row-bar-polygon"],...t.root.style["chart-row-project-polygon"],...t.task.style["base"],...t.task.style["chart-row-bar-polygon"]},attrs:{d:t.getPoints}}),e("progress-bar",{attrs:{task:t.task,"clip-path":"url(#"+t.clipPathId+")"}})],1),t.root.state.options.chart.text.display?e("chart-text",{attrs:{task:t.task}}):t._e()],1)},Yt=[],Ut={name:"Project",components:{ChartText:Tt,ProgressBar:Mt,Expander:w},inject:["root"],props:["task"],mixins:[jt],data(){return{}},computed:{clipPathId(){return"gantt-elastic__project-clip-path-"+this.task.id},getPoints(){const t=this.task,e=t.height-t.height/4,r=t.height/6,o=t.height/8;return`M ${o},0\n L ${t.width-o} 0\n L ${t.width} ${o}\n L ${t.width} ${e}\n L ${t.width-r} ${t.height}\n L ${t.width-2*r} ${e}\n L ${2*r} ${e}\n L ${r} ${t.height}\n L 0 ${e}\n L 0 ${o}\n Z\n `},displayExpander(){const t=this.root.state.options.chart.expander;return t.display||t.displayIfTaskListHidden&&!this.root.state.options.taskList.display}}},Xt=Ut,Gt=v(Xt,Nt,Yt,!1,null,null,null),Zt=Gt.exports,qt={name:"Chart",components:{Grid:G,DependencyLines:vt,Calendar:dt,Task:Rt,Milestone:Bt,Project:Zt,DaysHighlight:tt},inject:["root"],data(){return{moving:!1}},mounted(){this.root.state.refs.chart=this.$refs.chart,this.root.state.refs.chartCalendarContainer=this.$refs.chartCalendarContainer,this.root.state.refs.chartGraphContainer=this.$refs.chartGraphContainer,this.root.state.refs.chartGraph=this.$refs.chartGraph,this.root.state.refs.chartGraphSvg=this.$refs.chartGraphSvg},computed:{getViewBox(){return`0 0 ${this.root.state.options.width} ${this.root.state.options.allVisibleTasksHeight}`}}},Jt=qt,Kt=v(Jt,W,F,!1,null,null,null),Qt=Kt.exports;var te={name:"MainView",components:{TaskList:V,Chart:Qt},inject:["root"],data(){return{defs:"",mousePos:{x:0,y:0,movementX:0,movementY:0,lastX:0,lastY:0,positiveX:0,positiveY:0,currentX:0,currentY:0}}},mounted(){this.viewBoxWidth=this.$el.clientWidth,this.root.state.refs.mainView=this.$refs.mainView,this.root.state.refs.chartContainer=this.$refs.chartContainer,this.root.state.refs.taskList=this.$refs.taskList,this.root.state.refs.chartScrollContainerHorizontal=this.$refs.chartScrollContainerHorizontal,this.root.state.refs.chartScrollContainerVertical=this.$refs.chartScrollContainerVertical,document.addEventListener("mouseup",this.chartMouseUp.bind(this)),document.addEventListener("mousemove",this.chartMouseMove.bind(this)),document.addEventListener("touchmove",this.chartMouseMove.bind(this)),document.addEventListener("touchend",this.chartMouseUp.bind(this))},computed:{getMarginLeft(){return this.root.state.options.taskList.display?this.root.state.options.taskList.finalWidth+"px":"0px"},verticalStyle(){return{width:this.root.state.options.scrollBarHeight+"px",height:this.root.state.options.rowsHeight+"px","margin-top":this.root.state.options.calendar.height+this.root.state.options.calendar.gap+"px"}},getViewBox(){return this.root.state.options.clientWidth?`0 0 ${this.root.state.options.clientWidth-this.root.state.options.scrollBarHeight} ${this.root.state.options.height}`:`0 0 0 ${this.root.state.options.height}`}},methods:{mouseMove(t){this.root.$emit("main-view-mousemove",t)},mouseUp(t){this.root.$emit("main-view-mouseup",t)},onHorizontalScroll(t){this.root.$emit("chart-scroll-horizontal",t)},onVerticalScroll(t){this.root.$emit("chart-scroll-vertical",t)},chartWheel(t){this.root.$emit("chart-wheel",t)},chartMouseDown(t){"undefined"!==typeof t.touches&&(this.mousePos.x=this.mousePos.lastX=t.touches[0].screenX,this.mousePos.y=this.mousePos.lastY=t.touches[0].screenY,this.mousePos.movementX=0,this.mousePos.movementY=0,this.mousePos.currentX=this.$refs.chartScrollContainerHorizontal.scrollLeft,this.mousePos.currentY=this.$refs.chartScrollContainerVertical.scrollTop),this.root.state.options.scroll.scrolling=!0},chartMouseUp(t){this.root.state.options.scroll.scrolling=!1},chartMouseMove(t){if(this.root.state.options.scroll.scrolling){t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation();const e="undefined"!==typeof t.touches;let r,o;if(e){const e=t.touches[0].screenX,s=t.touches[0].screenY;r=this.mousePos.x-e,o=this.mousePos.y-s,this.mousePos.lastX=e,this.mousePos.lastY=s}else r=t.movementX,o=t.movementY;const s=this.$refs.chartScrollContainerHorizontal,i=this.$refs.chartScrollContainerVertical;let n=0,a=0;n=e?this.mousePos.currentX+r*this.root.state.options.scroll.dragXMoveMultiplier:s.scrollLeft-r*this.root.state.options.scroll.dragXMoveMultiplier,s.scrollLeft=n,a=e?this.mousePos.currentY+o*this.root.state.options.scroll.dragYMoveMultiplier:i.scrollTop-o*this.root.state.options.scroll.dragYMoveMultiplier,i.scrollTop=a}}}},ee=te,re=v(ee,l,c,!1,null,null,null),oe=re.exports;function se(t="12px",e="Arial, sans-serif"){return{fontSize:t,fontFamily:e,"main-view":{background:"#FFFFFF"},"main-container-wrapper":{overflow:"hidden","border-top":"1px solid #eee","border-bottom":"1px solid #eee"},"main-container":{float:"left","max-width":"100%"},"main-view-container":{},container:{display:"flex","max-width":"100%",height:"100%"},"calendar-wrapper":{"user-select":"none"},calendar:{width:"100%",background:"#f3f5f7",display:"block"},"calendar-row":{display:"flex","justify-content":"space-evenly"},"calendar-row--month":{},"calendar-row--day":{},"calendar-row--hour":{"border-bottom":"1px solid #eee"},"calendar-row-rect":{background:"transparent",display:"flex"},"calendar-row-rect--month":{},"calendar-row-rect--day":{},"calendar-row-rect--hour":{},"calendar-row-rect-child":{display:"block","border-right-width":"1px","border-right-color":"#dadada","border-right-style":"solid",position:"relative"},"calendar-row-rect-child--month":{},"calendar-row-rect-child--day":{"text-align":"center"},"calendar-row-rect-child--hour":{"text-align":"center"},"calendar-row-text":{"font-family":e,"font-size":t,color:"#606060",display:"inline-block",position:"relative"},"calendar-row-text--month":{},"calendar-row-text--day":{},"calendar-row-text--hour":{},"task-list-wrapper":{},"task-list":{background:"transparent","border-color":"#eee"},"task-list-header":{display:"flex","user-select":"none","vertical-align":"middle","border-bottom":"1px solid #eee","border-left":"1px solid #eee"},"task-list-header-column":{"border-left":"1px solid #00000050","box-sizing":"border-box",display:"flex",background:"#f3f5f7","border-color":"transparent"},"task-list-expander-wrapper":{display:"inline-flex","flex-shrink":"0","box-sizing":"border-box",margin:"0 0 0 10px"},"task-list-expander-content":{display:"inline-flex",cursor:"pointer",margin:"auto 0px","box-sizing":"border-box","user-select":"none"},"task-list-expander-line":{fill:"transparent",stroke:"#000000","stroke-width":"1","stroke-linecap":"round"},"task-list-expander-border":{fill:"#ffffffa0",stroke:"#000000A0"},"chart-expander-wrapper":{display:"block","line-height":"1","box-sizing":"border-box",margin:"0"},"chart-expander-content":{display:"inline-flex",cursor:"pointer",margin:"auto 0px","box-sizing":"border-box","user-select":"none"},"chart-expander-line":{fill:"transparent",stroke:"#000000","stroke-width":"1","stroke-linecap":"round"},"chart-expander-border":{fill:"#ffffffa0",stroke:"#000000A0"},"task-list-container":{},"task-list-header-label":{overflow:"hidden","text-overflow":"ellipsis","font-family":e,"font-size":t,"box-sizing":"border-box",margin:"auto 6px","flex-grow":"1","vertical-align":"middle"},"task-list-header-resizer-wrapper":{background:"transparent",height:"100%",width:"6px",cursor:"col-resize",display:"inline-flex","vertical-align":"center"},"task-list-header-resizer":{margin:"auto 0px"},"task-list-header-resizer-dot":{width:"3px",height:"3px",background:"#ddd","border-radius":"100%",margin:"4px 0px"},"task-list-items":{overflow:"hidden"},"task-list-item":{"border-top":"1px solid #eee","border-right":"1px solid #eee","box-sizing":"border-box",display:"flex",background:"transparent"},"task-list-item-column":{display:"inline-flex","flex-shrink":"0","border-left":"1px solid #00000050","box-sizing":"border-box","border-color":"#eee"},"task-list-item-value-wrapper":{overflow:"hidden",display:"flex",width:"100%"},"task-list-item-value-container":{margin:"auto 0px",overflow:"hidden"},"task-list-item-value":{display:"block","flex-shrink":"100","font-family":e,"font-size":t,"margin-top":"auto","margin-bottom":"auto","margin-left":"6px","margin-right":"6px",overflow:"hidden","text-overflow":"ellipsis","line-height":"1.5em","word-break":"keep-all","white-space":"nowrap",color:"#606060",background:"#FFFFFF"},"grid-lines":{},"grid-line-horizontal":{stroke:"#00000010","stroke-width":1},"grid-line-vertical":{stroke:"#00000010","stroke-width":1},"grid-line-time":{stroke:"#FF000080","stroke-width":1},chart:{"user-select":"none",overflow:"hidden"},"chart-calendar-container":{"user-select":"none",overflow:"hidden","max-width":"100%","border-right":"1px solid #eee"},"chart-graph-container":{"user-select":"none",overflow:"hidden","max-width":"100%","border-right":"1px solid #eee"},"chart-area":{},"chart-graph":{overflow:"hidden"},"chart-row-text-wrapper":{},"chart-row-text":{background:"#ffffffa0","border-radius":"10px","font-family":e,"font-size":t,"font-weight":"normal",color:"#000000a0",height:"100%",display:"inline-block"},"chart-row-text-content":{padding:"0px 6px"},"chart-row-text-content--text":{},"chart-row-text-content--html":{},"chart-row-wrapper":{},"chart-row-bar-wrapper":{},"chart-row-bar":{},"chart-row-bar-polygon":{stroke:"#E74C3C","stroke-width":1,fill:"#F75C4C"},"chart-row-project-wrapper":{},"chart-row-project":{},"chart-row-project-polygon":{},"chart-row-milestone-wrapper":{},"chart-row-milestone":{},"chart-row-milestone-polygon":{},"chart-row-task-wrapper":{},"chart-row-task":{},"chart-row-task-polygon":{},"chart-row-progress-bar-wrapper":{},"chart-row-progress-bar":{},"chart-row-progress-bar-line":{stroke:"#ffffff25","stroke-width":20},"chart-row-progress-bar-solid":{fill:"#0EAC51",height:"20%"},"chart-row-progress-bar-pattern":{fill:"url(#diagonalHatch)",transform:"translateY(0.1) scaleY(0.8)"},"chart-row-progress-bar-outline":{stroke:"#E74C3C","stroke-width":1},"chart-dependency-lines-wrapper":{},"chart-dependency-lines-path":{fill:"transparent",stroke:"#FFa00090","stroke-width":2},"chart-scroll-container":{},"chart-scroll-container--horizontal":{overflow:"auto","max-width":"100%"},"chart-scroll-container--vertical":{"overflow-y":"auto","overflow-x":"hidden","max-height":"100%",float:"right"},"chart-days-highlight-rect":{fill:"#f3f5f780"},"slot-header-beforeOptions":{display:"inline-block"}}}var ie=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var r=-1;return t.some((function(t,o){return t[0]===e&&(r=o,!0)})),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),o=this.__entries__[r];return o&&o[1]},e.prototype.set=function(e,r){var o=t(this.__entries__,e);~o?this.__entries__[o][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,o=t(r,e);~o&&r.splice(o,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,o=this.__entries__;r<o.length;r++){var s=o[r];t.call(e,s[1],s[0])}},e}()}(),ne="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,ae=function(){return"undefined"!==typeof o.g&&o.g.Math===Math?o.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),le=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(ae):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),ce=2;function ue(t,e){var r=!1,o=!1,s=0;function i(){r&&(r=!1,t()),o&&a()}function n(){le(i)}function a(){var t=Date.now();if(r){if(t-s<ce)return;o=!0}else r=!0,o=!1,setTimeout(n,e);s=t}return a}var he=20,de=["top","right","bottom","left","width","height","size","weight"],pe="undefined"!==typeof MutationObserver,fe=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ue(this.refresh.bind(this),he)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){ne&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),pe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){ne&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e,o=de.some((function(t){return!!~r.indexOf(t)}));o&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),me=function(t,e){for(var r=0,o=Object.keys(e);r<o.length;r++){var s=o[r];Object.defineProperty(t,s,{value:e[s],enumerable:!1,writable:!1,configurable:!0})}return t},ye=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||ae},ge=Pe(0,0,0,0);function ve(t){return parseFloat(t)||0}function be(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce((function(e,r){var o=t["border-"+r+"-width"];return e+ve(o)}),0)}function we(t){for(var e=["top","right","bottom","left"],r={},o=0,s=e;o<s.length;o++){var i=s[o],n=t["padding-"+i];r[i]=ve(n)}return r}function xe(t){var e=t.getBBox();return Pe(0,0,e.width,e.height)}function ke(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return ge;var o=ye(t).getComputedStyle(t),s=we(o),i=s.left+s.right,n=s.top+s.bottom,a=ve(o.width),l=ve(o.height);if("border-box"===o.boxSizing&&(Math.round(a+i)!==e&&(a-=be(o,"left","right")+i),Math.round(l+n)!==r&&(l-=be(o,"top","bottom")+n)),!Oe(t)){var c=Math.round(a+i)-e,u=Math.round(l+n)-r;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return Pe(s.left,s.top,a,l)}var _e=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof ye(t).SVGGraphicsElement}:function(t){return t instanceof ye(t).SVGElement&&"function"===typeof t.getBBox}}();function Oe(t){return t===ye(t).document.documentElement}function Se(t){return ne?_e(t)?xe(t):ke(t):ge}function Te(t){var e=t.x,r=t.y,o=t.width,s=t.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,n=Object.create(i.prototype);return me(n,{x:e,y:r,width:o,height:s,top:r,right:e+o,bottom:s+r,left:e}),n}function Pe(t,e,r,o){return{x:t,y:e,width:r,height:o}}var Ce=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Pe(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Se(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),Ee=function(){function t(t,e){var r=Te(e);me(this,{target:t,contentRect:r})}return t}(),$e=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new ie,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof ye(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Ce(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof ye(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new Ee(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),De="undefined"!==typeof WeakMap?new WeakMap:new ie,Me=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=fe.getInstance(),o=new $e(e,r,this);De.set(this,o)}return t}();["observe","unobserve","disconnect"].forEach((function(t){Me.prototype[t]=function(){var e;return(e=De.get(this))[t].apply(e,arguments)}}));var je=function(){return"undefined"!==typeof ae.ResizeObserver?ae.ResizeObserver:Me}(),Le=je,ze=function(){var t=this,e=t._self._c;return e("div",{staticClass:"gantt-elastic__header",style:{...t.style["header"]}},[e("div",{staticClass:"gantt-elastic__header-title",style:{...t.style["header-title"]}},[t.opts.title.html?t._e():e("div",{staticClass:"gantt-elastic__header-title--text",style:{...t.style["header-title--text"]}},[t._v(" "+t._s(t.opts.title.label)+" ")]),t.opts.title.html?e("div",{staticClass:"gantt-elastic__header-title--html",style:{...t.style["header-title--html"]},domProps:{innerHTML:t._s(t.opts.title.label)}}):t._e()]),e("div",{staticClass:"gantt-elastic__header-options",style:{...t.style["header-options"]}},[e("button",{staticClass:"gantt-elastic__header-btn-recenter",style:{...t.style["header-btn-recenter"]},on:{click:function(e){return e.preventDefault(),t.recenterPosition.apply(null,arguments)}}},[t._v(" "+t._s(t.opts.locale.Now)+" ")]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["X-Scale"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:24,min:2,width:"100px"},model:{value:t.scale,callback:function(e){t.scale=e},expression:"scale"}})],1)]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["Y-Scale"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:100,min:7,width:"100px"},model:{value:t.height,callback:function(e){t.height=e},expression:"height"}})],1)]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["Before/After"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:31,min:0,width:"100px"},model:{value:t.scope,callback:function(e){t.scope=e},expression:"scope"}})],1)]),e("label",{staticClass:"gantt-elastic__header-label",style:{...t.style["header-label"]}},[t._v(" "+t._s(t.opts.locale["Task list width"])+" "),e("div",{staticClass:"gantt-elastic__header-slider-wrapper",style:{...t.style["header-slider-wrapper"]}},[e("vue-slider",{staticClass:"gantt-elastic__header-slider",style:{...t.style["header-slider"]},attrs:{tooltip:"none","process-style":{...t.style["header-slider--process"]},"slider-style":{...t.style["header-slider--slider"]},max:100,min:0,width:"100px"},model:{value:t.divider,callback:function(e){t.divider=e},expression:"divider"}})],1)]),e("label",{staticClass:"gantt-elastic__header-task-list-switch--wrapper",style:{...t.style["header-task-list-switch--label"]}},[e("switches",{staticClass:"gantt-elastic__header-task-list-switch",style:{...t.style["header-task-list-switch"]},model:{value:t.root.state.options.taskList.display,callback:function(e){t.$set(t.root.state.options.taskList,"display",e)},expression:"root.state.options.taskList.display"}}),t._v(" "+t._s(t.opts.locale["Display task list"])+" ")],1)])])},Ae=[],Re=o(378),He=o.n(Re),Ie=function(){var t=this,e=t._self._c;return e("label",{class:t.classObject},[t.shouldShowLabel?e("span",{staticClass:"vue-switcher__label"},[t.label?e("span",{domProps:{textContent:t._s(t.label)}}):t._e(),!t.label&&t.value?e("span",{domProps:{textContent:t._s(t.textEnabled)}}):t._e(),t.label||t.value?t._e():e("span",{domProps:{textContent:t._s(t.textDisabled)}})]):t._e(),e("input",{attrs:{type:"checkbox",disabled:t.disabled},domProps:{checked:t.value},on:{change:t.trigger}}),e("div")])},Ve=[],We={name:"switches",props:{typeBold:{default:!1},value:{default:!1},disabled:{default:!1},label:{default:""},textEnabled:{default:""},textDisabled:{default:""},color:{default:"default"},theme:{default:"default"},emitOnMount:{default:!0}},mounted(){this.emitOnMount&&this.$emit("input",this.value)},methods:{trigger(t){this.$emit("input",t.target.checked)}},computed:{classObject(){const{color:t,value:e,theme:r,typeBold:o,disabled:s}=this;return{"vue-switcher":!0,["vue-switcher--unchecked"]:!e,["vue-switcher--disabled"]:s,["vue-switcher--bold"]:o,["vue-switcher--bold--unchecked"]:o&&!e,[`vue-switcher-theme--${r}`]:t,[`vue-switcher-color--${t}`]:t}},shouldShowLabel(){return""!==this.label||""!==this.textEnabled||""!==this.textDisabled}}},Fe=We,Be=v(Fe,Ie,Ve,!1,null,null,null),Ne=Be.exports;const Ye={header:{margin:"0px auto",background:"#f3f5f747",padding:"10px",overflow:"hidden",clear:"both",display:"flex","justify-content":"space-between"},"header-title":{float:"left"},"header-options":{float:"right"},"header-title--text":{"font-size":"20px","vertical-align":"middle","font-weight":"400","line-height":"35px","padding-left":"22px","letter-spacing":"1px"},"header-title--html":{"font-size":"20px","vertical-align":"middle","font-weight":"400","line-height":"35px","padding-left":"22px","letter-spacing":"1px"},"header-btn-recenter":{background:"#95A5A6",border:"none",outline:"none",cursor:"pointer",color:"white","border-radius":"3px","margin-right":"27px","font-size":"16px",padding:"8px 12px"},"header-slider":{"box-sizing":"content-box"},"header-slider-wrapper":{display:"inline-block","vertical-align":"middle"},"header-slider--slider":{"box-sizing":"content-box"},"header-slider--process":{"box-sizing":"content-box"},"header-task-list-switch--label":{"box-sizing":"content-box"},"header-task-list-switch":{margin:"0px 15px","vertical-align":"middle"},"header-label":{}},Ue={title:{label:"",html:!0},locale:{Now:"Now","X-Scale":"Zoom-X","Y-Scale":"Zoom-Y","Task list width":"Task list","Before/After":"Expand","Display task list":"Show task list"}};var Xe={name:"GanttHeader",components:{vueSlider:He(),Switches:Ne},props:["options","dynamicStyle"],inject:["root"],data(){return{scaleTimeoutId:null,firstScale:!1,localScale:0,localHeight:0,localBefore:0,localPercent:0,sliderOptions:{xScale:{value:0}},style:{},opts:{}}},created(){Ue.title.label=this.root.projectName,this.localScale=this.root.state.options.times.timeZoom,this.localHeight=this.root.state.options.row.height,this.localBefore=this.root.state.options.scope.before,this.localPercent=this.root.state.options.taskList.percent,this.sliderOptions.xScale.value=this.root.state.options.times.timeZoom,this.style=this.root.mergeDeep({},Ye,this.dynamicStyle),this.opts=this.root.mergeDeep({},Ue,this.options)},methods:{getImage(){this.root.getImage("image/png").then((t=>{const e=document.createElement("a");e.href=t,e.download="gantt-elastic.png",document.body.appendChild(e),e.click(),document.body.removeChild(e)}))},recenterPosition(){this.root.$emit("recenterPosition")},setScale(t){null!==this.scaleTimeoutId&&(clearTimeout(this.scaleTimeoutId),this.scaleTimeoutId=null),this.firstScale?this.scaleTimeoutId=setTimeout((()=>{this.root.$emit("times-timeZoom-change",t),this.scaleTimeoutId=null}),50):(this.root.$emit("times-timeZoom-change",t),this.firstScale=!0)}},computed:{beforeOptionsIsComponent(){const t=this.options.slots.header;return"object"===typeof t.beforeOptions&&!Array.isArray(t.beforeOptions)},beforeOptionsIsHtml(){return"string"===typeof this.options.slots.header.beforeOptions},scale:{get(){return this.localScale},set(t){this.localScale=Number(t),this.setScale(this.localScale)}},height:{get(){return this.localHeight},set(t){this.localHeight=Number(t),this.root.$emit("row-height-change",Number(t))}},scope:{get(){return this.localBefore},set(t){this.localBefore=Number(t),this.root.$emit("scope-change",Number(t))}},divider:{get(){return this.localPercent},set(t){this.localPercent=Number(t),this.root.$emit("taskList-width-change",Number(t))}}}},Ge=Xe,Ze=v(Ge,ze,Ae,!1,null,null,null),qe=Ze.exports;const Je=document.createElement("canvas").getContext("2d");function Ke(t){let e="en";return"undefined"!==typeof t.locale&&"undefined"!==typeof t.locale.name&&(e=t.locale.name),{slots:{header:{}},taskMapping:{id:"id",start:"start",label:"label",duration:"duration",progress:"progress",type:"type",style:"style",collapsed:"collapsed"},width:0,height:0,clientWidth:0,outerHeight:0,rowsHeight:0,allVisibleTasksHeight:0,scroll:{scrolling:!1,dragXMoveMultiplier:3,dragYMoveMultiplier:2,top:0,taskList:{left:0,right:0,top:0,bottom:0},chart:{left:0,right:0,percent:0,timePercent:0,top:0,bottom:0,time:0,timeCenter:0,dateTime:{left:"",right:""}}},scope:{before:1,after:1},times:{timeScale:6e4,timeZoom:17,timePerPixel:0,firstTime:null,lastTime:null,firstTaskTime:0,lastTaskTime:0,totalViewDurationMs:0,totalViewDurationPx:0,stepDuration:"day",steps:[]},row:{height:24},maxRows:20,maxHeight:0,chart:{grid:{horizontal:{gap:6}},progress:{width:20,height:6,pattern:!0,bar:!1},text:{offset:4,xPadding:10,display:!0},expander:{type:"chart",display:!1,displayIfTaskListHidden:!0,offset:4,size:18}},taskList:{display:!0,resizeAfterThreshold:!0,widthThreshold:75,columns:[{id:0,label:"ID",value:"id",width:40}],percent:100,width:0,finalWidth:0,widthFromPercentage:0,minWidth:18,expander:{type:"task-list",size:16,columnWidth:24,padding:16,margin:10,straight:!1}},calendar:{workingDays:[1,2,3,4,5],gap:6,height:0,strokeWidth:1,hour:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},formatted:{long:[],medium:[],short:[]},format:{long(t){return t.format("HH:mm")},medium(t){return t.format("HH:mm")},short(t){return t.format("HH")}}},day:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},format:{long(t){return t.format("DD dddd")},medium(t){return t.format("DD ddd")},short(t){return t.format("DD")}}},month:{height:20,display:!0,widths:[],maxWidths:{short:0,medium:0,long:0},format:{short(t){return t.format("MM")},medium(t){return t.format("MMM 'YY")},long(t){return t.format("MMMM YYYY")}}}},locale:{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:t=>{const e=["th","st","nd","rd"],r=t%100;return`[${t}${e[(r-20)%10]||e[r]||e[0]}]`}}}}function Qe(t){let e="12px",r=window.getComputedStyle(document.body).getPropertyValue("font-family").toString();return"undefined"!==typeof t&&("undefined"!==typeof t.fontSize&&(e=t.fontSize),"undefined"!==typeof t.fontFamily&&(r=t.fontFamily)),se(e,r)}function tr(t){return t&&"object"===typeof t&&!Array.isArray(t)&&!(t instanceof HTMLElement)&&!(t instanceof CanvasRenderingContext2D)&&"function"!==typeof t}function er(t,...e){if(!e.length)return t;const r=e.shift();if(tr(t)&&tr(r))for(const o in r)if(tr(r[o]))"undefined"===typeof t[o]&&(t[o]={}),t[o]=er(t[o],r[o]);else if(Array.isArray(r[o])){t[o]=[];for(let e of r[o])tr(e)?t[o].push(er({},e)):t[o].push(e)}else t[o]=r[o];return er(t,...e)}function rr(t,e,...r){if(!r.length)return e;const o=r.shift();if(tr(e)&&tr(o))for(const s in o)tr(o[s])?("undefined"===typeof e[s]&&t.$set(e,s,{}),rr(t,e[s],o[s])):Array.isArray(o[s])?t.$set(e,s,o[s]):"function"===typeof o[s]?-1===o[s].toString().indexOf("[native code]")&&(e[s]=o[s]):t.$set(e,s,o[s]);return rr(t,e,...r)}function or(t,e,r=[],o=""){if(typeof e!==typeof t)return{left:t,right:e,what:o+".typeof"};if(Array.isArray(t)&&!Array.isArray(e))return{left:t,right:e,what:o+".isArray"};if(Array.isArray(e)&&!Array.isArray(t))return{left:t,right:e,what:o+".isArray"};if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{left:t,right:e,what:o+".length"};let s;for(let i=0,n=t.length;i<n;i++)if(s=or(t[i],e[i],r,o+"."+i))return s}else{if(tr(t)&&!tr(e))return{left:t,right:e,what:o+".isObject"};if(tr(e)&&!tr(t))return{left:t,right:e,what:o+".isObject"};if(tr(t)&&tr(e))for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||!Object.prototype.propertyIsEnumerable.call(t,s))continue;if(!Object.prototype.hasOwnProperty.call(e,s))return{left:t,right:e,what:o+"."+s};let i;if(i=or(t[s],e[s],r,o+"."+s))return i}else if(t!==e)return{left:t,right:e,what:o+". !=="}}return!1}const sr={name:"GanttElastic",components:{MainView:oe,"gantt-header":qe},props:["tasks","options","dynamicStyle","isHeaderVisible","projectName"],provide(){const t={},e=this;return Object.defineProperty(t,"root",{enumerable:!0,get:()=>e}),t},data(){return{state:{tasks:[],options:{scrollBarHeight:0,allVisibleTasksHeight:0,outerHeight:0,scroll:{left:0,top:0}},dynamicStyle:{},refs:{},tasksById:{},taskTree:{},ctx:Je,emitTasksChanges:!0,emitOptionsChanges:!0,resizeObserver:null,unwatchTasks:null,unwatchOptions:null,unwatchStyle:null,unwatchOutputTasks:null,unwatchOutputOptions:null,unwatchOutputStyle:null}}},methods:{mergeDeep:er,mergeDeepReactive:rr,getScrollBarHeight(){const t=document.createElement("div");t.style.visibility="hidden",t.style.height="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var e=t.offsetHeight;t.style.overflow="scroll";var r=document.createElement("div");r.style.height="100%",t.appendChild(r);var o=r.offsetHeight;t.parentNode.removeChild(t);const s=e-o;return this.style["chart-scroll-container--vertical"]["margin-left"]=`-${s}px`,this.state.options.scrollBarHeight=s},fillTasks(t){for(let e of t)"undefined"===typeof e.x&&(e.x=0),"undefined"===typeof e.y&&(e.y=0),"undefined"===typeof e.width&&(e.width=0),"undefined"===typeof e.height&&(e.height=0),"undefined"===typeof e.mouseOver&&(e.mouseOver=!1),"undefined"===typeof e.collapsed&&(e.collapsed=!1),"undefined"===typeof e.dependentOn&&(e.dependentOn=[]),"undefined"===typeof e.parentId&&(e.parentId=null),"undefined"===typeof e.style&&(e.style={}),"undefined"===typeof e.children&&(e.children=[]),"undefined"===typeof e.allChildren&&(e.allChildren=[]),"undefined"===typeof e.parents&&(e.parents=[]),"undefined"===typeof e.parent&&(e.parent=null),"undefined"===typeof e.startTime&&(e.startTime=a()(e.start).valueOf()),"undefined"===typeof e.endTime&&Object.prototype.hasOwnProperty.call(e,"end")?e.endTime=a()(e.end).valueOf():"undefined"===typeof e.endTime&&Object.prototype.hasOwnProperty.call(e,"duration")&&(e.endTime=e.startTime+e.duration),"undefined"===typeof e.duration&&Object.prototype.hasOwnProperty.call(e,"endTime")&&(e.duration=e.endTime-e.startTime);return t},mapTasks(t,e){for(let[r,o]of t.entries())t[r]={...o,id:o[e.taskMapping.id],start:o[e.taskMapping.start],label:o[e.taskMapping.label],duration:o[e.taskMapping.duration],progress:o[e.taskMapping.progress],type:o[e.taskMapping.type],style:o[e.taskMapping.style],collapsed:o[e.taskMapping.collapsed]};return t},initialize(t=""){let e=er({},this.state.options,Ke(this.options),this.options),r=this.mapTasks(this.tasks,e);0===Object.keys(this.state.dynamicStyle).length&&this.initializeStyle(),a().locale(e.locale,null,!0),a().locale(e.locale.name),"undefined"===typeof e.taskList&&(e.taskList={}),e.taskList.columns=e.taskList.columns.map(((t,e)=>(t.thresholdPercent=100,t.widthFromPercentage=0,t.finalWidth=0,"undefined"===typeof t.height&&(t.height=0),"undefined"===typeof t.style&&(t.style={}),t._id=`${e}-${t.label}`,t))),this.state.options=e,r=this.fillTasks(r),this.state.tasksById=this.resetTaskTree(r),this.state.taskTree=this.makeTaskTree(this.state.rootTask,r),this.state.tasks=this.state.taskTree.allChildren.map((t=>this.getTask(t))),this.calculateTaskListColumnsDimensions(),this.state.options.scrollBarHeight=this.getScrollBarHeight(),this.state.options.outerHeight=this.state.options.height+this.state.options.scrollBarHeight,this.globalOnResize()},initializeStyle(){this.state.dynamicStyle=er({},Qe(this.dynamicStyle),this.dynamicStyle)},getCalendarHeight(){return this.state.options.calendar.height+this.state.options.calendar.strokeWidth},getMaximalLevel(){let t=0;return this.state.tasks.forEach((e=>{e.parents.length>t&&(t=e.parents.length)})),t-1},getMaximalExpanderWidth(){return this.getMaximalLevel()*this.state.options.taskList.expander.padding+this.state.options.taskList.expander.margin},syncScrollTop(){this.state.refs.taskListItems&&this.state.refs.chartGraph.scrollTop!==this.state.refs.taskListItems.scrollTop&&(this.state.options.scroll.top=this.state.refs.taskListItems.scrollTop=this.state.refs.chartScrollContainerVertical.scrollTop=this.state.refs.chartGraph.scrollTop)},calculateTaskListColumnsDimensions(){let t=0,e=0;for(let r of this.state.options.taskList.columns)r.expander?r.widthFromPercentage=(this.getMaximalExpanderWidth()+r.width)/100*this.state.options.taskList.percent:r.widthFromPercentage=r.width/100*this.state.options.taskList.percent,e+=r.widthFromPercentage,r.finalWidth=r.thresholdPercent*r.widthFromPercentage/100,t+=r.finalWidth,r.height=this.getTaskHeight()-this.style["grid-line-horizontal"]["stroke-width"];this.state.options.taskList.widthFromPercentage=e,this.state.options.taskList.finalWidth=t},resetTaskTree(t){this.$set(this.state,"rootTask",{id:null,label:"root",children:[],allChildren:[],parents:[],parent:null,__root:!0});const e={};for(let r=0,o=t.length;r<o;r++){let o=t[r];o.children=[],o.allChildren=[],o.parent=null,o.parents=[],e[o.id]=o}return e},makeTaskTree(t,e){for(let r=0,o=e.length;r<o;r++){let o=e[r];o.parentId===t.id&&(t.parents.length&&t.parents.forEach((t=>o.parents.push(t))),Object.prototype.propertyIsEnumerable.call(t,"__root")?(o.parents=[],o.parent=null):(o.parents.push(t.id),o.parent=t.id),o=this.makeTaskTree(o,e),t.allChildren.push(o.id),t.children.push(o.id),o.allChildren.forEach((e=>t.allChildren.push(e))))}return t},getTask(t){return"undefined"!==typeof this.state.tasksById[t]?this.state.tasksById[t]:null},getChildren(t){return this.state.tasks.filter((e=>e.parent===t))},isTaskVisible(t){"number"!==typeof t&&"string"!==typeof t||(t=this.getTask(t));for(let e=0,r=t.parents.length;e<r;e++)if(this.getTask(t.parents[e]).collapsed)return!1;return!0},getSVG(){return this.state.options.mainView.outerHTML},getImage(t="image/png"){return new Promise((e=>{const r=new Image;r.onload=()=>{const o=document.createElement("canvas");o.width=this.state.options.mainView.clientWidth,o.height=this.state.options.rowsHeight,o.getContext("2d").drawImage(r,0,0),e(o.toDataURL(t))},r.src="data:image/svg+xml,"+encodeURIComponent(this.getSVG())}))},getHeight(t,e=!1){let r=t.length*(this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap)+this.state.options.calendar.height+this.state.options.calendar.strokeWidth+this.state.options.calendar.gap;return e&&(r+=this.state.options.scrollBarHeight),r},getTaskHeight(t=!1){return t?this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap+this.style["grid-line-horizontal"]["stroke-width"]:this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap},getTasksHeight(t){return t.length*this.getTaskHeight()},timeToPixelOffsetX(t){let e=t-this.state.options.times.firstTime;return e&&(e/=this.state.options.times.timePerPixel),e},pixelOffsetXToTime(t){let e=t+this.style["grid-line-vertical"]["stroke-width"]/2;return e*this.state.options.times.timePerPixel+this.state.options.times.firstTime},isInsideViewPort(t,e,r=5e3){return t+e+r>=this.state.options.scroll.chart.left&&t-r<=this.state.options.scroll.chart.right||t-r<=this.state.options.scroll.chart.left&&t+e+r>=this.state.options.scroll.chart.right},onScrollChart(t){this._onScrollChart(this.state.refs.chartScrollContainerHorizontal.scrollLeft,this.state.refs.chartScrollContainerVertical.scrollTop)},_onScrollChart(t,e){if(this.state.options.scroll.chart.left===t&&this.state.options.scroll.chart.top===e)return;const r=this.state.refs.chartContainer.clientWidth;this.state.options.scroll.chart.left=t,this.state.options.scroll.chart.right=t+r,this.state.options.scroll.chart.percent=t/this.state.options.times.totalViewDurationPx*100,this.state.options.scroll.chart.top=e,this.state.options.scroll.chart.time=this.pixelOffsetXToTime(t),this.state.options.scroll.chart.timeCenter=this.pixelOffsetXToTime(t+r/2),this.state.options.scroll.chart.dateTime.left=a()(this.state.options.scroll.chart.time).valueOf(),this.state.options.scroll.chart.dateTime.right=a()(this.pixelOffsetXToTime(t+this.state.refs.chart.clientWidth)).valueOf(),this.scrollTo(t,e)},scrollToTime(t){let e=this.timeToPixelOffsetX(t);const r=this.state.refs.chartContainer.clientWidth;e-=r/2,e>this.state.options.width&&(e=this.state.options.width-r),this.scrollTo(e)},scrollTo(t=null,e=null){null!==t&&(this.state.refs.chartCalendarContainer.scrollLeft=t,this.state.refs.chartGraphContainer.scrollLeft=t,this.state.refs.chartScrollContainerHorizontal.scrollLeft=t,this.state.options.scroll.left=t),null!==e&&(this.state.refs.chartScrollContainerVertical.scrollTop=e,this.state.refs.chartGraph.scrollTop=e,this.state.refs.taskListItems.scrollTop=e,this.state.options.scroll.top=e,this.syncScrollTop())},fixScrollPos(){this.scrollToTime(this.state.options.scroll.chart.timeCenter)},onWheelChart(t){if(t.shiftKey||0!==t.deltaX)if(t.shiftKey&&0===t.deltaX){let e=this.state.options.scroll.left+t.deltaY;const r=this.state.refs.chartScrollContainerHorizontal.clientWidth,o=this.state.refs.chartScrollContainerHorizontal.scrollWidth-r;e<0?e=0:e>o&&(e=o),this.scrollTo(e)}else{let e=this.state.options.scroll.left+t.deltaX;const r=this.state.refs.chartScrollContainerHorizontal.clientWidth,o=this.state.refs.chartScrollContainerHorizontal.scrollWidth-r;e<0?e=0:e>o&&(e=o),this.scrollTo(e)}else{let e=this.state.options.scroll.top+t.deltaY;const r=this.state.options.rowsHeight,o=this.state.refs.chartGraph.scrollHeight-r;e<0?e=0:e>o&&(e=o),this.scrollTo(null,e)}},onTimeZoomChange(t){this.state.options.times.timeZoom=t,this.recalculateTimes(),this.calculateSteps(),this.fixScrollPos()},onRowHeightChange(t){this.state.options.row.height=t,this.calculateTaskListColumnsDimensions(),this.syncScrollTop()},onScopeChange(t){this.state.options.scope.before=t,this.state.options.scope.after=t,this.initTimes(),this.calculateSteps(),this.computeCalendarWidths(),this.fixScrollPos()},onTaskListWidthChange(t){this.state.options.taskList.percent=t,this.calculateTaskListColumnsDimensions(),this.fixScrollPos()},onTaskListColumnWidthChange(){this.calculateTaskListColumnsDimensions(),this.fixScrollPos()},initializeEvents(){this.$on("chart-scroll-horizontal",this.onScrollChart),this.$on("chart-scroll-vertical",this.onScrollChart),this.$on("chart-wheel",this.onWheelChart),this.$on("times-timeZoom-change",this.onTimeZoomChange),this.$on("row-height-change",this.onRowHeightChange),this.$on("scope-change",this.onScopeChange),this.$on("taskList-width-change",this.onTaskListWidthChange),this.$on("taskList-column-width-change",this.onTaskListColumnWidthChange)},recalculateTimes(){let t=60*this.state.options.times.timeScale,e=this.state.options.times.timeScale,r=t/e,o=this.state.options.times.timeZoom/100;this.state.options.times.timePerPixel=this.state.options.times.timeScale*r*o+Math.pow(2,this.state.options.times.timeZoom),this.state.options.times.totalViewDurationMs=a()(this.state.options.times.lastTime).diff(this.state.options.times.firstTime,"milliseconds"),this.state.options.times.totalViewDurationPx=this.state.options.times.totalViewDurationMs/this.state.options.times.timePerPixel,this.state.options.width=this.state.options.times.totalViewDurationPx+this.style["grid-line-vertical"]["stroke-width"]},initTimes(){this.state.options.times.firstTime=a()(this.state.options.times.firstTaskTime).locale(this.state.options.locale.name).startOf("day").subtract(this.state.options.scope.before,"days").startOf("day").valueOf(),this.state.options.times.lastTime=a()(this.state.options.times.lastTaskTime).locale(this.state.options.locale.name).endOf("day").add(this.state.options.scope.after,"days").endOf("day").valueOf(),this.recalculateTimes()},calculateSteps(){const t=[],e=a()(this.state.options.times.lastTime).valueOf(),r=a()(this.state.options.times.firstTime);t.push({time:r.valueOf(),offset:{ms:0,px:0}});for(let s=a()(this.state.options.times.firstTime).add(1,this.state.options.times.stepDuration).startOf("day");s.valueOf()<=e;s=s.add(1,this.state.options.times.stepDuration).startOf("day")){const e=s.diff(this.state.options.times.firstTime,"milliseconds"),r=e/this.state.options.times.timePerPixel,o={time:s.valueOf(),offset:{ms:e,px:r}},i=t[t.length-1];i.width={ms:e-i.offset.ms,px:r-i.offset.px},t.push(o)}const o=t[t.length-1];o.width={ms:this.state.options.times.totalViewDurationMs-o.offset.ms,px:this.state.options.times.totalViewDurationPx-o.offset.px},this.state.options.times.steps=t},computeCalendarWidths(){this.computeDayWidths(),this.computeHourWidths(),this.computeMonthWidths()},computeHourWidths(){const t={...this.style["calendar-row-text"],...this.style["calendar-row-text--hour"]};this.state.ctx.font=t["font-size"]+" "+t["font-family"];const e=this.state.options.locale.name;let r=a()("2018-01-01T00:00:00").locale(e),o=this.state.options.calendar.hour.maxWidths;if(!o.length){for(let t in this.state.options.calendar.hour.format)o[t]=0;for(let t=0;t<24;t++){let e={hour:t};for(let t in this.state.options.calendar.hour.format){const o=this.state.options.calendar.hour.format[t](r);this.state.options.calendar.hour.formatted[t].push(o),e[t]=this.state.ctx.measureText(o).width}this.state.options.calendar.hour.widths.push(e);for(let t in this.state.options.calendar.hour.format)e[t]>o[t]&&(o[t]=e[t]);r=r.add(1,"hour")}}},computeDayWidths(){const t={...this.style["calendar-row-text"],...this.style["calendar-row-text--day"]};this.state.ctx.font=t["font-size"]+" "+t["font-family"];const e=this.state.options.locale.name;let r=a()(this.state.options.times.steps[0].time).locale(e),o=this.state.options.calendar.day.maxWidths;this.state.options.calendar.day.widths=[],Object.keys(this.state.options.calendar.day.format).forEach((t=>{o[t]=0}));for(let s=0,i=this.state.options.times.steps.length;s<i;s++){const t={day:s};Object.keys(this.state.options.calendar.day.format).forEach((e=>{t[e]=this.state.ctx.measureText(this.state.options.calendar.day.format[e](r)).width})),this.state.options.calendar.day.widths.push(t),Object.keys(this.state.options.calendar.day.format).forEach((e=>{t[e]>o[e]&&(o[e]=t[e])})),r=r.add(1,"day")}},monthsCount(t,e){if(t>e)return 0;let r=a()(t),o=r.clone(),s=1;while(r.valueOf()<=e)r=r.add(1,"day"),o.month()!==r.month()&&s++,o=r.clone();return s},computeMonthWidths(){const t={...this.style["calendar-row-text"],...this.style["calendar-row-text--month"]};this.state.ctx.font=t["font-size"]+" "+t["font-family"];let e=this.state.options.calendar.month.maxWidths;this.state.options.calendar.month.widths=[],Object.keys(this.state.options.calendar.month.format).forEach((t=>{e[t]=0}));const r=this.state.options.locale.name;let o=a()(this.state.options.times.firstTime).locale(r);const s=this.monthsCount(this.state.options.times.firstTime,this.state.options.times.lastTime);for(let i=0;i<s;i++){const t={month:i};Object.keys(this.state.options.calendar.month.format).forEach((e=>{t[e]=this.state.ctx.measureText(this.state.options.calendar.month.format[e](o)).width})),this.state.options.calendar.month.widths.push(t),Object.keys(this.state.options.calendar.month.format).forEach((r=>{t[r]>e[r]&&(e[r]=t[r])})),o=o.add(1,"month")}},prepareDates(){let t=Number.MAX_SAFE_INTEGER,e=0;for(let r=0,o=this.state.tasks.length;r<o;r++){let o=this.state.tasks[r];o.startTime<t&&(t=o.startTime),o.startTime+o.duration>e&&(e=o.startTime+o.duration)}this.state.options.times.firstTaskTime=t,this.state.options.times.lastTaskTime=e,this.state.options.times.firstTime=a()(t).locale(this.state.options.locale.name).startOf("day").subtract(this.state.options.scope.before,"days").startOf("day").valueOf(),this.state.options.times.lastTime=a()(e).locale(this.state.options.locale.name).endOf("day").add(this.state.options.scope.after,"days").endOf("day").valueOf()},setup(t=""){this.initialize(t),this.prepareDates(),this.initTimes(),this.calculateSteps(),this.computeCalendarWidths(),this.state.options.taskList.width=this.state.options.taskList.columns.reduce(((t,e)=>({width:t.width+e.width})),{width:0}).width},globalOnResize(){if("undefined"!==typeof this.$el&&this.$el){if(this.state.options.clientWidth=this.$el.clientWidth,this.state.options.taskList.widthFromPercentage>this.state.options.clientWidth/100*this.state.options.taskList.widthThreshold){const t=this.state.options.taskList.widthFromPercentage-this.state.options.clientWidth/100*this.state.options.taskList.widthThreshold;let e=100-t/this.state.options.taskList.widthFromPercentage*100;e<0&&(e=0),this.state.options.taskList.columns.forEach((t=>{t.thresholdPercent=e}))}else this.state.options.taskList.columns.forEach((t=>{t.thresholdPercent=100}));this.calculateTaskListColumnsDimensions(),this.$emit("calendar-recalculate"),this.syncScrollTop()}}},computed:{visibleTasks(){const t=this.state.tasks.filter((t=>this.isTaskVisible(t))),e=t.slice(0,this.state.options.maxRows);this.state.options.rowsHeight=this.getTasksHeight(e);let r=0;this.state.options.maxHeight&&this.state.options.rowsHeight>this.state.options.maxHeight&&(r=this.state.options.rowsHeight-this.state.options.maxHeight,this.state.options.rowsHeight=this.state.options.maxHeight),this.state.options.height=this.getHeight(e)-r,this.state.options.allVisibleTasksHeight=this.getTasksHeight(t),this.state.options.outerHeight=this.getHeight(e,!0)-r;let o=t.length;for(let s=0;s<o;s++){let e=t[s];e.width=e.duration/this.state.options.times.timePerPixel-this.style["grid-line-vertical"]["stroke-width"],e.width<0&&(e.width=0),e.height=this.state.options.row.height,e.x=this.timeToPixelOffsetX(e.startTime),e.y=(this.state.options.row.height+2*this.state.options.chart.grid.horizontal.gap)*s+this.state.options.chart.grid.horizontal.gap}return t},style(){return this.state.dynamicStyle},getTaskListColumns(){return this.calculateTaskListColumnsDimensions(),this.state.options.taskList.columns},outputTasks(){return this.state.tasks},outputOptions(){return this.state.options}},created(){this.initializeEvents(),this.setup(),this.state.unwatchTasks=this.$watch("tasks",(t=>{const e=or(t,this.outputTasks);e&&this.setup("tasks")}),{deep:!0}),this.state.unwatchOptions=this.$watch("options",(t=>{const e=or(t,this.outputOptions);e&&this.setup("options")}),{deep:!0}),this.state.unwatchStyle=this.$watch("dynamicStyle",(t=>{const e=or(t,this.dynamicStyle);e&&this.initializeStyle()}),{deep:!0,immediate:!0}),this.state.unwatchOutputTasks=this.$watch("outputTasks",(t=>{this.$emit("tasks-changed",t.map((t=>t)))}),{deep:!0}),this.state.unwatchOutputOptions=this.$watch("outputOptions",(t=>{this.$emit("options-changed",er({},t))}),{deep:!0}),this.state.unwatchOutputStyle=this.$watch("style",(t=>{this.$emit("dynamic-style-changed",er({},t))}),{deep:!0}),this.$root.$emit("gantt-elastic-created",this),this.$emit("created",this)},beforeMount(){this.$emit("before-mount",this)},mounted(){this.state.options.clientWidth=this.$el.clientWidth,this.state.resizeObserver=new Le(((t,e)=>{this.globalOnResize()})),this.state.resizeObserver.observe(this.$el.parentNode),this.globalOnResize(),this.$emit("ready",this),this.$root.$emit("gantt-elastic-mounted",this),this.$emit("mounted",this),this.$root.$emit("gantt-elastic-ready",this)},beforeUpdate(){this.$emit("before-update")},updated(){this.$nextTick((()=>{this.$emit("updated")}))},beforeDestroy(){this.state.resizeObserver.unobserve(this.$el.parentNode),this.state.unwatchTasks(),this.state.unwatchOptions(),this.state.unwatchStyle(),this.state.unwatchOutputTasks(),this.state.unwatchOutputOptions(),this.state.unwatchOutputStyle(),this.$emit("before-destroy")},destroyed(){this.$emit("destroyed")}};var ir=sr,nr=ir,ar=v(nr,r,i,!1,null,null,null),lr=ar.exports,cr={install(t,e={}){t.component("tg-ganttchart",lr)}},ur=cr}(),s}()}));
|
|
7
|
-
//# sourceMappingURL=tgganttchart.umd.min.js.map
|