Backend for Custom Frontend OSPRO Surveyor Indonesia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1 lines
267 KiB

(this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[53],{1059:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.composeEvents=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.preventDefault(),t.forEach((function(t){return t&&t.apply(void 0,[e].concat(r))}))}}},1060:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParentPosition=function(e){var t=0,n=0,r=!0;for(;e;)e.offsetParent||"BODY"!==e.tagName||0!==e.scrollLeft||0!==e.scrollTop||(e=document.scrollingElement||e),t+=e.offsetLeft-(r?0:e.scrollLeft)+e.clientLeft,n+=e.offsetTop-(r?0:e.scrollTop)+e.clientTop,e=e.offsetParent,r=!1;return{x:t,y:n}},t.getSumScroll=function e(t){if(t===document.body)return{scrollLeft:0,scrollTop:0};var n=e(t.parentNode);return{scrollLeft:t.scrollLeft+n.scrollLeft,scrollTop:t.scrollTop+n.scrollTop}},t.getSumOffset=function e(t){if(t!==document.body&&t.offsetParent){var n=e(t.offsetParent);return{offsetLeft:t.offsetLeft+n.offsetLeft,offsetTop:t.offsetTop+n.offsetTop}}return{offsetLeft:0,offsetTop:0}}},1061:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.MarkerCanvasConsumer=t.MarkerCanvasProvider=void 0;var o={subscribeToMouseOver:function(){console.warn('"subscribeToMouseOver" default func is being used')}},i=(0,((r=n(913))&&r.__esModule?r:{default:r}).default)(o),a=i.Consumer,s=i.Provider;t.MarkerCanvasProvider=s;var u=a;t.MarkerCanvasConsumer=u},1062:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultSubHeaderLabelFormats=t.defaultHeaderLabelFormats=t.defaultHeaderFormats=t.defaultTimeSteps=t.defaultKeys=void 0;t.defaultKeys={groupIdKey:"id",groupTitleKey:"title",groupRightTitleKey:"rightTitle",groupLabelKey:"title",itemIdKey:"id",itemTitleKey:"title",itemDivTitleKey:"title",itemGroupKey:"group",itemTimeStartKey:"start_time",itemTimeEndKey:"end_time"};t.defaultTimeSteps={second:1,minute:1,hour:1,day:1,month:1,year:1};t.defaultHeaderFormats={year:{long:"YYYY",mediumLong:"YYYY",medium:"YYYY",short:"YY"},month:{long:"MMMM YYYY",mediumLong:"MMMM",medium:"MMMM",short:"MM/YY"},week:{long:"w",mediumLong:"w",medium:"w",short:"w"},day:{long:"dddd, LL",mediumLong:"dddd, LL",medium:"dd D",short:"D"},hour:{long:"dddd, LL, HH:00",mediumLong:"L, HH:00",medium:"HH:00",short:"HH"},minute:{long:"HH:mm",mediumLong:"HH:mm",medium:"HH:mm",short:"mm"}};t.defaultHeaderLabelFormats={yearShort:"YY",yearLong:"YYYY",monthShort:"MM/YY",monthMedium:"MM/YYYY",monthMediumLong:"MMM YYYY",monthLong:"MMMM YYYY",dayShort:"L",dayLong:"dddd, LL",hourShort:"HH",hourMedium:"HH:00",hourMediumLong:"L, HH:00",hourLong:"dddd, LL, HH:00",time:"LLL"};t.defaultSubHeaderLabelFormats={yearShort:"YY",yearLong:"YYYY",monthShort:"MM",monthMedium:"MMM",monthLong:"MMMM",dayShort:"D",dayMedium:"dd D",dayMediumLong:"ddd, Do",dayLong:"dddd, Do",hourShort:"HH",hourLong:"HH:00",minuteShort:"mm",minuteLong:"HH:mm"}},1063:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2)),o=l(n(562)),i=n(915),a=l(n(80)),s=l(n(966)),u=n(1064);function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){m(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?h(e):t}(this,p(t).call(this,e)),m(h(n),"getRootStyle",(function(){return f({},n.props.style,{display:"flex",width:"100%"})})),m(h(n),"getCalendarHeaderStyle",(function(){var e=n.props,t=e.leftSidebarWidth,r=e.rightSidebarWidth;return f({},e.calendarHeaderStyle,{overflow:"hidden",width:"calc(100% - ".concat(t+r,"px)")})})),m(h(n),"handleRootRef",(function(e){n.props.headerRef&&n.props.headerRef(e)})),m(h(n),"isSidebarHeader",(function(e){return void 0!==e.type&&e.type.secretKey===s.default.secretKey})),n}var n,i,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e,t,n=this,i=[],a=Array.isArray(this.props.children)?this.props.children.filter((function(e){return e})):[this.props.children];return r.default.Children.map(a,(function(r){n.isSidebarHeader(r)?r.props.variant===u.RIGHT_VARIANT?e=r:t=r:i.push(r)})),t||(t=r.default.createElement(s.default,null)),!e&&this.props.rightSidebarWidth&&(e=r.default.createElement(s.default,{variant:"right"})),r.default.createElement("div",{ref:this.handleRootRef,style:this.getRootStyle(),className:(0,o.default)("rct-header-root",this.props.className)},t,r.default.createElement("div",{ref:this.props.registerScroll,style:this.getCalendarHeaderStyle(),className:(0,o.default)("rct-calendar-header",this.props.calendarHeaderClassName)},i),e)}}])&&d(n.prototype,i),a&&d(n,a),t}(r.default.Component);m(y,"propTypes",{registerScroll:a.default.func.isRequired,leftSidebarWidth:a.default.number.isRequired,rightSidebarWidth:a.default.number.isRequired,style:a.default.object,children:a.default.node,className:a.default.string,calendarHeaderStyle:a.default.object,calendarHeaderClassName:a.default.string,headerRef:a.default.func});var g=function(e){var t=e.children,n=e.style,o=e.className,a=e.calendarHeaderStyle,s=e.calendarHeaderClassName;return r.default.createElement(i.TimelineHeadersConsumer,null,(function(e){var i=e.leftSidebarWidth,u=e.rightSidebarWidth,l=e.registerScroll;return r.default.createElement(y,{leftSidebarWidth:i,rightSidebarWidth:u,registerScroll:l,style:n,className:o,calendarHeaderStyle:a,calendarHeaderClassName:s},t)}))};g.propTypes={style:a.default.object,children:a.default.node,className:a.default.string,calendarHeaderStyle:a.default.object,calendarHeaderClassName:a.default.string},g.secretKey="TimelineHeaders";var b=g;t.default=b},1064:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RIGHT_VARIANT=t.LEFT_VARIANT=void 0;t.LEFT_VARIANT="left";t.RIGHT_VARIANT="right"},1065:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(2)),o=f(n(80)),i=n(853),a=f(n(1066)),s=n(821),u=n(1062),l=f(n(1424)),c=n(1425);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(e){return(p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){w(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?b(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(e){function t(){var e,n;v(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return w(b(n=y(this,(e=g(t)).call.apply(e,[this].concat(o)))),"getHeaderUnit",(function(){return"primaryHeader"===n.props.unit?(0,s.getNextUnit)(n.props.timelineUnit):n.props.unit?n.props.unit:n.props.timelineUnit})),w(b(n),"getRootStyle",(0,l.default)((function(e){return h({height:30},e)}))),w(b(n),"getLabelFormat",(function(e,t,r){var o=n.props.labelFormat;if("string"===typeof o)return e[0].format(o);if("function"===typeof o)return o(e,t,r);throw new Error("labelFormat should be function or string")})),w(b(n),"getHeaderData",(0,l.default)((function(e,t,n,r,o,i){return{intervalRenderer:e,style:t,className:n,getLabelFormat:r,unitProp:o,headerData:i}}))),n}var n,o,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.getHeaderUnit(),t=this.props,n=(t.headerData,t.height);return r.default.createElement(a.default,{unit:e,height:n,headerData:this.getHeaderData(this.props.intervalRenderer,this.getRootStyle(this.props.style),this.props.className,this.getLabelFormat,this.props.unit,this.props.headerData),children:c.CustomDateHeader})}}])&&m(n.prototype,o),i&&m(n,i),t}(r.default.Component);w(_,"propTypes",{unit:o.default.string,style:o.default.object,className:o.default.string,timelineUnit:o.default.string,labelFormat:o.default.oneOfType([o.default.func,o.default.objectOf(o.default.objectOf(o.default.string)),o.default.string]).isRequired,intervalRenderer:o.default.func,headerData:o.default.object,height:o.default.number});var S=function(e){var t=e.unit,n=e.labelFormat,o=e.style,a=e.className,s=e.intervalRenderer,u=e.headerData,l=e.height;return r.default.createElement(i.TimelineStateConsumer,null,(function(e){var i=(0,e.getTimelineState)();return r.default.createElement(_,{timelineUnit:i.timelineUnit,unit:t,labelFormat:n,style:o,className:a,intervalRenderer:s,headerData:u,height:l})}))};S.propTypes={style:o.default.object,className:o.default.string,unit:o.default.string,labelFormat:o.default.oneOfType([o.default.func,o.default.objectOf(o.default.objectOf(o.default.string)),o.default.string]),intervalRenderer:o.default.func,headerData:o.default.object,height:o.default.number},S.defaultProps={labelFormat:function(e,t,n){var r,o=d(e,2),i=o[0],a=(o[1],arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.defaultHeaderFormats);r=n>=150?a[t].long:n>=100?a[t].mediumLong:n>=50?a[t].medium:a[t].short;return i.format(r)}};var T=S;t.default=T},1066:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CustomHeader=void 0;var r=u(n(2)),o=u(n(80)),i=n(915),a=n(853),s=n(821);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?p(e):t}(this,d(t).call(this,e)),v(p(n),"getHeaderIntervals",(function(e){var t=e.canvasTimeStart,n=e.canvasTimeEnd,r=e.unit,o=e.timeSteps,i=e.getLeftOffsetFromDate,a=[];return(0,s.iterateTimes)(t,n,r,o,(function(e,t){var n=i(e.valueOf()),r=i(t.valueOf())-n;a.push({startTime:e,endTime:t,labelWidth:r,left:n})})),a})),v(p(n),"getRootProps",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style;return{style:Object.assign({},t||{},{position:"relative",width:n.props.canvasWidth,height:n.props.height})}})),v(p(n),"getIntervalProps",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.interval,r=e.style;if(!t)throw new Error("you should provide interval to the prop getter");var o=t.startTime,i=t.labelWidth,a=t.left;return{style:n.getIntervalStyle({style:r,startTime:o,labelWidth:i,canvasTimeStart:n.props.canvasTimeStart,unit:n.props.unit,left:a}),key:"label-".concat(o.valueOf())}})),v(p(n),"getIntervalStyle",(function(e){var t=e.left,n=e.labelWidth;return function(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}({},e.style,{left:t,width:n,position:"absolute"})})),v(p(n),"getStateAndHelpers",(function(){var e=n.props,t=e.canvasTimeStart,r=e.canvasTimeEnd,o=e.unit,i=e.showPeriod,a=e.timelineWidth,s=e.visibleTimeStart,u=e.visibleTimeEnd,l=e.headerData;return{timelineContext:{timelineWidth:a,visibleTimeStart:s,visibleTimeEnd:u,canvasTimeStart:t,canvasTimeEnd:r},headerContext:{unit:o,intervals:n.state.intervals},getRootProps:n.getRootProps,getIntervalProps:n.getIntervalProps,showPeriod:i,data:l}}));var r=e.canvasTimeStart,o=e.canvasTimeEnd,i=e.canvasWidth,a=e.unit,u=e.timeSteps,c=e.showPeriod,f=e.getLeftOffsetFromDate,h=n.getHeaderIntervals({canvasTimeStart:r,canvasTimeEnd:o,canvasWidth:i,unit:a,timeSteps:u,showPeriod:c,getLeftOffsetFromDate:f});return n.state={intervals:h},n}var n,o,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(o=[{key:"shouldComponentUpdate",value:function(e){return e.canvasTimeStart!==this.props.canvasTimeStart||e.canvasTimeEnd!==this.props.canvasTimeEnd||e.canvasWidth!==this.props.canvasWidth||e.unit!==this.props.unit||e.timeSteps!==this.props.timeSteps||e.showPeriod!==this.props.showPeriod||e.children!==this.props.children||e.headerData!==this.props.headerData}},{key:"componentWillReceiveProps",value:function(e){if(e.canvasTimeStart!==this.props.canvasTimeStart||e.canvasTimeEnd!==this.props.canvasTimeEnd||e.canvasWidth!==this.props.canvasWidth||e.unit!==this.props.unit||e.timeSteps!==this.props.timeSteps||e.showPeriod!==this.props.showPeriod){var t=e.canvasTimeStart,n=e.canvasTimeEnd,r=e.canvasWidth,o=e.unit,i=e.timeSteps,a=e.showPeriod,s=e.getLeftOffsetFromDate,u=this.getHeaderIntervals({canvasTimeStart:t,canvasTimeEnd:n,canvasWidth:r,unit:o,timeSteps:i,showPeriod:a,getLeftOffsetFromDate:s});this.setState({intervals:u})}}},{key:"render",value:function(){var e=this.getStateAndHelpers(),t=this.props.children;return r.default.createElement(t,e)}}])&&f(n.prototype,o),i&&f(n,i),t}(r.default.Component);t.CustomHeader=m,v(m,"propTypes",{children:o.default.func.isRequired,unit:o.default.string.isRequired,timeSteps:o.default.object.isRequired,visibleTimeStart:o.default.number.isRequired,visibleTimeEnd:o.default.number.isRequired,canvasTimeStart:o.default.number.isRequired,canvasTimeEnd:o.default.number.isRequired,canvasWidth:o.default.number.isRequired,showPeriod:o.default.func.isRequired,headerData:o.default.object,getLeftOffsetFromDate:o.default.func.isRequired,height:o.default.number.isRequired});var y=function(e){var t=e.children,n=e.unit,o=e.headerData,s=e.height;return r.default.createElement(a.TimelineStateConsumer,null,(function(e){var a=e.getTimelineState,u=e.showPeriod,l=e.getLeftOffsetFromDate,f=a();return r.default.createElement(i.TimelineHeadersConsumer,null,(function(e){var i=e.timeSteps;return r.default.createElement(m,c({children:t,timeSteps:i,showPeriod:u,unit:n||f.timelineUnit},f,{headerData:o,getLeftOffsetFromDate:l,height:s}))}))}))};y.propTypes={children:o.default.func.isRequired,unit:o.default.string,headerData:o.default.object,height:o.default.number},y.defaultProps={height:30};var g=y;t.default=g},1403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TimelineMarkers",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"TodayMarker",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"CustomMarker",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"CursorMarker",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"TimelineHeaders",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"SidebarHeader",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"CustomHeader",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"DateHeader",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var r=d(n(1404)),o=d(n(1427)),i=d(n(1428)),a=d(n(1429)),s=d(n(1430)),u=d(n(1063)),l=d(n(966)),c=d(n(1066)),f=d(n(1065));function d(e){return e&&e.__esModule?e:{default:e}}var p=r.default;t.default=p},1404:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=O(n(80)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2)),i=(O(n(597)),O(n(1405))),a=O(n(1411)),s=O(n(1412)),u=O(n(1414)),l=O(n(1417)),c=O(n(1418)),f=O(n(1423)),d=n(821),p=n(840),h=n(1062),v=n(853),m=n(875),y=n(915),g=O(n(1063)),b=O(n(1065));O(n(966));function O(e){return e&&e.__esModule?e:{default:e}}function w(e){return(w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),e}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==w(t)&&"function"!==typeof t?T(e):t}(this,S(t).call(this,e)),E(T(n),"getTimelineContext",(function(){var e=n.state;return{timelineWidth:e.width,visibleTimeStart:e.visibleTimeStart,visibleTimeEnd:e.visibleTimeEnd,canvasTimeStart:e.canvasTimeStart,canvasTimeEnd:e.canvasTimeEnd}})),E(T(n),"resize",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props,t=n.container.getBoundingClientRect(),r=t.width,o=r-e.sidebarWidth-e.rightSidebarWidth,i=(0,d.getCanvasWidth)(o),a=(0,d.stackTimelineItems)(e.items,e.groups,i,n.state.canvasTimeStart,n.state.canvasTimeEnd,e.keys,e.lineHeight,e.itemHeightRatio,e.stackItems,n.state.draggingItem,n.state.resizingItem,n.state.dragTime,n.state.resizingEdge,n.state.resizeTime,n.state.newGroupOrder),s=a.dimensionItems,u=a.height,l=a.groupHeights,c=a.groupTops;n.setState({width:o,dimensionItems:s,height:u,groupHeights:l,groupTops:c}),n.scrollComponent.scrollLeft=o,n.scrollHeaderRef.scrollLeft=o})),E(T(n),"onScroll",(function(e){var t=n.state.width,r=n.state.canvasTimeStart,o=n.state.visibleTimeEnd-n.state.visibleTimeStart,i=r+o*e/t;n.state.visibleTimeStart===i&&n.state.visibleTimeEnd===i+o||n.props.onTimeChange(i,i+o,n.updateScrollCanvas)})),E(T(n),"updateScrollCanvas",(function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.props.items,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.props.groups;n.setState((0,d.calculateScrollCanvas)(e,t,r,o,i,n.props,n.state))})),E(T(n),"handleWheelZoom",(function(e,t,r){n.changeZoom(1+e*r/500,t/n.state.width)})),E(T(n),"changeZoom",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=n.props,o=r.minZoom,i=r.maxZoom,a=n.state.visibleTimeEnd-n.state.visibleTimeStart,s=Math.min(Math.max(Math.round(a*e),o),i),u=Math.round(n.state.visibleTimeStart+(a-s)*t);n.props.onTimeChange(u,u+s,n.updateScrollCanvas)})),E(T(n),"showPeriod",(function(e,t){var r=e.valueOf(),o=t.valueOf()-r;o<36e4||n.props.onTimeChange(r,r+o,n.updateScrollCanvas)})),E(T(n),"selectItem",(function(e,t,r){if(n.isItemSelected(e)||n.props.itemTouchSendsClick&&"touch"===t){if(e&&n.props.onItemClick){var o=n.timeFromItemEvent(r);n.props.onItemClick(e,r,o)}}else if(n.setState({selectedItem:e}),e&&n.props.onItemSelect){var i=n.timeFromItemEvent(r);n.props.onItemSelect(e,r,i)}else null===e&&n.props.onItemDeselect&&n.props.onItemDeselect(r)})),E(T(n),"doubleClickItem",(function(e,t){if(n.props.onItemDoubleClick){var r=n.timeFromItemEvent(t);n.props.onItemDoubleClick(e,t,r)}})),E(T(n),"contextMenuClickItem",(function(e,t){if(n.props.onItemContextMenu){var r=n.timeFromItemEvent(t);n.props.onItemContextMenu(e,t,r)}})),E(T(n),"getTimeFromRowClickEvent",(function(e){var t=n.props.dragSnap,r=n.state,o=r.width,i=r.canvasTimeStart,a=r.canvasTimeEnd,s=e.nativeEvent.offsetX,u=(0,d.calculateTimeForXPosition)(i,a,(0,d.getCanvasWidth)(o),s);return u=Math.floor(u/t)*t})),E(T(n),"timeFromItemEvent",(function(e){var t=n.state,r=t.width,o=t.visibleTimeStart,i=t.visibleTimeEnd,a=n.props.dragSnap,s=n.scrollComponent.getBoundingClientRect().left,u=(e.clientX-s)/r*(i-o),l=Math.round(o+u);return l=Math.floor(l/a)*a})),E(T(n),"dragItem",(function(e,t,r){var o=n.props.groups[r],i=n.props.keys;n.setState({draggingItem:e,dragTime:t,newGroupOrder:r,dragGroupTitle:o?(0,p._get)(o,i.groupLabelKey):""}),n.updatingItem({eventType:"move",itemId:e,time:t,newGroupOrder:r})})),E(T(n),"dropItem",(function(e,t,r){n.setState({draggingItem:null,dragTime:null,dragGroupTitle:null}),n.props.onItemMove&&n.props.onItemMove(e,t,r)})),E(T(n),"resizingItem",(function(e,t,r){n.setState({resizingItem:e,resizingEdge:r,resizeTime:t}),n.updatingItem({eventType:"resize",itemId:e,time:t,edge:r})})),E(T(n),"resizedItem",(function(e,t,r,o){n.setState({resizingItem:null,resizingEdge:null,resizeTime:null}),n.props.onItemResize&&0!==o&&n.props.onItemResize(e,t,r)})),E(T(n),"updatingItem",(function(e){var t=e.eventType,r=e.itemId,o=e.time,i=e.edge,a=e.newGroupOrder;n.props.onItemDrag&&n.props.onItemDrag({eventType:t,itemId:r,time:o,edge:i,newGroupOrder:a})})),E(T(n),"handleRowClick",(function(e,t){if(n.hasSelectedItem()&&n.selectItem(null),null!=n.props.onCanvasClick){var r=n.getTimeFromRowClickEvent(e),o=(0,p._get)(n.props.groups[t],n.props.keys.groupIdKey);n.props.onCanvasClick(o,r,e)}})),E(T(n),"handleRowDoubleClick",(function(e,t){if(null!=n.props.onCanvasDoubleClick){var r=n.getTimeFromRowClickEvent(e),o=(0,p._get)(n.props.groups[t],n.props.keys.groupIdKey);n.props.onCanvasDoubleClick(o,r,e)}})),E(T(n),"handleScrollContextMenu",(function(e,t){if(null!=n.props.onCanvasContextMenu){var r=n.getTimeFromRowClickEvent(e),o=(0,p._get)(n.props.groups[t],n.props.keys.groupIdKey);n.props.onCanvasContextMenu&&(e.preventDefault(),n.props.onCanvasContextMenu(o,r,e))}})),E(T(n),"handleHeaderRef",(function(e){n.scrollHeaderRef=e,n.props.headerRef(e)})),E(T(n),"isTimelineHeader",(function(e){return void 0!==e.type&&e.type.secretKey===g.default.secretKey})),E(T(n),"renderHeaders",(function(){var e;if(n.props.children&&(o.default.Children.map(n.props.children,(function(t){n.isTimelineHeader(t)&&(e=t)})),e))return e;return o.default.createElement(g.default,null,o.default.createElement(b.default,{unit:"primaryHeader"}),o.default.createElement(b.default,null))})),E(T(n),"getScrollElementRef",(function(e){n.props.scrollRef(e),n.scrollComponent=e})),n.getSelected=n.getSelected.bind(T(n)),n.hasSelectedItem=n.hasSelectedItem.bind(T(n)),n.isItemSelected=n.isItemSelected.bind(T(n));var r=null,i=null;if(n.props.defaultTimeStart&&n.props.defaultTimeEnd)r=n.props.defaultTimeStart.valueOf(),i=n.props.defaultTimeEnd.valueOf();else{if(!n.props.visibleTimeStart||!n.props.visibleTimeEnd)throw new Error('You must provide either "defaultTimeStart" and "defaultTimeEnd" or "visibleTimeStart" and "visibleTimeEnd" to initialize the Timeline');r=n.props.visibleTimeStart,i=n.props.visibleTimeEnd}var a=_((0,d.getCanvasBoundariesFromVisibleTime)(r,i),2),s=a[0],u=a[1];n.state={width:1e3,visibleTimeStart:r,visibleTimeEnd:i,canvasTimeStart:s,canvasTimeEnd:u,selectedItem:null,dragTime:null,dragGroupTitle:null,resizeTime:null,resizingItem:null,resizingEdge:null};var l=(0,d.getCanvasWidth)(n.state.width),c=(0,d.stackTimelineItems)(e.items,e.groups,l,n.state.canvasTimeStart,n.state.canvasTimeEnd,e.keys,e.lineHeight,e.itemHeightRatio,e.stackItems,n.state.draggingItem,n.state.resizingItem,n.state.dragTime,n.state.resizingEdge,n.state.resizeTime,n.state.newGroupOrder),f=c.dimensionItems,h=c.height,v=c.groupHeights,m=c.groupTops;return n.state.dimensionItems=f,n.state.height=h,n.state.groupHeights=v,n.state.groupTops=m,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(t,e),j(t,[{key:"getChildContext",value:function(){var e=this;return{getTimelineContext:function(){return e.getTimelineContext()}}}}]),j(t,[{key:"componentDidMount",value:function(){this.resize(this.props),this.props.resizeDetector&&this.props.resizeDetector.addListener&&this.props.resizeDetector.addListener(this),f.default.addListener(this),this.lastTouchDistance=null}},{key:"componentWillUnmount",value:function(){this.props.resizeDetector&&this.props.resizeDetector.addListener&&this.props.resizeDetector.removeListener(this),f.default.removeListener(this)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.visibleTimeEnd-this.state.visibleTimeStart,r=t.visibleTimeEnd-t.visibleTimeStart;this.props.onZoom&&n!==r&&this.props.onZoom(this.getTimelineContext()),this.props.onBoundsChange&&this.state.canvasTimeStart!==t.canvasTimeStart&&this.props.onBoundsChange(this.state.canvasTimeStart,this.state.canvasTimeStart+3*n);var o=Math.round(this.state.width*(this.state.visibleTimeStart-this.state.canvasTimeStart)/n);Math.round(t.width*(t.visibleTimeStart-t.canvasTimeStart)/r)!==o&&(this.scrollComponent.scrollLeft=o,this.scrollHeaderRef.scrollLeft=o)}},{key:"columns",value:function(e,t,n,r,i,a){return o.default.createElement(s.default,{canvasTimeStart:e,canvasTimeEnd:t,canvasWidth:n,lineCount:(0,p._length)(this.props.groups),minUnit:r,timeSteps:i,height:a,verticalLineClassNamesForTime:this.props.verticalLineClassNamesForTime})}},{key:"rows",value:function(e,t,n){return o.default.createElement(u.default,{groups:n,canvasWidth:e,lineCount:(0,p._length)(this.props.groups),groupHeights:t,clickTolerance:this.props.clickTolerance,onRowClick:this.handleRowClick,onRowDoubleClick:this.handleRowDoubleClick,horizontalLineClassNamesForGroup:this.props.horizontalLineClassNamesForGroup,onRowContextClick:this.handleScrollContextMenu})}},{key:"items",value:function(e,t,n,r,a,s,u,l){return o.default.createElement(i.default,{canvasTimeStart:e,canvasTimeEnd:n,canvasWidth:r,dimensionItems:s,groupTops:l,items:this.props.items,groups:this.props.groups,keys:this.props.keys,selectedItem:this.state.selectedItem,dragSnap:this.props.dragSnap,minResizeWidth:this.props.minResizeWidth,canChangeGroup:this.props.canChangeGroup,canMove:this.props.canMove,canResize:this.props.canResize,useResizeHandle:this.props.useResizeHandle,canSelect:this.props.canSelect,moveResizeValidator:this.props.moveResizeValidator,itemSelect:this.selectItem,itemDrag:this.dragItem,itemDrop:this.dropItem,onItemDoubleClick:this.doubleClickItem,onItemContextMenu:this.contextMenuClickItem,itemResizing:this.resizingItem,itemResized:this.resizedItem,itemRenderer:this.props.itemRenderer,selected:this.props.selected,scrollRef:this.scrollComponent})}},{key:"sidebar",value:function(e,t){var n=this.props.sidebarWidth;return n&&o.default.createElement(a.default,{groups:this.props.groups,groupRenderer:this.props.groupRenderer,keys:this.props.keys,width:n,groupHeights:t,height:e})}},{key:"rightSidebar",value:function(e,t){var n=this.props.rightSidebarWidth;return n&&o.default.createElement(a.default,{groups:this.props.groups,keys:this.props.keys,groupRenderer:this.props.groupRenderer,isRightSidebar:!0,width:n,groupHeights:t,height:e})}},{key:"childrenWithProps",value:function(e,t,n,r,i,a,s,u,l,c,f){var d=this;if(!this.props.children)return null;var p=Array.isArray(this.props.children)?this.props.children.filter((function(e){return e})):[this.props.children],h={canvasTimeStart:e,canvasTimeEnd:t,canvasWidth:n,visibleTimeStart:u,visibleTimeEnd:l,dimensionItems:r,items:this.props.items,groups:this.props.groups,keys:this.props.keys,groupHeights:i,groupTops:a,selected:this.getSelected(),height:s,minUnit:c,timeSteps:f};return o.default.Children.map(p,(function(e){return d.isTimelineHeader(e)?null:o.default.cloneElement(e,h)}))}},{key:"getSelected",value:function(){return this.state.selectedItem&&!this.props.selected?[this.state.selectedItem]:this.props.selected||[]}},{key:"hasSelectedItem",value:function(){return Array.isArray(this.props.selected)?this.props.selected.length>0:!!this.state.selectedItem}},{key:"isItemSelected",value:function(e){return this.getSelected().some((function(t){return t===e}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=t.groups,i=t.sidebarWidth,a=t.rightSidebarWidth,s=t.timeSteps,u=t.traditionalZoom,f=this.state,p=f.draggingItem,h=f.resizingItem,g=f.width,b=f.visibleTimeStart,O=f.visibleTimeEnd,w=f.canvasTimeStart,_=f.canvasTimeEnd,S=this.state,T=S.dimensionItems,P=S.height,j=S.groupHeights,x=S.groupTops,E=O-b,M=(0,d.getCanvasWidth)(g),k=(0,d.getMinUnit)(E,g,s),R=!!p||!!h;if(R){var C=(0,d.stackTimelineItems)(n,r,M,this.state.canvasTimeStart,this.state.canvasTimeEnd,this.props.keys,this.props.lineHeight,this.props.itemHeightRatio,this.props.stackItems,this.state.draggingItem,this.state.resizingItem,this.state.dragTime,this.state.resizingEdge,this.state.resizeTime,this.state.newGroupOrder);T=C.dimensionItems,P=C.height,j=C.groupHeights,x=C.groupTops}var I={height:"".concat(P,"px")};return o.default.createElement(v.TimelineStateProvider,{visibleTimeStart:b,visibleTimeEnd:O,canvasTimeStart:w,canvasTimeEnd:_,canvasWidth:M,showPeriod:this.showPeriod,timelineUnit:k,timelineWidth:this.state.width},o.default.createElement(m.TimelineMarkersProvider,null,o.default.createElement(y.TimelineHeadersProvider,{registerScroll:this.handleHeaderRef,timeSteps:s,leftSidebarWidth:this.props.sidebarWidth,rightSidebarWidth:this.props.rightSidebarWidth},o.default.createElement("div",{style:this.props.style,ref:function(t){return e.container=t},className:"react-calendar-timeline ".concat(this.props.className)},this.renderHeaders(),o.default.createElement("div",{style:I,className:"rct-outer"},i>0?this.sidebar(P,j):null,o.default.createElement(l.default,{scrollRef:this.getScrollElementRef,width:g,height:P,onZoom:this.changeZoom,onWheelZoom:this.handleWheelZoom,traditionalZoom:u,onScroll:this.onScroll,isInteractingWithItem:R},o.default.createElement(c.default,null,this.columns(w,_,M,k,s,P),this.rows(M,j,r),this.items(w,E,_,M,k,T,j,x),this.childrenWithProps(w,_,M,T,j,x,P,b,O,k,s))),a>0?this.rightSidebar(P,j):null)))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.visibleTimeStart,r=e.visibleTimeEnd,o=e.items,i=e.groups,a={items:o,groups:i},s=o!==t.items||i!==t.groups;if(n&&r)Object.assign(a,(0,d.calculateScrollCanvas)(n,r,s,o,i,e,t));else if(s){var u=(0,d.getCanvasWidth)(t.width);Object.assign(a,(0,d.stackTimelineItems)(o,i,u,t.canvasTimeStart,t.canvasTimeEnd,e.keys,e.lineHeight,e.itemHeightRatio,e.stackItems,t.draggingItem,t.resizingItem,t.dragTime,t.resizingEdge,t.resizeTime,t.newGroupOrder))}return a}}]),t}(o.Component);t.default=M,E(M,"propTypes",{groups:r.default.oneOfType([r.default.array,r.default.object]).isRequired,items:r.default.oneOfType([r.default.array,r.default.object]).isRequired,sidebarWidth:r.default.number,rightSidebarWidth:r.default.number,dragSnap:r.default.number,minResizeWidth:r.default.number,stickyHeader:r.default.bool,lineHeight:r.default.number,itemHeightRatio:r.default.number,minZoom:r.default.number,maxZoom:r.default.number,clickTolerance:r.default.number,canChangeGroup:r.default.bool,canMove:r.default.bool,canResize:r.default.oneOf([!0,!1,"left","right","both"]),useResizeHandle:r.default.bool,canSelect:r.default.bool,stackItems:r.default.bool,traditionalZoom:r.default.bool,itemTouchSendsClick:r.default.bool,horizontalLineClassNamesForGroup:r.default.func,onItemMove:r.default.func,onItemResize:r.default.func,onItemClick:r.default.func,onItemSelect:r.default.func,onItemDeselect:r.default.func,onCanvasClick:r.default.func,onItemDoubleClick:r.default.func,onItemContextMenu:r.default.func,onCanvasDoubleClick:r.default.func,onCanvasContextMenu:r.default.func,onZoom:r.default.func,onItemDrag:r.default.func,moveResizeValidator:r.default.func,itemRenderer:r.default.func,groupRenderer:r.default.func,className:r.default.string,style:r.default.object,keys:r.default.shape({groupIdKey:r.default.string,groupTitleKey:r.default.string,groupLabelKey:r.default.string,groupRightTitleKey:r.default.string,itemIdKey:r.default.string,itemTitleKey:r.default.string,itemDivTitleKey:r.default.string,itemGroupKey:r.default.string,itemTimeStartKey:r.default.string,itemTimeEndKey:r.default.string}),headerRef:r.default.func,scrollRef:r.default.func,timeSteps:r.default.shape({second:r.default.number,minute:r.default.number,hour:r.default.number,day:r.default.number,month:r.default.number,year:r.default.number}),defaultTimeStart:r.default.object,defaultTimeEnd:r.default.object,visibleTimeStart:r.default.number,visibleTimeEnd:r.default.number,onTimeChange:r.default.func,onBoundsChange:r.default.func,selected:r.default.array,headerLabelFormats:r.default.shape({yearShort:r.default.string,yearLong:r.default.string,monthShort:r.default.string,monthMedium:r.default.string,monthMediumLong:r.default.string,monthLong:r.default.string,dayShort:r.default.string,dayLong:r.default.string,hourShort:r.default.string,hourMedium:r.default.string,hourMediumLong:r.default.string,hourLong:r.default.string}),subHeaderLabelFormats:r.default.shape({yearShort:r.default.string,yearLong:r.default.string,monthShort:r.default.string,monthMedium:r.default.string,monthLong:r.default.string,dayShort:r.default.string,dayMedium:r.default.string,dayMediumLong:r.default.string,dayLong:r.default.string,hourShort:r.default.string,hourLong:r.default.string,minuteShort:r.default.string,minuteLong:r.default.string}),resizeDetector:r.default.shape({addListener:r.default.func,removeListener:r.default.func}),verticalLineClassNamesForTime:r.default.func,children:r.default.node}),E(M,"defaultProps",{sidebarWidth:150,rightSidebarWidth:0,dragSnap:9e5,minResizeWidth:20,stickyHeader:!0,lineHeight:30,itemHeightRatio:.65,minZoom:36e5,maxZoom:15778368e4,clickTolerance:3,canChangeGroup:!0,canMove:!0,canResize:"right",useResizeHandle:!1,canSelect:!0,stackItems:!1,traditionalZoom:!1,horizontalLineClassNamesForGroup:null,onItemMove:null,onItemResize:null,onItemClick:null,onItemSelect:null,onItemDeselect:null,onItemDrag:null,onCanvasClick:null,onItemDoubleClick:null,onItemContextMenu:null,onZoom:null,verticalLineClassNamesForTime:null,moveResizeValidator:null,dayBackground:null,defaultTimeStart:null,defaultTimeEnd:null,itemTouchSendsClick:!1,style:{},className:"",keys:h.defaultKeys,timeSteps:h.defaultTimeSteps,headerRef:function(){},scrollRef:function(){},visibleTimeStart:null,visibleTimeEnd:null,onTimeChange:function(e,t,n){n(e,t)},onBoundsChange:null,children:null,headerLabelFormats:h.defaultHeaderLabelFormats,subHeaderLabelFormats:h.defaultSubHeaderLabelFormats,selected:null}),E(M,"childContextTypes",{getTimelineContext:r.default.func})},1405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(80)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2)),i=u(n(1406)),a=n(840),s=n(821);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e,t){var n=void 0!==(0,a._get)(e,"canResize")?(0,a._get)(e,"canResize"):t;return"left"===n||"both"===n},y=function(e,t){var n=void 0!==(0,a._get)(e,"canResize")?(0,a._get)(e,"canResize"):t;return"right"===n||"both"===n||!0===n},g=function(e){function t(){return c(this,t),d(this,p(t).apply(this,arguments))}var n,r,u;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(r=[{key:"shouldComponentUpdate",value:function(e){return!((0,a.arraysEqual)(e.groups,this.props.groups)&&(0,a.arraysEqual)(e.items,this.props.items)&&(0,a.arraysEqual)(e.dimensionItems,this.props.dimensionItems)&&e.keys===this.props.keys&&e.canvasTimeStart===this.props.canvasTimeStart&&e.canvasTimeEnd===this.props.canvasTimeEnd&&e.canvasWidth===this.props.canvasWidth&&e.selectedItem===this.props.selectedItem&&e.selected===this.props.selected&&e.dragSnap===this.props.dragSnap&&e.minResizeWidth===this.props.minResizeWidth&&e.canChangeGroup===this.props.canChangeGroup&&e.canMove===this.props.canMove&&e.canResize===this.props.canResize&&e.canSelect===this.props.canSelect)}},{key:"isSelected",value:function(e,t){if(this.props.selected){var n=(0,a._get)(e,t);return this.props.selected.includes(n)}return this.props.selectedItem===(0,a._get)(e,t)}},{key:"getVisibleItems",value:function(e,t){var n=this.props,r=n.keys,o=n.items;return(0,s.getVisibleItems)(o,e,t,r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.canvasTimeStart,r=t.canvasTimeEnd,u=t.dimensionItems,l=t.keys,c=t.groups,f=l.itemIdKey,d=l.itemGroupKey,p=(0,s.getGroupOrders)(c,l),h=this.getVisibleItems(n,r,p),v=(0,a.keyBy)(u,"id");return o.default.createElement("div",{className:"rct-items"},h.filter((function(e){return v[(0,a._get)(e,f)]})).map((function(t){return o.default.createElement(i.default,{key:(0,a._get)(t,f),item:t,keys:e.props.keys,order:p[(0,a._get)(t,d)],dimensions:v[(0,a._get)(t,f)].dimensions,selected:e.isSelected(t,f),canChangeGroup:void 0!==(0,a._get)(t,"canChangeGroup")?(0,a._get)(t,"canChangeGroup"):e.props.canChangeGroup,canMove:void 0!==(0,a._get)(t,"canMove")?(0,a._get)(t,"canMove"):e.props.canMove,canResizeLeft:m(t,e.props.canResize),canResizeRight:y(t,e.props.canResize),canSelect:void 0!==(0,a._get)(t,"canSelect")?(0,a._get)(t,"canSelect"):e.props.canSelect,useResizeHandle:e.props.useResizeHandle,groupTops:e.props.groupTops,canvasTimeStart:e.props.canvasTimeStart,canvasTimeEnd:e.props.canvasTimeEnd,canvasWidth:e.props.canvasWidth,dragSnap:e.props.dragSnap,minResizeWidth:e.props.minResizeWidth,onResizing:e.props.itemResizing,onResized:e.props.itemResized,moveResizeValidator:e.props.moveResizeValidator,onDrag:e.props.itemDrag,onDrop:e.props.itemDrop,onItemDoubleClick:e.props.onItemDoubleClick,onContextMenu:e.props.onItemContextMenu,onSelect:e.props.itemSelect,itemRenderer:e.props.itemRenderer,scrollRef:e.props.scrollRef})})))}}])&&f(n.prototype,r),u&&f(n,u),t}(o.Component);t.default=g,v(g,"propTypes",{groups:r.default.oneOfType([r.default.array,r.default.object]).isRequired,items:r.default.oneOfType([r.default.array,r.default.object]).isRequired,canvasTimeStart:r.default.number.isRequired,canvasTimeEnd:r.default.number.isRequired,canvasWidth:r.default.number.isRequired,dragSnap:r.default.number,minResizeWidth:r.default.number,selectedItem:r.default.oneOfType([r.default.string,r.default.number]),canChangeGroup:r.default.bool.isRequired,canMove:r.default.bool.isRequired,canResize:r.default.oneOf([!0,!1,"left","right","both"]),canSelect:r.default.bool,keys:r.default.object.isRequired,moveResizeValidator:r.default.func,itemSelect:r.default.func,itemDrag:r.default.func,itemDrop:r.default.func,itemResizing:r.default.func,itemResized:r.default.func,onItemDoubleClick:r.default.func,onItemContextMenu:r.default.func,itemRenderer:r.default.func,selected:r.default.array,dimensionItems:r.default.array,groupTops:r.default.array,useResizeHandle:r.default.bool,scrollRef:r.default.object}),v(g,"defaultProps",{selected:[]})},1406:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2),o=p(n(80)),i=p(n(1407)),a=p(n(597)),s=n(840),u=n(1059),l=n(1409),c=n(821),f=n(1060),d=n(1410);function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?y(e):t}(this,m(t).call(this,e)),b(y(n),"onMouseDown",(function(e){n.state.interactMounted||(e.preventDefault(),n.startedClicking=!0)})),b(y(n),"onMouseUp",(function(e){!n.state.interactMounted&&n.startedClicking&&(n.startedClicking=!1,n.actualClick(e,"click"))})),b(y(n),"onTouchStart",(function(e){n.state.interactMounted||(e.preventDefault(),n.startedTouching=!0)})),b(y(n),"onTouchEnd",(function(e){!n.state.interactMounted&&n.startedTouching&&(n.startedTouching=!1,n.actualClick(e,"touch"))})),b(y(n),"handleDoubleClick",(function(e){e.stopPropagation(),n.props.onItemDoubleClick&&n.props.onItemDoubleClick(n.itemId,e)})),b(y(n),"handleContextMenu",(function(e){n.props.onContextMenu&&(e.preventDefault(),e.stopPropagation(),n.props.onContextMenu(n.itemId,e))})),b(y(n),"getItemRef",(function(e){return n.item=e})),b(y(n),"getDragLeftRef",(function(e){return n.dragLeft=e})),b(y(n),"getDragRightRef",(function(e){return n.dragRight=e})),b(y(n),"getItemProps",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="rct-item"+(n.props.item.className?" ".concat(n.props.item.className):"");return{key:n.itemId,ref:n.getItemRef,title:n.itemDivTitle,className:t+" ".concat(e.className?e.className:""),onMouseDown:(0,u.composeEvents)(n.onMouseDown,e.onMouseDown),onMouseUp:(0,u.composeEvents)(n.onMouseUp,e.onMouseUp),onTouchStart:(0,u.composeEvents)(n.onTouchStart,e.onTouchStart),onTouchEnd:(0,u.composeEvents)(n.onTouchEnd,e.onTouchEnd),onDoubleClick:(0,u.composeEvents)(n.handleDoubleClick,e.onDoubleClick),onContextMenu:(0,u.composeEvents)(n.handleContextMenu,e.onContextMenu),style:Object.assign({},n.getItemStyle(e))}})),b(y(n),"getResizeProps",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="rct-item-handler rct-item-handler-left rct-item-handler-resize-left";e.leftClassName&&(t+=" ".concat(e.leftClassName));var r="rct-item-handler rct-item-handler-right rct-item-handler-resize-right";return e.rightClassName&&(r+=" ".concat(e.rightClassName)),{left:{ref:n.getDragLeftRef,className:t,style:Object.assign({},d.leftResizeStyle,e.leftStyle)},right:{ref:n.getDragRightRef,className:r,style:Object.assign({},d.rightResizeStyle,e.rightStyle)}}})),n.cacheDataFromProps(e),n.state={interactMounted:!1,dragging:null,dragStart:null,preDragPosition:null,dragTime:null,dragGroupDelta:null,resizing:null,resizeEdge:null,resizeStart:null,resizeTime:null},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),n=t,(r=[{key:"shouldComponentUpdate",value:function(e,t){return t.dragging!==this.state.dragging||t.dragTime!==this.state.dragTime||t.dragGroupDelta!==this.state.dragGroupDelta||t.resizing!==this.state.resizing||t.resizeTime!==this.state.resizeTime||e.keys!==this.props.keys||!(0,s.deepObjectCompare)(e.itemProps,this.props.itemProps)||e.selected!==this.props.selected||e.item!==this.props.item||e.canvasTimeStart!==this.props.canvasTimeStart||e.canvasTimeEnd!==this.props.canvasTimeEnd||e.canvasWidth!==this.props.canvasWidth||(e.order?e.order.index:void 0)!==(this.props.order?this.props.order.index:void 0)||e.dragSnap!==this.props.dragSnap||e.minResizeWidth!==this.props.minResizeWidth||e.canChangeGroup!==this.props.canChangeGroup||e.canSelect!==this.props.canSelect||e.canMove!==this.props.canMove||e.canResizeLeft!==this.props.canResizeLeft||e.canResizeRight!==this.props.canResizeRight||e.dimensions!==this.props.dimensions}},{key:"cacheDataFromProps",value:function(e){this.itemId=(0,s._get)(e.item,e.keys.itemIdKey),this.itemTitle=(0,s._get)(e.item,e.keys.itemTitleKey),this.itemDivTitle=e.keys.itemDivTitleKey?(0,s._get)(e.item,e.keys.itemDivTitleKey):this.itemTitle,this.itemTimeStart=(0,s._get)(e.item,e.keys.itemTimeStartKey),this.itemTimeEnd=(0,s._get)(e.item,e.keys.itemTimeEndKey)}},{key:"getTimeRatio",value:function(){var e=this.props,t=e.canvasTimeStart,n=e.canvasTimeEnd,r=e.canvasWidth;return(0,c.coordinateToTimeRatio)(t,n,r)}},{key:"dragTimeSnap",value:function(e,t){var n=this.props.dragSnap;if(n){var r=t?60*(0,a.default)().utcOffset()*1e3:0;return Math.round(e/n)*n-r%n}return e}},{key:"resizeTimeSnap",value:function(e){var t=this.props.dragSnap;if(t){var n=this.itemTimeEnd%t;return Math.round((e-n)/t)*t+n}return e}},{key:"dragTime",value:function(e){var t=(0,a.default)(this.itemTimeStart);return this.state.dragging?this.dragTimeSnap(this.timeFor(e)+this.state.dragStart.offset,!0):t}},{key:"timeFor",value:function(e){var t=(0,c.coordinateToTimeRatio)(this.props.canvasTimeStart,this.props.canvasTimeEnd,this.props.canvasWidth),n=(0,f.getSumOffset)(this.props.scrollRef).offsetLeft,r=(0,f.getSumScroll)(this.props.scrollRef);return(e.pageX-n+r.scrollLeft)*t+this.props.canvasTimeStart}},{key:"dragGroupDelta",value:function(e){var t=this.props,n=t.groupTops,r=t.order;if(this.state.dragging){if(!this.props.canChangeGroup)return 0;for(var o=0,i=(0,f.getSumOffset)(this.props.scrollRef).offsetTop,a=(0,f.getSumScroll)(this.props.scrollRef),s=0,u=Object.keys(n);s<u.length;s++){var l=u[s],c=n[l];if(!(e.pageY-i+a.scrollTop>c))break;o=parseInt(l,10)-r.index}return this.props.order.index+o<0?0-this.props.order.index:o}return 0}},{key:"resizeTimeDelta",value:function(e,t){var n=this.itemTimeEnd-this.itemTimeStart,r=this.dragTimeSnap((e.pageX-this.state.resizeStart)*this.getTimeRatio());return n+("left"===t?-r:r)<(this.props.dragSnap||1e3)?"left"===t?n-(this.props.dragSnap||1e3):(this.props.dragSnap||1e3)-n:r}},{key:"mountInteract",value:function(){var e=this,t=!this.props.useResizeHandle||".rct-item-handler-resize-left",n=!this.props.useResizeHandle||".rct-item-handler-resize-right";(0,i.default)(this.item).resizable({edges:{left:this.canResizeLeft()&&t,right:this.canResizeRight()&&n,top:!1,bottom:!1},enabled:this.props.selected&&(this.canResizeLeft()||this.canResizeRight())}).draggable({enabled:this.props.selected&&this.canMove()}).styleCursor(!1).on("dragstart",(function(t){if(!e.props.selected)return!1;var n=e.timeFor(t);e.setState({dragging:!0,dragStart:{x:t.pageX,y:t.pageY,offset:e.itemTimeStart-n},preDragPosition:{x:t.target.offsetLeft,y:t.target.offsetTop},dragTime:e.itemTimeStart,dragGroupDelta:0})})).on("dragmove",(function(t){if(e.state.dragging){var n=e.dragTime(t),r=e.dragGroupDelta(t);e.props.moveResizeValidator&&(n=e.props.moveResizeValidator("move",e.props.item,n)),e.props.onDrag&&e.props.onDrag(e.itemId,n,e.props.order.index+r),e.setState({dragTime:n,dragGroupDelta:r})}})).on("dragend",(function(t){if(e.state.dragging){if(e.props.onDrop){var n=e.dragTime(t);e.props.moveResizeValidator&&(n=e.props.moveResizeValidator("move",e.props.item,n)),e.props.onDrop(e.itemId,n,e.props.order.index+e.dragGroupDelta(t))}e.setState({dragging:!1,dragStart:null,preDragPosition:null,dragTime:null,dragGroupDelta:null})}})).on("resizestart",(function(t){if(!e.props.selected)return!1;e.setState({resizing:!0,resizeEdge:null,resizeStart:t.pageX,resizeTime:0})})).on("resizemove",(function(t){if(e.state.resizing){var n=e.state.resizeEdge;n||(n=0!==t.deltaRect.left?"left":"right",e.setState({resizeEdge:n}));var r=e.resizeTimeSnap(e.timeFor(t));e.props.moveResizeValidator&&(r=e.props.moveResizeValidator("resize",e.props.item,r,n)),e.props.onResizing&&e.props.onResizing(e.itemId,r,n),e.setState({resizeTime:r})}})).on("resizeend",(function(t){if(e.state.resizing){var n=e.state.resizeEdge,r=e.resizeTimeSnap(e.timeFor(t));e.props.moveResizeValidator&&(r=e.props.moveResizeValidator("resize",e.props.item,r,n)),e.props.onResized&&e.props.onResized(e.itemId,r,n,e.resizeTimeDelta(t,n)),e.setState({resizing:null,resizeStart:null,resizeEdge:null,resizeTime:null})}})).on("tap",(function(t){e.actualClick(t,"mouse"===t.pointerType?"click":"touch")})),this.setState({interactMounted:!0})}},{key:"canResizeLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;if(!e.canResizeLeft)return!1;var t=parseInt(e.dimensions.width,10);return t>=e.minResizeWidth}},{key:"canResizeRight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;if(!e.canResizeRight)return!1;var t=parseInt(e.dimensions.width,10);return t>=e.minResizeWidth}},{key:"canMove",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return!!e.canMove}},{key:"componentDidUpdate",value:function(e){this.cacheDataFromProps(this.props);var t=this.state.interactMounted,n=e.selected&&this.canMove(e),r=e.selected&&this.canResizeLeft(e),o=e.selected&&this.canResizeRight(e),a=this.props.selected&&this.canMove(this.props),s=this.props.selected&&this.canResizeLeft(this.props),u=this.props.selected&&this.canResizeRight(this.props);if(this.item){if(this.props.selected&&!t&&(this.mountInteract(),t=!0),t&&(r!==s||o!==u)){var l=!this.props.useResizeHandle||this.dragLeft,c=!this.props.useResizeHandle||this.dragRight;(0,i.default)(this.item).resizable({enabled:s||u,edges:{top:!1,bottom:!1,left:s&&l,right:u&&c}})}t&&n!==a&&(0,i.default)(this.item).draggable({enabled:a})}else t=!1;this.setState({interactMounted:t})}},{key:"actualClick",value:function(e,t){this.props.canSelect&&this.props.onSelect&&this.props.onSelect(this.itemId,t,e)}},{key:"getItemStyle",value:function(e){var t=this.props.dimensions,n={position:"absolute",boxSizing:"border-box",left:"".concat(t.left,"px"),top:"".concat(t.top,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),lineHeight:"".concat(t.height,"px")};return Object.assign({},d.overridableStyles,this.props.selected?d.selectedStyle:{},this.props.selected&this.canMove(this.props)?d.selectedAndCanMove:{},this.props.selected&this.canResizeLeft(this.props)?d.selectedAndCanResizeLeft:{},this.props.selected&this.canResizeLeft(this.props)&this.state.dragging?d.selectedAndCanResizeLeftAndDragLeft:{},this.props.selected&this.canResizeRight(this.props)?d.selectedAndCanResizeRight:{},this.props.selected&this.canResizeRight(this.props)&this.state.dragging?d.selectedAndCanResizeRightAndDragRight:{},e.style,n)}},{key:"render",value:function(){if("undefined"===typeof this.props.order||null===this.props.order)return null;var e=this.context.getTimelineContext(),t={dimensions:this.props.dimensions,useResizeHandle:this.props.useResizeHandle,title:this.itemTitle,canMove:this.canMove(this.props),canResizeLeft:this.canResizeLeft(this.props),canResizeRight:this.canResizeRight(this.props),selected:this.props.selected,dragging:this.state.dragging,dragStart:this.state.dragStart,dragTime:this.state.dragTime,dragGroupDelta:this.state.dragGroupDelta,resizing:this.state.resizing,resizeEdge:this.state.resizeEdge,resizeStart:this.state.resizeStart,resizeTime:this.state.resizeTime,width:this.props.dimensions.width};return this.props.itemRenderer({item:this.props.item,timelineContext:e,itemContext:t,getItemProps:this.getItemProps,getResizeProps:this.getResizeProps})}}])&&v(n.prototype,r),o&&v(n,o),t}(r.Component);t.default=O,b(O,"propTypes",{canvasTimeStart:o.default.number.isRequired,canvasTimeEnd:o.default.number.isRequired,canvasWidth:o.default.number.isRequired,order:o.default.object,dragSnap:o.default.number,minResizeWidth:o.default.number,selected:o.default.bool,canChangeGroup:o.default.bool.isRequired,canMove:o.default.bool.isRequired,canResizeLeft:o.default.bool.isRequired,canResizeRight:o.default.bool.isRequired,keys:o.default.object.isRequired,item:o.default.object.isRequired,onSelect:o.default.func,onDrag:o.default.func,onDrop:o.default.func,onResizing:o.default.func,onResized:o.default.func,onContextMenu:o.default.func,itemRenderer:o.default.func,itemProps:o.default.object,canSelect:o.default.bool,dimensions:o.default.object,groupTops:o.default.array,useResizeHandle:o.default.bool,moveResizeValidator:o.default.func,onItemDoubleClick:o.default.func,scrollRef:o.default.object}),b(O,"defaultProps",{selected:!1,itemRenderer:l.defaultItemRenderer}),b(O,"contextTypes",{getTimelineContext:o.default.func})},1407:function(e,t,n){e.exports=function(){var e={};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){return!(!e||!e.Window)&&e instanceof e.Window};var t={};Object.defineProperty(t,"__esModule",{value:!0}),t.getWindow=function(t){return(0,e.default)(t)?t:(t.ownerDocument||t).defaultView||r.window},t.init=o,t.window=t.realWindow=void 0;var n=void 0;t.realWindow=n;var r=void 0;function o(e){t.realWindow=n=e;var o=e.document.createTextNode("");o.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(o)===o&&(e=e.wrap(e)),t.window=r=e}t.window=r,"undefined"!=typeof window&&window&&o(window);var i={};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=function(e){return!!e&&"object"===a(e)},u=function(e){return"function"==typeof e},l={window:function(n){return n===t.window||(0,e.default)(n)},docFrag:function(e){return s(e)&&11===e.nodeType},object:s,func:u,number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==a(e))return!1;var n=t.getWindow(e)||t.window;return/object|function/.test("undefined"==typeof Element?"undefined":a(Element))?e instanceof Element||e instanceof n.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return s(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())},array:function(e){return s(e)&&void 0!==e.length&&u(e.splice)}};i.default=l;var c={};function f(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===n&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function d(e){var t=e.iEvent,n=e.interaction;if("drag"===n.prepared.name){var r=n.prepared.axis;if("x"===r||"y"===r){var o="x"===r?"y":"x";t.page[o]=n.coords.start.page[o],t.client[o]=n.coords.start.client[o],t.delta[o]=0}}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var p={id:"actions/drag",install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;n.prototype.draggable=p.draggable,t.map.drag=p,t.methodDict.drag="draggable",r.actions.drag=p.defaults},listeners:{"interactions:before-action-move":f,"interactions:action-resume":f,"interactions:action-move":d,"auto-start:check":function(e){var t=e.interaction,n=e.interactable,r=e.buttons,o=n.options.drag;if(o&&o.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(r&n.options.drag.mouseButtons)))return e.action={name:"drag",axis:"start"===o.lockAxis?o.startAxis:o.lockAxis},!1}},draggable:function(e){return i.default.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):i.default.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:f,move:d,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},h=p;c.default=h;var v={};Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var m={init:function(e){var t=e;m.document=t.document,m.DocumentFragment=t.DocumentFragment||y,m.SVGElement=t.SVGElement||y,m.SVGSVGElement=t.SVGSVGElement||y,m.SVGElementInstance=t.SVGElementInstance||y,m.Element=t.Element||y,m.HTMLElement=t.HTMLElement||m.Element,m.Event=t.Event,m.Touch=t.Touch||y,m.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function y(){}var g=m;v.default=g;var b={};Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var O={init:function(e){var t=v.default.Element,n=e.navigator||{};O.supportsTouch="ontouchstart"in e||i.default.func(e.DocumentTouch)&&v.default.document instanceof e.DocumentTouch,O.supportsPointerEvent=!1!==n.pointerEnabled&&!!v.default.PointerEvent,O.isIOS=/iP(hone|od|ad)/.test(n.platform),O.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),O.isIe9=/MSIE 9/.test(n.userAgent),O.isOperaMobile="Opera"===n.appName&&O.supportsTouch&&/Presto/.test(n.userAgent),O.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",O.pEventTypes=O.supportsPointerEvent?v.default.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,O.wheelEvent=v.default.document&&"onmousewheel"in v.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},w=O;b.default=w;var _={};function S(e){var t=e.parentNode;if(i.default.docFrag(t)){for(;(t=t.host)&&i.default.docFrag(t););return t}return t}function T(e,n){return t.window!==t.realWindow&&(n=n.replace(/\/deep\//g," ")),e[b.default.prefixedMatchesSelector](n)}Object.defineProperty(_,"__esModule",{value:!0}),_.closest=function(e,t){for(;i.default.element(e);){if(T(e,t))return e;e=S(e)}return null},_.getActualElement=function(e){return e.correspondingUseElement||e},_.getElementClientRect=E,_.getElementRect=function(e){var n=E(e);if(!b.default.isIOS7&&n){var r=x(t.getWindow(e));n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n},_.getPath=function(e){for(var t=[];e;)t.push(e),e=S(e);return t},_.getScrollXY=x,_.indexOfDeepestElement=function(e){for(var n,r=[],o=0;o<e.length;o++){var i=e[o],a=e[n];if(i&&o!==n)if(a){var s=P(i),u=P(a);if(s!==i.ownerDocument)if(u!==i.ownerDocument)if(s!==u){r=r.length?r:j(a);var l=void 0;if(a instanceof v.default.HTMLElement&&i instanceof v.default.SVGElement&&!(i instanceof v.default.SVGSVGElement)){if(i===u)continue;l=i.ownerSVGElement}else l=i;for(var c=j(l,a.ownerDocument),f=0;c[f]&&c[f]===r[f];)f++;var d=[c[f-1],c[f],r[f]];if(d[0])for(var p=d[0].lastChild;p;){if(p===d[1]){n=o,r=c;break}if(p===d[2])break;p=p.previousSibling}}else h=i,m=a,(parseInt(t.getWindow(h).getComputedStyle(h).zIndex,10)||0)>=(parseInt(t.getWindow(m).getComputedStyle(m).zIndex,10)||0)&&(n=o);else n=o}else n=o}var h,m;return n},_.matchesSelector=T,_.matchesUpTo=function(e,t,n){for(;i.default.element(e);){if(T(e,t))return!0;if((e=S(e))===n)return T(e,t)}return!1},_.nodeContains=function(e,t){if(e.contains)return e.contains(t);for(;t;){if(t===e)return!0;t=t.parentNode}return!1},_.parentNode=S,_.trySelector=function(e){return!!i.default.string(e)&&(v.default.document.querySelector(e),!0)};var P=function(e){return e.parentNode||e.host};function j(e,t){for(var n,r=[],o=e;(n=P(o))&&o!==t&&n!==o.ownerDocument;)r.unshift(o),o=n;return r}function x(e){return{x:(e=e||t.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function E(e){var t=e instanceof v.default.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}var M={};Object.defineProperty(M,"__esModule",{value:!0}),M.default=function(e,t){for(var n in t)e[n]=t[n];return e};var k={};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t,n){return"parent"===e?(0,_.parentNode)(n):"self"===e?t.getRect(n):(0,_.closest)(n,e)}Object.defineProperty(k,"__esModule",{value:!0}),k.addEdges=function(e,t,n){e.left&&(t.left+=n.x),e.right&&(t.right+=n.x),e.top&&(t.top+=n.y),e.bottom&&(t.bottom+=n.y),t.width=t.right-t.left,t.height=t.bottom-t.top},k.getStringOptionResult=C,k.rectToXY=function(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}},k.resolveRectLike=function(e,t,n,r){var o,a=e;return i.default.string(a)?a=C(a,t,n):i.default.func(a)&&(a=a.apply(void 0,function(e){if(Array.isArray(e))return R(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),i.default.element(a)&&(a=(0,_.getElementRect)(a)),a},k.tlbrToXywh=function(e){return!e||"x"in e&&"y"in e||((e=(0,M.default)({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||(e.right||0)-e.x,e.height=e.height||(e.bottom||0)-e.y),e},k.xywhToTlbr=function(e){return!e||"left"in e&&"top"in e||((e=(0,M.default)({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e};var I={};Object.defineProperty(I,"__esModule",{value:!0}),I.default=function(e,t,n){var r=e.options[n],o=r&&r.origin||e.options.origin,i=(0,k.resolveRectLike)(o,e,t,[e&&t]);return(0,k.rectToXY)(i)||{x:0,y:0}};var D={};function z(e){return e.trim().split(/ +/)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=function e(t,n,r){if(r=r||{},i.default.string(t)&&-1!==t.search(" ")&&(t=z(t)),i.default.array(t))return t.reduce((function(t,o){return(0,M.default)(t,e(o,n,r))}),r);if(i.default.object(t)&&(n=t,t=""),i.default.func(n))r[t]=r[t]||[],r[t].push(n);else if(i.default.array(n))for(var o=0;o<n.length;o++){var a;a=n[o],e(t,a,r)}else if(i.default.object(n))for(var s in n){var u=z(s).map((function(e){return"".concat(t).concat(e)}));e(u,n[s],r)}return r};var A={};Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0,A.default=function(e,t){return Math.sqrt(e*e+t*t)};var L={};Object.defineProperty(L,"__esModule",{value:!0}),L.default=function(e,t){e.__set||(e.__set={});var n=function(n){"function"!=typeof e[n]&&"__set"!==n&&Object.defineProperty(e,n,{get:function(){return n in e.__set?e.__set[n]:e.__set[n]=t[n]},set:function(t){e.__set[n]=t},configurable:!0})};for(var r in t)n(r);return e};var W={};function H(e){return e instanceof v.default.Event||e instanceof v.default.Touch}function F(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n}function q(e,t){return t=t||{x:0,y:0},b.default.isOperaMobile&&H(e)?(F("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):F("page",e,t),t}function N(e,t){return t=t||{},b.default.isOperaMobile&&H(e)?F("screen",e,t):F("client",e,t),t}function Y(e){var t=[];return i.default.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function U(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var r=e[n];for(var o in t)t[o]+=r[o]}for(var i in t)t[i]/=e.length;return t}Object.defineProperty(W,"__esModule",{value:!0}),W.coordsToEvent=function(e){return{coords:e,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}},W.copyCoords=function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},W.getClientXY=N,W.getEventTargets=function(e){var t=i.default.func(e.composedPath)?e.composedPath():e.path;return[_.getActualElement(t?t[0]:e.target),_.getActualElement(e.currentTarget)]},W.getPageXY=q,W.getPointerId=function(e){return i.default.number(e.pointerId)?e.pointerId:e.identifier},W.getPointerType=function(e){return i.default.string(e.pointerType)?e.pointerType:i.default.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type||"")||e instanceof v.default.Touch?"touch":"mouse"},W.getTouchPair=Y,W.getXY=F,W.isNativePointer=H,W.newCoords=function(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},W.pointerAverage=U,Object.defineProperty(W,"pointerExtend",{enumerable:!0,get:function(){return L.default}}),W.setCoordDeltas=function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp},W.setCoordVelocity=function(e,t){var n=Math.max(t.timeStamp/1e3,.001);e.page.x=t.page.x/n,e.page.y=t.page.y/n,e.client.x=t.client.x/n,e.client.y=t.client.y/n,e.timeStamp=n},W.setCoords=function(e,t,n){var r=t.length>1?U(t):t[0];q(r,e.page),N(r,e.client),e.timeStamp=n},W.setZeroCoords=function(e){e.page.x=0,e.page.y=0,e.client.x=0,e.client.y=0},W.touchAngle=function(e,t){var n=t+"X",r=t+"Y",o=Y(e),i=o[1][n]-o[0][n],a=o[1][r]-o[0][r];return 180*Math.atan2(a,i)/Math.PI},W.touchBBox=function(e){if(!e.length)return null;var t=Y(e),n=Math.min(t[0].pageX,t[1].pageX),r=Math.min(t[0].pageY,t[1].pageY),o=Math.max(t[0].pageX,t[1].pageX),i=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:r,left:n,top:r,right:o,bottom:i,width:o-n,height:i-r}},W.touchDistance=function(e,t){var n=t+"X",r=t+"Y",o=Y(e),i=o[0][n]-o[1][n],a=o[0][r]-o[1][r];return(0,A.default)(i,a)};var G={};function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(G,"__esModule",{value:!0}),G.BaseEvent=void 0;var X=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),K(this,"immediatePropagationStopped",!1),K(this,"propagationStopped",!1),this._interaction=t}var t,n;return t=e,(n=[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();G.BaseEvent=X,Object.defineProperty(X.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var B={};Object.defineProperty(B,"__esModule",{value:!0}),B.remove=B.merge=B.from=B.findIndex=B.find=B.contains=void 0,B.contains=function(e,t){return-1!==e.indexOf(t)},B.remove=function(e,t){return e.splice(e.indexOf(t),1)};var V=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}return e};B.merge=V,B.from=function(e){return V([],e)};var Z=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1};B.findIndex=Z,B.find=function(e,t){return e[Z(e,t)]};var $={};function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){return(Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ee(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return te(e)}function te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty($,"__esModule",{value:!0}),$.DropEvent=void 0;var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ne(r);if(o){var n=ne(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ee(this,e)});function a(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),re(te(r=i.call(this,t._interaction)),"dropzone",void 0),re(te(r),"dragEvent",void 0),re(te(r),"relatedTarget",void 0),re(te(r),"draggable",void 0),re(te(r),"propagationStopped",!1),re(te(r),"immediatePropagationStopped",!1);var o="dragleave"===n?e.prev:e.cur,s=o.element,u=o.dropzone;return r.type=n,r.target=s,r.currentTarget=s,r.dropzone=u,r.dragEvent=t,r.relatedTarget=t.target,r.draggable=t.interactable,r.timeStamp=t.timeStamp,r}return t=a,(n=[{key:"reject",value:function(){var e=this,t=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=t.activeDrops,r=B.findIndex(n,(function(t){var n=t.dropzone,r=t.element;return n===e.dropzone&&r===e.target}));t.activeDrops.splice(r,1);var o=new a(t,this.dragEvent,"dropdeactivate");o.dropzone=this.dropzone,o.target=this.target,this.dropzone.fire(o)}else this.dropzone.fire(new a(t,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(G.BaseEvent);$.DropEvent=oe;var ie={};function ae(e,t){for(var n=0;n<e.slice().length;n++){var r=e.slice()[n],o=r.dropzone,i=r.element;t.dropzone=o,t.target=i,o.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function se(e,t){for(var n=function(e,t){for(var n=e.interactables,r=[],o=0;o<n.list.length;o++){var a=n.list[o];if(a.options.drop.enabled){var s=a.options.drop.accept;if(!(i.default.element(s)&&s!==t||i.default.string(s)&&!_.matchesSelector(t,s)||i.default.func(s)&&!s({dropzone:a,draggableElement:t})))for(var u=i.default.string(a.target)?a._context.querySelectorAll(a.target):i.default.array(a.target)?a.target:[a.target],l=0;l<u.length;l++){var c=u[l];c!==t&&r.push({dropzone:a,element:c,rect:a.getRect(c)})}}}return r}(e,t),r=0;r<n.length;r++){var o=n[r];o.rect=o.dropzone.getRect(o.element)}return n}function ue(e,t,n){for(var r=e.dropState,o=e.interactable,i=e.element,a=[],s=0;s<r.activeDrops.length;s++){var u=r.activeDrops[s],l=u.dropzone,c=u.element,f=u.rect;a.push(l.dropCheck(t,n,o,i,c,f)?c:null)}var d=_.indexOfDeepestElement(a);return r.activeDrops[d]||null}function le(e,t,n){var r=e.dropState,o={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(o.activate=new $.DropEvent(r,n,"dropactivate"),o.activate.target=null,o.activate.dropzone=null),"dragend"===n.type&&(o.deactivate=new $.DropEvent(r,n,"dropdeactivate"),o.deactivate.target=null,o.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(o.leave=new $.DropEvent(r,n,"dragleave"),n.dragLeave=o.leave.target=r.prev.element,n.prevDropzone=o.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(o.enter=new $.DropEvent(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),"dragend"===n.type&&r.cur.dropzone&&(o.drop=new $.DropEvent(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),"dragmove"===n.type&&r.cur.dropzone&&(o.move=new $.DropEvent(r,n,"dropmove"),o.move.dragmove=n,n.dropzone=r.cur.dropzone)),o}function ce(e,t){var n=e.dropState,r=n.activeDrops,o=n.cur,i=n.prev;t.leave&&i.dropzone.fire(t.leave),t.enter&&o.dropzone.fire(t.enter),t.move&&o.dropzone.fire(t.move),t.drop&&o.dropzone.fire(t.drop),t.deactivate&&ae(r,t.deactivate),n.prev.dropzone=o.dropzone,n.prev.element=o.element}function fe(e,t){var n=e.interaction,r=e.iEvent,o=e.event;if("dragmove"===r.type||"dragend"===r.type){var i=n.dropState;t.dynamicDrop&&(i.activeDrops=se(t,n.element));var a=r,s=ue(n,a,o);i.rejected=i.rejected&&!!s&&s.dropzone===i.cur.dropzone&&s.element===i.cur.element,i.cur.dropzone=s&&s.dropzone,i.cur.element=s&&s.element,i.events=le(n,0,a)}}Object.defineProperty(ie,"__esModule",{value:!0}),ie.default=void 0;var de={id:"actions/drop",install:function(e){var t=e.actions,n=e.interactStatic,r=e.Interactable,o=e.defaults;e.usePlugin(c.default),r.prototype.dropzone=function(e){return function(e,t){if(i.default.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=(0,D.default)(t.listeners),r=Object.keys(n).reduce((function(e,t){return e[/^(enter|leave)/.test(t)?"drag".concat(t):/^(activate|deactivate|move)/.test(t)?"drop".concat(t):t]=n[t],e}),{});e.off(e.options.drop.listeners),e.on(r),e.options.drop.listeners=r}return i.default.func(t.ondrop)&&e.on("drop",t.ondrop),i.default.func(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),i.default.func(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),i.default.func(t.ondragenter)&&e.on("dragenter",t.ondragenter),i.default.func(t.ondragleave)&&e.on("dragleave",t.ondragleave),i.default.func(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:i.default.number(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),"accept"in t&&(e.options.drop.accept=t.accept),"checker"in t&&(e.options.drop.checker=t.checker),e}return i.default.bool(t)?(e.options.drop.enabled=t,e):e.options.drop}(this,e)},r.prototype.dropCheck=function(e,t,n,r,o,a){return function(e,t,n,r,o,a,s){var u=!1;if(!(s=s||e.getRect(a)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,u,e,a,r,o);var l=e.options.drop.overlap;if("pointer"===l){var c=(0,I.default)(r,o,"drag"),f=W.getPageXY(t);f.x+=c.x,f.y+=c.y;var d=f.x>s.left&&f.x<s.right,p=f.y>s.top&&f.y<s.bottom;u=d&&p}var h=r.getRect(o);if(h&&"center"===l){var v=h.left+h.width/2,m=h.top+h.height/2;u=v>=s.left&&v<=s.right&&m>=s.top&&m<=s.bottom}return h&&i.default.number(l)&&(u=Math.max(0,Math.min(s.right,h.right)-Math.max(s.left,h.left))*Math.max(0,Math.min(s.bottom,h.bottom)-Math.max(s.top,h.top))/(h.width*h.height)>=l),e.options.drop.checker&&(u=e.options.drop.checker(t,n,u,e,a,r,o)),u}(this,e,t,n,r,o,a)},n.dynamicDrop=function(t){return i.default.bool(t)?(e.dynamicDrop=t,n):e.dynamicDrop},(0,M.default)(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",e.dynamicDrop=!1,o.actions.drop=de.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;"drag"===t.prepared.name&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(e,t){var n=e.interaction,r=(e.event,e.iEvent);if("drag"===n.prepared.name){var o=n.dropState;o.activeDrops=null,o.events=null,o.activeDrops=se(t,n.element),o.events=le(n,0,r),o.events.activate&&(ae(o.activeDrops,o.events.activate),t.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":fe,"interactions:after-action-move":function(e,t){var n=e.interaction,r=e.iEvent;"drag"===n.prepared.name&&(ce(n,n.dropState.events),t.fire("actions/drop:move",{interaction:n,dragEvent:r}),n.dropState.events={})},"interactions:action-end":function(e,t){if("drag"===e.interaction.prepared.name){var n=e.interaction,r=e.iEvent;fe(e,t),ce(n,n.dropState.events),t.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:se,getDrop:ue,getDropEvents:le,fireDropEvents:ce,defaults:{enabled:!1,accept:null,overlap:"pointer"}},pe=de;ie.default=pe;var he={};function ve(e){var t=e.interaction,n=e.iEvent,r=e.phase;if("gesture"===t.prepared.name){var o=t.pointers.map((function(e){return e.pointer})),a="start"===r,s="end"===r,u=t.interactable.options.deltaSource;if(n.touches=[o[0],o[1]],a)n.distance=W.touchDistance(o,u),n.box=W.touchBBox(o),n.scale=1,n.ds=0,n.angle=W.touchAngle(o,u),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(s){var l=t.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=W.touchDistance(o,u),n.box=W.touchBBox(o),n.scale=n.distance/t.gesture.startDistance,n.angle=W.touchAngle(o,u),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,i.default.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}Object.defineProperty(he,"__esModule",{value:!0}),he.default=void 0;var me={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;n.prototype.gesturable=function(e){return i.default.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):i.default.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t.map.gesture=me,t.methodDict.gesture="gesturable",r.actions.gesture=me.defaults},listeners:{"interactions:action-start":ve,"interactions:action-move":ve,"interactions:action-end":ve,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(e){if(!(e.interaction.pointers.length<2)){var t=e.interactable.options.gesture;if(t&&t.enabled)return e.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},ye=me;he.default=ye;var ge={};function be(e,t,n,r,o,a,s){if(!t)return!1;if(!0===t){var u=i.default.number(a.width)?a.width:a.right-a.left,l=i.default.number(a.height)?a.height:a.bottom-a.top;if(s=Math.min(s,Math.abs(("left"===e||"right"===e?u:l)/2)),u<0&&("left"===e?e="right":"right"===e&&(e="left")),l<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e){var c=u>=0?a.left:a.right;return n.x<c+s}if("top"===e){var f=l>=0?a.top:a.bottom;return n.y<f+s}if("right"===e)return n.x>(u>=0?a.right:a.left)-s;if("bottom"===e)return n.y>(l>=0?a.bottom:a.top)-s}return!!i.default.element(r)&&(i.default.element(t)?t===r:_.matchesUpTo(r,t,o))}function Oe(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var r=t;n.interactable.options.resize.square?("y"===n.resizeAxes?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,"x"===n.resizeAxes?r.delta.y=0:"y"===n.resizeAxes&&(r.delta.x=0))}}Object.defineProperty(ge,"__esModule",{value:!0}),ge.default=void 0;var we={id:"actions/resize",before:["actions/drag"],install:function(e){var t=e.actions,n=e.browser,r=e.Interactable,o=e.defaults;we.cursors=function(e){return e.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),we.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(t){return function(e,t,n){return i.default.object(t)?(e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),i.default.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:null===t.axis&&(e.options.resize.axis=n.defaults.actions.resize.axis),i.default.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:i.default.bool(t.square)&&(e.options.resize.square=t.square),e):i.default.bool(t)?(e.options.resize.enabled=t,e):e.options.resize}(this,t,e)},t.map.resize=we,t.methodDict.resize="resizable",o.actions.resize=we.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes="xy"},"interactions:action-start":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t,o=n.rect;n._rects={start:(0,M.default)({},o),corrected:(0,M.default)({},o),previous:(0,M.default)({},o),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}}(e),Oe(e)},"interactions:action-move":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t,o=n.interactable.options.resize.invert,i="reposition"===o||"negate"===o,a=n.rect,s=n._rects,u=s.start,l=s.corrected,c=s.delta,f=s.previous;if((0,M.default)(f,l),i){if((0,M.default)(l,a),"reposition"===o){if(l.top>l.bottom){var d=l.top;l.top=l.bottom,l.bottom=d}if(l.left>l.right){var p=l.left;l.left=l.right,l.right=p}}}else l.top=Math.min(a.top,u.bottom),l.bottom=Math.max(a.bottom,u.top),l.left=Math.min(a.left,u.right),l.right=Math.max(a.right,u.left);for(var h in l.width=l.right-l.left,l.height=l.bottom-l.top,l)c[h]=l[h]-f[h];r.edges=n.prepared.edges,r.rect=l,r.deltaRect=c}}(e),Oe(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(e){var t=e.interaction,n=e.interactable,r=e.element,o=e.rect,a=e.buttons;if(o){var s=(0,M.default)({},t.coords.cur.page),u=n.options.resize;if(u&&u.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(a&u.mouseButtons))){if(i.default.object(u.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=be(c,u.edges[c],s,t._latestPointer.eventTarget,r,o,u.margin||we.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(e.action={name:"resize",edges:l})}else{var f="y"!==u.axis&&s.x>o.right-we.defaultMargin,d="x"!==u.axis&&s.y>o.bottom-we.defaultMargin;(f||d)&&(e.action={name:"resize",axes:(f?"x":"")+(d?"y":"")})}return!e.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,r=e.name,o=we.cursors,i=null;if(n)i=o[r+n];else if(t){for(var a="",s=["top","bottom","left","right"],u=0;u<s.length;u++){var l=s[u];t[l]&&(a+=l)}i=o[a]}return i},defaultMargin:null},_e=we;ge.default=_e;var Se={};Object.defineProperty(Se,"__esModule",{value:!0}),Se.default=void 0;var Te={id:"actions",install:function(e){e.usePlugin(he.default),e.usePlugin(ge.default),e.usePlugin(c.default),e.usePlugin(ie.default)}};Se.default=Te;var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=void 0;var je,xe,Ee=0,Me={request:function(e){return je(e)},cancel:function(e){return xe(e)},init:function(e){if(je=e.requestAnimationFrame,xe=e.cancelAnimationFrame,!je)for(var t=["ms","moz","webkit","o"],n=0;n<t.length;n++){var r=t[n];je=e["".concat(r,"RequestAnimationFrame")],xe=e["".concat(r,"CancelAnimationFrame")]||e["".concat(r,"CancelRequestAnimationFrame")]}je=je&&je.bind(e),xe=xe&&xe.bind(e),je||(je=function(t){var n=Date.now(),r=Math.max(0,16-(n-Ee)),o=e.setTimeout((function(){t(n+r)}),r);return Ee=n+r,o},xe=function(e){return clearTimeout(e)})}};Pe.default=Me;var ke={};Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=void 0,ke.getContainer=Ce,ke.getScroll=Ie,ke.getScrollSize=function(e){return i.default.window(e)&&(e=window.document.body),{x:e.scrollWidth,y:e.scrollHeight}},ke.getScrollSizeDelta=function(e,t){var n=e.interaction,r=e.element,o=n&&n.interactable.options[n.prepared.name].autoScroll;if(!o||!o.enabled)return t(),{x:0,y:0};var i=Ce(o.container,n.interactable,r),a=Ie(i);t();var s=Ie(i);return{x:s.x-a.x,y:s.y-a.y}};var Re={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){Re.isScrolling=!0,Pe.default.cancel(Re.i),e.autoScroll=Re,Re.interaction=e,Re.prevTime=Re.now(),Re.i=Pe.default.request(Re.scroll)},stop:function(){Re.isScrolling=!1,Re.interaction&&(Re.interaction.autoScroll=null),Pe.default.cancel(Re.i)},scroll:function(){var e=Re.interaction,t=e.interactable,n=e.element,r=e.prepared.name,o=t.options[r].autoScroll,a=Ce(o.container,t,n),s=Re.now(),u=(s-Re.prevTime)/1e3,l=o.speed*u;if(l>=1){var c={x:Re.x*l,y:Re.y*l};if(c.x||c.y){var f=Ie(a);i.default.window(a)?a.scrollBy(c.x,c.y):a&&(a.scrollLeft+=c.x,a.scrollTop+=c.y);var d=Ie(a),p={x:d.x-f.x,y:d.y-f.y};(p.x||p.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:p,interaction:e,container:a})}Re.prevTime=s}Re.isScrolling&&(Pe.default.cancel(Re.i),Re.i=Pe.default.request(Re.scroll))},check:function(e,t){var n;return null==(n=e.options[t].autoScroll)?void 0:n.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&Re.check(t.interactable,t.prepared.name))if(t.simulation)Re.x=Re.y=0;else{var r,o,a,s,u=t.interactable,l=t.element,c=t.prepared.name,f=u.options[c].autoScroll,d=Ce(f.container,u,l);if(i.default.window(d))s=n.clientX<Re.margin,r=n.clientY<Re.margin,o=n.clientX>d.innerWidth-Re.margin,a=n.clientY>d.innerHeight-Re.margin;else{var p=_.getElementClientRect(d);s=n.clientX<p.left+Re.margin,r=n.clientY<p.top+Re.margin,o=n.clientX>p.right-Re.margin,a=n.clientY>p.bottom-Re.margin}Re.x=o?1:s?-1:0,Re.y=a?1:r?-1:0,Re.isScrolling||(Re.margin=f.margin,Re.speed=f.speed,Re.start(t))}}};function Ce(e,n,r){return(i.default.string(e)?(0,k.getStringOptionResult)(e,n,r):e)||(0,t.getWindow)(r)}function Ie(e){return i.default.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var De={id:"auto-scroll",install:function(e){var t=e.defaults,n=e.actions;e.autoScroll=Re,Re.now=function(){return e.now()},n.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=Re.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,Re.stop(),Re.interaction&&(Re.interaction=null)},"interactions:stop":Re.stop,"interactions:action-move":function(e){return Re.onInteractionMove(e)}}};ke.default=De;var ze={};Object.defineProperty(ze,"__esModule",{value:!0}),ze.copyAction=function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},ze.sign=void 0,ze.warnOnce=function(e,n){var r=!1;return function(){return r||(t.window.console.warn(n),r=!0),e.apply(this,arguments)}},ze.sign=function(e){return e>=0?1:-1};var Ae={};function Le(e){return i.default.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function We(e){return i.default.func(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=void 0;var He={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable;t.prototype.getAction=function(t,n,r,o){var i=function(e,t,n,r,o){var i=e.getRect(r),a={action:null,interactable:e,interaction:n,element:r,rect:i,buttons:t.buttons||{0:1,1:4,3:8,4:16}[t.button]};return o.fire("auto-start:check",a),a.action}(this,n,r,o,e);return this.options.actionChecker?this.options.actionChecker(t,n,i,this,o,r):i},t.prototype.ignoreFrom=(0,ze.warnOnce)((function(e){return this._backCompatOption("ignoreFrom",e)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,ze.warnOnce)((function(e){return this._backCompatOption("allowFrom",e)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=We,t.prototype.styleCursor=Le}};Ae.default=He;var Fe={};function qe(e,t,n,r,o){return t.testIgnoreAllow(t.options[e.name],n,r)&&t.options[e.name].enabled&&Ge(t,n,e,o)?e:null}function Ne(e,t,n,r,o,i,a){for(var s=0,u=r.length;s<u;s++){var l=r[s],c=o[s],f=l.getAction(t,n,e,c);if(f){var d=qe(f,l,c,i,a);if(d)return{action:d,interactable:l,element:c}}}return{action:null,interactable:null,element:null}}function Ye(e,t,n,r,o){var a=[],s=[],u=r;function l(e){a.push(e),s.push(u)}for(;i.default.element(u);){a=[],s=[],o.interactables.forEachMatch(u,l);var c=Ne(e,t,n,a,s,r,o);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;u=_.parentNode(u)}return{action:null,interactable:null,element:null}}function Ue(e,t,n){var r=t.action,o=t.interactable,i=t.element;r=r||{name:null},e.interactable=o,e.element=i,(0,ze.copyAction)(e.prepared,r),e.rect=o&&r.name?o.getRect(i):null,Be(e,n),n.fire("autoStart:prepared",{interaction:e})}function Ge(e,t,n,r){var o=e.options,i=o[n.name].max,a=o[n.name].maxPerElement,s=r.autoStart.maxInteractions,u=0,l=0,c=0;if(!(i&&a&&s))return!1;for(var f=0;f<r.interactions.list.length;f++){var d=r.interactions.list[f],p=d.prepared.name;if(d.interacting()){if(++u>=s)return!1;if(d.interactable===e){if((l+=p===n.name?1:0)>=i)return!1;if(d.element===t&&(c++,p===n.name&&c>=a))return!1}}}return s>0}function Ke(e,t){return i.default.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function Xe(e,t,n){var r=n.autoStart.cursorElement;r&&r!==e&&(r.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function Be(e,t){var n=e.interactable,r=e.element,o=e.prepared;if("mouse"===e.pointerType&&n&&n.options.styleCursor){var a="";if(o.name){var s=n.options[o.name].cursorChecker;a=i.default.func(s)?s(o,n,r,e._interacting):t.actions.map[o.name].getCursor(o)}Xe(e.element,a||"",t)}else t.autoStart.cursorElement&&Xe(t.autoStart.cursorElement,"",t)}Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=void 0;var Ve={id:"auto-start/base",before:["actions"],install:function(e){var t=e.interactStatic,n=e.defaults;e.usePlugin(Ae.default),n.base.actionChecker=null,n.base.styleCursor=!0,(0,M.default)(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(t){return Ke(t,e)},e.autoStart={maxInteractions:1/0,withinInteractionLimit:Ge,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;n.interacting()||Ue(n,Ye(n,r,o,i,t),t)},"interactions:move":function(e,t){!function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||Ue(n,Ye(n,r,o,i,t),t)}(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire("autoStart:before-start",e);var r=n.interactable,o=n.prepared.name;o&&r&&(r.options[o].manualStart||!Ge(r,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,r,n.element),Be(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,r=n.interactable;r&&r.options.styleCursor&&Xe(n.element,"",t)}},maxInteractions:Ke,withinInteractionLimit:Ge,validateAction:qe};Fe.default=Ve;var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=void 0;var $e={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(e,t){var n=e.interaction,r=e.eventTarget,o=e.dx,a=e.dy;if("drag"===n.prepared.name){var s=Math.abs(o),u=Math.abs(a),l=n.interactable.options.drag,c=l.startAxis,f=s>u?"x":s<u?"y":"xy";if(n.prepared.axis="start"===l.lockAxis?f[0]:l.lockAxis,"xy"!==f&&"xy"!==c&&c!==f){n.prepared.name=null;for(var d=r,p=function(e){if(e!==n.interactable){var o=n.interactable.options.drag;if(!o.manualStart&&e.testIgnoreAllow(o,d,r)){var i=e.getAction(n.downPointer,n.downEvent,n,d);if(i&&"drag"===i.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(f,e)&&Fe.default.validateAction(i,e,d,r,t))return e}}};i.default.element(d);){var h=t.interactables.forEachMatch(d,p);if(h){n.prepared.name="drag",n.interactable=h,n.element=d;break}d=(0,_.parentNode)(d)}}}}}};Ze.default=$e;var Je={};function Qe(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}Object.defineProperty(Je,"__esModule",{value:!0}),Je.default=void 0;var et={id:"auto-start/hold",install:function(e){var t=e.defaults;e.usePlugin(Fe.default),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(e){e.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(e){var t=e.interaction,n=Qe(t);n>0&&(t.autoStartHoldTimer=setTimeout((function(){t.start(t.prepared,t.interactable,t.element)}),n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!n&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(e){var t=e.interaction;Qe(t)>0&&(t.prepared.name=null)}},getHoldDuration:Qe};Je.default=et;var tt={};Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt={id:"auto-start",install:function(e){e.usePlugin(Fe.default),e.usePlugin(Je.default),e.usePlugin(Ze.default)}};tt.default=nt;var rt={};function ot(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):i.default.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault}function it(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}function at(e){var n=e.Interactable;n.prototype.preventDefault=ot,n.prototype.checkAndPreventDefault=function(n){return function(e,n,r){var o=e.options.preventDefault;if("never"!==o)if("always"!==o){if(n.events.supportsPassive&&/^touch(start|move)$/.test(r.type)){var a=(0,t.getWindow)(r.target).document,s=n.getDocOptions(a);if(!s||!s.events||!1!==s.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(r.type)||i.default.element(r.target)&&(0,_.matchesSelector)(r.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||r.preventDefault()}else r.preventDefault()}(this,e,n)},e.interactions.docEvents.push({type:"dragstart",listener:function(t){for(var n=0;n<e.interactions.list.length;n++){var r=e.interactions.list[n];if(r.element&&(r.element===t.target||(0,_.nodeContains)(r.element,t.target)))return void r.interactable.checkAndPreventDefault(t)}}})}Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0,rt.install=at;var st={id:"core/interactablePreventDefault",install:at,listeners:["down","move","up","cancel"].reduce((function(e,t){return e["interactions:".concat(t)]=it,e}),{})};rt.default=st;var ut={};Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=void 0,ut.default={};var lt,ct={};Object.defineProperty(ct,"__esModule",{value:!0}),ct.default=void 0,function(e){e.touchAction="touchAction",e.boxSizing="boxSizing",e.noListeners="noListeners"}(lt||(lt={})),lt.touchAction,lt.boxSizing,lt.noListeners,ct.default={id:"dev-tools",install:function(){}};var ft={};Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=function e(t){var n={};for(var r in t){var o=t[r];i.default.plainObject(o)?n[r]=e(o):i.default.array(o)?n[r]=B.from(o):n[r]=o}return n};var dt={};function pt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ht(e,t):void 0}}(e,t)||function(){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 ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=void 0,dt.getRectOffset=gt;var mt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vt(this,"states",[]),vt(this,"startOffset",{left:0,right:0,top:0,bottom:0}),vt(this,"startDelta",void 0),vt(this,"result",void 0),vt(this,"endResult",void 0),vt(this,"edges",void 0),vt(this,"interaction",void 0),this.interaction=t,this.result=yt()}var t,n;return t=e,(n=[{key:"start",value:function(e,t){var n=e.phase,r=this.interaction,o=function(e){var t=e.interactable.options[e.prepared.name],n=t.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(e){var n=t[e];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(e){return!!e}))}(r);this.prepareStates(o),this.edges=(0,M.default)({},r.edges),this.startOffset=gt(r.rect,t),this.startDelta={x:0,y:0};var i=this.fillArg({phase:n,pageCoords:t,preEnd:!1});return this.result=yt(),this.startAll(i),this.result=this.setAll(i)}},{key:"fillArg",value:function(e){var t=this.interaction;return e.interaction=t,e.interactable=t.interactable,e.element=t.element,e.rect=e.rect||t.rect,e.edges=this.edges,e.startOffset=this.startOffset,e}},{key:"startAll",value:function(e){for(var t=0;t<this.states.length;t++){var n=this.states[t];n.methods.start&&(e.state=n,n.methods.start(e))}}},{key:"setAll",value:function(e){var t=e.phase,n=e.preEnd,r=e.skipModifiers,o=e.rect;e.coords=(0,M.default)({},e.pageCoords),e.rect=(0,M.default)({},o);for(var i=r?this.states.slice(r):this.states,a=yt(e.coords,e.rect),s=0;s<i.length;s++){var u,l=i[s],c=l.options,f=(0,M.default)({},e.coords),d=null;null!=(u=l.methods)&&u.set&&this.shouldDo(c,n,t)&&(e.state=l,d=l.methods.set(e),k.addEdges(this.interaction.edges,e.rect,{x:e.coords.x-f.x,y:e.coords.y-f.y})),a.eventProps.push(d)}a.delta.x=e.coords.x-e.pageCoords.x,a.delta.y=e.coords.y-e.pageCoords.y,a.rectDelta.left=e.rect.left-o.left,a.rectDelta.right=e.rect.right-o.right,a.rectDelta.top=e.rect.top-o.top,a.rectDelta.bottom=e.rect.bottom-o.bottom;var p=this.result.coords,h=this.result.rect;if(p&&h){var v=a.rect.left!==h.left||a.rect.right!==h.right||a.rect.top!==h.top||a.rect.bottom!==h.bottom;a.changed=v||p.x!==a.coords.x||p.y!==a.coords.y}return a}},{key:"applyToInteraction",value:function(e){var t=this.interaction,n=e.phase,r=t.coords.cur,o=t.coords.start,i=this.result,a=this.startDelta,s=i.delta;"start"===n&&(0,M.default)(this.startDelta,i.delta);for(var u=0;u<[[o,a],[r,s]].length;u++){var l=pt([[o,a],[r,s]][u],2),c=l[0],f=l[1];c.page.x+=f.x,c.page.y+=f.y,c.client.x+=f.x,c.client.y+=f.y}var d=this.result.rectDelta,p=e.rect||t.rect;p.left+=d.left,p.right+=d.right,p.top+=d.top,p.bottom+=d.bottom,p.width=p.right-p.left,p.height=p.bottom-p.top}},{key:"setAndApply",value:function(e){var t=this.interaction,n=e.phase,r=e.preEnd,o=e.skipModifiers,i=this.setAll(this.fillArg({preEnd:r,phase:n,pageCoords:e.modifiedCoords||t.coords.cur.page}));if(this.result=i,!i.changed&&(!o||o<this.states.length)&&t.interacting())return!1;if(e.modifiedCoords){var a=t.coords.cur.page,s={x:e.modifiedCoords.x-a.x,y:e.modifiedCoords.y-a.y};i.coords.x+=s.x,i.coords.y+=s.y,i.delta.x+=s.x,i.delta.y+=s.y}this.applyToInteraction(e)}},{key:"beforeEnd",value:function(e){var t=e.interaction,n=e.event,r=this.states;if(r&&r.length){for(var o=!1,i=0;i<r.length;i++){var a=r[i];e.state=a;var s=a.options,u=a.methods,l=u.beforeEnd&&u.beforeEnd(e);if(l)return this.endResult=l,!1;o=o||!o&&this.shouldDo(s,!0,e.phase,!0)}o&&t.move({event:n,preEnd:!0})}}},{key:"stop",value:function(e){var t=e.interaction;if(this.states&&this.states.length){var n=(0,M.default)({states:this.states,interactable:t.interactable,element:t.element,rect:null},e);this.fillArg(n);for(var r=0;r<this.states.length;r++){var o=this.states[r];n.state=o,o.methods.stop&&o.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(e){this.states=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.options,o=n.methods,i=n.name;this.states.push({options:r,methods:o,index:t,name:i})}return this.states}},{key:"restoreInteractionCoords",value:function(e){var t=e.interaction,n=t.coords,r=t.rect,o=t.modification;if(o.result){for(var i=o.startDelta,a=o.result,s=a.delta,u=a.rectDelta,l=[[n.start,i],[n.cur,s]],c=0;c<l.length;c++){var f=pt(l[c],2),d=f[0],p=f[1];d.page.x-=p.x,d.page.y-=p.y,d.client.x-=p.x,d.client.y-=p.y}r.left-=u.left,r.right-=u.right,r.top-=u.top,r.bottom-=u.bottom}}},{key:"shouldDo",value:function(e,t,n,r){return!(!e||!1===e.enabled||r&&!e.endOnly||e.endOnly&&!t||"start"===n&&!e.setStart)}},{key:"copyFrom",value:function(e){this.startOffset=e.startOffset,this.startDelta=e.startDelta,this.edges=e.edges,this.states=e.states.map((function(e){return(0,ft.default)(e)})),this.result=yt((0,M.default)({},e.result.coords),(0,M.default)({},e.result.rect))}},{key:"destroy",value:function(){for(var e in this)this[e]=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function yt(e,t){return{rect:t,coords:e,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function gt(e,t){return e?{left:t.x-e.left,top:t.y-e.top,right:e.right-t.x,bottom:e.bottom-t.y}:{left:0,top:0,right:0,bottom:0}}dt.default=mt;var bt={};function Ot(e){var t=e.iEvent,n=e.interaction.modification.result;n&&(t.modifiers=n.eventProps)}Object.defineProperty(bt,"__esModule",{value:!0}),bt.addEventModifiers=Ot,bt.default=void 0,bt.makeModifier=function(e,t){var n=e.defaults,r={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop},o=function(e){var o=e||{};for(var i in o.enabled=!1!==o.enabled,n)i in o||(o[i]=n[i]);var a={options:o,methods:r,name:t,enable:function(){return o.enabled=!0,a},disable:function(){return o.enabled=!1,a}};return a};return t&&"string"==typeof t&&(o._defaults=n,o._methods=r),o};var wt={id:"modifiers/base",before:["actions"],install:function(e){e.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(e){var t=e.interaction;t.modification=new dt.default(t)},"interactions:before-action-start":function(e){var t=e.interaction.modification;t.start(e,e.interaction.coords.start.page),e.interaction.edges=t.edges,t.applyToInteraction(e)},"interactions:before-action-move":function(e){return e.interaction.modification.setAndApply(e)},"interactions:before-action-end":function(e){return e.interaction.modification.beforeEnd(e)},"interactions:action-start":Ot,"interactions:action-move":Ot,"interactions:action-end":Ot,"interactions:after-action-start":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-move":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:stop":function(e){return e.interaction.modification.stop(e)}}};bt.default=wt;var _t={};Object.defineProperty(_t,"__esModule",{value:!0}),_t.defaults=void 0,_t.defaults={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};var St={};function Tt(e){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pt(e,t){return(Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function jt(e,t){if(t&&("object"===Tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xt(e)}function xt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Et(e){return(Et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(St,"__esModule",{value:!0}),St.InteractEvent=void 0;var kt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Et(r);if(o){var n=Et(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return jt(this,e)});function a(e,t,n,r,o,s,u){var l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Mt(xt(l=i.call(this,e)),"relatedTarget",null),Mt(xt(l),"screenX",void 0),Mt(xt(l),"screenY",void 0),Mt(xt(l),"button",void 0),Mt(xt(l),"buttons",void 0),Mt(xt(l),"ctrlKey",void 0),Mt(xt(l),"shiftKey",void 0),Mt(xt(l),"altKey",void 0),Mt(xt(l),"metaKey",void 0),Mt(xt(l),"page",void 0),Mt(xt(l),"client",void 0),Mt(xt(l),"delta",void 0),Mt(xt(l),"rect",void 0),Mt(xt(l),"x0",void 0),Mt(xt(l),"y0",void 0),Mt(xt(l),"t0",void 0),Mt(xt(l),"dt",void 0),Mt(xt(l),"duration",void 0),Mt(xt(l),"clientX0",void 0),Mt(xt(l),"clientY0",void 0),Mt(xt(l),"velocity",void 0),Mt(xt(l),"speed",void 0),Mt(xt(l),"swipe",void 0),Mt(xt(l),"axes",void 0),Mt(xt(l),"preEnd",void 0),o=o||e.element;var c=e.interactable,f=(c&&c.options||_t.defaults).deltaSource,d=(0,I.default)(c,o,n),p="start"===r,h="end"===r,v=p?xt(l):e.prevEvent,m=p?e.coords.start:h?{page:v.page,client:v.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;return l.page=(0,M.default)({},m.page),l.client=(0,M.default)({},m.client),l.rect=(0,M.default)({},e.rect),l.timeStamp=m.timeStamp,h||(l.page.x-=d.x,l.page.y-=d.y,l.client.x-=d.x,l.client.y-=d.y),l.ctrlKey=t.ctrlKey,l.altKey=t.altKey,l.shiftKey=t.shiftKey,l.metaKey=t.metaKey,l.button=t.button,l.buttons=t.buttons,l.target=o,l.currentTarget=o,l.preEnd=s,l.type=u||n+(r||""),l.interactable=c,l.t0=p?e.pointers[e.pointers.length-1].downTime:v.t0,l.x0=e.coords.start.page.x-d.x,l.y0=e.coords.start.page.y-d.y,l.clientX0=e.coords.start.client.x-d.x,l.clientY0=e.coords.start.client.y-d.y,l.delta=p||h?{x:0,y:0}:{x:l[f].x-v[f].x,y:l[f].y-v[f].y},l.dt=e.coords.delta.timeStamp,l.duration=l.timeStamp-l.t0,l.velocity=(0,M.default)({},e.coords.velocity[f]),l.speed=(0,A.default)(l.velocity.x,l.velocity.y),l.swipe=h||"inertiastart"===r?l.getSwipe():null,l}return t=a,(n=[{key:"getSwipe",value:function(){var e=this._interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,r=202.5<=t&&t<337.5;return{up:r,down:!r&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(G.BaseEvent);St.InteractEvent=kt,Object.defineProperties(kt.prototype,{pageX:{get:function(){return this.page.x},set:function(e){this.page.x=e}},pageY:{get:function(){return this.page.y},set:function(e){this.page.y=e}},clientX:{get:function(){return this.client.x},set:function(e){this.client.x=e}},clientY:{get:function(){return this.client.y},set:function(e){this.client.y=e}},dx:{get:function(){return this.delta.x},set:function(e){this.delta.x=e}},dy:{get:function(){return this.delta.y},set:function(e){this.delta.y=e}},velocityX:{get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},velocityY:{get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}});var Rt={};function Ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function It(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.PointerInfo=void 0;var Dt=function(e,t,n){return t&&Ct(e.prototype,t),n&&Ct(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),It(this,"id",void 0),It(this,"pointer",void 0),It(this,"event",void 0),It(this,"downTime",void 0),It(this,"downTarget",void 0),this.id=t,this.pointer=n,this.event=r,this.downTime=o,this.downTarget=i}));Rt.PointerInfo=Dt;var zt,At,Lt={};function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.Interaction=void 0,Object.defineProperty(Lt,"PointerInfo",{enumerable:!0,get:function(){return Rt.PointerInfo}}),Lt.default=Lt._ProxyValues=Lt._ProxyMethods=void 0,Lt._ProxyValues=zt,function(e){e.interactable="",e.element="",e.prepared="",e.pointerIsDown="",e.pointerWasMoved="",e._proxy=""}(zt||(Lt._ProxyValues=zt={})),Lt._ProxyMethods=At,function(e){e.start="",e.move="",e.end="",e.stop="",e.interacting=""}(At||(Lt._ProxyMethods=At={}));var Ht=0,Ft=function(){function e(t){var n=this,r=t.pointerType,o=t.scopeFire;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Wt(this,"interactable",null),Wt(this,"element",null),Wt(this,"rect",null),Wt(this,"_rects",void 0),Wt(this,"edges",null),Wt(this,"_scopeFire",void 0),Wt(this,"prepared",{name:null,axis:null,edges:null}),Wt(this,"pointerType",void 0),Wt(this,"pointers",[]),Wt(this,"downEvent",null),Wt(this,"downPointer",{}),Wt(this,"_latestPointer",{pointer:null,event:null,eventTarget:null}),Wt(this,"prevEvent",null),Wt(this,"pointerIsDown",!1),Wt(this,"pointerWasMoved",!1),Wt(this,"_interacting",!1),Wt(this,"_ending",!1),Wt(this,"_stopped",!0),Wt(this,"_proxy",null),Wt(this,"simulation",null),Wt(this,"doMove",(0,ze.warnOnce)((function(e){this.move(e)}),"The interaction.doMove() method has been renamed to interaction.move()")),Wt(this,"coords",{start:W.newCoords(),prev:W.newCoords(),cur:W.newCoords(),delta:W.newCoords(),velocity:W.newCoords()}),Wt(this,"_id",Ht++),this._scopeFire=o,this.pointerType=r;var i=this;this._proxy={};var a=function(e){Object.defineProperty(n._proxy,e,{get:function(){return i[e]}})};for(var s in zt)a(s);var u=function(e){Object.defineProperty(n._proxy,e,{value:function(){return i[e].apply(i,arguments)}})};for(var l in At)u(l);this._scopeFire("interactions:new",{interaction:this})}var t,n;return t=e,(n=[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,t,n){var r=this.updatePointer(e,t,n,!0),o=this.pointers[r];this._scopeFire("interactions:down",{pointer:e,event:t,eventTarget:n,pointerIndex:r,pointerInfo:o,type:"down",interaction:this})}},{key:"start",value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===e.name?2:1)||!t.options[e.name].enabled)&&((0,ze.copyAction)(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges?(0,M.default)({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,t,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,t,n,!1);var r,o,i=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(r=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=(0,A.default)(r,o)>this.pointerMoveTolerance);var a=this.getPointerIndex(e),s={pointer:e,pointerIndex:a,pointerInfo:this.pointers[a],event:t,type:"move",eventTarget:n,dx:r,dy:o,duplicate:i,interaction:this};i||W.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",s),i||this.simulation||(this.interacting()&&(s.type=null,this.move(s)),this.pointerWasMoved&&W.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||W.setZeroCoords(this.coords.delta),(e=(0,M.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,t,n,r){var o=this.getPointerIndex(e);-1===o&&(o=this.updatePointer(e,t,n,!1));var i=/cancel$/i.test(t.type)?"cancel":"up";this._scopeFire("interactions:".concat(i),{pointer:e,pointerIndex:o,pointerInfo:this.pointers[o],event:t,eventTarget:n,type:i,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.removePointer(e,t)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var t;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,!0===t&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var t=W.getPointerId(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:B.findIndex(this.pointers,(function(e){return e.id===t}))}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,t,n,r){var o=W.getPointerId(e),i=this.getPointerIndex(e),a=this.pointers[i];return r=!1!==r&&(r||/(down|start)$/i.test(t.type)),a?a.pointer=e:(a=new Rt.PointerInfo(o,e,t,null,null),i=this.pointers.length,this.pointers.push(a)),W.setCoords(this.coords.cur,this.pointers.map((function(e){return e.pointer})),this._now()),W.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),r&&(this.pointerIsDown=!0,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,W.pointerExtend(this.downPointer,e),this.interacting()||(W.copyCoords(this.coords.start,this.coords.cur),W.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=t,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire("interactions:update-pointer",{pointer:e,event:t,eventTarget:n,down:r,pointerInfo:a,pointerIndex:i,interaction:this}),i}},{key:"removePointer",value:function(e,t){var n=this.getPointerIndex(e);if(-1!==n){var r=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,t,n,r){return new St.InteractEvent(this,e,this.prepared.name,t,this.element,n,r)}},{key:"_fireEvent",value:function(e){var t;null==(t=this.interactable)||t.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var t=e.event,n=e.phase,r=e.preEnd,o=e.type,i=this.rect;if(i&&"move"===n&&(k.addEdges(this.edges,i,this.coords.delta[this.interactable.options.deltaSource]),i.width=i.right-i.left,i.height=i.bottom-i.top),!1===this._scopeFire("interactions:before-action-".concat(n),e))return!1;var a=e.iEvent=this._createPreparedEvent(t,n,r,o);return this._scopeFire("interactions:action-".concat(n),e),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-".concat(n),e),!0}},{key:"_now",value:function(){return Date.now()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Lt.Interaction=Ft;var qt=Ft;Lt.default=qt;var Nt={};function Yt(e){e.pointerIsDown&&(Xt(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}function Ut(e){Gt(e.interaction)}function Gt(e){if(!function(e){return!(!e.offset.pending.x&&!e.offset.pending.y)}(e))return!1;var t=e.offset.pending;return Xt(e.coords.cur,t),Xt(e.coords.delta,t),k.addEdges(e.edges,e.rect,t),t.x=0,t.y=0,!0}function Kt(e){var t=e.x,n=e.y;this.offset.pending.x+=t,this.offset.pending.y+=n,this.offset.total.x+=t,this.offset.total.y+=n}function Xt(e,t){var n=e.page,r=e.client,o=t.x,i=t.y;n.x+=o,n.y+=i,r.x+=o,r.y+=i}Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.addTotal=Yt,Nt.applyPending=Gt,Nt.default=void 0,Lt._ProxyMethods.offsetBy="";var Bt={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(e){e.Interaction.prototype.offsetBy=Kt},listeners:{"interactions:new":function(e){e.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(e){return Yt(e.interaction)},"interactions:before-action-start":Ut,"interactions:before-action-move":Ut,"interactions:before-action-end":function(e){var t=e.interaction;if(Gt(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(e){var t=e.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}};Nt.default=Bt;var Vt={};function Zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.default=Vt.InertiaState=void 0;var $t=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Zt(this,"active",!1),Zt(this,"isModified",!1),Zt(this,"smoothEnd",!1),Zt(this,"allowResume",!1),Zt(this,"modification",void 0),Zt(this,"modifierCount",0),Zt(this,"modifierArg",void 0),Zt(this,"startCoords",void 0),Zt(this,"t0",0),Zt(this,"v0",0),Zt(this,"te",0),Zt(this,"targetOffset",void 0),Zt(this,"modifiedOffset",void 0),Zt(this,"currentOffset",void 0),Zt(this,"lambda_v0",0),Zt(this,"one_ve_v0",0),Zt(this,"timeout",void 0),Zt(this,"interaction",void 0),this.interaction=t}var t,n;return t=e,(n=[{key:"start",value:function(e){var t=this.interaction,n=Jt(t);if(!n||!n.enabled)return!1;var r=t.coords.velocity.client,o=(0,A.default)(r.x,r.y),i=this.modification||(this.modification=new dt.default(t));if(i.copyFrom(t.modification),this.t0=t._now(),this.allowResume=n.allowResume,this.v0=o,this.currentOffset={x:0,y:0},this.startCoords=t.coords.cur.page,this.modifierArg=i.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-t.coords.cur.timeStamp<50&&o>n.minSpeed&&o>n.endSpeed)this.startInertia();else{if(i.result=i.setAll(this.modifierArg),!i.result.changed)return!1;this.startSmoothEnd()}return t.modification.result.rect=null,t.offsetBy(this.targetOffset),t._doPhase({interaction:t,event:e,phase:"inertiastart"}),t.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),t.modification.result.rect=null,this.active=!0,t.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,t=this.interaction.coords.velocity.client,n=Jt(this.interaction),r=n.resistance,o=-Math.log(n.endSpeed/this.v0)/r;this.targetOffset={x:(t.x-o)/r,y:(t.y-o)/r},this.te=o,this.lambda_v0=r/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var i=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},i.result=i.setAll(a),i.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+i.result.delta.x,y:this.targetOffset.y+i.result.delta.y}),this.onNextFrame((function(){return e.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return e.smoothEndTick()}))}},{key:"onNextFrame",value:function(e){var t=this;this.timeout=Pe.default.request((function(){t.active&&e()}))}},{key:"inertiaTick",value:function(){var e,t,n,r,o,i=this,a=this.interaction,s=Jt(a).resistance,u=(a._now()-this.t0)/1e3;if(u<this.te){var l,c=1-(Math.exp(-s*u)-this.lambda_v0)/this.one_ve_v0;this.isModified?(e=this.targetOffset.x,t=this.targetOffset.y,n=this.modifiedOffset.x,r=this.modifiedOffset.y,l={x:Qt(o=c,0,e,n),y:Qt(o,0,t,r)}):l={x:this.targetOffset.x*c,y:this.targetOffset.y*c};var f={x:l.x-this.currentOffset.x,y:l.y-this.currentOffset.y};this.currentOffset.x+=f.x,this.currentOffset.y+=f.y,a.offsetBy(f),a.move(),this.onNextFrame((function(){return i.inertiaTick()}))}else a.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var e=this,t=this.interaction,n=t._now()-this.t0,r=Jt(t).smoothEndDuration;if(n<r){var o={x:en(n,0,this.targetOffset.x,r),y:en(n,0,this.targetOffset.y,r)},i={x:o.x-this.currentOffset.x,y:o.y-this.currentOffset.y};this.currentOffset.x+=i.x,this.currentOffset.y+=i.y,t.offsetBy(i),t.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return e.smoothEndTick()}))}else t.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(e){var t=e.pointer,n=e.event,r=e.eventTarget,o=this.interaction;o.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),o.updatePointer(t,n,r,!0),o._doPhase({interaction:o,event:n,phase:"resume"}),(0,W.copyCoords)(o.coords.prev,o.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Pe.default.cancel(this.timeout)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jt(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}function Qt(e,t,n,r){var o=1-e;return o*o*t+2*o*e*n+e*e*r}function en(e,t,n,r){return-n*(e/=r)*(e-2)+t}Vt.InertiaState=$t;var tn={id:"inertia",before:["modifiers","actions"],install:function(e){var t=e.defaults;e.usePlugin(Nt.default),e.usePlugin(bt.default),e.actions.phases.inertiastart=!0,e.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(e){var t=e.interaction;t.inertia=new $t(t)},"interactions:before-action-end":function(e){var t=e.interaction,n=e.event;return(!t._interacting||t.simulation||!t.inertia.start(n))&&null},"interactions:down":function(e){var t=e.interaction,n=e.eventTarget,r=t.inertia;if(r.active)for(var o=n;i.default.element(o);){if(o===t.element){r.resume(e);break}o=_.parentNode(o)}},"interactions:stop":function(e){var t=e.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(e){var t=e.interaction.modification;t.stop(e),t.start(e,e.interaction.coords.cur.page),t.applyToInteraction(e)},"interactions:before-action-inertiastart":function(e){return e.interaction.modification.setAndApply(e)},"interactions:action-resume":bt.addEventModifiers,"interactions:action-inertiastart":bt.addEventModifiers,"interactions:after-action-inertiastart":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-resume":function(e){return e.interaction.modification.restoreInteractionCoords(e)}}};Vt.default=tn;var nn={};function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e.immediatePropagationStopped)break;r(e)}}Object.defineProperty(nn,"__esModule",{value:!0}),nn.Eventable=void 0;var an=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rn(this,"options",void 0),rn(this,"types",{}),rn(this,"propagationStopped",!1),rn(this,"immediatePropagationStopped",!1),rn(this,"global",void 0),this.options=(0,M.default)({},t||{})}var t,n;return t=e,(n=[{key:"fire",value:function(e){var t,n=this.global;(t=this.types[e.type])&&on(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&on(e,t)}},{key:"on",value:function(e,t){var n=(0,D.default)(e,t);for(e in n)this.types[e]=B.merge(this.types[e]||[],n[e])}},{key:"off",value:function(e,t){var n=(0,D.default)(e,t);for(e in n){var r=this.types[e];if(r&&r.length)for(var o=0;o<n[e].length;o++){var i=n[e][o],a=r.indexOf(i);-1!==a&&r.splice(a,1)}}}},{key:"getRect",value:function(e){return null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();nn.Eventable=an;var sn={};Object.defineProperty(sn,"__esModule",{value:!0}),sn.default=function(e,t){if(t.phaselessTypes[e])return!0;for(var n in t.map)if(0===e.indexOf(n)&&e.substr(n.length)in t.phases)return!0;return!1};var un={};Object.defineProperty(un,"__esModule",{value:!0}),un.createInteractStatic=function(e){var t=function t(n,r){var o=e.interactables.get(n,r);return o||((o=e.interactables.new(n,r)).events.global=t.globalEvents),o};return t.getPointerAverage=W.pointerAverage,t.getTouchBBox=W.touchBBox,t.getTouchDistance=W.touchDistance,t.getTouchAngle=W.touchAngle,t.getElementRect=_.getElementRect,t.getElementClientRect=_.getElementClientRect,t.matchesSelector=_.matchesSelector,t.closest=_.closest,t.globalEvents={},t.version="1.10.17",t.scope=e,t.use=function(e,t){return this.scope.usePlugin(e,t),this},t.isSet=function(e,t){return!!this.scope.interactables.get(e,t&&t.context)},t.on=(0,ze.warnOnce)((function(e,t,n){if(i.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i.default.array(e)){for(var r=0;r<e.length;r++){var o=e[r];this.on(o,t,n)}return this}if(i.default.object(e)){for(var a in e)this.on(a,e[a],t);return this}return(0,sn.default)(e,this.scope.actions)?this.globalEvents[e]?this.globalEvents[e].push(t):this.globalEvents[e]=[t]:this.scope.events.add(this.scope.document,e,t,{options:n}),this}),"The interact.on() method is being deprecated"),t.off=(0,ze.warnOnce)((function(e,t,n){if(i.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),i.default.array(e)){for(var r=0;r<e.length;r++){var o=e[r];this.off(o,t,n)}return this}if(i.default.object(e)){for(var a in e)this.off(a,e[a],t);return this}var s;return(0,sn.default)(e,this.scope.actions)?e in this.globalEvents&&-1!==(s=this.globalEvents[e].indexOf(t))&&this.globalEvents[e].splice(s,1):this.scope.events.remove(this.scope.document,e,t,n),this}),"The interact.off() method is being deprecated"),t.debug=function(){return this.scope},t.supportsTouch=function(){return b.default.supportsTouch},t.supportsPointerEvent=function(){return b.default.supportsPointerEvent},t.stop=function(){for(var e=0;e<this.scope.interactions.list.length;e++)this.scope.interactions.list[e].stop();return this},t.pointerMoveTolerance=function(e){return i.default.number(e)?(this.scope.interactions.pointerMoveTolerance=e,this):this.scope.interactions.pointerMoveTolerance},t.addDocument=function(e,t){this.scope.addDocument(e,t)},t.removeDocument=function(e){this.scope.removeDocument(e)},t};var ln={};function cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(ln,"__esModule",{value:!0}),ln.Interactable=void 0;var fn=function(){function e(n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cn(this,"options",void 0),cn(this,"_actions",void 0),cn(this,"target",void 0),cn(this,"events",new nn.Eventable),cn(this,"_context",void 0),cn(this,"_win",void 0),cn(this,"_doc",void 0),cn(this,"_scopeEvents",void 0),cn(this,"_rectChecker",void 0),this._actions=r.actions,this.target=n,this._context=r.context||o,this._win=(0,t.getWindow)((0,_.trySelector)(n)?this._context:n),this._doc=this._win.document,this._scopeEvents=i,this.set(r)}var n,r;return n=e,(r=[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,t){return i.default.func(t.onstart)&&this.on("".concat(e,"start"),t.onstart),i.default.func(t.onmove)&&this.on("".concat(e,"move"),t.onmove),i.default.func(t.onend)&&this.on("".concat(e,"end"),t.onend),i.default.func(t.oninertiastart)&&this.on("".concat(e,"inertiastart"),t.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,t,n){(i.default.array(t)||i.default.object(t))&&this.off(e,t),(i.default.array(n)||i.default.object(n))&&this.on(e,n)}},{key:"setPerAction",value:function(e,t){var n=this._defaults;for(var r in t){var o=r,a=this.options[e],s=t[o];"listeners"===o&&this.updatePerActionListeners(e,a.listeners,s),i.default.array(s)?a[o]=B.from(s):i.default.plainObject(s)?(a[o]=(0,M.default)(a[o]||{},(0,ft.default)(s)),i.default.object(n.perAction[o])&&"enabled"in n.perAction[o]&&(a[o].enabled=!1!==s.enabled)):i.default.bool(s)&&i.default.object(n.perAction[o])?a[o].enabled=s:a[o]=s}}},{key:"getRect",value:function(e){return e=e||(i.default.element(this.target)?this.target:null),i.default.string(this.target)&&(e=e||this._context.querySelector(this.target)),(0,_.getElementRect)(e)}},{key:"rectChecker",value:function(e){var t=this;return i.default.func(e)?(this._rectChecker=e,this.getRect=function(e){var n=(0,M.default)({},t._rectChecker(e));return"width"in n||(n.width=n.right-n.left,n.height=n.bottom-n.top),n},this):null===e?(delete this.getRect,delete this._rectChecker,this):this.getRect}},{key:"_backCompatOption",value:function(e,t){if((0,_.trySelector)(t)||i.default.object(t)){for(var n in this.options[e]=t,this._actions.map)this.options[n][e]=t;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||(0,_.nodeContains)(this._context,e)}},{key:"testIgnoreAllow",value:function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)}},{key:"testAllow",value:function(e,t,n){return!e||!!i.default.element(n)&&(i.default.string(e)?(0,_.matchesUpTo)(n,e,t):!!i.default.element(e)&&(0,_.nodeContains)(e,n))}},{key:"testIgnore",value:function(e,t,n){return!(!e||!i.default.element(n))&&(i.default.string(e)?(0,_.matchesUpTo)(n,e,t):!!i.default.element(e)&&(0,_.nodeContains)(e,n))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,t,n,r){i.default.object(t)&&!i.default.array(t)&&(r=n,n=null);var o="on"===e?"add":"remove",a=(0,D.default)(t,n);for(var s in a){"wheel"===s&&(s=b.default.wheelEvent);for(var u=0;u<a[s].length;u++){var l=a[s][u];(0,sn.default)(s,this._actions)?this.events[e](s,l):i.default.string(this.target)?this._scopeEvents["".concat(o,"Delegate")](this.target,this._context,s,l,r):this._scopeEvents[o](this.target,s,l,r)}}return this}},{key:"on",value:function(e,t,n){return this._onOff("on",e,t,n)}},{key:"off",value:function(e,t,n){return this._onOff("off",e,t,n)}},{key:"set",value:function(e){var t=this._defaults;for(var n in i.default.object(e)||(e={}),this.options=(0,ft.default)(t.base),this._actions.methodDict){var r=n,o=this._actions.methodDict[r];this.options[r]={},this.setPerAction(r,(0,M.default)((0,M.default)({},t.perAction),t.actions[r])),this[o](e[r])}for(var a in e)i.default.func(this[a])&&this[a](e[a]);return this}},{key:"unset",value:function(){if(i.default.string(this.target))for(var e in this._scopeEvents.delegatedEvents)for(var t=this._scopeEvents.delegatedEvents[e],n=t.length-1;n>=0;n--){var r=t[n],o=r.selector,a=r.context,s=r.listeners;o===this.target&&a===this._context&&t.splice(n,1);for(var u=s.length-1;u>=0;u--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[u][0],s[u][1])}else this._scopeEvents.remove(this.target,"all")}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}();ln.Interactable=fn;var dn={};function pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(dn,"__esModule",{value:!0}),dn.InteractableSet=void 0;var hn=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pn(this,"list",[]),pn(this,"selectorMap",{}),pn(this,"scope",void 0),this.scope=t,t.addListeners({"interactable:unset":function(e){var t=e.interactable,r=t.target,o=t._context,a=i.default.string(r)?n.selectorMap[r]:r[n.scope.id],s=B.findIndex(a,(function(e){return e.context===o}));a[s]&&(a[s].context=null,a[s].interactable=null),a.splice(s,1)}})}var t,n;return t=e,(n=[{key:"new",value:function(e,t){t=(0,M.default)(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document,this.scope.events),r={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),i.default.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(r)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:"get",value:function(e,t){var n=t&&t.context||this.scope.document,r=i.default.string(e),o=r?this.selectorMap[e]:e[this.scope.id];if(!o)return null;var a=B.find(o,(function(t){return t.context===n&&(r||t.interactable.inContext(e))}));return a&&a.interactable}},{key:"forEachMatch",value:function(e,t){for(var n=0;n<this.list.length;n++){var r=this.list[n],o=void 0;if((i.default.string(r.target)?i.default.element(e)&&_.matchesSelector(e,r.target):e===r.target)&&r.inContext(e)&&(o=t(r)),void 0!==o)return o}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();dn.InteractableSet=hn;var vn={};function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gn(e,t):void 0}}(e,t)||function(){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 gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(vn,"__esModule",{value:!0}),vn.default=void 0;var bn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mn(this,"currentTarget",void 0),mn(this,"originalEvent",void 0),mn(this,"type",void 0),this.originalEvent=t,(0,L.default)(this,t)}var t,n;return t=e,(n=[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function On(e){if(!i.default.object(e))return{capture:!!e,passive:!1};var t=(0,M.default)({},e);return t.capture=!!e.capture,t.passive=!!e.passive,t}var wn={id:"events",install:function(e){var t,n=[],r={},o=[],a={add:s,remove:u,addDelegate:function(e,t,n,i,a){var u=On(a);if(!r[n]){r[n]=[];for(var f=0;f<o.length;f++){var d=o[f];s(d,n,l),s(d,n,c,!0)}}var p=r[n],h=B.find(p,(function(n){return n.selector===e&&n.context===t}));h||(h={selector:e,context:t,listeners:[]},p.push(h)),h.listeners.push([i,u])},removeDelegate:function(e,t,n,o,i){var a,s=On(i),f=r[n],d=!1;if(f)for(a=f.length-1;a>=0;a--){var p=f[a];if(p.selector===e&&p.context===t){for(var h=p.listeners,v=h.length-1;v>=0;v--){var m=yn(h[v],2),y=m[0],g=m[1],b=g.capture,O=g.passive;if(y===o&&b===s.capture&&O===s.passive){h.splice(v,1),h.length||(f.splice(a,1),u(t,n,l),u(t,n,c,!0)),d=!0;break}}if(d)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:r,documents:o,targets:n,supportsOptions:!1,supportsPassive:!1};function s(e,t,r,o){var i=On(o),s=B.find(n,(function(t){return t.eventTarget===e}));s||(s={eventTarget:e,events:{}},n.push(s)),s.events[t]||(s.events[t]=[]),e.addEventListener&&!B.contains(s.events[t],r)&&(e.addEventListener(t,r,a.supportsOptions?i:i.capture),s.events[t].push(r))}function u(e,t,r,o){var i=On(o),s=B.findIndex(n,(function(t){return t.eventTarget===e})),l=n[s];if(l&&l.events)if("all"!==t){var c=!1,f=l.events[t];if(f){if("all"===r){for(var d=f.length-1;d>=0;d--)u(e,t,f[d],i);return}for(var p=0;p<f.length;p++)if(f[p]===r){e.removeEventListener(t,r,a.supportsOptions?i:i.capture),f.splice(p,1),0===f.length&&(delete l.events[t],c=!0);break}}c&&!Object.keys(l.events).length&&n.splice(s,1)}else for(t in l.events)l.events.hasOwnProperty(t)&&u(e,t,"all")}function l(e,t){for(var n=On(t),o=new bn(e),a=r[e.type],s=yn(W.getEventTargets(e),1)[0],u=s;i.default.element(u);){for(var l=0;l<a.length;l++){var c=a[l],f=c.selector,d=c.context;if(_.matchesSelector(u,f)&&_.nodeContains(d,s)&&_.nodeContains(d,u)){var p=c.listeners;o.currentTarget=u;for(var h=0;h<p.length;h++){var v=yn(p[h],2),m=v[0],y=v[1],g=y.capture,b=y.passive;g===n.capture&&b===n.passive&&m(o)}}}u=_.parentNode(u)}}function c(e){return l(e,!0)}return null==(t=e.document)||t.createElement("div").addEventListener("test",null,{get capture(){return a.supportsOptions=!0},get passive(){return a.supportsPassive=!0}}),e.events=a,a}};vn.default=wn;var _n={};Object.defineProperty(_n,"__esModule",{value:!0}),_n.default=void 0;var Sn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e){for(var t=0;t<Sn.methodOrder.length;t++){var n;n=Sn.methodOrder[t];var r=Sn[n](e);if(r)return r}return null},simulationResume:function(e){var t=e.pointerType,n=e.eventType,r=e.eventTarget,o=e.scope;if(!/down|start/i.test(n))return null;for(var i=0;i<o.interactions.list.length;i++){var a=o.interactions.list[i],s=r;if(a.simulation&&a.simulation.allowResume&&a.pointerType===t)for(;s;){if(s===a.element)return a;s=_.parentNode(s)}}return null},mouseOrPen:function(e){var t,n=e.pointerId,r=e.pointerType,o=e.eventType,i=e.scope;if("mouse"!==r&&"pen"!==r)return null;for(var a=0;a<i.interactions.list.length;a++){var s=i.interactions.list[a];if(s.pointerType===r){if(s.simulation&&!Tn(s,n))continue;if(s.interacting())return s;t||(t=s)}}if(t)return t;for(var u=0;u<i.interactions.list.length;u++){var l=i.interactions.list[u];if(!(l.pointerType!==r||/down/i.test(o)&&l.simulation))return l}return null},hasPointer:function(e){for(var t=e.pointerId,n=e.scope,r=0;r<n.interactions.list.length;r++){var o=n.interactions.list[r];if(Tn(o,t))return o}return null},idle:function(e){for(var t=e.pointerType,n=e.scope,r=0;r<n.interactions.list.length;r++){var o=n.interactions.list[r];if(1===o.pointers.length){var i=o.interactable;if(i&&(!i.options.gesture||!i.options.gesture.enabled))continue}else if(o.pointers.length>=2)continue;if(!o.interacting()&&t===o.pointerType)return o}return null}};function Tn(e,t){return e.pointers.some((function(e){return e.id===t}))}var Pn=Sn;_n.default=Pn;var jn={};function xn(e){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mn(e,t):void 0}}(e,t)||function(){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 Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rn(e,t){return(Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Cn(e,t){if(t&&("object"===xn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(jn,"__esModule",{value:!0}),jn.default=void 0;var Dn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function zn(e,t){return function(n){var r=t.interactions.list,o=W.getPointerType(n),i=En(W.getEventTargets(n),2),a=i[0],s=i[1],u=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var l=0;l<n.changedTouches.length;l++){var c=n.changedTouches[l],f={pointer:c,pointerId:W.getPointerId(c),pointerType:o,eventType:n.type,eventTarget:a,curEventTarget:s,scope:t},d=An(f);u.push([f.pointer,f.eventTarget,f.curEventTarget,d])}}else{var p=!1;if(!b.default.supportsPointerEvent&&/mouse/.test(n.type)){for(var h=0;h<r.length&&!p;h++)p="mouse"!==r[h].pointerType&&r[h].pointerIsDown;p=p||t.now()-t.prevTouchTime<500||0===n.timeStamp}if(!p){var v={pointer:n,pointerId:W.getPointerId(n),pointerType:o,eventType:n.type,curEventTarget:s,eventTarget:a,scope:t},m=An(v);u.push([v.pointer,v.eventTarget,v.curEventTarget,m])}}for(var y=0;y<u.length;y++){var g=En(u[y],4),O=g[0],w=g[1],_=g[2];g[3][e](O,n,w,_)}}}function An(e){var t=e.pointerType,n=e.scope,r={interaction:_n.default.search(e),searchDetails:e};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:t})}function Ln(e,t){var n=e.doc,r=e.scope,o=e.options,i=r.interactions.docEvents,a=r.events,s=a[t];for(var u in r.browser.isIOS&&!o.events&&(o.events={passive:!1}),a.delegatedEvents)s(n,u,a.delegateListener),s(n,u,a.delegateUseCapture,!0);for(var l=o&&o.events,c=0;c<i.length;c++){var f=i[c];s(n,f.type,f.listener,l)}}var Wn={id:"core/interactions",install:function(e){for(var t={},n=0;n<Dn.length;n++){var r=Dn[n];t[r]=zn(r,e)}var o,i=b.default.pEventTypes;function a(){for(var t=0;t<e.interactions.list.length;t++){var n=e.interactions.list[t];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var r=function(){var t=n.pointers[o];e.documents.some((function(e){var n=e.doc;return(0,_.nodeContains)(n,t.downTarget)}))||n.removePointer(t.pointer,t.event)},o=0;o<n.pointers.length;o++)r()}}(o=v.default.PointerEvent?[{type:i.down,listener:a},{type:i.down,listener:t.pointerDown},{type:i.move,listener:t.pointerMove},{type:i.up,listener:t.pointerUp},{type:i.cancel,listener:t.pointerUp}]:[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:a},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}]).push({type:"blur",listener:function(t){for(var n=0;n<e.interactions.list.length;n++)e.interactions.list[n].documentBlur(t)}}),e.prevTouchTime=0,e.Interaction=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rn(e,t)}(s,t);var n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=In(o);if(i){var n=In(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Cn(this,e)});function s(){return kn(this,s),a.apply(this,arguments)}return n=s,(r=[{key:"pointerMoveTolerance",get:function(){return e.interactions.pointerMoveTolerance},set:function(t){e.interactions.pointerMoveTolerance=t}},{key:"_now",value:function(){return e.now()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(Lt.default),e.interactions={list:[],new:function(t){t.scopeFire=function(t,n){return e.fire(t,n)};var n=new e.Interaction(t);return e.interactions.list.push(n),n},listeners:t,docEvents:o,pointerMoveTolerance:1},e.usePlugin(rt.default)},listeners:{"scope:add-document":function(e){return Ln(e,"add")},"scope:remove-document":function(e){return Ln(e,"remove")},"interactable:unset":function(e,t){for(var n=e.interactable,r=t.interactions.list.length-1;r>=0;r--){var o=t.interactions.list[r];o.interactable===n&&(o.stop(),t.fire("interactions:destroy",{interaction:o}),o.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(r,1))}}},onDocSignal:Ln,doOnInteractions:zn,methodNames:Dn};jn.default=Wn;var Hn={};function Fn(e){return(Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qn(){return(qn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Nn(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Nn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Gn(e)););return e}function Yn(e,t){return(Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Un(e,t){if(t&&("object"===Fn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Gn(e){return(Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bn(e,t,n){return t&&Xn(e.prototype,t),n&&Xn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.Scope=void 0,Hn.initScope=$n;var Zn=function(){function e(){var t=this;Kn(this,e),Vn(this,"id","__interact_scope_".concat(Math.floor(100*Math.random()))),Vn(this,"isInitialized",!1),Vn(this,"listenerMaps",[]),Vn(this,"browser",b.default),Vn(this,"defaults",(0,ft.default)(_t.defaults)),Vn(this,"Eventable",nn.Eventable),Vn(this,"actions",{map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}}),Vn(this,"interactStatic",(0,un.createInteractStatic)(this)),Vn(this,"InteractEvent",St.InteractEvent),Vn(this,"Interactable",void 0),Vn(this,"interactables",new dn.InteractableSet(this)),Vn(this,"_win",void 0),Vn(this,"document",void 0),Vn(this,"window",void 0),Vn(this,"documents",[]),Vn(this,"_plugins",{list:[],map:{}}),Vn(this,"onWindowUnload",(function(e){return t.removeDocument(e.target)}));var n=this;this.Interactable=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yn(e,t)}(i,e);var t,r,o=(t=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Gn(t);if(r){var o=Gn(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return Un(this,e)});function i(){return Kn(this,i),o.apply(this,arguments)}return Bn(i,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(e){return qn(Gn(i.prototype),"set",this).call(this,e),n.fire("interactable:set",{options:e,interactable:this}),this}},{key:"unset",value:function(){qn(Gn(i.prototype),"unset",this).call(this);var e=n.interactables.list.indexOf(this);e<0||(qn(Gn(i.prototype),"unset",this).call(this),n.interactables.list.splice(e,1),n.fire("interactable:unset",{interactable:this}))}}]),i}(ln.Interactable)}return Bn(e,[{key:"addListeners",value:function(e,t){this.listenerMaps.push({id:t,map:e})}},{key:"fire",value:function(e,t){for(var n=0;n<this.listenerMaps.length;n++){var r=this.listenerMaps[n].map[e];if(r&&!1===r(t,this,e))return!1}}},{key:"init",value:function(e){return this.isInitialized?this:$n(this,e)}},{key:"pluginIsInstalled",value:function(e){return this._plugins.map[e.id]||-1!==this._plugins.list.indexOf(e)}},{key:"usePlugin",value:function(e,t){if(!this.isInitialized)return this;if(this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,t),e.listeners&&e.before){for(var n=0,r=this.listenerMaps.length,o=e.before.reduce((function(e,t){return e[t]=!0,e[Jn(t)]=!0,e}),{});n<r;n++){var i=this.listenerMaps[n].id;if(o[i]||o[Jn(i)])break}this.listenerMaps.splice(n,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this}},{key:"addDocument",value:function(e,n){if(-1!==this.getDocIndex(e))return!1;var r=t.getWindow(e);n=n?(0,M.default)({},n):{},this.documents.push({doc:e,options:n}),this.events.documents.push(e),e!==this.document&&this.events.add(r,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:e,window:r,scope:this,options:n})}},{key:"removeDocument",value:function(e){var n=this.getDocIndex(e),r=t.getWindow(e),o=this.documents[n].options;this.events.remove(r,"unload",this.onWindowUnload),this.documents.splice(n,1),this.events.documents.splice(n,1),this.fire("scope:remove-document",{doc:e,window:r,scope:this,options:o})}},{key:"getDocIndex",value:function(e){for(var t=0;t<this.documents.length;t++)if(this.documents[t].doc===e)return t;return-1}},{key:"getDocOptions",value:function(e){var t=this.getDocIndex(e);return-1===t?null:this.documents[t].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),e}();function $n(e,n){return e.isInitialized=!0,i.default.window(n)&&t.init(n),v.default.init(n),b.default.init(n),Pe.default.init(n),e.window=n,e.document=n.document,e.usePlugin(jn.default),e.usePlugin(vn.default),e}function Jn(e){return e&&e.replace(/\/.*$/,"")}Hn.Scope=Zn;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.default=void 0;var er=new Hn.Scope,tr=er.interactStatic;Qn.default=tr;var nr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0;er.init(nr);var rr={};Object.defineProperty(rr,"__esModule",{value:!0}),rr.default=void 0,rr.default=function(){};var or={};Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0,or.default=function(){};var ir={};function ar(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(e,t):void 0}}(e,t)||function(){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 sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(ir,"__esModule",{value:!0}),ir.default=void 0,ir.default=function(e){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(t){var n=ar(t,2),r=n[0],o=n[1];return r in e||o in e})),n=function(n,r){for(var o=e.range,i=e.limits,a=void 0===i?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:i,s=e.offset,u=void 0===s?{x:0,y:0}:s,l={range:o,grid:e,x:null,y:null},c=0;c<t.length;c++){var f=ar(t[c],2),d=f[0],p=f[1],h=Math.round((n-u.x)/e[d]),v=Math.round((r-u.y)/e[p]);l[d]=Math.max(a.left,Math.min(a.right,h*e[d]+u.x)),l[p]=Math.max(a.top,Math.min(a.bottom,v*e[p]+u.y))}return l};return n.grid=e,n.coordFields=t,n};var ur={};Object.defineProperty(ur,"__esModule",{value:!0}),Object.defineProperty(ur,"edgeTarget",{enumerable:!0,get:function(){return rr.default}}),Object.defineProperty(ur,"elements",{enumerable:!0,get:function(){return or.default}}),Object.defineProperty(ur,"grid",{enumerable:!0,get:function(){return ir.default}});var lr={};Object.defineProperty(lr,"__esModule",{value:!0}),lr.default=void 0;var cr={id:"snappers",install:function(e){var t=e.interactStatic;t.snappers=(0,M.default)(t.snappers||{},ur),t.createSnapGrid=t.snappers.grid}};lr.default=cr;var fr={};function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach((function(t){hr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(fr,"__esModule",{value:!0}),fr.default=fr.aspectRatio=void 0;var vr={start:function(e){var t=e.state,n=e.rect,r=e.edges,o=e.pageCoords,i=t.options.ratio,a=t.options,s=a.equalDelta,u=a.modifiers;"preserve"===i&&(i=n.width/n.height),t.startCoords=(0,M.default)({},o),t.startRect=(0,M.default)({},n),t.ratio=i,t.equalDelta=s;var l=t.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(t.xIsPrimaryAxis=!(!r.left&&!r.right),t.equalDelta){var c=(l.left?1:-1)*(l.top?1:-1);t.edgeSign={x:c,y:c}}else t.edgeSign={x:l.left?-1:1,y:l.top?-1:1};if((0,M.default)(e.edges,l),u&&u.length){var f=new dt.default(e.interaction);f.copyFrom(e.interaction.modification),f.prepareStates(u),t.subModification=f,f.startAll(pr({},e))}},set:function(e){var t=e.state,n=e.rect,r=e.coords,o=(0,M.default)({},r),i=t.equalDelta?mr:yr;if(i(t,t.xIsPrimaryAxis,r,n),!t.subModification)return null;var a=(0,M.default)({},n);(0,k.addEdges)(t.linkedEdges,a,{x:r.x-o.x,y:r.y-o.y});var s=t.subModification.setAll(pr(pr({},e),{},{rect:a,edges:t.linkedEdges,pageCoords:r,prevCoords:r,prevRect:a})),u=s.delta;return s.changed&&(i(t,Math.abs(u.x)>Math.abs(u.y),s.coords,s.rect),(0,M.default)(r,s.coords)),s.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function mr(e,t,n){var r=e.startCoords,o=e.edgeSign;t?n.y=r.y+(n.x-r.x)*o.y:n.x=r.x+(n.y-r.y)*o.x}function yr(e,t,n,r){var o=e.startRect,i=e.startCoords,a=e.ratio,s=e.edgeSign;if(t){var u=r.width/a;n.y=i.y+(u-o.height)*s.y}else{var l=r.height*a;n.x=i.x+(l-o.width)*s.x}}fr.aspectRatio=vr;var gr=(0,bt.makeModifier)(vr,"aspectRatio");fr.default=gr;var br={};Object.defineProperty(br,"__esModule",{value:!0}),br.default=void 0;var Or=function(){};Or._defaults={};var wr=Or;br.default=wr;var _r={};Object.defineProperty(_r,"__esModule",{value:!0}),Object.defineProperty(_r,"default",{enumerable:!0,get:function(){return br.default}});var Sr={};function Tr(e,t,n){return i.default.func(e)?k.resolveRectLike(e,t.interactable,t.element,[n.x,n.y,t]):k.resolveRectLike(e,t.interactable,t.element)}Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.default=void 0,Sr.getRestrictionRect=Tr,Sr.restrict=void 0;var Pr={start:function(e){var t=e.rect,n=e.startOffset,r=e.state,o=e.interaction,i=e.pageCoords,a=r.options,s=a.elementRect,u=(0,M.default)({left:0,top:0,right:0,bottom:0},a.offset||{});if(t&&s){var l=Tr(a.restriction,o,i);if(l){var c=l.right-l.left-t.width,f=l.bottom-l.top-t.height;c<0&&(u.left+=c,u.right+=c),f<0&&(u.top+=f,u.bottom+=f)}u.left+=n.left-t.width*s.left,u.top+=n.top-t.height*s.top,u.right+=n.right-t.width*(1-s.right),u.bottom+=n.bottom-t.height*(1-s.bottom)}r.offset=u},set:function(e){var t=e.coords,n=e.interaction,r=e.state,o=r.options,i=r.offset,a=Tr(o.restriction,n,t);if(a){var s=k.xywhToTlbr(a);t.x=Math.max(Math.min(s.right-i.right,t.x),s.left+i.left),t.y=Math.max(Math.min(s.bottom-i.bottom,t.y),s.top+i.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};Sr.restrict=Pr;var jr=(0,bt.makeModifier)(Pr,"restrict");Sr.default=jr;var xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.restrictEdges=xr.default=void 0;var Er={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Mr={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function kr(e,t){for(var n=["top","left","bottom","right"],r=0;r<n.length;r++){var o=n[r];o in e||(e[o]=t[o])}return e}var Rr={noInner:Er,noOuter:Mr,start:function(e){var t,n=e.interaction,r=e.startOffset,o=e.state,i=o.options;if(i){var a=(0,Sr.getRestrictionRect)(i.offset,n,n.coords.start.page);t=k.rectToXY(a)}t=t||{x:0,y:0},o.offset={top:t.y+r.top,left:t.x+r.left,bottom:t.y-r.bottom,right:t.x-r.right}},set:function(e){var t=e.coords,n=e.edges,r=e.interaction,o=e.state,i=o.offset,a=o.options;if(n){var s=(0,M.default)({},t),u=(0,Sr.getRestrictionRect)(a.inner,r,s)||{},l=(0,Sr.getRestrictionRect)(a.outer,r,s)||{};kr(u,Er),kr(l,Mr),n.top?t.y=Math.min(Math.max(l.top+i.top,s.y),u.top+i.top):n.bottom&&(t.y=Math.max(Math.min(l.bottom+i.bottom,s.y),u.bottom+i.bottom)),n.left?t.x=Math.min(Math.max(l.left+i.left,s.x),u.left+i.left):n.right&&(t.x=Math.max(Math.min(l.right+i.right,s.x),u.right+i.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};xr.restrictEdges=Rr;var Cr=(0,bt.makeModifier)(Rr,"restrictEdges");xr.default=Cr;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.restrictRect=Ir.default=void 0;var Dr=(0,M.default)({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},Sr.restrict.defaults),zr={start:Sr.restrict.start,set:Sr.restrict.set,defaults:Dr};Ir.restrictRect=zr;var Ar=(0,bt.makeModifier)(zr,"restrictRect");Ir.default=Ar;var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.restrictSize=Lr.default=void 0;var Wr={width:-1/0,height:-1/0},Hr={width:1/0,height:1/0},Fr={start:function(e){return xr.restrictEdges.start(e)},set:function(e){var t=e.interaction,n=e.state,r=e.rect,o=e.edges,i=n.options;if(o){var a=k.tlbrToXywh((0,Sr.getRestrictionRect)(i.min,t,e.coords))||Wr,s=k.tlbrToXywh((0,Sr.getRestrictionRect)(i.max,t,e.coords))||Hr;n.options={endOnly:i.endOnly,inner:(0,M.default)({},xr.restrictEdges.noInner),outer:(0,M.default)({},xr.restrictEdges.noOuter)},o.top?(n.options.inner.top=r.bottom-a.height,n.options.outer.top=r.bottom-s.height):o.bottom&&(n.options.inner.bottom=r.top+a.height,n.options.outer.bottom=r.top+s.height),o.left?(n.options.inner.left=r.right-a.width,n.options.outer.left=r.right-s.width):o.right&&(n.options.inner.right=r.left+a.width,n.options.outer.right=r.left+s.width),xr.restrictEdges.set(e),n.options=i}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}};Lr.restrictSize=Fr;var qr=(0,bt.makeModifier)(Fr,"restrictSize");Lr.default=qr;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0}),Object.defineProperty(Nr,"default",{enumerable:!0,get:function(){return br.default}});var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.snap=Yr.default=void 0;var Ur={start:function(e){var t,n=e.interaction,r=e.interactable,o=e.element,i=e.rect,a=e.state,s=e.startOffset,u=a.options,l=u.offsetWithOrigin?function(e){var t=e.interaction.element;return(0,k.rectToXY)((0,k.resolveRectLike)(e.state.options.origin,null,null,[t]))||(0,I.default)(e.interactable,t,e.interaction.prepared.name)}(e):{x:0,y:0};if("startCoords"===u.offset)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var c=(0,k.resolveRectLike)(u.offset,r,o,[n]);(t=(0,k.rectToXY)(c)||{x:0,y:0}).x+=l.x,t.y+=l.y}var f=u.relativePoints;a.offsets=i&&f&&f.length?f.map((function(e,n){return{index:n,relativePoint:e,x:s.left-i.width*e.x+t.x,y:s.top-i.height*e.y+t.y}})):[{index:0,relativePoint:null,x:t.x,y:t.y}]},set:function(e){var t=e.interaction,n=e.coords,r=e.state,o=r.options,a=r.offsets,s=(0,I.default)(t.interactable,t.element,t.prepared.name),u=(0,M.default)({},n),l=[];o.offsetWithOrigin||(u.x-=s.x,u.y-=s.y);for(var c=0;c<a.length;c++)for(var f=a[c],d=u.x-f.x,p=u.y-f.y,h=0,v=o.targets.length;h<v;h++){var m,y=o.targets[h];(m=i.default.func(y)?y(d,p,t._proxy,f,h):y)&&l.push({x:(i.default.number(m.x)?m.x:d)+f.x,y:(i.default.number(m.y)?m.y:p)+f.y,range:i.default.number(m.range)?m.range:o.range,source:y,index:h,offset:f})}for(var g={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<l.length;b++){var O=l[b],w=O.range,_=O.x-u.x,S=O.y-u.y,T=(0,A.default)(_,S),P=T<=w;w===1/0&&g.inRange&&g.range!==1/0&&(P=!1),g.target&&!(P?g.inRange&&w!==1/0?T/w<g.distance/g.range:w===1/0&&g.range!==1/0||T<g.distance:!g.inRange&&T<g.distance)||(g.target=O,g.distance=T,g.range=w,g.inRange=P,g.delta.x=_,g.delta.y=S)}return g.inRange&&(n.x=g.target.x,n.y=g.target.y),r.closest=g,g},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};Yr.snap=Ur;var Gr=(0,bt.makeModifier)(Ur,"snap");Yr.default=Gr;var Kr={};function Xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.snapSize=Kr.default=void 0;var Br={start:function(e){var t=e.state,n=e.edges,r=t.options;if(!n)return null;e.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:r.offset||"self",origin:{x:0,y:0},range:r.range}},t.targetFields=t.targetFields||[["width","height"],["x","y"]],Yr.snap.start(e),t.offsets=e.state.offsets,e.state=t},set:function(e){var t,n=e.interaction,r=e.state,o=e.coords,a=r.options,s=r.offsets,u={x:o.x-s[0].x,y:o.y-s[0].y};r.options=(0,M.default)({},a),r.options.targets=[];for(var l=0;l<(a.targets||[]).length;l++){var c=(a.targets||[])[l],f=void 0;if(f=i.default.func(c)?c(u.x,u.y,n):c){for(var d=0;d<r.targetFields.length;d++){var p=function(e){if(Array.isArray(e))return e}(t=r.targetFields[d])||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return Xr(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xr(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=p[0],v=p[1];if(h in f||v in f){f.x=f[h],f.y=f[v];break}}r.options.targets.push(f)}}var m=Yr.snap.set(e);return r.options=a,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};Kr.snapSize=Br;var Vr=(0,bt.makeModifier)(Br,"snapSize");Kr.default=Vr;var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.snapEdges=Zr.default=void 0;var $r={start:function(e){var t=e.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],Kr.snapSize.start(e)):null},set:Kr.snapSize.set,defaults:(0,M.default)((0,ft.default)(Kr.snapSize.defaults),{targets:null,range:null,offset:{x:0,y:0}})};Zr.snapEdges=$r;var Jr=(0,bt.makeModifier)($r,"snapEdges");Zr.default=Jr;var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0}),Object.defineProperty(Qr,"default",{enumerable:!0,get:function(){return br.default}});var eo={};Object.defineProperty(eo,"__esModule",{value:!0}),Object.defineProperty(eo,"default",{enumerable:!0,get:function(){return br.default}});var to={};Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var no={aspectRatio:fr.default,restrictEdges:xr.default,restrict:Sr.default,restrictRect:Ir.default,restrictSize:Lr.default,snapEdges:Zr.default,snap:Yr.default,snapSize:Kr.default,spring:Qr.default,avoid:_r.default,transform:eo.default,rubberband:Nr.default};to.default=no;var ro={};Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var oo={id:"modifiers",install:function(e){var t=e.interactStatic;for(var n in e.usePlugin(bt.default),e.usePlugin(lr.default),t.modifiers=to.default,to.default){var r=to.default[n],o=r._defaults,i=r._methods;o._methods=i,e.defaults.perAction[n]=o}}};ro.default=oo;var io={};function ao(e){return(ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function so(e,t){return(so=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function uo(e,t){if(t&&("object"===ao(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lo(e)}function lo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(io,"__esModule",{value:!0}),io.default=io.PointerEvent=void 0;var fo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&so(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=co(r);if(o){var n=co(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return uo(this,e)});function a(e,t,n,r,o,s){var u;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u=i.call(this,o),W.pointerExtend(lo(u),n),n!==t&&W.pointerExtend(lo(u),t),u.timeStamp=s,u.originalEvent=n,u.type=e,u.pointerId=W.getPointerId(t),u.pointerType=W.getPointerType(t),u.target=r,u.currentTarget=null,"tap"===e){var l=o.getPointerIndex(t);u.dt=u.timeStamp-o.pointers[l].downTime;var c=u.timeStamp-o.tapTime;u.double=!!o.prevTap&&"doubletap"!==o.prevTap.type&&o.prevTap.target===u.target&&c<500}else"doubletap"===e&&(u.dt=t.timeStamp-o.tapTime,u.double=!0);return u}return t=a,(n=[{key:"_subtractOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this}},{key:"_addOrigin",value:function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(G.BaseEvent);io.PointerEvent=io.default=fo;var po={};Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var ho={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(e){e.pointerEvents=ho,e.defaults.actions.pointerEvents=ho.defaults,(0,M.default)(e.actions.phaselessTypes,ho.types)},listeners:{"interactions:new":function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(e){var t=e.down,n=e.pointerInfo;!t&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;e.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&yo(e),vo({interaction:n,pointer:r,event:o,eventTarget:i,type:"move"},t))},"interactions:down":function(e,t){!function(e,t){for(var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.pointerIndex,s=n.pointers[a].hold,u=_.getPath(i),l={interaction:n,pointer:r,event:o,eventTarget:i,type:"hold",targets:[],path:u,node:null},c=0;c<u.length;c++){var f=u[c];l.node=f,t.fire("pointerEvents:collect-targets",l)}if(l.targets.length){for(var d=1/0,p=0;p<l.targets.length;p++){var h=l.targets[p].eventable.options.holdDuration;h<d&&(d=h)}s.duration=d,s.timeout=setTimeout((function(){vo({interaction:n,eventTarget:i,pointer:r,event:o,type:"hold"},t)}),d)}}(e,t),vo(e,t)},"interactions:up":function(e,t){yo(e),vo(e,t),function(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget;n.pointerWasMoved||vo({interaction:n,eventTarget:i,pointer:r,event:o,type:"tap"},t)}(e,t)},"interactions:cancel":function(e,t){yo(e),vo(e,t)}},PointerEvent:io.PointerEvent,fire:vo,collectEventTargets:mo,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function vo(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.type,s=e.targets,u=void 0===s?mo(e,t):s,l=new io.PointerEvent(a,r,o,i,n,t.now());t.fire("pointerEvents:new",{pointerEvent:l});for(var c={interaction:n,pointer:r,event:o,eventTarget:i,targets:u,type:a,pointerEvent:l},f=0;f<u.length;f++){var d=u[f];for(var p in d.props||{})l[p]=d.props[p];var h=(0,I.default)(d.eventable,d.node);if(l._subtractOrigin(h),l.eventable=d.eventable,l.currentTarget=d.node,d.eventable.fire(l),l._addOrigin(h),l.immediatePropagationStopped||l.propagationStopped&&f+1<u.length&&u[f+1].node!==l.currentTarget)break}if(t.fire("pointerEvents:fired",c),"tap"===a){var v=l.double?vo({interaction:n,pointer:r,event:o,eventTarget:i,type:"doubletap"},t):l;n.prevTap=v,n.tapTime=v.timeStamp}return l}function mo(e,t){var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.type,s=n.getPointerIndex(r),u=n.pointers[s];if("tap"===a&&(n.pointerWasMoved||!u||u.downTarget!==i))return[];for(var l=_.getPath(i),c={interaction:n,pointer:r,event:o,eventTarget:i,type:a,path:l,targets:[],node:null},f=0;f<l.length;f++){var d=l[f];c.node=d,t.fire("pointerEvents:collect-targets",c)}return"hold"===a&&(c.targets=c.targets.filter((function(e){var t;return e.eventable.options.holdDuration===(null==(t=n.pointers[s])?void 0:t.hold.duration)}))),c.targets}function yo(e){var t=e.interaction,n=e.pointerIndex,r=t.pointers[n].hold;r&&r.timeout&&(clearTimeout(r.timeout),r.timeout=null)}var go=ho;po.default=go;var bo={};function Oo(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var wo={id:"pointer-events/holdRepeat",install:function(e){e.usePlugin(po.default);var t=e.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(e,t){return e["pointerEvents:".concat(t)]=Oo,e}),{"pointerEvents:new":function(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(e,t){var n=e.interaction,r=e.pointerEvent,o=e.eventTarget,i=e.targets;if("hold"===r.type&&i.length){var a=i[0].eventable.options.holdRepeatInterval;a<=0||(n.holdIntervalHandle=setTimeout((function(){t.pointerEvents.fire({interaction:n,eventTarget:o,type:"hold",pointer:r,event:r},t)}),a))}}})};bo.default=wo;var _o={};function So(e){return(0,M.default)(this.events.options,e),this}Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0;var To={id:"pointer-events/interactableTargets",install:function(e){var t=e.Interactable;t.prototype.pointerEvents=So;var n=t.prototype._backCompatOption;t.prototype._backCompatOption=function(e,t){var r=n.call(this,e,t);return r===this&&(this.events.options[e]=t),r}},listeners:{"pointerEvents:collect-targets":function(e,t){var n=e.targets,r=e.node,o=e.type,i=e.eventTarget;t.interactables.forEachMatch(r,(function(e){var t=e.events,a=t.options;t.types[o]&&t.types[o].length&&e.testIgnoreAllow(a,r,i)&&n.push({node:r,eventable:t,props:{interactable:e}})}))},"interactable:new":function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}},"interactable:set":function(e,t){var n=e.interactable,r=e.options;(0,M.default)(n.events.options,t.pointerEvents.defaults),(0,M.default)(n.events.options,r.pointerEvents||{})}}};_o.default=To;var Po={};Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=void 0;var jo={id:"pointer-events",install:function(e){e.usePlugin(po),e.usePlugin(bo.default),e.usePlugin(_o.default)}};Po.default=jo;var xo={};function Eo(e){var t=e.Interactable;e.actions.phases.reflow=!0,t.prototype.reflow=function(t){return function(e,t,n){for(var r=i.default.string(e.target)?B.from(e._context.querySelectorAll(e.target)):[e.target],o=n.window.Promise,a=o?[]:null,s=function(){var i=r[u],s=e.getRect(i);if(!s)return"break";var l=B.find(n.interactions.list,(function(n){return n.interacting()&&n.interactable===e&&n.element===i&&n.prepared.name===t.name})),c=void 0;if(l)l.move(),a&&(c=l._reflowPromise||new o((function(e){l._reflowResolve=e})));else{var f=(0,k.tlbrToXywh)(s),d={page:{x:f.x,y:f.y},client:{x:f.x,y:f.y},timeStamp:n.now()},p=W.coordsToEvent(d);c=function(e,t,n,r,o){var i=e.interactions.new({pointerType:"reflow"}),a={interaction:i,event:o,pointer:o,eventTarget:n,phase:"reflow"};i.interactable=t,i.element=n,i.prevEvent=o,i.updatePointer(o,o,n,!0),W.setZeroCoords(i.coords.delta),(0,ze.copyAction)(i.prepared,r),i._doPhase(a);var s=e.window.Promise,u=s?new s((function(e){i._reflowResolve=e})):void 0;return i._reflowPromise=u,i.start(r,t,n),i._interacting?(i.move(a),i.end(o)):(i.stop(),i._reflowResolve()),i.removePointer(o,o),u}(n,e,i,t,p)}a&&a.push(c)},u=0;u<r.length&&"break"!==s();u++);return a&&o.all(a).then((function(){return e}))}(this,t,e)}}Object.defineProperty(xo,"__esModule",{value:!0}),xo.default=void 0,xo.install=Eo;var Mo={id:"reflow",install:Eo,listeners:{"interactions:stop":function(e,t){var n=e.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),B.remove(t.interactions.list,n))}}};xo.default=Mo;var ko={exports:{}};function Ro(e){return(Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(ko.exports,"__esModule",{value:!0}),ko.exports.default=void 0,Qn.default.use(rt.default),Qn.default.use(Nt.default),Qn.default.use(Po.default),Qn.default.use(Vt.default),Qn.default.use(ro.default),Qn.default.use(tt.default),Qn.default.use(Se.default),Qn.default.use(ke.default),Qn.default.use(xo.default);var Co=Qn.default;if(ko.exports.default=Co,"object"===Ro(ko)&&ko)try{ko.exports=Qn.default}catch(e){}Qn.default.default=Qn.default,Se.default,ke.default,tt.default,rt.default,ct.default,Vt.default,Qn.default,ro.default,Nt.default,Po.default,xo.default,ko=ko.exports;var Io={exports:{}};function Do(e){return(Do="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(Io.exports,"__esModule",{value:!0}),Io.exports.default=void 0;var zo=ko.default;if(Io.exports.default=zo,"object"===Do(Io)&&Io)try{Io.exports=ko.default}catch(e){}return ko.default.default=ko.default,Io.exports}()},1408:function(e,t,n){(function(e,n){var r="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[r]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l[o]=l["[object Number]"]=l[i]=l["[object RegExp]"]=l[a]=l["[object String]"]=l["[object WeakMap]"]=!1;var c="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,d=c||f||Function("return this")(),p=t&&!t.nodeType&&t,h=p&&"object"==typeof n&&n&&!n.nodeType&&n,v=h&&h.exports===p,m=v&&c.process,y=function(){try{return m&&m.binding&&m.binding("util")}catch(e){}}(),g=y&&y.isTypedArray;function b(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function O(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function w(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var _,S,T=Array.prototype,P=Function.prototype,j=Object.prototype,x=d["__core-js_shared__"],E=P.toString,M=j.hasOwnProperty,k=function(){var e=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),R=j.toString,C=RegExp("^"+E.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=v?d.Buffer:void 0,D=d.Symbol,z=d.Uint8Array,A=j.propertyIsEnumerable,L=T.splice,W=D?D.toStringTag:void 0,H=Object.getOwnPropertySymbols,F=I?I.isBuffer:void 0,q=(_=Object.keys,S=Object,function(e){return _(S(e))}),N=me(d,"DataView"),Y=me(d,"Map"),U=me(d,"Promise"),G=me(d,"Set"),K=me(d,"WeakMap"),X=me(Object,"create"),B=Oe(N),V=Oe(Y),Z=Oe(U),$=Oe(G),J=Oe(K),Q=D?D.prototype:void 0,ee=Q?Q.valueOf:void 0;function te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new re;++t<n;)this.add(e[t])}function ie(e){var t=this.__data__=new ne(e);this.size=t.size}function ae(e,t){var n=Se(e),r=!n&&_e(e),o=!n&&!r&&Te(e),i=!n&&!r&&!o&&Me(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var l in e)!t&&!M.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||be(l,u))||s.push(l);return s}function se(e,t){for(var n=e.length;n--;)if(we(e[n][0],t))return n;return-1}function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?function(e){var t=M.call(e,W),n=e[W];try{e[W]=void 0;var r=!0}catch(i){}var o=R.call(e);r&&(t?e[W]=n:delete e[W]);return o}(e):function(e){return R.call(e)}(e)}function le(e){return Ee(e)&&ue(e)==r}function ce(e,t,n,s,u){return e===t||(null==e||null==t||!Ee(e)&&!Ee(t)?e!==e&&t!==t:function(e,t,n,s,u,l){var c=Se(e),f=Se(t),d=c?"[object Array]":ge(e),p=f?"[object Array]":ge(t),h=(d=d==r?i:d)==i,v=(p=p==r?i:p)==i,m=d==p;if(m&&Te(e)){if(!Te(t))return!1;c=!0,h=!1}if(m&&!h)return l||(l=new ie),c||Me(e)?pe(e,t,n,s,u,l):function(e,t,n,r,i,s,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new z(e),new z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return we(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case o:var l=O;case a:var c=1&r;if(l||(l=w),e.size!=t.size&&!c)return!1;var f=u.get(e);if(f)return f==t;r|=2,u.set(e,t);var d=pe(l(e),l(t),r,i,s,u);return u.delete(e),d;case"[object Symbol]":if(ee)return ee.call(e)==ee.call(t)}return!1}(e,t,d,n,s,u,l);if(!(1&n)){var y=h&&M.call(e,"__wrapped__"),g=v&&M.call(t,"__wrapped__");if(y||g){var b=y?e.value():e,_=g?t.value():t;return l||(l=new ie),u(b,_,n,s,l)}}if(!m)return!1;return l||(l=new ie),function(e,t,n,r,o,i){var a=1&n,s=he(e),u=s.length,l=he(t).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var f=s[c];if(!(a?f in t:M.call(t,f)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);var h=a;for(;++c<u;){f=s[c];var v=e[f],m=t[f];if(r)var y=a?r(m,v,f,t,e,i):r(v,m,f,e,t,i);if(!(void 0===y?v===m||o(v,m,n,r,i):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,s,u,l)}(e,t,n,s,ce,u))}function fe(e){return!(!xe(e)||function(e){return!!k&&k in e}(e))&&(Pe(e)?C:s).test(Oe(e))}function de(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||j;return e===n}(e))return q(e);var t=[];for(var n in Object(e))M.call(e,n)&&"constructor"!=n&&t.push(n);return t}function pe(e,t,n,r,o,i){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new oe:void 0;for(i.set(e,t),i.set(t,e);++c<s;){var p=e[c],h=t[c];if(r)var v=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!b(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function he(e){return function(e,t,n){var r=t(e);return Se(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,ke,ye)}function ve(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function me(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(n)?n:void 0}te.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},te.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},te.prototype.get=function(e){var t=this.__data__;if(X){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return M.call(t,e)?t[e]:void 0},te.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:M.call(t,e)},te.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=X&&void 0===t?"__lodash_hash_undefined__":t,this},ne.prototype.clear=function(){this.__data__=[],this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=se(t,e);return!(n<0)&&(n==t.length-1?t.pop():L.call(t,n,1),--this.size,!0)},ne.prototype.get=function(e){var t=this.__data__,n=se(t,e);return n<0?void 0:t[n][1]},ne.prototype.has=function(e){return se(this.__data__,e)>-1},ne.prototype.set=function(e,t){var n=this.__data__,r=se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},re.prototype.clear=function(){this.size=0,this.__data__={hash:new te,map:new(Y||ne),string:new te}},re.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},re.prototype.get=function(e){return ve(this,e).get(e)},re.prototype.has=function(e){return ve(this,e).has(e)},re.prototype.set=function(e,t){var n=ve(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},oe.prototype.add=oe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oe.prototype.has=function(e){return this.__data__.has(e)},ie.prototype.clear=function(){this.__data__=new ne,this.size=0},ie.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ie.prototype.get=function(e){return this.__data__.get(e)},ie.prototype.has=function(e){return this.__data__.has(e)},ie.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ne){var r=n.__data__;if(!Y||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new re(r)}return n.set(e,t),this.size=n.size,this};var ye=H?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(H(e),(function(t){return A.call(e,t)})))}:function(){return[]},ge=ue;function be(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||u.test(e))&&e>-1&&e%1==0&&e<t}function Oe(e){if(null!=e){try{return E.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function we(e,t){return e===t||e!==e&&t!==t}(N&&"[object DataView]"!=ge(new N(new ArrayBuffer(1)))||Y&&ge(new Y)!=o||U&&"[object Promise]"!=ge(U.resolve())||G&&ge(new G)!=a||K&&"[object WeakMap]"!=ge(new K))&&(ge=function(e){var t=ue(e),n=t==i?e.constructor:void 0,r=n?Oe(n):"";if(r)switch(r){case B:return"[object DataView]";case V:return o;case Z:return"[object Promise]";case $:return a;case J:return"[object WeakMap]"}return t});var _e=le(function(){return arguments}())?le:function(e){return Ee(e)&&M.call(e,"callee")&&!A.call(e,"callee")},Se=Array.isArray;var Te=F||function(){return!1};function Pe(e){if(!xe(e))return!1;var t=ue(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function xe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ee(e){return null!=e&&"object"==typeof e}var Me=g?function(e){return function(t){return e(t)}}(g):function(e){return Ee(e)&&je(e.length)&&!!l[ue(e)]};function ke(e){return null!=(t=e)&&je(t.length)&&!Pe(t)?ae(e):de(e);var t}n.exports=function(e,t){return ce(e,t)}}).call(this,n(101),n(749)(e))},1409:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultItemRenderer=void 0;var r=i(n(2)),o=i(n(80));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.item,n=e.itemContext,o=e.getItemProps,i=(0,e.getResizeProps)(),a=i.left,s=i.right;return r.default.createElement("div",o(t.itemProps),n.useResizeHandle?r.default.createElement("div",a):"",r.default.createElement("div",{className:"rct-item-content",style:{maxHeight:"".concat(n.dimensions.height)}},n.title),n.useResizeHandle?r.default.createElement("div",s):"")};t.defaultItemRenderer=a,a.propTypes={item:o.default.any,itemContext:o.default.any,getItemProps:o.default.any,getResizeProps:o.default.any}},1410:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rightResizeStyle=t.leftResizeStyle=t.selectedAndCanResizeRightAndDragRight=t.selectedAndCanResizeRight=t.selectedAndCanResizeLeftAndDragLeft=t.selectedAndCanResizeLeft=t.selectedAndCanMove=t.selectedStyle=t.overridableStyles=void 0;t.overridableStyles={fontSize:12,color:"white",cursor:"pointer",background:"#2196f3",border:"1px solid #1a6fb3",zIndex:80};t.selectedStyle={background:"#ffc107",border:"1px solid #ff9800",zIndex:82};t.selectedAndCanMove={cursor:"move"};t.selectedAndCanResizeLeft={borderLeftWidth:3};t.selectedAndCanResizeLeftAndDragLeft={cursor:"w-resize"};t.selectedAndCanResizeRight={borderRightWidth:3};t.selectedAndCanResizeRightAndDragRight={cursor:"e-resize"};t.leftResizeStyle={position:"absolute",width:24,maxWidth:"20%",minWidth:2,height:"100%",top:0,left:0,cursor:"pointer",zIndex:88};t.rightResizeStyle={position:"absolute",width:24,maxWidth:"20%",minWidth:2,height:"100%",top:0,right:0,cursor:"pointer",zIndex:88}},1411:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(80))&&r.__esModule?r:{default:r},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2)),a=n(840);function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){return u(this,t),c(this,f(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(r=[{key:"shouldComponentUpdate",value:function(e){return!(e.keys===this.props.keys&&e.width===this.props.width&&e.height===this.props.height&&(0,a.arraysEqual)(e.groups,this.props.groups)&&(0,a.arraysEqual)(e.groupHeights,this.props.groupHeights))}},{key:"renderGroupContent",value:function(e,t,n,r){return this.props.groupRenderer?i.default.createElement(this.props.groupRenderer,{group:e,isRightSidebar:t}):(0,a._get)(e,t?r:n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.groupHeights,o=t.height,s=t.isRightSidebar,u=this.props.keys,l=u.groupIdKey,c=u.groupTitleKey,f=u.groupRightTitleKey,d={width:"".concat(n,"px"),height:"".concat(o,"px")},p={width:"".concat(n,"px")},h=this.props.groups.map((function(t,n){var o={height:"".concat(r[n],"px"),lineHeight:"".concat(r[n],"px")};return i.default.createElement("div",{key:(0,a._get)(t,l),className:"rct-sidebar-row rct-sidebar-row-"+(n%2===0?"even":"odd"),style:o},e.renderGroupContent(t,s,c,f))}));return i.default.createElement("div",{className:"rct-sidebar"+(s?" rct-sidebar-right":""),style:d},i.default.createElement("div",{style:p},h))}}])&&l(n.prototype,r),o&&l(n,o),t}(i.Component);t.default=p,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(p,"propTypes",{groups:o.default.oneOfType([o.default.array,o.default.object]).isRequired,width:o.default.number.isRequired,height:o.default.number.isRequired,groupHeights:o.default.array.isRequired,keys:o.default.object.isRequired,groupRenderer:o.default.func,isRightSidebar:o.default.bool})},1412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(80))&&r.__esModule?r:{default:r},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2)),a=n(821),s=n(853);function u(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){m(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={canvasTimeStart:o.default.number.isRequired,canvasTimeEnd:o.default.number.isRequired,canvasWidth:o.default.number.isRequired,lineCount:o.default.number.isRequired,minUnit:o.default.string.isRequired,timeSteps:o.default.object.isRequired,height:o.default.number.isRequired,verticalLineClassNamesForTime:o.default.func},g=function(e){function t(){return f(this,t),p(this,h(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,(r=[{key:"shouldComponentUpdate",value:function(e){return!(e.canvasTimeStart===this.props.canvasTimeStart&&e.canvasTimeEnd===this.props.canvasTimeEnd&&e.canvasWidth===this.props.canvasWidth&&e.lineCount===this.props.lineCount&&e.minUnit===this.props.minUnit&&e.timeSteps===this.props.timeSteps&&e.height===this.props.height&&e.verticalLineClassNamesForTime===this.props.verticalLineClassNamesForTime)}},{key:"render",value:function(){var e=this.props,t=e.canvasTimeStart,n=e.canvasTimeEnd,r=(e.canvasWidth,e.minUnit),o=e.timeSteps,s=e.height,u=e.verticalLineClassNamesForTime,l=e.getLeftOffsetFromDate,c=[];return(0,a.iterateTimes)(t,n,r,o,(function(e,t){var n=e.get("day"===r?"date":r)===("day"===r?1:0),o=[];u&&(o=u(1e3*e.unix(),1e3*t.unix()-1));var a="rct-vl"+(n?" rct-vl-first":"")+("day"===r||"hour"===r||"minute"===r?" rct-day-".concat(e.day()," "):"")+o.join(" "),f=l(e.valueOf()),d=l(t.valueOf());c.push(i.default.createElement("div",{key:"line-".concat(e.valueOf()),className:a,style:{pointerEvents:"none",top:"0px",left:"".concat(f,"px"),width:"".concat(d-f,"px"),height:"".concat(s,"px")}}))})),i.default.createElement("div",{className:"rct-vertical-lines"},c)}}])&&d(n.prototype,r),o&&d(n,o),t}(i.Component);m(g,"propTypes",u({},y,{getLeftOffsetFromDate:o.default.func.isRequired}));var b=function(e){var t=l({},e);return i.default.createElement(s.TimelineStateConsumer,null,(function(e){var n=e.getLeftOffsetFromDate;return i.default.createElement(g,l({getLeftOffsetFromDate:n},t))}))};b.defaultProps=u({},y);var O=b;t.default=O},1413:function(e,t,n){"use strict";t.__esModule=!0;var r=n(2),o=(a(r),a(n(80))),i=a(n(1183));a(n(976));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}t.default=function(e,t){var n,a,f="__create-react-context-"+(0,i.default)()+"__",d=function(e){function n(){var t,r;s(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=r=u(this,e.call.apply(e,[this].concat(i))),r.emitter=c(r.props.value),u(r,t)}return l(n,e),n.prototype.getChildContext=function(){var e;return(e={})[f]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((i=n)===(a=r)?0!==i||1/i===1/a:i!==i&&a!==a)?o=0:(o="function"===typeof t?t(n,r):1073741823,0!==(o|=0)&&this.emitter.set(e.value,o))}var i,a},n.prototype.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[f]=o.default.object.isRequired,n);var p=function(t){function n(){var e,r;s(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=u(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!==((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},u(r,e)}return l(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},n.prototype.componentDidMount=function(){this.context[f]&&this.context[f].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},n.prototype.componentWillUnmount=function(){this.context[f]&&this.context[f].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[f]?this.context[f].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((a={})[f]=o.default.object,a),{Provider:d,Consumer:p}},e.exports=t.default},1414:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(80)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2)),i=a(n(1415));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p,h,v,m=function(e){function t(){return u(this,t),c(this,f(t).apply(this,arguments))}var n,r,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(r=[{key:"shouldComponentUpdate",value:function(e){return!(e.canvasWidth===this.props.canvasWidth&&e.lineCount===this.props.lineCount&&e.groupHeights===this.props.groupHeights&&e.groups===this.props.groups)}},{key:"render",value:function(){for(var e=this.props,t=e.canvasWidth,n=e.lineCount,r=e.groupHeights,a=e.onRowClick,s=e.onRowDoubleClick,u=e.clickTolerance,l=e.groups,c=e.horizontalLineClassNamesForGroup,f=e.onRowContextClick,d=[],p=function(e){d.push(o.default.createElement(i.default,{clickTolerance:u,onContextMenu:function(t){return f(t,e)},onClick:function(t){return a(t,e)},onDoubleClick:function(t){return s(t,e)},key:"horizontal-line-".concat(e),isEvenRow:e%2===0,group:l[e],horizontalLineClassNamesForGroup:c,style:{width:"".concat(t,"px"),height:"".concat(r[e],"px")}}))},h=0;h<n;h++)p(h);return o.default.createElement("div",{className:"rct-horizontal-lines"},d)}}])&&l(n.prototype,r),a&&l(n,a),t}(o.Component);t.default=m,p=m,h="propTypes",v={canvasWidth:r.default.number.isRequired,lineCount:r.default.number.isRequired,groupHeights:r.default.array.isRequired,onRowClick:r.default.func.isRequired,onRowDoubleClick:r.default.func.isRequired,clickTolerance:r.default.number.isRequired,groups:r.default.array.isRequired,horizontalLineClassNamesForGroup:r.default.func,onRowContextClick:r.default.func.isRequired},h in p?Object.defineProperty(p,h,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[h]=v},1415:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2)),o=a(n(80)),i=a(n(1416));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p,h,v,m=function(e){function t(){return u(this,t),c(this,f(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.onContextMenu,n=e.onDoubleClick,o=e.isEvenRow,a=e.style,s=e.onClick,u=e.clickTolerance,l=e.horizontalLineClassNamesForGroup,c=e.group,f=[];return l&&(f=l(c)),r.default.createElement(i.default,{clickTolerance:u,onClick:s},r.default.createElement("div",{onContextMenu:t,onDoubleClick:n,className:(o?"rct-hl-even ":"rct-hl-odd ")+(f?f.join(" "):""),style:a}))}}])&&l(n.prototype,o),a&&l(n,a),t}(r.Component);p=m,h="propTypes",v={onClick:o.default.func.isRequired,onDoubleClick:o.default.func.isRequired,onContextMenu:o.default.func.isRequired,isEvenRow:o.default.bool.isRequired,style:o.default.object.isRequired,clickTolerance:o.default.number.isRequired,group:o.default.object.isRequired,horizontalLineClassNamesForGroup:o.default.func},h in p?Object.defineProperty(p,h,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[h]=v;var y=m;t.default=y},1416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2)),i=(r=n(80))&&r.__esModule?r:{default:r};function a(e){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==a(t)&&"function"!==typeof t?f(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function t(){var e,n;s(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return p(f(n=l(this,(e=c(t)).call.apply(e,[this].concat(o)))),"handleMouseDown",(function(e){n.originClickX=e.clientX})),p(f(n),"handleMouseUp",(function(e){Math.abs(n.originClickX-e.clientX)>n.props.clickTolerance&&(n.cancelClick=!0)})),p(f(n),"handleClick",(function(e){n.cancelClick||n.props.onClick(e),n.cancelClick=!1,n.originClickX=null})),n}var n,r,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=o.default.Children.only(this.props.children);return o.default.cloneElement(e,{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick})}}])&&u(n.prototype,r),i&&u(n,i),t}(o.Component);p(h,"propTypes",{children:i.default.element.isRequired,onClick:i.default.func.isRequired,clickTolerance:i.default.number.isRequired});var v=h;t.default=v},1417:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2)),i=(r=n(80))&&r.__esModule?r:{default:r},a=n(1060);function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?c(e):t}(this,l(t).call(this)),d(c(e),"handleScroll",(function(){var t=e.scrollComponent.scrollLeft;e.props.onScroll(t)})),d(c(e),"refHandler",(function(t){e.scrollComponent=t,e.props.scrollRef(t),t&&t.addEventListener("wheel",e.handleWheel,{passive:!1})})),d(c(e),"handleWheel",(function(t){e.props.traditionalZoom;if(t.ctrlKey||t.metaKey||t.altKey){t.preventDefault();var n=(0,a.getParentPosition)(t.currentTarget),r=t.clientX-n.x,o=t.ctrlKey?10:t.metaKey?3:1;e.props.onWheelZoom(o,r,t.deltaY)}else t.shiftKey&&(t.preventDefault(),e.props.onScroll(e.scrollComponent.scrollLeft+(t.deltaY||t.deltaX)))})),d(c(e),"handleMouseDown",(function(t){0===t.button&&(e.dragStartPosition=t.pageX,e.dragLastPosition=t.pageX,e.setState({isDragging:!0}))})),d(c(e),"handleMouseMove",(function(t){e.state.isDragging&&!e.props.isInteractingWithItem&&(e.props.onScroll(e.scrollComponent.scrollLeft+e.dragLastPosition-t.pageX),e.dragLastPosition=t.pageX)})),d(c(e),"handleMouseUp",(function(){e.dragStartPosition=null,e.dragLastPosition=null,e.setState({isDragging:!1})})),d(c(e),"handleMouseLeave",(function(){e.dragStartPosition=null,e.dragLastPosition=null,e.setState({isDragging:!1})})),d(c(e),"handleTouchStart",(function(t){if(2===t.touches.length)t.preventDefault(),e.lastTouchDistance=Math.abs(t.touches[0].screenX-t.touches[1].screenX),e.singleTouchStart=null,e.lastSingleTouch=null;else if(1===t.touches.length){t.preventDefault();var n=t.touches[0].clientX,r=t.touches[0].clientY;e.lastTouchDistance=null,e.singleTouchStart={x:n,y:r,screenY:window.pageYOffset},e.lastSingleTouch={x:n,y:r,screenY:window.pageYOffset}}})),d(c(e),"handleTouchMove",(function(t){var n=e.props,r=n.isInteractingWithItem,o=n.width,i=n.onZoom;if(r)t.preventDefault();else if(e.lastTouchDistance&&2===t.touches.length){t.preventDefault();var s=Math.abs(t.touches[0].screenX-t.touches[1].screenX),u=(0,a.getParentPosition)(t.currentTarget),l=(t.touches[0].screenX+t.touches[1].screenX)/2-u.x;0!==s&&0!==e.lastTouchDistance&&(i(e.lastTouchDistance/s,l/o),e.lastTouchDistance=s)}else if(e.lastSingleTouch&&1===t.touches.length){t.preventDefault();var c=t.touches[0].clientX,f=t.touches[0].clientY,d=c-e.lastSingleTouch.x,p=c-e.singleTouchStart.x,h=f-e.singleTouchStart.y;e.lastSingleTouch={x:c,y:f};var v=3*Math.abs(p)>Math.abs(h),m=3*Math.abs(h)>Math.abs(p);0!==d&&v&&e.props.onScroll(e.scrollComponent.scrollLeft-d),m&&window.scrollTo(window.pageXOffset,e.singleTouchStart.screenY-h)}})),d(c(e),"handleTouchEnd",(function(){e.lastTouchDistance&&(e.lastTouchDistance=null),e.lastSingleTouch&&(e.lastSingleTouch=null,e.singleTouchStart=null)})),e.state={isDragging:!1},e}var n,r,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(r=[{key:"componentWillUnmount",value:function(){this.scrollComponent&&this.scrollComponent.removeEventListener("wheel",this.handleWheel)}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=e.children,i=this.state.isDragging,a={width:"".concat(t,"px"),height:"".concat(n+20,"px"),cursor:i?"move":"default",position:"relative"};return o.default.createElement("div",{ref:this.refHandler,className:"rct-scroll",style:a,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onScroll:this.handleScroll},r)}}])&&u(n.prototype,r),i&&u(n,i),t}(o.Component);d(p,"propTypes",{children:i.default.element.isRequired,width:i.default.number.isRequired,height:i.default.number.isRequired,traditionalZoom:i.default.bool.isRequired,scrollRef:i.default.func.isRequired,isInteractingWithItem:i.default.bool.isRequired,onZoom:i.default.func.isRequired,onWheelZoom:i.default.func.isRequired,onScroll:i.default.func.isRequired});var h=p;t.default=h},1418:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(2)),o=u(n(80)),i=n(1061),a=u(n(1419)),s=n(853);function u(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?v(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g={position:"absolute",left:0,right:0,top:0,bottom:0},b=function(e){function t(){var e,n;f(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return y(v(n=p(this,(e=h(t)).call.apply(e,[this].concat(o)))),"handleMouseMove",(function(e){if(null!=n.subscription){var t=e.pageX-n.containerEl.getBoundingClientRect().left,r=n.props.getDateFromLeftOffsetPosition(t);n.subscription({leftOffset:t,date:r,isCursorOverCanvas:!0})}})),y(v(n),"handleMouseLeave",(function(){null!=n.subscription&&n.subscription({leftOffset:0,date:0,isCursorOverCanvas:!1})})),y(v(n),"handleMouseMoveSubscribe",(function(e){return n.subscription=e,function(){n.subscription=null}})),y(v(n),"state",{subscribeToMouseOver:n.handleMouseMoveSubscribe}),n}var n,o,s;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this;return r.default.createElement(i.MarkerCanvasProvider,{value:this.state},r.default.createElement("div",{style:g,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,ref:function(t){return e.containerEl=t}},r.default.createElement(a.default,null),this.props.children))}}])&&d(n.prototype,o),s&&d(n,s),t}(r.default.Component);y(b,"propTypes",{getDateFromLeftOffsetPosition:o.default.func.isRequired,children:o.default.node});var O=function(e){return r.default.createElement(s.TimelineStateConsumer,null,(function(t){var n=t.getDateFromLeftOffsetPosition;return r.default.createElement(b,l({getDateFromLeftOffsetPosition:n},e))}))};t.default=O},1419:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(2)),o=n(875),i=n(914),a=c(n(1420)),s=c(n(1421)),u=n(853),l=c(n(1422));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(){return r.default.createElement(u.TimelineStateConsumer,null,(function(e){var t=e.getLeftOffsetFromDate;return r.default.createElement(o.TimelineMarkersConsumer,null,(function(e){return e.markers.map((function(e){switch(e.type){case i.TimelineMarkerType.Today:return r.default.createElement(a.default,{key:e.id,getLeftOffsetFromDate:t,renderer:e.renderer,interval:e.interval});case i.TimelineMarkerType.Custom:return r.default.createElement(s.default,{key:e.id,renderer:e.renderer,date:e.date,getLeftOffsetFromDate:t});case i.TimelineMarkerType.Cursor:return r.default.createElement(l.default,{key:e.id,renderer:e.renderer,getLeftOffsetFromDate:t});default:return null}}))}))}))};t.default=f},1420:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(2)),o=a(n(80)),i=n(965);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?d(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,i.createDefaultRenderer)("default-today-line"),m=function(e){function t(){var e,n;u(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return h(d(n=c(this,(e=f(t)).call.apply(e,[this].concat(o)))),"state",{date:Date.now()}),n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.intervalToken=this.createIntervalUpdater(this.props.interval)}},{key:"componentDidUpdate",value:function(e){e.interval!==this.props.interval&&(clearInterval(this.intervalToken),this.intervalToken=this.createIntervalUpdater(this.props.interval))}},{key:"createIntervalUpdater",value:function(e){var t=this;return setInterval((function(){t.setState({date:Date.now()})}),e)}},{key:"componentWillUnmount",value:function(){clearInterval(this.intervalToken)}},{key:"render",value:function(){var e=this.state.date,t=this.props.getLeftOffsetFromDate(e),n=(0,i.createMarkerStylesWithLeftOffset)(t);return this.props.renderer({styles:n,date:e})}}])&&l(n.prototype,r),o&&l(n,o),t}(r.default.Component);h(m,"propTypes",{getLeftOffsetFromDate:o.default.func.isRequired,renderer:o.default.func,interval:o.default.number.isRequired}),h(m,"defaultProps",{renderer:v});var y=m;t.default=y},1421:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(2)),o=a(n(80)),i=n(965);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(0,i.createDefaultRenderer)("default-customer-marker-id"),v=function(e){function t(){return u(this,t),c(this,f(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props.date,t=this.props.getLeftOffsetFromDate(e),n=(0,i.createMarkerStylesWithLeftOffset)(t);return this.props.renderer({styles:n,date:e})}}])&&l(n.prototype,r),o&&l(n,o),t}(r.default.Component);p(v,"propTypes",{getLeftOffsetFromDate:o.default.func.isRequired,renderer:o.default.func,date:o.default.number.isRequired}),p(v,"defaultProps",{renderer:h});var m=v;t.default=m},1422:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),o=s(n(80)),i=n(965),a=n(1061);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,i.createDefaultRenderer)("default-cursor-marker"),m=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?d(e):t}(this,f(t).call(this)),h(d(e),"handleCanvasMouseOver",(function(t){var n=t.leftOffset,r=t.date,o=t.isCursorOverCanvas;e.setState({leftOffset:n,date:r,isShowingCursor:o})})),e.state={leftOffset:0,date:0,isShowingCursor:!1},e}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.unsubscribe=this.props.subscribeToCanvasMouseOver(this.handleCanvasMouseOver)}},{key:"componentWillUnmount",value:function(){null!=this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)}},{key:"render",value:function(){var e=this.state,t=e.isShowingCursor,n=e.leftOffset,r=e.date;if(!t)return null;var o=(0,i.createMarkerStylesWithLeftOffset)(n);return this.props.renderer({styles:o,date:r})}}])&&c(n.prototype,r),o&&c(n,o),t}(r.default.Component);h(m,"propTypes",{subscribeToCanvasMouseOver:o.default.func.isRequired,renderer:o.default.func}),h(m,"defaultProps",{renderer:v});var y=function(e){return r.default.createElement(a.MarkerCanvasConsumer,null,(function(t){var n=t.subscribeToMouseOver;return r.default.createElement(m,u({subscribeToCanvasMouseOver:n},e))}))};y.displayName="CursorMarkerWrapper";var g=y;t.default=g},1423:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={addListener:function(e){e._resizeEventListener={handleEvent:function(){e.resize()}},window.addEventListener("resize",e._resizeEventListener)},removeListener:function(e){window.removeEventListener("resize",e._resizeEventListener)}};t.default=r},1424:function(e,t,n){"use strict";n.r(t);var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],i=t[n],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}t.default=function(e,t){var n;void 0===t&&(t=o);var r,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&n===this&&t(o,i)||(r=e.apply(this,o),a=!0,n=this,i=o),r}}},1425:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDateHeader=function(e){var t=e.headerContext,n=t.intervals,i=t.unit,s=e.getRootProps,u=e.getIntervalProps,l=e.showPeriod,c=e.data,f=c.style,d=c.intervalRenderer,p=c.className,h=c.getLabelFormat,v=c.unitProp,m=c.headerData;return r.default.createElement("div",a({className:p},s({style:f})),n.map((function(e){var t=h([e.startTime,e.endTime],i,e.labelWidth);return r.default.createElement(o.default,{key:"label-".concat(e.startTime.valueOf()),unit:i,interval:e,showPeriod:l,intervalText:t,primaryHeader:"primaryHeader"===v,getIntervalProps:u,intervalRenderer:d,headerData:m})})))};var r=i(n(2)),o=i(n(1426));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},1426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),o=s(n(80)),i=n(821),a=n(1059);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){y(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?v(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function t(){var e,n;f(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return y(v(n=p(this,(e=h(t)).call.apply(e,[this].concat(o)))),"onIntervalClick",(function(){var e=n.props,t=e.primaryHeader,r=e.interval,o=e.unit,a=e.showPeriod;if(t){var s=(0,i.getNextUnit)(o);a(r.startTime.clone().startOf(s),r.startTime.clone().endOf(s))}else a(r.startTime,r.endTime)})),y(v(n),"getIntervalProps",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c({},n.props.getIntervalProps(c({interval:n.props.interval},e)),{onClick:(0,a.composeEvents)(n.onIntervalClick,e.onClick)})})),n}var n,o,s;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.intervalText,n=e.interval,o=e.intervalRenderer,i=e.headerData,a=o;return a?r.default.createElement(a,{getIntervalProps:this.getIntervalProps,intervalContext:{interval:n,intervalText:t},data:i}):r.default.createElement("div",l({},this.getIntervalProps({}),{className:"rct-dateHeader ".concat(this.props.primaryHeader?"rct-dateHeader-primary":"")}),r.default.createElement("span",null,t))}}])&&d(n.prototype,o),s&&d(n,s),t}(r.default.PureComponent);y(g,"propTypes",{intervalRenderer:o.default.func,unit:o.default.string.isRequired,interval:o.default.object.isRequired,showPeriod:o.default.func.isRequired,intervalText:o.default.string.isRequired,primaryHeader:o.default.bool.isRequired,getIntervalProps:o.default.func.isRequired,headerData:o.default.object});var b=g;t.default=b},1427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e.children||null};t.default=r},1428:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),o=s(n(80)),i=n(875),a=n(914);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){return c(this,t),d(this,p(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){var e=this.props.subscribeMarker({type:a.TimelineMarkerType.Today,renderer:this.props.children,interval:this.props.interval}),t=e.unsubscribe,n=e.getMarker;this.unsubscribe=t,this.getMarker=n}},{key:"componentWillUnmount",value:function(){null!=this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)}},{key:"componentDidUpdate",value:function(e){if(e.interval!==this.props.interval&&this.getMarker){var t=this.getMarker();this.props.updateMarker(function(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}({},t,{interval:this.props.interval}))}}},{key:"render",value:function(){return null}}])&&f(n.prototype,r),o&&f(n,o),t}(r.default.Component);v(m,"propTypes",{subscribeMarker:o.default.func.isRequired,updateMarker:o.default.func.isRequired,interval:o.default.number,children:o.default.func}),v(m,"defaultProps",{interval:1e4});var y=function(e){return r.default.createElement(i.TimelineMarkersConsumer,null,(function(t){var n=t.subscribeMarker,o=t.updateMarker;return r.default.createElement(m,u({subscribeMarker:n,updateMarker:o},e))}))};y.displayName="TodayMarkerWrapper";var g=y;t.default=g},1429:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),o=s(n(80)),i=n(875),a=n(914);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){return c(this,t),d(this,p(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(r=[{key:"componentDidUpdate",value:function(e){if(e.date!==this.props.date&&this.getMarker){var t=this.getMarker();this.props.updateMarker(function(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}({},t,{date:this.props.date}))}}},{key:"componentDidMount",value:function(){var e=this.props.subscribeMarker({type:a.TimelineMarkerType.Custom,renderer:this.props.children,date:this.props.date}),t=e.unsubscribe,n=e.getMarker;this.unsubscribe=t,this.getMarker=n}},{key:"componentWillUnmount",value:function(){null!=this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)}},{key:"render",value:function(){return null}}])&&f(n.prototype,r),o&&f(n,o),t}(r.default.Component);v(m,"propTypes",{subscribeMarker:o.default.func.isRequired,updateMarker:o.default.func.isRequired,children:o.default.func,date:o.default.number.isRequired});var y=function(e){return r.default.createElement(i.TimelineMarkersConsumer,null,(function(t){var n=t.subscribeMarker,o=t.updateMarker;return r.default.createElement(m,u({subscribeMarker:n,updateMarker:o},e))}))};y.displayName="CustomMarkerWrapper";var g=y;t.default=g},1430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),o=s(n(80)),i=n(875),a=n(914);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v,m,y,g=function(e){function t(){return c(this,t),d(this,p(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){var e=this.props.subscribeMarker({type:a.TimelineMarkerType.Cursor,renderer:this.props.children}).unsubscribe;this.unsubscribe=e}},{key:"componentWillUnmount",value:function(){null!=this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)}},{key:"render",value:function(){return null}}])&&f(n.prototype,r),o&&f(n,o),t}(r.default.Component);v=g,m="propTypes",y={subscribeMarker:o.default.func.isRequired,children:o.default.func},m in v?Object.defineProperty(v,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[m]=y;var b=function(e){return r.default.createElement(i.TimelineMarkersConsumer,null,(function(t){var n=t.subscribeMarker;return r.default.createElement(g,u({subscribeMarker:n},e))}))};b.displayName="CursorMarkerWrapper";var O=b;t.default=O},1431:function(e,t,n){},618:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(655);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},650:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},655:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(650);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},749:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},821:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coordinateToTimeRatio=function(e,t,n){return(t-e)/n},t.calculateXPositionForTime=l,t.calculateTimeForXPosition=function(e,t,n,r){return(t-e)/n*r+e},t.iterateTimes=function(e,t,n,r,i){var a=(0,o.default)(e).startOf(n);if(r[n]&&r[n]>1){var s=a.get(n);a.set(n,s-s%r[n])}for(;a.valueOf()<t;){var u=(0,o.default)(a).add(r[n]||1,"".concat(n,"s"));i(a,u),a=u}},t.getMinUnit=function(e,t,n){var r={second:1e3,minute:60,hour:60,day:24,month:30,year:12},o="year",i=e;return Object.keys(r).some((function(e){var a=(i/=r[e])/n[e],s=n[e]&&n[e]>1?51:17;if(a<t/s)return o=e,!0})),o},t.getNextUnit=function(e){var t={second:"minute",minute:"hour",hour:"day",day:"month",month:"year",year:"year"};if(!t[e])throw new Error("unit ".concat(e," in not acceptable"));return t[e]},t.calculateInteractionNewTimes=c,t.calculateDimensions=f,t.getGroupOrders=d,t.getGroupedItems=p,t.getVisibleItems=h,t.collision=v,t.groupStack=m,t.groupNoStack=y,t.stackAll=b,t.stackGroup=O,t.stackTimelineItems=w,t.getCanvasWidth=_,t.getItemDimensions=S,t.getItemWithInteractions=T,t.getCanvasBoundariesFromVisibleTime=P,t.calculateScrollCanvas=function(e,t,n,r,o,i,s){var l=s.canvasTimeStart,c=s.visibleTimeEnd-s.visibleTimeStart,f={visibleTimeStart:e,visibleTimeEnd:t};if(!(t-e===c&&e>=l+.5*c&&e<=l+1.5*c&&t>=l+1.5*c&&t<=l+2.5*c)||n){var d=u(P(e,t),2),p=d[0],h=d[1];f.canvasTimeStart=p,f.canvasTimeEnd=h;var v=a({},s,{},f),m=_(v.width);Object.assign(f,w(r,o,m,v.canvasTimeStart,v.canvasTimeEnd,i.keys,i.lineHeight,i.itemHeightRatio,i.stackItems,v.draggingItem,v.resizingItem,v.dragTime,v.resizingEdge,v.resizeTime,v.newGroupOrder))}return f},t.minCellWidth=void 0;var r,o=(r=n(597))&&r.__esModule?r:{default:r},i=n(840);function a(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(e,t,n,r){return(r-e)*(n/(t-e))}function c(e){var t=e.itemTimeStart,n=e.itemTimeEnd,r=e.dragTime,o=e.isDragging,i=e.isResizing,a=e.resizingEdge,s=e.resizeTime;return[o?r:i&&"left"===a?s:t,o?r+(n-t):i&&"right"===a?s:n]}function f(e){var t=e.itemTimeStart,n=e.itemTimeEnd,r=e.canvasTimeStart,o=e.canvasTimeEnd,i=e.canvasWidth,a=n-t,s=Math.max(t,r),u=Math.min(n,o),c=l(r,o,i,s),f=l(r,o,i,u)-c;return{left:c,width:Math.max(f,3),collisionLeft:t,collisionWidth:a}}function d(e,t){for(var n=t.groupIdKey,r={},o=0;o<e.length;o++)r[(0,i._get)(e[o],n)]={index:o,group:e[o]};return r}function p(e,t){for(var n={},r=Object.keys(t),o=0;o<r.length;o++){var i=t[r[o]];n[o]={index:i.index,group:i.group,items:[]}}for(var a=0;a<e.length;a++)if(void 0!==e[a].dimensions.order){var s=n[e[a].dimensions.order.index];s&&s.items.push(e[a])}return n}function h(e,t,n,r){var o=r.itemTimeStartKey,a=r.itemTimeEndKey;return e.filter((function(e){return(0,i._get)(e,o)<=n&&(0,i._get)(e,a)>=t}))}t.minCellWidth=17;function v(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001,o=0;return e.collisionLeft+r<t.collisionLeft+t.collisionWidth&&e.collisionLeft+e.collisionWidth-r>t.collisionLeft&&e.top-o+r<t.top+t.height&&e.top+e.height+o-r>t.top}function m(e,t,n,r,o,i){var a=r,s=(e-t.dimensions.height)/2;if(t.dimensions.stack&&null===t.dimensions.top){t.dimensions.top=o+s,a=Math.max(a,e);do{for(var u=null,l=i-1;l>=0;l--){var c=n[l];if(null!==c.dimensions.top&&c.dimensions.stack&&v(t.dimensions,c.dimensions,e)){u=c;break}}null!=u&&(t.dimensions.top=u.dimensions.top+e,a=Math.max(a,t.dimensions.top+t.dimensions.height+s-o))}while(u)}return{groupHeight:a,verticalMargin:s,itemTop:t.dimensions.top}}function y(e,t,n,r){var o=(e-t.dimensions.height)/2;return null===t.dimensions.top&&(t.dimensions.top=r+o,n=Math.max(n,e)),{groupHeight:n,verticalMargin:0,itemTop:t.dimensions.top}}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return e+t}),0)}function b(e,t,n,r){var o=[],i=[],a=p(e,t);for(var s in a){var u=a[s],l=u.items,c=u.group,f=g(o),d=O(l,void 0!==c.stackItems?c.stackItems:r,n,f),h=d.groupHeight;d.verticalMargin;i.push(f),c.height?o.push(c.height):o.push(Math.max(h,n))}return{height:g(o),groupHeights:o,groupTops:i}}function O(e,t,n,r){for(var o=0,i=0,a=0;a<e.length;a++){var s={};o=(s=t?m(n,e[a],e,o,r,a):y(n,e[a],o,r)).groupHeight,i=s.verticalMargin}return{groupHeight:o,verticalMargin:i}}function w(e,t,n,r,o,i,a,s,u,l,c,f,p,v,m){var y=h(e,r,o,i).map((function(e){return T({item:e,keys:i,draggingItem:l,resizingItem:c,dragTime:f,resizingEdge:p,resizeTime:v,groups:t,newGroupOrder:m})}));if(0===t.length)return{dimensionItems:[],height:0,groupHeights:[],groupTops:[]};var g=d(t,i),O=y.map((function(e){return S({item:e,keys:i,canvasTimeStart:r,canvasTimeEnd:o,canvasWidth:n,groupOrders:g,lineHeight:a,itemHeightRatio:s})})).filter((function(e){return!!e})),w=b(O,g,a,u);return{dimensionItems:O,height:w.height,groupHeights:w.groupHeights,groupTops:w.groupTops}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return e*t}function S(e){var t=e.item,n=e.keys,r=e.canvasTimeStart,o=e.canvasTimeEnd,a=e.canvasWidth,s=e.groupOrders,u=e.lineHeight,l=e.itemHeightRatio,c=(0,i._get)(t,n.itemIdKey),d=f({itemTimeStart:(0,i._get)(t,n.itemTimeStartKey),itemTimeEnd:(0,i._get)(t,n.itemTimeEndKey),canvasTimeStart:r,canvasTimeEnd:o,canvasWidth:a});if(d)return d.top=null,d.order=s[(0,i._get)(t,n.itemGroupKey)],d.stack=!t.isOverlay,d.height=u*l,{id:c,dimensions:d}}function T(e){var t,n=e.item,r=e.keys,o=e.draggingItem,l=e.resizingItem,f=e.dragTime,d=e.resizingEdge,p=e.resizeTime,h=e.groups,v=e.newGroupOrder;if(!l&&!o)return n;var m=(0,i._get)(n,r.itemIdKey),y=m===o,g=m===l,b=u(c({itemTimeStart:(0,i._get)(n,r.itemTimeStartKey),itemTimeEnd:(0,i._get)(n,r.itemTimeEndKey),isDragging:y,isResizing:g,dragTime:f,resizingEdge:d,resizeTime:p}),2),O=b[0],w=b[1];return a({},n,(s(t={},r.itemTimeStartKey,O),s(t,r.itemTimeEndKey,w),s(t,r.itemGroupKey,y?(0,i._get)(h[v],r.groupIdKey):(0,i._get)(n,r.itemGroupKey)),t))}function P(e,t){var n=e-(t-e);return[n,n+3*(t-e)]}},840:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._get=i,t._length=a,t.arraysEqual=function(e,t){return a(e)===a(t)&&e.every((function(e,n){return e===i(t,n)}))},t.deepObjectCompare=function(e,t){return(0,o.default)(e,t)},t.keyBy=function(e,t){var n={};return e.forEach((function(e){n[e[t]]=e})),n},t.noop=function(){};var r,o=(r=n(1408))&&r.__esModule?r:{default:r};function i(e,t){return"function"===typeof e.get?e.get(t):e[t]}function a(e){return"function"===typeof e.count?e.count():e.length}},853:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineStateConsumer=t.TimelineStateProvider=void 0;var r=s(n(2)),o=s(n(80)),i=s(n(913)),a=n(821);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h={getTimelineState:function(){console.warn('"getTimelineState" default func is being used')},getLeftOffsetFromDate:function(){console.warn('"getLeftOffsetFromDate" default func is being used')},getDateFromLeftOffsetPosition:function(){console.warn('"getDateFromLeftOffsetPosition" default func is being used')},showPeriod:function(){console.warn('"showPeriod" default func is being used')}},v=(0,i.default)(h),m=v.Consumer,y=v.Provider,g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?f(e):t}(this,c(t).call(this,e)),p(f(n),"getTimelineState",(function(){var e=n.props;return{visibleTimeStart:e.visibleTimeStart,visibleTimeEnd:e.visibleTimeEnd,canvasTimeStart:e.canvasTimeStart,canvasTimeEnd:e.canvasTimeEnd,canvasWidth:e.canvasWidth,timelineUnit:e.timelineUnit,timelineWidth:e.timelineWidth}})),p(f(n),"getLeftOffsetFromDate",(function(e){var t=n.props,r=t.canvasTimeStart,o=t.canvasTimeEnd,i=t.canvasWidth;return(0,a.calculateXPositionForTime)(r,o,i,e)})),p(f(n),"getDateFromLeftOffsetPosition",(function(e){var t=n.props,r=t.canvasTimeStart,o=t.canvasTimeEnd,i=t.canvasWidth;return(0,a.calculateTimeForXPosition)(r,o,i,e)})),n.state={timelineContext:{getTimelineState:n.getTimelineState,getLeftOffsetFromDate:n.getLeftOffsetFromDate,getDateFromLeftOffsetPosition:n.getDateFromLeftOffsetPosition,showPeriod:n.props.showPeriod}},n}var n,o,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){return r.default.createElement(y,{value:this.state.timelineContext},this.props.children)}}])&&l(n.prototype,o),i&&l(n,i),t}(r.default.Component);t.TimelineStateProvider=g,p(g,"propTypes",{children:o.default.element.isRequired,visibleTimeStart:o.default.number.isRequired,visibleTimeEnd:o.default.number.isRequired,canvasTimeStart:o.default.number.isRequired,canvasTimeEnd:o.default.number.isRequired,canvasWidth:o.default.number.isRequired,showPeriod:o.default.func.isRequired,timelineUnit:o.default.string.isRequired,timelineWidth:o.default.number.isRequired});var b=m;t.TimelineStateConsumer=b},875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineMarkersConsumer=t.TimelineMarkersProvider=void 0;var r=s(n(2)),o=s(n(80)),i=s(n(913)),a=n(840);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){y(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?v(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g={markers:[],subscribeMarker:function(){return console.warn("default subscribe marker used"),a.noop}},b=(0,i.default)(g),O=b.Consumer,w=b.Provider,_=0,S=function(){return(_+=1)+1},T=function(e){function t(){var e,n;f(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return y(v(n=p(this,(e=h(t)).call.apply(e,[this].concat(o)))),"handleSubscribeToMarker",(function(e){return e=c({},e,{id:S()}),n.setState((function(t){return{markers:[].concat(l(t.markers),[e])}})),{unsubscribe:function(){n.setState((function(t){return{markers:t.markers.filter((function(t){return t.id!==e.id}))}}))},getMarker:function(){return e}}})),y(v(n),"handleUpdateMarker",(function(e){var t=n.state.markers.findIndex((function(t){return t.id===e.id}));t<0||n.setState((function(n){return{markers:[].concat(l(n.markers.slice(0,t)),[e],l(n.markers.slice(t+1)))}}))})),y(v(n),"state",{markers:[],subscribeMarker:n.handleSubscribeToMarker,updateMarker:n.handleUpdateMarker}),n}var n,o,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){return r.default.createElement(w,{value:this.state},this.props.children)}}])&&d(n.prototype,o),i&&d(n,i),t}(r.default.Component);t.TimelineMarkersProvider=T,y(T,"propTypes",{children:o.default.element.isRequired});var P=O;t.TimelineMarkersConsumer=P},913:function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(2)),o=i(n(1413));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},914:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineMarkerType=void 0;t.TimelineMarkerType={Today:"Today",Custom:"Custom",Cursor:"Cursor"}},915:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineHeadersConsumer=t.TimelineHeadersProvider=void 0;var r=s(n(2)),o=s(n(80)),i=s(n(913)),a=n(840);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h,v,m,y={registerScroll:function(){return console.warn("default registerScroll header used"),a.noop},rightSidebarWidth:0,leftSidebarWidth:150,timeSteps:{}},g=(0,i.default)(y),b=g.Consumer,O=g.Provider,w=function(e){function t(){return l(this,t),f(this,d(t).apply(this,arguments))}var n,o,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e={rightSidebarWidth:this.props.rightSidebarWidth,leftSidebarWidth:this.props.leftSidebarWidth,timeSteps:this.props.timeSteps,registerScroll:this.props.registerScroll};return r.default.createElement(O,{value:e},this.props.children)}}])&&c(n.prototype,o),i&&c(n,i),t}(r.default.Component);t.TimelineHeadersProvider=w,h=w,v="propTypes",m={children:o.default.element.isRequired,rightSidebarWidth:o.default.number,leftSidebarWidth:o.default.number.isRequired,timeSteps:o.default.object.isRequired,registerScroll:o.default.func.isRequired},v in h?Object.defineProperty(h,v,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[v]=m;var _=b;t.TimelineHeadersConsumer=_},965:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultRenderer=t.createMarkerStylesWithLeftOffset=void 0;var r,o=(r=n(2))&&r.__esModule?r:{default:r};function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={position:"absolute",top:0,bottom:0,width:"2px",backgroundColor:"black",pointerEvents:"none"};t.createMarkerStylesWithLeftOffset=function(e){return function(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}({},a,{left:e})};t.createDefaultRenderer=function(e){return function(e){var t=e.styles;return o.default.createElement("div",{style:t})}}},966:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2)),o=s(n(80)),i=n(915),a=n(1064);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){for(var t=1;t<arguments.length;t++)if(t%2){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){m(e,t,n[t])}))}else Object.defineProperties(e,Object.getOwnPropertyDescriptors(arguments[t]));return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?h(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(){var e,n;c(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return m(h(n=d(this,(e=p(t)).call.apply(e,[this].concat(o)))),"getRootProps",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,r=n.props.variant===a.RIGHT_VARIANT?n.props.rightSidebarWidth:n.props.leftSidebarWidth;return{style:l({},t,{width:r})}})),m(h(n),"getStateAndHelpers",(function(){return{getRootProps:n.getRootProps,data:n.props.headerData}})),n}var n,o,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.getStateAndHelpers(),t=this.props.children;return r.default.createElement(t,e)}}])&&f(n.prototype,o),i&&f(n,i),t}(r.default.PureComponent);m(y,"propTypes",{children:o.default.func.isRequired,rightSidebarWidth:o.default.number,leftSidebarWidth:o.default.number.isRequired,variant:o.default.string,headerData:o.default.object});var g=function(e){var t=e.children,n=e.variant,o=e.headerData;return r.default.createElement(i.TimelineHeadersConsumer,null,(function(e){var i=e.leftSidebarWidth,a=e.rightSidebarWidth;return r.default.createElement(y,{leftSidebarWidth:i,rightSidebarWidth:a,children:t,variant:n,headerData:o})}))};g.propTypes={children:o.default.func.isRequired,variant:o.default.string,headerData:o.default.object},g.defaultProps={variant:a.LEFT_VARIANT,children:function(e){var t=e.getRootProps;return r.default.createElement("div",t())}},g.secretKey="SidebarHeader";var b=g;t.default=b}}]);