text: /* interact.js 1.5.4 | https://raw.github.com/taye/interact.js/master/LICENSE */
  !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).interact=e()}}(function(){function e(t){var n;return function(e){return n||t(n={exports:{},parent:e},n.exports),n.exports}}var g=e(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scope=t.ActionName=void 0;var 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}}(tt),n=c(S),i=c(wt),a=c(_t),s=c(kt),l=c(Gt),u=c(ln),r=c(M({}));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="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 p(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}var b,w=o.win,O=o.browser,P=o.raf,_=o.Signals,x=o.events;(t.ActionName=b)||(t.ActionName=b={});var j=function(){function e(){var t=this;h(this,e),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.signals=new _,this.browser=O,this.events=x,this.utils=o,this.defaults=o.clone(i.default),this.Eventable=a.default,this.actions={names:[],methodDict:{},eventTypes:[]},this.InteractEvent=u.default,this.interactables=new l.default(this),this.documents=[],this._plugins=[],this._pluginMap={},this.onWindowUnload=function(e){return t.removeDocument(e.target)};var r=this;this.Interactable=function(){function n(){return h(this,n),p(this,v(n).apply(this,arguments))}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)}(n,s["default"]),m(n,[{key:"set",value:function(e){return d(v(n.prototype),"set",this).call(this,e),r.interactables.signals.fire("set",{options:e,interactable:this}),this}},{key:"unset",value:function(){d(v(n.prototype),"unset",this).call(this);for(var e=r.interactions.list.length-1;0<=e;e--){var t=r.interactions.list[e];t.interactable===this&&(t.stop(),r.interactions.signals.fire("destroy",{interaction:t}),t.destroy(),2<r.interactions.list.length&&r.interactions.list.splice(e,1))}r.interactables.signals.fire("unset",{interactable:this})}},{key:"_defaults",get:function(){return r.defaults}}]),n}()}return m(e,[{key:"init",value:function(e){return E(this,e)}},{key:"pluginIsInstalled",value:function(e){return this._pluginMap[e.id]||-1!==this._plugins.indexOf(e)}},{key:"usePlugin",value:function(e,t){return this.pluginIsInstalled(e)||(e.id&&(this._pluginMap[e.id]=e),e.install(this,t),this._plugins.push(e)),this}},{key:"addDocument",value:function(e,t){if(-1!==this.getDocIndex(e))return!1;var n=w.getWindow(e);t=t?o.extend({},t):{},this.documents.push({doc:e,options:t}),x.documents.push(e),e!==this.document&&x.add(n,"unload",this.onWindowUnload),this.signals.fire("add-document",{doc:e,window:n,scope:this,options:t})}},{key:"removeDocument",value:function(e){var t=this.getDocIndex(e),n=w.getWindow(e),r=this.documents[t].options;x.remove(n,"unload",this.onWindowUnload),this.documents.splice(t,1),x.documents.splice(t,1),this.signals.fire("remove-document",{doc:e,window:n,scope:this,options:r})}},{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 E(e,t){return w.init(t),n.default.init(t),O.init(t),P.init(t),x.init(t),e.usePlugin(r.default),e.document=t.document,e.window=t,e}t.Scope=j}),M=e(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var P=n(E),l=n(S),f=n(le),_=n(J),u=n(Je),c=n(a({})),o=n(Mn);function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return(r="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 x(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(e){o=!0,i=e}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,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"!==r(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function y(w,O){return function(e){var t=O.interactions.list,n=_.default.getPointerType(e),r=x(_.default.getEventTargets(e),2),o=r[0],i=r[1],a=[];if(/^touch/.test(e.type)){O.prevTouchTime=O.now();for(var s=0;s<e.changedTouches.length;s++){var l=e.changedTouches[s],u={pointer:l,pointerId:_.default.getPointerId(l),pointerType:n,eventType:e.type,eventTarget:o,curEventTarget:i,scope:O},c=j(u);a.push([u.pointer,u.eventTarget,u.curEventTarget,c])}}else{var f=!1;if(!P.default.supportsPointerEvent&&/mouse/.test(e.type)){for(var p=0;p<t.length&&!f;p++)f="mouse"!==t[p].pointerType&&t[p].pointerIsDown;f=f||O.now()-O.prevTouchTime<500||0===e.timeStamp}if(!f){var d={pointer:e,pointerId:_.default.getPointerId(e),pointerType:n,eventType:e.type,curEventTarget:i,eventTarget:o,scope:O},v=j(d);a.push([d.pointer,d.eventTarget,d.curEventTarget,v])}}for(var g=0;g<a.length;g++){var h=x(a[g],4),y=h[0],m=h[1],b=h[2];h[3][w](y,e,m,b)}}}function j(e){var t=e.pointerType,n=e.scope,r={interaction:o.default.search(e),searchDetails:e};return n.interactions.signals.fire("find",r),r.interaction||n.interactions.new({pointerType:t})}function m(e,t){var n=e.doc,r=e.scope,o=e.options,i=r.interactions.docEvents,a=0===t.indexOf("add")?f.default.add:f.default.remove;for(var s in r.browser.isIOS&&!o.events&&(o.events={passive:!1}),f.default.delegatedEvents)a(n,s,f.default.delegateListener),a(n,s,f.default.delegateUseCapture,!0);for(var l=o&&o.events,u=0;u<i.length;u++){var c=i[u];a(n,c.type,c.listener,l)}}var i={id:"core/interactions",install:function(o){for(var n=new u.default,e={},t=0;t<h.length;t++){var r=h[t];e[r]=y(r,o)}var i,a=P.default.pEventTypes;function s(){for(var e=0;e<o.interactions.list.length;e++){var t=o.interactions.list[e];if(t.pointerIsDown&&"touch"===t.pointerType&&!t._interacting)for(var n=function(){var n=t.pointers[r];o.documents.some(function(e){var t=e.doc;return(0,z.nodeContains)(t,n.downTarget)})||t.removePointer(n.pointer,n.event)},r=0;r<t.pointers.length;r++){n()}}}(i=l.default.PointerEvent?[{type:a.down,listener:s},{type:a.down,listener:e.pointerDown},{type:a.move,listener:e.pointerMove},{type:a.up,listener:e.pointerUp},{type:a.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:s},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}]).push({type:"blur",listener:function(e){for(var t=0;t<o.interactions.list.length;t++){o.interactions.list[t].documentBlur(e)}}}),o.signals.on("add-document",m),o.signals.on("remove-document",m),o.prevTouchTime=0,o.Interaction=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,v(e).apply(this,arguments))}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)}(e,c["default"]),function(e,t,n){t&&p(e.prototype,t),n&&p(e,n)}(e,[{key:"_now",value:function(){return o.now()}},{key:"pointerMoveTolerance",get:function(){return o.interactions.pointerMoveTolerance},set:function(e){o.interactions.pointerMoveTolerance=e}}]),e}(),o.interactions={signals:n,list:[],new:function(e){e.signals=n;var t=new o.Interaction(e);return o.interactions.list.push(t),t},listeners:e,docEvents:i,pointerMoveTolerance:1}},onDocSignal:m,doOnInteractions:y,methodNames:h};t.default=i}),a=e(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PointerInfo",{enumerable:!0,get:function(){return s.default}}),t.default=t.Interaction=t._ProxyMethods=t._ProxyValues=void 0;var n,u,r,c,o,f=l(tt),i=l(ln),s=(n=xn)&&n.__esModule?n:{default:n},a=g({});function l(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}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)}}t._ProxyValues=u,(r=u||(t._ProxyValues=u={})).interactable="",r.element="",r.prepared="",r.pointerIsDown="",r.pointerWasMoved="",r._proxy="",t._ProxyMethods=c,(o=c||(t._ProxyMethods=c={})).start="",o.move="",o.end="",o.stop="",o.interacting="";var d=function(){function l(e){var t=this,n=e.pointerType,r=e.signals;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.interactable=null,this.element=null,this.prepared={name:null,axis:null,edges:null},this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=null,this.simulation=null,this.doMove=f.warnOnce(function(e){this.move(e)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:f.pointer.newCoords(),prev:f.pointer.newCoords(),cur:f.pointer.newCoords(),delta:f.pointer.newCoords(),velocity:f.pointer.newCoords()},this._signals=r,this.pointerType=n;var o=this;this._proxy={};function i(e){Object.defineProperty(t._proxy,e,{get:function(){return o[e]}})}for(var a in u)i(a);function s(e){Object.defineProperty(t._proxy,e,{value:function(){return o[e].apply(o,arguments)}})}for(var a in c)s(a);this._signals.fire("new",{interaction:this})}return function(e,t,n){t&&p(e.prototype,t),n&&p(e,n)}(l,[{key:"pointerDown",value:function(e,t,n){var r=this.updatePointer(e,t,n,!0);this._signals.fire("down",{pointer:e,event:t,eventTarget:n,pointerIndex:r,interaction:this})}},{key:"start",value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(e.name===a.ActionName.Gesture?2:1)||!t.options[e.name].enabled)&&(f.copyAction(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges,this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:i.EventPhase.Start})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,t,n){this.simulation||this.modifiers&&this.modifiers.endPrevented||(this.updatePointer(e,t,n,!1),f.pointer.setCoords(this.coords.cur,this.pointers.map(function(e){return e.pointer}),this._now()));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=f.hypot(r,o)>this.pointerMoveTolerance);var a={pointer:e,pointerIndex:this.getPointerIndex(e),event:t,eventTarget:n,dx:r,dy:o,duplicate:i,interaction:this};i||(f.pointer.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),f.pointer.setCoordVelocity(this.coords.velocity,this.coords.delta)),this._signals.fire("move",a),i||(this.interacting()&&this.move(a),this.pointerWasMoved&&f.pointer.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){(e=f.extend({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase=i.EventPhase.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)),this._signals.fire(/cancel$/i.test(t.type)?"cancel":"up",{pointer:e,pointerIndex:o,event:t,eventTarget:n,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.pointerIsDown=!1,this.removePointer(e,t)}},{key:"documentBlur",value:function(e){this.end(e),this._signals.fire("blur",{event:e,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:i.EventPhase.End})),!(this._ending=!1)===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._signals.fire("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=f.pointer.getPointerId(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:f.arr.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=f.pointer.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 s.default(o,e,t,null,null),i=this.pointers.length,this.pointers.push(a)),r&&(this.pointerIsDown=!0,this.interacting()||(f.pointer.setCoords(this.coords.start,this.pointers.map(function(e){return e.pointer}),this._now()),f.pointer.copyCoords(this.coords.cur,this.coords.start),f.pointer.copyCoords(this.coords.prev,this.coords.start),f.pointer.pointerExtend(this.downPointer,e),this.downEvent=t,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._signals.fire("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._signals.fire("remove-pointer",{pointer:e,event:t,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,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){var o=this.prepared.name;return new i.default(this,e,o,t,this.element,null,n,r)}},{key:"_fireEvent",value:function(e){this.interactable.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;if(!1===this._signals.fire("before-action-".concat(n),e))return!1;var i=e.iEvent=this._createPreparedEvent(t,n,r,o),a=this.rect;if(a){var s=this.edges||this.prepared.edges||{left:!0,right:!0,top:!0,bottom:!0};s.top&&(a.top+=i.delta.y),s.bottom&&(a.bottom+=i.delta.y),s.left&&(a.left+=i.delta.x),s.right&&(a.right+=i.delta.x),a.width=a.right-a.left,a.height=a.bottom-a.top}return this._signals.fire("action-".concat(n),e),this._fireEvent(i),this._signals.fire("after-action-".concat(n),e),!0}},{key:"_now",value:function(){return Date.now()}},{key:"pointerMoveTolerance",get:function(){return 1}}]),l}(),v=t.Interaction=d;t.default=v}),s={};function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}return e}function n(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}Object.defineProperty(s,"__esModule",{value:!0}),s.contains=function(e,t){return-1!==e.indexOf(t)},s.remove=function(e,t){return e.splice(e.indexOf(t),1)},s.merge=t,s.from=function(e){return t([],e)},s.findIndex=n,s.find=function(e,t){return e[n(e,t)]};var S={};Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var r={init:function(e){var t=e;r.document=t.document,r.DocumentFragment=t.DocumentFragment||o,r.SVGElement=t.SVGElement||o,r.SVGSVGElement=t.SVGSVGElement||o,r.SVGElementInstance=t.SVGElementInstance||o,r.Element=t.Element||o,r.HTMLElement=t.HTMLElement||r.Element,r.Event=t.Event,r.Touch=t.Touch||o,r.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 o(){}var i=r;S.default=i;var l={};Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;l.default=function(e){return!(!e||!e.Window)&&e instanceof e.Window};var u={};Object.defineProperty(u,"__esModule",{value:!0}),u.init=d,u.getWindow=v,u.default=void 0;var c,f=(c=l)&&c.__esModule?c:{default:c};var p={realWindow:void 0,window:void 0,getWindow:v,init:d};function d(e){var t=(p.realWindow=e).document.createTextNode("");t.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(t)===t&&(e=e.wrap(e)),p.window=e}function v(e){return(0,f.default)(e)?e:(e.ownerDocument||e).defaultView||p.window}"undefined"==typeof window?(p.window=void 0,p.realWindow=void 0):d(window),p.init=d;var h=p;u.default=h;var y={};Object.defineProperty(y,"__esModule",{value:!0}),y.array=y.plainObject=y.element=y.string=y.bool=y.number=y.func=y.object=y.docFrag=y.window=void 0;var m=w(l),b=w(u);function w(e){return e&&e.__esModule?e:{default:e}}function O(e){return(O="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)}y.window=function(e){return e===b.default.window||(0,m.default)(e)};y.docFrag=function(e){return P(e)&&11===e.nodeType};var P=function(e){return!!e&&"object"===O(e)};y.object=P;function _(e){return"function"==typeof e}y.func=_;y.number=function(e){return"number"==typeof e};y.bool=function(e){return"boolean"==typeof e};y.string=function(e){return"string"==typeof e};y.element=function(e){if(!e||"object"!==O(e))return!1;var t=b.default.getWindow(e)||b.default.window;return/object|function/.test(O(t.Element))?e instanceof t.Element:1===e.nodeType&&"string"==typeof e.nodeName};y.plainObject=function(e){return P(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())};y.array=function(e){return P(e)&&void 0!==e.length&&_(e.splice)};var E={};Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var x=D(S),j=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}}(y),T=D(u);function D(e){return e&&e.__esModule?e:{default:e}}var k={init:function(e){var t=x.default.Element,n=T.default.window.navigator;k.supportsTouch="ontouchstart"in e||j.func(e.DocumentTouch)&&x.default.document instanceof e.DocumentTouch,k.supportsPointerEvent=!1!==n.pointerEnabled&&!!x.default.PointerEvent,k.isIOS=/iP(hone|od|ad)/.test(n.platform),k.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),k.isIe9=/MSIE 9/.test(n.userAgent),k.isOperaMobile="Opera"===n.appName&&k.supportsTouch&&/Presto/.test(n.userAgent),k.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",k.pEventTypes=k.supportsPointerEvent?x.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,k.wheelEvent="onmousewheel"in x.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null};var I=k;E.default=I;var z={};Object.defineProperty(z,"__esModule",{value:!0}),z.nodeContains=function(e,t){for(;t;){if(t===e)return!0;t=t.parentNode}return!1},z.closest=function(e,t){for(;R.element(e);){if(F(e,t))return e;e=N(e)}return null},z.parentNode=N,z.matchesSelector=F,z.indexOfDeepestElement=function(e){var t,n,r,o,i,a=[],s=[],l=e[0],u=l?0:-1;for(o=1;o<e.length;o++)if((t=e[o])&&t!==l)if(l){if(t.parentNode!==t.ownerDocument)if(l.parentNode!==t.ownerDocument){if(!a.length)for(n=l;W(n)&&W(n)!==n.ownerDocument;)a.unshift(n),n=W(n);if(l instanceof C.default.HTMLElement&&t instanceof C.default.SVGElement&&!(t instanceof C.default.SVGSVGElement)){if(t===l.parentNode)continue;n=t.ownerSVGElement}else n=t;for(s=[];n.parentNode!==n.ownerDocument;)s.unshift(n),n=W(n);for(i=0;s[i]&&s[i]===a[i];)i++;var c=[s[i-1],s[i],a[i]];for(r=c[0].lastChild;r;){if(r===c[1]){l=t,u=o,a=[];break}if(r===c[2])break;r=r.previousSibling}}else l=t,u=o}else l=t,u=o;return u},z.matchesUpTo=function(e,t,n){for(;R.element(e);){if(F(e,t))return!0;if((e=N(e))===n)return F(e,t)}return!1},z.getActualElement=function(e){return e instanceof C.default.SVGElementInstance?e.correspondingUseElement:e},z.getScrollXY=L,z.getElementClientRect=V,z.getElementRect=function(e){var t=V(e);if(!A.default.isIOS7&&t){var n=L(X.default.getWindow(e));t.left+=n.x,t.right+=n.x,t.top+=n.y,t.bottom+=n.y}return t},z.getPath=function(e){var t=[];for(;e;)t.push(e),e=N(e);return t},z.trySelector=function(e){return!!R.string(e)&&(C.default.document.querySelector(e),!0)};var A=Y(E),C=Y(S),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}}(y),X=Y(u);function Y(e){return e&&e.__esModule?e:{default:e}}function N(e){var t=e.parentNode;if(R.docFrag(t)){for(;(t=t.host)&&R.docFrag(t););return t}return t}function F(e,t){return X.default.window!==X.default.realWindow&&(t=t.replace(/\/deep\//g," ")),e[A.default.prefixedMatchesSelector](t)}var W=function(e){return e.parentNode?e.parentNode:e.host};function L(e){return{x:(e=e||X.default.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function V(e){var t=e instanceof C.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 q={};Object.defineProperty(q,"__esModule",{value:!0}),q.default=function e(t){var n={};for(var r in t){var o=t[r];U.plainObject(o)?n[r]=e(o):U.array(o)?n[r]=G.from(o):n[r]=o}return n};var G=B(s),U=B(y);function B(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}var H={};function $(e,t){for(var n in t){var r=$.prefixedPropREs,o=!1;for(var i in r)if(0===n.indexOf(i)&&r[i].test(n)){o=!0;break}o||"function"==typeof t[n]||(e[n]=t[n])}return e}Object.defineProperty(H,"__esModule",{value:!0}),H.default=void 0,$.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/};var K=$;H.default=K;var Q={};Object.defineProperty(Q,"__esModule",{value:!0}),Q.default=void 0;Q.default=function(e,t){return Math.sqrt(e*e+t*t)};var J={};Object.defineProperty(J,"__esModule",{value:!0}),J.default=void 0;var Z=ie(E),ee=ie(S),te=oe(z),ne=ie(Q),re=oe(y);function oe(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}function ie(e){return e&&e.__esModule?e:{default:e}}var ae={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},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},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},isNativePointer:function(e){return e instanceof ee.default.Event||e instanceof ee.default.Touch},getXY:function(e,t,n){return(n=n||{}).x=t[(e=e||"page")+"X"],n.y=t[e+"Y"],n},getPageXY:function(e,t){return t=t||{x:0,y:0},Z.default.isOperaMobile&&ae.isNativePointer(e)?(ae.getXY("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):ae.getXY("page",e,t),t},getClientXY:function(e,t){return t=t||{},Z.default.isOperaMobile&&ae.isNativePointer(e)?ae.getXY("screen",e,t):ae.getXY("client",e,t),t},getPointerId:function(e){return re.number(e.pointerId)?e.pointerId:e.identifier},setCoords:function(e,t,n){var r=1<t.length?ae.pointerAverage(t):t[0],o={};ae.getPageXY(r,o),e.page.x=o.x,e.page.y=o.y,ae.getClientXY(r,o),e.client.x=o.x,e.client.y=o.y,e.timeStamp=n},pointerExtend:ie(H).default,getTouchPair:function(e){var t=[];return re.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},pointerAverage:function(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},touchBBox:function(e){if(!(e.length||e.touches&&1<e.touches.length))return null;var t=ae.getTouchPair(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}},touchDistance:function(e,t){var n=t+"X",r=t+"Y",o=ae.getTouchPair(e),i=o[0][n]-o[1][n],a=o[0][r]-o[1][r];return(0,ne.default)(i,a)},touchAngle:function(e,t){var n=t+"X",r=t+"Y",o=ae.getTouchPair(e),i=o[1][n]-o[0][n],a=o[1][r]-o[0][r];return 180*Math.atan2(a,i)/Math.PI},getPointerType:function(e){return re.string(e.pointerType)?e.pointerType:re.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type)||e instanceof ee.default.Touch?"touch":"mouse"},getEventTargets:function(e){var t=re.func(e.composedPath)?e.composedPath():e.path;return[te.getActualElement(t?t[0]:e.target),te.getActualElement(e.currentTarget)]},newCoords:function(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},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}}}},se=ae;J.default=se;var le={};Object.defineProperty(le,"__esModule",{value:!0}),le.default=le.FakeEvent=void 0;var ue=ve(z),ce=ve(y),fe=de(H),pe=de(J);function de(e){return e&&e.__esModule?e:{default:e}}function ve(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}function ge(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 he(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(e){o=!0,i=e}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")}()}var ye=[],me=[],be={},we=[];function Oe(e,t,n,r){var o=je(r),i=ye.indexOf(e),a=me[i];a||(a={events:{},typeCount:0},i=ye.push(e)-1,me.push(a)),a.events[t]||(a.events[t]=[],a.typeCount++),(0,s.contains)(a.events[t],n)||(e.addEventListener(t,n,Me.supportsOptions?o:!!o.capture),a.events[t].push(n))}function Pe(e,t,n,r){var o=je(r),i=ye.indexOf(e),a=me[i];if(a&&a.events)if("all"!==t){if(a.events[t]){var s=a.events[t].length;if("all"===n){for(var l=0;l<s;l++)Pe(e,t,a.events[t][l],o);return}for(var u=0;u<s;u++)if(a.events[t][u]===n){e.removeEventListener(t,n,Me.supportsOptions?o:!!o.capture),a.events[t].splice(u,1);break}a.events[t]&&0===a.events[t].length&&(a.events[t]=null,a.typeCount--)}a.typeCount||(me.splice(i,1),ye.splice(i,1))}else for(t in a.events)a.events.hasOwnProperty(t)&&Pe(e,t,"all")}function _e(e,t){for(var n=je(t),r=new Ee(e),o=be[e.type],i=he(pe.default.getEventTargets(e),1)[0],a=i;ce.element(a);){for(var s=0;s<o.selectors.length;s++){var l=o.selectors[s],u=o.contexts[s];if(ue.matchesSelector(a,l)&&ue.nodeContains(u,i)&&ue.nodeContains(u,a)){var c=o.listeners[s];r.currentTarget=a;for(var f=0;f<c.length;f++){var p=he(c[f],3),d=p[0],v=p[1],g=p[2];v===!!n.capture&&g===n.passive&&d(r)}}}a=ue.parentNode(a)}}function xe(e){return _e.call(this,e,!0)}function je(e){return ce.object(e)?e:{capture:e}}var Ee=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.originalEvent=e,(0,fe.default)(this,e)}return function(e,t,n){t&&ge(e.prototype,t),n&&ge(e,n)}(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();le.FakeEvent=Ee;var Me={add:Oe,remove:Pe,addDelegate:function(e,t,n,r,o){var i=je(o);if(!be[n]){be[n]={contexts:[],listeners:[],selectors:[]};for(var a=0;a<we.length;a++){var s=we[a];Oe(s,n,_e),Oe(s,n,xe,!0)}}var l,u=be[n];for(l=u.selectors.length-1;0<=l&&(u.selectors[l]!==e||u.contexts[l]!==t);l--);-1===l&&(l=u.selectors.length,u.selectors.push(e),u.contexts.push(t),u.listeners.push([])),u.listeners[l].push([r,!!i.capture,i.passive])},removeDelegate:function(e,t,n,r,o){var i,a=je(o),s=be[n],l=!1;if(s)for(i=s.selectors.length-1;0<=i;i--)if(s.selectors[i]===e&&s.contexts[i]===t){for(var u=s.listeners[i],c=u.length-1;0<=c;c--){var f=he(u[c],3),p=f[0],d=f[1],v=f[2];if(p===r&&d===!!a.capture&&v===a.passive){u.splice(c,1),u.length||(s.selectors.splice(i,1),s.contexts.splice(i,1),s.listeners.splice(i,1),Pe(t,n,_e),Pe(t,n,xe,!0),s.selectors.length||(be[n]=null)),l=!0;break}}if(l)break}},delegateListener:_e,delegateUseCapture:xe,delegatedEvents:be,documents:we,supportsOptions:!1,supportsPassive:!1,_elements:ye,_targets:me,init:function(e){e.document.createElement("div").addEventListener("test",null,{get capture(){return Me.supportsOptions=!0},get passive(){return Me.supportsPassive=!0}})}},Se=Me;le.default=Se;var Te={};Object.defineProperty(Te,"__esModule",{value:!0}),Te.default=function(e,t){for(var n in t)e[n]=t[n];return e};var De={};Object.defineProperty(De,"__esModule",{value:!0}),De.getStringOptionResult=Ce,De.resolveRectLike=Re,De.rectToXY=Xe,De.xywhToTlbr=Ye,De.tlbrToXywh=Ne,De.default=void 0;var ke,Ie=(ke=Te)&&ke.__esModule?ke:{default:ke},ze=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}}(y);function Ae(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 Ce(e,t,n){return"parent"===e?(0,z.parentNode)(n):"self"===e?t.getRect(n):(0,z.closest)(n,e)}function Re(e,t,n,r){return ze.string(e)?e=Ce(e,t,n):ze.func(e)&&(e=e.apply(void 0,Ae(r))),ze.element(e)&&(e=(0,z.getElementRect)(e)),e}function Xe(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}}function Ye(e){return!e||"left"in e&&"top"in e||((e=(0,Ie.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}function Ne(e){return!e||"x"in e&&"y"in e||((e=(0,Ie.default)({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||e.right-e.x,e.height=e.height||e.bottom-e.y),e}var Fe={getStringOptionResult:Ce,resolveRectLike:Re,rectToXY:Xe,xywhToTlbr:Ye,tlbrToXywh:Ne};De.default=Fe;var We={};Object.defineProperty(We,"__esModule",{value:!0}),We.default=function(e,t,n){var r=e.options[n],o=r&&r.origin||e.options.origin,i=(0,De.resolveRectLike)(o,e,t,[e&&t]);return(0,De.rectToXY)(i)||{x:0,y:0}};var Le={};Object.defineProperty(Le,"__esModule",{value:!0}),Le.default=function n(t,r,o){o=o||{};Ge.string(t)&&-1!==t.search(" ")&&(t=Ue(t));if(Ge.array(t))return t.reduce(function(e,t){return(0,qe.default)(e,n(t,r,o))},o);Ge.object(t)&&(r=t,t="");if(Ge.func(r))o[t]=o[t]||[],o[t].push(r);else if(Ge.array(r))for(var e=0;e<r.length;e++){var i=r[e];n(t,i,o)}else if(Ge.object(r))for(var a in r){var s=Ue(a).map(function(e){return"".concat(t).concat(e)});n(s,r[a],o)}return o};var Ve,qe=(Ve=Te)&&Ve.__esModule?Ve:{default:Ve},Ge=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}}(y);function Ue(e){return e.trim().split(/ +/)}var Be={};Object.defineProperty(Be,"__esModule",{value:!0}),Be.default=void 0;var He,$e,Ke=0;var Qe={request:function(e){return He(e)},cancel:function(e){return $e(e)},init:function(e){if(He=e.requestAnimationFrame,$e=e.cancelAnimationFrame,!He)for(var t=["ms","moz","webkit","o"],n=0;n<t.length;n++){var r=t[n];He=e["".concat(r,"RequestAnimationFrame")],$e=e["".concat(r,"CancelAnimationFrame")]||e["".concat(r,"CancelRequestAnimationFrame")]}He||(He=function(e){var t=Date.now(),n=Math.max(0,16-(t-Ke)),r=setTimeout(function(){e(t+n)},n);return Ke=t+n,r},$e=function(e){return clearTimeout(e)})}};Be.default=Qe;var Je={};function Ze(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)}}Object.defineProperty(Je,"__esModule",{value:!0}),Je.default=void 0;var et=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}}return function(e,t,n){t&&Ze(e.prototype,t),n&&Ze(e,n)}(e,[{key:"on",value:function(e,t){this.listeners[e]?this.listeners[e].push(t):this.listeners[e]=[t]}},{key:"off",value:function(e,t){if(this.listeners[e]){var n=this.listeners[e].indexOf(t);-1!==n&&this.listeners[e].splice(n,1)}}},{key:"fire",value:function(e,t){var n=this.listeners[e];if(n)for(var r=0;r<n.length;r++){if(!1===(0,n[r])(t,e))return!1}}}]),e}();Je.default=et;var tt={};Object.defineProperty(tt,"__esModule",{value:!0}),tt.warnOnce=function(e,t){var n=!1;return function(){return n||(it.default.window.console.warn(t),n=!0),e.apply(this,arguments)}},tt._getQBezierValue=bt,tt.getQuadraticCurvePoint=function(e,t,n,r,o,i,a){return{x:bt(a,e,n,o),y:bt(a,t,r,i)}},tt.easeOutQuad=function(e,t,n,r){return-n*(e/=r)*(e-2)+t},tt.copyAction=function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},Object.defineProperty(tt,"win",{enumerable:!0,get:function(){return it.default}}),Object.defineProperty(tt,"browser",{enumerable:!0,get:function(){return at.default}}),Object.defineProperty(tt,"clone",{enumerable:!0,get:function(){return st.default}}),Object.defineProperty(tt,"events",{enumerable:!0,get:function(){return lt.default}}),Object.defineProperty(tt,"extend",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(tt,"getOriginXY",{enumerable:!0,get:function(){return ct.default}}),Object.defineProperty(tt,"hypot",{enumerable:!0,get:function(){return ft.default}}),Object.defineProperty(tt,"normalizeListeners",{enumerable:!0,get:function(){return pt.default}}),Object.defineProperty(tt,"pointer",{enumerable:!0,get:function(){return dt.default}}),Object.defineProperty(tt,"raf",{enumerable:!0,get:function(){return vt.default}}),Object.defineProperty(tt,"rect",{enumerable:!0,get:function(){return gt.default}}),Object.defineProperty(tt,"Signals",{enumerable:!0,get:function(){return ht.default}}),tt.is=tt.dom=tt.arr=void 0;var nt=mt(s);tt.arr=nt;var rt=mt(z);tt.dom=rt;var ot=mt(y);tt.is=ot;var it=yt(u),at=yt(E),st=yt(q),lt=yt(le),ut=yt(Te),ct=yt(We),ft=yt(Q),pt=yt(Le),dt=yt(J),vt=yt(Be),gt=yt(De),ht=yt(Je);function yt(e){return e&&e.__esModule?e:{default:e}}function mt(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}function bt(e,t,n,r){var o=1-e;return o*o*t+2*o*e*n+e*e*r}var wt={};Object.defineProperty(wt,"__esModule",{value:!0}),wt.default=wt.defaults=void 0;var Ot={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Pt=wt.defaults=Ot;wt.default=Pt;var _t={};Object.defineProperty(_t,"__esModule",{value:!0}),_t.default=void 0;var xt=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}}(s),jt=Mt(Te),Et=Mt(Le);function Mt(e){return e&&e.__esModule?e:{default:e}}function St(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 Tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e.immediatePropagationStopped)break;r(e)}}var Dt=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.options=(0,jt.default)({},e||{})}return function(e,t,n){t&&St(e.prototype,t),n&&St(e,n)}(t,[{key:"fire",value:function(e){var t,n=this.global;(t=this.types[e.type])&&Tt(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&Tt(e,t)}},{key:"on",value:function(e,t){var n=(0,Et.default)(e,t);for(e in n)this.types[e]=xt.merge(this.types[e]||[],n[e])}},{key:"off",value:function(e,t){var n=(0,Et.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)}}}}]),t}();_t.default=Dt;var kt={};Object.defineProperty(kt,"__esModule",{value:!0}),kt.default=kt.Interactable=void 0;var It=Wt(s),zt=Ft(E),At=Ft(q),Ct=Ft(le),Rt=Ft(Te),Xt=Wt(y),Yt=Ft(Le),Nt=Ft(_t);function Ft(e){return e&&e.__esModule?e:{default:e}}function Wt(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}function Lt(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)}}var Vt=function(){function r(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.events=new Nt.default,this._actions=t.actions,this.target=e,this._context=t.context||n,this._win=(0,u.getWindow)((0,z.trySelector)(e)?this._context:e),this._doc=this._win.document,this.set(t)}return function(e,t,n){t&&Lt(e.prototype,t),n&&Lt(e,n)}(r,[{key:"setOnEvents",value:function(e,t){return Xt.func(t.onstart)&&this.on("".concat(e,"start"),t.onstart),Xt.func(t.onmove)&&this.on("".concat(e,"move"),t.onmove),Xt.func(t.onend)&&this.on("".concat(e,"end"),t.onend),Xt.func(t.oninertiastart)&&this.on("".concat(e,"inertiastart"),t.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,t,n){(Xt.array(t)||Xt.object(t))&&this.off(e,t),(Xt.array(n)||Xt.object(n))&&this.on(e,n)}},{key:"setPerAction",value:function(e,t){var n=this._defaults;for(var r in t){var o=this.options[e],i=t[r],a=Xt.array(i);"listeners"===r&&this.updatePerActionListeners(e,o.listeners,i),a?o[r]=It.from(i):!a&&Xt.plainObject(i)?(o[r]=(0,Rt.default)(o[r]||{},(0,At.default)(i)),Xt.object(n.perAction[r])&&"enabled"in n.perAction[r]&&(o[r].enabled=!1!==i.enabled)):Xt.bool(i)&&Xt.object(n.perAction[r])?o[r].enabled=i:o[r]=i}}},{key:"getRect",value:function(e){return e=e||(Xt.element(this.target)?this.target:null),Xt.string(this.target)&&(e=e||this._context.querySelector(this.target)),(0,z.getElementRect)(e)}},{key:"rectChecker",value:function(e){return Xt.func(e)?(this.getRect=e,this):null===e?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,t){if((0,z.trySelector)(t)||Xt.object(t)){this.options[e]=t;for(var n=0;n<this._actions.names.length;n++){var r=this._actions.names[n];this.options[r][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,z.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||!!Xt.element(n)&&(Xt.string(e)?(0,z.matchesUpTo)(n,e,t):!!Xt.element(e)&&(0,z.nodeContains)(e,n))}},{key:"testIgnore",value:function(e,t,n){return!(!e||!Xt.element(n))&&(Xt.string(e)?(0,z.matchesUpTo)(n,e,t):!!Xt.element(e)&&(0,z.nodeContains)(e,n))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,t,n,r){Xt.object(t)&&!Xt.array(t)&&(r=n,n=null);var o="on"===e?"add":"remove",i=(0,Yt.default)(t,n);for(var a in i){"wheel"===a&&(a=zt.default.wheelEvent);for(var s=0;s<i[a].length;s++){var l=i[a][s];It.contains(this._actions.eventTypes,a)?this.events[e](a,l):Xt.string(this.target)?Ct.default["".concat(o,"Delegate")](this.target,this._context,a,l,r):Ct.default[o](this.target,a,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 Xt.object(e)||(e={}),this.options=(0,At.default)(t.base),this._actions.methodDict){var r=this._actions.methodDict[n];this.options[n]={},this.setPerAction(n,(0,Rt.default)((0,Rt.default)({},t.perAction),t.actions[n])),this[r](e[n])}for(var o in e)Xt.func(this[o])&&this[o](e[o]);return this}},{key:"unset",value:function(){if(Ct.default.remove(this.target,"all"),Xt.string(this.target))for(var e in Ct.default.delegatedEvents){var t=Ct.default.delegatedEvents[e];t.selectors[0]===this.target&&t.contexts[0]===this._context&&(t.selectors.splice(0,1),t.contexts.splice(0,1),t.listeners.splice(0,1),t.selectors.length||(t[e]=null)),Ct.default.remove(this._context,e,Ct.default.delegateListener),Ct.default.remove(this._context,e,Ct.default.delegateUseCapture,!0)}else Ct.default.remove(this.target,"all")}},{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}}]),r}(),qt=kt.Interactable=Vt;kt.default=qt;var Gt={};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=void 0;var Ut=Jt(s),Bt=Jt(z),Ht=Qt(Te),$t=Jt(y),Kt=Qt(Je);function Qt(e){return e&&e.__esModule?e:{default:e}}function Jt(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}function Zt(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)}}var en=function(){function t(e){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.scope=e,this.signals=new Kt.default,this.list=[],this.selectorMap={},this.signals.on("unset",function(e){var t=e.interactable,n=t.target,r=t._context,o=$t.string(n)?a.selectorMap[n]:n[a.scope.id],i=o.findIndex(function(e){return e.context===r});o[i]&&(o[i].context=null,o[i].interactable=null),o.splice(i,1)})}return function(e,t,n){t&&Zt(e.prototype,t),n&&Zt(e,n)}(t,[{key:"new",value:function(e,t){t=(0,Ht.default)(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document),r={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),$t.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.signals.fire("new",{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:"get",value:function(t,e){var n=e&&e.context||this.scope.document,r=$t.string(t),o=r?this.selectorMap[t]:t[this.scope.id];if(!o)return null;var i=Ut.find(o,function(e){return e.context===n&&(r||e.interactable.inContext(t))});return i&&i.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(($t.string(r.target)?$t.element(e)&&Bt.matchesSelector(e,r.target):e===r.target)&&r.inContext(e)&&(o=t(r)),void 0!==o)return o}}}]),t}();Gt.default=en;var tn,nn,rn={};function on(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)}}Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=rn.BaseEvent=rn.EventPhase=void 0,rn.EventPhase=tn,(nn=tn||(rn.EventPhase=tn={})).Start="start",nn.Move="move",nn.End="end",nn._NONE="";var an=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=e}return function(e,t,n){t&&on(e.prototype,t),n&&on(e,n)}(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"interaction",get:function(){return this._interaction._proxy}}]),t}(),sn=rn.BaseEvent=an;rn.default=sn;var ln={};Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=ln.InteractEvent=ln.EventPhase=void 0;var un,cn,fn=hn(Te),pn=hn(We),dn=hn(Q),vn=hn(rn),gn=hn(wt);function hn(e){return e&&e.__esModule?e:{default:e}}function yn(e){return(yn="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 mn(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){return(bn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function On(e,t){return(On=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}ln.EventPhase=un,(cn=un||(ln.EventPhase=un={})).Start="start",cn.Move="move",cn.End="end",cn._NONE="";var Pn=function(){function h(e,t,n,r,o,i,a,s){var l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),l=function(e,t){return!t||"object"!==yn(t)&&"function"!=typeof t?wn(e):t}(this,bn(h).call(this,e)),o=o||e.element;var u=e.interactable,c=(u&&u.options||gn.default).deltaSource,f=(0,pn.default)(u,o,n),p="start"===r,d="end"===r,v=p?wn(l):e.prevEvent,g=p?e.coords.start:d?{page:v.page,client:v.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;return l.page=(0,fn.default)({},g.page),l.client=(0,fn.default)({},g.client),l.rect=(0,fn.default)({},e.rect),l.timeStamp=g.timeStamp,d||(l.page.x-=f.x,l.page.y-=f.y,l.client.x-=f.x,l.client.y-=f.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.relatedTarget=i||null,l.preEnd=a,l.type=s||n+(r||""),l.interactable=u,l.t0=p?e.pointers[e.pointers.length-1].downTime:v.t0,l.x0=e.coords.start.page.x-f.x,l.y0=e.coords.start.page.y-f.y,l.clientX0=e.coords.start.client.x-f.x,l.clientY0=e.coords.start.client.y-f.y,l.delta=p||d?{x:0,y:0}:{x:l[c].x-v[c].x,y:l[c].y-v[c].y},l.dt=e.coords.delta.timeStamp,l.duration=l.timeStamp-l.t0,l.velocity=(0,fn.default)({},e.coords.velocity[c]),l.speed=(0,dn.default)(l.velocity.x,l.velocity.y),l.swipe=d||"inertiastart"===r?l.getSwipe():null,l}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&&On(e,t)}(h,vn["default"]),function(e,t,n){t&&mn(e.prototype,t),n&&mn(e,n)}(h,[{key:"getSwipe",value:function(){var e=this._interaction;if(e.prevEvent.speed<600||150<this.timeStamp-e.prevEvent.timeStamp)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}},{key:"pageX",get:function(){return this.page.x},set:function(e){this.page.x=e}},{key:"pageY",get:function(){return this.page.y},set:function(e){this.page.y=e}},{key:"clientX",get:function(){return this.client.x},set:function(e){this.client.x=e}},{key:"clientY",get:function(){return this.client.y},set:function(e){this.client.y=e}},{key:"dx",get:function(){return this.delta.x},set:function(e){this.delta.x=e}},{key:"dy",get:function(){return this.delta.y},set:function(e){this.delta.y=e}},{key:"velocityX",get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},{key:"velocityY",get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}]),h}(),_n=ln.InteractEvent=Pn;ln.default=_n;var xn={};Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=xn.PointerInfo=void 0;function jn(e,t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,jn),this.id=e,this.pointer=t,this.event=n,this.downTime=r,this.downTarget=o}var En=xn.PointerInfo=jn;xn.default=En;var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.default=void 0;var Sn=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}}(z);var Tn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e){for(var t=0;t<Tn.methodOrder.length;t++){var n;n=Tn.methodOrder[t];var r=Tn[n](e);if(r)return r}},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=Sn.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&&!Dn(s,n))continue;if(s.interacting())return s;t=t||s}}if(t)return t;for(var l=0;l<i.interactions.list.length;l++){var u=i.interactions.list[l];if(!(u.pointerType!==r||/down/i.test(o)&&u.simulation))return u}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(Dn(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(2<=o.pointers.length)continue;if(!o.interacting()&&t===o.pointerType)return o}return null}};function Dn(e,t){return e.pointers.some(function(e){return e.id===t})}var kn=Tn;Mn.default=kn;var In={};Object.defineProperty(In,"__esModule",{value:!0}),In.default=void 0;var zn=g({}),An=Rn(s),Cn=Rn(y);function Rn(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}function Xn(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 Yn(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}}}zn.ActionName.Drag="drag";var Nn={id:"actions/drag",install:function(e){var t=e.actions,n=e.Interactable,r=e.interactions,o=e.defaults;r.signals.on("before-action-move",Xn),r.signals.on("action-resume",Xn),r.signals.on("action-move",Yn),n.prototype.draggable=Nn.draggable,t[zn.ActionName.Drag]=Nn,t.names.push(zn.ActionName.Drag),An.merge(t.eventTypes,["dragstart","dragmove","draginertiastart","dragresume","dragend"]),t.methodDict.drag="draggable",o.actions.drag=Nn.defaults},draggable:function(e){return Cn.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):Cn.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:Xn,move:Yn,defaults:{startAxis:"xy",lockAxis:"xy"},checker:function(e,t,n){var r=n.options.drag;return r.enabled?{name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis}:null},getCursor:function(){return"move"}},Fn=Nn;In.default=Fn;var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.default=void 0;var Ln,Vn=(Ln=rn)&&Ln.__esModule?Ln:{default:Ln},qn=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}}(s);function Gn(e){return(Gn="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 Un(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 Bn(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 Hn(e,t){return!t||"object"!==Gn(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function $n(e){return($n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kn(e,t){return(Kn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qn=function(){function s(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(r=Hn(this,$n(s).call(this,t._interaction))).propagationStopped=!1,r.immediatePropagationStopped=!1;var o="dragleave"===n?e.prev:e.cur,i=o.element,a=o.dropzone;return r.type=n,r.target=i,r.currentTarget=i,r.dropzone=a,r.dragEvent=t,r.relatedTarget=t.target,r.draggable=t.interactable,r.timeStamp=t.timeStamp,r}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&&Kn(e,t)}(s,Vn["default"]),function(e,t,n){t&&Bn(e.prototype,t),n&&Bn(e,n)}(s,[{key:"reject",value:function(){var r=this,e=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&e.cur.dropzone===this.dropzone&&e.cur.element===this.target)if(e.prev.dropzone=this.dropzone,e.prev.element=this.target,e.rejected=!0,e.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var t=e.activeDrops,n=qn.findIndex(t,function(e){var t=e.dropzone,n=e.element;return t===r.dropzone&&n===r.target});e.activeDrops=[].concat(Un(t.slice(0,n)),Un(t.slice(n+1)));var o=new s(e,this.dragEvent,"dropdeactivate");o.dropzone=this.dropzone,o.target=this.target,this.dropzone.fire(o)}else this.dropzone.fire(new s(e,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),s}();Wn.default=Qn;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.default=void 0;var Zn=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}}(tt),er=nr(In),tr=nr(Wn);function nr(e){return e&&e.__esModule?e:{default:e}}function rr(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=r.dropzone,i=r.element;t.dropzone=o,t.target=i,o.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function or(e,t){for(var n=function(e,t){for(var n=e.interactables,r=[],o=0;o<n.list.length;o++){var i=n.list[o];if(i.options.drop.enabled){var a=i.options.drop.accept;if(!(Zn.is.element(a)&&a!==t||Zn.is.string(a)&&!Zn.dom.matchesSelector(t,a)||Zn.is.func(a)&&!a({dropzone:i,draggableElement:t})))for(var s=Zn.is.string(i.target)?i._context.querySelectorAll(i.target):Zn.is.array(i.target)?i.target:[i.target],l=0;l<s.length;l++){var u=s[l];u!==t&&r.push({dropzone:i,element:u})}}}return r}(e,t),r=0;r<n.length;r++){var o=n[r];o.rect=o.dropzone.getRect(o.element)}return n}function ir(e,t,n){for(var r=e.dropState,o=e.interactable,i=e.element,a=[],s=0;s<r.activeDrops.length;s++){var l=r.activeDrops[s],u=l.dropzone,c=l.element,f=l.rect;a.push(u.dropCheck(t,n,o,i,c,f)?c:null)}var p=Zn.dom.indexOfDeepestElement(a);return r.activeDrops[p]||null}function ar(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 tr.default(r,n,"dropactivate"),o.activate.target=null,o.activate.dropzone=null),"dragend"===n.type&&(o.deactivate=new tr.default(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 tr.default(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 tr.default(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),"dragend"===n.type&&r.cur.dropzone&&(o.drop=new tr.default(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),"dragmove"===n.type&&r.cur.dropzone&&(o.move=new tr.default(r,n,"dropmove"),(o.move.dragmove=n).dropzone=r.cur.dropzone)),o}function sr(e,t){var n=e.dropState,r=n.activeDrops,o=n.cur,i=n.prev;t.leave&&i.dropzone.fire(t.leave),t.move&&o.dropzone.fire(t.move),t.enter&&o.dropzone.fire(t.enter),t.drop&&o.dropzone.fire(t.drop),t.deactivate&&rr(r,t.deactivate),n.prev.dropzone=o.dropzone,n.prev.element=o.element}function lr(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=or(t,n.element));var a=r,s=ir(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=ar(n,0,a)}}var ur={id:"actions/drop",install:function(i){var e=i.actions,t=i.interact,n=i.Interactable,r=i.interactions,o=i.defaults;i.usePlugin(er.default),r.signals.on("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:null})}),r.signals.on("after-action-start",function(e){var t=e.interaction,n=e.event,r=e.iEvent;if("drag"===t.prepared.name){var o=t.dropState;o.activeDrops=null,o.events=null,o.activeDrops=or(i,t.element),o.events=ar(t,n,r),o.events.activate&&rr(o.activeDrops,o.events.activate)}}),r.signals.on("action-move",function(e){return lr(e,i)}),r.signals.on("action-end",function(e){return lr(e,i)}),r.signals.on("after-action-move",function(e){var t=e.interaction;"drag"===t.prepared.name&&(sr(t,t.dropState.events),t.dropState.events={})}),r.signals.on("after-action-end",function(e){var t=e.interaction;"drag"===t.prepared.name&&sr(t,t.dropState.events)}),r.signals.on("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)}}),n.prototype.dropzone=function(e){return function(e,t){if(Zn.is.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=Zn.normalizeListeners(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 Zn.is.func(t.ondrop)&&e.on("drop",t.ondrop),Zn.is.func(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),Zn.is.func(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),Zn.is.func(t.ondragenter)&&e.on("dragenter",t.ondragenter),Zn.is.func(t.ondragleave)&&e.on("dragleave",t.ondragleave),Zn.is.func(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:Zn.is.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}if(Zn.is.bool(t))return e.options.drop.enabled=t,e;return e.options.drop}(this,e)},n.prototype.dropCheck=function(e,t,n,r,o,i){return function(e,t,n,r,o,i,a){var s=!1;if(!(a=a||e.getRect(i)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,s,e,i,r,o);var l=e.options.drop.overlap;if("pointer"===l){var u=Zn.getOriginXY(r,o,"drag"),c=Zn.pointer.getPageXY(t);c.x+=u.x,c.y+=u.y;var f=c.x>a.left&&c.x<a.right,p=c.y>a.top&&c.y<a.bottom;s=f&&p}var d=r.getRect(o);if(d&&"center"===l){var v=d.left+d.width/2,g=d.top+d.height/2;s=v>=a.left&&v<=a.right&&g>=a.top&&g<=a.bottom}if(d&&Zn.is.number(l)){var h=Math.max(0,Math.min(a.right,d.right)-Math.max(a.left,d.left))*Math.max(0,Math.min(a.bottom,d.bottom)-Math.max(a.top,d.top))/(d.width*d.height);s=l<=h}e.options.drop.checker&&(s=e.options.drop.checker(t,n,s,e,i,r,o));return s}(this,e,t,n,r,o,i)},t.dynamicDrop=function(e){return Zn.is.bool(e)?(i.dynamicDrop=e,t):i.dynamicDrop},Zn.arr.merge(e.eventTypes,["dragenter","dragleave","dropactivate","dropdeactivate","dropmove","drop"]),e.methodDict.drop="dropzone",i.dynamicDrop=!1,o.actions.drop=ur.defaults},getActiveDrops:or,getDrop:ir,getDropEvents:ar,fireDropEvents:sr,defaults:{enabled:!1,accept:null,overlap:"pointer"}},cr=ur;Jn.default=cr;var fr={};Object.defineProperty(fr,"__esModule",{value:!0}),fr.default=void 0;var pr,dr=(pr=ln)&&pr.__esModule?pr:{default:pr},vr=g({}),gr=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}}(tt);vr.ActionName.Gesture="gesture";var hr={id:"actions/gesture",install:function(e){var t=e.actions,n=e.Interactable,r=e.interactions,o=e.defaults;n.prototype.gesturable=function(e){return gr.is.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):gr.is.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},r.signals.on("action-start",yr),r.signals.on("action-move",yr),r.signals.on("action-end",yr),r.signals.on("new",function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}}),t[vr.ActionName.Gesture]=hr,t.names.push(vr.ActionName.Gesture),gr.arr.merge(t.eventTypes,["gesturestart","gesturemove","gestureend"]),t.methodDict.gesture="gesturable",o.actions.gesture=hr.defaults},defaults:{},checker:function(e,t,n,r,o){return 2<=o.pointers.length?{name:"gesture"}:null},getCursor:function(){return""}};function yr(e){var t=e.interaction,n=e.iEvent,r=e.event,o=e.phase;if("gesture"===t.prepared.name){var i=t.pointers.map(function(e){return e.pointer}),a="start"===o,s="end"===o,l=t.interactable.options.deltaSource;if(n.touches=[i[0],i[1]],a)n.distance=gr.pointer.touchDistance(i,l),n.box=gr.pointer.touchBBox(i),n.scale=1,n.ds=0,n.angle=gr.pointer.touchAngle(i,l),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(s||r instanceof dr.default){var u=t.prevEvent;n.distance=u.distance,n.box=u.box,n.scale=u.scale,n.ds=0,n.angle=u.angle,n.da=0}else n.distance=gr.pointer.touchDistance(i,l),n.box=gr.pointer.touchBBox(i),n.scale=n.distance/t.gesture.startDistance,n.angle=gr.pointer.touchAngle(i,l),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,gr.is.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}var mr=hr;fr.default=mr;var br={};Object.defineProperty(br,"__esModule",{value:!0}),br.default=void 0;var wr,Or=g({}),Pr=Er(s),_r=Er(z),xr=(wr=Te)&&wr.__esModule?wr:{default:wr},jr=Er(y);function Er(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}var Mr={id:"actions/resize",install:function(t){var e=t.actions,n=t.browser,r=t.Interactable,o=t.interactions,i=t.defaults;o.signals.on("new",function(e){e.resizeAxes="xy"}),o.signals.on("action-start",Tr),o.signals.on("action-move",Dr),o.signals.on("action-start",kr),o.signals.on("action-move",kr),Mr.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),Mr.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(e){return function(e,t,n){if(jr.object(t))return e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),jr.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),jr.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:jr.bool(t.square)&&(e.options.resize.square=t.square),e;if(jr.bool(t))return e.options.resize.enabled=t,e;return e.options.resize}(this,e,t)},e[Or.ActionName.Resize]=Mr,e.names.push(Or.ActionName.Resize),Pr.merge(e.eventTypes,["resizestart","resizemove","resizeinertiastart","resizeresume","resizeend"]),e.methodDict.resize="resizable",i.actions.resize=Mr.defaults},defaults:{square:!(Or.ActionName.Resize="resize"),preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},checker:function(e,t,n,r,o,i){if(!i)return null;var a=(0,xr.default)({},o.coords.cur.page),s=n.options;if(s.resize.enabled){var l=s.resize,u={left:!1,right:!1,top:!1,bottom:!1};if(jr.object(l.edges)){for(var c in u)u[c]=Sr(c,l.edges[c],a,o._latestPointer.eventTarget,r,i,l.margin||this.defaultMargin);if(u.left=u.left&&!u.right,u.top=u.top&&!u.bottom,u.left||u.right||u.top||u.bottom)return{name:"resize",edges:u}}else{var f="y"!==s.resize.axis&&a.x>i.right-this.defaultMargin,p="x"!==s.resize.axis&&a.y>i.bottom-this.defaultMargin;if(f||p)return{name:"resize",axes:(f?"x":"")+(p?"y":"")}}}return null},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,r=e.name,o=Mr.cursors,i=null;if(n)i=o[r+n];else if(t){for(var a="",s=["top","bottom","left","right"],l=0;l<s.length;l++){var u=s[l];t[u]&&(a+=u)}i=o[a]}return i},defaultMargin:null};function Sr(e,t,n,r,o,i,a){if(!t)return!1;if(!0===t){var s=jr.number(i.width)?i.width:i.right-i.left,l=jr.number(i.height)?i.height:i.bottom-i.top;if(a=Math.min(a,("left"===e||"right"===e?s:l)/2),s<0&&("left"===e?e="right":"right"===e&&(e="left")),l<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e)return n.x<(0<=s?i.left:i.right)+a;if("top"===e)return n.y<(0<=l?i.top:i.bottom)+a;if("right"===e)return n.x>(0<=s?i.right:i.left)-a;if("bottom"===e)return n.y>(0<=l?i.bottom:i.top)-a}return!!jr.element(r)&&(jr.element(t)?t===r:_r.matchesUpTo(r,t,o))}function Tr(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=n.rect,o=n.interactable.options.resize;if(o.square||o.preserveAspectRatio){var i=(0,xr.default)({},n.prepared.edges);i.top=i.top||i.left&&!i.bottom,i.left=i.left||i.top&&!i.right,i.bottom=i.bottom||i.right&&!i.top,i.right=i.right||i.bottom&&!i.left,n.prepared._linkedEdges=i}else n.prepared._linkedEdges=null;o.preserveAspectRatio&&(n.resizeStartAspectRatio=r.width/r.height),n.resizeRects={start:r,current:(0,xr.default)({},r),inverted:(0,xr.default)({},r),previous:(0,xr.default)({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},t.rect=n.resizeRects.inverted,t.deltaRect=n.resizeRects.delta}}function Dr(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r,o=n.interactable.options.resize,i=o.invert,a="reposition"===i||"negate"===i,s=n.prepared.edges,l=n.resizeRects.start,u=n.resizeRects.current,c=n.resizeRects.inverted,f=n.resizeRects.delta,p=(0,xr.default)(n.resizeRects.previous,c),d=s,v=(0,xr.default)({},t.delta);if(o.preserveAspectRatio||o.square){var g=o.preserveAspectRatio?n.resizeStartAspectRatio:1;s=n.prepared._linkedEdges,d.left&&d.bottom||d.right&&d.top?v.y=-v.x/g:d.left||d.right?v.y=v.x/g:(d.top||d.bottom)&&(v.x=v.y*g)}if(s.top&&(u.top+=v.y),s.bottom&&(u.bottom+=v.y),s.left&&(u.left+=v.x),s.right&&(u.right+=v.x),a){if((0,xr.default)(c,u),"reposition"===i)c.top>c.bottom&&(r=c.top,c.top=c.bottom,c.bottom=r),c.left>c.right&&(r=c.left,c.left=c.right,c.right=r)}else c.top=Math.min(u.top,l.bottom),c.bottom=Math.max(u.bottom,l.top),c.left=Math.min(u.left,l.right),c.right=Math.max(u.right,l.left);for(var h in c.width=c.right-c.left,c.height=c.bottom-c.top,c)f[h]=c[h]-p[h];t.edges=n.prepared.edges,t.rect=c,t.deltaRect=f}}function kr(e){var t=e.interaction,n=e.iEvent;"resize"===e.action&&t.resizeAxes&&(t.interactable.options.resize.square?("y"===t.resizeAxes?n.delta.x=n.delta.y:n.delta.y=n.delta.x,n.axes="xy"):(n.axes=t.resizeAxes,"x"===t.resizeAxes?n.delta.y=0:"y"===t.resizeAxes&&(n.delta.x=0)))}var Ir=Mr;br.default=Ir;var zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.install=function(e){e.usePlugin(Rr.default),e.usePlugin(Xr.default),e.usePlugin(Ar.default),e.usePlugin(Cr.default)},Object.defineProperty(zr,"drag",{enumerable:!0,get:function(){return Ar.default}}),Object.defineProperty(zr,"drop",{enumerable:!0,get:function(){return Cr.default}}),Object.defineProperty(zr,"gesture",{enumerable:!0,get:function(){return Rr.default}}),Object.defineProperty(zr,"resize",{enumerable:!0,get:function(){return Xr.default}}),zr.id=void 0;var Ar=Yr(In),Cr=Yr(Jn),Rr=Yr(fr),Xr=Yr(br);function Yr(e){return e&&e.__esModule?e:{default:e}}zr.id="actions";var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.getContainer=Ur,Nr.getScroll=Br,Nr.getScrollSize=function(e){Lr.window(e)&&(e=window.document.body);return{x:e.scrollWidth,y:e.scrollHeight}},Nr.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=Ur(o.container,n.interactable,r),a=Br(i);t();var s=Br(i);return{x:s.x-a.x,y:s.y-a.y}},Nr.default=void 0;var Fr,Wr=qr(z),Lr=qr(y),Vr=(Fr=Be)&&Fr.__esModule?Fr:{default:Fr};function qr(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}var Gr={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:null,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){Gr.isScrolling=!0,Vr.default.cancel(Gr.i),(e.autoScroll=Gr).interaction=e,Gr.prevTime=Gr.now(),Gr.i=Vr.default.request(Gr.scroll)},stop:function(){Gr.isScrolling=!1,Gr.interaction&&(Gr.interaction.autoScroll=null),Vr.default.cancel(Gr.i)},scroll:function(){var e=Gr.interaction,t=e.interactable,n=e.element,r=t.options[Gr.interaction.prepared.name].autoScroll,o=Ur(r.container,t,n),i=Gr.now(),a=(i-Gr.prevTime)/1e3,s=r.speed*a;if(1<=s){var l={x:Gr.x*s,y:Gr.y*s};if(l.x||l.y){var u=Br(o);Lr.window(o)?o.scrollBy(l.x,l.y):o&&(o.scrollLeft+=l.x,o.scrollTop+=l.y);var c=Br(o),f={x:c.x-u.x,y:c.y-u.y};(f.x||f.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:f,interaction:e,container:o})}Gr.prevTime=i}Gr.isScrolling&&(Vr.default.cancel(Gr.i),Gr.i=Vr.default.request(Gr.scroll))},check:function(e,t){var n=e.options;return n[t].autoScroll&&n[t].autoScroll.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&Gr.check(t.interactable,t.prepared.name))if(t.simulation)Gr.x=Gr.y=0;else{var r,o,i,a,s=t.interactable,l=t.element,u=s.options[t.prepared.name].autoScroll,c=Ur(u.container,s,l);if(Lr.window(c))a=n.clientX<Gr.margin,r=n.clientY<Gr.margin,o=n.clientX>c.innerWidth-Gr.margin,i=n.clientY>c.innerHeight-Gr.margin;else{var f=Wr.getElementClientRect(c);a=n.clientX<f.left+Gr.margin,r=n.clientY<f.top+Gr.margin,o=n.clientX>f.right-Gr.margin,i=n.clientY>f.bottom-Gr.margin}Gr.x=o?1:a?-1:0,Gr.y=i?1:r?-1:0,Gr.isScrolling||(Gr.margin=u.margin,Gr.speed=u.speed,Gr.start(t))}}};function Ur(e,t,n){return(Lr.string(e)?(0,De.getStringOptionResult)(e,t,n):e)||(0,u.getWindow)(n)}function Br(e){return Lr.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var Hr={id:"auto-scroll",install:function(e){var t=e.interactions,n=e.defaults,r=e.actions;(e.autoScroll=Gr).now=function(){return e.now()},t.signals.on("new",function(e){e.interaction.autoScroll=null}),t.signals.on("destroy",function(e){e.interaction.autoScroll=null,Gr.stop(),Gr.interaction&&(Gr.interaction=null)}),t.signals.on("stop",Gr.stop),t.signals.on("action-move",function(e){return Gr.onInteractionMove(e)}),r.eventTypes.push("autoscroll"),n.perAction.autoScroll=Gr.defaults}};Nr.default=Hr;var $r={};Object.defineProperty($r,"__esModule",{value:!0}),$r.default=void 0;var Kr=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}}(y);function Qr(e,t,n,r){var o=this.defaultActionChecker(e,t,n,r);return this.options.actionChecker?this.options.actionChecker(e,t,o,this,r,n):o}function Jr(e){return Kr.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function Zr(e){return Kr.func(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}var eo={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable,o=e.actions;t.prototype.getAction=Qr,t.prototype.ignoreFrom=(0,tt.warnOnce)(function(e){return this._backCompatOption("ignoreFrom",e)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,tt.warnOnce)(function(e){return this._backCompatOption("allowFrom",e)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=Zr,t.prototype.styleCursor=Jr,t.prototype.defaultActionChecker=function(e,t,n,r){return function(e,t,n,r,o,i){for(var a=e.getRect(o),s=n.buttons||{0:1,1:4,3:8,4:16}[n.button],l=null,u=0;u<i.names.length;u++){var c=i.names[u];if((!r.pointerIsDown||!/mouse|pointer/.test(r.pointerType)||0!=(s&e.options[c].mouseButtons))&&(l=i[c].checker(t,n,e,o,r,a)))return l}}(this,e,t,n,r,o)}}};$r.default=eo;var to={};Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var no,ro=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}}(tt),oo=(no=$r)&&no.__esModule?no:{default:no};function io(e,t,n,r,o){return t.testIgnoreAllow(t.options[e.name],n,r)&&t.options[e.name].enabled&&uo(t,n,e,o)?e:null}function ao(e,t,n,r,o,i,a){for(var s=0,l=r.length;s<l;s++){var u=r[s],c=o[s],f=u.getAction(t,n,e,c);if(f){var p=io(f,u,c,i,a);if(p)return{action:p,interactable:u,element:c}}}return{action:null,interactable:null,element:null}}function so(e,t,n,r,o){var i=[],a=[],s=r;function l(e){i.push(e),a.push(s)}for(;ro.is.element(s);){i=[],a=[],o.interactables.forEachMatch(s,l);var u=ao(e,t,n,i,a,r,o);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;s=ro.dom.parentNode(s)}return{action:null,interactable:null,element:null}}function lo(e,t,n){var r=t.action,o=t.interactable,i=t.element;if(r=r||{},e.interactable&&e.interactable.options.styleCursor&&fo(e.element,"",n),e.interactable=o,e.element=i,ro.copyAction(e.prepared,r),e.rect=o&&r.name?o.getRect(i):null,"mouse"===e.pointerType&&o&&o.options.styleCursor){var a="";if(r){var s=o.options[r.name].cursorChecker;a=ro.is.func(s)?s(r,o,i):n.actions[r.name].getCursor(r)}fo(e.element,a||"",n)}n.autoStart.signals.fire("prepared",{interaction:e})}function uo(e,t,n,r){var o=e.options,i=o[n.name].max,a=o[n.name].maxPerElement,s=r.autoStart.maxInteractions,l=0,u=0,c=0;if(!(i&&a&&s))return!1;for(var f=0;f<r.interactions.list.length;f++){var p=r.interactions.list[f],d=p.prepared.name;if(p.interacting()){if(s<=++l)return!1;if(p.interactable===e){if(i<=(u+=d===n.name?1:0))return!1;if(p.element===t&&(c++,d===n.name&&a<=c))return!1}}}return 0<s}function co(e,t){return ro.is.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function fo(e,t,n){n.autoStart.cursorElement&&(n.autoStart.cursorElement.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}var po={id:"auto-start/base",install:function(i){var e=i.interact,t=i.interactions,n=i.defaults;i.usePlugin(oo.default),t.signals.on("down",function(e){var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget;t.interacting()||lo(t,so(t,n,r,o,i),i)}),t.signals.on("move",function(e){var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget;"mouse"!==t.pointerType||t.pointerIsDown||t.interacting()||lo(t,so(t,n,r,o,i),i)}),t.signals.on("move",function(e){var t=e.interaction;if(t.pointerIsDown&&!t.interacting()&&t.pointerWasMoved&&t.prepared.name){i.autoStart.signals.fire("before-start",e);var n=t.interactable;t.prepared.name&&n&&(n.options[t.prepared.name].manualStart||!uo(n,t.element,t.prepared,i)?t.stop():t.start(t.prepared,n,t.element))}}),t.signals.on("stop",function(e){var t=e.interaction,n=t.interactable;n&&n.options.styleCursor&&fo(t.element,"",i)}),n.base.actionChecker=null,n.base.styleCursor=!0,ro.extend(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(e){return co(e,i)},i.autoStart={maxInteractions:1/0,withinInteractionLimit:uo,cursorElement:null,signals:new ro.Signals}},maxInteractions:co,withinInteractionLimit:uo,validateAction:io};to.default=po;var vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=void 0;var go,ho=g({}),yo=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}}(y),mo=(go=to)&&go.__esModule?go:{default:go};var bo={id:"auto-start/dragAxis",install:function(d){d.autoStart.signals.on("before-start",function(e){var r=e.interaction,o=e.eventTarget,t=e.dx,n=e.dy;if("drag"===r.prepared.name){var i=Math.abs(t),a=Math.abs(n),s=r.interactable.options.drag,l=s.startAxis,u=a<i?"x":i<a?"y":"xy";if(r.prepared.axis="start"===s.lockAxis?u[0]:s.lockAxis,"xy"!=u&&"xy"!==l&&l!==u){r.prepared.name=null;function c(e){if(e!==r.interactable){var t=r.interactable.options.drag;if(!t.manualStart&&e.testIgnoreAllow(t,f,o)){var n=e.getAction(r.downPointer,r.downEvent,r,f);if(n&&n.name===ho.ActionName.Drag&&function(e,t){if(!t)return!1;var n=t.options[ho.ActionName.Drag].startAxis;return"xy"===e||"xy"===n||n===e}(u,e)&&mo.default.validateAction(n,e,f,o,d))return e}}}for(var f=o;yo.element(f);){var p=d.interactables.forEachMatch(f,c);if(p){r.prepared.name=ho.ActionName.Drag,r.interactable=p,r.element=f;break}f=(0,z.parentNode)(f)}}}})}};vo.default=bo;var wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0;var Oo,Po=(Oo=to)&&Oo.__esModule?Oo:{default:Oo};function _o(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}var xo={id:"auto-start/hold",install:function(e){var t=e.autoStart,n=e.interactions,r=e.defaults;e.usePlugin(Po.default),r.perAction.hold=0,r.perAction.delay=0,n.signals.on("new",function(e){e.autoStartHoldTimer=null}),t.signals.on("prepared",function(e){var t=e.interaction,n=_o(t);0<n&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.interactable,t.element)},n))}),n.signals.on("move",function(e){var t=e.interaction,n=e.duplicate;t.pointerWasMoved&&!n&&clearTimeout(t.autoStartHoldTimer)}),t.signals.on("before-start",function(e){var t=e.interaction;0<_o(t)&&(t.prepared.name=null)})},getHoldDuration:_o};wo.default=xo;var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.install=function(e){e.usePlugin(Eo.default),e.usePlugin(So.default),e.usePlugin(Mo.default)},Object.defineProperty(jo,"autoStart",{enumerable:!0,get:function(){return Eo.default}}),Object.defineProperty(jo,"dragAxis",{enumerable:!0,get:function(){return Mo.default}}),Object.defineProperty(jo,"hold",{enumerable:!0,get:function(){return So.default}}),jo.id=void 0;var Eo=To(to),Mo=To(vo),So=To(wo);function To(e){return e&&e.__esModule?e:{default:e}}jo.id="auto-start";var Do={};Object.defineProperty(Do,"__esModule",{value:!0}),Do.install=Ro,Do.default=void 0;var ko,Io=(ko=le)&&ko.__esModule?ko:{default:ko},zo=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}}(y);function Ao(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):zo.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault}function Co(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}function Ro(r){var e=r.Interactable;e.prototype.preventDefault=Ao,e.prototype.checkAndPreventDefault=function(e){return function(e,t,n){var r=e.options.preventDefault;if("never"!==r)if("always"!==r){if(Io.default.supportsPassive&&/^touch(start|move)$/.test(n.type)){var o=(0,u.getWindow)(n.target).document,i=t.getDocOptions(o);if(!i||!i.events||!1!==i.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||zo.element(n.target)&&(0,z.matchesSelector)(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,r,e)};for(var t=["down","move","up","cancel"],n=0;n<t.length;n++){var o=t[n];r.interactions.signals.on(o,Co)}r.interactions.docEvents.push({type:"dragstart",listener:function(e){for(var t=0;t<r.interactions.list.length;t++){var n=r.interactions.list[t];if(n.element&&(n.element===e.target||(0,z.nodeContains)(n.element,e.target)))return void n.interactable.checkAndPreventDefault(e)}}})}var Xo={id:"core/interactablePreventDefault",install:Ro};Do.default=Xo;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=void 0;var No,Fo;Wo(S),Wo(Te),function(e){{if(e&&e.__esModule)return;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]}t.default=e}}(y),Wo(u);function Wo(e){return e&&e.__esModule?e:{default:e}}(Fo=No=No||{}).touchAction="",Fo.boxSizing="",Fo.noListeners="";var Lo="dev-tools",Vo={id:Lo,install:function(){}};Yo.default=Vo;var qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.startAll=$o,qo.setAll=Ko,qo.prepareStates=ti,qo.makeModifier=ai,qo.default=void 0;var Go,Uo=(Go=Te)&&Go.__esModule?Go:{default:Go};function Bo(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(e){o=!0,i=e}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 Ho(e,t){var n=e.interaction,r=e.phase,o=n.interactable,i=n.element,a=ti(ei(n)),s=(0,Uo.default)({},n.rect);"width"in s||(s.width=s.right-s.left),"height"in s||(s.height=s.bottom-s.top);var l=ii(s,t);n.modifiers.startOffset=l,n.modifiers.startDelta={x:0,y:0};var u={interaction:n,interactable:o,element:i,pageCoords:t,phase:r,rect:s,startOffset:l,states:a,preEnd:!1,requireEndOnly:!1};return n.modifiers.states=a,n.modifiers.result=null,$o(u),u.pageCoords=(0,Uo.default)({},n.coords.start.page),n.modifiers.result=Ko(u)}function $o(e){for(var t=e.states,n=0;n<t.length;n++){var r=t[n];r.methods.start&&(e.state=r).methods.start(e)}}function Ko(e){var t=e.interaction,n=e.modifiersState,r=void 0===n?t.modifiers:n,o=e.prevCoords,i=void 0===o?r.result?r.result.coords:t.coords.prev.page:o,a=e.phase,s=e.preEnd,l=e.requireEndOnly,u=e.rect,c=e.skipModifiers,f=c?e.states.slice(c):e.states;e.coords=(0,Uo.default)({},e.pageCoords),e.rect=(0,Uo.default)({},u);for(var p={delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},coords:e.coords,changed:!0},d=0;d<f.length;d++){var v=f[d],g=v.options;v.methods.set&&oi(g,s,l,a)&&(e.state=v).methods.set(e)}p.delta.x=e.coords.x-e.pageCoords.x,p.delta.y=e.coords.y-e.pageCoords.y;var h=!1;return u&&(p.rectDelta.left=e.rect.left-u.left,p.rectDelta.right=e.rect.right-u.right,p.rectDelta.top=e.rect.top-u.top,p.rectDelta.bottom=e.rect.bottom-u.bottom,h=0!==p.rectDelta.left||0!==p.rectDelta.right||0!==p.rectDelta.top||0!==p.rectDelta.bottom),p.changed=i.x!==p.coords.x||i.y!==p.coords.y||h,p}function Qo(e){var t=e.interaction,n=e.phase,r=e.preEnd,o=e.skipModifiers,i=Ko({interaction:t,interactable:t.interactable,element:t.element,preEnd:r,phase:n,pageCoords:t.coords.cur.page,rect:t.rect,states:t.modifiers.states,requireEndOnly:!1,skipModifiers:o});if(!(t.modifiers.result=i).changed&&t.interacting())return!1;ni(e)}function Jo(e){var t=e.interaction,n=e.event,r=e.noPreEnd,o=t.modifiers.states;if(!r&&o&&o.length)for(var i=!1,a=0;a<o.length;a++){var s=o[a],l=(e.state=s).options,u=s.methods;if(!1===(u.beforeEnd&&u.beforeEnd(e)))return!(t.modifiers.endPrevented=!0);!i&&oi(l,!0,!0)&&(t.move({event:n,preEnd:!0}),i=!0)}}function Zo(e){var t=e.interaction,n=t.modifiers.states;if(n&&n.length){var r=(0,Uo.default)({states:n,interactable:t.interactable,element:t.element},e);ri(e);for(var o=0;o<n.length;o++){var i=n[o];(r.state=i).methods.stop&&i.methods.stop(r)}e.interaction.modifiers.states=null,e.interaction.modifiers.endPrevented=!1}}function ei(e){var n=e.interactable.options[e.prepared.name],t=n.modifiers;return t&&t.length?t.filter(function(e){return!e.options||!1!==e.options.enabled}):["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(e){var t=n[e];return t&&t.enabled&&{options:t,methods:t._methods}}).filter(function(e){return!!e})}function ti(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=r.options,i=r.methods,a=r.name;o&&!1===o.enabled||t.push({options:o,methods:i,index:n,name:a})}return t}function ni(e){var t=e.interaction,n=e.phase,r=e.curCoords||t.coords.cur,o=e.startCoords||t.coords.start,i=t.modifiers,a=i.result,s=i.startDelta,l=a.delta;"start"===n&&(0,Uo.default)(t.modifiers.startDelta,a.delta);for(var u=[[o,s],[r,l]],c=0;c<u.length;c++){var f=Bo(u[c],2),p=f[0],d=f[1];p.page.x+=d.x,p.page.y+=d.y,p.client.x+=d.x,p.client.y+=d.y}var v=t.modifiers.result.rectDelta,g=e.rect||t.rect;g.left+=v.left,g.right+=v.right,g.top+=v.top,g.bottom+=v.bottom,g.width=g.right-g.left,g.height=g.bottom-g.top}function ri(e){var t=e.interaction,n=t.coords,r=t.rect,o=t.modifiers;if(o.result){for(var i=o.startDelta,a=o.result,s=a.delta,l=a.rectDelta,u=[[n.start,i],[n.cur,s]],c=0;c<u.length;c++){var f=Bo(u[c],2),p=f[0],d=f[1];p.page.x-=d.x,p.page.y-=d.y,p.client.x-=d.x,p.client.y-=d.y}r.left-=l.left,r.right-=l.right,r.top-=l.top,r.bottom-=l.bottom}}function oi(e,t,n,r){return e?!1!==e.enabled&&(t||!e.endOnly)&&(!n||e.endOnly||e.alwaysOnEnd)&&(e.setStart||"start"!==r):!n}function ii(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}}function ai(e,r){function t(e){var t=e||{};for(var n in t.enabled=!1!==t.enabled,o)n in t||(t[n]=o[n]);return{options:t,methods:i,name:r}}var o=e.defaults,i={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop};return r&&"string"==typeof r&&(t._defaults=o,t._methods=i),t}var si={id:"modifiers/base",install:function(e){var t=e.interactions;e.defaults.perAction.modifiers=[],t.signals.on("new",function(e){e.interaction.modifiers={startOffset:{left:0,right:0,top:0,bottom:0},offsets:{},states:null,result:null,endPrevented:!1,startDelta:null}}),t.signals.on("before-action-start",function(e){Ho(e,e.interaction.coords.start.page)}),t.signals.on("action-resume",function(e){Zo(e),Ho(e,e.interaction.coords.cur.page),Qo(e)}),t.signals.on("after-action-move",ri),t.signals.on("before-action-move",Qo),t.signals.on("before-action-start",ni),t.signals.on("after-action-start",ri),t.signals.on("before-action-end",Jo),t.signals.on("stop",Zo)},startAll:$o,setAll:Ko,prepareStates:ti,start:Ho,beforeMove:Qo,beforeEnd:Jo,stop:Zo,shouldDo:oi,getModifierList:ei,getRectOffset:ii,makeModifier:ai};qo.default=si;var li={};Object.defineProperty(li,"__esModule",{value:!0}),li.default=void 0;var ui=pi(qo),ci=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}}(tt),fi=pi(Be);function pi(e){return e&&e.__esModule?e:{default:e}}function di(e,t){var n=yi(e),r=n.resistance,o=-Math.log(n.endSpeed/t.v0)/r;t.x0=e.prevEvent.page.x,t.y0=e.prevEvent.page.y,t.t0=t.startEvent.timeStamp/1e3,t.sx=t.sy=0,t.modifiedXe=t.xe=(t.vx0-o)/r,t.modifiedYe=t.ye=(t.vy0-o)/r,t.te=o,t.lambda_v0=r/t.v0,t.one_ve_v0=1-n.endSpeed/t.v0}function vi(e){hi(e),ci.pointer.setCoordDeltas(e.coords.delta,e.coords.prev,e.coords.cur),ci.pointer.setCoordVelocity(e.coords.velocity,e.coords.delta);var t=e.inertia,n=yi(e).resistance,r=e._now()/1e3-t.t0;if(r<t.te){var o=1-(Math.exp(-n*r)-t.lambda_v0)/t.one_ve_v0;if(t.modifiedXe===t.xe&&t.modifiedYe===t.ye)t.sx=t.xe*o,t.sy=t.ye*o;else{var i=ci.getQuadraticCurvePoint(0,0,t.xe,t.ye,t.modifiedXe,t.modifiedYe,o);t.sx=i.x,t.sy=i.y}e.move(),t.timeout=fi.default.request(function(){return vi(e)})}else t.sx=t.modifiedXe,t.sy=t.modifiedYe,e.move(),e.end(t.startEvent),t.active=!1,e.simulation=null;ci.pointer.copyCoords(e.coords.prev,e.coords.cur)}function gi(e){hi(e);var t=e.inertia,n=e._now()-t.t0,r=yi(e).smoothEndDuration;n<r?(t.sx=ci.easeOutQuad(n,0,t.xe,r),t.sy=ci.easeOutQuad(n,0,t.ye,r),e.move(),t.timeout=fi.default.request(function(){return gi(e)})):(t.sx=t.xe,t.sy=t.ye,e.move(),e.end(t.startEvent),t.smoothEnd=t.active=!1,e.simulation=null)}function hi(e){var t=e.inertia;if(t.active){var n=t.upCoords.page,r=t.upCoords.client;ci.pointer.setCoords(e.coords.cur,[{pageX:n.x+t.sx,pageY:n.y+t.sy,clientX:r.x+t.sx,clientY:r.y+t.sy}],e._now())}}function yi(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}ln.EventPhase.Resume="resume",ln.EventPhase.InertiaStart="inertiastart";var mi={id:"inertia",install:function(t){var e=t.interactions,n=t.defaults;e.signals.on("new",function(e){e.interaction.inertia={active:!1,smoothEnd:!1,allowResume:!1,upCoords:{},timeout:null}}),e.signals.on("before-action-end",function(e){return function(e,t){var n=e.interaction,r=e.event,o=e.noPreEnd,i=n.inertia;if(!n.interacting()||n.simulation&&n.simulation.active||o)return null;var a,s=yi(n),l=n._now(),u=n.coords.velocity.client,c=ci.hypot(u.x,u.y),f=!1,p=s&&s.enabled&&"gesture"!==n.prepared.name&&r!==i.startEvent,d=p&&l-n.coords.cur.timeStamp<50&&c>s.minSpeed&&c>s.endSpeed,v={interaction:n,pageCoords:ci.extend({},n.coords.cur.page),states:p&&n.modifiers.states.map(function(e){return ci.extend({},e)}),preEnd:!0,prevCoords:void 0,requireEndOnly:null};p&&!d&&(v.prevCoords=n.prevEvent.page,v.requireEndOnly=!1,(a=ui.default.setAll(v)).changed&&(f=!0));if(!d&&!f)return null;ci.pointer.copyCoords(i.upCoords,n.coords.cur),n.pointers[0].pointer=i.startEvent=new t.InteractEvent(n,r,n.prepared.name,ln.EventPhase.InertiaStart,n.element),i.t0=l,i.active=!0,i.allowResume=s.allowResume,n.simulation=i,n.interactable.fire(i.startEvent),d?(i.vx0=n.coords.velocity.client.x,i.vy0=n.coords.velocity.client.y,i.v0=c,di(n,i),ci.extend(v.pageCoords,n.coords.cur.page),v.pageCoords.x+=i.xe,v.pageCoords.y+=i.ye,v.prevCoords=void 0,v.requireEndOnly=!0,a=ui.default.setAll(v),i.modifiedXe+=a.delta.x,i.modifiedYe+=a.delta.y,i.timeout=fi.default.request(function(){return vi(n)})):(i.smoothEnd=!0,i.xe=a.delta.x,i.ye=a.delta.y,i.sx=i.sy=0,i.timeout=fi.default.request(function(){return gi(n)}));return!1}(e,t)}),e.signals.on("down",function(e){return function(e,t){var n=e.interaction,r=e.event,o=e.pointer,i=e.eventTarget,a=n.inertia;if(a.active)for(var s=i;ci.is.element(s);){if(s===n.element){fi.default.cancel(a.timeout),a.active=!1,n.simulation=null,n.updatePointer(o,r,i,!0),ci.pointer.setCoords(n.coords.cur,n.pointers.map(function(e){return e.pointer}),n._now());var l={interaction:n};t.interactions.signals.fire("action-resume",l);var u=new t.InteractEvent(n,r,n.prepared.name,ln.EventPhase.Resume,n.element);n._fireEvent(u),ci.pointer.copyCoords(n.coords.prev,n.coords.cur);break}s=ci.dom.parentNode(s)}}(e,t)}),e.signals.on("stop",function(e){return function(e){var t=e.interaction,n=t.inertia;n.active&&(fi.default.cancel(n.timeout),n.active=!1,t.simulation=null)}(e)}),n.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300},t.usePlugin(ui.default)},calcInertia:di,inertiaTick:vi,smothEndTick:gi,updateInertiaCoords:hi};li.default=mi;var bi={};Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=void 0;var wi=_i(Te),Oi=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}}(y),Pi=_i(De);function _i(e){return e&&e.__esModule?e:{default:e}}function xi(e,t,n){return Oi.func(e)?Pi.default.resolveRectLike(e,t.interactable,t.element,[n.x,n.y,t]):Pi.default.resolveRectLike(e,t.interactable,t.element)}var ji={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,l=(0,wi.default)({left:0,top:0,right:0,bottom:0},a.offset||{});if(t&&s){var u=xi(a.restriction,o,i);if(u){var c=u.right-u.left-t.width,f=u.bottom-u.top-t.height;c<0&&(l.left+=c,l.right+=c),f<0&&(l.top+=f,l.bottom+=f)}l.left+=n.left-t.width*s.left,l.top+=n.top-t.height*s.top,l.right+=n.right-t.width*(1-s.right),l.bottom+=n.bottom-t.height*(1-s.bottom)}r.offset=l},set:function(e){var t=e.coords,n=e.interaction,r=e.state,o=r.options,i=r.offset,a=xi(o.restriction,n,t);if(a){var s=Pi.default.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)}},getRestrictionRect:xi,defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};bi.default=ji;var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.default=void 0;var Mi=Ti(Te),Si=Ti(De);function Ti(e){return e&&e.__esModule?e:{default:e}}var Di=Ti(bi).default.getRestrictionRect,ki={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Ii={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function zi(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 Ai={noInner:ki,noOuter:Ii,getRestrictionRect:Di,start:function(e){var t,n=e.interaction,r=e.state,o=r.options,i=n.modifiers.startOffset;if(o){var a=Di(o.offset,n,n.coords.start.page);t=Si.default.rectToXY(a)}t=t||{x:0,y:0},r.offset={top:t.y+i.top,left:t.x+i.left,bottom:t.y-i.bottom,right:t.x-i.right}},set:function(e){var t=e.coords,n=e.interaction,r=e.state,o=r.offset,i=r.options,a=n.prepared._linkedEdges||n.prepared.edges;if(a){var s=(0,Mi.default)({},t),l=Di(i.inner,n,s)||{},u=Di(i.outer,n,s)||{};zi(l,ki),zi(u,Ii),a.top?t.y=Math.min(Math.max(u.top+o.top,s.y),l.top+o.top):a.bottom&&(t.y=Math.max(Math.min(u.bottom+o.bottom,s.y),l.bottom+o.bottom)),a.left?t.x=Math.min(Math.max(u.left+o.left,s.x),l.left+o.left):a.right&&(t.x=Math.max(Math.min(u.right+o.right,s.x),l.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};Ei.default=Ai;var Ci={};Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.default=void 0;var Ri=Yi(Te),Xi=Yi(bi);function Yi(e){return e&&e.__esModule?e:{default:e}}var Ni=(0,Ri.default)({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},Xi.default.defaults),Fi={start:Xi.default.start,set:Xi.default.set,defaults:Ni};Ci.default=Fi;var Wi={};Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=void 0;var Li=Gi(Te),Vi=Gi(De),qi=Gi(Ei);function Gi(e){return e&&e.__esModule?e:{default:e}}var Ui={width:-1/0,height:-1/0},Bi={width:1/0,height:1/0};var Hi={start:function(e){return qi.default.start(e)},set:function(e){var t=e.interaction,n=e.state,r=n.options,o=t.prepared._linkedEdges||t.prepared.edges;if(o){var i=Vi.default.xywhToTlbr(t.resizeRects.inverted),a=Vi.default.tlbrToXywh(qi.default.getRestrictionRect(r.min,t,e.coords))||Ui,s=Vi.default.tlbrToXywh(qi.default.getRestrictionRect(r.max,t,e.coords))||Bi;n.options={endOnly:r.endOnly,inner:(0,Li.default)({},qi.default.noInner),outer:(0,Li.default)({},qi.default.noOuter)},o.top?(n.options.inner.top=i.bottom-a.height,n.options.outer.top=i.bottom-s.height):o.bottom&&(n.options.inner.bottom=i.top+a.height,n.options.outer.bottom=i.top+s.height),o.left?(n.options.inner.left=i.right-a.width,n.options.outer.left=i.right-s.width):o.right&&(n.options.inner.right=i.left+a.width,n.options.outer.right=i.left+s.width),qi.default.set(e),n.options=r}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}};Wi.default=Hi;var $i={};Object.defineProperty($i,"__esModule",{value:!0}),$i.default=void 0;var Ki=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}}(tt);var Qi={start:function(e){var t,n=e.interaction,r=e.interactable,o=e.element,i=e.rect,a=e.state,s=e.startOffset,l=a.options,u=[],c=l.offsetWithOrigin?function(e){return Ki.rect.rectToXY(Ki.rect.resolveRectLike(e.state.options.origin,[e.interaction.element]))||Ki.getOriginXY(e.interactable,e.interaction.element,e.interaction.prepared.name)}(e):{x:0,y:0};if("startCoords"===l.offset)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var f=Ki.rect.resolveRectLike(l.offset,r,o,[n]);(t=Ki.rect.rectToXY(f)||{x:0,y:0}).x+=c.x,t.y+=c.y}var p=l.relativePoints||[];if(i&&l.relativePoints&&l.relativePoints.length)for(var d=0;d<p.length;d++){var v=p[d];u.push({index:d,relativePoint:v,x:s.left-i.width*v.x+t.x,y:s.top-i.height*v.y+t.y})}else u.push(Ki.extend({index:0,relativePoint:null},t));a.offsets=u},set:function(e){var t,n=e.interaction,r=e.coords,o=e.state,i=o.options,a=o.offsets,s=Ki.getOriginXY(n.interactable,n.element,n.prepared.name),l=Ki.extend({},r),u=[];i.offsetWithOrigin||(l.x-=s.x,l.y-=s.y),o.realX=l.x,o.realY=l.y;for(var c=0;c<a.length;c++)for(var f=a[c],p=l.x-f.x,d=l.y-f.y,v=0,g=i.targets.length;v<g;v++){var h=i.targets[v];(t=Ki.is.func(h)?h(p,d,n,f,v):h)&&u.push({x:(Ki.is.number(t.x)?t.x:p)+f.x,y:(Ki.is.number(t.y)?t.y:d)+f.y,range:Ki.is.number(t.range)?t.range:i.range})}for(var y={target:null,inRange:!1,distance:0,range:0,dx:0,dy:0},m=0,b=u.length;m<b;m++){var w=(t=u[m]).range,O=t.x-l.x,P=t.y-l.y,_=Ki.hypot(O,P),x=_<=w;w===1/0&&y.inRange&&y.range!==1/0&&(x=!1),y.target&&!(x?y.inRange&&w!==1/0?_/w<y.distance/y.range:w===1/0&&y.range!==1/0||_<y.distance:!y.inRange&&_<y.distance)||(y.target=t,y.distance=_,y.range=w,y.inRange=x,y.dx=O,y.dy=P,o.range=w)}y.inRange&&(r.x=y.target.x,r.y=y.target.y),o.closest=y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};$i.default=Qi;var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var Zi=na(Te),ea=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}}(y),ta=na($i);function na(e){return e&&e.__esModule?e:{default:e}}function ra(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(e){o=!0,i=e}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")}()}var oa={start:function(e){var t=e.interaction,n=e.state,r=n.options,o=t.prepared.edges;if(!o)return null;e.state={options:{targets:null,relativePoints:[{x:o.left?0:1,y:o.top?0:1}],offset:r.offset||"self",origin:{x:0,y:0},range:r.range}},n.targetFields=n.targetFields||[["width","height"],["x","y"]],ta.default.start(e),n.offsets=e.state.offsets,e.state=n},set:function(e){var t=e.interaction,n=e.state,r=e.coords,o=n.options,i=n.offsets,a={x:r.x-i[0].x,y:r.y-i[0].y};n.options=(0,Zi.default)({},o),n.options.targets=[];for(var s=0;s<(o.targets||[]).length;s++){var l=(o.targets||[])[s],u=void 0;if(u=ea.func(l)?l(a.x,a.y,t):l){for(var c=0;c<n.targetFields.length;c++){var f=ra(n.targetFields[c],2),p=f[0],d=f[1];if(p in u||d in u){u.x=u[p],u.y=u[d];break}}n.options.targets.push(u)}}ta.default.set(e),n.options=o},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};Ji.default=oa;var ia={};Object.defineProperty(ia,"__esModule",{value:!0}),ia.default=void 0;var aa=ua(q),sa=ua(Te),la=ua(Ji);function ua(e){return e&&e.__esModule?e:{default:e}}var ca={start:function(e){var t=e.interaction.prepared.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],la.default.start(e)):null},set:function(e){return la.default.set(e)},defaults:(0,sa.default)((0,aa.default)(la.default.defaults),{offset:{x:0,y:0}})};ia.default=ca;var fa={};Object.defineProperty(fa,"__esModule",{value:!0}),fa.restrictSize=fa.restrictEdges=fa.restrictRect=fa.restrict=fa.snapEdges=fa.snapSize=fa.snap=void 0;var pa=wa(qo),da=wa(Ei),va=wa(bi),ga=wa(Ci),ha=wa(Wi),ya=wa(ia),ma=wa($i),ba=wa(Ji);function wa(e){return e&&e.__esModule?e:{default:e}}var Oa=pa.default.makeModifier,Pa=Oa(ma.default,"snap");fa.snap=Pa;var _a=Oa(ba.default,"snapSize");fa.snapSize=_a;var xa=Oa(ya.default,"snapEdges");fa.snapEdges=xa;var ja=Oa(va.default,"restrict");fa.restrict=ja;var Ea=Oa(ga.default,"restrictRect");fa.restrictRect=Ea;var Ma=Oa(da.default,"restrictEdges");fa.restrictEdges=Ma;var Sa=Oa(ha.default,"restrictSize");fa.restrictSize=Sa;var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=void 0;var Da=Ia(rn),ka=Ia(J);function Ia(e){return e&&e.__esModule?e:{default:e}}function za(e){return(za="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 Aa(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 Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ra(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xa(e,t){return(Xa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ya=function(){function u(e,t,n,r,o,i){var a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a=function(e,t){return!t||"object"!==za(t)&&"function"!=typeof t?Ra(e):t}(this,Ca(u).call(this,o)),ka.default.pointerExtend(Ra(a),n),n!==t&&ka.default.pointerExtend(Ra(a),t),a.timeStamp=i,a.originalEvent=n,a.type=e,a.pointerId=ka.default.getPointerId(t),a.pointerType=ka.default.getPointerType(t),a.target=r,a.currentTarget=null,"tap"===e){var s=o.getPointerIndex(t);a.dt=a.timeStamp-o.pointers[s].downTime;var l=a.timeStamp-o.tapTime;a.double=!!(o.prevTap&&"doubletap"!==o.prevTap.type&&o.prevTap.target===a.target&&l<500)}else"doubletap"===e&&(a.dt=t.timeStamp-o.tapTime);return 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&&Xa(e,t)}(u,Da["default"]),function(e,t,n){t&&Aa(e.prototype,t),n&&Aa(e,n)}(u,[{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()}}]),u}();Ta.default=Ya;var Na={};Object.defineProperty(Na,"__esModule",{value:!0}),Na.default=void 0;var Fa,Wa=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}}(tt),La=(Fa=Ta)&&Fa.__esModule?Fa:{default:Fa};var Va=new Wa.Signals,qa=["down","up","cancel"],Ga=["down","up","cancel"],Ua={id:"pointer-events/base",install:function(v){var e=v.interactions;v.pointerEvents=Ua,v.defaults.actions.pointerEvents=Ua.defaults,e.signals.on("new",function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0}),e.signals.on("update-pointer",function(e){var t=e.down,n=e.pointerInfo;!t&&n.hold||(n.hold={duration:1/0,timeout:null})}),e.signals.on("move",function(e){var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget,i=e.duplicateMove,a=t.getPointerIndex(n);i||t.pointerIsDown&&!t.pointerWasMoved||(t.pointerIsDown&&clearTimeout(t.pointers[a].hold.timeout),Ba({interaction:t,pointer:n,event:r,eventTarget:o,type:"move"},v))}),e.signals.on("down",function(e){for(var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget,i=e.pointerIndex,a=t.pointers[i].hold,s=Wa.dom.getPath(o),l={interaction:t,pointer:n,event:r,eventTarget:o,type:"hold",targets:[],path:s,node:null},u=0;u<s.length;u++){var c=s[u];l.node=c,Va.fire("collect-targets",l)}if(l.targets.length){for(var f=1/0,p=0;p<l.targets.length;p++){var d=l.targets[p].eventable.options.holdDuration;d<f&&(f=d)}a.duration=f,a.timeout=setTimeout(function(){Ba({interaction:t,eventTarget:o,pointer:n,event:r,type:"hold"},v)},f)}});for(var t=["up","cancel"],n=0;n<t.length;n++){var r=t[n];e.signals.on(r,function(e){var t=e.interaction,n=e.pointerIndex;t.pointers[n].hold&&clearTimeout(t.pointers[n].hold.timeout)})}for(var o=0;o<qa.length;o++)e.signals.on(qa[o],$a(Ga[o],v));e.signals.on("up",function(e){var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget;t.pointerWasMoved||Ba({interaction:t,eventTarget:o,pointer:n,event:r,type:"tap"},v)})},signals:Va,PointerEvent:La.default,fire:Ba,collectEventTargets:Ha,createSignalListener:$a,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:["down","move","up","cancel","tap","doubletap","hold"]};function Ba(e,t){for(var n=e.interaction,r=e.pointer,o=e.event,i=e.eventTarget,a=e.type,s=void 0===a?e.pointerEvent.type:a,l=e.targets,u=void 0===l?Ha(e):l,c=e.pointerEvent,f=void 0===c?new La.default(s,r,o,i,n,t.now()):c,p={interaction:n,pointer:r,event:o,eventTarget:i,targets:u,type:s,pointerEvent:f},d=0;d<u.length;d++){var v=u[d];for(var g in v.props||{})f[g]=v.props[g];var h=Wa.getOriginXY(v.eventable,v.node);if(f._subtractOrigin(h),f.eventable=v.eventable,f.currentTarget=v.node,v.eventable.fire(f),f._addOrigin(h),f.immediatePropagationStopped||f.propagationStopped&&d+1<u.length&&u[d+1].node!==f.currentTarget)break}if(Va.fire("fired",p),"tap"===s){var y=f.double?Ba({interaction:n,pointer:r,event:o,eventTarget:i,type:"doubletap"},t):f;n.prevTap=y,n.tapTime=y.timeStamp}return f}function Ha(e){var t=e.interaction,n=e.pointer,r=e.event,o=e.eventTarget,i=e.type,a=t.getPointerIndex(n),s=t.pointers[a];if("tap"===i&&(t.pointerWasMoved||!s||s.downTarget!==o))return[];for(var l=Wa.dom.getPath(o),u={interaction:t,pointer:n,event:r,eventTarget:o,type:i,path:l,targets:[],node:null},c=0;c<l.length;c++){var f=l[c];u.node=f,Va.fire("collect-targets",u)}return"hold"===i&&(u.targets=u.targets.filter(function(e){return e.eventable.options.holdDuration===t.pointers[a].hold.duration})),u.targets}function $a(o,i){return function(e){var t=e.interaction,n=e.pointer,r=e.event;Ba({interaction:t,eventTarget:e.eventTarget,pointer:n,event:r,type:o},i)}}var Ka=Ua;Na.default=Ka;var Qa={};Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.default=void 0;var Ja,Za=(Ja=Na)&&Ja.__esModule?Ja:{default:Ja};function es(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)}function ts(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}var ns={id:"pointer-events/holdRepeat",install:function(t){var e=t.pointerEvents,n=t.interactions;t.usePlugin(Za.default),e.signals.on("new",es),e.signals.on("fired",function(e){return function(e,t){var n=e.interaction,r=e.pointerEvent,o=e.eventTarget,i=e.targets;if("hold"!==r.type||!i.length)return;var a=i[0].eventable.options.holdRepeatInterval;if(a<=0)return;n.holdIntervalHandle=setTimeout(function(){t.pointerEvents.fire({interaction:n,eventTarget:o,type:"hold",pointer:r,event:r},t)},a)}(e,t)});for(var r=["move","up","cancel","endall"],o=0;o<r.length;o++){var i=r[o];n.signals.on(i,ts)}e.defaults.holdRepeatInterval=0,e.types.push("holdrepeat")}};Qa.default=ns;var rs={};Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=void 0;var os,is=(os=Te)&&os.__esModule?os:{default:os};function as(e){return(0,is.default)(this.events.options,e),this}var ss={id:"pointer-events/interactableTargets",install:function(t){var r=t.pointerEvents,e=t.actions,n=t.Interactable,o=t.interactables;r.signals.on("collect-targets",function(e){var r=e.targets,o=e.node,i=e.type,a=e.eventTarget;t.interactables.forEachMatch(o,function(e){var t=e.events,n=t.options;t.types[i]&&t.types[i].length&&e.testIgnoreAllow(n,o,a)&&r.push({node:o,eventable:t,props:{interactable:e}})})}),o.signals.on("new",function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}}),o.signals.on("set",function(e){var t=e.interactable,n=e.options;(0,is.default)(t.events.options,r.defaults),(0,is.default)(t.events.options,n.pointerEvents||{})}),(0,s.merge)(e.eventTypes,r.types),n.prototype.pointerEvents=as;var i=n.prototype._backCompatOption;n.prototype._backCompatOption=function(e,t){var n=i.call(this,e,t);return n===this&&(this.events.options[e]=t),n}}};rs.default=ss;var ls={};Object.defineProperty(ls,"__esModule",{value:!0}),ls.install=function(e){e.usePlugin(us.default),e.usePlugin(cs.default),e.usePlugin(fs.default)},Object.defineProperty(ls,"pointerEvents",{enumerable:!0,get:function(){return us.default}}),Object.defineProperty(ls,"holdRepeat",{enumerable:!0,get:function(){return cs.default}}),Object.defineProperty(ls,"interactableTargets",{enumerable:!0,get:function(){return fs.default}}),ls.id=void 0;var us=ps(Na),cs=ps(Qa),fs=ps(rs);function ps(e){return e&&e.__esModule?e:{default:e}}ls.id="pointer-events";var ds={};function vs(n){for(var e=n.actions,t=n.interactions,r=n.Interactable,o=0;o<e.names.length;o++){var i=e.names[o];e.eventTypes.push("".concat(i,"reflow"))}t.signals.on("stop",function(e){var t=e.interaction;t.pointerType===ln.EventPhase.Reflow&&(t._reflowResolve&&t._reflowResolve(),tt.arr.remove(n.interactions.list,t))}),r.prototype.reflow=function(e){return function(s,l,u){function e(){var t=c[d],e=s.getRect(t);if(!e)return"break";var n=tt.arr.find(u.interactions.list,function(e){return e.interacting()&&e.interactable===s&&e.element===t&&e.prepared.name===l.name}),r=void 0;if(n)n.move(),p&&(r=n._reflowPromise||new f(function(e){n._reflowResolve=e}));else{var o=tt.rect.tlbrToXywh(e),i={page:{x:o.x,y:o.y},client:{x:o.x,y:o.y},timeStamp:u.now()},a=tt.pointer.coordsToEvent(i);r=function(e,t,n,r,o){var i=e.interactions.new({pointerType:"reflow"}),a={interaction:i,event:o,pointer:o,eventTarget:n,phase:ln.EventPhase.Reflow};i.interactable=t,i.element=n,i.prepared=(0,tt.extend)({},r),i.prevEvent=o,i.updatePointer(o,o,n,!0),i._doPhase(a);var s=tt.win.window.Promise?new tt.win.window.Promise(function(e){i._reflowResolve=e}):null;i._reflowPromise=s,i.start(r,t,n),i._interacting?(i.move(a),i.end(o)):i.stop();return i.removePointer(o,o),i.pointerIsDown=!1,s}(u,s,t,l,a)}p&&p.push(r)}for(var c=tt.is.string(s.target)?tt.arr.from(s._context.querySelectorAll(s.target)):[s.target],f=tt.win.window.Promise,p=f?[]:null,d=0;d<c.length;d++){if("break"===e())break}return p&&f.all(p).then(function(){return s})}(this,e,n)}}Object.defineProperty(ds,"__esModule",{value:!0}),ds.install=vs,ds.default=void 0;var gs={id:ln.EventPhase.Reflow="reflow",install:vs};ds.default=gs;var hs={};Object.defineProperty(hs,"__esModule",{value:!0}),hs.default=hs.scope=hs.interact=void 0;var ys=g({}),ms=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}}(tt),bs=Os(E),ws=Os(le);function Os(e){return e&&e.__esModule?e:{default:e}}var Ps={},_s=new ys.Scope;hs.scope=_s;function xs(e,t){var n=_s.interactables.get(e,t);return n||((n=_s.interactables.new(e,t)).events.global=Ps),n}(hs.interact=xs).use=function(e,t){return _s.usePlugin(e,t),xs},xs.isSet=function(e,t){return!!_s.interactables.get(e,t&&t.context)},xs.on=function(e,t,n){ms.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/));if(ms.is.array(e)){for(var r=0;r<e.length;r++){var o;o=e[r],xs.on(o,t,n)}return xs}if(ms.is.object(e)){for(var i in e)xs.on(i,e[i],t);return xs}ms.arr.contains(_s.actions.eventTypes,e)?Ps[e]?Ps[e].push(t):Ps[e]=[t]:ws.default.add(_s.document,e,t,{options:n});return xs},xs.off=function(e,t,n){ms.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/));if(ms.is.array(e)){for(var r=0;r<e.length;r++){var o;o=e[r],xs.off(o,t,n)}return xs}if(ms.is.object(e)){for(var i in e)xs.off(i,e[i],t);return xs}var a;ms.arr.contains(_s.actions.eventTypes,e)?e in Ps&&-1!==(a=Ps[e].indexOf(t))&&Ps[e].splice(a,1):ws.default.remove(_s.document,e,t,n);return xs},xs.debug=function(){return _s},xs.getPointerAverage=ms.pointer.pointerAverage,xs.getTouchBBox=ms.pointer.touchBBox,xs.getTouchDistance=ms.pointer.touchDistance,xs.getTouchAngle=ms.pointer.touchAngle,xs.getElementRect=ms.dom.getElementRect,xs.getElementClientRect=ms.dom.getElementClientRect,xs.matchesSelector=ms.dom.matchesSelector,xs.closest=ms.dom.closest,xs.supportsTouch=function(){return bs.default.supportsTouch},xs.supportsPointerEvent=function(){return bs.default.supportsPointerEvent},xs.stop=function(){for(var e=0;e<_s.interactions.list.length;e++){_s.interactions.list[e].stop()}return xs},xs.pointerMoveTolerance=function(e){if(ms.is.number(e))return _s.interactions.pointerMoveTolerance=e,xs;return _s.interactions.pointerMoveTolerance},_s.interactables.signals.on("unset",function(e){var t=e.interactable;_s.interactables.list.splice(_s.interactables.list.indexOf(t),1);for(var n=0;n<_s.interactions.list.length;n++){var r=_s.interactions.list[n];r.interactable===t&&r.interacting()&&!r._ending&&r.stop()}}),xs.addDocument=function(e,t){return _s.addDocument(e,t)},xs.removeDocument=function(e){return _s.removeDocument(e)};var js=_s.interact=xs;hs.default=js;var Es={};Object.defineProperty(Es,"__esModule",{value:!0}),Es.init=function(e){for(var t in Rs.scope.init(e),Rs.default.use(Ds.default),Rs.default.use(As),Rs.default.use(ks.default),Rs.default.use(Ts),Rs.default.use(Ms),Rs.default.use(zs.default),Is){var n=Is[t],r=n._defaults,o=n._methods;r._methods=o,Rs.scope.defaults.perAction[t]=r}Rs.default.use(Ss.default),Rs.default.use(Cs.default),!1;return Rs.default},Object.defineProperty(Es,"autoScroll",{enumerable:!0,get:function(){return Ss.default}}),Object.defineProperty(Es,"interactablePreventDefault",{enumerable:!0,get:function(){return Ds.default}}),Object.defineProperty(Es,"inertia",{enumerable:!0,get:function(){return ks.default}}),Object.defineProperty(Es,"modifiers",{enumerable:!0,get:function(){return zs.default}}),Object.defineProperty(Es,"reflow",{enumerable:!0,get:function(){return Cs.default}}),Object.defineProperty(Es,"interact",{enumerable:!0,get:function(){return Rs.default}}),Es.pointerEvents=Es.actions=Es.default=void 0;var Ms=Ys(zr);Es.actions=Ms;var Ss=Xs(Nr),Ts=Ys(jo),Ds=Xs(Do),ks=(Xs(Yo),Xs(li)),Is=Ys(fa),zs=Xs(qo),As=Ys(ls);Es.pointerEvents=As;var Cs=Xs(ds),Rs=Ys(hs);function Xs(e){return e&&e.__esModule?e:{default:e}}function Ys(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}Rs.default.version="1.5.4";var Ns=Rs.default;Es.default=Ns;var Fs={};function Ws(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(e){o=!0,i=e}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")}()}Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.default=void 0;function Ls(v){var g=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(e){var t=Ws(e,2),n=t[0],r=t[1];return n in v||r in v});return function(e,t){for(var n=v.range,r=v.limits,o=void 0===r?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:r,i=v.offset,a=void 0===i?{x:0,y:0}:i,s={range:n},l=0;l<g.length;l++){var u=Ws(g[l],2),c=u[0],f=u[1],p=Math.round((e-a.x)/v[c]),d=Math.round((t-a.y)/v[f]);s[c]=Math.max(o.left,Math.min(o.right,p*v[c]+a.x)),s[f]=Math.max(o.top,Math.min(o.bottom,d*v[f]+a.y))}return s}}Fs.default=Ls;var Vs={};Object.defineProperty(Vs,"__esModule",{value:!0}),Object.defineProperty(Vs,"grid",{enumerable:!0,get:function(){return Gs.default}});var qs,Gs=(qs=Fs)&&qs.__esModule?qs:{default:qs};var Us={exports:{}};Object.defineProperty(Us.exports,"__esModule",{value:!0}),Us.exports.init=el,Us.exports.default=void 0;var Bs,Hs=Js(Es),$s=Js(fa),Ks=(Bs=Te)&&Bs.__esModule?Bs:{default:Bs},Qs=Js(Vs);function Js(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}function Zs(e){return(Zs="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 el(e){return(0,Hs.init)(e),Hs.default.use({id:"interactjs",install:function(){Hs.default.modifiers=(0,Ks.default)({},$s),Hs.default.snappers=Qs,Hs.default.createSnapGrid=Hs.default.snappers.grid}})}"object"===("undefined"==typeof window?"undefined":Zs(window))&&window&&el(window);var tl=Hs.default;return Us.exports.default=tl,Hs.default.default=Hs.default,Hs.default.init=el,"object"===Zs(Us)&&Us&&(Us.exports=Hs.default),Us=Us.exports});
  
  //# sourceMappingURL=interact.min.js.map
  